/* ==========================================================================
   NexoAI — landing page stylesheet (first draft)

   Tokens below are canonical, from source/BRAND-LOCK.md. Where the older
   system (tokens-existing.css / DESIGN-SYSTEM-EXISTING.md) disagrees,
   BRAND-LOCK wins: #5C84FC replaces #6D8BFF, #41CE92 replaces #3ECF8E,
   the field is #000, and headings are Poppins (not a mono wordmark).

   Colour law, load-bearing:
     Blue  #5C84FC — the ONLY interaction colour. Every clickable thing.
     Green #41CE92 — value/success ONLY. On this page it appears in exactly
                     one place: the "You save vs raw" pricing column, plus
                     the AI mark in the wordmark.
     Amber #E8B84B — unfilled [NEEDS NUMBER FROM USER] gaps ONLY. Any amber
                     pixel on this page is a number that has not shipped.

   No framework, no build step, no JS required for content access.
   ========================================================================== */

/* ---------- fonts: CDN with full local fallback stacks, no build step ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* --- colour: canonical (BRAND-LOCK.md) --- */
  --nexo-blue: #5C84FC;
  --nexo-green: #41CE92;
  --black: #000000;
  --white: #FFFFFF;

  /* --- colour: supporting neutrals (derived, no new hues) --- */
  --bg: var(--black);
  --bg-elev: #0E1116;
  --bg-elev-2: #161A21;
  --border: #232A33;
  --border-strong: #333B45;
  --text: #EDEFF2;
  --text-muted: #8A94A1;
  --danger: #F87171;
  --amber: #E8B84B;

  /* Interactive boundary. --border-strong is 1.85:1 on black, which fails
     the WCAG 1.4.11 non-text 3:1 threshold, so it cannot carry the edge of
     a control on its own. Same hue (213deg) and saturation as
     --border-strong with lightness raised: 3.38:1 on black. */
  --border-interactive: #556273;

  /* Derived accent states. Blue only — there is no second accent. */
  --blue-hover: #7A9BFD;
  --blue-wash: rgb(92 132 252 / 0.10);
  --blue-soft: rgb(92 132 252 / 0.35);
  --green-wash: rgb(65 206 146 / 0.10);
  --amber-wash: rgb(232 184 75 / 0.12);
  --amber-soft: rgb(232 184 75 / 0.40);
  --focus-ring: rgb(92 132 252 / 0.55);

  /* --- type --- */
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Fluid scale, anchored 375px -> 1440px. Steps derive from the existing
     12/14/16/20/28/40/56 ramp; 72 added for the hero only. */
  --t-12: 0.75rem;
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-20: clamp(1.125rem, 0.35vw + 1.05rem, 1.25rem);
  --t-28: clamp(1.5rem, 1vw + 1.25rem, 1.75rem);
  --t-40: clamp(1.875rem, 2vw + 1.375rem, 2.5rem);
  --t-56: clamp(2.25rem, 3.6vw + 1.4rem, 3.5rem);

  --lh-tight: 1.05;
  --lh-head: 1.15;
  --lh-body: 1.6;
  --ls-head: -0.02em;

  /* --- space: strict 4px rhythm --- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --section-y: var(--s-24);      /* 96px desktop, 56px mobile */
  --container: 1120px;
  --gutter: var(--s-6);

  /* --- shape --- */
  --r-sm: 6px;
  --r-btn: 10px;
  --r-code: 12px;
  --r-card: 14px;
  --r-pill: 999px;
  --hairline: 1px solid var(--border);

  /* --- motion --- */
  --dur-fast: 140ms;
  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  --nav-h: 56px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--s-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-16);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-56); line-height: var(--lh-tight); font-weight: 700; }
h2 { font-size: var(--t-40); }
h3 { font-size: var(--t-20); }
h4 { font-size: var(--t-16); }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

code, pre, kbd, samp { font-family: var(--font-mono); font-size: var(--t-14); }

