/* ============================================================
   ROWSYS — The Operational Readiness Platform
   Design system: from the Rowsys homepage + About mockups (see ROWSYS MOCKUP SKIN at the end)
   WCAG 2.2 AA throughout, AAA contrast for body copy
   ============================================================ */

/* ---------- Tokens (Forethought-inspired: ice mint + deep petrol + lime/teal) ---------- */
:root {
  /* Surfaces */
  --paper: #F7FDFC;        /* ice-mint canvas */
  --paper-2: #FFFFFF;      /* white section alternation */
  --paper-3: #E9F4F1;      /* mint-100 fills */
  --card: #FFFFFF;
  --ink: #0D212D;          /* deep petrol — body text on mint ≈ 15.4:1 */
  --ink-soft: #3D5361;     /* petrol-600 — secondary ≈ 7.4:1 */
  --line: #D9E6E3;         /* mint hairlines */
  --line-soft: #E7F0EE;

  /* Dark surfaces — Forethought petrol */
  --pine-950: #081821;
  --pine-900: #0D212D;     /* dark section bg */
  --pine-800: #16303E;
  --pine-700: #23455A;
  --pine-600: #2E8FA3;
  --pine-link: #16506B;    /* steel-blue links ≈ 7.8:1 */

  /* Signal — Rowsys periwinkle accent (from the logo) + lime pop */
  --flame: #7785FF;        /* periwinkle: rules, focus, hover borders, graphics */
  --flame-deep: #4F5DE0;   /* hover text on light ≈ 5.1:1 */
  --flame-ink: #4350CF;    /* text-safe periwinkle on light ≈ 6.2:1 */
  --accent-on-dark: #A5AEFF; /* periwinkle text on petrol ≈ 7.6:1 */
  --accent-soft: #ECEEFF;  /* periwinkle tint fill */
  --lime: #C9F66F;         /* Forethought lime — dark-bg accents, accent CTA */
  --lime-deep: #B7EC50;

  /* On dark */
  --mist: #F7FDFC;         /* text on petrol ≈ 14.9:1 */
  --mist-soft: #A9C3CE;    /* secondary on petrol ≈ 8.6:1 */
  --dark-line: #24404F;

  /* Status */
  --ok-bg: #DDEEE2; --ok-text: #13472B;
  --warn-bg: #F7EAD2; --warn-text: #6E3A00;
  --risk-bg: #F6DCD6; --risk-text: #8A1F11;

  /* Type — Forethought: Manrope headings, Poppins body, Geist Mono data tags */
  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;

  /* Fluid scale */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.94rem);
  --step-0: clamp(1.00rem, 0.96rem + 0.22vw, 1.13rem);
  --step-1: clamp(1.19rem, 1.13rem + 0.32vw, 1.38rem);
  --step-2: clamp(1.43rem, 1.33rem + 0.50vw, 1.72rem);
  --step-3: clamp(1.72rem, 1.55rem + 0.83vw, 2.22rem);
  --step-4: clamp(2.06rem, 1.80rem + 1.30vw, 2.86rem);
  --step-5: clamp(2.47rem, 2.06rem + 2.05vw, 3.70rem);
  --step-6: clamp(2.96rem, 2.34rem + 3.10vw, 4.85rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem;
  --space-7: 3rem; --space-8: 4.5rem; --space-9: 6.5rem;

  --container: 74rem;
  --container-wide: 86rem;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px rgba(28, 25, 23, 0.07);
  --focus-ring: 3px solid var(--flame);

  /* Flat GitBook surfaces (former glass slots now resolve flat) */
  --glass-bg: #FFFFFF;
  --glass-bg-strong: #FFFFFF;
  --glass-border: var(--line);
  --glass-edge: transparent;
  --glass-blur: none;
  --glass-dark-bg: rgba(255, 255, 255, 0.06);
  --glass-dark-border: rgba(255, 255, 255, 0.15);
}

/* Larger canvases (QHD / 4K): scale the whole rem system up */
@media (min-width: 1920px) { html { font-size: 18px; } }
@media (min-width: 2600px) { html { font-size: 21px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, li { max-width: 68ch; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
h1 em, h2 em, h3 em {
  font-family: inherit;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
a { color: var(--pine-link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--flame-deep); }
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--flame); color: var(--paper); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

/* ---------- Utilities ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2.5rem, var(--container-wide)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--paper); }

/* Kicker: mono tag label, the "drawing number" motif */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame-ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: var(--space-4);
}
.kicker::before {
  content: ""; width: 1.6rem; height: 2px;
  background: var(--flame); flex: none;
}
.on-dark .kicker { color: #FFB08A; }
.on-dark .kicker::before { background: var(--flame); }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.on-dark .lede { color: var(--mist-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 700; font-size: var(--step-0);
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--flame); color: var(--pine-950);
  border-color: var(--flame);
}
.btn-primary:hover { background: #F0672F; border-color: #F0672F; color: var(--pine-950); }
.btn-primary .btn-arrow { transition: transform 0.18s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-secondary { color: var(--mist); border-color: var(--mist); }
.on-dark .btn-secondary:hover { background: var(--mist); color: var(--pine-950); }
.btn-lg { padding: 1rem 1.9rem; font-size: var(--step-0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(24,36,32,0.08); }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); padding: 0.85rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.25rem; letter-spacing: 0.16em;
}
.brand-tag {
  display: none;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  border-left: 1px solid var(--line); padding-left: 0.65rem; margin-left: 0.1rem;
  line-height: 1.3;
}
@media (min-width: 1100px) { .brand-tag { display: block; } }
.nav-links {
  display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.9rem);
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: var(--step--1);
  padding: 0.45rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--flame-deep); }
.nav-links a[aria-current="page"],
.nav-links a[aria-current="true"] {
  color: var(--pine-link);
  border-bottom-color: var(--flame);
}
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-cta .btn { padding: 0.62rem 1.25rem; min-height: 44px; font-size: var(--step--1); }
.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 0.5rem 0.7rem; cursor: pointer;
  min-width: 48px; min-height: 44px;
}
.nav-toggle-bars { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: var(--space-4) 0 var(--space-6);
    box-shadow: 0 24px 40px rgba(24,36,32,0.16);
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
  .nav-links a {
    display: block; padding: 0.9rem 0.25rem; font-size: var(--step-0);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-menu .nav-cta { width: min(100% - 2.5rem, var(--container)); margin: var(--space-4) auto 0; }
  .nav-menu .nav-cta .btn { width: 100%; }
  .nav-cta-desktop { display: none; }
}
@media (min-width: 921px) {
  .nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
  .nav-menu .nav-cta { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-950); color: var(--mist);
  padding: var(--space-8) 0 var(--space-6);
  border-top: 4px solid var(--flame);
}
.footer-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1.4fr repeat(4, 1fr);
  margin-bottom: var(--space-7);
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-promise {
  font-family: var(--font-display); font-size: var(--step-2);
  line-height: 1.25; max-width: 18ch; color: var(--mist);
}
.footer-col h2 {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mist-soft); margin-bottom: var(--space-4); font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--mist); text-decoration: none; font-size: var(--step--1); }
.footer-col a:hover { color: #FFB08A; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--dark-line); padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--step--1); color: var(--mist-soft);
  font-family: var(--font-mono);
}

