/* Home page (2026-10-14 redesign). Loaded after styles.css on index.html
   only; every rule is scoped to body.home so docs, learn and legal pages
   keep their own styles.

   Direction: taste-skill v2 "product-performs" (seed 1212466205). The
   product does the talking: a working claims fragment on a quiet panel,
   the visitor's own numbers, the four setup stages, one panel with notes.
   Brand palette and Geist are kept. House rules: no monospace outside
   code, no hairlines or outlined boxes outside [data-ui] fragments, no
   gradients, no shadows at rest, no eyebrow labels.

   Motion values ported by hand from transitions.dev (https://transitions.dev,
   _root.css): durations 150 / 250 / 350 ms, smooth-out
   cubic-bezier(0.22, 1, 0.36, 1), travel 12 / 24 px, blur 3 px. */

body.home {
  /* Five type steps for the whole page. Interface text inside [data-ui]
     fragments keeps its true size (13 to 15px). */
  --t-xl: clamp(46px, 5.4vw, 84px);
  --t-h2: clamp(34px, 3.4vw, 54px);   /* every section heading; only the hero is --t-xl */
  --t-l: clamp(26px, 2.5vw, 36px);
  --t-m: 22px;
  --t-s: 17px;
  --t-xs: 15px;

  --s1: #151517;          /* one tone step above the ground */
  --s2: #1c1c20;          /* two steps */
  --acc-ink: #131a05;     /* ink on lime */
  --m: 40px;              /* page margin */
  --gap: 160px;           /* between sections */
  --out: cubic-bezier(0.22, 1, 0.36, 1);

  font-size: var(--t-s);
  line-height: 1.55;
}
@media (max-width: 760px) {
  body.home { --m: 20px; --gap: 96px; }
}
@media (max-width: 900px) {
  body.home { --t-xl: clamp(32px, 8.4vw, 64px); --t-h2: clamp(28px, 6.4vw, 40px); --t-l: 24px; --t-m: 19px; }
}

/* Screen-reader-only text. Own copy: a parse error in a shared sheet once
   left these labels visible on the page. */
.home .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Reset the old page's section box: each section sets its own layout. */
.home main section {
  max-width: none; margin: 0; padding: var(--gap) var(--m) 0;
}
.home h1, .home h2, .home h3 { font-weight: 600; text-wrap: balance; }
.home h2 { font-size: var(--t-l); }
.home a { text-underline-offset: 3px; }
.home p a { color: var(--ink); }
.home p a:hover { color: var(--acc); }

/* One button shape: 10px corners (rounded up from 3px, Richard 2026-10-15), flat lime. */
.home .btn { border-radius: 10px; padding: 14px 24px; font-size: var(--t-s); line-height: 1.2; }
.home .btn-primary:active { transform: scale(0.98); }
.home :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* Nav: a plain bar, no glass, no line; a tone step once scrolled. */
.home .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; transition: background 250ms var(--out); } /* taste-skill-ignore: removes the shared glass nav */
.home .nav.nav-scrolled { background: var(--s1); box-shadow: none; } /* taste-skill-ignore: removes the shared nav shadow */
.home .nav-inner { max-width: none; padding: 0 var(--m); height: 72px; }
.home .nav-links a { font-size: var(--t-xs); color: var(--ink); }
.home .nav-links a:hover { color: var(--acc); }
.home .nav-cta { padding: 11px 18px; font-size: var(--t-xs); }

