/* ==========================================================================
   KLINEA — Clinical Intelligence Platform
   Clinical-editorial system: paper-white ground, hairline rules as
   structure. One family (Hanken Grotesk — the product's own UI type),
   weights doing the hierarchy; Spline mono strictly for data.
   Color is committed, not decorative: one deep-teal band, solid teal
   actions, zero glows and zero gradients.
   ========================================================================== */

/* ---------- Fonts (self-hosted, KLINEA brand set) ---------- */
@font-face { font-family:"Hanken Grotesk"; src:url("../assets/fonts/Hanken-400.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Hanken Grotesk"; src:url("../assets/fonts/Hanken-500.woff2") format("woff2"); font-weight:500; font-display:swap; }
@font-face { font-family:"Hanken Grotesk"; src:url("../assets/fonts/Hanken-600.woff2") format("woff2"); font-weight:600; font-display:swap; }
@font-face { font-family:"Hanken Grotesk"; src:url("../assets/fonts/Hanken-700.woff2") format("woff2"); font-weight:700; font-display:swap; }
@font-face { font-family:"Spline Sans Mono"; src:url("../assets/fonts/SplineSansMono.woff2") format("woff2"); font-weight:400 500; font-display:swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #FCFDFD;
  --surface: #F1F7F5;
  --surface-2: #E9F2EF;
  --card: #FFFFFF;
  --ink: #08191B;
  --ink-soft: #3C5457;
  --ink-faint: #566A6C;
  --line: #E3ECEA;
  --line-strong: #C9DAD6;

  --teal: #0FA492;
  --teal-deep: #0A7264;
  --teal-text: #086356;
  --mint: #2DD4BF;
  --band: #062724;         /* drenched section + footer — deep jewel teal */
  --band-2: #0A322E;
  --band-ink: #EDF6F4;
  --band-soft: #96BBB5;
  --band-line: rgba(237,246,244,0.13);

  --btn-primary-bg: #0A7264;
  --btn-primary-ink: #FFFFFF;
  --btn-primary-hover: #086053;

  --shadow-sm: 0 1px 2px rgba(8,25,27,0.04), 0 2px 8px rgba(8,25,27,0.04);
  --shadow-md: 0 4px 12px rgba(8,25,27,0.05), 0 18px 40px rgba(8,25,27,0.08);
  --shadow-lg: 0 8px 24px rgba(8,25,27,0.07), 0 40px 80px rgba(8,25,27,0.12);

  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --r-sm: 8px;
  --r-md: 13px;
  --r-lg: 18px;
  --header-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #06181A;
  --surface: #0A2124;
  --surface-2: #0E282B;
  --card: #0D2629;
  --ink: #ECF5F3;
  --ink-soft: #A6BFBB;
  --ink-faint: #7C9591;
  --line: rgba(236,245,243,0.10);
  --line-strong: rgba(236,245,243,0.19);

  --teal: #2DD4BF;
  --teal-deep: #2DD4BF;
  --teal-text: #5CE4D1;
  --band: #04201D;
  --band-2: #072a26;
  --band-ink: #ECF5F3;
  --band-soft: #92B7B1;
  --band-line: rgba(236,245,243,0.12);

  --btn-primary-bg: #2DD4BF;
  --btn-primary-ink: #04241F;
  --btn-primary-hover: #4FE0CC;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.35);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.4), 0 20px 46px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.45), 0 44px 90px rgba(0,0,0,0.58);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06181A;
    --surface: #0A2124;
    --surface-2: #0E282B;
    --card: #0D2629;
    --ink: #ECF5F3;
    --ink-soft: #A6BFBB;
    --ink-faint: #7C9591;
    --line: rgba(236,245,243,0.10);
    --line-strong: rgba(236,245,243,0.19);
    --teal: #2DD4BF;
    --teal-deep: #2DD4BF;
    --teal-text: #5CE4D1;
    --band: #04201D;
    --band-2: #072a26;
    --band-ink: #ECF5F3;
    --band-soft: #92B7B1;
    --band-line: rgba(236,245,243,0.12);
    --btn-primary-bg: #2DD4BF;
    --btn-primary-ink: #04241F;
    --btn-primary-hover: #4FE0CC;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.35);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.4), 0 20px 46px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.45), 0 44px 90px rgba(0,0,0,0.58);
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 280ms var(--ease), color 280ms var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(45,212,191,0.28); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--btn-primary-bg); color: var(--btn-primary-ink);
  font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 9px;
  transform: translateY(-160%); transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Type ---------- */
h1,h2,h3,h4,h5 { margin: 0; text-wrap: balance; color: var(--ink); font-kerning: normal; }
h1,h2 { font-family: var(--font-body); font-weight: 700; }
h1 { font-size: clamp(44px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -0.038em; }
h2 { font-size: clamp(31px, 3.3vw, 48px); line-height: 1.06; letter-spacing: -0.03em; }
h1 .accent, h2 .accent { color: var(--teal-text); font-style: normal; }
h3 { font-family: var(--font-body); font-size: 21.5px; line-height: 1.24; font-weight: 700; letter-spacing: -0.018em; }
h4 { font-family: var(--font-body); font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.014em; }
h5 { font-family: var(--font-body); font-size: 16.5px; line-height: 1.35; font-weight: 700; letter-spacing: -0.011em; }
.lede { font-size: clamp(17.5px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; max-width: 56ch; }
p { text-wrap: pretty; }

.kbd {
  font-family: var(--font-mono); font-size: 11px; line-height: 1;
  padding: 4px 6px; border-radius: 5px;
  border: 1px solid var(--line-strong); color: var(--ink-faint);
  background: var(--surface);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; white-space: nowrap;
  padding: 15px 26px; border-radius: 10px;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .chev { width: 17px; height: 17px; transition: transform 200ms var(--ease); }
.btn:hover .chev { transform: translateX(3px); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-ink); }
.btn-primary:hover { background: var(--btn-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink-faint); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; border-radius: 9px; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}
.header.stuck { border-bottom-color: var(--line); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(8,25,27,0.25); }
.header > .container { height: 100%; display: flex; align-items: center; gap: 26px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 38px; height: 38px; flex: none; display: block; }
.logo-word { font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: 0.15em; color: var(--ink); }

.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 8px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.cmd-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 12px;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.cmd-chip:hover { border-color: var(--line-strong); color: var(--ink-soft); }
.cmd-chip svg { width: 15px; height: 15px; }

.theme-toggle {
  width: 46px; height: 27px; border-radius: 999px; flex: none;
  border: 1px solid var(--line-strong); background: var(--surface);
  position: relative; transition: background 200ms var(--ease);
}
.theme-toggle .knob {
  position: absolute; top: 2px; left: 2px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--card); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  transition: transform 260ms var(--ease);
}
.theme-toggle .knob svg { width: 12px; height: 12px; color: var(--ink-soft); position: absolute; transition: opacity 200ms var(--ease); }
.theme-toggle .i-sun { opacity: 0; }
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(19px); }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .knob { transform: translateX(19px); }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 0; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 1; }
}

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }
.mobile-sheet { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 76px); align-items: center;
  padding-bottom: clamp(48px, 6vw, 84px);
}
.hero-copy h1 { max-width: 21ch; }
.hero-copy .lede { margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust {
  display: flex; align-items: center; gap: 9px; margin-top: 26px;
  font-size: 14px; color: var(--ink-faint);
}
.hero-trust svg { width: 16px; height: 16px; color: var(--teal-deep); flex: none; }

/* self-typing palette (product-true demo) */
.palette {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; min-height: 380px;
  display: flex; flex-direction: column;
}
.palette-results { flex: 1; }
.palette-foot {
  display: flex; gap: 18px; padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint);
}
.palette-foot > span { display: inline-flex; align-items: center; gap: 7px; }
.palette-bar { display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.palette-bar .search-ic { width: 19px; height: 19px; color: var(--teal-deep); flex: none; }
.palette-query { font-family: var(--font-mono); font-size: 15.5px; color: var(--ink); min-height: 22px; letter-spacing: -0.01em; }
.palette-caret { width: 8px; height: 19px; background: var(--teal); display: inline-block; margin-left: 2px; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.kbd.esc { margin-left: auto; }
.palette-hint { padding: 12px 18px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-faint); }
.palette-results { padding: 6px 8px 12px; }
.result {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: 9px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), background 160ms var(--ease);
}
.result.show { opacity: 1; transform: none; }
.result.active { background: var(--surface); }
.result-ic {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal) 13%, transparent); color: var(--teal-deep);
}
.result-ic svg { width: 17px; height: 17px; }
.result-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.result-title { font-weight: 600; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.02em; }
.result .enter { margin-left: auto; opacity: 0; }
.result.active .enter { opacity: 1; }