a { color: var(--nexo-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

/* Focus: one visible treatment on every interactive, no exceptions. */
:focus-visible {
  outline: 2px solid var(--nexo-blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* Only suppress the default ring where :focus-visible is honoured. */
:is(a, button, [tabindex], summary):focus:not(:focus-visible) { outline: none; }

::selection { background: var(--blue-soft); color: var(--white); }

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); border-top: var(--hairline); }
.section:first-of-type { border-top: 0; }

.section__head { max-width: 68ch; }
.section__kicker {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.section__sub {
  margin-top: var(--s-5);
  color: var(--text-muted);
  font-size: var(--t-18);
  max-width: 64ch;
}

.measure { max-width: 68ch; }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: calc(-1 * var(--s-16));
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--nexo-blue);
  color: var(--black);
  font-weight: 600;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-2); color: var(--black); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   4. WORDMARK
   Poppins "nexo" + green "AI" superscript. The green AI is the load-bearing
   brand signal: never recoloured, never dropped, never set in mono.
   ========================================================================== */
.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--t-20);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}
.wordmark:hover { color: var(--text); }
.wordmark__ai {
  color: var(--nexo-green);
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 0.1em;
  transform: translateY(-0.1em);
}

/* ==========================================================================
   5. BUTTONS
   Blue is the only interaction colour. Primary uses BLACK text on Blue:
   6.16:1. White on Blue is 3.41:1 and fails AA for a 16px label.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-btn);
  font-family: var(--font-sans);
  font-size: var(--t-14);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn--primary { background: var(--nexo-blue); color: var(--black); }
.btn--primary:hover { background: var(--blue-hover); color: var(--black); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-interactive);
}
.btn--ghost:hover { background: var(--bg-elev-2); color: var(--text); border-color: var(--text-muted); }

/* Text-link CTA (the A1 secondary). Blue, with an arrow that nudges. */
.btn--link {
  min-height: 44px;
  padding: var(--s-3) 0;
  color: var(--nexo-blue);
  background: none;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--blue-soft);
}
.btn--link:hover { color: var(--blue-hover); text-decoration-color: currentColor; }
.btn--link .arrow { transition: transform var(--dur) var(--ease); }
.btn--link:hover .arrow { transform: translateX(3px); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-8);
}

/* ==========================================================================
   6. GAP PLACEHOLDER  — [NEEDS NUMBER FROM USER]
   Amber, and amber is used for nothing else. Deliberately loud: it must be
   impossible to ship this page without noticing them.
   ========================================================================== */
.gap {
  background: var(--amber-wash);
  color: var(--amber);
  border: 1px dashed var(--amber-soft);
  border-radius: var(--r-sm);
  padding: 0 var(--s-1);
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 500;
  white-space: nowrap;
  cursor: help;
}
.gap--block {
  display: block;
  white-space: normal;
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-3);
  line-height: 1.5;
  cursor: help;
}
.gap-legend {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px dashed var(--amber-soft);
  border-radius: var(--r-card);
  background: var(--amber-wash);
  color: var(--amber);
  font-size: var(--t-14);
  margin-bottom: var(--s-12);
}
.gap-legend strong { font-family: var(--font-mono); font-weight: 500; }

/* ==========================================================================
   7. NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgb(0 0 0 / 0.82);
  backdrop-filter: blur(10px);
  border-bottom: var(--hairline);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
}
.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--t-14);
  font-weight: 500;
  padding: var(--s-2) 0;
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: var(--s-6); }
.nav .btn { min-height: 36px; padding: var(--s-2) var(--s-4); }

/* ==========================================================================
   8. HERO  — code is the hero visual
   ========================================================================== */
.hero { padding-block: var(--s-20) var(--s-16); border-top: 0; }
/* minmax(0,1fr) + min-width:0 on the children is load-bearing: a grid item
   defaults to min-width:auto, so the wide <pre> inside the code pane forces
   the implicit column past the viewport instead of scrolling inside it. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-12);
  align-items: start;
}
.hero__grid > * { min-width: 0; }
.hero__copy { max-width: 46ch; }
/* The headline is long (two sentences, one carrying a placeholder), so it is
   set a step down from --t-56 and allowed a wider measure than the body.
   Six ragged lines at full size read as a wall; four is the target. */
