/* ============================================================
   NurseKind AI — pre-login site design system ("Instrument grade")
   The site looks like the claim: an objective measurement
   instrument. Graphite + cool white monochrome, ECG phosphor
   green reserved for data only, neutral grotesk + monospace
   tabular numerals, hairline grid, square corners, one waveform
   motif. No gradients, no paper, no hand-drawn marks.

   Adapted from the webtest v3 prototype and extended for the full
   pre-login site: login/MFA modals, form controls, and a legacy
   token-compatibility block so content pages that reference the
   old variable names inline still resolve on-brand.
   ============================================================ */

:root {
  --bg: #fbfbf9;
  --bg-2: #f1f2ee;
  --ink: #141613;
  --ink-2: #363a34;
  --mute: #666b62;
  --faint: #6c6f68;      /* AA 4.5:1 on --bg and --bg-2 */
  --hair: #e3e5de;
  --hair-2: #cfd3c9;

  --panel: #101311;      /* the monitor */
  --panel-2: #171b18;
  --panel-hair: #262b26;
  --panel-text: #b9bfb4;
  --panel-mute: #7e857b;  /* AA 4.5:1 on --panel and --panel-2 */

  --green: #0c7e4e;      /* data accent, light mode: AA 4.5:1 on --bg and --bg-2 */
  --green-bright: #2ee787; /* phosphor, dark mode */

  --font-sans: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "Source Serif 4", Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-frame: 0 1px 2px rgba(20, 22, 19, 0.08), 0 8px 24px rgba(20, 22, 19, 0.1);

  --container: 1240px;
  --nav-h: 64px;

  /* ---- Legacy token compatibility -------------------------------
     Content/legal/utility pages carry inline `style="…var(--x)…"`
     written against the previous design. Alias those names onto the
     new system so they resolve on-brand instead of breaking. Blue
     accents deliberately fold into the new green; danger stays red. */
  --brand-primary: var(--ink);
  --brand-accent: var(--green);
  --brand-teal: var(--green);
  --brand-surface: var(--bg-2);
  --text-main: var(--ink-2);
  --text-primary: var(--ink);
  --text-secondary: var(--mute);
  --text-dark: var(--ink);
  --text-medium: var(--mute);
  --text-muted: var(--mute);
  --text-light: var(--faint);
  --border-subtle: var(--hair-2);
  --border-gray: var(--hair);
  --bg-light: var(--bg-2);
  --bg-white: #ffffff;
  --bg-primary: var(--bg);
  --surface-secondary: var(--bg-2);
  --primary-blue: var(--green);
  --dark-blue: var(--green);
  --light-blue: #e4f2ea;      /* light green tint for icon chips */
  --accent-teal: var(--green);
  --dark-teal: var(--green);
  --success-green: var(--green);
  --success: var(--green);
  --danger-red: #c0392b;
  --danger: #c0392b;

  /* M35 (2026-08-09): named tokens for this file's own pre-existing
     .alert-success/.alert-error rule (below) -- these are NOT the same
     palette as the admin-dashboard family's --alert-success/--alert-danger
     tokens (Tailwind green-100/800 and red-100/800). This site already had
     its own on-brand light-tint/dark-text/border triad in the "Instrument
     grade" ECG-green language; extracting it preserves that, rather than
     importing the admin family's borrowed Tailwind palette across, which
     would be a real, wrong color change to the public site. */
  --alert-success-bg: #e4f2ea;
  --alert-success-text: #0b6b41;
  --alert-success-border: #bfe3ce;
  --alert-danger-bg: #fbe9e7;
  --alert-danger-text: #a1281b;
  --alert-danger-border: #f2c4bd;

  /* Waveform bar default state (paired with --green-bright for the
     "recording" state) -- a graphite data-viz shade, distinct from --ink-2/
     --mute. */
  --wave-graphite: #4d554e;

  /* Footer text/link color -- distinct from --faint, a real third muted
     shade. */
  --footer-text: #797e78;

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 3px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 19, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 22, 19, 0.08);
  --shadow-xl: var(--shadow-frame);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Anchor jumps (#pricing, #faq, #do-not-sell, …) must clear the fixed nav so
   the target heading isn't hidden underneath it. */
:target { scroll-margin-top: calc(var(--nav-h) + 1.25rem); }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* anti-flatness: 2.5% dot grid on the light ground */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--ink) 0.6px, transparent 0.6px);
  background-size: 26px 26px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

