/* AB:X homepage, 9 October 2026.
   One stylesheet for the page. Secondary pages keep styles.css. */

@font-face { font-family: Geist; src: url('assets/fonts/geist-latin.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('assets/fonts/geist-mono-latin.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --brand-cream: #F0EFED;
  --brand-graphite: #101619;
  --cream: #F0EFED;
  --field: #FAF9F7;
  --hero-ground: #E6E6E4;
  --detail-ground: #E8E8E6;
  --headline-muted: #7B8380;
  --ink: #171717;
  --night: #0F1215;
  --fog: #959FA2;
  --haze: #D9E8EF;
  --muted: #56636B;
  --grey: #5E5E5E;
  --line: rgba(23, 23, 23, .14);
  --line-strong: rgba(23, 23, 23, .3);
  --line-dark: rgba(240, 239, 237, .16);
  --lime: #BFFF33;
  --sans: Geist, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --edge: 48px;
  --col: min(1200px, 100% - 2 * var(--edge));
  --shell-inset: 16px;
  --shell-radius: 24px;
  --stage-radius: 22px;
  --chapter-space: 128px;

  /* Motion: one curve family, three durations. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 140ms;
  --dur-2: 260ms;
  --dur-3: 560ms;

  interpolate-size: allow-keywords;
}
@media (max-width: 1023px) { :root { --edge: 24px; --chapter-space: 80px; } }
@media (max-width: 599px) { :root { --edge: 16px; --shell-inset: 8px; --shell-radius: 16px; --stage-radius: 16px; --chapter-space: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The page edges retain the brand cream. */
html { background: var(--cream); scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.5 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 50; padding: 12px 16px; background: var(--ink); color: var(--cream); transform: translateY(-160%); }
.skip:focus { transform: none; }

.text-link { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 500; line-height: 1.6; }
.link-icon { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) {
  .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
  a.text-link:hover .link-icon { transform: translateY(2px); }
  button.text-link:hover .link-icon { transform: translate(2px, -2px); }
}

/* ---------- Buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 9px 9px 16px; border: 0; background: var(--ink); color: var(--cream); font: 500 16px/24px var(--sans); letter-spacing: -.02em; white-space: nowrap; transition: background-color var(--dur-1) ease-out, transform var(--dur-1) var(--ease-out); }
.btn-icon { display: grid; place-items: center; width: 28px; height: 28px; background: var(--cream); color: var(--ink); transition: background-color var(--dur-2) ease-out; }
.btn-icon svg { width: 16px; height: 16px; }
.btn:disabled { cursor: default; }
@media (hover: hover) { .btn:not(:disabled):hover { background: #383838; } }
.btn:active:not(:disabled) { transform: scale(.985); }

.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; max-width: 520px; }
.waitlist input { min-width: 0; height: 46px; padding: 0 14px; border: 1px solid rgba(23, 23, 23, .22); border-right: 0; border-radius: 0; background: var(--field); color: var(--ink); font: 400 16px/1 var(--sans); }
.waitlist input::placeholder { color: #6B6B6B; }
.waitlist .status { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; text-align: left; }
.waitlist .status:empty { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.icon-tick { display: none; }
/* Joined: the field and key collapse into one confirmation. */
.waitlist[data-state="done"] { grid-template-columns: auto; justify-content: center; }
.waitlist[data-state="done"] input { display: none; }
.waitlist[data-state="done"] .btn { min-width: 240px; }
.waitlist[data-state="done"] .btn-icon { background: var(--lime); }
.waitlist[data-state="done"] .icon-arrow { display: none; }
.waitlist[data-state="done"] .icon-tick { display: block; }
.waitlist[data-state="done"] .status { text-align: center; }
::view-transition-group(waitlist), ::view-transition-group(waitlist-key) { animation-duration: var(--dur-3); animation-timing-function: var(--ease-out); }

/* Segmented keys, used for appearance, MIX/REF and notes detail. */
.segmented { display: inline-flex; border: 1px solid var(--line-strong); }
.segmented button { white-space: nowrap; min-height: 36px; padding: 6px 14px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: -.01em; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.segmented button + button { border-left: 1px solid var(--line-strong); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
@media (hover: hover) { .segmented button[aria-pressed="false"]:hover { color: var(--ink); background: rgba(23, 23, 23, .05); } }
.segmented--ab button { min-width: 64px; font-family: var(--mono); letter-spacing: .06em; }
.segmented--small button { min-height: 30px; padding: 4px 10px; font-size: 12px; }

.screen-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 0; border: 0; background: none; font-size: 12px; }
.screen-link svg { width: 12px; height: 12px; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) { .screen-link:hover { text-decoration: underline; text-underline-offset: 4px; } .screen-link:hover svg { transform: translate(2px, -2px); } }

/* ---------- Phones ---------- */
.phone { position: relative; width: 300px; margin-inline: auto; padding: 10px; border: 1px solid #6c7479; border-radius: 40px; background: linear-gradient(110deg, #9b9fa2, #323639 13%, #050607 46%, #53595c 85%, #a1a6aa); box-shadow: 0 25px 45px -17px rgba(23, 23, 23, .4), 0 2px 4px rgba(23, 23, 23, .3); }
.phone img { width: 100%; aspect-ratio: 800 / 1740; object-fit: cover; border-radius: 29px; background: #050607; box-shadow: 0 0 0 4px #050607; }
.light-phone { border-color: #969fa5; background: linear-gradient(110deg, #e3e5e6, #a1a7aa 13%, #d5d9dc 70%, #8a9298); }

/* ---------- Hero: a centered, swipeable collection of real app screens ---------- */
.hero-shell { max-width: 1280px; margin-inline: auto; background: var(--hero-ground); }
.hero { padding: 140px var(--edge) 24px; text-align: center; }
.hero h1 { max-width: 1040px; margin: 0 auto; font-size: clamp(42px, 5.2vw, 68px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.lede { max-width: 760px; margin: 24px auto 0; font-size: clamp(18px, 2.1vw, 28px); line-height: 1.5; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.hero-collection { --hero-phone-width: 280px; --hero-step: 250px; margin: 38px calc(-1 * var(--edge)) 0; }
.hero-track { position: relative; display: flex; align-items: flex-end; height: calc(var(--hero-phone-width) * 2.175 + 60px); padding: 18px calc(50% - var(--hero-step) / 2) 32px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: auto; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track:focus-visible { outline-offset: -5px; }
.hero-track[data-dragging] { cursor: grabbing; scroll-snap-type: none; }
.hero-slide { position: relative; flex: 0 0 var(--hero-step); width: var(--hero-step); scroll-snap-align: center; }
.hero-slide .hero-phone { width: var(--hero-phone-width); max-width: none; margin-left: calc((var(--hero-step) - var(--hero-phone-width)) / 2); padding: 6px; border: 1px solid #424544; border-radius: 39px; background: #131615; box-shadow: 0 24px 32px -20px rgba(25, 28, 26, .35), 0 3px 7px rgba(25, 28, 26, .12); transform: scale(var(--screen-scale, .68)); transform-origin: center bottom; opacity: var(--screen-opacity, .7); }
.hero-slide:nth-child(3) { --screen-scale: 1; --screen-opacity: 1; }
.hero-slide .hero-phone img { border-radius: 32px; pointer-events: none; }
.hero-screen-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 20px; margin: 4px var(--edge) 0; }
.hero-screen-tabs button { position: relative; flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 10px 5px 14px; background: none; border: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.hero-screen-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.hero-screen-tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: 4px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.hero-screen-tabs button:active { transform: scale(.97); }
.hero-screen-caption { min-height: 42px; max-width: 580px; margin: 14px auto 0; padding-inline: 20px; font-size: 14px; line-height: 1.5; text-wrap: balance; }
.hero-development { min-height: 30px; margin: 5px var(--edge) 0; color: var(--muted); font-size: 10px; text-wrap: balance; }
.hero-signup { margin-top: 32px; }
.hero .waitlist { margin: 18px auto 0; }
.hero .text-link { margin-top: 14px; }
.spec-strip { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1128px; margin: 56px auto 0; padding: 28px 0 20px; border-top: 1px solid var(--line-strong); text-align: left; }
.spec-strip > div { padding-inline: 12px; }
.spec-strip > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.spec-strip dt { font-size: 12px; color: var(--muted); }
.spec-strip dd { margin-top: 8px; font-size: 30px; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.spec-strip small { font-size: 14px; letter-spacing: -.01em; }

/* ---------- Chapters ---------- */
.chapter { width: var(--col); margin: var(--chapter-space) auto 0; scroll-margin-top: 72px; }
.chapter h2 { font-size: clamp(40px, 4.5vw, 64px); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; }
.chapter p { font-size: 16px; line-height: 1.65; color: var(--muted); }

.stage { position: relative; border-radius: var(--stage-radius); background: var(--field); }
.stage figcaption, .tab-figure figcaption { margin-top: 18px; font-size: 11px; line-height: 1.5; letter-spacing: .015em; color: var(--muted); }

/* Balance: complete screen, with the controls in context. */
.balance { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.balance-copy > p { max-width: 420px; margin-top: 24px; }

.balance-copy .balance-footnote { font-size: 14px !important; }
.balance-figure { min-width: 0; padding: 40px 32px 24px; border-radius: var(--stage-radius); background: var(--detail-ground); }
.appearance-phone { width: min(300px, 100%); }
.appearance-phone .appearance-light { position: absolute; top: 11px; left: 11px; width: calc(100% - 22px); clip-path: inset(0 0 0 100%); transition: clip-path var(--dur-3) var(--ease-in-out); }
.appearance-phone[data-appearance="light"] .appearance-light { clip-path: inset(0); }
.feature-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.feature-tools .screen-link { margin: 0; }
.balance-figure figcaption { margin-top: 16px; font-size: 11px; color: var(--muted); text-align: center; }
@media (max-width: 1023px) { .balance { gap: 40px; } .balance-figure { padding: 32px 20px 24px; } .balance-facts { gap: 24px; } }
@media (max-width: 759px) { .balance { grid-template-columns: 1fr; gap: 36px; } .balance-copy > p { max-width: 580px; } .balance-figure { padding: 32px 24px 24px; } .appearance-phone { width: min(280px, 100%); } }

/* Compare */

.compare-head { max-width: 760px; margin-inline: auto; text-align: center; }

.compare-head p { max-width: 560px; margin: 24px auto 0; }
.tabs-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; margin-top: 64px; padding: 64px 80px; }
.tablist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tab { position: relative; display: block; padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.tab-title { display: block; font-size: 24px; letter-spacing: -.025em; color: var(--muted); transition: color var(--dur-2) var(--ease-out); }
.tab[aria-selected="true"] .tab-title { color: var(--ink); }
.tab-desc { display: block; max-width: 340px; margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.tab[aria-selected="true"] { border-bottom-color: var(--ink); }
@media (hover: hover) { .tab[aria-selected="false"]:hover .tab-title { color: var(--ink); } }
.tab-figure { text-align: center; }
.tab-figure .phone { width: 296px; }
.tab-figure .segmented { margin-top: 28px; }
[data-tabs]:not([data-current="switch"]) [data-ab-key] { visibility: hidden; }

/* Background playback and the system media controls. */
.remote-playback { width: var(--col); margin: 64px auto 0; padding-block: 40px; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.remote-playback > * { min-width: 0; }
.remote-playback h2 { max-width: 440px; font-size: clamp(28px, 3vw, 40px); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.remote-playback p { max-width: 480px; margin-top: 20px; color: var(--muted); line-height: 1.65; }
.remote-playback-controls { display: grid; gap: 24px; }
.remote-playback-controls dt { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.remote-playback-controls svg { width: 24px; height: 24px; flex: 0 0 auto; }
.remote-playback-controls dd { margin: 8px 0 0 36px; max-width: 400px; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 1023px) { .remote-playback { gap: 40px; } }
@media (max-width: 759px) { .remote-playback { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; padding-block: 32px; } }

/* Export */
.export { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }

.export-copy > p { max-width: 420px; margin-top: 24px; }
.export-copy > p + p { margin-top: 16px !important; }

.notes-doc { position: relative; min-width: 0; }
.export > * { min-width: 0; }
.doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--field); }
.doc-name { min-width: 0; overflow: hidden; font: 500 12px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.pdf-viewport { height: 480px; padding: 16px; overflow: auto; border-inline: 1px solid var(--line-strong); background: #DDDCD9; overscroll-behavior: contain; scrollbar-width: thin; }
.pdf-viewport:focus-visible { outline-offset: -4px; }
.pdf-page { display: block; width: 100%; height: auto; background: var(--cream); box-shadow: 0 3px 14px rgba(23, 23, 23, .14); transition: none; }
.pdf-viewport[data-zoomed] .pdf-page { width: max(100%, 612px); max-width: none; }
.pdf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 14px 14px; background: var(--field); color: var(--muted); font-size: 12px; line-height: 1.5; }
.pdf-tools > span { margin-right: auto; }
.pdf-tools button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pdf-tools a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pdf-tools .link-icon { width: 12px; height: 12px; }
.notes-doc figcaption { margin-top: 14px; font-size: 11px; color: var(--muted); text-align: center; }

/* Launch signup */
.closing { padding: 150px var(--edge) 140px; text-align: center; }
.closing h2 { margin: 0 auto; font-size: clamp(48px, 5vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.closing .waitlist { margin: 40px auto 0; }

/* Footer */
.site-foot { overflow: hidden; padding: 28px max(var(--edge), calc((100% - 1200px) / 2)) 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.foot-home { line-height: 0; }
.foot-home svg { width: 64px; aspect-ratio: 532 / 166; overflow: visible; }
.foot-links { display: flex; gap: 20px; }
@media (hover: hover) { .foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- Screen viewer ---------- */
html.viewer-open { overflow: hidden; scroll-behavior: auto; }
html.viewer-open body { position: fixed; inset-inline: 0; top: var(--viewer-scroll-top); width: 100%; }
.viewer { width: min(1000px, 100% - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #3a3f42; border-radius: 18px; background: #151718; color: var(--cream); }
.viewer::backdrop { background: rgba(13, 13, 13, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer[open] { opacity: 1; transform: none; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), overlay var(--dur-2) allow-discrete, display var(--dur-2) allow-discrete; }
.viewer[open]::backdrop { opacity: 1; transition: opacity var(--dur-2) var(--ease-out); }
@starting-style { .viewer[open] { opacity: 0; transform: scale(.98); } .viewer[open]::backdrop { opacity: 0; } }
.viewer-grid { display: grid; grid-template-columns: 320px 1fr; min-height: min(720px, calc(100dvh - 34px)); }
.viewer-meta { display: flex; flex-direction: column; padding: 40px 36px; border-right: 1px solid #2a2e30; }
.viewer-count { font: 500 12px/1 var(--mono); color: #8d9599; }
.viewer-meta h2 { margin-top: 20px; font-size: 30px; font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
.viewer-desc { margin-top: 14px; font-size: 14px; line-height: 1.6; color: #b3b9bb; }
.viewer-specs { margin-top: 28px; border-top: 1px solid #2a2e30; }
.viewer-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #2a2e30; font-size: 13px; }
.viewer-specs dt { color: #8d9599; }
.viewer-specs dd { text-align: right; }
.viewer-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 32px; }
.viewer-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #3a3f42; background: none; transition: background-color var(--dur-1) ease-out; }
.viewer-nav button svg { width: 16px; height: 16px; }
@media (hover: hover) { .viewer-nav button:hover { background: #24282a; } }
.viewer-keys { margin-top: 16px; font-size: 12px; color: #8d9599; }
kbd { display: inline-block; min-width: 22px; margin-right: 4px; padding: 2px 6px; border: 1px solid #3a3f42; border-bottom-width: 2px; font: 500 11px/1.3 var(--mono); text-align: center; color: var(--cream); }
.viewer-keys kbd:nth-of-type(3) { margin-left: 12px; }
.viewer-figure { display: grid; place-content: center; padding: 36px 24px; text-align: center; }
.viewer-figure .phone { width: min(300px, 100%); padding: 6px; border-radius: 12% / 5.6%; background: #101619; border-color: #56636b; box-shadow: none; }
.viewer-figure .phone img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 10.3% / 4.75%; box-shadow: none; }
.viewer-figure figcaption { margin-top: 16px; font-size: 11px; color: #8d9599; }
.viewer-close { position: sticky; z-index: 3; top: 12px; display: block; margin: 12px 12px -56px auto; width: 44px; height: 44px; border: 1px solid #3a3f42; border-radius: 6px; background: #151718; font-size: 28px; line-height: 1; color: var(--cream); }

/* ---------- Page-to-page ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: var(--dur-2); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1295px) {
  .tabs-stage { padding: 56px 56px; gap: 56px; }
}
@media (max-width: 1023px) {
  .spec-strip { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .spec-strip > div:nth-child(4) { border-left: 0; padding-left: 12px; }
  .tabs-stage { padding: 44px; gap: 44px; }
  .tab-figure .phone { width: min(260px, 100%); }
  .export { gap: 48px; }

  .viewer-grid { grid-template-columns: 260px 1fr; }
}
@media (max-width: 759px) {
  .hero-collection { --hero-phone-width: 260px; --hero-step: 236px; margin-top: 30px; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); padding-inline: 8px; }
  .spec-strip > div, .spec-strip > div + div { border-left: 0; padding-left: 8px; }
  .spec-strip > div:nth-child(5) { grid-column: 1 / -1; }

  .explode-leaders { display: none; }
  .tabs-stage { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .tablist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 0; }
  .tab { padding: 14px 0; border-top: 1px solid var(--line); }
  .tab-title { font-size: 16px; }
  .tab-desc { display: none; }
  .export { grid-template-columns: 1fr; }
  .pdf-viewport { height: 440px; padding: 12px; }
  .viewer-grid { grid-template-columns: 1fr; min-height: 0; }
  .viewer-meta { order: 2; padding: 24px 24px 28px; border-right: 0; border-top: 1px solid #2a2e30; }
  .viewer-meta h2 { margin-top: 12px; font-size: 24px; }
  .viewer-figure { padding: 68px 16px 20px; }
  .viewer-figure .phone { width: min(250px, 100%); padding: 5px; }
  .viewer-keys, .viewer-specs { display: none; }
  .viewer-desc { font-size: 13px; }
  .viewer-nav { padding-top: 20px; }
}
@media (max-width: 599px) {
  .hero { padding: 128px 16px 24px; }
  .hero h1 { max-width: 520px; font-size: clamp(30px, 8.7vw, 44px); letter-spacing: -.04em; }
  .lede { margin-top: 16px; font-size: 18px; }
  .hero-collection { --hero-phone-width: min(260px, 68vw); --hero-step: 222px; margin-top: 26px; }
  .hero-slide .hero-phone { border-radius: 36px; }
  .hero-slide .hero-phone img { border-radius: 29px; }
  .hero-screen-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 4px; max-width: 400px; margin-inline: auto; padding-inline: 16px; }
  .hero-screen-tabs button { font-size: 12px; }
  .hero-screen-caption { max-width: 360px; min-height: 42px; font-size: 12px; }
  .hero-signup { margin-top: 36px; }

  .spec-strip dd { font-size: 26px; }

  .chapter h2 { font-size: 40px; }
  .tabs-stage { margin-inline: -8px; padding: 24px 16px; }

  .closing { padding: 104px var(--edge) 96px; }
  .closing h2 { font-size: clamp(34px, 9.2vw, 40px); }
  .foot-row { flex-direction: column; align-items: start; }

}
@media (max-width: 479px) {
  .waitlist { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .waitlist input { border-right: 1px solid rgba(23, 23, 23, .22); }
  .waitlist .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* Wordmark inks only. Fog and translucent bar grounds are intentional exceptions. */
.foot-home { color: var(--brand-graphite); }

/* Touch targets and the selected Compare explanation remain useful on a phone. */
.segmented button { min-height: 44px; }
.screen-link { min-height: 44px; }
.compare-selected-description { display: none; }
@media (max-width: 759px) {
  .compare-selected-description { display: block; max-width: 320px; margin: 24px auto 0; font-size: 14px !important; }
}

/* EQ chapter: real source image and its four associated details.
   The background opens with the page; reading content never enters or fades. */
.eq-story {
  --eq-ground: #101619;
  --eq-copy: #F0EFED;
  --eq-muted: #B0B8BC;
  position: relative;
  isolation: isolate;
  margin-top: var(--chapter-space);
  padding: 104px 0 0;
  color: var(--eq-copy);
  scroll-margin-top: 0;
}
.eq-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--eq-ground);
  transform-origin: center;
}
.eq-story-inner { width: var(--col); margin-inline: auto; }

.eq-story-head { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: end; }
.eq-story h2 { font-size: clamp(48px, 5.5vw, 78px); font-weight: 400; line-height: 1.03; letter-spacing: -.045em; }
.eq-story-intro { max-width: 445px; }
.eq-story-intro p { font-size: 16px; line-height: 1.65; color: var(--eq-muted); }
.eq-story-intro p + p { margin-top: 18px; }

.eq-anatomy { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 88px; }
.eq-anatomy-phone { position: relative; z-index: 1; grid-column: 2; grid-row: 1; text-align: center; }
.eq-anatomy-phone .phone { width: 320px; max-width: 100%; box-shadow: 0 32px 64px -24px #000; }
.eq-anatomy-phone > figcaption { margin-top: 6px; color: var(--eq-muted); font-size: 11px; line-height: 1.55; }
.eq-story .screen-link { min-height: 44px; margin-top: 12px; color: var(--eq-copy); }
.eq-anatomy-side { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 88px; min-width: 0; }
.eq-anatomy-left { grid-column: 1; grid-row: 1; align-items: flex-end; text-align: right; }
.eq-anatomy-right { grid-column: 3; grid-row: 1; align-items: flex-start; }
.eq-detail-card { width: 100%; max-width: 380px; }
.eq-detail-card--node { max-width: 250px; }
.eq-detail-shot { overflow: hidden; border: 1px solid rgb(240 239 237 / .16); border-radius: 10px; background: #0B0D10; box-shadow: 0 24px 42px -26px #000; }
.eq-detail-shot img { display: block; width: 100%; height: auto; }
.eq-detail-card figcaption { margin-top: 20px; }
.eq-detail-card h3 { font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.eq-detail-card p { max-width: 285px; margin-top: 7px; color: var(--eq-muted); font-size: 14px; line-height: 1.55; }
.eq-anatomy-left p { margin-left: auto; }
.eq-anatomy-leaders { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: rgb(240 239 237 / .42); stroke-width: 1; }
.eq-anatomy-leaders .eq-source-outline { stroke: rgb(240 239 237 / .65); stroke-dasharray: 3 3; }
.eq-anatomy-leaders circle { fill: var(--eq-copy); stroke: none; }
.eq-story-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; margin-top: 72px; padding: 30px 0 40px; border-top: 1px solid rgb(240 239 237 / .2); }
.eq-story-facts dt { color: var(--eq-muted); font-size: 12px; line-height: 1.5; }
.eq-story-facts dd { margin-top: 10px; font-size: 16px; line-height: 1.5; letter-spacing: -.015em; }

/* A small expansion of the ground signals the change of chapter. Only the
   decorative layer scales; text, images and focus outlines are never clipped. */
@supports (animation-timeline: view()) {
  @media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
    .eq-story { view-timeline-name: --eq-arrival; view-timeline-axis: block; }
    .eq-story::before { animation: eq-ground-open linear both; animation-timeline: --eq-arrival; animation-range: entry 0% entry 100%; }
  }
}
@keyframes eq-ground-open { from { transform: scaleX(.976); } to { transform: scaleX(1); } }

@media (min-width: 760px) and (max-width: 1100px) {
  .eq-story-head { gap: 48px; }
  .eq-anatomy { grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr); gap: 32px; }
  .eq-anatomy-phone .phone { width: 260px; }
  .eq-anatomy-side { gap: 60px; }
  .eq-detail-card h3 { font-size: 14px; }
  .eq-detail-card p { font-size: 13px; }
}
@media (max-width: 759px) {
  .eq-story { padding-top: 64px; }
  .eq-story-head { grid-template-columns: 1fr; gap: 24px; }

  .eq-story h2 { font-size: clamp(48px, 9vw, 64px); }
  .eq-story-intro { max-width: 540px; }
  .eq-story-intro p + p { margin-top: 14px; }
  .eq-anatomy { display: flex; flex-direction: column; gap: 36px; margin-top: 40px; }
  .eq-anatomy-phone { width: 100%; }
  .eq-anatomy-phone .phone { width: min(270px, 74vw); }
  .eq-anatomy-side { width: 100%; max-width: 520px; gap: 28px; align-items: stretch; text-align: left; }
  .eq-detail-card { width: 100%; max-width: none; }
  .eq-detail-card figcaption { margin-top: 12px; }
  .eq-detail-card p { max-width: none; margin-left: 0; }
  .eq-detail-card--node { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 20px; align-items: center; }
  .eq-detail-card--node figcaption { margin-top: 0; }
  .eq-anatomy-leaders { display: none; }
  .eq-story-facts { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; padding-bottom: 32px; }
  .eq-story-facts > div { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 20px; }
  .eq-story-facts dd { margin: 0; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .eq-story::before { animation: none; transform: none; } }

/* Experiments: the actual controls and their effects. */
.experiments { display: grid; grid-template-columns: 1fr 1.2fr; gap: 88px; align-items: start; }
.experiments-copy p { max-width: 390px; margin-top: 24px; }
.experiments-copy .text-link { margin-top: 20px; }
.experiment-controls > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 24px); }
.experiment-controls > div:first-child { padding-top: 0; }
.experiment-controls dt { font-size: 16px; font-weight: 500; }
.experiment-controls dd { font-size: 16px; line-height: 1.6; color: var(--muted); }
.balance-copy a, .eq-story-facts a, .experiments-copy .text-link { text-decoration: underline; text-underline-offset: 4px; }
.eq-story-facts a { display: inline-block; margin-top: 12px; color: var(--eq-copy); font-size: 14px; }
.release-date { margin-top: 24px; font-size: 18px; color: var(--ink); }
@media (max-width: 1023px) { .experiments { gap: 48px; } }
@media (max-width: 759px) {
  .experiments { grid-template-columns: 1fr; gap: 36px; }
  .experiment-controls > div { grid-template-columns: 100px minmax(0, 1fr); gap: 20px; }
  .experiment-controls dt, .experiment-controls dd { font-size: 15px; }
}

/* The AVIF wrapper around each capture (picture.js) takes no box of its own,
   so every image lays out exactly as it did as a direct child. */
picture{display:contents}