/* ---------- Sections ---------- */
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--pine-900); color: var(--mist); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--mist); }
.section-dark p { color: var(--mist-soft); }
.section-dark a { color: #BFE3CF; }
.section-dark a:hover { color: #FFB08A; }
.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center p { margin-inline: auto; }
.section-head h2 { margin-bottom: var(--space-4); }

/* Grid-paper texture for hero + feature sections */
.grid-paper {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}
.section-dark.grid-paper {
  background-image:
    linear-gradient(rgba(239,244,238,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,244,238,0.05) 1px, transparent 1px);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--space-8) 0 var(--space-9); }
.hero-grid {
  display: grid; gap: var(--space-7);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--step-6); margin-bottom: var(--space-5); }
.hero h1 em {
  font-style: italic; color: var(--pine-700);
  text-decoration: underline;
  text-decoration-color: var(--flame);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}
.hero .lede { margin-bottom: var(--space-6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero-proof {
  margin-top: var(--space-6);
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  padding: 0; list-style: none;
}
.hero-proof li { display: flex; align-items: center; gap: 0.5rem; }
.hero-proof .tick { color: var(--pine-700); font-weight: 700; }

/* Staggered load-in */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero [data-rise] { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero [data-rise="2"] { animation-delay: 0.12s; }
.hero [data-rise="3"] { animation-delay: 0.24s; }
.hero [data-rise="4"] { animation-delay: 0.36s; }
.hero [data-rise="5"] { animation-delay: 0.48s; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-rise] { animation: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.card-grid { display: grid; gap: var(--space-5); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* Link cards (industry / module cards) */
.link-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none; color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--pine-700);
  color: var(--ink);
}
.link-card:hover .card-cta { color: var(--flame-deep); }
.link-card:hover .card-cta .btn-arrow { transform: translateX(4px); }
.link-card .card-tag {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--flame-ink);
}
.link-card h3 { font-size: var(--step-1); }
.link-card p { font-size: var(--step--1); color: var(--ink-soft); flex: 1; }
.card-cta {
  font-weight: 700; font-size: var(--step--1); color: var(--pine-link);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.card-cta .btn-arrow { transition: transform 0.18s ease; }
.card-glyph { width: 44px; height: 44px; color: var(--pine-700); }
.section-dark .link-card { background: var(--pine-800); border-color: var(--dark-line); color: var(--mist); }
.section-dark .link-card h3 { color: var(--mist); }
.section-dark .link-card p { color: var(--mist-soft); }
.section-dark .link-card .card-cta { color: #BFE3CF; }
.section-dark .link-card:hover { border-color: var(--flame); color: var(--mist); }

/* ---------- Status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.7rem; border-radius: 999px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--ok-bg); color: var(--ok-text); }
.chip-warn { background: var(--warn-bg); color: var(--warn-text); }
.chip-risk { background: var(--risk-bg); color: var(--risk-text); }
.chip-neutral { background: var(--paper-3); color: var(--ink-soft); }

/* ---------- The Digital Thread ---------- */
.thread { list-style: none; padding: 0; margin: 0; counter-reset: thread; display: grid; gap: 0; }
.thread-h {
  grid-auto-flow: column; grid-auto-columns: 1fr;
}
.thread li { position: relative; counter-increment: thread; padding: var(--space-5) var(--space-4) var(--space-4); text-align: center; }
.thread-h li::before {
  content: ""; position: absolute; top: 1.05rem; left: calc(50% + 1.4rem); right: calc(-50% + 1.4rem);
  height: 2px; background: var(--dark-line);
}
.thread-h li:last-child::before { display: none; }
.thread-node {
  width: 2.1rem; height: 2.1rem; margin: 0 auto var(--space-3);
  border-radius: 50%;
  border: 2px solid var(--flame);
  background: var(--pine-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
  color: var(--mist);
  position: relative; z-index: 1;
}
.thread-node::after { content: counter(thread, decimal-leading-zero); }
.thread-label { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); display: block; }
.thread-sub { font-size: 0.8rem; color: var(--mist-soft); display: block; margin-top: 0.3rem; }
@media (max-width: 860px) {
  .thread-h { grid-auto-flow: row; grid-auto-columns: unset; }
  .thread-h li { text-align: left; display: grid; grid-template-columns: 2.1rem 1fr; gap: 0 var(--space-4); padding: var(--space-3) 0; }
  .thread-h .thread-node { margin: 0; grid-row: span 2; }
  .thread-h li::before { top: calc(2.1rem + 0.75rem); bottom: -0.85rem; left: 1.02rem; right: auto; width: 2px; height: auto; }
}

/* Module thread nav (prev/next along the thread) */
.thread-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5);
  border-top: 2px solid var(--ink); padding-top: var(--space-6);
}
@media (max-width: 680px) { .thread-nav { grid-template-columns: 1fr; } }
.thread-nav a {
  text-decoration: none; display: flex; flex-direction: column; gap: 0.3rem;
  padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); color: var(--ink);
}
.thread-nav a:hover { border-color: var(--pine-700); box-shadow: var(--shadow-card); }
.thread-nav .dir { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flame-ink); }
.thread-nav .next { text-align: right; align-items: flex-end; }