::selection { background: var(--green-bright); color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h1, h2 { text-wrap: balance; }

.display-xl { font-size: clamp(2.9rem, 7vw, 6rem); }
.display-lg { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--mute);
  line-height: 1.62;
  letter-spacing: -0.005em;
}

.num, .mono-num { font-variant-numeric: tabular-nums; }

/* Section label: mono index + hairline */
.sec-label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: clamp(1.8rem, 3vw, 3rem);
}
.sec-label b { color: var(--green); font-weight: 500; }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--hair-2); }

.section { padding: clamp(76px, 9vw, 136px) 0; }

/* data underline for one key word */
.data-underline {
  text-decoration: underline;
  text-decoration-color: var(--green-bright);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.13em;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  padding: 0.9rem 1.7rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { box-shadow: 0 0 0 3px rgba(20, 22, 19, 0.14); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn.on-dark { border-color: var(--bg); color: var(--panel); background: var(--bg); }
.btn.on-dark:hover { box-shadow: 0 0 0 3px rgba(251, 251, 249, 0.18); }
.btn.on-dark-line { border-color: var(--panel-hair); color: var(--panel-text); background: transparent; }
.btn.on-dark-line:hover { border-color: var(--bg); color: var(--bg); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.underlink {
  color: var(--ink);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--green-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.underlink:hover { color: var(--green); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(251, 251, 249, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .blip {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--green);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--mute);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.nav-cta { display: flex; align-items: center; gap: 1.6rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  color: var(--ink);
}
@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--ink);
    padding: 0.5rem 0 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 0.9rem 28px; font-size: 1rem; }
  .nav-links .nav-cta { padding: 0.9rem 28px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + clamp(20px, 4vw, 52px)) 0 clamp(40px, 5vw, 72px);
}
.hero-topline {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.hero-topline span { white-space: nowrap; }
.hero-topline .tick { color: var(--green); }

.hero h1 { margin-bottom: 1.8rem; max-width: 15ch; }
.hero-sub-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.6rem, 4.5vw, 4rem);
}
@media (max-width: 880px) {
  /* Collapse to a single flex column and unwrap the two columns so the pieces
     reorder as lede -> CTAs -> assurance -> app badges (primary CTA above the
     app badges on mobile; desktop keeps badges under the lede). */
  .hero-sub-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .hero-lede-col, .hero-action-col { display: contents; }
  .hero-sub-row .lede { order: 1; }
  .hero-sub-row .hero-ctas { order: 2; }
  .hero-sub-row .hero-assurance { order: 3; margin-top: 0; }
  .hero-sub-row .hero-badges { order: 4; margin-top: 0; }
}
.hero .lede { max-width: 36rem; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}
@media (max-width: 880px) { .hero-ctas { justify-content: flex-start; } }

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 1.2rem;
  justify-content: flex-end;
}
@media (max-width: 880px) { .hero-assurance { justify-content: flex-start; } }
.hero-assurance span::before { content: "+ "; color: var(--green); }

/* App-store badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}
.hero-badges .hb-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.3rem;
}
/* The two official badges have different internal padding: Google's PNG
   carries more whitespace, so it must render taller to look the same visual
   size as Apple's tightly-cropped SVG (matches the prior site's 40/58 pair). */
.hero-badges img { width: auto; display: block; }
.hero-badges img[src*="app-store"] { height: 40px; }
.hero-badges img[src*="google-play"] { height: 58px; }
/* On narrow screens the label + both badges don't fit one line and wrap
   awkwardly; put the label on its own line so the two badges sit together. */