/* static tool index strip */
.index-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.index-strip .container {
  display: flex; flex-wrap: wrap; white-space: normal;
  row-gap: 10px;
  padding-block: 13px;
}
.index-strip span {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); flex: none;
}
.index-strip span + span::before { content: "·"; margin-inline: 14px; color: var(--line-strong); }

/* ---------- Platform readout (hairline data strip, not stat cards) ---------- */
.readout { border-block: 1px solid var(--line); }
.readout-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ro { padding: clamp(30px, 3.6vw, 48px) 26px; display: flex; flex-direction: column; gap: 10px; }
.ro + .ro { border-left: 1px solid var(--line); }
.ro:first-child { padding-left: 0; }
.ro:last-child { padding-right: 0; }
.ro-num {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(42px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.ro-label { font-size: 12.5px; letter-spacing: 0; color: var(--ink-faint); }

/* ---------- Sections & editorial headers ---------- */
.section { padding: clamp(64px, 7.5vw, 110px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 18px clamp(32px, 5vw, 72px); align-items: end;
  border-top: 1px solid var(--line-strong); padding-top: 26px;
  margin-bottom: clamp(36px, 4.5vw, 58px);
}
.sec-head h2 { max-width: 18ch; }
.sec-head .lede { justify-self: start; }

/* ---------- Modules: master–detail index ---------- */
.mod-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.5vw, 64px); align-items: start;
}
.mod-list { display: flex; flex-direction: column; }
.tab {
  text-align: left; padding: 22px 18px; border-radius: 0;
  border-top: 1px solid var(--line);
  transition: background 180ms var(--ease);
}
.tab:last-child { border-bottom: 1px solid var(--line); }
.tab .t-head { display: flex; align-items: baseline; gap: 12px; }
.tab h3 { transition: color 180ms var(--ease); }
.tab .t-count { margin-left: auto; font-size: 12.5px; color: var(--ink-faint); flex: none; }
.tab p {
  display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0;
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  transition: grid-template-rows 320ms var(--ease), opacity 280ms var(--ease), margin-top 320ms var(--ease);
}
.tab p > span { overflow: hidden; min-height: 0; }
.tab.active { background: var(--surface); }
.tab.active h3 { color: var(--teal-text); }
.tab.active p { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; }
.tab:hover:not(.active) { background: color-mix(in srgb, var(--surface) 55%, transparent); }

.mod-view {
  position: sticky; top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); background: var(--card);
}
.mod-view img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity 200ms var(--ease); }

