/* site.css — the single stylesheet for the sysen.ai website, in the hero's
   design language. Light, precise, engineering-grade. Owns the design tokens,
   base reset, and shared chrome (nav, brand, buttons) for every page; each page
   keeps only its genuinely page-specific rules inline.
   Three SysML families echoed as accents: structure #2563EB, vmodel #B45718,
   behavior #0F8A6A. */

:root {
  /* core design tokens — the single source of truth for every page */
  --bg: #fafbfc;
  --bg-2: #f3f5f8;
  --ink: #11161f;
  --ink-2: #5b6573;
  --line: rgba(17, 22, 31, 0.09);
  --accent: #1e758d;
  --card-shadow: 0 1px 2px rgba(17,22,31,.05), 0 8px 24px rgba(17,22,31,.07);
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* SysML family accents + layout lane */
  --struct: #2563eb;
  --vmodel: #b45718;
  --behav:  #0f8a6a;
  --lane: 1180px;
}

/* ── base reset + typography (shared by every page) ──────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

/* ── scrollable layout overrides (the hero ships as a fixed stage) ──────── */
html, body { height: auto; }
body { overflow: visible; }
#hero {
  position: relative; inset: auto;
  height: 100vh; min-height: 680px;
  overflow: hidden;
}
/* clean the nav band: fade any corridor card that drifts up under the nav,
   sits above the cards (z≈88) but below the scrim (95), overlay (100) and nav (1000) */
#hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 156px;
  z-index: 92; pointer-events: none;
  background: linear-gradient(to bottom,
    var(--bg) 0%, rgba(250,251,252,.82) 28%, rgba(250,251,252,0) 100%);
}
main { position: relative; z-index: 1; background: transparent; }

/* whisper-thin precision grid behind the whole page — fixed so it reads as one
   continuous grid from the hero all the way down to the footer */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(17,22,31,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,22,31,.022) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ── page nav: transparent over hero, solid once scrolled ───────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 40px;
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease, padding .28s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 251, 252, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6), 0 8px 30px rgba(17,22,31,.05);
  padding-top: 18px; padding-bottom: 18px;
}
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav-links a { color: inherit; text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.nav-cta {
  font-size: 14px; font-weight: 600; color: #fff; background: var(--ink);
  padding: 9px 16px; border-radius: 8px; box-shadow: 0 1px 2px rgba(17,22,31,.18);
}
.nav-links a.nav-cta:hover { color: #fff; }
.nav .nav-cta { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.nav .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(17,22,31,.22); }

/* ── buttons (shared chrome) ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 13px 22px; border-radius: 10px; text-decoration: none; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(17,22,31,.2), 0 8px 22px rgba(17,22,31,.16); }
.btn-primary .arr { transition: transform .2s ease; }
.btn-primary:hover .arr { transform: translateX(3px); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ── hero scroll cue ─────────────────────────────────────────────────────── */
.scroll-cue {
  position: absolute; z-index: 100; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
  pointer-events: none;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--ink-2), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 12px;
  background: var(--accent); animation: cueRun 2.2s cubic-bezier(.6,0,.2,1) infinite;
}
@keyframes cueRun { 0% { transform: translateY(-14px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }

/* ── section scaffold ────────────────────────────────────────────────────── */
.section { padding: 132px 40px; position: relative; }
.lane { max-width: var(--lane); margin: 0 auto; }
.lane-narrow { max-width: 860px; }

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--accent); margin-bottom: 22px;
}
.sec-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.sec-head {
  font-size: clamp(30px, 3.6vw, 50px); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.025em; margin: 0; text-wrap: balance; max-width: 18ch;
}
.sec-lead {
  font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--ink-2);
  margin: 22px 0 0; max-width: 60ch; text-wrap: pretty;
}
.sec-head + .sec-lead { margin-top: 24px; }

/* .gridwash sections inherit the continuous page grid (body::before) — no
   per-section wash needed; keep the lane above any section-local layers */
.gridwash > .lane { position: relative; z-index: 1; }