@media (max-width: 620px) {
  .hero-badges { gap: 0.7rem 0.8rem; }
  .hero-badges .hb-label { flex-basis: 100%; margin: 0 0 0.1rem; }
  .hero-badges img[src*="app-store"] { height: 38px; }
  .hero-badges img[src*="google-play"] { height: 55px; }
}

/* ---------- The instrument (hero visual) ---------- */
.instrument {
  background: var(--panel);
  border: 1px solid var(--panel-hair);
  border-radius: 3px;
  box-shadow: var(--shadow-frame);
  color: var(--panel-text);
  overflow: hidden;
}
.inst-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--panel-hair);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.inst-bar .ib-left { color: var(--panel-mute); }
.inst-bar .ib-left b { color: var(--panel-text); font-weight: 500; }
.inst-bar .ib-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--green-bright);
}
.inst-bar .rec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* waveform stage */
.wave-stage {
  position: relative;
  padding: 3.4rem 1.5rem 2.4rem;
}
.wave-legend {
  position: absolute;
  top: 0.9rem;
  left: 1.5rem;
  display: flex;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panel-mute);
}
.wave-legend i {
  font-style: normal;
  display: inline-block;
  width: 14px; height: 3px;
  margin-right: 0.45rem;
  vertical-align: middle;
}
.wave-legend .lg-pt i { background: var(--wave-graphite); }
.wave-legend .lg-rn i { background: var(--green-bright); }

.wave-track {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.wave-bar {
  flex: 1;
  border-radius: 1px;
  background: var(--wave-graphite);
  transform: scaleY(0.08);
  transform-origin: center;
  transition: transform 0.5s var(--ease);
  min-width: 2px;
}
.wave-bar.rn { background: var(--green-bright); }
.wave-track.live .wave-bar { transform: scaleY(1); }

/* annotation flags */
.wave-flag {
  position: absolute;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  white-space: nowrap;
  padding-bottom: 7px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.wave-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, var(--green-bright), transparent);
}
.wave-flag.on { opacity: 1; }
/* The annotation flags overlap and spill past the mockup on narrow screens;
   they're decorative (the readout row below carries the actual scores), so
   hide them entirely on mobile rather than leave two overlapping. */
@media (max-width: 760px) {
  .wave-flag { display: none; }
}

/* playhead */
.playhead {
  position: absolute;
  top: 2.6rem;
  bottom: 1.8rem;
  left: 1.5rem;
  width: 1px;
  background: rgba(251, 251, 249, 0.85);
  box-shadow: 0 0 12px rgba(46, 231, 135, 0.55);
  animation: sweep 11s linear infinite;
  pointer-events: none;
}
@keyframes sweep {
  from { transform: translateX(0); }
  to { transform: translateX(min(1180px, calc(100vw - 120px))); }
}

/* readout row */
.inst-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.15fr;
  border-top: 1px solid var(--panel-hair);
}
@media (max-width: 880px) {
  .inst-readout { grid-template-columns: repeat(2, 1fr); }
  .inst-readout .ro-cell:last-child { grid-column: span 2; }
}
.ro-cell {
  padding: 1.1rem 1.5rem 1.2rem;
  border-left: 1px solid var(--panel-hair);
}
.ro-cell:first-child { border-left: 0; }
@media (max-width: 880px) {
  .ro-cell:nth-child(3) { border-left: 0; }
  .ro-cell:nth-child(n+3) { border-top: 1px solid var(--panel-hair); }
}
.ro-cell .ro-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-mute);
  margin-bottom: 0.4rem;
}
.ro-cell .ro-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--bg);
  line-height: 1;
}
.ro-cell.total { background: var(--panel-2); }
.ro-cell.total .ro-val { color: var(--green-bright); font-size: 1.9rem; }
.ro-cell.total .ro-val small {
  font-size: 0.85rem;
  color: var(--panel-mute);
}
.ro-cell .ro-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--panel-mute);
  margin-top: 0.45rem;
}

/* ---------- ECG divider ---------- */
.ecg-divider {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--hair-2);
}
.ecg-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.ecg-divider .blip { color: var(--green); stroke: currentColor; }

