/* Tally landing page. Tokens first; every rule below references a token.
   Direction: "The product performs" (tasteskill, seed 648448569). Palette "Navy on white". */

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f4f4f2;
  --ink: #1f2b4d;
  --muted: #5c6378;
  --accent: #f7941d;
  --accent-ink: #1f2b4d;
  --accent-hover: #ffa63b;

  --field-1: #05070a; --field-1-ink: #ffffff; --field-1-muted: #a9b0c2;
  --field-2: #e3e1dc; --field-2-ink: #1f2b4d; --field-2-muted: #5c6378;
  --field-3: #1f2b4d; --field-3-ink: #ffffff; --field-3-muted: #b9c0d4;
  --field-4: #cfd3dd; --field-4-ink: #1f2b4d; --field-4-muted: #4a5166;

  /* the product's own interface (data-ui): a terminal */
  --term-bg: #0b0e14;
  --term-ink: #e8eaf0;
  --term-dim: #8b93a7;
  --term-ok: #3fb950;
  --term-warn: #e3b341;
  --term-err: #ff7b72;
  --term-rule: #232a38;
  --term-sel: #1a2130;
  --ui-border: #d6d8de;
  --ui-control: #eceef2;
  --ui-radius: 4px;
  --ui-border-w: 1px;

  --font-text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; /* taste-skill-ignore: real terminal output inside data-ui fragments */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  --step-display: clamp(2.5rem, 0.9rem + 3.2vw, 3.25rem);
  --step-display-phone: 9vw;
  --step-mono: 0.9375rem;
  --step-mono-phone: 0.8125rem;
  --step-mono-lh: 1.5;
  --step-word: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 11vw, 12rem);
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --radius: 0px;
  --control-h: 2.75rem;
  --control-h-sm: 2.25rem;
  --tile-gap: 8px;
  --reel-w: clamp(520px, 40vw, 640px);
  --reel-gap: 24px;
  --reel-sliver: 60px;
  --field-h: 84svh;
  --field-h-phone: 48svh;
  --card-w: 300px;
  --list-col: 520px;
  --list-row: 2.375rem;
  --list-row-phone: 2.75rem;
  --dot: 8px;
  --nav-h: 4rem;
  --sticky-top: 120px;
  --measure: 62ch;
  --answer-measure: 30ch;
  --toast-y: 1.5rem;
  --focus-w: 2px;
  --focus-offset: 3px;
  --bar-w: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --stagger-item: 70ms;
  --rise: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05070a;
    --surface: #10131a;
    --ink: #eef0f5;
    --muted: #a3a9ba;
    --accent-ink: #1f2b4d;
    --field-1: #0d1118; --field-1-ink: #ffffff; --field-1-muted: #a9b0c2;
    --field-2: #1b1f27; --field-2-ink: #eef0f5; --field-2-muted: #a3a9ba;
    --field-3: #2a3350; --field-3-ink: #ffffff; --field-3-muted: #b9c0d4;
    --field-4: #141821; --field-4-ink: #eef0f5; --field-4-muted: #a3a9ba;
    --term-bg: #12161f;
    --term-rule: #2a3141;
    --term-sel: #1d2433;
    --ui-border: #2a3141;
    --ui-control: #1a1f2b;
  }
}
:root[data-theme="dark"] {
  --bg: #05070a;
  --surface: #10131a;
  --ink: #eef0f5;
  --muted: #a3a9ba;
  --accent-ink: #1f2b4d;
  --field-1: #0d1118; --field-1-ink: #ffffff; --field-1-muted: #a9b0c2;
  --field-2: #1b1f27; --field-2-ink: #eef0f5; --field-2-muted: #a3a9ba;
  --field-3: #2a3350; --field-3-ink: #ffffff; --field-3-muted: #b9c0d4;
  --field-4: #141821; --field-4-ink: #eef0f5; --field-4-muted: #a3a9ba;
  --term-bg: #12161f;
  --term-rule: #2a3141;
  --term-sel: #1d2433;
  --ui-border: #2a3141;
  --ui-control: #1a1f2b;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: var(--focus-w) solid var(--accent); outline-offset: var(--focus-offset); }
:target { scroll-margin-top: var(--nav-h); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; }
.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; }
.lead { font-size: var(--step-lead); line-height: 1.3; max-width: 40ch; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
p { max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums, td, .list__value, .term { font-variant-numeric: tabular-nums; }
code { font-family: var(--font-mono); font-size: 0.92em; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.section__head { margin-bottom: var(--s-7); }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding-inline: var(--margin); }
.nav__mark { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; }
.nav__links { display: flex; gap: var(--s-5); font-size: var(--step-small); }
.nav__links a { text-decoration: none; padding-block: var(--s-2); transition: color var(--t-hover) ease; }
.nav__links a:hover { color: var(--muted); }
@media (max-width: 48em) { .nav__links { gap: var(--s-4); } .nav__links .only-wide { display: none; } }

/* ---------- the product's interface (data-ui) ---------- */
.term { font-family: var(--font-mono); /* taste-skill-ignore: literal CLI output in <pre> */ font-size: var(--step-mono); line-height: var(--step-mono-lh); background: var(--term-bg); color: var(--term-ink); padding: var(--s-5); margin: 0; white-space: pre; overflow-x: auto; tab-size: 2; border-radius: var(--ui-radius); }
.term b { font-weight: 500; color: var(--term-ink); }
.term .dim { color: var(--term-dim); }
.term .ok { color: var(--term-ok); }
.term .warn { color: var(--term-warn); }
.term .err { color: var(--term-err); }
.term .cur { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: text-bottom; background: var(--term-ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term__title { color: var(--term-dim); margin-bottom: var(--s-3); }
.term--phone { display: none; }
@media (max-width: 36em) {
  .term { font-size: var(--step-mono-phone); padding: var(--s-4); }
  .term--wide { display: none; }
  .term--phone { display: block; }
}
/* a pre with long lines must scroll inside its box, never widen the page */
.hero__reel, .hero__frame, .field__card, .calc, .calc__out, .row__frag, .row__frag > figure, .state__row, .deal, .deal__line, .tile { min-width: 0; }
.term { width: 100%; max-width: 100%; }

/* ---------- hero: sentence split by a frame, pinned reel ---------- */
.hero { position: relative; height: 150vh; }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr var(--reel-w) 1fr; grid-template-rows: 1fr auto 1fr; column-gap: var(--gutter); padding-inline: var(--margin); align-items: center; }
.hero__h1 { grid-column: 1; grid-row: 2; align-self: center; font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.03em; font-weight: 500; }
.hero__half { display: block; }
.hero__half--a { text-align: left; }
.hero__half--b { position: absolute; right: var(--margin); top: 50%; transform: translateY(-50%); width: calc((100% - 2 * var(--margin) - var(--reel-w) - 2 * var(--gutter)) / 2); text-align: right; }
.hero__reel { grid-column: 2; grid-row: 1 / -1; align-self: stretch; position: relative; }
.hero__strip { position: absolute; left: 0; right: 0; top: 50%; display: grid; gap: var(--reel-gap); will-change: transform; }
.hero__frame { background: var(--term-bg); border-radius: var(--ui-radius); overflow: hidden; }
.hero__frame .term { min-height: calc(var(--reel-w) * 9 / 16); }
.hero__foot { grid-column: 1; grid-row: 3; align-self: end; padding-bottom: var(--s-6); max-width: 36ch; }
.hero__foot p { margin-bottom: var(--s-4); }
.hero__hint { display: none; color: var(--muted); font-size: var(--step-small); margin-bottom: var(--s-4); }
.hero__cmd { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; padding-bottom: var(--s-6); display: grid; justify-items: end; gap: var(--s-2); }

.cmd { display: inline-flex; align-items: stretch; background: var(--surface); border-radius: var(--radius); }
.cmd code { display: flex; align-items: center; padding: var(--s-3) var(--s-4); font-size: var(--step-body); }
.cmd__copy { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control-h); padding-inline: var(--s-4); background: var(--accent); color: var(--accent-ink); font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.cmd__copy:hover { background: var(--accent-hover); }
.cmd__copy:active { transform: scale(0.96); }
.cmd__copy svg { width: 1em; height: 1em; }
.cmd__copy .ic { display: grid; }
.cmd__copy .ic > * { grid-area: 1 / 1; transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out), filter var(--t-ui) ease; }
.cmd__copy .ic .ic--done { opacity: 0; transform: scale(0.6); filter: blur(2px); }
.cmd__copy.is-done .ic .ic--copy { opacity: 0; transform: scale(0.6); filter: blur(2px); }
.cmd__copy.is-done .ic .ic--done { opacity: 1; transform: none; filter: none; }

@media (max-width: 60em) {
  .hero { height: auto; }
  .hero__stage { position: static; height: auto; overflow: visible; display: grid; grid-template-columns: 1fr; grid-template-rows: none; padding-top: calc(var(--nav-h) + var(--s-5)); gap: var(--s-5); align-items: start; }
  .hero__h1 { font-size: var(--step-display-phone); }
  .hero__h1, .hero__reel, .hero__foot, .hero__cmd { grid-column: 1; grid-row: auto; }
  .hero__half--b { position: static; transform: none; width: auto; }
  .hero__reel { height: auto; }
  .hero__strip { position: static; transform: none !important; display: flex; align-items: flex-start; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero__strip::-webkit-scrollbar { display: none; }
  .hero__frame { flex: 0 0 88%; scroll-snap-align: start; }
  .hero__frame .term { min-height: 0; }
  .hero__hint { display: block; }
  .hero__foot, .hero__cmd { padding-bottom: 0; justify-self: start; justify-items: start; max-width: none; }
  .hero__cmd { margin-bottom: var(--s-6); }
  .cmd { width: 100%; justify-content: space-between; }
}

/* ---------- statement + fragment rows (5/7) ---------- */
.row { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; }
.row + .row { margin-top: var(--s-9); }
.row__text h2, .row__text h3 { font-size: var(--step-head); line-height: 1.02; margin-bottom: var(--s-5); }
.row__text p { margin-bottom: var(--s-4); }
.row__text .small { max-width: var(--measure); }
.row__frag { min-width: 0; }
.row__frag--narrow { max-width: 34rem; }
.row__frag--wide { max-width: 44rem; }
@media (max-width: 60em) { .row { grid-template-columns: 1fr; row-gap: var(--s-5); } .row + .row { margin-top: var(--s-8); } }

/* ---------- readers list: two-ended rows, narrow column ---------- */
.list { width: min(100%, var(--list-col)); margin-left: 22%; }
.list h2 { font-size: var(--step-lead); font-weight: 500; margin-bottom: var(--s-6); }
.list__group { margin-top: var(--s-7); }
.list__group:first-of-type { margin-top: 0; }
.list__label { color: var(--muted); font-size: var(--step-body); min-height: var(--list-row); display: flex; align-items: center; }
.list__row { display: flex; align-items: baseline; gap: var(--s-2); min-height: var(--list-row); padding-block: var(--s-1); }
.list__dot { flex: 0 0 auto; width: var(--step-body); height: var(--step-body); border-radius: 50%; background: var(--ink); align-self: center; }
.list__dot--soft { background: var(--muted); opacity: 0.45; }
.list__dot--ok { background: var(--term-ok); }
.list__name { flex: 1 1 auto; font-size: var(--step-body); }
.list__name code { color: var(--muted); font-size: var(--step-small); }
.list__value { flex: 0 0 auto; color: var(--muted); font-size: var(--step-body); text-align: right; max-width: 45%; }
@media (max-width: 60em) { .list { margin-left: 0; width: 100%; max-width: none; } }
@media (max-width: 36em) { .list__row { min-height: var(--list-row-phone); flex-wrap: wrap; } .list__value { flex-basis: 100%; text-align: left; max-width: none; padding-left: calc(var(--step-body) + var(--s-2)); } }

/* ---------- four fields: one card, four states ---------- */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { position: relative; min-height: var(--field-h); padding: var(--s-6); display: grid; grid-template-rows: auto 1fr auto; }
.field--1 { background: var(--field-1); color: var(--field-1-ink); --fm: var(--field-1-muted); }
.field--2 { background: var(--field-2); color: var(--field-2-ink); --fm: var(--field-2-muted); }
.field--3 { background: var(--field-3); color: var(--field-3-ink); --fm: var(--field-3-muted); }
.field--4 { background: var(--field-4); color: var(--field-4-ink); --fm: var(--field-4-muted); }
.field h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.field__card { grid-row: 2; align-self: center; justify-self: center; width: min(100%, var(--card-w)); transition: transform var(--t-hover) var(--ease-out); }
.field:hover .field__card { transform: translateY(-6px); }
.field__card .term { font-size: var(--step-mono); padding: var(--s-4); }
.field__clause { grid-row: 3; font-size: var(--step-lead); line-height: 1.3; max-width: 16ch; text-wrap: balance; }
.field__clause small { display: block; margin-top: var(--s-2); font-size: var(--step-small); color: var(--fm); max-width: 28ch; }
@media (max-width: 60em) {
  .fields { grid-template-columns: 1fr; }
  .field { min-height: var(--field-h-phone); grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-content: center; column-gap: var(--gutter); padding: var(--s-7) var(--margin); }
  .field h2 { grid-column: 1 / -1; }
  .field__clause { grid-column: 1; grid-row: 2; align-self: center; margin-bottom: 0; }
  .field__card { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; }
}
@media (max-width: 36em) {
  .field { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .field__clause { grid-row: 2; margin-bottom: var(--s-5); }
  .field__card { grid-column: 1; grid-row: 3; align-self: start; justify-self: start; width: 100%; }
}

/* ---------- the verdict calculator (the live thing) ---------- */
.calc { display: grid; gap: var(--s-4); }
.seg { display: inline-flex; background: var(--surface); border-radius: var(--radius); padding: var(--s-1); gap: var(--s-1); }
.seg button { min-height: var(--control-h-sm); padding-inline: var(--s-4); font-size: var(--step-small); font-weight: 500; color: var(--ink); border-radius: var(--radius); transition: color var(--t-hover) ease, background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.seg button:hover { background: var(--field-2); }
.seg button:active { transform: scale(0.96); }
.seg button[aria-pressed="true"] { color: var(--bg); background: var(--ink); }
.calc__range { display: grid; gap: var(--s-2); }
.calc__range label { display: flex; justify-content: space-between; font-size: var(--step-small); color: var(--muted); }
.calc__range output { color: var(--ink); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: var(--control-h-sm); background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: var(--s-1); background: var(--surface); border-radius: var(--radius); }
input[type="range"]::-moz-range-track { height: var(--s-1); background: var(--surface); border-radius: var(--radius); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--s-5); height: var(--s-5); margin-top: calc(var(--s-1) / 2 - var(--s-5) / 2); background: var(--ink); border-radius: 50%; border: 0; transition: transform var(--t-press) var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: var(--s-5); height: var(--s-5); background: var(--ink); border-radius: 50%; border: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__out .term { min-height: 9rem; }
@media (max-width: 36em) { .seg { display: grid; grid-template-columns: 1fr 1fr; } }

/* ---------- deals: one row, three states ---------- */
.states { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-7); }
.states h2 { grid-column: 4 / 10; font-size: var(--step-head); line-height: 1.02; margin-bottom: var(--s-5); }
.states__intro { grid-column: 4 / 10; margin-top: calc(var(--s-5) * -1); }
.state { display: contents; }
.state__word { grid-column: 1 / 4; text-align: right; font-size: var(--step-word); color: var(--muted); align-self: start; padding-top: var(--s-5); }
.state__row { grid-column: 4 / 10; }
.deal { background: var(--surface); border-radius: var(--ui-radius); overflow: hidden; }
.deal__line { display: flex; gap: var(--s-4); align-items: baseline; width: 100%; text-align: left; padding: var(--s-4) var(--s-5); background: var(--term-bg); color: var(--term-ink); font-family: var(--font-mono); /* taste-skill-ignore: the deal row as the CLI prints it, inside code */ font-size: var(--step-mono); line-height: var(--step-mono-lh); transition: background-color var(--t-hover) ease; }
.deal__line code { font-size: inherit; display: contents; }
.deal__line:hover, .deal__line:focus-visible, .deal[open] .deal__line { background: var(--term-sel); }
.deal__tag { flex: 0 0 9em; white-space: nowrap; }
.deal__title { flex: 1 1 auto; }
.deal__meta { color: var(--term-dim); }
.deal__detail { padding: var(--s-4) var(--s-5) var(--s-5); color: var(--ink); font-size: var(--step-body); line-height: 1.5; }
.deal__detail p { max-width: var(--measure); }
.deal__detail p + p { margin-top: var(--s-2); }
.deal__detail .warn { color: var(--ink); font-weight: 500; }
.deal__detail .deal__meta { color: var(--muted); }
.deal summary { list-style: none; cursor: pointer; }
.deal summary::-webkit-details-marker { display: none; }
.deal__actions { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.deal__btn { font: inherit; padding: var(--s-2) var(--s-4); background: var(--bg); color: var(--ink); border: var(--ui-border-w) solid var(--ui-border); border-radius: var(--ui-radius); text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
.deal__btn:active { transform: scale(0.96); }
.deal--missed .deal__title { color: var(--term-dim); text-decoration: line-through; text-decoration-color: var(--term-rule); }
@media (max-width: 60em) {
  .states { grid-template-columns: 1fr; row-gap: var(--s-6); }
  .states h2, .states__intro, .state__word, .state__row { grid-column: 1; }
  .state__word { text-align: left; padding-top: 0; order: 1; }
  .state__row { order: 0; }
  .state { display: grid; gap: var(--s-2); }
  .deal__line { flex-wrap: wrap; }
  .deal__tag { flex-basis: 100%; }
}

/* ---------- pacing statusline fragment ---------- */
.status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); background: var(--term-bg); color: var(--term-ink); font-size: var(--step-mono); padding: var(--s-3) var(--s-4); border-radius: var(--ui-radius); }
.status code { font-size: inherit; }
.status__bar { display: inline-flex; gap: 2px; }
.status__bar i { width: var(--bar-w); height: var(--step-mono); background: var(--term-ink); }
.status__bar i.off { background: var(--term-rule); }
.status__bar i.hot { background: var(--term-warn); }
.status__meta { color: var(--term-dim); }

/* ---------- comparison set as text ---------- */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-4); font-weight: 400; font-size: var(--step-body); }
.compare th { font-weight: 600; }
.compare tbody tr:nth-child(odd) { background: var(--surface); }
.compare th:first-child, .compare td:first-child { width: 34%; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; padding-left: 0; }
.compare .is-tally { background: var(--ink); color: var(--bg); }
.compare thead .is-tally { position: relative; }
.compare thead .is-tally::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--s-5); background: var(--ink); }
.compare tbody tr:nth-child(odd) .is-tally { background: var(--ink); }
.compare__note { margin-top: var(--s-5); color: var(--muted); }
@media (max-width: 48em) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare, .compare tbody { display: block; width: 100%; }
  .compare tr { display: grid; grid-template-columns: 1fr 1.5fr; column-gap: var(--s-4); padding: var(--s-4) var(--s-3); }
  .compare td { display: block; padding: var(--s-1) 0; }
  .compare td:first-child { grid-row: 1 / span 3; width: auto; font-weight: 600; font-size: var(--step-body); line-height: 1.3; padding: var(--s-1) 0; }
  .compare td[data-col]::before { content: attr(data-col) ": "; color: var(--muted); }
  .compare .is-tally { padding: var(--s-2) var(--s-3); }
  .compare .is-tally::before { color: var(--bg); opacity: 0.85; }
  .compare thead .is-tally::before { display: none; }
}