/* ── Vision: filing-cabinet vs living-memory compare ─────────────────────── */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 54px;
}
.cmp {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 28px 30px; box-shadow: var(--card-shadow); position: relative;
}
.cmp .kw {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-2); margin-bottom: 14px;
}
.cmp .kw .dot { width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: .7; }
.cmp h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; }
.cmp p { font-size: 16px; line-height: 1.58; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.cmp.is-stale { background: var(--bg-2); }
.cmp.is-stale .kw { color: #8a93a1; }
.cmp.is-live { border-left: 3px solid var(--accent); }
.cmp.is-live .kw { color: var(--accent); }
.cmp .tag {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: #9aa3b0;
}
.cmp.is-live .tag { color: var(--accent); }

.signal {
  margin-top: 30px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
}
.signal b { color: var(--ink); font-weight: 500; }
.signal .std {
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 6px; box-shadow: 0 1px 1px rgba(17,22,31,.04);
}
.signal-stack { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.signal-stack .signal { margin-top: 0; }
.signal-stack .signal b { min-width: 104px; }

/* ── translation primer (collapsible) ────────────────────────────────────── */
.primer { margin-top: 34px; max-width: 820px; }
.primer summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent);
  padding: 9px 14px; border: 1px solid rgba(15,138,106,.22); background: rgba(15,138,106,.07);
  border-radius: 999px; user-select: none;
}
.primer summary::-webkit-details-marker { display: none; }
.primer summary .chev { transition: transform .2s ease; font-size: 11px; }
.primer[open] summary .chev { transform: rotate(90deg); }
.primer summary:hover { background: rgba(15,138,106,.11); }
.primer-body {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: var(--card-shadow);
}
.primer-body .prow {
  display: grid; grid-template-columns: minmax(180px, 0.85fr) 1.4fr; gap: 0;
  border-top: 1px solid var(--line);
}
.primer-body .prow:first-child { border-top: 0; }
.primer-body .pl, .primer-body .pr { padding: 15px 22px; }
.primer-body .pl {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  border-right: 1px solid var(--line); background: var(--bg);
}
.primer-body .pr { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.primer-body .head .pl, .primer-body .head .pr {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: #9aa3b0; padding-top: 12px; padding-bottom: 12px; background: var(--bg-2);
}
code, .mono-inline {
  font-family: var(--mono); font-size: .9em; background: rgba(17,22,31,.05);
  border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--ink);
}

/* ── inline next-step links ──────────────────────────────────────────────── */
.steplinks { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.steplink {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.steplink .arr { color: var(--accent); position: relative; top: -2px; transition: transform .2s ease; animation: step-drift 1.8s ease-in-out infinite; }
.steplink:hover .arr { position: relative; top: -3px; animation: none; transform: translateX(6px) scale(1.25); }
@keyframes step-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .steplink .arr { animation: none; } }

/* ── Platform: V-Model stepper ───────────────────────────────────────────── */
.vmodel { margin-top: 58px; }
.vsteps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative;
}
.vstep { padding: 0 16px; position: relative; }
.vstep:first-child { padding-left: 0; }
.vstep:last-child { padding-right: 0; }
.vstep .node {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.vstep .idx {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2);
  width: 26px; height: 26px; flex: none; border-radius: 7px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 1px rgba(17,22,31,.04);
}
.vstep .rail {
  flex: 1; height: 1px; background: var(--line); position: relative;
}
.vstep:last-child .rail { display: none; }
.vstep .rail::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  border: 4px solid transparent; border-left-color: var(--line);
}
.vstep .kw {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em;
  margin-bottom: 9px;
}
.vstep h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.vstep p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.vstep[data-fam="s"] .idx { border-color: rgba(37,99,235,.4); color: var(--struct); }
.vstep[data-fam="v"] .idx { border-color: rgba(180,87,24,.4); color: var(--vmodel); }
.vstep[data-fam="b"] .idx { border-color: rgba(15,138,106,.4); color: var(--behav); }
.vstep[data-fam="s"] .kw { color: var(--struct); }
.vstep[data-fam="v"] .kw { color: var(--vmodel); }
.vstep[data-fam="b"] .kw { color: var(--behav); }
.vaside {
  margin-top: 40px; font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  border-left: 2px solid var(--line); padding-left: 16px; max-width: 60ch; line-height: 1.6;
}