/* ---------- Stats / proof ---------- */
.stat-row { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }
.stat {
  border-top: 3px solid var(--flame);
  padding-top: var(--space-4);
}
.stat .stat-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-5); line-height: 1; color: var(--mist);
  display: block; margin-bottom: var(--space-2);
}
.stat p { font-size: var(--step--1); color: var(--mist-soft); }
.stat-note { font-size: var(--step--1); color: var(--mist-soft); margin-top: var(--space-5); font-style: italic; }

/* ---------- Split (problem) section ---------- */
.split { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-panel { border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--line); }
.split-before { background: var(--paper-2); color: var(--ink); }
.split-before h3, .split-before p { color: var(--ink); }
.split-before ul li { color: var(--ink); }
.split-after { background: var(--pine-800); color: var(--mist); border-color: var(--dark-line); }
.split-after h3, .split-after p { color: var(--mist); }
.split-after ul li { color: var(--mist-soft); }
.split-label {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
  margin-bottom: var(--space-4);
}
.split-before .split-label { background: var(--risk-bg); color: var(--risk-text); }
.split-after .split-label { background: var(--ok-bg); color: var(--ok-text); }

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist .ck {
  flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.15rem;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--pine-700); color: var(--paper); font-size: 0.8rem; font-weight: 700;
}
.checklist .ck-x { background: var(--risk-bg); color: var(--risk-text); }
.section-dark .checklist .ck { background: var(--flame); color: var(--pine-950); }

/* ---------- Detail / definition lists ---------- */
.spec-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.spec-list > div {
  display: grid; grid-template-columns: minmax(10rem, 0.8fr) 2fr; gap: var(--space-4);
  padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) { .spec-list > div { grid-template-columns: 1fr; gap: var(--space-2); } }
.spec-list dt { font-family: var(--font-mono); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--flame-ink); }
.spec-list dd { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: var(--space-5) var(--space-6);
  font-weight: 700; font-size: var(--step-0);
  list-style: none; position: relative; padding-right: 3.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: var(--space-6); top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 400; color: var(--flame-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 var(--space-6) var(--space-5); color: var(--ink-soft); }
.faq details > div p + p { margin-top: var(--space-3); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--pine-900);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  color: var(--mist);
  display: grid; gap: var(--space-5);
  grid-template-columns: 1.5fr auto; align-items: center;
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(239,244,238,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,244,238,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.cta-band h2 { color: var(--mist); font-size: var(--step-3); margin-bottom: var(--space-3); }
.cta-band p { color: var(--mist-soft); }
.cta-band .btn { position: relative; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: var(--space-4) 0 0; font-size: var(--step--1); font-family: var(--font-mono); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--flame-deep); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Forms ---------- */
.form-shell {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem);
}
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: var(--step--1); }
.form-field .hint { font-size: 0.82rem; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--ink-soft);
  border-radius: var(--radius);
  background: #FFFFFF;
  min-height: 48px;
  width: 100%;
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: var(--focus-ring); outline-offset: 1px; border-color: var(--ink);
}
.form-field [aria-invalid="true"] { border-color: #B42318; border-width: 2px; }
.field-error { color: #8A1F11; font-size: 0.85rem; font-weight: 600; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-status[role="alert"] { border-left: 4px solid #B42318; background: var(--risk-bg); color: var(--risk-text); padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-weight: 600; }
.form-success {
  border-left: 4px solid var(--pine-700); background: var(--ok-bg); color: var(--ok-text);
  padding: var(--space-6); border-radius: var(--radius-lg);
}
.form-success h2 { color: var(--ok-text); font-size: var(--step-2); margin-bottom: var(--space-3); }

/* ---------- Assessment ---------- */
.assess-dimension { margin-bottom: var(--space-7); }
.assess-dimension legend {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600;
  margin-bottom: var(--space-2); padding: 0;
}
.assess-dim-code { font-family: var(--font-mono); font-size: var(--step--1); color: var(--flame-ink); letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: var(--space-2); }
.assess-q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin-top: var(--space-4); }
.assess-q .q-text { font-weight: 700; margin-bottom: var(--space-4); max-width: none; }
.assess-options { display: grid; gap: var(--space-2); }
.assess-option { position: relative; }
.assess-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.assess-option label {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.8rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); cursor: pointer; font-size: var(--step--1);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.assess-option label::before {
  content: ""; flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.12rem;
  border-radius: 50%; border: 2px solid var(--ink-soft); background: #fff;
}
.assess-option input:checked + label { border-color: var(--pine-700); background: var(--ok-bg); }
.assess-option input:checked + label::before { border-color: var(--pine-700); background: radial-gradient(circle, var(--pine-700) 45%, #fff 50%); }
.assess-option input:focus-visible + label { outline: var(--focus-ring); outline-offset: 2px; }
.assess-progress { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); margin-bottom: var(--space-5); }

.assess-result-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6); background: var(--card); margin-top: var(--space-4);
}
.assess-result-card.at-risk { border-left: 5px solid #B42318; }
.assess-result-card.attention { border-left: 5px solid #B25E00; }
.assess-result-card.strong { border-left: 5px solid var(--pine-700); }
.assess-result-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.assess-result-head h3 { font-size: var(--step-1); }
.assess-fix { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px dashed var(--line); }
.assess-fix .fix-label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flame-ink); display: block; margin-bottom: var(--space-2); }