/* ---------- Stats strip ---------- */
.statstrip { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  padding: clamp(1.8rem, 3vw, 2.8rem) 1.6rem;
  border-left: 1px solid var(--hair);
}
.stat-cell:first-child { border-left: 0; }
@media (max-width: 880px) {
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
.stat-cell .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-cell .num .accent { color: var(--green); }
.stat-cell .lbl {
  font-size: 0.85rem;
  color: var(--mute);
  margin-top: 0.7rem;
  letter-spacing: -0.005em;
}
.creds-row {
  border-top: 1px solid var(--hair);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.creds-row span::before { content: "▪ "; color: var(--green); }

/* ---------- Dark (monitor) sections ---------- */
.dark-block { background: var(--panel); color: var(--panel-text); }
.dark-block h2, .dark-block h3 { color: var(--bg); }
.dark-block .sec-label { color: var(--panel-mute); }
.dark-block .sec-label b { color: var(--green-bright); }
.dark-block .sec-label::after { background: var(--panel-hair); }
.dark-block .lede { color: var(--panel-mute); }

/* ---------- Problem ---------- */
.problem-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--panel-hair);
}
@media (max-width: 880px) { .problem-cols { grid-template-columns: 1fr; } }
.problem-item {
  padding: 2.2rem 2rem 2.4rem 0;
  border-left: 1px solid var(--panel-hair);
  padding-left: 2rem;
}
.problem-item:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 880px) {
  .problem-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--panel-hair); }
  .problem-item:first-child { border-top: 0; }
}
.problem-item .p-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--green-bright);
  display: block;
  margin-bottom: 1.2rem;
}
.problem-item h3 { font-size: 1.28rem; margin-bottom: 0.7rem; letter-spacing: -0.02em; }
.problem-item p { font-size: 0.95rem; color: var(--panel-mute); line-height: 1.62; }
.problem-kicker {
  margin-top: clamp(2.8rem, 4.5vw, 4.4rem);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--bg);
  line-height: 1.2;
  max-width: 46rem;
  text-wrap: balance;
}
.problem-kicker em {
  font-style: normal;
  color: var(--green-bright);
}

/* ---------- Method (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 2.4rem 2rem 2.6rem 0;
  border-left: 1px solid var(--hair);
  padding-left: 2rem;
}
.step:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 880px) {
  .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); }
  .step:first-child { border-top: 0; }
}
.step .s-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--green);
  display: block;
  margin-bottom: 1.4rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.7rem; letter-spacing: -0.02em; }
.step p { font-size: 0.96rem; color: var(--mute); line-height: 1.62; }
.step .s-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--hair-2);
  border-radius: 2px;
  padding: 0.3rem 0.65rem;
}

/* ---------- Frame (screenshots / video) ---------- */
.frame {
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  background: var(--panel);
  position: relative;
}
.frame img { width: 100%; }
.frame-caption {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--mute);
}
.frame-caption .fc-id {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
.figure { margin-top: clamp(2.8rem, 4.5vw, 4.4rem); }
.figure.clickable .frame { cursor: pointer; }
.figure.clickable .frame img { transition: opacity 0.3s var(--ease), transform 0.6s var(--ease); opacity: 0.96; }
.figure.clickable:hover .frame img { opacity: 1; transform: scale(1.015); }
.play-marker { position: absolute; inset: 0; display: grid; place-items: center; }
.play-marker .pm-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(251, 251, 249, 0.7);
  background: rgba(16, 19, 17, 0.6);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.figure.clickable:hover .pm-btn { background: var(--green); border-color: var(--green); color: var(--ink); transform: scale(1.06); }
.pm-duration {
  position: absolute;
  bottom: 12px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: rgba(16, 19, 17, 0.8);
  border-radius: 2px;
  padding: 0.25rem 0.6rem;
}

/* ---------- Platform index ---------- */
.index-list { border-top: 1px solid var(--ink); counter-reset: idx; }
.index-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 0.95fr) minmax(0, 1.5fr) 60px;
  gap: 1.8rem;
  align-items: baseline;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--hair);
  position: relative;
  transition: background 0.25s var(--ease);
}
.index-row::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px;
  width: 0;
  background: var(--green);
  transition: width 0.4s var(--ease);
}
.index-row:hover::before { width: 100%; }
.index-row .i-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--faint);
  transition: color 0.2s ease;
}
.index-row:hover .i-num { color: var(--green); }
.index-row h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
.index-row p { font-size: 0.95rem; color: var(--mute); line-height: 1.6; }
.index-row .i-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
  transition: color 0.2s ease;
}
.index-row:hover .i-meta { color: var(--green); }
@media (max-width: 760px) {
  .index-row { grid-template-columns: 56px 1fr; }
  .index-row p { grid-column: 2; }
  .index-row .i-meta { display: none; }
}

