/* AB:X homepage, 2 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 {
  --cream: #F0EFED;
  --field: #FAF9F7;
  --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));
  --bar-h: calc(60px + var(--shell-inset));
  --shell-inset: 16px;
  --shell-radius: 24px;
  --stage-radius: 22px;
  --chapter-space: 168px;

  /* 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: 120px; } }
@media (max-width: 599px) { :root { --edge: 16px; --shell-inset: 8px; --shell-radius: 16px; --stage-radius: 16px; --chapter-space: 96px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Pulled past either end, the page shows the fog at the top and cream at the foot. */
html { background: linear-gradient(to bottom, var(--fog) 0 50%, var(--cream) 50% 100%); 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; }

.eyebrow { font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.chapter-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.chapter-label span { font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--ink); }
.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); }
}

/* Construction marks: a registration tick at each corner. */
.marks { position: relative; }
.marks::before {
  --m: var(--mark-color, rgba(23, 23, 23, .38));
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  background:
    linear-gradient(var(--m), var(--m)) left 0 top 6px / 13px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left 6px top 0 / 1px 13px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 top 6px / 13px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right 6px top 0 / 1px 13px no-repeat,
    linear-gradient(var(--m), var(--m)) left 0 bottom 6px / 13px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left 6px bottom 0 / 1px 13px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 bottom 6px / 13px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right 6px bottom 0 / 1px 13px no-repeat;
}

/* ---------- 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; }
.form-note { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; color: rgba(23, 23, 23, .62); text-align: left; }
.form-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.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: 6px; 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: 33px; background: #050607; }
.light-phone { border-color: #969fa5; background: linear-gradient(110deg, #e3e5e6, #a1a7aa 13%, #d5d9dc 70%, #8a9298); }

/* ---------- Site bar ---------- */
@property --bar-ground { syntax: '<color>'; inherits: true; initial-value: #959FA2; }
.bar {
  --bar-ground: #959FA2;
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: var(--bar-h); margin-bottom: calc(-1 * var(--bar-h)); padding-top: var(--shell-inset);
  padding-inline: max(var(--edge), calc((100% - 1200px) / 2));
  color: var(--ink);
  transition: --bar-ground .3s ease, color .3s ease;
}
.bar[data-tone="dark"] { color: var(--cream); }
.bar::before {
  content: ""; position: absolute; top: 0; bottom: -44px; left: var(--band-x, 0px); right: var(--band-x, 0px); z-index: -1; pointer-events: none;
  transition: opacity var(--dur-2) ease-out, left .3s ease, right .3s ease;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bar-ground) 84%, transparent), color-mix(in srgb, var(--bar-ground) 70%, transparent) 45%, color-mix(in srgb, var(--bar-ground) 28%, transparent) 75%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgb(0 0 0 / .82) 72%, rgb(0 0 0 / .48) 86%, rgb(0 0 0 / .16) 95%, transparent);
  mask-image: linear-gradient(to bottom, #000 58%, rgb(0 0 0 / .82) 72%, rgb(0 0 0 / .48) 86%, rgb(0 0 0 / .16) 95%, transparent);
}
/* Over an inset shell the ground keeps to the shell's width; while a shell's rounded
   edge is under the bar there is no ground at all, so the corners stay true. */
.bar[data-inset] { --band-x: var(--shell-inset); }
.bar[data-bare]::before { opacity: 0; }
@media (prefers-reduced-transparency: reduce) { .bar::before { inset: 0; background: var(--bar-ground); -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask-image: none; mask-image: none; } }
.bar-home { justify-self: start; display: block; padding: 8px 0; line-height: 0; view-transition-name: site-mark; }
.bar-home svg { width: 94px; aspect-ratio: 532 / 166; overflow: visible; }
.top-links { justify-self: end; display: flex; gap: 20px; font-size: 14px; }
.top-links a { padding: 10px 0; color: color-mix(in srgb, currentColor 78%, transparent); transition: color .3s ease; }
@media (hover: hover) { .top-links a:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; } }