/* ---------- Calculator ---------- */
.calc-shell { display: grid; gap: var(--space-6); grid-template-columns: 1.1fr 0.9fr; align-items: start; }
@media (max-width: 900px) { .calc-shell { grid-template-columns: 1fr; } }
.calc-output {
  background: var(--pine-900); color: var(--mist);
  border-radius: var(--radius-lg); padding: var(--space-6);
  position: sticky; top: 6rem;
}
.calc-output h3 { color: var(--mist); margin-bottom: var(--space-5); font-size: var(--step-1); }
.calc-metric { border-top: 1px solid var(--dark-line); padding: var(--space-4) 0; }
.calc-metric .calc-value { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.05; color: #FFB08A; display: block; }
.calc-metric p { color: var(--mist-soft); font-size: var(--step--1); margin-top: var(--space-1); }
.calc-disclaimer { font-size: 0.8rem; color: var(--mist-soft); margin-top: var(--space-5); font-style: italic; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; }
table.compare caption { text-align: left; padding: var(--space-5) var(--space-6) 0; font-weight: 700; font-size: var(--step-1); font-family: var(--font-display); }
table.compare th, table.compare td { padding: var(--space-4) var(--space-6); text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: var(--step--1); }
table.compare thead th { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
table.compare tbody th { font-weight: 700; }
table.compare .neg { color: var(--risk-text); }
table.compare .pos { color: var(--ok-text); font-weight: 600; }

/* ---------- Prose (guides) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-3); margin: var(--space-8) 0 var(--space-4); }
.prose h3 { font-size: var(--step-1); margin: var(--space-6) 0 var(--space-3); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.prose blockquote {
  border-left: 4px solid var(--flame); padding: var(--space-3) var(--space-5);
  background: var(--paper-2); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic; margin: var(--space-5) 0;
}
.prose .answer-box {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--pine-700);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin: var(--space-5) 0;
}
.prose .answer-box p { font-size: var(--step-0); }
.toc { background: var(--paper-2); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin: var(--space-6) 0; }
.toc h2 { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-3); }
.toc ol { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: var(--space-7) 0 var(--space-8); }
.page-hero h1 { margin-bottom: var(--space-5); max-width: 22ch; }
.page-hero .lede { max-width: 44rem; }
.page-hero .hero-ctas { margin-top: var(--space-6); }

/* ---------- Persona strip ---------- */
.persona-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .persona-grid { grid-template-columns: 1fr; } }
.persona {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); padding: var(--space-5);
}
.persona .persona-role { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--flame-ink); display: block; margin-bottom: var(--space-3); }
.persona blockquote { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--step-1); font-style: italic; line-height: 1.3; }
.persona p { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Illustration frame ---------- */
.art-frame {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.art-frame figcaption {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
}

/* SVG thread draw animation */
.draw-path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.in .draw-path, .hero .draw-path { animation: draw 2.2s ease forwards 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw-path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; } }

/* Pulse dot on dashboards */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .hero-ctas, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   ROWSYS MOCKUP SKIN (Nov 2026)
   Values taken from the Homepage and About design mockups:
   navy canvas, gridded hero, copper Geist Mono labels, numbered
   ledgers instead of cards, dot-grid and blueprint sections, an
   ice-blue light band, 6px buttons, white contact card.
   ============================================================ */

/* ---------- Tokens: navy (default) ---------- */
:root {
  --paper: #080E23;
  --paper-2: #090F24;
  --paper-3: #111B3A;
  --card: #0B122B;
  --ink: #F2E5D5;            /* ≈ 16:1 on navy */
  --ink-soft: #AEB2C4;       /* ≈ 8.9:1 */
  --lede: #C9CFEA;           /* ≈ 12:1 */
  --muted: #A9B2D6;          /* ≈ 8.7:1 */
  --line: rgba(242, 229, 213, 0.16);
  --line-strong: #232C52;
  --line-soft: rgba(242, 229, 213, 0.08);

  --pine-950: #050A1A;
  --pine-900: #090F24;
  --pine-800: #111B3A;
  --pine-700: #26355B;
  --pine-600: #4054FF;
  --pine-link: #A5AEFF;      /* ≈ 8.6:1 */

  --accent: #4054FF;         /* mockup "accent" prop */
  --accent-hover: #3247E0;
  --blue-light: #7380FF;     /* accent words, hover ≈ 5.4:1 */
  --periwinkle: #7785FF;     /* rules, focus */
  --flame: #7785FF;
  --flame-deep: #7380FF;
  --flame-ink: #A5AEFF;
  --copper: #C8946A;         /* ≈ 7.2:1 */
  --coral: #E39A7C;          /* "today" / "is not" labels ≈ 8.3:1 on #0B122B */
  --lime: #7380FF;           /* legacy slot */
  --accent-on-dark: #A5AEFF;
  --accent-soft: rgba(64, 84, 255, 0.16);

  --mist: #F2E5D5;
  --mist-soft: #C9CFEA;
  --dark-line: rgba(242, 229, 213, 0.16);

  --neg-text: #FF9C8C;
  --pos-text: #8FE0B0;
  --err-text: #FFA394;

  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", Consolas, "SFMono-Regular", monospace;

  --container: 75rem;        /* 1200px */
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 6px;
  --radius-lg: 0px;
  --radius-pill: 6px;
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.32);
  --focus-ring: 3px solid var(--flame);
}

/* ---------- Tokens: ice-blue light band ---------- */
.section-light {
  --paper: #F2F6FB;
  --card: #FFFFFF;
  --ink: #080E23;            /* ≈ 17:1 */
  --ink-soft: #3B4266;       /* ≈ 9.4:1 */
  --lede: #3B4266;
  --muted: #3B4266;
  --line: rgba(8, 14, 35, 0.2);
  --line-soft: rgba(8, 14, 35, 0.1);
  --pine-link: #2E3FD6;      /* ≈ 6.5:1 */
  --blue-light: #2E3FD6;
  --flame: #2E3FD6;
  --flame-ink: #2E3FD6;
  --copper: #7A4E27;         /* ≈ 6.9:1 */
  --coral: #A3261A;
  --neg-text: #8A1F11;
  --pos-text: #13472B;
  --err-text: #8A1F11;
  background: radial-gradient(circle, rgba(64, 84, 255, 0.16) 1px, transparent 1.25px) 0 0 / 24px 24px, #F2F6FB;
  color: var(--ink);
}