/* ---------- Figure pair ---------- */
.fig-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.8rem, 3vw, 3rem);
}
@media (max-width: 880px) { .fig-pair { grid-template-columns: 1fr; } }
.spec-list {
  margin-top: clamp(2.4rem, 4vw, 3.6rem);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) { .spec-list { grid-template-columns: 1fr; } }
.spec-item {
  padding: 1.5rem 2rem 1.6rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.96rem;
  color: var(--mute);
  line-height: 1.6;
  display: flex;
  gap: 1rem;
}
.spec-item:nth-child(even) { border-left: 1px solid var(--hair); padding-left: 2rem; }
@media (max-width: 760px) { .spec-item:nth-child(even) { border-left: 0; padding-left: 0; } }
.spec-item .sp-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--green);
  padding-top: 0.3rem;
  white-space: nowrap;
}
.spec-item strong { color: var(--ink); font-weight: 600; }

/* ---------- Admin ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.8rem, 5vw, 5.5rem);
  align-items: center;
}
@media (max-width: 980px) { .admin-grid { grid-template-columns: 1fr; } }
.lms-row {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 1.7rem 0 1.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
  line-height: 2.1;
}
.lms-row i { font-style: normal; color: var(--green); margin: 0 0.75rem; }
.admin-list { list-style: none; }
.admin-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.96rem;
  color: var(--mute);
  display: flex;
  gap: 1rem;
}
.admin-list li:last-child { border-bottom: 0; }
.admin-list .sp-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--green);
  padding-top: 0.3rem;
}
.admin-list strong { color: var(--ink); font-weight: 600; }

/* ---------- Founder ---------- */
.founder { background: var(--bg-2); border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.founder-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(2.8rem, 5vw, 5.5rem);
  align-items: center;
}
@media (max-width: 880px) { .founder-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.founder-photo {
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  max-width: 300px;
  position: relative;
}
.founder-photo img { filter: grayscale(1) contrast(1.05); }
.founder-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--hair-2);
  background: var(--bg);
}
.founder-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 1.7rem;
  text-wrap: balance;
}
.founder-quote em { font-style: normal; border-bottom: 3px solid var(--green-bright); }
.founder-byline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.founder-byline span { color: var(--faint); }
.founder-bio { font-size: 0.98rem; color: var(--mute); max-width: 38rem; line-height: 1.65; }
.podcast-line {
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hair-2);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.podcast-line:hover { opacity: 0.72; }
.podcast-line .pl-txt small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.25rem;
}
.podcast-line .pl-txt strong { display: block; font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.podcast-line .pl-txt span { font-size: 0.82rem; color: var(--mute); }

/* ---------- Security ---------- */
.security-grid {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .security-grid { grid-template-columns: 1fr; } }
.security-item {
  padding: 2rem 1.8rem 2.2rem 0;
  border-left: 1px solid var(--hair);
  padding-left: 1.8rem;
}
.security-item:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 980px) {
  .security-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .security-item:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 620px) {
  .security-item { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--hair); }
  .security-item:first-child { border-top: 0; }
}
.security-item .s-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 1.2rem;
}
.security-item h3 { font-size: 1.16rem; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.security-item p { font-size: 0.92rem; color: var(--mute); line-height: 1.62; }

/* ---------- Pricing ---------- */
.rates {
  border: 1px solid var(--ink);
  border-radius: 3px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: var(--bg);
}
@media (max-width: 980px) { .rates { grid-template-columns: 1fr; } }
.rate-col {
  padding: 2.4rem 2.2rem 2.5rem;
  border-left: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  position: relative;
}
.rate-col:first-child { border-left: 0; }
@media (max-width: 980px) {
  .rate-col { border-left: 0; border-top: 1px solid var(--hair); }
  .rate-col:first-child { border-top: 0; }
}
.rate-col.featured {
  background: var(--panel);
  color: var(--panel-text);
  border-left-color: var(--panel);
}
.rate-col.featured h3 { color: var(--bg); }
.rate-col.featured + .rate-col { border-left-color: var(--panel); }
.rate-col .r-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 1.2rem;
  min-height: 1em;
}
.rate-col.featured .r-tag { color: var(--green-bright); }
.rate-col h3 { font-size: 1.3rem; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.rate-col .r-for { font-size: 0.88rem; color: var(--faint); margin-bottom: 1.7rem; }
.rate-col.featured .r-for { color: var(--panel-mute); }
.rate-col .r-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.rate-col.featured .r-amount { color: var(--bg); }
.rate-col .r-amount small {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.rate-col.featured .r-amount small { color: var(--panel-mute); }
.rate-col ul { list-style: none; margin: 1.8rem 0 2.1rem; flex: 1; }
.rate-col ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.92rem;
  color: var(--mute);
  display: flex;
  gap: 0.7rem;
}
.rate-col.featured ul li { border-bottom-color: var(--panel-hair); color: var(--panel-mute); }
.rate-col ul li::before { content: "+"; color: var(--green); font-family: var(--font-mono); }
.rate-col.featured ul li::before { color: var(--green-bright); }
.rate-col ul li:last-child { border-bottom: 0; }
.price-note {
  text-align: center;
  margin-top: 1.9rem;
  font-size: 0.94rem;
  color: var(--mute);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 1.5rem 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--green); }