/* ── Differentiators grid ────────────────────────────────────────────────── */
.diffs {
  margin-top: 56px; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  grid-template-columns: repeat(6, 1fr);
}
.diff { background: var(--bg); padding: 30px 28px 34px; position: relative; }
.diff:nth-child(1), .diff:nth-child(2), .diff:nth-child(3) { grid-column: span 2; }
.diff:nth-child(4), .diff:nth-child(5) { grid-column: span 3; }
/* four-card variant: balanced 2×2 (used on the vision page) */
.diffs.diffs-4 { grid-template-columns: repeat(2, 1fr); }
.diffs.diffs-4 .diff { grid-column: auto; }
.diff .n {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 16px;
  display: flex; align-items: center; gap: 9px;
}
.diff .n .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.diff h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 11px; text-wrap: balance; }
.diff p { font-size: 15.5px; line-height: 1.56; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ── Why now / Why us ─────────────────────────────────────────────────────── */
.twocol { margin-top: 54px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 34px 36px; box-shadow: var(--card-shadow); border-top: 3px solid var(--accent);
}
.pillar .lbl {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--accent);
  margin-bottom: 14px;
}
.pillar h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; }
.pillar p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ── brand wordmark (nav + footer) ───────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .wordmark { height: 40px; width: auto; display: block; }
.foot .brand .wordmark { height: 40px; }

/* ── Founder ─────────────────────────────────────────────────────────────── */
.founder-grid {
  margin-top: 54px; display: grid; grid-template-columns: minmax(290px, 380px) 1fr;
  gap: 56px; align-items: center;
}
.founder-card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 14px; padding: 14px 14px 16px; box-shadow: var(--card-shadow);
}
.founder-card .fc-key {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 2px 4px 12px;
}
.founder-card .fc-key .kw {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent);
}
.founder-card .fc-key .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.founder-card img {
  display: block; width: 100%; height: auto; border-radius: 8px; background: #fff;
}
.founder-card .fc-name {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 6px 4px; margin-top: 12px;
  border-top: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.founder-card .fc-name span {
  font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-2); letter-spacing: 0;
}
.founder-body blockquote {
  margin: 0; font-size: clamp(21px, 2.2vw, 30px); font-weight: 500; line-height: 1.36;
  letter-spacing: -0.018em; color: var(--ink); text-wrap: pretty; position: relative;
}
.founder-body blockquote .mk { color: var(--accent); }
.founder-body .founder-note {
  margin: 26px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2);
  max-width: 56ch; text-wrap: pretty;
}

