/* Home — round 3. The opening (.hx) and the chapters (.ch). Static by default (no JS / reduced motion: every frame
   in reading order, stills instead of the canvas); html.m adds the pinned choreography. */

/* ================================================================== opening */
.hx { --gut: var(--gutter); }
.m .hx { height: 1000vh; }
.hx__stage { background: radial-gradient(80% 70% at 64% 58%, #1b1a18, #0b0b0a 72%); }
.hx__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.m .hx__media { position: absolute; inset: 0; aspect-ratio: auto; }
.hx__media > .hx-still, .hx__media > .hx-still img, .hx__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx__media canvas { opacity: 0; transition: opacity .4s var(--e-travel); }
.hx.is-live .hx__media canvas { opacity: 1; }
.hx.is-live .hx__media > .hx-still { visibility: hidden; transition: visibility 0s .5s; }
.hx.no-gl .hx__media > .hx-still { visibility: visible; }
.hx.no-gl .hx__media canvas { visibility: hidden; } /* too slow to animate (runLoop onSlow): the still stands in */
html:not(.m) .hx__media canvas { display: none; }
@media (max-aspect-ratio: 3/4) { .hx__media { aspect-ratio: 390 / 844; } }

/* Frames: absolutely stacked in the stage with motion, normal flow without. */
.hx-f { position: relative; z-index: 3; padding: var(--s, 48px) var(--gut); }
.m .hx-f { position: absolute; inset: 0; padding: 0; pointer-events: none; display: none; }
.m .hx-f[data-on="true"] { display: block; }
.m .hx-f[data-on="true"] :is(a, button) { pointer-events: auto; }

.hx-f--hero { }
.m .hx-f--hero > * { position: relative; }
.m .hx-f--hero { padding: calc(var(--hd) + clamp(24px, 6vh, 80px)) var(--gut) 0; }
.hx-f--hero h1 { max-width: 8.6ch; }
.hx-f--hero .intro { margin-top: 24px; max-width: 30ch; color: var(--st-ink2); }
.hx-f--hero .cta { margin-top: 32px; }
.hx-honest { margin-top: 16px; max-width: 40ch; font-size: 17px; line-height: 1.45; color: var(--st-ink2); padding-inline-start: 14px; box-shadow: inset 2px 0 0 var(--orange); }
.m .hx-f--hero { width: min(46vw, 640px); }
html:not(.m) .hx-f--hero { position: absolute; inset: 0 auto auto 0; width: min(46vw, 640px); padding-top: clamp(32px, 7vh, 96px); }
@media (max-aspect-ratio: 3/4) { html:not(.m) .hx-f--hero { position: relative; width: auto; } }

/* Beats */
.hx-meter { width: min(30vw, 400px); color: var(--st-ink3); font-size: 14px; margin-bottom: 32px; }
.hx-meter__row { display: flex; justify-content: space-between; gap: 16px; }
.hx-meter .ruler { margin-top: 8px; color: var(--st-ink2); }
.hx-meter__fill { position: relative; height: 10px; margin-top: -10px; overflow: hidden; width: 0; }
.hx-meter__fill .ruler { position: absolute; left: 0; top: 0; width: min(30vw, 400px); margin-top: 0; color: var(--orange); opacity: 1; }
.hx-beats { list-style: none; display: grid; gap: 40px; }
.hx-beat__n { display: block; margin-bottom: 12px; font-size: 14px; color: var(--st-ink3); }
.hx-beat h3 { max-width: 13ch; }
.hx-beat p { margin-top: 16px; max-width: 34ch; }
.m .hx-f--beats { padding: calc(var(--hd) + clamp(24px, 6vh, 72px)) var(--gut) 0; width: min(46vw, 620px); }
.m .hx-beats { position: relative; }
.m .hx-beat { position: absolute; inset: 0 0 auto 0; display: none; }
.m .hx-beat.on { display: block; animation: beat-in .4s var(--e-travel); }
@keyframes beat-in { from { transform: translateY(10px); opacity: .0; } }
.hx-ro { position: absolute; z-index: 4; left: var(--gut); bottom: clamp(24px, 6vh, 64px); min-width: 248px; }
.hx-ro .oled__v { font-size: 44px; min-width: 4ch; }
html:not(.m) .hx-ro { display: none; }
.m .hx-ro { display: none; }
.m .hx[data-frame="beats"] .hx-ro { display: inline-grid; }

/* The drawing sheet arrives with the plotter line (clip-path from home3d.js). */
.hx-sheet { position: absolute; inset: 0; z-index: 1; pointer-events: none; clip-path: inset(0 100% 0 0); }
html:not(.m) .hx-sheet, html:not(.m) .hx-scan, html:not(.m) .hx-leaders { display: none; }
.hx-sheet__grid { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 48px 48px,
              radial-gradient(70% 60% at 62% 55%, rgb(20 20 19 / .0), rgb(11 11 10 / .85)); }
.hx-sheet__frame { position: absolute; inset: 16px; border: 1px solid #3A3936; }
.hx-sheet__frame::before, .hx-sheet__frame::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; color: #8F8C86; opacity: .6; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / 48)); }
.hx-sheet__frame::before { top: 0; } .hx-sheet__frame::after { bottom: 0; }
.hx-sheet__frame i { position: absolute; top: 0; bottom: 0; width: 8px; color: #8F8C86; opacity: .6; background: repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 24px); }
.hx-sheet__frame i:first-child { left: 0; } .hx-sheet__frame i:last-child { right: 0; }
.hx-scan { position: absolute; z-index: 2; will-change: transform, opacity; top: 0; bottom: 0; left: 0; width: 1px; opacity: 0; pointer-events: none; background: var(--orange); box-shadow: 0 0 6px 1px rgb(240 106 53 / .55), 0 0 24px 4px rgb(240 106 53 / .12); }
.hx-leaders { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hx-leaders path { fill: none; stroke: #A3A098; stroke-width: 1.5; }
.hx-leaders path.on { stroke: #ECE9E2; }
.hx-leaders circle { fill: #A3A098; stroke: none; }
.hx-leaders circle.on { stroke: var(--orange); fill: var(--orange); }

/* Parts (anatomy) */
.hx-parts__lede { margin-top: 12px; color: var(--st-ink2); max-width: 34ch; }
.hx-parts { list-style: none; display: grid; gap: 4px; margin-top: 28px; max-width: 380px; }
.hx-part { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 10px 0; color: var(--st-ink3); }
.hx-part__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; font-size: 14px; font-weight: 600; }
.hx-part h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.012em; }
.hx-part p { grid-column: 2; margin-top: 4px; font-size: 16px; line-height: 1.45; }
.hx-part.on { color: var(--st-ink); }
.hx-part.on .hx-part__n { color: var(--orange); }
.hx-part.on p { color: var(--st-ink2); }
html:not(.m) .hx-part { color: var(--st-ink); }
html:not(.m) .hx-part p { color: var(--st-ink2); }
.hx-spec { --cols: 4; margin-top: 32px; max-width: 760px; --line: #8F8C86; --hair: #2A2926; color: var(--st-ink); }
.hx-spec dt { color: var(--st-ink3); font-size: 14px; }
.m .hx-f--parts { padding: calc(var(--hd) + clamp(24px, 6vh, 72px)) calc(var(--gut) + 16px) 0; }

.m .hx-spec { margin-top: 28px; }

/* The cut: the app's own Dial screen, aligned to where the object was. */
.hx-phone { margin: 0; }
.m .hx-phone { position: absolute; left: 0; top: 0; width: 300px; transform-origin: 0 0; }
.hx-phone img { width: 100%; }
.m .hx-cut__text { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); width: min(40vw, 560px); }
.hx-cut__text .intro { margin-top: 24px; color: var(--st-ink2); }
.hx-cut__text p:last-child { margin-top: 20px; }
.m .hx.is-cut .hx__media canvas { visibility: hidden; }

@media (max-aspect-ratio: 3/4), (max-width: 760px) {
  .m .hx-f--hero { width: auto; padding-top: calc(var(--hd) + 16px); }
  .hx-f--hero h1 { font-size: clamp(44px, 12.6vw, 62px); }
  .hx-f--hero .intro { font-size: 17px; margin-top: 16px; }
  .hx-f--hero .cta { margin-top: 20px; }
  .hx-honest { font-size: 15px; }
  .m .hx-f--beats { width: auto; padding-top: calc(var(--hd) + 16px); }
  .hx-meter { display: none; }
  .hx-beat h3 { font-size: 32px; max-width: none; }
  .hx-beat p { font-size: 16px; margin-top: 10px; }
  .hx-ro { left: var(--gut); top: auto; bottom: calc(36svh + 16px); min-width: 0; padding: 10px 14px; }
  .hx-ro .oled__v { font-size: 30px; }
  .m .hx-f--parts { padding-top: calc(var(--hd) + 16px); }
  .m .hx-f--parts h2 { font-size: 30px; }
  .m .hx-parts__text { width: auto; }
  .m .hx-spec { display: none; }
  .m .hx-parts__lede { font-size: 16px; margin-top: 10px; }
  .m .hx-f--parts:has(.hx-part.on) .hx-parts__lede { display: none; }
  .m .hx-part:not(.on) { display: none; }
  .m .hx-parts { margin-top: 12px; }
  .m .hx-cut__text { top: calc(var(--hd) + 16px); transform: none; width: auto; right: var(--gut); }
  .m .hx-cut__text h2 { font-size: 34px; }
  .m .hx-cut__text .intro { font-size: 16px; margin-top: 12px; }
}

/* Landscape phones (≈ 844 × 390): the pinned stage is only ~340px under the header, so every frame is compacted to
   fit it — otherwise the hero CTAs and the anatomy list fall below the clipped stage and can't be reached. */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .m .hx-f--hero { width: min(60vw, 580px); padding-top: calc(var(--hd) + 12px); background: linear-gradient(90deg, rgb(11 11 10 / .78) 55%, transparent); }
  .m .hx-f--hero h1 { font-size: clamp(30px, 9svh, 40px); max-width: 12ch; }
  .m .hx-f--hero .intro { font-size: 15px; line-height: 1.4; margin-top: 10px; max-width: 44ch; }
  .m .hx-honest { font-size: 14px; line-height: 1.4; margin-top: 10px; max-width: 48ch; }
  .m .hx-f--hero .cta { margin-top: 14px; gap: 8px; }
  .m .hx-f--hero :is(.btn, .soon) { min-height: 44px; font-size: 14px; padding-inline: 14px; gap: 8px; }
  .m .hx-f--hero .cta { flex-wrap: nowrap; }
  .m .hx-f--beats { width: min(52vw, 520px); padding-top: calc(var(--hd) + 12px); }
  .m .hx-meter { margin-bottom: 12px; }
  .m .hx-beat__n { margin-bottom: 6px; }
  .m .hx-beat h3 { font-size: 26px; }
  .m .hx-beat p { font-size: 15px; margin-top: 8px; }
  .m .hx-ro { bottom: 12px; padding: 8px 12px; min-width: 0; }
  .m .hx-ro .oled__v { font-size: 26px; }
  .m .hx-f--parts { padding-top: calc(var(--hd) + 12px); }
  .m .hx-f--parts h2 { font-size: 26px; }
  .m .hx-spec { display: none; }
  .m .hx-parts__lede { font-size: 15px; margin-top: 8px; }
  .m .hx-f--parts:has(.hx-part.on) .hx-parts__lede { display: none; }
  .m .hx-part:not(.on) { display: none; }
  .m .hx-parts { margin-top: 8px; }
  .m .hx-part p { font-size: 15px; }
}

/* ================================================================== chapters */
.ch { position: relative; }
.ch:not(.on-stage) { background: var(--bg); }
.ch__head { display: grid; gap: 16px; }
.ch__head .intro { margin: 0; }
.ch__head--center { text-align: center; justify-items: center; margin-inline: auto; max-width: 900px; }
.ch__stage { padding-block: clamp(72px, 10vh, 128px) clamp(48px, 8vh, 96px); }
.m .ch__stage { display: flex; align-items: center; padding-block: calc(var(--hd) + 24px) 32px; }
.m .ch__stage > .wrap { width: min(100% - 2 * var(--gutter), var(--max)); }
.ch__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head media" "text media"; column-gap: clamp(32px, 6vw, 96px); row-gap: 32px; align-items: start; }
.ch__grid--phone { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ch__head { grid-area: head; }
.ch__text { grid-area: text; }
.ch__media { grid-area: media; align-self: center; margin: 0; }
.ch__media--phone { max-width: 360px; justify-self: center; }
@media (max-width: 899px) { .ch__grid, .ch__grid--phone { grid-template-columns: 1fr; grid-template-areas: "head" "media" "text"; } }
.m .pin.ch { height: 300vh; }
.m .pin.ch[data-steps="2"] { height: 240vh; }

/* Step swaps: hard cuts (no dissolves). The active step's text is full ink; the rest ink3. */
.swap { display: grid; }
.swap__i { grid-area: 1 / 1; }
.m .swap__i { visibility: hidden; }
.m .pin:not([data-step]) .swap__i[data-i="0"], .m [data-step="0"] .swap__i[data-i="0"], .m [data-step="1"] .swap__i[data-i="1"], .m [data-step="2"] .swap__i[data-i="2"] { visibility: visible; }
html:not(.m) .swap { gap: 24px; }
html:not(.m) .swap__i { grid-area: auto; }
.m .ch .steps > li { color: var(--ink3); transition: color .25s; }
.m .ch .steps > li p { color: var(--ink3); }
.m .pin:not([data-step]) .steps > li:nth-child(1), .m [data-step="0"] .steps > li:nth-child(1), .m [data-step="1"] .steps > li:nth-child(2), .m [data-step="2"] .steps > li:nth-child(3) { color: var(--ink); }
.m .pin:not([data-step]) .steps > li:nth-child(1) p, .m [data-step="0"] .steps > li:nth-child(1) p, .m [data-step="1"] .steps > li:nth-child(2) p, .m [data-step="2"] .steps > li:nth-child(3) p { color: var(--ink2); }
.m [data-step="0"] .steps > li:nth-child(1)::before, .m [data-step="1"] .steps > li:nth-child(2)::before, .m [data-step="2"] .steps > li:nth-child(3)::before { color: var(--accent); }

/* Keys: the modifiers depress with the step. */
.keyrow { display: flex; gap: 10px; margin-top: 24px; }
.key { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; color: var(--st-ink);
  background: linear-gradient(#34332F, #252422); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 0 0 1px #000, 0 4px 0 #0a0a09, 0 8px 14px -6px #000; transition: transform .09s var(--e-click), box-shadow .09s; }
.m [data-step="1"] .key, .m [data-step="2"] .key[data-k="0"] { transform: translateY(3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 0 0 1px #000, 0 1px 0 #0a0a09, 0 2px 6px -4px #000; color: var(--orange); }

/* Live: the still MacBook, then a hard cut to the real recording (aligned on the MacBook). */
.live { position: relative; margin: 32px auto 0; max-width: 1040px; }
.m .live { max-width: min(1040px, calc((100svh - var(--hd) - 260px) * 1.39)); }
@media (max-height: 1000px) { .m .ch--live .live__steps { display: none; } }
.m .ch--live .live__steps { margin-top: 20px; }
.m .ch--live .ch__head .intro { display: none; }
.live__still img { width: 100%; }
.live__rec { position: absolute; left: 1.12%; top: -6.7%; width: 107.26%; aspect-ratio: 1280 / 820; }
.live__rec video { width: 100%; height: 100%; }
.m .live__rec { visibility: hidden; }
.m .ch--live[data-step="1"] .live__rec { visibility: visible; }
.m .ch--live[data-step="1"] .live__still { visibility: hidden; }
html:not(.m) .live__rec { position: relative; left: 0; top: 0; width: 100%; }
html:not(.m) .live__still { display: none; }
.live__badge { position: absolute; left: 3%; top: 4%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #F3F1EB; background: rgb(11 11 10 / .8); }
.live__toggle { position: absolute; right: 2%; bottom: 8%; width: 44px; height: 44px; border-radius: 50%; background: rgb(11 11 10 / .72); box-shadow: 0 0 0 1px rgb(255 255 255 / .12); display: grid; place-items: center; }
.live__toggle span { width: 12px; height: 14px; border-inline: 4px solid #F3F1EB; }
.live__toggle[data-state="paused"] span { width: 0; height: 0; border: 0; border-left: 12px solid #F3F1EB; border-block: 7px solid transparent; margin-left: 3px; }
.live__cap { text-align: center; margin-top: 16px; }
.live__steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.live__steps li { border-top: 1px solid var(--hair); padding-top: 16px; }
.live__steps p { margin-top: 8px; color: var(--ink2); font-size: 16px; }
@media (max-width: 899px) { .live__steps { grid-template-columns: 1fr; gap: 16px; } .m .ch--live { height: 260vh; } .m .ch--live .live__steps { display: none; } }

/* Toolbox: one precise instrument panel, unequal cells, real captures. */
.panel { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(96px, auto); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 24px; overflow: hidden; }
.panel__cell { background: var(--bg-3); padding: 20px; }
.panel__count { grid-column: span 2; grid-row: span 2; display: grid; align-content: space-between; background: #0B0B0A; color: #F3F1EB; }
.panel__count b { font: 700 clamp(96px, 12vw, 168px)/1 var(--f-dot); text-shadow: 0 0 .06em currentColor; }
.panel__count .fine { color: #A3A098; }
.panel__cat { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.panel__shot { grid-row: span 3; grid-column: span 2; margin: 0; display: grid; place-items: center; padding: 24px 24px 0; overflow: hidden; }
.panel__shot img { max-width: 260px; }
.panel__text { grid-column: span 2; grid-row: span 2; display: grid; gap: 20px; align-content: start; }
.panel__text p { margin-top: 6px; color: var(--ink2); font-size: 16px; }
@media (max-width: 899px) { .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel__count, .panel__text, .panel__shot { grid-column: span 2; } .panel__shot { grid-row: auto; } }

/* Anywhere: the route engraved into a plate. */
.route { margin-top: 48px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; }
.route__map { width: 100%; height: auto; }
.m .route__map { max-height: 28svh; }
.m .ch--anywhere .route { margin-top: 24px; gap: 20px; }
.route__node rect { fill: #121211; stroke: #3A3936; }
.route__node text { fill: #ECE9E2; font: 600 15px var(--f-sans); text-anchor: middle; }
.route__node--server text { font-size: 13px; fill: #A3A098; }
.route__p, .route__intro { fill: none; stroke: #3A3936; stroke-width: 2; }
.route__intro { stroke-dasharray: 4 6; stroke-width: 1.2; opacity: 0; }
.route__p--0 { stroke: #45D483; }
.m .route__p { stroke: #3A3936; }
.m .ch--anywhere:not([data-step]) .route__p--0, .m [data-step="0"] .route__p--0 { stroke: #45D483; filter: drop-shadow(0 0 4px #45D483); }
.m [data-step="1"] .route__p--1 { stroke: #6AA8FF; filter: drop-shadow(0 0 4px #6AA8FF); }
.m [data-step="1"] .route__intro { opacity: 1; stroke: #6AA8FF; }
.m [data-step="2"] .route__p--2 { stroke: var(--orange); filter: drop-shadow(0 0 4px var(--orange)); }
.route__steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.route__steps li { display: grid; gap: 10px; align-content: start; color: var(--st-ink3); }
.route__steps p { font-size: 16px; }
.route__k { padding: 8px 12px; justify-self: start; }
.m .ch--anywhere:not([data-step]) .route__steps li[data-i="0"], .m [data-step="0"] .route__steps li[data-i="0"], .m [data-step="1"] .route__steps li[data-i="1"], .m [data-step="2"] .route__steps li[data-i="2"] { color: var(--st-ink); }
html:not(.m) .route__steps li { color: var(--st-ink); }
@media (max-width: 899px) { .route__steps { grid-template-columns: 1fr; } .m .route__steps li:not([data-i]) { display: none; } }

/* Privacy Curtain: a shutter that drops with scroll, with a lit leading edge. */
.curtain { position: relative; }
.curtain__over { position: absolute; inset: 0; clip-path: inset(0 0 calc((1 - min(1, var(--p, 1) * 2.2)) * 100%) 0); }
.curtain__over::after { content: ""; position: absolute; left: 10%; right: 10%; height: 2px; top: calc(min(1, var(--p, 1) * 2.2) * 76% + 8%); background: linear-gradient(90deg, transparent, #F7A784, transparent); opacity: calc(1 - min(1, var(--p, 0) * 2.2)); }
.curtain__phone { position: absolute; right: -2%; bottom: 0; width: 22%; visibility: hidden; }
.m .ch--curtain[data-step="1"] .curtain__phone { visibility: visible; }
html:not(.m) .curtain__under { display: none; }
html:not(.m) .curtain__over { position: relative; clip-path: none; }
html:not(.m) .curtain__phone { visibility: visible; }
.curtain__facts { margin-top: 24px; }

/* Devices: a scale shift — iPad wide, Mac and Watch as a pair. */
.devices { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; }
.device { margin: 0; display: grid; gap: 20px; align-content: start; }
.device--ipad { grid-column: 1 / -1; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; }
.device figcaption p { margin: 8px 0 12px; color: var(--ink2); }
@media (max-width: 899px) { .devices { grid-template-columns: 1fr; } .device--ipad { grid-template-columns: 1fr; } }

/* Pricing: a spec sheet, not cards. */
.compare { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; }
.compare__col { padding: 8px clamp(16px, 3vw, 40px) 16px; display: grid; gap: 16px; align-content: start; }
.compare__col + .compare__col { box-shadow: inset 1px 0 0 var(--hair); }
.compare__price { font: 600 48px/1 var(--f-sans); letter-spacing: -.03em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.plan { padding: 12px 12px 14px; display: grid; gap: 6px; }
.plan + .plan { box-shadow: inset 1px 0 0 var(--hair); }
.plan dt { font-size: 14px; color: var(--ink3); }
.plan dd b { font: 700 clamp(26px, 2.6vw, 36px)/1 var(--f-dot); }
.plan--hi dd b { color: var(--accent-text); }
.compare__day, .compare__note { margin-top: 16px; max-width: 80ch; }
@media (max-width: 899px) { .compare { grid-template-columns: 1fr; } .compare__col + .compare__col { box-shadow: inset 0 1px 0 var(--hair); padding-top: 24px; } .plans { grid-template-columns: 1fr; } .plan + .plan { box-shadow: inset 0 1px 0 var(--hair); } }


/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq .ch__head { grid-area: auto; align-content: start; }
@media (max-width: 899px) { .faq { grid-template-columns: 1fr; } }
.panel__ruler { display: flex; align-items: flex-end; }
.panel__ruler .ruler { width: 100%; color: var(--ink2); }

/* Phones: chapters are not pinned (the stage would crop them); the first capture shows, every step is readable. */
@media (max-width: 899px) {
  .m .pin.ch, .m .pin.ch[data-steps="2"] { height: auto; }
  .m .ch .pin__stage { position: relative; height: auto; display: block; padding-block: 72px 56px; }
  .m .ch .swap__i { visibility: hidden; }
  .m .ch .swap__i[data-i="0"] { visibility: visible; }
  .m .ch .steps > li, .m .ch .steps > li p { color: inherit; }
  .m .ch .steps > li p { color: var(--ink2); }
  .m .ch--live .live__rec { visibility: visible; } .m .ch--live .live__still { visibility: hidden; }
  .m .ch--live .live__steps { display: grid; }
  .m .curtain__over { clip-path: none; } .m .ch--curtain .curtain__phone { visibility: visible; }
  .m .route__steps li { color: var(--st-ink); }
  .m .route__p--0 { stroke: #45D483; }
}

/* The drawing that replaces the plate behind the plotter line. */
.hx-draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-draw path { fill: none; stroke: #8F8C86; stroke-width: 1; }
.hx-draw .d-plate { stroke: #5F5C56; stroke-dasharray: 10 6; }
.hx-draw .d-c { stroke: #5F5C56; stroke-dasharray: 18 4 2 4; }
.hx-draw .d-dot { stroke: var(--orange); stroke-dasharray: 1 5.6; stroke-width: 2; stroke-linecap: round; }
.hx-draw .d-dim { stroke: #ECE9E2; }
.hx-draw text { fill: #ECE9E2; font: 500 15px var(--f-sans); font-variant-numeric: tabular-nums; }
/* Chapters: devices own the frame (Apple scale), copy column narrower. */
@media (min-width: 900px) {
  .ch__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .ch__grid--phone { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .ch__media:not(.ch__media--phone) { margin-inline-end: calc(-1 * min(6vw, 96px)); }
}
.m .pin.ch { height: 230vh; }
.m .pin.ch[data-steps="2"] { height: 190vh; }
.ch .steps h3 { font-size: 22px; }
.ch .steps p { font-size: 17px; }
.ch--live .ch__head h2 { padding-top: 4px; }
/* Toolbox: one hero phone, a large count, the categories as a typographic row. */
.tools { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.tools__count { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; color: var(--ink2); }
.tools__count b { font: 600 clamp(64px, 8vw, 120px)/1 var(--f-sans); letter-spacing: -.05em; color: var(--ink); }
.tools__cats { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 28px; font-size: 19px; font-weight: 500; color: var(--ink2); }
.tools__ruler { margin-top: 16px; color: var(--ink3); }
.tools__steps { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; max-width: 44ch; }
.tools__steps p { margin-top: 10px; }
.tools__phone { margin: 0; justify-self: center; max-width: 500px; width: 100%; }
@media (max-width: 899px) { .tools { grid-template-columns: 1fr; } .tools__steps { grid-template-columns: 1fr; } }
/* Anywhere: one accent — the active route is orange, the others graphite. */
.route__p--0 { stroke: #3A3936; }
.m .ch--anywhere:not([data-step]) .route__p--0, .m [data-step="0"] .route__p--0, .m [data-step="1"] .route__p--1, .m [data-step="2"] .route__p--2 { stroke: var(--orange); filter: drop-shadow(0 0 4px rgb(240 106 53 / .7)); }
.m [data-step="1"] .route__intro { stroke: #8F8C86; }
html:not(.m) .route__p { stroke: #8F8C86; }
.route__steps .led { background: #3A3936; box-shadow: 0 0 0 1px rgb(0 0 0 / .5); }
.m .ch--anywhere:not([data-step]) li[data-i="0"] .led, .m [data-step="0"] li[data-i="0"] .led, .m [data-step="1"] li[data-i="1"] .led, .m [data-step="2"] li[data-i="2"] .led { background: var(--orange); box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 0 8px var(--orange); }
/* Pricing: the most important numbers in Geist; the sheet uses the full width. */
.plan dd b { font: 600 clamp(28px, 2.8vw, 40px)/1 var(--f-sans); letter-spacing: -.03em; }
.compare { width: 100%; }

/* Pinned chapters must fit one screen: tighter display size and step rhythm while pinned. */
@media (min-width: 900px) {
  .m .pin.ch .h-ch { font-size: clamp(44px, 5vw, 72px); }
  .m .pin.ch .steps > li { padding: 14px 0 16px; }
  .m .pin.ch .steps p { font-size: 16px; }
  .m .pin.ch .ch__grid { row-gap: 20px; }
}
@media (min-width: 900px) and (max-height: 900px) { .m .pin.ch .steps p { display: none; } .m .pin.ch:not([data-step]) .steps > li:nth-child(1) p, .m .pin.ch[data-step="0"] .steps > li:nth-child(1) p, .m .pin.ch[data-step="1"] .steps > li:nth-child(2) p, .m .pin.ch[data-step="2"] .steps > li:nth-child(3) p { display: block; } }

:lang(ja) .hx-f--hero h1 { max-width: none; font-size: clamp(36px, 4.6vw, 68px); }
.compare__col:first-child .compare__price { display: none; }

/* ================================================================== round 3, fix 3 */
/* Labels: never under 14px on desktop (13px on phones). */
.is-home .tag { font-size: 14px; height: 24px; }
.ch .cap { font-size: 15px; line-height: 1.45; color: var(--ink3); }
.hx-ro .oled__l, .route__k .oled__l { font-size: 14px; letter-spacing: .06em; }
.live__badge { font-size: 14px; padding: 8px 12px; letter-spacing: .06em; }
.route__node text { font-size: 18px; }
.route__node--server text { font-size: 16px; }
@media (max-width: 760px) {
  .is-home .tag { font-size: 13px; height: 22px; }
  .hx-ro .oled__l, .route__k .oled__l, .live__badge { font-size: 13px; }
  .route__node text { font-size: 34px; }
  .route__node--server text { display: none; }
}

/* Opening: the drawing never runs through the copy column; the beats' title is for the static layout. */
@media (min-aspect-ratio: 3/4) { .hx-draw { -webkit-mask-image: linear-gradient(90deg, transparent 0 36%, #000 50%); mask-image: linear-gradient(90deg, transparent 0 36%, #000 50%); } }
.m .hx-beats__h, .m .hx-parts__still, .m .hx-beats__still { display: none; }
@media (min-aspect-ratio: 3/4) and (min-width: 761px) { .m .hx-parts__text { width: min(44vw, 620px); } }

/* Chapters: bigger headlines, devices closer to the copy. */
@media (min-width: 900px) {
  .ch__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 4.5vw, 72px); }
  .ch__media:not(.ch__media--phone) { margin-inline-end: calc(-1 * min(4vw, 64px)); }
  .ch__grid--phone { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .ch__media--phone { justify-self: start; max-width: none; width: min(100%, 400px); }
  .m .ch__media--phone { width: min(100%, calc((100svh - var(--hd) - 64px) / 2)); }
  .ch .h-ch { font-size: clamp(44px, 5vw, 72px); }
  .m .ch--live .ch__head--center { max-width: none; }
  .m .ch--live .live { max-width: min(1120px, calc((100svh - var(--hd) - var(--live-res, 236px)) * 1.39)); margin-top: calc(32px + 5vh); }
  html.m:is(:lang(de), :lang(fr), :lang(ja), :lang(tr)) .ch--live .live { --live-res: 300px; }
  /* sections read as one screen each: centred, with room above and below (no half-cut neighbour) */
  .ch.sec { padding-block: clamp(96px, 12vh, 144px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .ch.sec > .wrap { width: min(100% - 2 * var(--gutter), var(--max)); }
}
.m .ch__stage { padding-block: calc(var(--hd) + 32px) 48px; }

/* Trackpad: the pad shows a gesture — pointer path and finger — not an empty screen. */
.ch__media--phone { position: relative; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; }
.trail__ghost { fill: none; stroke: rgb(243 241 235 / .22); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.trail__p { fill: none; stroke: #F3F1EB; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; filter: drop-shadow(0 0 6px rgb(255 255 255 / .35)); }
:is(.trail__f, .trail__end) circle { fill: #F3F1EB; }
.mo .trail__end { display: none; }
html:not(.mo) .trail__f { display: none; }
:is(.trail__f, .trail__end) .trail__halo { fill: rgb(243 241 235 / .16); stroke: rgb(243 241 235 / .5); stroke-width: 1.5; }
.ch--keys:not([data-step]) .trail, .ch--keys[data-step="0"] .trail { visibility: visible; }
@media (max-width: 899px) { .m .ch--keys .trail { visibility: visible; } }
html:not(.m) .trail { display: block; visibility: visible; }
html:not(.mo) .trail__p { stroke-dashoffset: 0; }

/* Pricing: yearly first, with what it costs a month; every plan is on the pricing page. */
.yr { display: grid; gap: 10px; padding: 20px 0 24px; border-block: 1px solid var(--line); }
.yr__name { display: flex; align-items: center; font-size: 17px; font-weight: 600; }
.yr__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.yr__price b { font: 600 clamp(48px, 5vw, 72px)/1 var(--f-sans); letter-spacing: -.04em; }
.yr__price span, .yr__pm { font-size: 17px; color: var(--ink2); }
.yr .textlink { font-size: 17px; }

/* Closing: the page's one call to action. */
.close { display: grid; justify-items: center; text-align: center; }
.close__icon { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 32px; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 48px -20px #000; }
.close .intro { margin-top: 20px; max-width: 40ch; color: var(--st-ink2); }
.close__cta { justify-content: center; margin-top: 36px; }
.close__fine { margin-top: 16px; font-size: 15px; color: var(--st-ink3); max-width: 60ch; }
.close__steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; width: 100%; max-width: 1080px; margin-top: 72px; text-align: start; }
.close__steps li { border-top: 1px solid var(--st-hair-2); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.close__steps .num { font: 700 30px/1 var(--f-dot); color: var(--st-ink3); }
.close__steps p { color: var(--st-ink2); font-size: 16px; }
@media (max-width: 760px) { .close__steps { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; } .close__icon { width: 88px; height: 88px; border-radius: 20px; } }

/* Japanese: break headlines at phrase boundaries. */
:lang(ja) :is(h1, h2, h3, .intro, .hx-honest) { word-break: auto-phrase; }

/* ------------------------------------------------------------------ reduced motion / no JS: an editorial layout */
html:not(.m) .hx { padding-bottom: clamp(64px, 8vw, 128px); }
html:not(.m) .hx-meter { display: none; }
html:not(.m) .hx-fig { margin: 0; }
html:not(.m) .hx-fig picture { position: relative; display: block; overflow: hidden; border-radius: 24px; box-shadow: 0 0 0 1px var(--st-hair); }
html:not(.m) .hx-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
html:not(.m) .hx-fig .cap { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--st-ink3); max-width: 52ch; }
html:not(.m) :is(.hx-f--beats, .hx-f--parts, .hx-f--cut) { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: clamp(80px, 9vw, 136px) 0 0; display: grid; column-gap: clamp(32px, 6vw, 96px); row-gap: 32px; align-items: center; }
html:not(.m) .hx-f--beats { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "h fig" "list fig"; align-items: start; }
html:not(.m) .hx-beats__h { grid-area: h; }
html:not(.m) .hx-beats { grid-area: list; gap: 0; }
html:not(.m) .hx-beat { padding: 20px 0 22px; border-top: 1px solid var(--st-hair-2); }
html:not(.m) .hx-beat h3 { font-size: clamp(24px, 2.2vw, 30px); max-width: none; }
html:not(.m) .hx-beat p { margin-top: 8px; font-size: 17px; color: var(--st-ink2); }
html:not(.m) .hx-beat__n { margin-bottom: 8px; }
html:not(.m) .hx-beats__still { grid-area: fig; align-self: center; }
html:not(.m) .hx-beats__still picture { aspect-ratio: 1 / 1; }
html:not(.m) .hx-beats__still img { object-position: 78% 56%; scale: 1.45; transform-origin: 66% 58%; }
html:not(.m) .hx-f--parts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
html:not(.m) .hx-parts__still picture { aspect-ratio: 4 / 3; }
html:not(.m) .hx-parts__still img { object-position: 70% 50%; scale: 1.3; transform-origin: 62% 45%; }
html:not(.m) .hx-parts { max-width: none; margin-top: 20px; }
html:not(.m) .hx-spec { --cols: 2; }
html:not(.m) .hx-f--cut { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
html:not(.m) .hx-phone { max-width: 380px; width: 100%; justify-self: center; }
html:not(.m) .hx-cut__text .h-ch { max-width: 12ch; }
html:not(.m) .swap__i:not([data-i="0"]) { display: none; }
@media (max-aspect-ratio: 3/4) { html:not(.m) .hx-f--hero { position: absolute; inset: 0 0 auto 0; width: auto; padding: 16px var(--gut) 0; } }
@media (max-width: 899px) {
  html:not(.m) :is(.hx-f--beats, .hx-f--parts, .hx-f--cut) { grid-template-columns: 1fr; padding-top: 72px; }
  html:not(.m) .hx-f--beats { grid-template-areas: "h" "fig" "list"; }
  html:not(.m) .hx-phone { order: 2; max-width: 300px; }
  html:not(.m) .hx-beats__still picture { aspect-ratio: 4 / 3; }
  html:not(.m) .hx-beats__still img { object-position: 50% 88%; scale: 1; }
  html:not(.m) .hx-parts__still img { object-position: 50% 55%; scale: 1; }
}
@media (min-width: 900px) { .tools__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 32px; } .tools__count { margin-bottom: 12px; } }
@media (min-width: 900px) {
  .tools__phone { max-width: min(460px, calc((100svh - var(--hd) - 120px) / 2.03)); }
  /* Pricing: the head beside the sheet, so the whole comparison reads in one screen. */
  .ch--pricing > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .ch--pricing .ch__head { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: calc(var(--hd) + 32px); }
  .ch--pricing .compare { grid-column: 2; margin-top: 0; }
  .ch--pricing .ch__head .h-ch { font-size: clamp(40px, 4vw, 60px); }
  .ch--pricing .compare__day, .ch--pricing .compare__note { grid-column: 2; }
}
/* Locales: Japanese phrases need the measure (a phrase that doesn't fit falls back to a character break); de/fr run long. */
@media (min-width: 900px) {
  :lang(ja) .ch .h-ch, .m :lang(ja) .pin.ch .h-ch { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.16; }
  :is(:lang(de), :lang(fr)) .ch .h-ch, .m :is(:lang(de), :lang(fr)) .pin.ch .h-ch { font-size: clamp(40px, 4.5vw, 66px); }
  :lang(ja) .ch--pricing .ch__head .h-ch { font-size: clamp(32px, 3.2vw, 46px); }
}
.hx-ro .oled__v small { font-size: 14px; }
/* Final polish (critique after fix round 3): the FAQ owns the width; the closing icon is a hero object. */
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.ch--faq .qa summary { font-size: clamp(19px, 1.6vw, 22px); padding-block: 24px; }
.ch--faq .qa .ans { font-size: 18px; }
.close__icon { width: 128px; height: 128px; border-radius: 30px; }

/* ================================================================== polish (critic, final round) */
/* Live and Curtain: shorter holds, and each hold is a different, unmistakable state.
   Live: before the cut the still Mac is dimmed with its LIVE lamp dark; the cut lights the lamp on the recording.
   Curtain: the shutter is down within the first third of the hold; a status readout flips "Your work" → "Curtain down". */
@media (min-width: 900px) { .m .pin.ch.ch--live[data-steps], .m .pin.ch.ch--curtain[data-steps] { height: 160vh; } }
.live__ghost { position: absolute; left: 1.12%; top: -6.7%; width: 107.26%; aspect-ratio: 1280 / 820; pointer-events: none; }
.live__ghost .live__badge { color: #A3A098; }
.live__still img { transition: filter .35s var(--e-travel); }
.m .ch--live:not([data-step="1"]) .live__still img { filter: brightness(.5) saturate(.55); }
.m .ch--live[data-step="1"] .live__ghost, html:not(.m) .live__ghost { visibility: hidden; }
.live__rec .live__badge { box-shadow: 0 0 0 1px rgb(240 106 53 / .5), 0 0 24px -6px rgb(240 106 53 / .6); }
@media (max-width: 899px) { .m .ch--live .live__ghost { visibility: hidden; } .m .ch--live .live__still img { filter: none; } }

.curtain { --drop: min(1, var(--p, 1) * 3.2); --down: clamp(0, (var(--drop) - .9) * 10, 1); }
.curtain__over { clip-path: inset(0 0 calc((1 - var(--drop)) * 100%) 0); }
.curtain__over::after { top: calc(var(--drop) * 76% + 8%); opacity: calc(1 - var(--drop)); }
/* The status readout sits above the device box, in flow; it shows exactly one state. r3.js sets data-on on it once
   the pin passes data-on-p (the shutter is down); without motion, on phones and without JS it reads "Curtain down". */
.curtain__ro { justify-self: start; width: max-content; margin: 0 0 16px 9%; padding: 10px 14px; border-radius: 12px; box-shadow: 0 0 0 1px #000, 0 12px 24px -16px #000; }
.curtain__ro .oled__l { white-space: nowrap; }
.curtain__ro-b { color: #F3F1EB; }
.m .curtain__ro:not([data-on]) .curtain__ro-b, .m .curtain__ro[data-on] .curtain__ro-a, html:not(.m) .curtain__ro-a { display: none; }
/* One box for the stacked Mac layers: same framing (both 1000 × 720 sources), absolutely stacked, so an image that is
   late or missing can never shift one Mac against the other. */
.curtain { display: grid; }
.curtain__box { position: relative; aspect-ratio: 1000 / 720; }
.curtain__under, .curtain__over { position: absolute; inset: 0; }
.curtain__box :is(.curtain__under, .curtain__over) :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: contain; }
html:not(.m) .curtain__over { position: absolute; }
@media (max-width: 899px) {
  .m .curtain { --drop: 1; --down: 1; }
  .m .curtain .curtain__ro.curtain__ro .curtain__ro-a { display: none; } .m .curtain .curtain__ro.curtain__ro .curtain__ro-b { display: flex; }
  .curtain__ro { margin-left: 0; }
}

/* Trackpad: the pad's gesture reads at any size — the whole path stays drawn, the finger runs over it, and the same
   path moves the pointer on the Mac's screen beside it (cursor sync, one clock). */
.trail__ghost { stroke: rgb(243 241 235 / .3); stroke-width: 5; stroke-dasharray: none; }
.sync { grid-area: sync; margin: 0; justify-self: end; align-self: start; width: min(100%, 340px); }
.sync__screen { position: relative; aspect-ratio: 732 / 478; overflow: hidden; border-radius: 12px; background: #1A1A18; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 0 0 5px #0B0B0A, 0 0 0 6px #2A2926, 0 28px 48px -24px #000; }
.sync__screen picture { position: absolute; left: -14.21%; top: -14.64%; width: 136.61%; max-width: none; }
.sync__screen img { width: 100%; height: auto; }
.sync__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sync__ghost { fill: none; stroke: rgb(255 255 255 / .38); stroke-width: 5; stroke-linecap: round; }
.sync__p { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; filter: drop-shadow(0 0 6px rgb(0 0 0 / .45)); }
.sync__arrow { fill: #0B0B0A; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; transform: scale(1.5); }
.mo .sync__end { display: none; } html:not(.mo) .sync__f { display: none; } html:not(.mo) .sync__p { stroke-dashoffset: 0; }
.m .ch--keys[data-step="1"] .sync, .m .ch--keys[data-step="2"] .sync { visibility: hidden; }
@media (min-width: 900px) {
  .ch--keys .ch__grid { grid-template-areas: "head media" "sync media" "text media"; }
  .m .ch--keys .sync { width: min(100%, 340px, calc((100svh - 650px) * 1.53)); }
  .m .ch--keys .ch__grid { align-content: center; }
}
@media (max-width: 899px) {
  .ch--keys .ch__grid { grid-template-areas: "head" "media" "sync" "text"; }
  .sync { justify-self: center; width: min(100%, 420px); margin-top: -8px; }
}
@media (max-width: 899px) { .m .ch--keys[data-step] .sync { visibility: visible; } }

/* Landscape phones: the copy column stops short of the Dial's LED ring (the dial sits right of ~48vw), so text and
   dial never overlap; the backdrop fades out before the ring. */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .m .hx-f--hero { width: min(46vw, 440px); padding-inline-end: 8px; background: linear-gradient(90deg, rgb(11 11 10 / .82) 70%, transparent); }
  .m .hx-f--hero .intro { font-size: 14px; line-height: 1.38; max-width: none; }
  .m .hx-honest { font-size: 13px; line-height: 1.38; max-width: none; }
  .m .hx-f--hero h1 { font-size: clamp(28px, 8.4svh, 36px); }
  /* the two keys stay on one row (they end before the ring, which curves away at the bottom) */
  .m .hx-f--hero .cta { flex-wrap: nowrap; width: max-content; margin-top: 12px; }
  .m .hx-f--hero :is(.btn, .soon) { font-size: 13px; padding-inline: 12px; }
}
/* Phones: the chapters are not pinned. Their height is the content's (a later 230vh rule used to leave a blank band
   under each one), and the first capture of a step swap is the one shown, whatever step the scroll reports. */
@media (max-width: 899px) {
  .m .pin.ch.ch, .m .pin.ch.ch[data-steps] { height: auto; }
  .m .ch.ch .swap__i:not([data-i="0"]) { visibility: hidden; }
  .m .ch.ch .swap__i[data-i="0"] { visibility: visible; }
}
html:not(.m) .live__ghost { display: none; }
@media (max-width: 899px) { .live__ghost { display: none; } }
@media (min-width: 900px) and (max-height: 759px) { .m .ch--keys .sync { display: none; } }
/* Pinned stages centre their content only while it fits: when a short window can't hold it, it starts under the
   header (auto margins collapse to 0) instead of overflowing upwards under the fixed bar. */
.m .ch__stage { align-items: flex-start; }
.m .ch__stage > .wrap { margin-block: auto; }
/* The phone figure never outgrows its capture (400 px wide): the gesture overlay is drawn in the figure's box, so the
   two must be the same size on very large screens. */
@media (min-width: 900px) { .m .ch__media--phone { width: min(100%, 400px, calc((100svh - var(--hd) - 64px) / 2)); } .ch__media--phone .swap__i img { width: 100%; } }

/* ================================================================== compact screens: stacked chapters
   Phones, landscape phones and portrait tablets (same query as assets/js/m.js, which leaves html.m off there): no
   pinned stage, no WebGL. Every chapter is a short stacked section that tells its story in about one screen: the
   whole Dial as a still under the hero copy, the beats and the anatomy as compact lists, the trackpad beside the Mac
   it moves, the devices as rows. Also the layout for reduced motion / no JS at these sizes. */
@media (max-width: 899px), (max-height: 520px), (pointer: coarse) and (orientation: portrait) {
  /* Opening: copy → CTA → the whole Dial (fits the first screen) → its honesty caption. */
  .hx__stage { display: flex; flex-direction: column; }
  html:not(.m) .hx-f--hero { display: contents; }
  html:not(.m) .hx-f--hero > * { position: relative; z-index: 3; margin-inline: var(--gut); }
  html:not(.m) .hx-f--hero > h1 { order: 1; margin-top: clamp(20px, 4svh, 40px); }
  html:not(.m) .hx-f--hero > .intro { order: 2; }
  html:not(.m) .hx-f--hero > .cta { order: 3; margin-top: 20px; }
  html:not(.m) .hx__media { order: 4; align-self: center; aspect-ratio: 1 / 1; margin-top: 12px;
    width: min(100% - 2 * var(--gut), max(232px, 100svh - 592px), 560px);
    -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent); mask-image: radial-gradient(closest-side, #000 82%, transparent); }
  html:not(.m) .hx.is-live .hx__media > .hx-still { visibility: visible; }
  html:not(.m) .hx-f--hero > .hx-honest { order: 5; margin-top: 8px; max-width: 46ch; }
  html:not(.m) :is(.hx-f--beats, .hx-f--parts, .hx-f--cut) { order: 6; }
  html:not(.m) .hx { padding-bottom: 56px; }

  /* The three beats: a compact list (the Dial is right above, no second still). */
  html:not(.m) :is(.hx-f--beats, .hx-f--parts, .hx-f--cut) { padding-top: 64px; row-gap: 20px; }
  html:not(.m) .hx-beats__still { display: none; }
  html:not(.m) .hx-f--beats { grid-template-areas: "h" "list"; }
  html:not(.m) .hx-beat { padding: 16px 0 18px; }
  html:not(.m) .hx-beat__n { margin-bottom: 6px; }
  html:not(.m) .hx-beat h3 { font-size: 24px; }
  html:not(.m) .hx-beat p { margin-top: 6px; font-size: 16px; line-height: 1.45; }

  /* Anatomy: a short still, the four parts two by two, the numbers. */
  html:not(.m) .hx-parts__still picture { aspect-ratio: 1 / 1; max-width: 420px; }
  html:not(.m) .hx-parts__still img { object-position: 60% 57%; }
  html:not(.m) .hx-fig .cap { margin-top: 10px; font-size: 14px; }
  html:not(.m) .hx-parts__lede { margin-top: 10px; font-size: 16px; }
  html:not(.m) .hx-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 0; margin-top: 16px; }
  html:not(.m) .hx-part { grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; align-content: start; }
  html:not(.m) .hx-part__n { width: 24px; height: 24px; font-size: 13px; }
  html:not(.m) .hx-part h3 { font-size: 18px; }
  html:not(.m) .hx-part p { grid-column: 1 / -1; font-size: 15px; line-height: 1.4; }
  html:not(.m) .hx-spec { margin-top: 16px; }

  /* The cut: the app's Dial screen at phone scale. */
  html:not(.m) .hx-phone { max-width: min(220px, 58vw); }
  html:not(.m) .hx-cut__text .intro { margin-top: 14px; font-size: 17px; }
  html:not(.m) .hx-cut__text p:last-child { margin-top: 12px; }

  /* Chapters: one rhythm, less air, steps with a narrow number column. */
  .ch__stage, .ch.sec { padding-block: 64px 56px; }
  .ch.sec { min-height: 0; }
  .ch__grid { row-gap: 20px; }
  .ch__head { gap: 12px; }
  .ch .steps > li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 14px 0 16px; }
  .ch .steps > li::before { font-size: 24px; }
  .ch .steps h3 { font-size: 19px; }
  .ch .steps p { font-size: 16px; line-height: 1.45; }

  /* Trackpad: the pad beside the Mac it moves (finger and pointer on one clock), then the three steps. */
  .ch--keys .ch__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head head" "media sync" "text text"; column-gap: 16px; align-items: center; }
  .ch--keys .ch__media--phone { width: 100%; max-width: 260px; justify-self: end; }
  .ch--keys .sync { width: 100%; max-width: 420px; margin: 0; justify-self: start; align-self: center; }

  /* Live: the recording, then the three facts. */
  .live { margin-top: 24px; }
  .live__cap { margin-top: 10px; }
  .live__steps { margin-top: 24px; gap: 16px; }
  .live__steps p { margin-top: 6px; }

  /* Toolbox */
  .tools__count { margin-bottom: 12px; }
  .tools__count b { font-size: 64px; }
  .tools__cats { margin-top: 16px; font-size: 17px; }
  .tools__steps { gap: 18px; margin-top: 24px; }
  .tools__steps p { margin-top: 6px; font-size: 16px; line-height: 1.45; }
  .tools__phone { max-width: min(260px, 64vw); }

  /* Anywhere, Curtain, Devices, Duo */
  .route { margin-top: 24px; padding: 20px; gap: 20px; }
  .route__steps { gap: 20px; }
  .route__steps li { gap: 8px; }
  .curtain__facts { margin-top: 16px; }
  .curtain__ro { margin-bottom: 12px; }
  .devices { margin-top: 32px; gap: 32px; }
  .device { gap: 14px; }
  .device figcaption p { margin: 6px 0 8px; font-size: 16px; }

  /* Pricing, FAQ, closing */
  .compare { margin-top: 28px; }
  .compare__col { gap: 12px; }
  .yr { padding: 14px 0 18px; }
  .ch--faq .qa summary { padding-block: 16px; font-size: 18px; }
  .ch--faq .qa .ans { font-size: 17px; }
  .close__icon { margin-bottom: 20px; }
  .close__cta { margin-top: 28px; }
  .close__steps { margin-top: 40px; gap: 20px; }
}
/* Phones in portrait: the Mac and the Watch read as rows beside their captions. */
@media (max-width: 899px) and (min-height: 521px) {
  .device--mac, .device--watch { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: 16px; }
  .device--watch .fig { max-width: 180px; justify-self: center; }
}
/* Landscape phones: copy beside the Dial, both in the first screen; headlines sized for a 390px-high window. */
@media (max-height: 520px) and (orientation: landscape) {
  .hx__stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: start; }
  html:not(.m) .hx-f--hero > * { grid-column: 1; margin-inline-end: 0; }
  html:not(.m) .hx-f--hero > h1 { grid-row: 1; font-size: 40px; max-width: 14ch; margin-top: 20px; }
  html:not(.m) .hx-f--hero > .intro { grid-row: 2; font-size: 16px; margin-top: 12px; max-width: 46ch; }
  html:not(.m) .hx-f--hero > .cta { grid-row: 3; margin-top: 16px; }
  html:not(.m) .hx-f--hero > .hx-honest { grid-row: 4; font-size: 14px; margin-top: 14px; }
  html:not(.m) .hx__media { grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 12px var(--gut) 0 0; width: min(44vw, 100svh - var(--hd) - 40px); }
  html:not(.m) :is(.hx-f--beats, .hx-f--parts, .hx-f--cut) { grid-column: 1 / -1; }
  html:not(.m) .hx-f--beats { grid-template-columns: minmax(0, 1fr); }
  html:not(.m) .hx-beats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  html:not(.m) .hx-f--parts { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  html:not(.m) .hx-parts__still picture { aspect-ratio: 4 / 3; }
  html:not(.m) .hx-f--cut { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  html:not(.m) .hx-phone { order: 0; max-width: 200px; }
  .ch .h-ch { font-size: 40px; }
  .ch__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head media" "text media"; column-gap: 32px; }
  .ch__media { align-self: start; }
  .live { max-width: min(100%, calc((100svh - 40px) * 1.45)); }
  .tools { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tools__phone { max-width: 220px; }
  .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device--ipad { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .compare { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .compare__col + .compare__col { box-shadow: inset 1px 0 0 var(--hair); padding-top: 8px; }
  .route__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live__steps, .close__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ch--keys .ch__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); grid-template-areas: "head head head" "media sync text"; align-items: start; }
  .ch--keys .ch__media--phone { max-width: 200px; }
}
