/* Autorestage — marketing site, part 2: the sections below the fold.
 * Tokens come from style.css; nothing here defines a colour of its own
 * except the photographic overlays, which sit on pictures, not on themes. */

/* ── scrollytelling ────────────────────────────────────────────────────── */
.story { padding: var(--sec) var(--gut) calc(var(--sec) * .6); }
.story-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); }
.steps { grid-column: 1; grid-row: 1; }
/* The wrapper is what sticks. On a phone it also paints the page colour
   around the stage, so step text scrolling underneath never shows through
   the gap under the nav or behind the stage's rounded corners. */
.stage-wrap { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: calc(var(--nav-h) + 7vh); }
.stage {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-l); overflow: hidden; background: var(--bg-alt);
  box-shadow: var(--shadow-l), 0 0 0 1px var(--line); isolation: isolate;
}
.panel { position: absolute; inset: 0; opacity: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease), opacity .3s; }
.panel.on { z-index: 2; opacity: 1; clip-path: inset(0); }
.panel.was { z-index: 1; opacity: 1; clip-path: inset(0); }
.panel > img, .panel > video, .swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel.on > img:not(.scrub), .panel.on > video { animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); } }
.panel[data-panel="3"] > img { object-position: 50% 22%; }
.swap { position: absolute; inset: 0; }
.swap img { opacity: 0; transition: opacity 1s var(--ease), transform 6s linear; transform: scale(1.04); }
.swap img.on { opacity: 1; transform: none; }
.chips { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: oklch(14% .01 265 / .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: oklch(100% 0 0 / .78); font-size: .82rem; font-weight: 500; cursor: pointer; transition: background-color .3s, color .3s; }
.chips button:hover { color: #fff; background: oklch(100% 0 0 / .1); }
.chips button.on { background: var(--accent); color: var(--on-accent); }
.panel-tag { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: oklch(14% .01 265 / .62); color: #fff; font-size: .8rem; font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: oklch(64% .22 25); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.logo-box { position: absolute; z-index: 3; left: 27.5%; top: 16.5%; width: 47.3%; height: 13.5%; border: 1.5px dashed var(--accent); border-radius: 10px; box-shadow: 0 0 0 9999px oklch(14% .01 265 / .18); opacity: 0; transform: scale(1.15); transition: opacity .6s .5s, transform 1s .5s var(--ease); }
.panel.on .logo-box { opacity: 1; transform: none; }
.step { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-left: 30px; cursor: pointer; outline-offset: 8px; }
.step:first-child { min-height: 58vh; justify-content: flex-start; padding-top: 7vh; }
.step::before, .step::after { content: ''; position: absolute; left: 0; top: 50%; height: 140px; width: 2px; translate: 0 -50%; border-radius: 2px; background: var(--line-2); }
.step:first-child::before, .step:first-child::after { top: calc(7vh + 70px); }
.step::after { background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease); }
.step.on::after { transform: none; }
/* Inactive steps recede by colour, not opacity: --ink-3 still reads at
   5:1, where opacity .3 took the same text to under 2.5:1. */
.step .n { font: 500 .85rem var(--mono); color: var(--ink-3); transition: color .5s var(--ease); }
.step h3 { margin-top: 10px; font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.5rem); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; color: var(--ink-3); transition: color .5s var(--ease); }
.step p { margin-top: 16px; max-width: 40ch; color: var(--ink-3); font-size: 1.06rem; transition: color .5s var(--ease); }
.step.on .n { color: var(--accent-ink); }
.step.on h3 { color: var(--ink); }
.step.on p { color: var(--ink-2); }

/* ── before / after ────────────────────────────────────────────────────── */
.ba-sec { padding: var(--sec) var(--gut); background: var(--bg-alt); }
.ba { --pos: 50%; position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l); background: var(--surface); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-clip { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-bar { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 24px oklch(0% 0 0 / .35); pointer-events: none; }
.ba-grip { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: oklch(18% .01 265); box-shadow: 0 8px 30px oklch(0% 0 0 / .3); transition: transform .4s var(--ease); }
.ba-grip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ba:hover .ba-grip { transform: scale(1.08); }
.ba-range:focus-visible ~ .ba-bar .ba-grip { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-tag { position: absolute; z-index: 2; top: 16px; padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 500; pointer-events: none; }
.ba-tag.l { left: 16px; background: oklch(14% .01 265 / .6); color: #fff; backdrop-filter: blur(8px); }
.ba-tag.r { right: 16px; background: var(--accent); color: var(--on-accent); }

/* ── details: an editorial list, not another card grid ─────────────────── */
.details { padding: var(--sec) var(--gut); }
.det-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.det-grid li { position: relative; padding: 34px 0 42px; border-top: 1px solid var(--line-2); }
.det-grid li::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.det-grid li:hover::before { transform: none; }
.det-grid svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.det-grid li:hover svg { transform: rotate(-8deg) scale(1.06); }
.det-grid h3 { margin-top: 22px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.03em; }
.det-grid p { margin-top: 8px; color: var(--ink-2); max-width: 34ch; }
.det-grid li:nth-child(3n+2) { --d: .08s; } .det-grid li:nth-child(3n) { --d: .16s; }

/* ── who it is for ─────────────────────────────────────────────────────── */
.built { padding: var(--sec) var(--gut); background: var(--bg-alt); }
.ind-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ind { display: flex; flex-direction: column; padding: 10px 10px 24px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s), 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.ind:hover { transform: translateY(-8px); box-shadow: var(--shadow-l), 0 0 0 1px var(--line); }
.ind:nth-child(2) { --d: .08s; } .ind:nth-child(3) { --d: .16s; } .ind:nth-child(4) { --d: .24s; }
.ind-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--r-l) - 9px); }
.ind-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ind:hover .ind-img img { transform: scale(1.07); }
.ind h3 { margin: 20px 12px 0; font-size: 1.22rem; font-weight: 600; letter-spacing: -.03em; }
.ind p { margin: 8px 12px 0; color: var(--ink-2); font-size: .96rem; }
.ind .more { align-self: flex-start; }
.more { display: inline-flex; gap: 6px; margin: auto 12px 0; padding-top: 18px; color: var(--accent-ink); font-size: .92rem; font-weight: 600; text-decoration: none; }
.more span { transition: transform .4s var(--ease); }
.ind:hover .more span, .more:hover span { transform: translateX(5px); }
@media (min-width: 1101px) { .ind:nth-child(even) { margin-top: 56px; margin-bottom: -56px; } .ind-grid { padding-bottom: 56px; } }

/* ── the difference ────────────────────────────────────────────────────── */
.diff { padding: var(--sec) var(--gut); }
.diff-table { position: relative; max-width: 1000px; margin: 0 auto; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s), 0 0 0 1px var(--line); overflow: hidden; }
.diff-table::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; right: 0; background: var(--accent-soft); box-shadow: inset 1px 0 0 var(--line); pointer-events: none; }
.diff-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.diff-row + .diff-row { border-top: 1px solid var(--line); }
.diff-row span { display: flex; align-items: center; gap: 14px; padding: 20px clamp(16px, 3vw, 32px); font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }
.diff-row span::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--line); -webkit-mask: var(--ic) center / 12px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: var(--ic) center / 12px no-repeat exclude, linear-gradient(#000 0 0); }
.diff-row span:first-child { color: var(--ink-3); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3L3 9' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.diff-row span:first-child::before { background: var(--line-2); }
.diff-row span:last-child { font-weight: 500; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.diff-row span:last-child::before { background: var(--accent); }
.diff-head span { padding-block: 18px; font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.diff-head span::before { display: none; }
.diff-head span:last-child { color: var(--accent-ink); }
.js .diff-table .diff-row { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + .2s); }
.js .diff-table.in .diff-row { opacity: 1; transform: none; }
.diff-row:nth-child(2) { --i: 1; } .diff-row:nth-child(3) { --i: 2; } .diff-row:nth-child(4) { --i: 3; }
.diff-row:nth-child(5) { --i: 4; } .diff-row:nth-child(6) { --i: 5; } .diff-row:nth-child(7) { --i: 6; }

/* ── numbers ───────────────────────────────────────────────────────────── */
.stats { position: relative; overflow: hidden; color-scheme: dark; color: var(--ink); background: var(--night); padding: clamp(72px, 8vw, 120px) var(--gut); }
.stats::before { content: ''; position: absolute; left: 50%; top: -60%; width: 90%; height: 120%; translate: -50% 0; background: radial-gradient(closest-side, oklch(77% .16 68 / .16), transparent); pointer-events: none; }
.stats dl { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stats dl > div { padding-top: 26px; border-top: 1px solid var(--line-2); }
.stats dl > div:nth-child(2) { --d: .08s; } .stats dl > div:nth-child(3) { --d: .16s; } .stats dl > div:nth-child(4) { --d: .24s; }
.stats dt { font-size: clamp(2.6rem, 1.5rem + 3.4vw, 4.8rem); font-weight: 600; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--ink) 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin-top: 14px; max-width: 24ch; color: var(--ink-2); }
.stats .pre { font-size: .32em; letter-spacing: -.01em; vertical-align: .9em; margin-right: -.1em; }

/* ── how it works ──────────────────────────────────────────────────────── */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; padding-block: var(--sec); background: var(--bg-alt); }
.how { padding-inline: max(var(--gut), calc((100% - var(--wrap)) / 2)); }
.how-img { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l); }
.how-img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.how .sec-head { margin-bottom: 36px; }
.how-steps { position: relative; display: grid; gap: 30px; }
.how-steps::before, .how-steps::after { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line-2); }
.how-steps::after { background: var(--accent); transform: scaleY(var(--hp, 0)); transform-origin: top; transition: transform .2s linear; }
.how-steps li { position: relative; z-index: 1; display: flex; gap: 22px; }
.how-steps li:nth-child(2) { --d: .1s; } .how-steps li:nth-child(3) { --d: .2s; }
.how-steps .n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); font-weight: 600; color: var(--accent-ink); transition: background-color .4s, color .4s; }
.how-steps li.lit .n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.how-steps h3 { margin-top: 8px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; }
.how-steps p { margin-top: 6px; color: var(--ink-2); max-width: 40ch; }