/* ── Category: dark band ─────────────────────────────────────────────────── */
.band-dark {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.band-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 90% at 30% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 90% at 30% 40%, #000 0%, transparent 75%);
}
.band-dark .lane { position: relative; z-index: 1; }
.band-dark .sec-label { color: var(--accent); }
.band-dark .sec-label::before { background: var(--accent); }
.bigquote {
  font-size: clamp(30px, 4.4vw, 60px); font-weight: 700; line-height: 1.06;
  letter-spacing: -0.03em; margin: 26px 0 0; text-wrap: balance; max-width: 20ch;
}
.bigquote em { font-style: normal; color: var(--accent); }
.band-dark .positioning {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.62; color: rgba(255,255,255,.62);
  margin: 32px 0 0; max-width: 64ch; text-wrap: pretty;
}
.band-dark .positioning b { color: #fff; font-weight: 500; }

/* ── Category: teal band (variant of .band-dark) ─────────────────────────── */
.band-teal {
  background: var(--accent); color: #fff; position: relative; overflow: hidden;
}
.band-teal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 90% at 30% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 90% at 30% 40%, #000 0%, transparent 75%);
}
.band-teal .lane { position: relative; z-index: 1; }
.band-teal .sec-label { color: #fff; }
.band-teal .sec-label::before { background: #fff; }
.band-teal .bigquote { color: #fff; }
.band-teal .bigquote em { color: var(--ink); }
.band-teal .positioning {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.62; color: rgba(255,255,255,.86);
  margin: 32px 0 0; max-width: 64ch; text-wrap: pretty;
}
.band-teal .positioning b { color: var(--ink); font-weight: 600; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
#cta { text-align: center; padding: 130px 40px; }
#cta .sec-head { margin: 0 auto; max-width: 20ch; }
#cta .sec-lead { margin: 24px auto 0; max-width: 52ch; }
#cta .cta-row { margin-top: 36px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── footer ───────────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line); background: rgba(17,22,31,.025);
  padding: 54px 40px 60px;
}
.foot .lane { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .brand { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.foot .brand .mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--struct), var(--behav));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); position: relative;
}
.foot .brand .mark::after {
  content: ""; position: absolute; inset: 5px;
  border: 1.5px solid rgba(255,255,255,.92); border-radius: 2px;
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 22%, 50% 100%, 0 22%);
}
.foot .tag { margin-top: 14px; color: var(--ink-2); font-size: 14px; max-width: 36ch; line-height: 1.55; }
.foot .cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot .col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #9aa3b0; margin: 0 0 14px; font-weight: 500;
}
.foot .col h4 a { display: inline; color: inherit; font-size: inherit; margin: 0; text-decoration: none; transition: color .15s ease; }
.foot .col h4 a:hover { color: var(--ink-2); }
.foot .col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; }
.foot .col a:hover { color: var(--ink); }
.foot .legal {
  max-width: var(--lane); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: #9aa3b0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ── scroll reveal ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .07s; }
  .reveal.d2 { transition-delay: .14s; }
  .reveal.d3 { transition-delay: .21s; }
  .reveal.d4 { transition-delay: .28s; }
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .section { padding: 92px 24px; }
  .compare { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; gap: 34px; max-width: 520px; }
  .vsteps { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .vstep .rail { display: none; }
  .vstep { padding: 0; }
  .diffs { grid-template-columns: 1fr; }
  .diffs.diffs-4 { grid-template-columns: 1fr; }
  .diff:nth-child(n) { grid-column: auto; }
  .twocol { grid-template-columns: 1fr; }
  .foot .lane { flex-direction: column; }
}
@media (max-width: 560px) {
  .nav { padding: 18px 22px !important; }
  .nav-links a:not(.nav-cta) { display: none; }
  .vsteps { grid-template-columns: 1fr; }
  .primer-body .prow { grid-template-columns: 1fr; }
  .primer-body .pl { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ════════════════════════════════════════════════════════════════════════
   SUBPAGES (vision.html, platform.html)
   These pages drop the animated hero and lead with a static page-head.
   They reuse .section / .lane / .sec-* / .compare / .signal / .band-dark /
   .pillar / .reveal / .foot from above; the rules below add what's unique.
   ════════════════════════════════════════════════════════════════════════ */

/* the subpage body has no fixed hero, so the nav sits over a light header —
   keep it solid from the very top for legibility */
body.subpage .nav {
  background: rgba(250, 251, 252, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6), 0 8px 30px rgba(17,22,31,.05);
}

/* ── page header ─────────────────────────────────────────────────────────── */
.page-head {
  padding: 160px 40px 86px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 130% at 50% -10%, #ffffff 0%, var(--bg) 52%, var(--bg-2) 100%);
}
.page-head .lane { position: relative; z-index: 1; max-width: var(--lane); }
.page-head .crumb {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  color: var(--accent); margin-bottom: 26px;
}
.page-head .crumb .arr { transition: transform .2s ease; }
.page-head .crumb:hover .arr { transform: translateX(-3px); }
.page-head h1 {
  font-size: clamp(38px, 5.2vw, 68px); font-weight: 700; line-height: 1.03;
  letter-spacing: -0.028em; margin: 0; text-wrap: balance; max-width: 16ch;
}
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head .lede {
  font-size: clamp(17px, 1.55vw, 21px); line-height: 1.56; color: var(--ink-2);
  margin: 26px 0 0; max-width: 60ch; text-wrap: pretty;
}
.page-head .head-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Vision: problem cards + insight callout ─────────────────────────────── */
.probgrid {
  margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.probcard {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px 28px; box-shadow: var(--card-shadow);
  border-top: 3px solid var(--pc, var(--ink-2));
}
.probcard .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pc, var(--ink-2)); margin-bottom: 12px; font-weight: 500;
}
.probcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.probcard p { font-size: 15px; line-height: 1.56; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.probcard ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.insight {
  margin-top: 36px; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 14px;
  padding: 30px 32px; box-shadow: var(--card-shadow); max-width: 880px;
}
.insight .q {
  font-size: clamp(21px, 2.3vw, 30px); font-weight: 600; line-height: 1.32;
  letter-spacing: -0.018em; margin: 0; color: var(--ink); text-wrap: pretty;
}
.insight .q em { font-style: normal; color: var(--accent); }
.insight p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }

/* ── Platform: detailed lifecycle phases ─────────────────────────────────── */
.phaserail {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
}
.phaserail a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px; box-shadow: 0 1px 1px rgba(17,22,31,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.phaserail a:hover { transform: translateY(-1px); box-shadow: var(--card-shadow); border-color: var(--ph); }
.phaserail a .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--ph); }

.phases { margin-top: 30px; display: grid; gap: 26px; }
.phase {
  --ph: var(--accent); scroll-margin-top: 96px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ph);
  border-radius: 16px; box-shadow: var(--card-shadow); padding: 30px 32px 34px;
}
.phase.ph-define { --ph: var(--struct); }
.phase.ph-analyze { --ph: var(--vmodel); }
.phase.ph-verify { --ph: var(--behav); }
.phase.ph-sync   { --ph: var(--accent); }
.phase.ph-assure { --ph: #b4341e; }

.phase-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.phase .idx {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ph);
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ph) 8%, #fff); border: 1px solid color-mix(in srgb, var(--ph) 32%, transparent);
}
.phase .kw {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--ph);
}
.phase .phase-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.phase .role {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  margin-left: auto; letter-spacing: .02em;
}
.phase .summary {
  margin: 16px 0 0; font-size: 16.5px; line-height: 1.58; color: var(--ink-2);
  max-width: 74ch; text-wrap: pretty;
}
.phase-grid {
  margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.phase-grid h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: #9aa3b0; margin: 0 0 12px; font-weight: 500;
}
.phase-grid ul { margin: 0; padding-left: 18px; }
.phase-grid li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 8px; text-wrap: pretty; }
.phase-grid li strong { color: var(--ink); font-weight: 600; }
.phase .callout {
  margin-top: 24px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
  background: color-mix(in srgb, var(--ph) 6%, #fff);
  border-left: 3px solid var(--ph); border-radius: 0 10px 10px 0; padding: 14px 18px;
}
.phase .callout strong { color: var(--ph); font-weight: 600; }

@media (max-width: 940px) {
  .page-head { padding: 132px 24px 64px; }
  .probgrid { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; gap: 18px; }
  .phase .role { margin-left: 0; width: 100%; }
}

/* ── Book-a-demo modal (demo.js) ─────────────────────────────────────────── */
.demo-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(17, 22, 31, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: demoFade .18s ease;
}
.demo-overlay[hidden] { display: none; }
@keyframes demoFade { from { opacity: 0; } to { opacity: 1; } }
body.demo-open { overflow: hidden; }

.demo-modal {
  position: relative;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  padding: 30px 30px 26px;
}
.demo-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--ink-2);
  transition: color .15s ease;
}
.demo-close:hover { color: var(--ink); }
.demo-head { font-size: 24px; font-weight: 700; margin: 0 28px 6px 0; color: var(--ink); }
.demo-sub { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; line-height: 1.5; }