.faq-q .fx {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .fx { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner {
  padding: 0 0.2rem 1.6rem;
  font-size: 0.97rem;
  color: var(--mute);
  max-width: 46rem;
  line-height: 1.65;
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta .ecg-bg {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 120px;
  color: var(--panel-hair);
  opacity: 0.9;
  pointer-events: none;
}
.final-cta .ecg-bg path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.final-cta .container { position: relative; }
.final-cta .sec-label { justify-content: center; }
.final-cta .sec-label::after { display: none; }
.final-cta h2 { max-width: 44rem; margin: 0 auto 1.5rem; }
.final-cta .lede { max-width: 34rem; margin: 0 auto 2.6rem; }
.final-cta .cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1.6rem; }
.final-cta .expectation {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panel-mute);
}

/* ---------- Footer ---------- */
footer {
  background: var(--panel);
  color: var(--panel-mute);
  border-top: 1px solid var(--panel-hair);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer h2 {
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6; /* undo the h1,h2,h3 base line-height: 1.02 */
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
footer .f-col a {
  display: block;
  color: var(--panel-mute);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}
footer .f-col a:hover { color: var(--bg); }
.footer-brand .brand { color: var(--bg); }
.footer-brand .brand .blip { color: var(--green-bright); }
.footer-brand p { line-height: 1.7; margin-top: 1rem; max-width: 20rem; }
.footer-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-creds span::before { content: "▪ "; color: var(--green-bright); }
.footer-bottom {
  border-top: 1px solid var(--panel-hair);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--footer-text);
}
.footer-bottom a { color: var(--footer-text); text-decoration: none; }
.footer-bottom a:hover { color: var(--bg); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ---------- Video lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox .lb-overlay { position: absolute; inset: 0; background: rgba(16, 19, 17, 0.93); }
.lightbox .lb-content {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--panel-hair);
  border-radius: 3px;
  overflow: hidden;
  background: #000;
}
.lightbox iframe { width: 100%; height: 100%; border: 0; }
.lightbox .lb-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: 0;
  color: var(--bg);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

/* ============================================================
   PRESERVED / COMPAT COMPONENTS
   Components the full pre-login site needs that the homepage
   prototype did not include: accessibility helpers, form
   controls, the login + MFA modals, the inline login section,
   and the shared shells used by legal/utility/auth-flow pages.
   All restyled onto the instrument-grade tokens above.
   ============================================================ */

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  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: 8px;
  z-index: 100000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 3px 3px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease-in-out;
}
.skip-link:focus { top: 0; }

/* Visible keyboard focus, consistent across the site */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Form controls ---------- */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-2);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12, 126, 78, 0.14);
}
input::placeholder,
textarea::placeholder { color: var(--faint); }