.hero__copy h1 { font-size: var(--t-40); max-width: 22ch; }
.hero__sub {
  margin-top: var(--s-6);
  font-size: var(--t-18);
  color: var(--text-muted);
  max-width: 52ch;
}

/* ---------- the code pane: request above, real response below ---------- */
.codepane {
  border: var(--hairline);
  border-radius: var(--r-code);
  background: var(--bg-elev);
  overflow: hidden;
}
.codepane__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--hairline);
  background: var(--bg-elev-2);
}
.codepane__label {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.codepane__status {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--text-muted);
}
.codepane + .codepane { margin-top: var(--s-4); }
.codepane__body { margin: 0; padding: var(--s-4); overflow-x: auto; }
.codepane__body code { display: block; line-height: 1.7; white-space: pre; }

.code-caption {
  margin-top: var(--s-4);
  font-size: var(--t-14);
  font-style: italic;
  color: var(--text-muted);
  max-width: 56ch;
}

/* Syntax theme. Restrained: three roles, not a rainbow. Blue is reserved
   for interaction, so it does NOT appear as a syntax token. */
.tok-cmd { color: var(--text); font-weight: 500; }
.tok-flag { color: var(--text-muted); }
.tok-str { color: #A8C7B4; }        /* desaturated, well clear of --nexo-green */
.tok-key { color: #C3B6E8; }        /* JSON keys */
.tok-num { color: #D8C48F; }
.tok-comment { color: var(--text-muted); font-style: italic; }
.tok-punct { color: var(--text-muted); }

/* copy button on a code pane */
.copy-btn {
  font-family: var(--font-sans);
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--nexo-blue);
  background: transparent;
  border: 1px solid var(--border-interactive);
  border-radius: var(--r-sm);
  padding: var(--s-1) var(--s-3);
  min-height: 28px;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.copy-btn:hover { background: var(--blue-wash); border-color: var(--nexo-blue); }

/* ==========================================================================
   9. PROOF ROW  — spec strip, not cards
   ========================================================================== */
.proof {
  padding-block: var(--s-12);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.proof__list {
  list-style: none;
  display: grid;
  gap: var(--s-8);
}
.proof__item {
  display: flex;
  gap: var(--s-3);
  font-size: var(--t-14);
  line-height: 1.55;
}
.proof__mark {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--text-muted);
  padding-top: 2px;
}
/* "$5 in free credits" is a value statement -> the amount may carry Green. */
.value { color: var(--nexo-green); font-weight: 500; }

/* ==========================================================================
   10. WHY A RELAY  — the objection, answered above the price
   ========================================================================== */
.concession {
  font-size: var(--t-18);
  line-height: 1.65;
  max-width: 68ch;
  margin-top: var(--s-6);
}
.concession strong { color: var(--text); font-weight: 600; }

.reasons {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-12);
}
.reason {
  border: var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-elev);
  padding: var(--s-6);
}
.reason__n {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--text-muted);
  border: var(--hairline);
  border-radius: var(--r-pill);
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.reason__title { margin-bottom: var(--s-4); }
.reason dl { margin: 0; display: grid; gap: var(--s-3); }
.reason dt {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--s-1);
}
.reason dd { margin: 0; font-size: var(--t-14); line-height: 1.6; }
.reason dd.limit { color: var(--text-muted); }
.reason code { color: var(--text); background: var(--bg-elev-2); padding: 0 var(--s-1); border-radius: 4px; }
.reason blockquote {
  margin: var(--s-2) 0;
  padding-left: var(--s-3);
  border-left: 2px solid var(--border-strong);
  color: var(--text-muted);
  font-style: italic;
}
/* Reason 3 is unconfirmed for NexoAI -> flagged end to end. */
.reason--unconfirmed { border-color: var(--amber-soft); border-style: dashed; }