/* ── developers ────────────────────────────────────────────────────────── */
.api { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 88px); align-items: center; padding-block: var(--sec); }
.api { padding-inline: max(var(--gut), calc((100% - var(--wrap)) / 2)); }
.api-copy h2 { margin-top: 18px; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.api-copy > p:not(.eyebrow) { margin-top: 20px; max-width: 50ch; color: var(--ink-2); font-size: 1.05rem; }
.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ticks li::after { content: ''; position: absolute; left: 7px; top: 7px; width: 6px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; rotate: 40deg; }
.more-api { margin: 26px 0 0; padding-top: 0; }
.code { --d: .1s; color-scheme: dark; color: var(--ink); background: oklch(16.5% .008 265); border-radius: var(--r-l); box-shadow: var(--shadow-l), 0 0 0 1px var(--line); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.code-bar span { flex: 1; margin-left: 10px; font: .8rem var(--mono); color: var(--ink-3); }
.code pre { margin: 0; padding: 24px; overflow-x: auto; font: .86rem/1.8 var(--mono); }
.code .c { color: var(--ink-3); } .code .s { color: var(--accent); }

/* ── final call ────────────────────────────────────────────────────────── */
.end { position: relative; isolation: isolate; overflow: hidden; color-scheme: dark; color: var(--ink); background: var(--night); padding: clamp(130px, 15vw, 230px) var(--gut); text-align: center; }
.end-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .6; transform: scale(1.12); transition: transform 3s var(--ease); }
.end:has(.in) .end-bg { transform: none; }
.end::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, oklch(12.4% .006 265 / .55), var(--night)); }
.end h2 { font-size: clamp(2.7rem, 1.2rem + 5.4vw, 6.4rem); font-weight: 600; line-height: .98; letter-spacing: -.058em; }
.end p { max-width: 40ch; margin: 22px auto 0; color: var(--ink-2); font-size: var(--t-lead); }
.end .hero-cta { justify-content: center; animation: none; }

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { padding: 72px var(--gut) 36px; border-top: 1px solid var(--line); }
.foot-top { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; }
.foot-brand p { margin-top: 14px; max-width: 30ch; color: var(--ink-3); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-h { margin-bottom: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.foot-cols a { display: block; padding: 5px 0; color: var(--ink-2); font-size: .94rem; text-decoration: none; transition: color .2s; }
.foot-cols a:hover { color: var(--ink); }
.foot-bot { max-width: var(--wrap); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--ink-3); font-size: .86rem; }
/* The copyright line and the privacy button wrap as two items, flush left, so
   the button never hangs indented under the line on a phone. The copyright is
   one span so the year stays with it. */
.foot-bot p:first-child { display: flex; flex-wrap: wrap; gap: 4px 10px; }
/* A button, because it opens the choice rather than going anywhere. Only
   consent.js can answer it, so without scripts it is not shown at all. */
.foot-btn { margin-left: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; transition: color .2s, text-decoration-color .2s; }
.foot-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
:root:not(.js) .foot-btn { display: none; }

/* ── consent notice: consent.js builds it, and the Meta Pixel waits on it ──
   Fixed, so it never shifts the page; first in the DOM, so keyboard and
   screen-reader users meet it first. Accept and Decline are the same button
   on purpose -- neither is the "right" answer. Under the mobile sheet's scrim
   (45), over everything else in the page. */
.consent { position: fixed; z-index: 44; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(420px, calc(100% - 32px)); padding: 20px 20px 16px; border-radius: var(--r-m); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-l), 0 0 0 1px var(--line); animation: consent-in .22s var(--ease) both; }
.consent-h { font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.consent-h:focus { outline: none; }
.consent-h:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.consent-p, .consent-now { margin-top: 8px; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.consent-now { color: var(--ink); font-weight: 500; }
.consent-row { display: flex; gap: 10px; margin-top: 16px; }
.consent-btn { flex: 1 1 0; min-width: 0; }
.consent-more { display: inline-block; margin-top: 12px; padding: 2px 0; color: var(--ink-2); font-size: .88rem; text-underline-offset: 3px; }
.consent-more:hover { color: var(--ink); }
@keyframes consent-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
:root[data-motion="off"] .consent { animation: none; }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 480px) { .consent { padding: 16px 16px 12px; } .consent-p { font-size: .86rem; } }
@media print { .consent { display: none; } }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage-wrap { grid-column: 1; grid-row: 1; z-index: 4; top: var(--nav-h); margin-inline: calc(-1 * var(--gut)); padding: 10px var(--gut) 16px; background: var(--bg); }
  .stage { aspect-ratio: 16 / 10; width: min(100%, calc(46svh * 1.6)); margin-inline: auto; }
  .steps { grid-column: 1; grid-row: 2; }
  .step, .step:first-child { min-height: 58vh; justify-content: center; padding-top: 0; }
  .step:first-child::before, .step:first-child::after { top: 50%; }
  .logo-box { top: 15.9%; height: 14.9%; }
  .det-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .how, .api { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) and (max-height: 560px) {
  .stage-wrap { position: relative; top: auto; }
}
@media (max-width: 600px) {
  .ind-grid, .det-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .diff-row span { padding: 16px 14px; gap: 10px; font-size: .94rem; }
  .ba { aspect-ratio: 4 / 3; }
  .chips { left: 8px; right: 8px; top: 8px; bottom: auto; }
  .panel[data-panel="3"] .panel-tag { top: auto; bottom: 10px; }
}

/* ── 404: the copy, the demo car, and the five places worth going ─────── */
.lost { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 104px) var(--gut) var(--sec); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.lost h1 { margin-top: 18px; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.4rem); font-weight: 600; line-height: 1.01; letter-spacing: -.05em; text-wrap: balance; }
.lost-lede { max-width: 40ch; margin-top: 22px; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.55; }
.lost .hero-cta { margin-top: 30px; }
.lost-pic { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow-l), 0 0 0 1px var(--line); }
.lost-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lost-pic figcaption { position: absolute; top: 14px; right: 16px; padding: 4px 10px; border-radius: 999px; background: oklch(15% .01 265 / .6); color: #fff; font: 500 .78rem/1.4 var(--mono); }
.lost-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lost-links a { display: block; padding: 18px 18px 20px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-s), 0 0 0 1px var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lost-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow-l), 0 0 0 1px var(--line); }
.lost-links a:active { transform: scale(.98); }
.lost-links b { display: block; font-weight: 600; font-size: .98rem; letter-spacing: -.015em; }
.lost-links span { display: block; margin-top: 4px; color: var(--ink-3); font-size: .86rem; line-height: 1.4; }
@media (max-width: 1100px) { .lost-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lost { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .lost-links { grid-template-columns: minmax(0, 1fr); } .lost .hero-cta .pill { width: 100%; } }

/* Compact on phones: ad traffic lands on a phone, and the full card covered
   half the screen -- the signup button included. A slim bar at the foot. */
@media (max-width: 600px) {
  .consent { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: auto; padding: 12px 14px 10px; }
  .consent-h { font-size: .9rem; }
  .consent-p, .consent-now { margin-top: 2px; font-size: .82rem; line-height: 1.4; }
  .consent-row { margin-top: 10px; gap: 8px; }
  .consent-btn { min-height: 40px; padding-block: 0; }
  .consent-more { margin-top: 6px; font-size: .8rem; }
}

/* ── the platform ──────────────────────────────────────────────────────── */
/* Added 2026-10-31. The home page sold the studio and nothing else, while the
   product had grown a Marketplace poster, a dealer website, a CRM, two
   assistants, a voice agent and two phone apps. Six cards, no photographs:
   these are things a dealer DOES, and a stock picture of each would say less
   than the sentence under it. */
.sec-lede { margin-top: 18px; max-width: 58ch; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; text-wrap: pretty; }
.sec-head.center .sec-lede { margin-inline: auto; }

.plat { padding: var(--sec) var(--gut); background: var(--bg-alt); }
.plat-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plat-card {
  padding: 26px 24px 28px; border-radius: var(--r-l); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.plat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-s), 0 0 0 1px var(--line-2); }