/* Primary/submit buttons used by utility + auth-flow pages
   (they carry class="btn btn-primary" or class="btn-submit"). */
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { box-shadow: 0 0 0 3px rgba(20, 22, 19, 0.14); }
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn-submit:hover { box-shadow: 0 0 0 3px rgba(20, 22, 19, 0.14); }
.btn-submit:disabled,
.btn-submit[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* ---------- Inline login section (homepage) ---------- */
.login-section {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
}
.login-container {
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  box-shadow: var(--shadow-frame);
}
.login-container h2 { font-size: 1.5rem; }
.forgot-password { text-decoration: none; }
.forgot-password:hover { text-decoration: underline; }

/* ---------- Generic card / alert / info shells ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  box-shadow: var(--shadow-frame);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.alert { font-size: 0.92rem; line-height: 1.5; }
.alert-success { background: var(--alert-success-bg); color: var(--alert-success-text); border: 1px solid var(--alert-success-border); }
.alert-error { background: var(--alert-danger-bg); color: var(--alert-danger-text); border: 1px solid var(--alert-danger-border); }
.info-box {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
}
.back-link:hover { text-decoration: underline; }

/* Password-strength checklist (reset-password) */
.password-requirements { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.requirement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--green);
  padding: 0.15rem 0;
}
.requirement.unmet { color: var(--mute); }
.requirement-icon { font-family: var(--font-mono); }

/* ---------- Spinner (lti-auth / loading states) ---------- */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--hair-2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: nk-spin 0.8s linear infinite;
}
@keyframes nk-spin { to { transform: rotate(360deg); } }

/* ---------- Login modal (nav-triggered) ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 19, 17, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal.active { display: flex; }
.modal-content {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  box-shadow: var(--shadow-frame);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--mute);
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); }

/* ---------- MFA modals (self-injected by mfa-*-modal.js) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 19, 17, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mfa-enrollment-modal,
.mfa-challenge-modal {
  width: min(500px, 100%);
  animation: nk-slideup 0.3s var(--ease);
}
.mfa-enrollment-modal .modal-content,
.mfa-challenge-modal .modal-content {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  box-shadow: var(--shadow-frame);
  padding: clamp(1.8rem, 3vw, 2.5rem);
}
@keyframes nk-slideup {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.mfa-method-button { transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.mfa-method-button:hover {
  border-color: var(--green);
  background: rgba(14, 143, 88, 0.05);
}
.mfa-enrollment-modal input[type="tel"],
.mfa-enrollment-modal input[type="text"],
.mfa-challenge-modal input[type="text"] {
  font-family: var(--font-mono);
}
input[placeholder="000000"],
input[placeholder="XXXXXXXX"] {
  letter-spacing: 0.4rem;
  text-align: center;
  font-size: 1.4rem;
}
.mfa-recovery-codes-display { padding: 1.4rem; }
.mfa-recovery-codes-display > div[style*="font-family"] {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
  user-select: all;
}
.mfa-enrollment-modal .form-group,
.mfa-challenge-modal .form-group { margin-bottom: 1rem; }
.mfa-back-button {
  background: none;
  border: 0;
  color: var(--green);
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.mfa-back-button:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .mfa-enrollment-modal .modal-content,
  .mfa-challenge-modal .modal-content { padding: 1.5rem; }
}

/* ============================================================
   INNER CONTENT PAGES (about, contact, support, SEO landing,
   legal). Lightweight building blocks so secondary pages share
   the instrument-grade system without the homepage's hero.
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + clamp(44px, 7vw, 88px)) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--hair);
}
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero .lede { max-width: 46rem; }

/* Long-form readable column */
.prose { max-width: 45rem; }
.prose > p { margin-bottom: 1.15rem; color: var(--ink-2); line-height: 1.75; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 2.6rem 0 1rem;
}
.prose h3 { font-size: 1.2rem; letter-spacing: -0.015em; margin: 1.8rem 0 0.6rem; }
.prose a { color: var(--green); font-weight: 550; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--font-mono);
}
.prose strong { color: var(--ink); font-weight: 600; }