.summary-line {
  margin-top: var(--s-10);
  padding: var(--s-6);
  border: var(--hairline);
  border-left: 2px solid var(--nexo-blue);
  border-radius: var(--r-card);
  background: var(--bg-elev);
  font-size: var(--t-16);
  line-height: 1.65;
}

/* ==========================================================================
   11. PRICING  — Green lives here and nowhere else
   ========================================================================== */
.honest-para {
  margin-top: var(--s-8);
  padding: var(--s-6);
  border: var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-elev);
  max-width: 76ch;
  line-height: 1.65;
}

.table-wrap { margin-top: var(--s-10); }
.table-note {
  font-size: var(--t-12);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--s-4);
  max-width: 84ch;
}
.ptable {
  width: 100%;
  border-collapse: collapse;
  border: var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  font-size: var(--t-14);
}
.ptable caption {
  caption-side: top;
  text-align: left;
  font-size: var(--t-12);
  color: var(--text-muted);
  padding-bottom: var(--s-3);
}
.ptable th, .ptable td {
  padding: var(--s-4);
  text-align: left;
  border-bottom: var(--hairline);
  vertical-align: top;
}
.ptable thead th {
  background: var(--bg-elev-2);
  font-family: var(--font-sans);
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}
.ptable tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.ptable tbody tr:last-child :is(th, td) { border-bottom: 0; }
.ptable .num { font-family: var(--font-mono); color: var(--text); }
.ptable .num small { display: block; color: var(--text-muted); font-size: var(--t-12); margin-top: var(--s-1); }
/* The one Green column. Header stays Green; empty cells stay amber, because
   a savings delta we cannot compute must never look computed. */
.ptable .col-save { color: var(--nexo-green); }
.ptable td.col-save { background: var(--green-wash); }

.pricing__grid { display: grid; gap: var(--s-10); margin-top: var(--s-10); }
.footnote-card, .plan-card {
  border: var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-elev);
  padding: var(--s-6);
}
.footnote-card h3, .plan-card h3 { font-size: var(--t-16); margin-bottom: var(--s-4); }
.footnote-card p { font-size: var(--t-14); color: var(--text-muted); line-height: 1.6; }
.plan-list { list-style: none; display: grid; gap: var(--s-5); }
.plan-list li { font-size: var(--t-14); line-height: 1.6; }
.plan-list b { display: block; color: var(--text); font-weight: 600; margin-bottom: var(--s-1); }
.plan-list span { color: var(--text-muted); }

/* ==========================================================================
   12. QUICKSTART
   ========================================================================== */
.steps { list-style: none; counter-reset: step; margin-top: var(--s-12); }
.step {
  counter-increment: step;
  position: relative;
  padding-left: var(--s-12);
  padding-bottom: var(--s-12);
  border-left: var(--hairline);
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  content: counter(step);
  position: absolute;
  left: calc(-1 * var(--s-4));
  top: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: var(--hairline);
  border-radius: var(--r-pill);
  background: var(--bg-elev-2);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--text-muted);
}
.step__title { margin-bottom: var(--s-3); }
.step__body { color: var(--text-muted); font-size: var(--t-14); max-width: 64ch; line-height: 1.6; }
.step__body code { color: var(--text); }
.step .codepane { margin-top: var(--s-5); }

/* tabs: Python / JavaScript — alternatives, so disclosure is justified */
.tabs { margin-top: var(--s-5); }
.tabs__list {
  display: flex;
  gap: var(--s-1);
  border-bottom: var(--hairline);
  margin-bottom: var(--s-4);
}
.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--t-14);
  font-weight: 500;
  padding: var(--s-3) var(--s-4);
  min-height: 44px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: var(--nexo-blue); border-bottom-color: var(--nexo-blue); }
.tabpanel[hidden] { display: none; }