/* ---------- faq: question index, one answer ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.faq__list { grid-column: 1 / 6; display: grid; gap: var(--s-4); align-content: start; }
.faq__heading { color: var(--muted); font-size: var(--step-body); font-weight: 400; }
.faq__q { display: flex; gap: var(--s-3); align-items: baseline; text-align: left; color: var(--muted); font-size: var(--step-body); line-height: 1.35; transition: color var(--t-hover) ease; }
.faq__q::before { content: ""; flex: 0 0 var(--dot); width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--muted); transition: background-color var(--t-hover) ease; transform: translateY(-0.1em); }
.faq__q[aria-expanded="true"], .faq__q:hover { color: var(--ink); }
.faq__q[aria-expanded="true"]::before { background: var(--accent); }
.faq__pane { grid-column: 7 / 13; position: sticky; top: var(--sticky-top); align-self: start; font-size: var(--step-lead); line-height: 1.3; max-width: var(--answer-measure); }
.faq__pane p { max-width: none; transition: opacity var(--t-hover) ease; }
.faq__pane.is-swapping p { opacity: 0; }
.faq__a { display: none; }
@media (max-width: 60em) {
  .faq { grid-template-columns: 1fr; }
  .faq__list, .faq__pane { grid-column: 1; }
  .faq__pane { display: none; }
  .faq__item { display: grid; gap: var(--s-2); }
  .faq__a { display: none; padding-left: calc(var(--dot) + var(--s-3)); font-size: var(--step-body); }
  .faq__q[aria-expanded="true"] + .faq__a { display: block; }
}
html:not(.js) .faq__pane { display: none; }
html:not(.js) .faq__a { display: block; padding-left: calc(var(--dot) + var(--s-3)); }
html:not(.js) .faq__q { color: var(--ink); }

/* ---------- footer of tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--tile-gap); padding: var(--tile-gap); }
.tile { background: var(--surface); padding: var(--s-5); display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; border-radius: var(--radius); text-decoration: none; }
.tile--statement { grid-column: 1 / 5; }
.tile--statement p:first-child { font-size: var(--step-lead); line-height: 1.3; }
.tile--nav { grid-column: 5 / 8; }
.tile--nav ul { display: grid; gap: var(--s-2); }
.tile--nav a { text-decoration: none; transition: color var(--t-hover) ease; }
.tile--nav a:hover { color: var(--muted); }
.tile--cmd { grid-column: 8 / 11; }
.tile--repo { grid-column: 11 / 13; }
.tile--repo a { font-size: var(--step-body); }
.tile--mark { grid-column: 1 / 9; min-height: 320px; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; font-size: 9vw; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.tile--go { grid-column: 9 / 13; min-height: 320px; background: var(--field-2); color: var(--field-2-ink); font-size: var(--step-lead); font-weight: 500; transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) ease; }
.tile--go svg { width: var(--s-7); height: var(--s-7); align-self: flex-end; }
.tile--go:hover { background: var(--field-4); }
.tile--go:hover svg { transform: translate(var(--s-1), calc(var(--s-1) * -1)); }
.tile--go svg { transition: transform var(--t-hover) var(--ease-out); }
.tile .cmd { margin-top: var(--s-4); }
.tile .cmd code { font-size: var(--step-small); }
@media (max-width: 60em) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .tile { min-height: 0; padding: var(--s-4); }
  .tile--mark { grid-column: 1 / -1; order: -2; min-height: 160px; font-size: 22vw; }
  .tile--go { grid-column: 1 / -1; order: -1; min-height: 140px; }
  .tile--statement { grid-column: 1 / -1; order: 0; }
  .tile--nav { grid-column: 1; order: 1; }
  .tile--repo { grid-column: 2; order: 2; }
  .tile--cmd { grid-column: 1 / -1; order: 3; }
}

/* ---------- toast (beui animated toast, vanilla) ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: var(--toast-y); transform: translateX(-50%); z-index: 50; display: grid; gap: var(--s-2); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: var(--s-3) var(--s-5); border-radius: var(--radius); font-size: var(--step-small); opacity: 0; transform: translateY(var(--rise)) scale(0.96); filter: blur(2px); transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out), filter var(--t-ui) ease; }
.toast.show { opacity: 1; transform: none; filter: none; }

/* ---------- entrances: scroll-driven, in CSS only; without support the content simply sits there ---------- */
/* a rise in transform only: nothing is ever hidden or dimmed, the motion is the arrival */
@keyframes rise { from { transform: translateY(var(--rise)); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .in { animation: rise var(--ease-expo) both; animation-timeline: view(); animation-range: entry calc(0% + var(--i, 0) * 3%) entry calc(30% + var(--i, 0) * 3%); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: static; height: auto; overflow: visible; }
  .hero__strip { position: static; transform: none !important; }
  .term .cur { animation: none; }
  .seg__ind, .deal__line, .tile--go, .field__card, .faq__pane p, .toast { transition: none; }
}