.plat-card:nth-child(2) { --d: .06s; } .plat-card:nth-child(3) { --d: .12s; }
.plat-card:nth-child(4) { --d: .18s; } .plat-card:nth-child(5) { --d: .24s; } .plat-card:nth-child(6) { --d: .3s; }
.plat-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.plat-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.plat-card h3 { margin-top: 18px; font-size: 1.18rem; font-weight: 600; letter-spacing: -.03em; }
.plat-card p { margin-top: 10px; color: var(--ink-2); font-size: .97rem; line-height: 1.6; }

/* ── one car, one evening ──────────────────────────────────────────────── */
/* A timeline rather than a screenshot. Every row is something the product
   really does, at a time of night when the dealership is shut -- which is the
   whole argument, and a picture of a console would have made it instead. */
/* A DARK SCOPE, declared where the file says to declare one (style.css:51),
   not with colours of its own: the tokens flip and everything inside follows.
   The photograph is the argument -- a lot at blue hour with nobody on it. */
/* `color: var(--ink)` is NOT redundant beside the dark scope, and .stats and
   .end both declare it for the same reason: body computes `color: var(--ink)`
   once against the ROOT tokens and descendants inherit that COMPUTED colour,
   not the variable. Without this line the h2 and every bold row title stayed
   near-black on the photograph while the paragraphs, which set --ink-2
   themselves, went light. */