.demo-form { display: flex; flex-direction: column; gap: 14px; }
.demo-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.demo-form .req { color: #d1453b; font-weight: 700; }
.demo-form input,
.demo-form select,
.demo-form textarea {
  font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.demo-form textarea { resize: vertical; min-height: 88px; }
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 117, 141, 0.16);
}

.demo-status { font-size: 14px; padding: 10px 12px; border-radius: 9px; }
.demo-status.is-success { background: #e7f6ed; color: #146c43; border: 1px solid #b7e4c7; }
.demo-status.is-error   { background: #fdeceb; color: #b42318; border: 1px solid #f5c2c0; }

.demo-actions { display: flex; gap: 12px; margin-top: 4px; }
.demo-actions .demo-submit { flex: 1; justify-content: center; }
.demo-actions .demo-cancel { justify-content: center; }
.demo-actions .btn:disabled { opacity: .55; cursor: not-allowed; }
/* match the teal "Book a demo" CTA rather than the default dark .btn-primary */
.demo-actions .demo-submit { background: var(--accent); }
.demo-actions .demo-submit:hover:not(:disabled) {
  box-shadow: 0 1px 2px rgba(30, 117, 141, .2), 0 8px 22px rgba(30, 117, 141, .28);
}

@media (max-width: 520px) {
  .demo-modal { padding: 24px 20px; }
  .demo-actions { flex-direction: column-reverse; }
}

/* ── Book a demo CTA: standard teal across all pages ─────────────────────── */
.nav-links a.nav-cta[data-book-demo],
.btn.btn-primary[data-book-demo] {
  background: var(--accent);
}
.nav .nav-cta[data-book-demo]:hover,
.btn.btn-primary[data-book-demo]:hover {
  box-shadow: 0 1px 2px rgba(30, 117, 141, .2), 0 8px 22px rgba(30, 117, 141, .28);
}