/* The index sentence, condensed into the bar once it has scrolled away. */
.bar-index { position: relative; display: flex; gap: 4px; padding: 3px; font-size: 13px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.bar-index[data-visible] { opacity: 1; transform: none; pointer-events: auto; }
.bar-index a { position: relative; z-index: 1; padding: 6px 12px; color: color-mix(in srgb, currentColor 70%, transparent); transition: color var(--dur-2) var(--ease-out); white-space: nowrap; }
.bar-index a[data-active] { color: var(--cream); }
.bar[data-tone="dark"] .bar-index a[data-active] { color: var(--ink); }
.bar-index sup { margin-right: 6px; font: 500 9px/1 var(--mono); vertical-align: 4px; opacity: .7; }
.bar-index-marker { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; background: var(--ink); opacity: 0; transition: transform var(--dur-3) var(--ease-out), width var(--dur-3) var(--ease-out), opacity var(--dur-2) ease-out, background-color .3s ease; }
.bar[data-tone="dark"] .bar-index-marker { background: var(--cream); }
@media (max-width: 1023px) { .bar-index { display: none; } .bar { grid-template-columns: auto 1fr; } }
@media (max-width: 599px) { .bar-home svg { width: 64px; } }
@media (max-width: 399px) { .bar-home svg { width: 52px; } .top-links { gap: 14px; } }

/* ---------- Fog shells (hero and closing) ---------- */
.fog-shell { position: relative; isolation: isolate; margin: var(--shell-inset) var(--shell-inset) 0; border-radius: var(--shell-radius); overflow: hidden; background: radial-gradient(ellipse at 45% 34%, rgba(250, 249, 247, .72), transparent 58%), linear-gradient(165deg, var(--fog) -25%, var(--haze) 52%, #a9b5bc 100%); }
.fog-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.fog-shell[data-fog-state="fallback"] .fog-canvas { display: none; }
@media (min-width: 1560px) { .fog-shell { max-width: 1560px; margin-inline: auto; } }

/* ---------- Hero ---------- */
.hero { padding: 148px var(--edge) 28px; text-align: center; }
.hero h1 { margin: 22px auto; font-size: clamp(56px, 5.4vw, 78px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.lede { max-width: 580px; margin-inline: auto; font-size: 18px; line-height: 1.55; color: #414a50; }
.hero .waitlist { margin: 28px auto 0; }
.hero .text-link { margin-top: 14px; }
.hero-product { margin: 72px auto 0; max-width: 960px; }
.hero-devices { display: flex; align-items: flex-start; justify-content: center; gap: 32px; padding: 0 20px 112px; }
.hero-devices .phone { flex: 0 0 288px; width: 288px; margin: 0; }
.hero-devices .hero-main { flex-basis: 320px; width: 320px; z-index: 2; }
.hero-devices .hero-left { transform: translateY(88px) rotate(-7deg); }
.hero-devices .hero-right { transform: translateY(88px) rotate(7deg); }
.spec-strip { --mark-color: rgba(23, 23, 23, .45); display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1128px; margin: 8px auto 0; padding: 28px 24px 34px; border-top: 1px solid rgba(23, 23, 23, .2); text-align: left; }
.spec-strip > div { padding-inline: 12px; }
.spec-strip > div + div { border-left: 1px solid rgba(23, 23, 23, .12); padding-left: 20px; }
.spec-strip dt { font-size: 12px; color: rgba(23, 23, 23, .7); }
.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; }

/* The side phones lean away as the hero scrolls out; the reader's scroll drives it. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-devices .phone { animation: linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
    .hero-devices .hero-left { animation-name: lean-left; }
    .hero-devices .hero-right { animation-name: lean-right; }
    .hero-devices .hero-main { animation-name: lift-main; }
  }
}
@keyframes lean-left { to { translate: -64px 0; rotate: -5deg; } }
@keyframes lean-right { to { translate: 64px 0; rotate: 5deg; } }
@keyframes lift-main { to { translate: 0 -28px; } }

/* ---------- Index sentence ---------- */
.index { width: var(--col); margin: 136px auto 0; }
.index-sentence { --mark-color: rgba(23, 23, 23, .3); padding: 56px clamp(24px, 6vw, 88px); font-size: clamp(30px, 3.5vw, 50px); line-height: 1.28; letter-spacing: -.035em; color: rgba(23, 23, 23, .52); text-wrap: pretty; }
.index-key { display: inline-block; padding: 0 .16em .04em; margin-block: .06em; color: var(--ink); background: rgba(23, 23, 23, .07); line-height: 1.16; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.index-key sup { margin-left: .18em; font: 500 .3em/1 var(--mono); letter-spacing: 0; vertical-align: 1.5em; color: var(--muted); transition: color var(--dur-2) var(--ease-out); }
.index-key[data-active] { background: var(--ink); color: var(--cream); }
.index-key[data-active] sup { color: rgba(240, 239, 237, .7); }
@media (hover: hover) { .index-key:not([data-active]):hover { background: rgba(23, 23, 23, .13); } }

/* ---------- Chapters ---------- */
.chapter { width: var(--col); margin: var(--chapter-space) auto 0; scroll-margin-top: 72px; }
.chapter h2, .eq h2, .chain h2, .specs h2, .surface h2, .questions h2 { font-size: clamp(40px, 4.5vw, 64px); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; }
.chapter p:not(.chapter-label):not(.eyebrow), .chain-head > p:not(.eyebrow) { 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); }

/* 01 Balance */
.balance { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.balance-copy { position: sticky; top: calc(var(--bar-h) + 40px); padding-top: 40px; }
.balance-copy > p:not(.chapter-label) { max-width: 380px; margin-top: 24px; }
.balance-copy > p + p { margin-top: 16px !important; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.facts > div { padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin-top: 8px; font-size: 32px; line-height: 1.1; letter-spacing: -.045em; }
.facts small { font-size: 15px; letter-spacing: -.02em; }
.cap-list { margin-top: 40px; }
.cap-list > p { font-size: 12px !important; letter-spacing: .07em; text-transform: uppercase; font-weight: 500; }
.cap-list ul { margin-top: 14px; border-top: 1px solid var(--line); }
.cap-list li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cap-list li::before { content: ""; flex: 0 0 5px; height: 5px; background: var(--ink); transform: translateY(-2px); }
.balance-stage { padding: 64px 24px 32px; text-align: center; }
.balance-stage .phone { width: 320px; }
.balance-stage .segmented { margin-top: 32px; }
.appearance-phone .appearance-light { position: absolute; top: 6px; left: 6px; width: calc(100% - 12px); clip-path: inset(0 0 0 100% round 33px); transition: clip-path 720ms var(--ease-in-out); }
.appearance-phone[data-appearance="light"] .appearance-light { clip-path: inset(0 0 0 0 round 33px); }
.appearance-phone { transition: border-color var(--dur-3) var(--ease-in-out); }
.appearance-phone[data-appearance="light"] { border-color: #969fa5; }

/* 02 EQ: the dark chapter opens to the full width as it arrives. */
.eq { margin: var(--chapter-space) var(--shell-inset) 0; border-radius: var(--shell-radius); padding: 112px 0 0; background: var(--ink); color: var(--cream); scroll-margin-top: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .eq { margin-inline: 0; border-radius: 0; animation: eq-open linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes eq-open {
  0% { clip-path: inset(0 var(--shell-inset) round var(--shell-radius)); }
  22%, 100% { clip-path: inset(0 0 round 0); }
}
.eq-inner { width: var(--col); margin-inline: auto; }
.eq .chapter-label { color: #a7afb3; }
.eq .chapter-label span { color: var(--cream); }
.eq-head { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: end; }
.eq h2 { font-size: clamp(48px, 5.5vw, 78px); }
.eq-intro p { max-width: 440px; font-size: 16px; line-height: 1.65; color: #b3b9bb; }
.eq-intro p + p { margin-top: 16px; }

.explode { position: relative; display: grid; grid-template-columns: 1fr 320px 1fr; gap: 72px; align-items: center; margin-top: 96px; }
.explode-col { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 88px; }
.explode-left { align-items: flex-end; text-align: right; }
.explode-right { align-items: flex-start; }
.explode-phone { position: relative; z-index: 1; text-align: center; }
.explode-phone .phone { width: 320px; box-shadow: 0 30px 60px -18px #000; }
.eq .screen-link { color: var(--cream); }
.callout { width: min(380px, 100%); }
.callout--node { width: 250px; }
.callout-shot { overflow: hidden; border: 1px solid rgba(240, 239, 237, .14); border-radius: 12px; background: #0b0d10; box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .9); transform-origin: 0 0; will-change: transform; }
.callout-shot img { width: 100%; }
.callout p { max-width: 300px; margin-top: 14px; font-size: 14px; line-height: 1.55; color: #a7afb3; }
.explode-left .callout p { margin-left: auto; }
.callout b { display: block; margin-bottom: 4px; font-weight: 500; color: var(--cream); }
.explode-leaders { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: rgba(240, 239, 237, .45); stroke-width: 1; }
.explode-leaders .src { stroke: rgba(240, 239, 237, .7); stroke-dasharray: 3 3; }
.explode-leaders circle { fill: var(--cream); stroke: none; }
.eq-facts { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; margin-top: 96px; padding: 32px 0 44px; border-top: 1px solid #3a3e41; }
.eq-facts dt { font-size: 12px; color: #a7afb3; }
.eq-facts dd { margin-top: 10px; font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }

/* 03 Compare */
.compare-head { max-width: 760px; margin-inline: auto; text-align: center; }
.compare-head .chapter-label { justify-content: center; }
.compare-head p:not(.chapter-label) { 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: rgba(23, 23, 23, .5); 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-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"] .tab-progress { transform: scaleX(1); transition: transform var(--dur-3) var(--ease-out); }
[data-tabs][data-auto] .tab[aria-selected="true"] .tab-progress { transform: scaleX(0); transition: none; animation: tab-progress var(--tab-duration, 7s) linear forwards; }
[data-tabs][data-auto][data-paused] .tab[aria-selected="true"] .tab-progress { animation-play-state: paused; }
@keyframes tab-progress { to { transform: scaleX(1); } }
@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; }
::view-transition-old(compare-screen), ::view-transition-new(compare-screen) { animation-duration: var(--dur-2); }

/* 04 Export */
.export { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.export-copy > p:not(.chapter-label) { max-width: 420px; margin-top: 24px; }
.export-copy > p + p { margin-top: 16px !important; }
.format-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.format-chips li { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.format-chips b { font: 500 13px/1 var(--mono); color: var(--ink); }
.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; }
.doc-body { height: 440px; margin: 0; padding: 22px 24px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 0 0 14px 14px; background: #FDFDFC; box-shadow: 0 30px 60px -36px rgba(23, 23, 23, .35); font: 400 12.5px/1.75 var(--mono); color: var(--ink); white-space: pre; tab-size: 2; overscroll-behavior: contain; }
.doc-body:focus-visible { outline-offset: -4px; }
.notes-doc figcaption { margin-top: 14px; font-size: 11px; color: var(--muted); text-align: center; }

/* Under the hood */
.chain { width: var(--col); margin: var(--chapter-space) auto 0; }
.chain-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 88px; align-items: end; }
.chain-head .eyebrow { grid-column: 1 / -1; color: var(--muted); }
.chain-head > p:not(.eyebrow) { max-width: 500px; }
.chain-figure { margin-top: 64px; padding: 56px 48px; border: 1px solid var(--line); }
.chain-diagram { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.chain-diagram .wires path { fill: none; stroke: rgba(23, 23, 23, .3); stroke-width: 1.2; }
.chain-diagram .node rect { fill: var(--field); stroke: rgba(23, 23, 23, .5); stroke-width: 1; }
.chain-diagram .node text { font-size: 13px; font-weight: 500; fill: var(--ink); text-anchor: middle; letter-spacing: -.01em; }
.chain-diagram .node .sub { font-size: 10.5px; font-weight: 400; fill: var(--muted); letter-spacing: 0; }
.chain-diagram .node--key rect { fill: var(--ink); stroke: var(--ink); }
.chain-diagram .node--key text { fill: var(--cream); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.chain-diagram .node--key .sub { fill: rgba(240, 239, 237, .7); font-family: var(--sans); letter-spacing: 0; }
.chain-diagram .node--muted rect { stroke-dasharray: 4 3; }
.chain-diagram .lane { font-size: 10.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; fill: var(--muted); }
.chain-diagram .pulses circle { fill: var(--ink); }
.chain-diagram .pulses .pulse-muted { fill: rgba(23, 23, 23, .45); }
.chain-diagram .pulses .pulse-ref { fill: var(--muted); }
.chain-narrow { display: none; }

/* Also on the surface */
.surface { margin-top: var(--chapter-space); padding: 120px max(var(--edge), calc((100% - 1200px) / 2)); background: var(--field); }
.surface-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; margin-top: 56px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 40px; overflow: hidden; padding: 28px; border-radius: 18px; background: var(--cream); }
.tile h3 { font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.tile p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tile--dark { background: var(--night); color: var(--cream); }
.tile--dark p { color: #a7afb3; }
.tile--lattice { grid-column: span 2; grid-row: span 2; }
.tile--master { grid-row: span 2; }
.tile-copy { max-width: 420px; }
.tile-shot { display: block; margin: auto -28px -28px; padding: 0; overflow: hidden; border: 0; background: none; cursor: zoom-in; }
.tile-shot img { width: 100%; transition: transform var(--dur-3) var(--ease-out); }
.tile--lattice .tile-shot { max-height: 420px; mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.tile--master .tile-shot { max-height: 330px; mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.tile-shot--strip { margin: auto -8px 0; border-radius: 8px; cursor: auto; }
@media (hover: hover) { button.tile-shot:hover img { transform: scale(1.025); } }
.tile .tile-figure { margin: 0; font-size: 88px; line-height: .85; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.tile--figure .tile-copy { margin-top: auto; }
.tile-icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* Specifications */
.specs { width: var(--col); margin: var(--chapter-space) auto 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; }
.specs-head p { margin-top: 18px; color: var(--muted); }
.spec-sheet { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line-strong); }
.spec-sheet > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-sheet dt { font-size: 13px; color: var(--muted); }
.spec-sheet dd { font-size: 14px; line-height: 1.5; }

/* Questions */
.questions { width: var(--col); margin: var(--chapter-space) auto 0; padding-bottom: var(--chapter-space); display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; }
.questions .eyebrow { margin-bottom: 24px; color: var(--muted); }
.questions h2 { font-size: 44px; }
.questions-list { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 0; font-size: 17px; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary svg { flex: 0 0 18px; width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
.questions details[open] summary svg { transform: rotate(180deg); }
.questions details p { padding: 0 30px 24px 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .questions details::details-content { block-size: 0; overflow-y: clip; transition: block-size var(--dur-2) var(--ease-out), content-visibility var(--dur-2) allow-discrete; }
    .questions details[open]::details-content { block-size: auto; }
  }
}

/* Closing: the hero's fog and line again, with the second form. */
.closing-shell { margin-bottom: var(--shell-inset); }
.closing { padding: 150px var(--edge) 140px; text-align: center; }
.closing h2 { margin: 22px auto 0; 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; } }

/* Floating waitlist key: present once the hero form has gone, gone near the closing form. */
.float-cta { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: inline-flex; align-items: center; gap: 16px; padding: 9px 9px 9px 18px; background: var(--ink); color: var(--cream); font: 500 15px/24px var(--sans); letter-spacing: -.02em; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(calc(100% + 40px)); transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) ease-out; pointer-events: none; }
.float-cta[data-visible] { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .float-cta:hover { background: #383838; } }
.float-cta[data-tone="dark"] { background: var(--cream); color: var(--ink); }
.float-cta[data-tone="dark"] .btn-icon { background: var(--ink); color: var(--cream); }
@media (hover: hover) { .float-cta[data-tone="dark"]:hover { background: #fff; } }

/* ---------- Screen viewer ---------- */
.viewer { width: min(1000px, 100% - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: auto; 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(340px, (100dvh - 180px) * .46); box-shadow: none; }
.viewer-figure figcaption { margin-top: 16px; font-size: 11px; color: #8d9599; }
.viewer-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; 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) {
  .hero-devices { gap: 24px; }
  .hero-devices .phone { flex-basis: 230px; width: 230px; }
  .hero-devices .hero-main { flex-basis: 270px; width: 270px; }
  .spec-strip { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .spec-strip > div:nth-child(4) { border-left: 0; padding-left: 12px; }
  .balance { gap: 48px; }
  .balance-stage .phone { width: min(290px, 100%); }
  .eq-head { gap: 48px; }
  .explode { grid-template-columns: 1fr 260px 1fr; gap: 32px; }
  .explode-phone .phone { width: 260px; }
  .callout--node { width: 200px; }
  .tabs-stage { padding: 44px; gap: 44px; }
  .tab-figure .phone { width: min(260px, 100%); }
  .export { gap: 48px; }
  .chain-head { gap: 24px 48px; }
  .chain-figure { padding: 40px 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--lattice { grid-column: span 2; grid-row: auto; }
  .tile--master { grid-row: span 2; }
  .specs, .questions { gap: 48px; }
  .spec-sheet { grid-template-columns: 1fr; }
  .viewer-grid { grid-template-columns: 260px 1fr; }
}
@media (max-width: 759px) {
  .hero-product { margin-top: 56px; }
  .hero-devices { gap: 16px; padding-bottom: 76px; }
  .hero-devices .phone { flex-basis: 180px; width: 180px; padding: 4px; border-radius: 29px; }
  .hero-devices .phone img { border-radius: 24px; }
  .hero-devices .hero-main { flex-basis: 238px; width: 238px; padding: 5px; border-radius: 36px; }
  .hero-devices .hero-main img { border-radius: 30px; }
  .hero-devices .hero-left { transform: translateY(60px) rotate(-7deg); }
  .hero-devices .hero-right { transform: translateY(60px) rotate(7deg); }
  .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; }
  .index { margin-top: 96px; }
  .index-sentence { padding: 36px 20px; }
  .balance { grid-template-columns: 1fr; gap: 40px; }
  .balance-copy { position: static; padding-top: 0; }
  .eq { padding-top: 72px; }
  .eq-head { grid-template-columns: 1fr; gap: 24px; }
  .explode { display: flex; flex-direction: column; gap: 40px; margin-top: 56px; }
  .explode-phone { order: -1; }
  .explode-phone .phone { width: min(290px, 100%); }
  .explode-col { width: 100%; gap: 32px; align-items: stretch; text-align: left; }
  .explode-left .callout p { margin-left: 0; }
  .callout, .callout--node { width: 100%; }
  .callout--node .callout-shot { max-width: 260px; }
  .explode-leaders { display: none; }
  .eq-facts { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
  .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; }
  .doc-body { height: 360px; }
  .chain-head { grid-template-columns: 1fr; }
  .chain-wide { display: none; }
  .chain-narrow { display: block; counter-reset: step; }
  .chain-narrow li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 2px 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .chain-narrow li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: 500 12px/1.6 var(--mono); color: var(--muted); }
  .chain-narrow b { font-weight: 500; }
  .chain-narrow span { font-size: 14px; line-height: 1.55; color: var(--muted); }
  .surface { padding-block: 88px; }
  .surface-head { flex-direction: column; align-items: start; }
  .specs, .questions { grid-template-columns: 1fr; }
  .questions h2 { font-size: 40px; }
  .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: 56px 16px 20px; }
  .viewer-figure .phone { width: min(300px, 64vw, (100dvh - 390px) * .46); }
  .viewer-keys, .viewer-specs { display: none; }
  .viewer-desc { font-size: 13px; }
  .viewer-nav { padding-top: 20px; }
}
@media (max-width: 599px) {
  .hero { padding-top: 104px; }
  .hero h1 { margin-inline: -12px; font-size: clamp(34px, 9.2vw, 40px); }
  .lede { font-size: 16px; }
  .hero-devices { margin-inline: -18px; padding-bottom: 24px; }
  .hero-devices .phone { flex-basis: 152px; width: 152px; border-radius: 25px; }
  .hero-devices .phone img { border-radius: 20px; }
  .hero-devices .hero-main { flex-basis: 238px; width: 238px; padding: 5px; border-radius: 36px; }
  .hero-devices .hero-main img { border-radius: 30px; }
  .hero-devices .hero-left { position: absolute; left: calc(50% - 216px); top: 12px; transform: translateY(66px) rotate(-8deg); }
  .hero-devices .hero-right { position: absolute; right: calc(50% - 216px); top: 12px; transform: translateY(66px) rotate(8deg); }
  .hero-devices { position: relative; }
  .spec-strip dd { font-size: 26px; }
  .index-sentence { font-size: 27px; padding-inline: 12px; }
  .chapter h2, .chain h2, .specs h2, .surface h2 { font-size: 40px; }
  .eq h2 { font-size: 46px; }
  .balance-stage { margin-inline: -8px; padding: 40px 16px 24px; }
  .tabs-stage { margin-inline: -8px; padding: 24px 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile--lattice, .tile--master { grid-column: auto; grid-row: auto; }
  .tile--master .tile-shot { max-height: 280px; }
  .closing { padding: 104px var(--edge) 96px; }
  .closing h2 { font-size: clamp(34px, 9.2vw, 40px); }
  .foot-row { flex-direction: column; align-items: start; }
  .float-cta { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; }
}
@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; }
  .callout-shot { transform: none !important; }
}