.evening { position: relative; isolation: isolate; color-scheme: dark; color: var(--ink); padding: var(--sec) var(--gut); background: var(--night); overflow: hidden; }
.ev-bg { position: absolute; inset: 0; z-index: -1; }
.ev-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.ev-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--night) 0%, oklch(12.4% .006 265 / .62) 34%, oklch(12.4% .006 265 / .74) 72%, var(--night) 100%);
}
.evening .ev-row + .ev-row { border-top-color: oklch(100% 0 0 / .1); }
.evening .ev-dot { background: oklch(100% 0 0 / .22); }
.ev-list { max-width: 820px; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.ev-row { position: relative; display: grid; grid-template-columns: 76px 22px minmax(0, 1fr); align-items: start; gap: 0 10px; padding: 18px 0; }
.ev-row + .ev-row { border-top: 1px solid var(--line); }
.ev-time { padding-top: 2px; color: var(--ink-3); font-size: .95rem; font-weight: 600; letter-spacing: -.02em; }
.ev-dot { position: relative; margin-top: 9px; width: 9px; height: 9px; justify-self: center; border-radius: 50%; background: var(--line-2); }
.ev-hot .ev-dot { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.ev-hot .ev-time { color: var(--accent-ink); }
.ev-body b { display: block; font-size: 1.06rem; font-weight: 600; letter-spacing: -.025em; }
.ev-body span { display: block; margin-top: 5px; color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.ev-foot { max-width: 820px; margin: 28px auto 0; color: var(--ink-3); font-size: .95rem; text-align: center; }

/* The phone on the forecourt, under the six cards: the one of the six that a
   photograph can actually show. */
.plat-shot { max-width: 1100px; margin: clamp(36px, 4.5vw, 64px) auto 0; }
.plat-shot img { width: 100%; height: auto; border-radius: var(--r-l); box-shadow: var(--shadow-s), 0 0 0 1px var(--line); }
.plat-shot figcaption { margin-top: 14px; color: var(--ink-3); font-size: .93rem; text-align: center; }

@media (max-width: 1100px) { .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .plat-grid { grid-template-columns: 1fr; }
  .ev-row { grid-template-columns: 60px 18px minmax(0, 1fr); }
  .ev-time { font-size: .88rem; }
}

/* ── the live panel ────────────────────────────────────────────────────── */
/* What a dealer is actually buying is not a feature list: it is that three
   people got an answer on a Saturday night. So the evening is shown as the
   assistant's own feed -- channel, time, the words, and what it DID.
   THE NUMBERS ARE THE EXAMPLE'S, NOT A CLAIM. The strip says "one lot, 240
   cars -- an example evening" above them on purpose: a marketing page that
   prints an invented "82% resolved by AI" is making a measurement up. */
.live {
  max-width: 1080px; margin: 0 auto clamp(40px, 5vw, 72px);
  border-radius: var(--r-l); overflow: hidden;
  background: oklch(100% 0 0 / .05);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / .12), 0 40px 90px -40px oklch(0% 0 0 / .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.live-top {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  padding: 16px 22px; border-bottom: 1px solid oklch(100% 0 0 / .1);
  background: oklch(100% 0 0 / .04);
}
.live-on { display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(76% .15 152); box-shadow: 0 0 0 0 oklch(76% .15 152 / .6); animation: livePulse 2.4s var(--ease) infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px oklch(76% .15 152 / 0); } 100% { box-shadow: 0 0 0 0 oklch(76% .15 152 / 0); } }
.live-when { color: var(--ink-2); font-size: .9rem; font-variant-numeric: tabular-nums; }
.live-note { margin-left: auto; color: var(--ink-3); font-size: .84rem; }

.live-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); }
.live-feed { margin: 0; padding: 0; list-style: none; }
.lf { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 20px 22px; }
.lf + .lf { border-top: 1px solid oklch(100% 0 0 / .08); }
.lf-who { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: oklch(100% 0 0 / .1); font-weight: 600; font-size: .95rem; }
.lf-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 0; }
.lf-head b { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.lf-chip { padding: 2px 9px; border-radius: 999px; background: oklch(100% 0 0 / .1); color: var(--ink-2); font-size: .74rem; font-weight: 600; }
.lf-time { margin-left: auto; color: var(--ink-3); font-size: .84rem; }
.lf-msg { margin: 9px 0 0; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.lf-did { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 9px; margin: 10px 0 0; color: var(--ink-2); font-size: .91rem; line-height: 1.5; }
.lf-pill { padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.lf-pill.ok { background: oklch(76% .15 152 / .16); color: oklch(80% .14 152); }
.lf-pill.warm { background: var(--accent-soft); color: var(--accent); }

.live-side { padding: 22px; border-left: 1px solid oklch(100% 0 0 / .1); background: oklch(100% 0 0 / .03); }
.ls-h { margin: 0; color: var(--ink-3); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ls-tiles { margin: 16px 0 0; display: grid; gap: 14px; }
.ls-tiles > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid oklch(100% 0 0 / .08); }
.ls-tiles > div:last-of-type { border-bottom: 0; padding-bottom: 0; }
.ls-tiles dt { color: var(--ink-2); font-size: .9rem; }
.ls-tiles dd { margin: 0; font-size: 1.7rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.ls-foot { margin: 18px 0 0; color: var(--ink-3); font-size: .86rem; line-height: 1.5; }

@media (max-width: 860px) {
  .live-body { grid-template-columns: 1fr; }
  .live-side { border-left: 0; border-top: 1px solid oklch(100% 0 0 / .1); }
  .live-note { margin-left: 0; width: 100%; }
  .lf-time { margin-left: 0; }
}
.ev-mid { max-width: 820px; margin: clamp(30px, 4vw, 52px) auto clamp(18px, 2vw, 26px); color: var(--ink-2); font-size: 1.02rem; text-align: center; }

/* ── one platform: the hub ─────────────────────────────────────────────── */
/* The argument a feature list cannot make: these are not eight products
   bought separately, they are one record with eight things attached.
   Drawn in CSS, not exported as a picture, so it stays sharp at any size,
   follows the theme, and can gain a ninth node without a design tool.
   Each satellite is placed by its own --a: rotate the arm, push out by the
   radius, then un-rotate the tile so its label stays level.

   IT IS A DARK SECTION ON PURPOSE. The first version put a saturated orange
   disc on warm paper and it read as a cartoon sun: on paper the accent is
   PAINT, and only against something dark does it read as LIGHT. The core is
   the brand, lit from above left, inside its own halo. */
.hub-sec {
  color-scheme: dark; color: var(--ink);
  padding: var(--sec) var(--gut); background: var(--night);
  background-image: radial-gradient(oklch(100% 0 0 / .045) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hub-wrap { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hub-copy h2 { margin-top: 18px; font-size: var(--t-h2); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
.hub-copy .pill { margin-top: 28px; }

/* A percentage in translate() resolves against the ELEMENT, not its parent,
   so translate(40%) pushed each tile out by 40% of 104px and all eight piled
   onto the core. cqmin is the length that means "of this box". */
.hub { position: relative; container-type: size; aspect-ratio: 1; width: 100%; max-width: 560px; margin-inline: auto; --r: 36cqmin; }
.hub-orbit { position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed oklch(100% 0 0 / .14); }

.hub-spokes { position: absolute; inset: 0; }
.hub-spokes i {
  position: absolute; left: 50%; top: 50%; height: 1px; width: var(--r);
  transform-origin: 0 50%; transform: rotate(var(--a));
  background: linear-gradient(to right, oklch(77% .16 68 / .5), oklch(100% 0 0 / .1) 55%, transparent);
}

.hub-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 31%; aspect-ratio: 1; }
/* The halo is a separate, blurred layer so the orb itself keeps a crisp edge
   -- a box-shadow alone gave a flat ring. */
.hub-halo {
  position: absolute; inset: -72%; border-radius: 50%;
  background: radial-gradient(closest-side, oklch(74% .17 62 / .42), oklch(72% .18 60 / .14) 46%, oklch(70% .18 58 / .05) 66%, transparent 78%);
  filter: blur(10px);
}
.hub-orb {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px;
  border-radius: 50%; text-align: center;
  background:
    radial-gradient(58% 52% at 34% 26%, oklch(94% .07 85 / .92), transparent 62%),
    radial-gradient(closest-side, oklch(79% .15 68), oklch(68% .17 56) 62%, oklch(54% .14 48));
  box-shadow:
    inset 0 -26px 52px oklch(36% .11 44 / .42),
    inset 0 2px 1px oklch(100% 0 0 / .4),
    0 26px 60px -18px oklch(55% .18 48 / .7);
}
.hub-mark { width: 26px; height: 26px; }
.hub-mark .ring { fill: none; stroke: oklch(100% 0 0 / .92); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 54 18; }
.hub-mark .dot { fill: oklch(100% 0 0); }
.hub-orb b { color: oklch(100% 0 0); font-size: clamp(.86rem, 3.4cqmin, 1.12rem); font-weight: 600; letter-spacing: -.03em; }
.hub-orb i { color: oklch(100% 0 0 / .72); font-style: normal; font-size: clamp(.6rem, 2.1cqmin, .72rem); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.hub-ring { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hub-ring li {
  position: absolute; left: 50%; top: 50%; width: 104px;
  translate: -50% -50%;
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
  display: grid; justify-items: center; gap: 9px; text-align: center;
}
.hub-ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px;
  background: linear-gradient(oklch(100% 0 0 / .14), oklch(100% 0 0 / .06));
  color: var(--accent);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / .2), inset 0 1px 0 oklch(100% 0 0 / .26), 0 14px 30px -14px oklch(0% 0 0 / .9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
}
.hub-ring li:hover .hub-ico {
  transform: translateY(-4px); color: oklch(88% .13 76);
  box-shadow: inset 0 0 0 1px oklch(77% .16 68 / .55), inset 0 1px 0 oklch(100% 0 0 / .25), 0 18px 40px -14px oklch(60% .18 52 / .7);
}
.hub-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hub-ring b { color: var(--ink-2); font-size: .84rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }

@media (max-width: 980px) {
  .hub-wrap { grid-template-columns: 1fr; }
  .hub-copy h2 { max-width: 16ch; }
}
/* Below about 620px the arms put the tiles over each other and the labels
   collide, so the ring stops being a ring and becomes what it always was
   underneath: a list of eight things. */
@media (max-width: 620px) {
  /* container-type: size needs a definite size in BOTH axes. Dropping the
     aspect-ratio here left the block size indefinite, and size containment
     then collapsed the whole diagram to zero height. The cq units are only
     used by the ring's arms, which this branch does not use. */
  .hub { container-type: normal; aspect-ratio: auto; max-width: none; }
  .hub-orbit, .hub-spokes { display: none; }
  /* The orb stays. Hiding it took the one piece of the diagram that carries
     the brand off the screen a dealer is most likely to be holding. */
  /* RELATIVE, not static: the halo is absolutely positioned at inset -72%,
     and with the core unpositioned it resolved against .hub instead -- 358px
     wide became 874px and the whole page scrolled sideways by 242. */
  .hub-core { position: relative; left: auto; top: auto; translate: none; width: 148px; aspect-ratio: 1; margin: 4px auto 34px; }
  .hub-ring { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .hub-ring li { position: static; width: auto; translate: none; transform: none; }
}

/* ── the hub, moving ───────────────────────────────────────────────────── */
/* What makes a diagram read as a SYSTEM rather than a picture: something
   arrives. A pulse runs down each spoke to the core, the dashed orbit turns
   once a minute, and the halo breathes. Transform and opacity only, so it
   stays on the compositor; the site already kills every animation under
   prefers-reduced-motion (style.css), so none of this needs its own guard. */
.hub-orbit { animation: hubTurn 72s linear infinite; }
@keyframes hubTurn { to { transform: rotate(360deg); } }

.hub-halo { animation: hubBreathe 7s var(--ease-in-out, ease-in-out) infinite; }
@keyframes hubBreathe { 50% { transform: scale(1.07); opacity: .82; } }

/* The arm runs from the core outward, so the pulse starts at the tile end
   (translateX(var(--r))) and arrives at nothing (0). */
.hub-spokes i::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: oklch(85% .14 74);
  box-shadow: 0 0 12px 3px oklch(77% .16 68 / .65);
  opacity: 0; animation: hubPulse 4.2s var(--ease) infinite;
}
@keyframes hubPulse {
  0%   { transform: translateX(var(--r)) scale(.6); opacity: 0; }
  14%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(0) scale(1.25); opacity: 0; }
}
/* Staggered so eight pulses never arrive together, which would read as a
   heartbeat rather than eight separate things reporting in. */
.hub-spokes i:nth-child(1)::after { animation-delay: 0s; }
.hub-spokes i:nth-child(2)::after { animation-delay: .52s; }
.hub-spokes i:nth-child(3)::after { animation-delay: 1.05s; }
.hub-spokes i:nth-child(4)::after { animation-delay: 1.57s; }
.hub-spokes i:nth-child(5)::after { animation-delay: 2.1s; }
.hub-spokes i:nth-child(6)::after { animation-delay: 2.62s; }
.hub-spokes i:nth-child(7)::after { animation-delay: 3.15s; }
.hub-spokes i:nth-child(8)::after { animation-delay: 3.67s; }

/* NO PER-TILE REVEAL STAGGER. --d only reaches elements carrying .reveal,
   and .reveal animates `transform` -- the very property each tile uses to sit
   on the ring. Staggering them would have unseated all eight. The section
   reveals as one, and the pulses do the work afterwards. */