/* ---------- Complete feature index (editorial ruled grid) ---------- */
.feat-head { border-top: 1px solid var(--line-strong); margin-top: clamp(44px, 5vw, 68px); padding-top: 28px; margin-bottom: 20px; }
.feat-head h3 { font-size: clamp(23px, 2.3vw, 32px); letter-spacing: -0.022em; }
.feat-head p { margin-top: 9px; color: var(--ink-soft); font-size: clamp(15px, 1.2vw, 17px); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.feat { border-top: 1px solid var(--line); padding: 19px 0 21px; }
.feat-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.feat-r h5 { font-size: 16.5px; }
.feat p { margin-top: 7px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); max-width: 42ch; }
.tier { font-size: 12px; font-weight: 600; letter-spacing: 0; flex: none; white-space: nowrap; }
.tier.t-free { color: var(--ink-faint); }
.tier.t-prem { color: var(--teal-text); }
.tier.t-plus { color: var(--teal-text); font-weight: 500; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 13%, transparent); }

/* ---------- Specialties: index table ---------- */
.spec-table { border-top: 1px solid var(--line-strong); }
.spec-row {
  display: grid; grid-template-columns: minmax(190px, 4fr) 8fr;
  gap: 8px clamp(24px, 4vw, 64px);
  padding: 19px 4px; border-bottom: 1px solid var(--line);
  transition: background 160ms var(--ease);
}
.spec-row:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.spec-row span { color: var(--ink-soft); font-size: 15.5px; align-self: baseline; }
.spec-row.more h5 { color: var(--teal-text); }
.spec-row.more span { color: var(--ink-faint); font-size: 14.5px; }

.sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 26px; margin-top: 34px; }
.sources-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-faint); }
.sources-list { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sources-list span { font-weight: 700; font-size: 14.5px; color: var(--ink-soft); letter-spacing: 0.02em; }

/* ---------- Drenched band: light/dark demo ---------- */
.band { background: linear-gradient(180deg, var(--band-2), var(--band)); color: var(--band-ink); padding: clamp(64px, 7.5vw, 110px) 0; }
.band h2 { color: var(--band-ink); }
.band .lede { color: var(--band-soft); }
.band .sec-head { border-top-color: var(--band-line); }
.duo-frames { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.frame { border: 1px solid var(--band-line); border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,0.03); }
.frame figcaption {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em;
  color: var(--band-soft); border-bottom: 1px solid var(--band-line);
}
.frame figcaption svg { width: 15px; height: 15px; }
.frame-shot { aspect-ratio: 16 / 10; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* ---------- Pricing: ruled columns, not floating cards ---------- */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--card);
}
.plan { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.hi { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--teal), var(--shadow-md); position: relative; z-index: 1; }
.amt { font-family: var(--font-mono); font-weight: 500; font-size: 34px; letter-spacing: -0.02em; margin: 20px 0 4px; line-height: 1; font-variant-numeric: tabular-nums; }
.amt span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.01em; color: var(--ink-faint); font-weight: 400; }
.p-desc { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.p-feats { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 0; }
.p-feats li {
  font-size: 15px; color: var(--ink-soft);
  padding: 10px 0 10px 26px; position: relative;
  border-top: 1px solid var(--line);
}
.p-feats li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; width: 100%; }
.price-note { margin-top: 22px; font-size: 13.5px; color: var(--ink-faint); text-align: center; }

/* ---------- CTA ---------- */
.cta { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); text-align: center; }
.cta .container { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cta-mark { width: 56px; height: 56px; margin-bottom: 28px; }
.cta h2 { max-width: 24ch; }
.cta .lede { margin-top: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--band); color: var(--band-ink); padding: clamp(56px, 6vw, 84px) 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr auto;
  gap: 40px clamp(28px, 4vw, 56px);
  padding-bottom: 48px; border-bottom: 1px solid var(--band-line);
}
.footer .logo-word { color: #fff; }
.footer-brand p { margin-top: 18px; font-size: 14.5px; line-height: 1.65; color: var(--band-soft); max-width: 34ch; }
.footer-col h5 { color: #fff; font-size: 14.5px; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--band-soft); transition: color 160ms var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-qr img { width: 92px; border-radius: 10px; background: #fff; padding: 6px; }
.footer-qr span { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--band-soft); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 28px; font-size: 13.5px; color: var(--band-soft);
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--band-line); border-radius: 9px;
  color: var(--band-soft); transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.footer-social a:hover { color: #fff; border-color: var(--band-soft); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Motion system (progressive enhancement) ----------
   Content is visible by DEFAULT. Only below-the-fold elements the JS
   explicitly "arms" start hidden, so nothing can ever ship blank. */
.js .reveal.armed { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.armed[data-rev="left"] { transform: translateX(-30px); }
.js .reveal.armed[data-rev="right"] { transform: translateX(30px); }
.js .reveal.in[data-rev="left"], .js .reveal.in[data-rev="right"] { transform: none; }

@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;
  }
  .js .reveal, .js .reveal.armed { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cmd-chip { display: none; }
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy h1 { max-width: none; }
  .palette { min-height: 340px; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .mod-split { grid-template-columns: 1fr; }
  .mod-view { position: static; order: -1; }
  .readout-grid { grid-template-columns: repeat(2, 1fr); }
  .ro + .ro { border-left: none; }
  .ro:nth-child(even) { border-left: 1px solid var(--line); }
  .ro:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ro:nth-child(odd) { padding-left: 0; padding-right: 26px; }
  .ro:nth-child(even) { padding-right: 0; padding-left: 26px; }
  .duo-frames { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: none; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-sheet {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  }
  .header.open .mobile-sheet { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .mobile-sheet a { padding: 13px 12px; border-radius: 9px; font-weight: 600; color: var(--ink-soft); transition: background 160ms var(--ease), color 160ms var(--ease); }
  .mobile-sheet a:hover { background: var(--surface); color: var(--ink); }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .hero-ctas .btn, .cta-actions .btn, .plan .btn { width: 100%; }
  .header .btn-sm { padding: 9px 14px; font-size: 13.5px; }
  .readout-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