/* ---------- Hero ---------- */
.home main .h-hero {
  padding-top: 72px; padding-bottom: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  min-height: calc(100svh - 72px);
  overflow-x: clip;
}
.h-hero-copy { grid-column: 1 / 10; }
.h-hero h1 { font-size: var(--t-xl); line-height: 1.0; letter-spacing: -0.035em; max-width: 19ch; }
.h-lede { margin-top: 28px; font-size: var(--t-m); line-height: 1.45; color: var(--ink); max-width: 40ch; }
.h-actions { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.h-terms { font-size: var(--t-s); color: var(--ink-2); }
.h-terms a { margin-left: 12px; }

/* The product on a quiet panel: one tone up from the ground, rounded, no
   colour field. (Was a lime chamfered block until 2026-10-14; Richard
   wanted the site calmer and more premium.) */
.h-stage {
  grid-column: 5 / 13;
  margin-top: 56px; align-self: end;
  background: var(--s1); border-radius: 18px 18px 0 0;
  padding: 40px 40px 0;
  min-height: 0;
}

/* The claims fragment: the product's own interface at true size. Inside
   [data-ui] the product's conventions apply (1px control lines, small
   radii), as the house rules allow. */
.claims {
  width: min(660px, 100%); background: #0f0f11; color: #f4f4f5;
  border-radius: 12px 12px 0 0; padding: 22px 24px 20px;
  font-size: 14px; line-height: 1.4;
}
.claims-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.claims-title { font-size: 15px; font-weight: 600; }
.claims-meta { color: #a1a1aa; font-size: 13px; }
.claims-cols, .claims-row {
  display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 0.8fr));
  gap: 12px; align-items: center;
}
.claims-cols { margin-top: 18px; padding: 0 12px 8px; color: #a1a1aa; font-size: 13px; border-bottom: 1px solid #2e2e34; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.claims-cols span:not(:first-child), .c-num { text-align: right; font-variant-numeric: tabular-nums; }
.claims-rows { display: grid; gap: 2px; margin-top: 6px; }
.claims-row {
  font: inherit; color: inherit; text-align: left; background: transparent; border: 0;
  padding: 11px 12px; border-radius: 6px; cursor: pointer;
  transition: background 150ms var(--out), transform 150ms var(--out);
}
.claims-row:hover { background: #1c1c20; }
.claims-row:active { transform: scale(0.995); }
.claims-row[aria-pressed="true"] { background: #232327; }
.claims-total { color: #d4d4d8; border-top: 1px solid #2e2e34; border-radius: 0 0 6px 6px; margin-top: 4px; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.claims-truth { font-weight: 600; }
.claims-truth .c-num:last-child { color: var(--acc); }
.c-src { display: flex; align-items: center; gap: 9px; min-width: 0; }
.c-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.c-meta { background: #6f8cff; }
.c-google { background: #f2b84b; }
.c-you { background: var(--acc); }
.claims-read { margin-top: 14px; padding: 14px 12px 0; border-top: 1px solid #2e2e34; font-size: 15px; line-height: 1.45; min-height: 3.6em; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.claims-src { margin-top: 10px; padding: 0 12px; color: #a1a1aa; font-size: 13px; }

/* Hero sources table: four columns, ad rows carry the platform's claim. */
.srcs .claims-cols, .srcs .claims-row { grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 0.7fr)); }
.srcs .c-src em { font-style: normal; font-size: 12px; color: #a1a1aa; background: #232327; border-radius: 4px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.c-plain { background: #52525b; }
.srcs .claims-row[aria-pressed="true"] .c-num:last-child { color: var(--acc); }

/* ---------- AI agents ---------- */
.home main .h-agents { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.h-agents-copy { grid-column: 1 / 8; }
.h-agents h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; }
.h-agents-copy > p { margin-top: 24px; font-size: var(--t-m); line-height: 1.45; max-width: 36ch; }
.h-agents .h-actions .h-link { margin-top: 0; }
.chat { grid-column: 8 / 13; background: #0f0f11; color: #f4f4f5; border-radius: 12px; padding: 22px 24px; font-size: 15px; line-height: 1.5; }
.chat-bar { color: #a1a1aa; font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid #2e2e34; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.chat-q { margin-top: 18px; margin-left: auto; width: fit-content; max-width: 80%; background: #232327; border-radius: 12px 12px 4px 12px; padding: 10px 14px; }
.chat-a { margin-top: 16px; display: grid; gap: 10px; max-width: 92%; }
.chat-a b { color: var(--acc); font-weight: 600; }
.chat-note { margin-top: 18px; color: #a1a1aa; font-size: 13px; }

/* ---------- Same sale + the visitor's numbers ---------- */
.h-same-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.h-same h2 { grid-column: 1 / -1; font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; max-width: 22ch; }
.h-same-copy { grid-column: 1 / 7; margin-top: 32px; }
.h-same-copy > p { font-size: var(--t-m); line-height: 1.45; max-width: 40ch; }
.h-sum {
  margin-top: 48px; display: grid; grid-template-columns: auto auto auto auto auto; gap: 8px 16px;
  align-items: end; justify-content: start;
}
.h-sum p { display: grid; gap: 6px; }
.h-sum span { font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap; }
@media (max-width: 640px) { .h-sum { gap: 8px 10px; } .h-sum span { font-size: 13px; } }
.home .consent { border: 0; }
.h-sum b { font-size: var(--t-l); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.h-sum .op { font-size: var(--t-l); color: var(--ink-2); align-self: end; }
.h-sum-wrong b { color: var(--ink-2); }
/* The correction sits directly under the number it corrects: same column,
   same left edge, no box. */
.h-sum-truth { grid-column: 5; grid-row: 2; margin-top: 18px; }
.h-sum-truth b { color: var(--acc); }

.order { grid-column: 7 / 13; align-self: start; margin-top: 40px; margin-left: clamp(0px, 3vw, 56px); background: #0f0f11; color: #f4f4f5; border-radius: 10px; padding: 26px; font-size: 15px; }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #2e2e34; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.order-id { font-weight: 600; font-size: 17px; }
.order-paid { font-weight: 600; font-size: 17px; text-align: right; }
.order-paid span { display: block; font-weight: 400; font-size: 13px; color: #a1a1aa; }
.order-rows { list-style: none; margin-top: 8px; }
.order-rows li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 13px 4px; }
.order-rows b { font-weight: 500; color: #d4d4d8; }
.order-you { background: #232327; border-radius: 6px; padding-left: 10px !important; padding-right: 10px !important; margin-top: 4px; }
.order-you b { color: var(--acc); font-weight: 600; }
.order-note { margin-top: 12px; color: #a1a1aa; font-size: 13px; }

.h-try { margin-top: 120px; background: var(--s1); margin-left: calc(var(--m) * -1); margin-right: calc(var(--m) * -1); padding: 72px var(--m); }
.h-try-line { font-size: var(--t-m); line-height: 1.9; max-width: 48ch; letter-spacing: -0.015em; }
.h-num {
  font: inherit; color: var(--ink); background: var(--s2); border: 0;
  width: 3.2em; padding: 0 0.25em; border-radius: 8px; text-align: center; cursor: text;
  transition: background 150ms var(--out);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.h-num::-webkit-inner-spin-button, .h-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.h-num:hover { background: #232327; }
.h-num:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.h-try-answer { margin-top: 40px; max-width: 820px; }
.h-try-big { font-size: var(--t-m); line-height: 1.35; }
.h-try-big b { display: inline-block; font-size: var(--t-h2); line-height: 1; color: var(--acc); letter-spacing: -0.03em; margin-right: 10px; vertical-align: -0.08em; font-variant-numeric: tabular-nums; }
.h-try-explain { margin-top: 16px; color: var(--ink-2); max-width: 56ch; }
.h-try-presets { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.h-try-presets p { color: var(--ink-2); font-size: var(--t-s); }
.h-try-presets button {
  font: inherit; font-size: var(--t-s); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.h-try-presets button:hover { color: var(--acc); }

/* ---------- How it works: four stages ---------- */
.home main .h-how { padding-left: 0; padding-right: 0; }
.h-stages { list-style: none; }
.h-stage-item {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 560px;
}
/* Scroll walks through the stages: the section is four screens tall and
   its contents stay pinned while the stage changes with the scroll. */
@media (min-width: 901px) {
  .js .home .h-how { height: calc(100svh * 3.4); }
  .js .home .h-how-pin { position: sticky; top: 72px; height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; }
  .js .home .h-how-pin .h-stage-item { min-height: min(560px, calc(100svh - 240px)); }
}
.h-clause { padding: 64px var(--m) 48px; }
.h-clause-big { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; max-width: 13ch; }
.h-clause-sub { margin-top: 28px; max-width: 46ch; color: var(--ink); }
.h-clause-sub code { font-family: var(--mono); font-size: 0.9em; }
/* Works-with marks: the platforms shown, not listed. Each is a link to its guide. */
.h-works { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; max-width: 46ch; }
.h-works a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--s2); color: var(--ink-2); transition: color 150ms var(--out), background 150ms var(--out), transform 150ms var(--out); }
.h-works svg { width: 20px; height: 20px; fill: currentColor; }
.h-works a:hover { color: var(--ink); background: #26262b; transform: translateY(-2px); }
.h-works a:active { transform: scale(0.96); }
.h-works a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.h-frag { background: var(--s1); display: grid; place-items: center; padding: 48px var(--m); }
.frag-card { width: min(460px, 100%); background: #0f0f11; border-radius: 10px; padding: 20px; font-size: 14px; color: #f4f4f5; }
.frag-title { font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.frag-code { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; background: #18181b; border: 1px solid #2e2e34; border-radius: 6px; padding: 12px; white-space: pre-wrap; word-break: break-all; color: #d4d4d8; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.frag-row, .frag-conn { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-top: 1px solid #2e2e34; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.frag-row:first-of-type { margin-top: 12px; }
.frag-conn { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
.frag-logo { font-weight: 600; }
.frag-state { color: var(--acc); text-align: right; }
.frag-dim { color: #a1a1aa; font-size: 13px; }
.frag-ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-right: 8px; vertical-align: 1px; }
.frag-note { margin-top: 12px; color: #a1a1aa; font-size: 13px; }
.h-frag-shot { padding: 48px var(--m); }
.h-frag-shot img { width: 100%; border-radius: 10px; }

/* With script, one stage shows at a time and the slider drives it. */
.js .h-stages { display: grid; }
@media (min-width: 901px) {
/* The outgoing stage leaves first (120ms), then the next arrives, so two
   clauses never overlap mid-fade. */
.js .h-stage-item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 120ms var(--out), transform 120ms var(--out), visibility 0s 120ms; }
.js .h-stage-item.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 250ms var(--out) 120ms, transform 350ms var(--out) 120ms, visibility 0s 120ms; }
}
@media (max-width: 900px) { .h-scrub { display: none; } .h-stage-item + .h-stage-item { margin-top: 48px; } }
.h-scrub { padding: 32px var(--m) 0; }
.h-scrub input[type="range"] { width: 100%; height: 32px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.h-scrub-track { position: relative; }
.h-scrub-track::before, .h-scrub-fill { content: ""; position: absolute; left: 0; top: 15px; height: 2px; border-radius: 1px; pointer-events: none; }
.h-scrub-track::before { right: 0; background: var(--s2); }
.h-scrub-fill { width: var(--p, 0%); background: var(--acc); transition: width 250ms var(--out); }
.h-scrub input[type="range"] { position: relative; }
.h-scrub input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.h-scrub input[type="range"]::-moz-range-track { height: 2px; background: transparent; }
.h-scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; background: var(--acc); border: 0; border-radius: 50%; transition: transform 150ms var(--out); }
.h-scrub input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--acc); border: 0; border-radius: 50%; }
.h-scrub input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
.h-scrub-names { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; color: var(--ink-2); font-size: var(--t-s); }
.h-scrub-names li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.h-scrub-names li:nth-child(3) { text-align: center; transform: translateX(17%); }
.h-scrub-names li:last-child { text-align: right; }
.h-scrub-names li.on { color: var(--ink); }

/* ---------- Live demo ---------- */
.home main .h-demo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.h-demo-copy { grid-column: 1 / 5; position: sticky; top: 120px; }
.h-demo h2 { font-size: var(--t-l); line-height: 1.1; letter-spacing: -0.02em; }
.h-demo-copy p { margin-top: 18px; max-width: 34ch; }
.h-link { display: inline-block; margin-top: 24px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.h-link:hover { color: var(--acc); }
.h-demo-shot { grid-column: 5 / 13; margin-right: calc(var(--m) * -1); display: block; overflow: hidden; background: var(--s1); }
.h-demo-shot video { display: block; width: 100%; height: auto; }

/* ---------- Panel with margin notes ---------- */
.home main .h-panel {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  position: relative;
}
.h-panel-head { grid-column: 1 / 5; grid-row: 1; text-align: left; font-size: var(--t-l); letter-spacing: -0.02em; line-height: 1.1; align-self: start; }
.h-notes { list-style: none; position: relative; grid-row: 1; min-height: 740px; }
.h-notes-l { grid-column: 1 / 5; }
.h-notes-r { grid-column: 9 / 13; }
.h-notes li {
  position: absolute; top: var(--top); width: 26ch; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.45;
  transition: color 150ms var(--out);
}
.h-notes-l li { right: 0; text-align: right; }
.h-notes li b { display: block; font-size: var(--t-s); color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.h-notes li.on b { color: var(--acc); }
.src-panel {
  grid-column: 5 / 9; grid-row: 1; justify-self: center; width: min(390px, 100%);
  background: #0f0f11; border-radius: 12px; padding: 18px; font-size: 14px; color: #f4f4f5;
  display: grid; gap: 2px; align-self: start; margin-top: 64px;
}
.sp-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 8px 12px; }
.sp-head p { font-weight: 600; font-size: 15px; }
.sp-head span, .sp-cols { color: #a1a1aa; font-size: 13px; }
.sp-cols, .sp-row { display: grid; grid-template-columns: 1fr 64px 72px; gap: 8px; padding: 8px; }
.sp-cols { border-bottom: 1px solid #2e2e34; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.sp-cols span:not(:first-child), .sp-row span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.sp-row { padding: 10px 8px; border-radius: 6px; transition: background 150ms var(--out); }
.sp-row i { font-style: normal; font-size: 11.5px; color: #0f0f11; background: #d4d4d8; border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.sp-row[data-n="ai"] i { background: var(--acc); }
.sp-ask, .sp-team, .sp-api { margin-top: 10px; padding: 12px; border-radius: 8px; background: #18181b; transition: background 150ms var(--out); }
.sp-ask p, .sp-team p, .sp-api p { color: #a1a1aa; font-size: 13px; }
.sp-ask span { display: block; margin-top: 6px; padding: 9px 10px; border: 1px solid #2e2e34; border-radius: 6px; } /* taste-skill-ignore: inside a [data-ui] product fragment */
.sp-team { display: flex; justify-content: space-between; align-items: center; }
.sp-faces { display: flex; }
.sp-faces i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: #27272a; color: #f4f4f5; display: grid; place-items: center; font-size: 11.5px; margin-left: -6px; border: 2px solid #18181b; }
.sp-api code { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: #d4d4d8; word-break: break-all; }
.src-panel .is-hot { background: #232327; }

/* ---------- Pricing ---------- */
.h-price-head { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; }
.h-price-intro { margin-top: 20px; font-size: var(--t-m); max-width: 40ch; }
/* One panel: pick a size on the left, its price answers right beside it. */
.h-price-grid {
  margin-top: 48px; max-width: 880px; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  column-gap: 64px; align-items: center; background: var(--s1); border-radius: 18px; padding: 40px 48px;
}
.h-sizes { list-style: none; }
.h-sizes button {
  font: inherit; font-size: var(--t-m); line-height: 1.75; letter-spacing: -0.02em; font-weight: 600;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 0.4em; transition: color 150ms var(--out);
}
.h-sizes button::before { content: ""; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--acc); opacity: 0; transform: scale(0.2); transition: transform 250ms var(--out), opacity 150ms var(--out); }
.h-sizes button:hover { color: var(--ink); }
.h-sizes button[aria-checked="true"] { color: var(--ink); }
.h-sizes button[aria-checked="true"]::before { transform: scale(1); opacity: 1; }
.h-price-stage { align-self: center; }
.h-figure { display: flex; align-items: baseline; gap: 14px; }
.h-figure #p-price { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.04em; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-per { font-size: var(--t-s); color: var(--ink-2); }
.h-price-says { margin-top: 24px; max-width: 40ch; }
.h-price-stage .btn { margin-top: 32px; }
.h-price-terms { margin-top: 16px; font-size: var(--t-xs); color: var(--ink-2); max-width: 44ch; }

/* ---------- Founder: the one centred moment ---------- */
.h-founder-copy { max-width: 60ch; margin: 0 auto; }
.h-founder h2 { font-size: var(--t-l); letter-spacing: -0.02em; line-height: 1.1; text-align: center; }
.h-founder-copy p { margin-top: 22px; font-size: var(--t-m); line-height: 1.55; }
.h-founder .h-sig { text-align: center; margin-top: 32px; font-size: var(--t-s); }
.h-sig { font-weight: 600; }

/* ---------- FAQ: questions left, the answer large on the right ---------- */
.home main .h-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.home .h-faq-head { grid-column: 1 / -1; font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 48px; }
.h-faq-list { grid-column: 1 / 6; }
.h-q-btn {
  font: inherit; font-size: var(--t-s); color: var(--ink-2); background: none; border: 0; padding: 9px 0;
  cursor: pointer; text-align: left; display: flex; gap: 14px; align-items: baseline; width: 100%;
  transition: color 150ms var(--out);
}
.h-q-btn::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); transform: translateY(-1px); transition: background 150ms var(--out); }
.h-q-btn:hover, .h-q-btn[aria-expanded="true"] { color: var(--ink); }
.h-q-btn[aria-expanded="true"]::before { background: var(--acc); }
.h-a { padding: 4px 0 12px 22px; }
.h-a p { max-width: 52ch; }
.h-faq-pane { display: none; }
@media (min-width: 901px) {
  .js .h-a { display: none; }
  .js .h-faq-pane { display: block; grid-column: 6 / 13; position: sticky; top: 104px; background: var(--s1); padding: 40px 44px; min-height: 280px; }
  .h-faq-pane p { font-size: var(--t-m); line-height: 1.5; max-width: 40ch; }
}
@media (max-width: 900px) {
  .js .h-a { display: grid; grid-template-rows: 0fr; padding-top: 0; padding-bottom: 0; transition: grid-template-rows 250ms var(--out), padding 250ms var(--out); }
  .js .h-a > p { overflow: hidden; }
  .js .h-q-btn[aria-expanded="true"] + .h-a { grid-template-rows: 1fr; padding-top: 4px; padding-bottom: 14px; }
}

/* ---------- Close: the sentence is the form ---------- */
.home main .h-close { padding-bottom: var(--gap); }
.h-close h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; }
.h-close-sub { margin-top: 16px; font-size: var(--t-m); color: var(--ink-2); max-width: 40ch; }
.h-close-form { margin-top: 32px; display: flex; gap: 8px; max-width: 520px; }
.h-close-form input {
  flex: 1 1 0; min-width: 0; height: 52px; padding: 0 16px;
  font: inherit; font-size: var(--t-s); color: var(--ink); background: var(--s1); border: 0; border-radius: 10px;
  transition: background 150ms var(--out);
}
.h-close-form input::placeholder { color: var(--ink-2); }
.h-close-form input:hover, .h-close-form input:focus { background: var(--s2); }
.h-close-form .btn { height: 52px; flex: none; }
.h-close-note { margin-top: 14px; font-size: var(--t-xs); color: var(--ink-2); }

/* ---------- Trust: four plain facts ---------- */
.home main .h-trust { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.h-trust h2 { grid-column: 1 / 5; font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; }
.h-trust-list { grid-column: 5 / 13; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.h-trust-list li { color: var(--ink-2); max-width: 36ch; }
.h-trust-list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }

/* ---------- Footer: inverted, columns above, the name below ---------- */
.home .footer.h-foot {
  background: var(--s1); color: var(--ink); border-top: 0;
  padding: 72px var(--m) 28px; display: grid;
}
.h-foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.h-foot-cols > div { grid-column: 1 / 5; }
.h-foot-cols > ul:nth-of-type(1) { grid-column: 6 / 8; }
.h-foot-cols > ul:nth-of-type(2) { grid-column: 8 / 10; }
.h-foot-cols > ul:nth-of-type(3) { grid-column: 10 / 13; }
.h-foot ul { list-style: none; display: grid; gap: 6px; align-content: start; }
.h-foot p, .h-foot li { font-size: var(--t-xs); color: var(--ink-2); }
.h-foot p + p { margin-top: 10px; }
.h-foot p { max-width: 34ch; }
.h-foot .h-foot-first { color: var(--ink); font-weight: 600; }
.h-foot a, .h-foot .footer-link-btn { color: var(--ink); text-decoration: none; font-size: var(--t-xs); }
.h-foot a:hover, .h-foot .footer-link-btn:hover { color: var(--acc); }
.h-foot .h-foot-logo { font-size: 1.12rem; color: var(--ink); margin-bottom: 14px; }
.h-foot .h-foot-legal { margin-top: 72px; font-size: var(--t-xs); max-width: none; }

/* ---------- Phone and tablet ---------- */
@media (max-width: 900px) {
  .home main .h-hero, .home main .h-agents, .h-same-top, .home main .h-demo, .home main .h-panel, .h-price-grid,
  .home main .h-founder, .home main .h-faq, .h-foot-cols { grid-template-columns: minmax(0, 1fr); }
  .h-hero-copy, .h-stage, .h-agents-copy, .chat, .h-same-copy, .order, .h-demo-copy, .h-demo-shot, .h-panel-head, .h-notes,
  .src-panel, .h-sizes, .h-price-stage, .h-faq-list,
  .h-foot-cols > div, .h-foot-cols > ul:nth-of-type(n) { grid-column: 1; grid-row: auto; }

  .home main .h-hero { padding-top: 40px; min-height: 0; }
  .h-stage { margin: 40px 0 0; padding: 16px 16px 0; border-radius: 14px 14px 0 0; }
  .claims { width: 100%; }

  .order { margin-top: 48px; margin-left: 0; }
  .chat { margin-top: 40px; }
  .h-try { margin-top: 72px; padding: 48px var(--m); }

  .h-stage-item { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .h-frag { order: -1; padding: 32px var(--m); }
  .h-clause { padding: 28px var(--m) 0; }
  .h-clause-big { max-width: none; }
  .h-scrub-names { grid-template-columns: 1fr 1fr; gap: 6px; }
  .h-scrub-names li:nth-child(n) { text-align: left; transform: none; }

  .h-demo-copy { position: static; }
  .h-demo-shot { margin: 32px calc(var(--m) * -1) 0; }

  .h-panel-head { text-align: left; }
  .h-notes { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
  .h-notes li { position: static; width: auto; text-align: left !important; }
  .src-panel { margin-top: 28px; justify-self: stretch; width: 100%; }
  .h-notes-r { order: 3; }

  .h-sizes { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .h-price-stage { margin-top: 32px; }
  .h-price-grid { padding: 28px 24px; }


  .h-trust h2, .h-trust-list { grid-column: 1; }
  .h-trust-list { margin-top: 32px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home main .h-trust { grid-template-columns: minmax(0, 1fr); }

  .h-foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .h-foot-cols > div { grid-column: 1 / -1; }
  .h-foot-cols > ul:nth-of-type(n) { grid-column: auto; }
}
@media (max-width: 480px) {
  .h-notes { grid-template-columns: minmax(0, 1fr); }
}
/* On a phone the claims table keeps the columns that carry the point
   (what each side says it made, and per $1) and drops Spend. */
@media (max-width: 640px) {
  .claims { width: calc(100vw - var(--m) - 16px); padding: 18px 14px 16px; }
  .claims-cols, .claims-row { grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 0.8fr)); gap: 8px; }
  .claims-cols > span:nth-child(2), .claims-row > span:nth-child(2) { display: none; }
  .srcs .claims-cols, .srcs .claims-row { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 0.8fr)); }
  .claims-head { flex-direction: column; gap: 2px; }
}

/* ---------- Motion ---------- */
/* Entrances: heading, then text, then picture, 70ms apart, rising 24px
   with a 3px blur (transitions.dev texts-reveal values). The .js gate
   means nothing stays hidden if the script fails. */
.js .home .rv { opacity: 0; transform: translateY(24px); filter: blur(3px); transition: opacity 350ms var(--out), transform 500ms var(--out), filter 350ms var(--out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .home .rv.in { opacity: 1; transform: none; filter: none; }
/* The hero is on screen at load, so it runs on its own keyframes rather
   than waiting for the observer: the headline is never held invisible. */
@keyframes h-rise { from { opacity: 0; transform: translateY(24px); filter: blur(3px); } }
.js .home .h-hero .rv { opacity: 1; transform: none; filter: none; transition: none; animation: h-rise 500ms var(--out) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* Hero entrance: the panel rises into place, then the product on it
   settles a beat later. Quiet on purpose. */
@keyframes h-panel-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes h-settle { from { transform: translateY(16px); opacity: 0; } }
.js .home .h-stage { animation: h-panel-in 700ms var(--out) 150ms both; }
.js .home .h-stage .claims { animation: h-settle 700ms var(--out) 300ms both; }


/* Text and number swaps (transitions.dev text-states-swap, number-pop-in). */
.home .swap { display: inline-block; transition: opacity 150ms var(--out), transform 250ms var(--out), filter 150ms var(--out); }
.home .swap.out { opacity: 0; transform: translateY(-6px); filter: blur(2px); }
.home .swap.pre { opacity: 0; transform: translateY(8px); filter: blur(2px); transition: none; }
@keyframes h-pop { 0% { transform: scale(0.96); opacity: 0.4; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: none; } }
.home .h-try-big b.pop { animation: h-pop 350ms cubic-bezier(0.34, 1.36, 0.64, 1); }

@media (prefers-reduced-motion: reduce) {
  .js .home .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .js .home .h-stage, .js .home .h-stage .claims, .js .home .h-hero .rv { animation: none; }
  .home .swap, .home .swap.out, .home .swap.pre { transition: none; opacity: 1; transform: none; filter: none; }
  .home .h-try-big b.pop { animation: none; }
}