/* ---------- Base ---------- */
html { background: #080E23; }
body {
  position: relative;
  background: #080E23;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
/* Gridded navy-to-indigo hero behind the header and first section (mockup header + hero) */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(115, 128, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 84% 18%, rgba(64, 84, 255, 0.19), transparent 30%),
    linear-gradient(142deg, #26355B 0%, #080E23 48%, #050A1A 100%);
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}
.container, .container-wide { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
::selection { background: var(--accent); color: #FFFFFF; }
a { color: var(--pine-link); }
a:hover { color: var(--blue-light); }
:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
strong { color: var(--ink); font-weight: 600; }
p, li { max-width: 68ch; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.25; }
h4 { letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--blue-light); text-decoration: none; }
.h2-sm { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--lede); text-wrap: pretty; }
.section-head .lede { color: var(--ink-soft); }
.section-light .section-head .lede { color: var(--ink-soft); }

/* Labels: copper Geist Mono, "01 / The demo" */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}
.kicker::before { display: none; }
.on-dark .kicker, .section-dark .kicker { color: var(--copper); }
.hero-badge, .page-hero .kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper);
  background: none; border: 0; padding: 0; margin: 0;
}
.hero-badge::before, .page-hero .kicker::before {
  content: ""; display: block; flex: 0 0 40px; width: 40px; height: 1px; background: #C8946A; border-radius: 0;
}
.page-hero .kicker { margin-bottom: 1.75rem; }

/* Layout helpers */
.section { padding: 6rem 0; }
.section-tight { padding: 4.5rem 0; }
.stack-lg, .stack-xl, .stack-xxl { display: flex; flex-direction: column; }
.stack-lg { gap: 40px; }
.stack-xl { gap: 48px; }
.stack-xxl { gap: 56px; }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head.wide { max-width: 820px; }
.stack-lg > .section-head, .stack-xl > .section-head, .stack-xxl > .section-head, .split-head .section-head { margin-bottom: 0; }
.section-head h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; }
.section-head .lede { margin: 0; }