.errors { margin-top: var(--s-8); display: grid; gap: var(--s-4); }
.errors dt {
  font-family: var(--font-mono);
  font-size: var(--t-14);
  color: var(--danger);
  margin-bottom: var(--s-1);
}
.errors dd { margin: 0; font-size: var(--t-14); color: var(--text-muted); line-height: 1.6; max-width: 68ch; }

/* ==========================================================================
   13. FREE CREDITS — the quietest section on the page, on purpose
   ========================================================================== */
.free { text-align: left; }
.free__inner { max-width: 64ch; margin-inline: auto; }
.free__list { list-style: none; display: grid; gap: var(--s-5); margin-top: var(--s-8); }
.free__list li {
  display: flex;
  gap: var(--s-3);
  font-size: var(--t-16);
  line-height: 1.6;
}
.free__list .bullet { flex: none; color: var(--text-muted); font-family: var(--font-mono); padding-top: 1px; }

/* ==========================================================================
   14. STATUS — an instrument, not a victory lap
   ========================================================================== */
.status__state {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding: var(--s-5) var(--s-6);
  border: var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-elev);
}
.status__state h3 { font-size: var(--t-20); }
/* Neutral, NOT green: keeping the operational dot green would leak the
   value semantic into ambient chrome. */
.dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--text-muted);
  box-shadow: 0 0 0 4px rgb(138 148 161 / 0.15);
}
.status__supporting { margin-top: var(--s-4); font-size: var(--t-14); color: var(--text-muted); }

.components { list-style: none; margin-top: var(--s-8); border: var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.components li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hairline);
  font-size: var(--t-14);
}
.components li:last-child { border-bottom: 0; }
.components .name { font-weight: 500; }
.components .addr { font-family: var(--font-mono); font-size: var(--t-12); color: var(--text-muted); }
.components .state { margin-left: auto; font-size: var(--t-12); color: var(--text-muted); font-family: var(--font-mono); }

.metrics { display: grid; gap: var(--s-4); margin-top: var(--s-8); }
.metric {
  border: var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-elev);
  padding: var(--s-5);
}
.metric dt { font-size: var(--t-12); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.metric dd { margin: var(--s-3) 0 0; font-family: var(--font-mono); font-size: var(--t-20); }

.incident {
  margin-top: var(--s-10);
  border: var(--hairline);
  border-radius: var(--r-code);
  background: var(--bg-elev);
  overflow: hidden;
}
.incident__bar {
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--hairline);
  background: var(--bg-elev-2);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--text-muted);
}
.incident pre { margin: 0; padding: var(--s-5); overflow-x: auto; line-height: 1.7; }
.incident .st { color: var(--text); font-weight: 500; }
.incident .field { color: var(--text-muted); }

/* ==========================================================================
   15. CLOSING CTA + FOOTER
   ========================================================================== */
.close {
  text-align: center;
  padding-block: var(--s-20);
  border-top: var(--hairline);
}
.close .cta-row { justify-content: center; }