/* Bordered callout (bios, notes) */
.callout {
  border: 1px solid var(--hair-2);
  border-left: 2px solid var(--green);
  background: var(--bg-2);
  border-radius: 3px;
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
}
.callout p { color: var(--mute); line-height: 1.65; margin: 0; }

/* Simple centered CTA band for inner pages */
.cta-band {
  background: var(--panel);
  color: var(--panel-text);
  border-radius: 3px;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
}
.cta-band h2 { color: var(--bg); margin-bottom: 1rem; }
.cta-band p { color: var(--panel-mute); max-width: 40rem; margin: 0 auto 1.8rem; }

/* Contact / info cards grid reused by contact + support pages */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.info-card {
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  padding: 1.6rem;
  background: var(--bg);
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.info-card p { color: var(--mute); font-size: 0.95rem; line-height: 1.6; }
.info-card a { color: var(--green); font-weight: 550; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* ============================================================
   SEO LANDING PAGE HELPERS (compare panels, credential chips,
   metric band). Shared across the six landing pages.
   ============================================================ */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--hair-2);
  border-radius: 2px;
  padding: 0.45rem 0.8rem;
}
.chip::before { content: "+ "; color: var(--green); }

.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: 1.8rem; }
.compare-col + .compare-col { border-left: 1px solid var(--hair); }
@media (max-width: 720px) {
  .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--hair); }
}
.compare-col.pos { background: var(--panel); color: var(--panel-text); border-left-color: var(--panel); }
.compare-col .cc-head {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.2rem;
}
.compare-col.pos .cc-head { color: var(--green-bright); }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  line-height: 1.55;
  font-size: 0.95rem;
  color: var(--mute);
}
.compare-col.pos li { color: var(--panel-text); }
.compare-col.neg li::before { content: "\00d7"; position: absolute; left: 0; color: var(--faint); font-family: var(--font-mono); }
.compare-col.pos li::before { content: "+"; position: absolute; left: 0; color: var(--green-bright); font-family: var(--font-mono); }

.compare-table-wrap { overflow-x: auto; margin: 0 0 clamp(2.4rem, 4vw, 3.4rem); border: 1px solid var(--ink); border-radius: 3px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare-table th, .compare-table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--bg-2);
  border-bottom: 1px solid var(--ink);
}
.compare-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td.yes { color: var(--green); font-family: var(--font-mono); }
.compare-table td.no { color: var(--faint); font-family: var(--font-mono); }
.compare-table tbody tr.row-nk td, .compare-table tbody tr.row-nk th { background: var(--bg-2); }

.metric-band { background: var(--panel); color: var(--panel-text); border-radius: 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .metric-grid { grid-template-columns: 1fr; } }
.metric {
  padding: clamp(2rem, 4vw, 3rem) 1.6rem;
  text-align: center;
  border-left: 1px solid var(--panel-hair);
}
.metric:first-child { border-left: 0; }
@media (max-width: 720px) {
  .metric { border-left: 0; border-top: 1px solid var(--panel-hair); }
  .metric:first-child { border-top: 0; }
}
.metric .m-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--bg);
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric .m-lbl { color: var(--panel-mute); font-size: 0.9rem; margin-top: 0.6rem; }
