/* Home and 404 only. Tokens, nav, buttons, chips and footer come from whozit.css; nothing here changes them. */
body.home { --max: 1480px; --rule: 2px solid var(--fg); }
/* The product panels are always dark (a dark product on a light page); these are fixed values, not page tokens. */
.tx, .term { --p-bg: #0E1015; --p-fg: #ECEEF2; --p-mut: #A3ABBB; --p-peach: #FFB38A; --p-blue: #9FA9FF; --p-line: #262A33; }
:root[data-theme="dark"] .tx, :root[data-theme="dark"] .term { --p-bg: #090A0D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tx, :root:not([data-theme="light"]) .term { --p-bg: #090A0D; } }

h2.big { margin: 0; font-size: clamp(1.875rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.section { padding-block: clamp(56px, 8vw, 112px) 0; }
.arrow-link { display: inline-block; justify-self: start; align-self: start; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--blue); padding-block: 4px; }
.arrow-link:hover { border-color: var(--fg); }
main > section[id], .hero { scroll-margin-top: 8px; }

/* ---------- Hero: the wordmark is the page ---------- */
.mark-cq { container-type: inline-size; margin-top: clamp(20px, 5vh, 64px); }
.mark { margin: 0; font-weight: 800; letter-spacing: -.07em; line-height: .78; white-space: nowrap; overflow-x: clip; font-size: 21vw; font-size: calc(100cqw / 3.12); padding-top: .02em; }
.mark .end { display: inline-grid; width: .52em; margin-left: .03em; vertical-align: baseline; }
.mark .end > span { grid-area: 1 / 1; }
.mark .q { display: none; color: var(--blue); }
.mark .dot { color: var(--fg); }
@media (prefers-reduced-motion: no-preference) {
  .mark .q { display: block; animation: q-out .45s ease 1.8s forwards; }
  .mark .dot { animation: dot-in .45s ease 1.8s backwards; }
  @keyframes q-out { to { opacity: 0; } }
  @keyframes dot-in { from { opacity: 0; } }
}
.under { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; border-top: var(--rule); margin-top: clamp(20px, 4vh, 40px); padding-top: 24px; align-items: start; }
.under h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.under h1 .stop { color: var(--blue); }
.under h1 .sent { display: block; }
.lead-col { display: grid; gap: 22px; align-content: start; }
.diff { margin: 0; color: var(--muted); font-size: 1.125rem; max-width: 40ch; }
.side { display: grid; gap: 18px; }
.side p { margin: 0; color: var(--muted); font-size: 1.125rem; max-width: 44ch; }
.side .fine { font-size: .875rem; max-width: 50ch; }
.side .fine b { color: var(--fg); font-weight: 600; }
.side .fine a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Ticker of named lines: moves only when motion is allowed; pausable. */
.ticker { margin-top: 40px; }
.tickbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.pause { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; font: .8125rem var(--mono); padding: 6px 12px; cursor: pointer; min-height: 32px; }
.pause:hover { color: var(--fg); }
.strip { border-block: 1px solid var(--line); overflow: hidden; padding-block: 14px; }
.tracks { display: flex; width: max-content; }
.track { display: flex; gap: 14px; padding: 0 14px 0 0; margin: 0; list-style: none; }
@media (prefers-reduced-motion: no-preference) {
  .tracks { animation: slide 70s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
  .ticker:hover .tracks, .ticker.paused .tracks, .ticker:focus-within .tracks { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .tracks { width: auto; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
  .track { flex-wrap: wrap; }
  .track.dup, .pause { display: none; }
  .ln { white-space: normal; border-radius: 18px; }
}

/* ---------- How it works ---------- */
.how-grid { display: grid; gap: 28px 56px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "panel" "steps" "legal"; padding-block: clamp(56px, 8vw, 112px) 0; }
.how-head { grid-area: head; max-width: 62ch; }
.how-head h2 { margin-top: 10px; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.how-head .lede { margin: 18px 0 0; }
.how-panel { grid-area: panel; min-width: 0; }
.legal { grid-area: legal; margin: 0; color: var(--muted); font-size: .875rem; max-width: 68ch; }
.legal a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.steps { grid-area: steps; position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { border-top: 2px solid var(--line); padding-top: 14px; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font: .75rem var(--mono); color: var(--muted); margin-bottom: 6px; }
.steps b { display: block; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1.25; }
.steps span { display: block; margin-top: 4px; color: var(--muted); font-size: .9375rem; }

/* The transcript (named version is the markup; raw names are layered on by script). */
.tx { background: var(--p-bg); color: var(--p-fg); border-radius: 22px; padding: clamp(18px, 3vw, 32px); display: grid; gap: 16px; border: 1px solid var(--p-line); }
.tx-bar { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font: .75rem var(--mono); color: var(--p-mut); }
.tl { display: grid; grid-template-columns: 48px 160px minmax(0, 1fr); gap: 14px; font-size: clamp(.9375rem, 1.4vw, 1.0625rem); line-height: 1.5; }
.tl .time { font: .75rem var(--mono); color: var(--p-mut); padding-top: 5px; }
.who { display: grid; align-content: start; font-weight: 600; color: var(--p-peach); }
.who.q { color: var(--p-blue); }
.who > span { grid-area: 1 / 1; }
.who .n-raw { display: none; color: var(--p-mut); }
.who .flag { grid-area: 2 / 1; font: 400 .6875rem var(--mono); letter-spacing: 0; color: var(--p-blue); }
.say { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .tl { grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; }
  .tl .time { grid-row: 1 / 3; }
  .tl .who, .tl .say { grid-column: 2; }
  .who .flag { grid-area: 1 / 1; justify-self: end; align-self: baseline; }
}

/* The raw layer used by the drag version. */
.tx.is-raw { --p-bg: var(--raw); --p-fg: var(--muted); --p-mut: var(--muted); --p-line: var(--line); }
.tx.is-raw .who { color: var(--muted); }
.tx.is-raw .who .n-raw { display: block; }
.tx.is-raw .who .n-name { display: none; }
.tx.is-raw .flag { visibility: hidden; }

/* Drag version (touch and reduced motion): two layers, one seam. */
.cmp { display: none; }
.how--drag .cmp { display: block; }
.how--drag #tx { display: none; }
.compare { position: relative; border-radius: 22px; overflow: hidden; --cut: 46%; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(17, 18, 20, .45); }
.compare .tx { border: 0; border-radius: 0; height: 100%; align-content: start; }
.compare .tx-bar { flex-wrap: nowrap; white-space: nowrap; }
.compare .layer-named { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut)); }
.seam { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; background: #FFB38A; transform: translateX(-1px); pointer-events: none; }
.seam i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #FFB38A; box-shadow: 0 0 0 3px #0E1015; display: grid; place-items: center; color: #0E1015; }
.seam svg { width: 22px; height: 22px; }
.range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.compare:has(.range:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.cmp-label { display: block; margin-top: 14px; font: .8125rem var(--mono); color: var(--fg); }
.cmp-tags { display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-top: 4px; font: .8125rem var(--mono); color: var(--muted); }
.cmp-tags b { color: var(--fg); font-weight: 400; }

/* Scroll version (fine pointer, motion allowed): a sticky panel; lines turn into names as you scroll. */
.how--scroll .how-track { height: calc(var(--pane-h, 100vh) + 160vh); margin-top: clamp(40px, 6vw, 80px); }
.how--scroll .how-pane { position: sticky; top: max(8px, calc((100vh - var(--pane-h, 100vh)) / 2)); top: max(8px, calc((100svh - var(--pane-h, 100svh)) / 2)); height: var(--pane-h, 100vh); display: flex; align-items: center; }
.how--scroll .how-grid { padding-block: 0; width: 100%; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); grid-template-areas: "head panel" "steps panel" "legal panel"; align-content: center; align-items: start; }
.how--scroll .how-panel { align-self: center; }
.how--scroll .steps { grid-template-columns: 1fr; gap: 2px; margin-top: 6px; }
.how--scroll .steps li { position: relative; border-top: 0; border-left: 2px solid var(--line); padding: 8px 0 8px 50px; transition: border-color .3s; }
.how--scroll .steps li::before { position: absolute; left: 16px; top: 11px; margin: 0; }
.how--scroll .steps b { color: var(--muted); transition: color .3s; }
.how--scroll .steps span { color: var(--fg); margin-top: 2px; }
.how--scroll .steps li[aria-current="step"] { border-left-color: var(--blue); }
.how--scroll .steps li[aria-current="step"] b { color: var(--fg); }
.how--scroll .steps li:not([aria-current="step"]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.how--scroll .who { align-content: start; }
.how--scroll .who .n-raw { display: block; }
.how--scroll .who .n-raw, .how--scroll .who .n-name, .how--scroll .who .flag { transition: opacity .4s ease; }
.how--scroll .tl:not(.is-named) .who { color: var(--p-mut); }
.how--scroll .tl:not(.is-named) .n-name, .how--scroll .tl:not(.is-named) .flag { opacity: 0; }
.how--scroll .tl.is-named .n-raw { opacity: 0; }
.how--scroll .who { transition: color .4s ease; }
@media (max-width: 899px) {
  .how--scroll .how-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "panel" "steps" "legal"; gap: 16px; }
  .how--scroll .how-head .lede { display: none; }
  .how--scroll .how-head h2 { font-size: 1.75rem; }
  .how--scroll .steps li:not([aria-current="step"]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  .how--scroll .tx { padding: 16px; gap: 12px; }
}

/* ---------- For agents ---------- */
.agents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.agents-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; max-width: 46ch; margin: 18px 0 22px; }
.agents-copy .eyebrow { margin: 0 0 10px; }
.agents-copy > p.today { font-size: .9375rem; margin-top: -8px; }
.agents h2 s { color: var(--muted); font-weight: 500; text-decoration-thickness: .07em; }
.term { background: var(--p-bg); color: var(--p-fg); border: 1px solid var(--p-line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); font-family: var(--mono); font-size: clamp(.8125rem, 1.3vw, .9375rem); line-height: 1.55; min-width: 0; }
.term .ask { font-size: clamp(1rem, 1.9vw, 1.375rem); letter-spacing: -.02em; margin: 0; }
.term .ask::before { content: "> "; color: var(--p-mut); }
.term .call { margin: 14px 0 0; color: var(--p-mut); overflow-wrap: anywhere; }
.term .call b { color: var(--p-blue); font-weight: 400; }
.term .answer { font-family: var(--sans); font-weight: 500; font-size: clamp(1.0625rem, 1.9vw, 1.375rem); line-height: 1.3; letter-spacing: -.02em; margin: 14px 0 0; max-width: 32ch; }
.term .answer .n { color: var(--p-peach); font-weight: 700; }
.term .src { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.term .src li { border: 1px solid var(--p-line); border-radius: 8px; padding: 5px 10px; font-size: .75rem; color: var(--p-mut); }
.term .src b { color: var(--p-peach); font-weight: 400; }
.term .src .q b { color: var(--p-blue); }
.term .cap { margin: 18px 0 0; font-size: .75rem; color: var(--p-mut); }

/* ---------- Privacy and pricing ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: 22px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.card .arrow-link { margin-top: auto; }
.card .eyebrow { margin: 0; }
.card h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.card p { margin: 0; color: var(--muted); max-width: 52ch; }
.prices { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; margin: 0; }
.prices div { display: grid; }
.prices dt { font: .8125rem var(--mono); color: var(--muted); }
.prices dd { margin: 0; font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.prices dd small { display: block; font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.faq-list { border-top: var(--rule); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; position: relative; min-height: 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--mono); color: var(--muted); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0 0 20px; color: var(--muted); max-width: 60ch; }
.faq-more { margin-top: 22px; }

/* ---------- Final call ---------- */
.final { text-align: center; display: grid; justify-items: center; gap: 22px; border-top: var(--rule); padding-top: clamp(48px, 7vw, 96px); }
.final h2 { margin: 0; font-size: clamp(2.5rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -.06em; line-height: .95; }
.final h2 .stop { color: var(--blue); }
.final p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.final .ctas { justify-content: center; }

/* ---------- 404 ---------- */
.nf { padding-bottom: 8px; }
.nf .mark .q { display: block; animation: none; opacity: 1; }
.nf .mark .dot { display: none; }
.nf-body { display: grid; gap: 22px; border-top: var(--rule); margin-top: clamp(20px, 4vh, 40px); padding-top: 24px; justify-items: start; }
.nf-body h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.nf-body h1 .stop { color: var(--blue); }
.nf-body p { margin: 0; color: var(--muted); font-size: 1.125rem; max-width: 46ch; }

@media (max-width: 899px) {
  .agents, .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .under, .duo { grid-template-columns: minmax(0, 1fr); }
  .under { gap: 22px; }
  .lead-col, .side { display: contents; }
  .under h1 { order: 1; }
  .side .what { order: 2; }
  .diff { order: 3; }
  .side .ctas { order: 4; }
  .side .fine { order: 5; }
  .under > * { min-width: 0; }
  .under .what, .diff { font-size: 1.0625rem; }
}