.footer { border-top: var(--hairline); padding-block: var(--s-12); }
.footer__top { display: flex; flex-wrap: wrap; gap: var(--s-8); justify-content: space-between; }
.footer__base { font-family: var(--font-mono); font-size: var(--t-12); color: var(--text-muted); margin-top: var(--s-3); }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;              /* touch target */
  color: var(--text-muted);
  font-size: var(--t-14);
  text-decoration: none;
}
.footer__links a:hover { color: var(--text); }
.footer__guard {
  margin-top: var(--s-10);
  padding-top: var(--s-5);
  border-top: var(--hairline);
  font-size: var(--t-12);
  color: var(--amber);
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* ==========================================================================
   16. IMAGE SLOTS — placeholders for the Art Director. Dimensions and
   direction live in DESIGN-NOTES.md; nothing is generated here.
   ========================================================================== */
.slot {
  display: grid;
  place-items: center;
  gap: var(--s-2);
  padding: var(--s-8) var(--s-5);
  border: 1px dashed var(--border-interactive);
  border-radius: var(--r-card);
  background: var(--bg-elev);
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  line-height: 1.6;
}
.slot b { color: var(--text); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.slot em { font-style: normal; max-width: 52ch; }
.slot__dims { color: var(--text); }

/* ==========================================================================
   17. RESPONSIVE — mobile-first above, enhancements here
   ========================================================================== */
@media (min-width: 600px) {
  .proof__list { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .reasons { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .pricing__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  /* Code column takes the larger share: it is the hero visual, and the
     request pane must not clip. Measured at 1440px — the request fits at
     13px mono; only the response's long content string scrolls, which is a
     real line from the copy and is keyboard-reachable via the pane. */
  .hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-12); align-items: center; }
  .hero { padding-block: var(--s-24) var(--s-20); }
  .hero__code .codepane__body,
  .hero__code .codepane__body code { font-size: 12px; }
}

@media (min-width: 1280px) {
  .hero__code .codepane__body,
  .hero__code .codepane__body code { font-size: 13px; }
}

/* ---- below the desktop container: tighten the vertical rhythm ---- */
@media (max-width: 719px) {
  :root { --section-y: 56px; --gutter: 20px; }

  .nav__links { display: none; }          /* links repeat in the footer */

  /* Code panes go full-bleed to the gutter so a long curl has room. */
  .codepane { border-radius: var(--r-sm); }
  .codepane__body { padding: var(--s-4) var(--s-4); }

  .hero { padding-block: var(--s-12) var(--s-12); }
  .hero__grid { gap: var(--s-10); }

  .step { padding-left: var(--s-8); }
  .step::before { width: 28px; height: 28px; left: calc(-1 * var(--s-4) + 2px); }

  .cta-row { gap: var(--s-3); }
  .cta-row .btn--primary, .close .btn--primary { width: 100%; }

  .footer__top { flex-direction: column; gap: var(--s-6); }
}

/* ---- pricing table -> stacked cards below 900px.
   Its own breakpoint, not the 719px block: five columns (model + three rate
   columns + the savings delta) need ~900px before they fit, and at 768px the
   real table overflowed the viewport. No horizontal scroll container here —
   scrolling would hide the savings column, which is the column the reader
   came for. Each cell is labelled from its column header via data-label. ---- */
@media (max-width: 899px) {
  .ptable, .ptable tbody, .ptable tr, .ptable td, .ptable th { display: block; }
  .ptable thead { display: none; }
  .ptable { border: 0; }
  .ptable tbody tr {
    border: var(--hairline);
    border-radius: var(--r-card);
    background: var(--bg-elev);
    padding: var(--s-4);
    margin-bottom: var(--s-4);
  }
  .ptable tbody th { border-bottom: var(--hairline); padding: 0 0 var(--s-3); margin-bottom: var(--s-3); font-size: var(--t-16); }
  .ptable tbody td { border-bottom: 0; padding: var(--s-2) 0; display: grid; gap: var(--s-1); }
  .ptable tbody td::before {
    content: attr(data-label);
    font-size: var(--t-12);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .ptable .num small { display: inline; margin-left: var(--s-1); }
  .ptable td.col-save { background: transparent; padding-top: var(--s-3); }
  .ptable td.col-save::before { color: var(--nexo-green); }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
}

/* ==========================================================================
   18. MOTION / PRINT / FORCED COLORS
   ========================================================================== */
@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;
    scroll-behavior: auto !important;
  }
  .btn--primary:hover { transform: none; }
  .btn--link:hover .arrow { transform: none; }
}

@media (forced-colors: active) {
  .btn, .copy-btn, .tab, .reason, .ptable, .codepane { border: 1px solid ButtonBorder; }
  .gap { border: 1px dashed Mark; }
  .dot { border: 1px solid CanvasText; }
}

@media print {
  .nav, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .codepane, .reason, .honest-para { border: 1px solid #999; background: #fff; }
}