/* ---------- Section backgrounds ---------- */
.grid-paper { background-image: none; }
.section-dots, .section-dark, .section-alt {
  background: radial-gradient(circle, rgba(242, 229, 213, 0.1) 1px, transparent 1.25px) 0 0 / 24px 24px, #090F24;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--ink); }
.section-dark p, .on-dark p { color: var(--ink-soft); }
.section-dark a { color: var(--pine-link); }
.section-dark a:hover { color: var(--blue-light); }
.blueprint, .section-dark.grid-paper {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% 14%, transparent 0, transparent 112px, rgba(115, 128, 255, 0.18) 113px, rgba(115, 128, 255, 0.18) 114px, transparent 115px, transparent 166px, rgba(115, 128, 255, 0.11) 167px, rgba(115, 128, 255, 0.11) 168px, transparent 169px),
    linear-gradient(rgba(115, 128, 255, 0.1) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.1) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(115, 128, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    #111B3A;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.blueprint .lede { color: var(--lede); }
.blueprint > .container { position: relative; z-index: 1; }
.circuit-art {
  position: absolute; right: -40px; top: 150px; width: min(720px, 60%); height: auto;
  fill: none; stroke: rgba(200, 148, 106, 0.3); stroke-width: 1.5;
}
.access-section, .cta-section {
  background:
    linear-gradient(rgba(115, 128, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 12% 80%, rgba(64, 84, 255, 0.19), transparent 32%),
    linear-gradient(142deg, #050A1A 0%, #080E23 52%, #26355B 100%);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.access-section .lede, .cta-section .lede { color: var(--lede); }

/* ---------- Header: logo + links on the hero ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled {
  background: rgba(8, 14, 35, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-strong);
  box-shadow: none;
}
.site-header .nav-bar {
  background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
  padding: 20px 0;
  gap: 16px 32px;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand-logo { height: 28px; width: auto; display: block; }
.nav-links { gap: 4px 28px; }
.nav-links a {
  color: var(--lede); font-size: 0.9375rem; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--blue-light); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--copper); }
.nav-toggle { border: 1px solid #3A4577; border-radius: 6px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
@media (min-width: 921px) {
  .nav-menu { gap: 28px; }
  .nav-menu .nav-cta { display: block; }
}
.site-header .nav-cta .btn { padding: 11px 20px; font-size: 0.9375rem; min-height: 44px; }
@media (max-width: 920px) {
  .nav-menu {
    top: 100%; left: 0; right: 0;
    background: #0B122B;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  }
  .nav-links a { border-bottom: 1px solid var(--line); color: var(--ink); }
}

/* ---------- Buttons: 6px ---------- */
.btn {
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: none; }
.btn-lg { padding: 15px 26px; font-size: 1.0625rem; min-height: 52px; }
.btn-primary,
.section-dark .btn-primary, .cta-band .btn-primary, .hero .btn-primary, .site-header .nav-cta .btn {
  background: var(--accent); color: #F2E5D5; border-color: var(--accent);
}
.btn-primary:hover,
.section-dark .btn-primary:hover, .cta-band .btn-primary:hover, .hero .btn-primary:hover, .site-header .nav-cta .btn:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: #F2E5D5; transform: none;
}
.btn-secondary, .btn-accent,
.on-dark .btn-secondary, .section-dark .btn-secondary, .cta-band .btn-secondary {
  background: transparent; color: #F2E6D5; border: 1px solid #3A4577; font-weight: 500;
}
.btn-secondary:hover, .btn-accent:hover,
.on-dark .btn-secondary:hover, .section-dark .btn-secondary:hover, .cta-band .btn-secondary:hover {
  background: rgba(115, 128, 255, 0.1); color: #F2E6D5; border-color: var(--periwinkle); transform: none;
}
.section-light .btn-secondary { color: var(--ink); border-color: rgba(8, 14, 35, 0.35); }
.btn-primary .btn-arrow { transition: transform 0.18s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.play-glyph { width: 11px; height: 11px; flex: none; border: 0; }

/* ---------- Home hero ---------- */
.hero { padding: 3.5rem 0 6rem; text-align: left; background: none; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; max-width: none; margin: 0; }
.hero h1 em { color: #7380FF; }
.hero .lede { font-size: 1.1875rem; color: var(--lede); max-width: 34em; margin: 0; }
.hero-split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-frame {
  flex: 1 1 420px; min-width: 0; margin: 0; padding: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(38, 53, 91, 0.94), rgba(8, 14, 35, 0.98) 68%);
}
.photo-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1586 / 992; object-fit: cover; }

/* Interior page heroes */
.page-hero { padding: 3rem 0 5rem; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1.75rem; max-width: 20ch; }
.page-hero h1 em { color: #7380FF; }
.page-hero .lede { max-width: 40rem; }

/* ---------- Ledgers (instead of cards) ---------- */
.ledger { display: flex; flex-direction: column; border-top: 2px solid var(--copper); }
.ledger-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.ledger-num { flex: 0 0 40px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-soft); }
.ledger-row h3 { flex: 1 1 260px; margin: 0; font-size: 1.375rem; }
.ledger-row p { flex: 2 1 340px; margin: 0; color: var(--ink-soft); max-width: none; }

.module-ledger {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 0 32px;
  border-top: 2px solid var(--copper);
}
.module-link {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.module-link span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); flex: none; }
.module-link:hover { color: var(--blue-light); }

.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.split-head .section-head { flex: 1 1 420px; min-width: 0; }
.split-head-photo {
  flex: 1 1 360px; min-width: 0; max-width: 520px; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 1px solid var(--line);
}
.solution-ledger { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.solution-link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; padding: 20px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.solution-name { flex: 1 1 280px; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.solution-text { flex: 2 1 340px; color: var(--ink-soft); }
.solution-link:hover .solution-name { color: var(--blue-light); }
.solution-link:hover { color: var(--ink); }

/* ---------- Joined comparison (problem; is / is not) ---------- */
.split-joined {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  border: 1px solid var(--line); overflow: hidden;
}
.split-pane { padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.split-pane-no { background: #0B122B; }
.split-pane-yes { background: linear-gradient(145deg, #26355B, #111B3A 68%); color: #F2E6D5; }
.split-pane-label { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.split-pane-no .split-pane-label { color: var(--coral); }
.split-pane-yes .split-pane-label { color: #A5AEFF; }
.split-pane ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.split-pane li { display: flex; gap: 12px; max-width: none; }
.split-pane-no li { color: var(--ink-soft); }
.split-pane-yes li { color: #F2E6D5; }
.split-pane svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 5px; fill: none; stroke-width: 2; }
.split-pane-no svg { stroke: var(--coral); }
.split-pane-yes svg { stroke: #A5AEFF; }
.strike-mono { font-family: var(--font-mono); font-size: 0.9375rem; text-decoration: line-through; }

/* Legacy before/after panels on interior pages, restyled to match */
.split { gap: 0; border: 1px solid var(--line); }
.split-panel { border-radius: 0; border: 0; padding: 36px; }
.split-before { background: #0B122B; color: var(--ink-soft); }
.split-before ul li { color: var(--ink-soft); }
.split-after { background: linear-gradient(145deg, #26355B, #111B3A 68%); color: #F2E6D5; }
.split-after ul li { color: #F2E6D5; }
.split-label { background: none !important; padding: 0; border-radius: 0; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.split-before .split-label { color: var(--coral) !important; }
.split-after .split-label { color: #A5AEFF !important; }
.checklist .ck { background: none; color: #A5AEFF; width: 1rem; height: 1.2rem; font-size: 0.95rem; border-radius: 0; margin-top: 0.2rem; }
.checklist .ck-x { background: none; color: var(--coral); }
.section-light .checklist .ck { color: #2E3FD6; }

/* ---------- Digital thread ---------- */
.thread-h {
  display: grid; grid-auto-flow: row; grid-auto-columns: unset;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 32px 0;
}
.thread-h li, .thread li {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  border-top: 2px solid var(--periwinkle); padding: 20px 20px 0 0;
}
.thread-h li::before, .thread li::before { display: none; }
.thread-node {
  width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: none;
  display: block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; color: #A5AEFF;
}
.thread-label { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.thread-sub { font-size: 0.9375rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .thread-h li { display: flex; grid-template-columns: none; padding: 20px 0 0; }
  .thread-h .thread-node { grid-row: auto; }
}

.principle-cells {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.principle-cells > div { padding: 28px; display: flex; flex-direction: column; gap: 8px; background: #0A1029; }
.principle-cells span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); }
.principle-cells p { margin: 0; color: var(--lede); }

.payoff { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 48px; }
.payoff h3 { font-size: 1.625rem; margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px; }
.stat { border-top: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stat .stat-value { font-family: var(--font-display); font-size: 3.25rem; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: #F2E6D5; margin: 0; }
.stat p { font-size: 0.9375rem; color: var(--lede); margin: 0; }
.stat-note { font-size: 0.8125rem; color: var(--muted); max-width: 760px; font-style: normal; margin: 0; }

/* ---------- FAQ: heading left, open answers right ---------- */
.faq-split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.faq-aside .kicker { margin: 0; }
.faq-aside h2 { margin: 0; }
.faq-photo { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; display: block; margin-top: 16px; border: 1px solid var(--line); }
.faq { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--copper); counter-reset: none; }
.faq details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; overflow: visible; }
.faq details[open] { border-color: var(--line); }
.faq summary {
  display: list-item; list-style: disclosure-closed;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
  min-height: 44px; padding: 0; position: static;
}
.faq details[open] > summary { list-style: disclosure-open; }
.faq summary::-webkit-details-marker { display: inline; }
.faq summary::before, .faq summary::after { content: none; display: none; }
.faq details > div { padding: 0; margin-top: 8px; color: var(--ink-soft); }
.faq details > div p { color: var(--ink-soft); }

/* ---------- Closing CTA section ---------- */
.cta-band {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.cta-band::before { display: none; }
.cta-band .kicker { margin: 0; }
.cta-band h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; max-width: 16em; margin: 0; color: var(--ink); }
.cta-band .lede { max-width: 36em; margin: 0; color: var(--lede); }
.cta-actions { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 12px; max-width: none; }
@media (max-width: 860px) { .cta-band { grid-template-columns: none; } }

/* ---------- Demo video ---------- */
#demo { scroll-margin-top: 5rem; }
.video-frame { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.video-stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(115, 128, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(145deg, rgba(38, 53, 91, 0.94), rgba(8, 14, 35, 0.98) 68%);
}
.video-stage video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(180deg, rgba(8, 14, 35, 0.3), rgba(8, 14, 35, 0.7));
  color: #F2E6D5;
}
.video-stage.is-started .video-play { display: none; }
.video-play-icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #F2E5D5;
  display: flex; align-items: center; justify-content: center; box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-play-icon::after { content: none; }
.video-play-icon svg { width: 24px; height: 24px; margin-left: 4px; }
.video-play:hover .video-play-icon { transform: scale(1.05); background: var(--accent-hover); }
.video-play:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: -6px; }
.video-play-label { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: #C9CFEA; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.video-frame figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 20px; }
.video-note { margin: 0; font-size: 0.875rem; color: var(--ink-soft); text-align: left; max-width: none; }
.chapters {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.chapters li { max-width: none; }
.chapter {
  width: 100%; height: 100%; min-height: 52px; padding: 10px 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
}
.chapter-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--copper); }
.chapter:hover { background: rgba(115, 128, 255, 0.1); }
.chapter[aria-current="true"] { background: var(--accent); color: #F2E5D5; }
.chapter[aria-current="true"] .chapter-time { color: #E3E6FF; }
.video-transcript { margin: 0; max-width: none; }
.video-transcript summary { cursor: pointer; color: var(--pine-link); font-weight: 500; font-size: 0.9375rem; padding: 6px 0; min-height: 44px; display: list-item; }
.video-transcript > div {
  margin-top: 12px; padding: 24px 28px; max-width: 56rem;
  background: #0B122B; border: 1px solid var(--line);
  display: grid; gap: 12px;
}
.video-transcript p { color: var(--ink-soft); font-size: 0.9375rem; max-width: none; margin: 0; }
.video-transcript strong { color: var(--ink); }

/* ---------- Get access ---------- */
#get-access { scroll-margin-top: 5rem; }
.access-grid { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.access-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.access-copy .kicker, .access-copy h2, .access-copy .lede { margin: 0; }
.access-copy h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; }
.access-steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.access-steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong); color: var(--ink); max-width: none; }
.access-steps span { font-family: var(--font-mono); font-size: 0.75rem; color: #A5AEFF; padding-top: 4px; flex: none; }
.access-alt { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.access-alt a { color: #A5AEFF; }

/* ---------- Forms: white contact card ---------- */
.form-shell {
  --ink: #14213D; --ink-soft: #55627A; --muted: #55627A; --line: #D5DCE8;
  --pine-link: #2A5FA0; --err-text: #A3261A; --flame: #3468AB; --card: #FFFFFF;
  background: #FFFFFF; color: #14213D;
  border: 0; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  padding: clamp(24px, 4vw, 40px);
}
.access-card { flex: 1 1 520px; min-width: 0; padding: 0; display: flex; flex-direction: column; }
.form-head { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 40px); background: #F5F7FB; border-bottom: 1px solid #D5DCE8; }
.form-eyebrow { margin: 0; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #2A6DB0; }
.form-head h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.03em; color: #14213D; }
.form-req { margin: 0; font-size: 0.875rem; color: #55627A; }
.form-body { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 4vw, 40px); }
.form-grid { gap: 24px 20px; }
.form-field { gap: 6px; }
.form-field label { font-size: 1rem; font-weight: 600; color: #14213D; }
.form-field .hint { font-size: 0.875rem; color: #55627A; font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; min-height: 56px; padding: 0 14px;
  border: 1px solid #7D8AA0; border-radius: 8px;
  background: #FFFFFF; color: #14213D; width: 100%; box-sizing: border-box;
}
.form-field textarea { padding: 12px; min-height: 9rem; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #6B7890; opacity: 1; }
.form-field select option { background: #FFFFFF; color: #14213D; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 3px solid #3468AB; outline-offset: 1px; border-color: #14213D; }
.form-field [aria-invalid="true"] { border-color: #A3261A; border-width: 2px; }
.form-shell .field-error { color: #A3261A; font-size: 0.875rem; font-weight: 600; margin: 0; }
.form-shell .field-error:empty { display: none; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.char-count { font-size: 0.875rem; color: #55627A; }
.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px clamp(24px, 4vw, 40px); border-top: 1px solid #D5DCE8;
}
.form-spam { margin: 0; font-size: 0.9375rem; color: #55627A; display: flex; align-items: center; gap: 10px; }
.form-spam svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-send, .form-shell .btn-primary {
  background: #3468AB; color: #FFFFFF; border: 1px solid #3468AB; border-radius: 6px;
  padding: 18px 28px; display: inline-flex; align-items: center; gap: 14px; font-weight: 600;
}
.btn-send:hover, .form-shell .btn-primary:hover { background: #2B5A96; border-color: #2B5A96; color: #FFFFFF; }
.btn-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.form-shell .form-note { color: #55627A; }
.form-shell .form-actions { gap: 16px 24px; }
.form-status {
  border-left: 4px solid #B42318; background: var(--risk-bg); color: var(--risk-text);
  padding: 16px 20px; border-radius: 6px; font-weight: 600; max-width: none; margin: 0 0 20px;
}
.access-card .form-status { margin: 24px clamp(24px, 4vw, 40px) 0; }
.form-status a { color: var(--risk-text); }
.form-success { border-radius: 8px; }
.access-card .form-success { margin: clamp(24px, 4vw, 40px); }
.form-success, .form-success p, .form-success h2, .form-success h3, .form-success a { color: var(--ok-text); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Book a demo: form + aside, stacks on narrow screens */
.demo-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.demo-aside { position: sticky; top: 6rem; }
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-aside { position: static; }
}

/* ---------- Cards (interior pages) ---------- */
.card, .link-card, .persona, .assess-q, .thread-nav a, .toc, .prose .answer-box, .table-wrap, .art-frame, .assess-result-card {
  background: #0B122B; border: 1px solid var(--line); border-radius: 0; box-shadow: none;
}
.section-light .card, .section-light .link-card { background: #FFFFFF; }
.link-card { border-top: 2px solid var(--line); color: var(--ink); }
.link-card:hover, .thread-nav a:hover { border-color: var(--line); border-top-color: var(--periwinkle); box-shadow: var(--shadow-card); transform: translateY(-2px); color: var(--ink); }
.link-card h3, .card h3 { color: var(--ink); }
.link-card p, .card p { color: var(--ink-soft); }
.link-card .card-tag, .assess-dim-code, .assess-fix .fix-label { font-family: var(--font-mono); font-weight: 400; color: var(--copper); }
.card-cta, .section-dark .link-card .card-cta { color: var(--pine-link); }
.link-card:hover .card-cta { color: var(--ink); }
.card-glyph { color: var(--periwinkle); }
.section-dark .link-card, .section-dark .card { background: #0B122B; border-color: var(--line); }
.persona .persona-role { font-family: var(--font-mono); font-weight: 400; color: var(--copper); }
.persona blockquote { color: var(--ink); font-family: var(--font-body); font-style: normal; font-weight: 500; }
.spec-list { border-top: 2px solid var(--copper); }
.spec-list > div { border-bottom-color: var(--line); }
.spec-list dt { font-family: var(--font-mono); font-weight: 400; color: var(--copper); }
.spec-list dd { color: var(--ink-soft); }
.chip { border-radius: 4px; backdrop-filter: none; }

/* Assessment, ROI, tables, guides */
.assess-option label { border-radius: 6px; background: #0A1129; border-color: var(--line); color: var(--ink); }
.assess-option label::before { background: #0A1129; border-color: var(--ink-soft); }
.assess-option input:checked + label { border-color: var(--periwinkle); background: rgba(64, 84, 255, 0.18); }
.assess-option input:checked + label::before { border-color: var(--periwinkle); background: radial-gradient(circle, var(--periwinkle) 45%, #0A1129 50%); }
.assess-q .q-text, .assess-dimension legend { color: var(--ink); }
.assess-progress { color: var(--muted); }
.assess-result-card.strong { border-left: 5px solid #4CAF7D; }
.calc-output {
  border-radius: 0; border: 1px solid var(--line);
  background: linear-gradient(145deg, #26355B, #111B3A 68%);
}
.calc-output h3 { color: var(--ink); }
.calc-metric { border-top-color: var(--line); }
.calc-metric .calc-value { color: #F2E6D5; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; }
.calc-metric p, .calc-disclaimer { color: var(--lede); }
table.compare thead th { font-family: var(--font-mono); font-weight: 400; color: var(--muted); border-bottom-color: var(--copper); }
table.compare th, table.compare td { border-bottom-color: var(--line); color: var(--ink-soft); }
table.compare tbody th { color: var(--ink); }
table.compare .neg { color: var(--neg-text); }
table.compare .pos { color: var(--pos-text); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose blockquote { background: #0B122B; border-left-color: var(--copper); border-radius: 0; color: var(--ink); font-style: normal; }
.prose .answer-box { border-left: 3px solid var(--periwinkle); }
.prose .answer-box p, .prose p, .prose li { color: var(--ink-soft); }
.toc h2 { font-family: var(--font-mono); font-weight: 400; color: var(--copper); }
.breadcrumbs { font-family: var(--font-mono); font-size: 0.8125rem; padding-top: 0.5rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.breadcrumbs li + li::before { color: rgba(242, 229, 213, 0.3); }

/* ---------- About page ---------- */
.about-hero { padding: 4.5rem 0 6rem; }
.about-hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.about-hero-grid .hero-copy { flex: 3 1 480px; }
.about-hero-grid > .lede { flex: 2 1 320px; min-width: 0; margin: 0; }
.statement-panel {
  display: flex; flex-wrap: wrap; gap: 12px 48px;
  padding: 36px clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(38, 53, 91, 0.94), rgba(8, 14, 35, 0.98) 68%);
}
.statement-label { flex: 0 0 200px; margin: 0; padding-top: 6px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); }
.statement-text { flex: 1 1 420px; min-width: 0; margin: 0; font-size: 1.3125rem; line-height: 1.45; color: var(--ink); max-width: none; }
.image-banner-wrap { padding: 4.5rem 0 0; }
.image-banner {
  position: relative; min-height: 520px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line);
}
.image-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.image-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(8, 14, 35, 0.25) 0%, rgba(8, 14, 35, 0.92) 100%), linear-gradient(90deg, rgba(8, 14, 35, 0.7), transparent 60%);
}
.image-banner-copy { position: relative; z-index: 2; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.image-banner-copy .kicker { color: #E0B48F; margin: 0; }
.image-banner-copy h2 { margin: 0; }
.image-banner-copy p { margin: 0; font-size: 1.1875rem; color: #F2E5D5; }
.split-text { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split-text > h2 { flex: 1 1 320px; min-width: 0; margin: 0; }
.split-text-body { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 1.1875rem; color: var(--lede); }
.split-text-body p { margin: 0; max-width: none; text-wrap: pretty; }
.section-light .split-text-body { color: var(--ink-soft); }
.principles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 2px solid var(--copper); background: rgba(8, 14, 35, 0.72); }
.principles li { display: flex; gap: 24px; align-items: baseline; padding: 22px 24px; border-bottom: 1px solid var(--line); font-size: 1.25rem; color: var(--ink); max-width: none; }
.principles span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--copper); flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: #080E23; color: var(--lede); border-top: 1px solid var(--line-strong);
  padding: 4rem 0 2.5rem; font-size: 0.9375rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 40px 32px; margin-bottom: 3rem; }
.footer-promise { margin: 0; font-family: var(--font-body); font-size: 1.375rem; line-height: 1.25; font-weight: 600; font-style: normal; letter-spacing: -0.02em; color: #F2E6D5; max-width: none; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: #A5AEFF; margin-bottom: 10px; }
.footer-col ul { gap: 10px; }
.footer-col a { color: var(--lede); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--blue-light); text-decoration: none; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  border-top: 1px solid var(--line-strong); padding-top: 24px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
}
.footer-legal p { margin: 0; }

@media print {
  body::before { display: none; }
  body { background: #fff; color: #000; }
}

/* Accent words in headlines: upright, no underline (overrides the original base rule) */
.hero h1 em, .page-hero h1 em, .about-hero h1 em {
  font-style: normal; font-weight: inherit; text-decoration: none; color: #7380FF;
}

/* Header: Log in (outline) sits left of Get access */
.nav-cta { display: flex; align-items: center; gap: 10px; }
.site-header .nav-cta .btn-login {
  background: transparent; color: #F2E5D5; border: 1px solid #3A4577; font-weight: 500;
}
.site-header .nav-cta .btn-login:hover { background: rgba(115, 128, 255, 0.1); border-color: var(--periwinkle); color: #F2E5D5; }
@media (min-width: 921px) { .nav-menu .nav-cta { display: flex; } }
@media (max-width: 920px) {
  .nav-menu .nav-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-menu .nav-cta .btn { width: 100%; }
}
