/* FigSync landing redesign. Tokens and type are read off the Figma redesign (9q6rHahyCLhB4Oc7n7spEF, 529:4315),
   which takes its ground, ink and spacing from tenzen.studio, its install timeline and plan cards from
   skills/bs-cadence-marketing-landing, and its hero icon slots from mobbin.com. The cadence greys (#78838D on paper) are
   moved onto this palette's warm inks so small text keeps AA contrast. Dark theme keeps the same structure. */

/* Fonts and tokens live in tokens.css, loaded before this file. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-width: 320px; background: var(--ground); color: var(--ink);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(a, button, summary, [tabindex]):focus { outline: none; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(255, 168, 0, .3); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic .fill, .ic use.fill { fill: currentColor; stroke: none; }
.ic-12 { width: 12px; height: 12px; }
.ic-14 { width: 14px; height: 14px; }
.ic-15 { width: 15px; height: 15px; }
.ic-16 { width: 16px; height: 16px; }
.ic-17 { width: 17px; height: 17px; }
.ic-20 { width: 20px; height: 20px; }
.ic-21 { width: 21px; height: 21px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }

/* ---------- type ---------- */
.kicker { display: flex; align-items: center; gap: 8px; font-size: clamp(15px, .8rem + .3vw, 19px); line-height: 30px; letter-spacing: -.2px; color: var(--ink-2); }
.kicker .ic { stroke-width: 1.53; }
/* Type scale (1440 wide): hero title 52 > section title 38 > step title 23 > lede 17. The pricing title is a section title like the rest. */
.h2 { font-size: clamp(min(26px, 8vw), .9rem + 1.6vw, 42px); line-height: 1.152; font-weight: 500; letter-spacing: -.032em; color: var(--ink); text-wrap: balance; }
.h1-like { font-size: clamp(36px, 1rem + 2.95vw, 70px); line-height: 1; font-weight: 500; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.lede { font-size: 17px; line-height: 28px; color: var(--ink-2); }
.tlink { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.tlink:hover { text-decoration-color: currentColor; }
.br-lg { display: inline; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-size: 16px; line-height: 1; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s, transform .2s var(--ease), opacity .2s;
}
.pill:active { transform: scale(.98); }
.pill--ink { background: var(--ink); color: var(--ground); }
.pill--ink:hover { background: color-mix(in srgb, var(--ink) 84%, var(--ground)); }
.pill--soft { background: var(--surface-2); color: var(--ink); }
.pill--soft:hover, .pill--soft[aria-expanded="true"] { background: var(--surface-3); }
.pill--sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; letter-spacing: -.01em; }
.pill--md { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.pill--lg { min-height: 50px; padding: 0 24px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.round-btn { flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--surface-2); color: var(--ink); transition: background-color .2s; }
.round-btn:hover { background: var(--surface-3); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; height: calc(var(--hdr) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.hdr[data-scrolled="true"] { background: var(--ground-90); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--rule); }
.hdr-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); height: var(--hdr); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Archivo Black", "Geist", system-ui, sans-serif; font-size: 18px; line-height: 1; font-weight: 400; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; color: var(--ink); justify-self: start; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand--lg { font-size: 22px; gap: 10px; }
.brand--lg img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; font-size: 15px; line-height: 1; color: var(--ink-2); white-space: nowrap; transition: color .2s, background-color .2s; }
.nav-link:hover, .nav-link[aria-current], .nav-link[aria-expanded="true"] { color: var(--ink); }
#featBtn { color: var(--ink); }
.caret { stroke-width: 1.5; transition: transform .35s var(--ease); }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 320px; padding: 8px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--pop-shadow), 0 0 0 1px var(--rule);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav-drop.is-open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s; }
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; transition: background-color .2s; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--surface-2); outline-offset: -2px; }
.nav-menu__ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--ink); }
.nav-menu a:hover .nav-menu__ic { background: var(--surface); }
.nav-menu b { display: block; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
.nav-menu small { display: block; font-size: 13.5px; line-height: 18px; color: var(--ink-3); }
.hdr-act { justify-self: end; display: flex; align-items: center; gap: 8px; }
.hdr-dl { margin-right: 2px; }
.theme-btn .sun, [data-theme-toggle] .sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .sun { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .moon { display: none; }
.menu-btn { display: none; }

/* ---------- mobile sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s .35s; }
.sheet.is-open { visibility: visible; transition: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(12, 12, 13, .32); opacity: 0; transition: opacity .3s var(--ease); }
.sheet.is-open .sheet-scrim { opacity: 1; }
.sheet-panel { position: absolute; inset: 0 0 auto; max-height: 100dvh; overflow: auto; padding: env(safe-area-inset-top, 0px) var(--gutter) 24px; background: var(--ground); border-radius: 0 0 22px 22px; transform: translateY(-104%); transition: transform .4s var(--ease); }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-top { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; }
.sheet-nav { display: flex; flex-direction: column; padding: 4px 0 8px; }
.sheet-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid var(--rule); }
.sheet-nav a .ic { color: var(--ink-3); }
.sheet-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.sheet-actions > .pill { width: 100%; }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-row .pill { width: 100%; }

/* ---------- reveal ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--rd, 0) * 1ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 1 · hero ---------- */
/* The whole film is meant to be in the first screen without scrolling: the head (eyebrow, title, buttons) is measured
   from the same variables that set it, and the film's width follows the height that is left (see .hero-demo below). */
.hero { --gap: 18px; --pad: 16px; --kick-h: 48px; --ctas-h: 50px; --fit: 9.35;
  --title-fs: min(clamp(32px, 1rem + 2.5vw, 58px), calc((100vw - 2 * var(--gutter)) / var(--fit)));
  --head-h: calc(var(--hdr) + var(--pad) + var(--kick-h) + var(--title-fs) * 2.16 + var(--gap) + var(--ctas-h) + 14px);
  padding-top: calc(var(--hdr) + var(--pad)); }
.hero:lang(en) { --fit: 10.25; }
.hero-head { display: flex; flex-direction: column; align-items: center; gap: var(--gap); text-align: center; }
.hero-title {
  --icon: 1.12em; --gap: .16em; --closed: .22em; --open: calc(var(--icon) + 2 * var(--gap));
  display: flex; flex-direction: column; align-items: center; gap: .16em;
  font-size: clamp(34px, 1.2rem + 3.1vw, 70px); line-height: 1; font-weight: 500; letter-spacing: -.04em; color: var(--ink);
  /* Each line stays one row so an icon never starts a row; on phones the size follows the longest line (zh 9.04em,
     en 9.95em incl. the open slot) so it still fits between the gutters. Inactive from about 400px up. */
  font-size: var(--title-fs);
}
.hero-line { display: block; white-space: nowrap; }
.slot { position: relative; display: inline-block; width: var(--open); height: 0; vertical-align: baseline; }
.slot-btn { position: absolute; left: 50%; bottom: -.18em; width: var(--icon); height: var(--icon); transform: translateX(-50%); border-radius: 24%; -webkit-tap-highlight-color: transparent; }
.slot-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); user-select: none; -webkit-user-drag: none; }
/* Figma and Finder read as a pair: the same squircle (70 / 15.6 radius), the same optical size, opposite tilts. */
.slot[data-slot="0"] .slot-btn img { transform: rotate(-9.2deg) scale(.852); }
:root[data-theme="dark"] .slot-btn img[src*="figma-icon"] { border-radius: 22.33%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.slot--tilt .slot-btn img { transform: rotate(9.2deg) scale(.9); }
.slot-btn:focus-visible { outline-offset: 4px; border-radius: 24%; }
.js-motion .hero-line { animation: line-in .7s var(--ease-out) both; }
.js-motion .hero-line--2 { animation-delay: .08s; }
.js-motion .slot { animation: slot-open .32s var(--ease-out) .72s both; }
.js-motion .slot-btn { animation: slot-in .5s ease-out .8s both; }
.js-motion .slot[data-slot="1"] { animation-delay: .86s; }
.js-motion .slot[data-slot="1"] .slot-btn { animation-delay: .94s; }
.slot-btn.is-landed { animation: none; }
.slot-btn.is-swap { animation: slot-swap .5s ease-out 0s both !important; }
@keyframes line-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes slot-swap {
  0% { transform: translateX(-50%) scale(.72); filter: blur(5px); }
  45% { transform: translateX(-50%) scale(1.06); filter: blur(0); }
  70% { transform: translateX(-50%) scale(.98); }
  100% { transform: translateX(-50%) scale(1); }
}
@keyframes slot-open { from { width: var(--closed); } to { width: var(--open); } }
@keyframes slot-in {
  0% { opacity: 0; transform: translateX(-50%) scale(.72); filter: blur(7px); }
  45% { opacity: 1; transform: translateX(-50%) scale(1.04); filter: blur(0); }
  68% { transform: translateX(-50%) scale(.99); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); filter: blur(0); }
}
.hero-sub { max-width: 40em; font-size: clamp(15px, .8rem + .3vw, 18px); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 19px; }

/* App Store QR popover under "get the iPhone App" */
.qr-anchor { position: relative; }
.qr-pop {
  position: absolute; z-index: 30; top: calc(100% + 12px); left: 50%; width: min(360px, calc(100vw - 32px));
  display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 18px; text-align: left;
  background: var(--surface); box-shadow: var(--pop-shadow), 0 0 0 1px var(--rule);
  transform: translateX(-50%); animation: pop-in .26s var(--ease-out);
}
.qr-pop[hidden] { display: none; }
.qr-pop::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: var(--surface); transform: translateX(-50%) rotate(45deg); box-shadow: -1px -1px 0 var(--rule); border-radius: 2px 0 0 0; }
.qr-pop__code { width: 112px; height: 112px; flex: none; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--rule); image-rendering: pixelated; }
.qr-pop__copy { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.qr-pop__title { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--ink); }
.qr-pop__body { font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.qr-pop__copy .tlink { font-size: 13.5px; margin-top: 2px; }
.qr-pop__note { font-size: 12.5px; line-height: 18px; color: var(--ink-3); font-family: var(--mono); }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -6px) scale(.98); } }

/* the window the film plays in */
.hero-demo { margin-top: 32px; }
/* The 4:5 cut under the title: at most 640px wide (the video is 1364px, so that stays sharp at 2x) and never taller than
   the height left under the head, so ~97% of it is in the first screen without scrolling (0.8 = its aspect). */
.hero-demo:has(.win[data-frame="compact"]) { max-width: calc(clamp(260px, (100svh - var(--head-h) - 6px) / .97 * .8, 640px) + 2 * var(--gutter)); }
/* The 16:10 cut (wider than 760px): as wide as the height left under the head allows (1.6 = its aspect), with ~93% of it
   above the fold (the last strip is the film's own empty ground), at most 1280px (wider than the 1120px text container). */
.hero-demo:has(.win[data-frame="wide"]) { max-width: calc(clamp(320px, (100svh - var(--head-h) - 6px) / .93 * 1.6, 1280px) + 2 * var(--gutter)); }
/* No window and no fill: the film is rendered on the page's own ground, so only its content shows. A soft mask on the
   edges hides the last level of colour drift from video encoding. */
.win { position: relative; aspect-ratio: 2000 / 1250; background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.4%, #000 97.6%, transparent 100%), linear-gradient(180deg, transparent 0, #000 3.2%, #000 96.8%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 2.4%, #000 97.6%, transparent 100%), linear-gradient(180deg, transparent 0, #000 3.2%, #000 96.8%, transparent 100%); mask-composite: intersect; }
/* up to 760px app.js plays the compact cut (4:5, its own camera) and marks the window data-frame="compact" */
.win[data-frame="compact"] { aspect-ratio: 1364 / 1706; }
.win-video { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.win-bar { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 14px; }
.win-ctl { position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border-radius: 999px; color: var(--ink); background: var(--surface-2); transition: background-color .2s, transform .2s var(--ease); }
.win-ctl::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; }
.win-ctl:hover { background: var(--surface-3); }
.win-ctl .i-play, .win-ctl[aria-pressed="true"] .i-pause { display: none; }
.win-ctl[aria-pressed="true"] .i-play { display: block; }
.win-dots { display: flex; flex-wrap: wrap; justify-content: center; }
.win-dot { display: grid; place-items: center; min-width: 24px; min-height: 26px; padding-inline: 4px; }
.win-dot > span { position: relative; display: block; width: 7px; height: 7px; overflow: hidden; border-radius: 999px; background: var(--dot-off); transition: width .5s var(--ease-out), background-color .25s var(--ease); }
.win-dot:hover > span { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.win-dot[aria-current="true"] > span { width: 30px; background: var(--dot-track); }
.win-dot > span > span { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: translateX(calc((var(--p, 0) - 1) * 100%)); }
.win-dot:not([aria-current="true"]) > span > span { transform: translateX(-100%); }
.win-dot:focus-visible { outline: none; }
.win-dot:focus-visible > span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- 1b · hero, split version (the default; ?hero=center shows the centred one) ----------
   The title, the line and the buttons on the left, the film on the right. The "&" opens the second line, so the two
   halves of the promise read as a pair: "iPhone shots sync" / "& GIFs export". Below 961px it stacks like the centred
   version. The centred version keeps the "&" at the end of the first line. */
.amp--lead { margin-right: .26em; }
:root:not([data-hero="split"]) .amp--lead, :root[data-hero="split"] .amp--end { display: none; }
/* with the "&" moved, the longest line is zh 8.32em (line 1), en 9.30em (line 1), each incl. the open slot */
:root[data-hero="split"] .hero-title { --fit: 8.6; }
:root[data-hero="split"]:lang(en) .hero-title { --fit: 9.6; }
@media (min-width: 961px) {
  :root[data-hero="split"] .hero {
    /* the film column: as wide as 42vw allows (the en buttons keep one row from ~1150px), but never so tall (4:5)
       that the film and its dots run under the fold (80px = the top gap, the dots row and a 16px margin); capped at
       640px so the column the title follows keeps it at ~67px at 1920, near the section headings' 70px. The title
       shrinks with its column (100cqi / --fit). */
    --film-w: clamp(360px, min(42vw, (100svh - var(--hdr) - 80px) * .8), 640px);
    display: grid; grid-template-columns: minmax(0, 1fr) var(--film-w); column-gap: clamp(40px, 4.4vw, 64px); align-items: center;
    width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
    padding-top: calc(var(--hdr) + clamp(16px, 1.7vw, 24px));
  }
  :root[data-hero="split"] .hero > .wrap { max-width: none; margin: 0; padding: 0; }
  :root[data-hero="split"] .hero-head { container-type: inline-size; align-items: flex-start; gap: 24px; text-align: left; padding-bottom: 40px; }
  /* the title follows the column, not the viewport */
  :root[data-hero="split"] .hero-title { align-items: flex-start; font-size: min(72px, 100cqi / var(--fit)); }
  :root[data-hero="split"] .hero-sub { max-width: 26em; text-wrap: pretty; }
  :root[data-hero="split"] .hero-ctas { justify-content: flex-start; margin-top: 8px; }
  :root[data-hero="split"] .hero-demo { margin-top: 0; }
  /* left-aligned buttons: the QR popover opens rightwards from the button's left edge (a centred one runs off the left
     edge when the iPhone button wraps under the download button, en at 961–1040); the anchor draws the arrow */
  :root[data-hero="split"] .qr-pop { left: 0; transform: none; animation-name: pop-in-end; }
  :root[data-hero="split"] .qr-pop::before { display: none; }
  :root[data-hero="split"] .qr-anchor:has(.qr-pop:not([hidden]))::after { content: ""; position: absolute; z-index: 31; top: calc(100% + 6px); left: 50%; width: 12px; height: 12px; background: var(--surface); transform: translateX(-50%) rotate(45deg); box-shadow: -1px -1px 0 var(--rule); border-radius: 2px 0 0 0; animation: fade .26s var(--ease-out); }
}

/* ---------- 2 + 3 · features ---------- */
.feat { padding: clamp(72px, 6.25vw, 120px) 0; }
/* The copy column never gets narrower than the longest forced-break heading line (zh 9.64em, en 10.18em of the h2), so
   961–1366 px keep two-line headings; from 1440 the 5 : 3 split is wider than that and nothing changes. */
.feat-grid { --copy-min: calc(9.75 * clamp(30px, 1rem + 2.15vw, 54px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(min(var(--copy-min), 100%), 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
:lang(en) .feat-grid { --copy-min: calc(10.45 * clamp(30px, 1rem + 2.15vw, 54px)); }
.feat--flip .feat-grid { grid-template-columns: minmax(min(var(--copy-min), 100%), 1fr) minmax(0, 1fr); }
.feat--flip .feat-media { order: 2; }
.shot { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 1600 / 1070; background: var(--surface-2); box-shadow: var(--shot-shadow); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--rule); pointer-events: none; }
.shot video { width: 100%; height: 100%; object-fit: cover; }
.feat-copy { display: flex; flex-direction: column; gap: 22px; max-width: max(520px, var(--copy-min)); }
.feat-copy .kicker + .h2 { margin-top: -10px; }
.desc { display: flex; flex-direction: column; }
.desc li { position: relative; box-shadow: inset 0 -1px 0 var(--rule); }
.desc-btn { width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 0; text-align: left; }
.desc-t { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--ink-2); transition: color .25s; }
.desc-d { font-family: var(--mono); font-size: 12.5px; line-height: 19px; color: var(--ink-3); }
.desc-btn:hover .desc-t, .desc li.is-on .desc-t { color: var(--ink); }
.desc-btn:focus-visible { outline-offset: 2px; }
.desc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.desc li.is-on .desc-bar { transform: scaleX(var(--p, 0)); }

/* ---------- 4 · install timeline ---------- */
.sec { padding: clamp(64px, 5vw, 72px) 0; }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.story { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 4.5vw, 72px); align-items: start; }
.story-steps { position: relative; padding-left: 28px; }
.story-rail { position: absolute; left: 5px; top: 14px; bottom: 14px; width: 1px; background: var(--rail); }
.story-rail i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .42s var(--ease-out); }
.step { position: relative; min-height: clamp(520px, 74vh, 744px); display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.story-rail + .step { justify-content: flex-start; padding-top: 8px; min-height: clamp(480px, 62vh, 624px); }
.step:last-child { min-height: clamp(440px, 56vh, 600px); }
#start { padding-bottom: clamp(16px, 1.5vw, 32px); }
.step-k { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); transition: color .3s; }
.step-dot { position: absolute; left: -28px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 5.5px; background: var(--ground); border: 1px solid var(--rule-2); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.step.is-on .step-dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 12%, transparent); }
.step-tag { font-weight: 400; letter-spacing: 0; font-family: var(--font); font-size: 12.5px; }
.step h3 { margin-top: 13px; font-size: clamp(20px, .9rem + .6vw, 26px); line-height: 1.15; font-weight: 560; letter-spacing: -.028em; color: var(--ink-3); transition: color .3s; }
.step.is-on .step-k, .step.is-on h3 { color: var(--ink); }
.step-act { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.checks, .nums { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; max-width: 520px; }
.checks li { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 23px; color: var(--ink-3); }
.checks .ic { margin-top: 4px; stroke-width: 1.1; }
.nums > li { display: grid; grid-template-columns: 25px minmax(0, 1fr); font-size: 14.5px; line-height: 23px; color: var(--ink-3); }
.nums > li::before { content: attr(data-n) "."; font-family: var(--mono); }
.nums > li.path-li { display: block; }
.nums > li.path-li::before { content: none; }
.step.is-on .checks li, .step.is-on .nums > li { color: var(--ink-2); }
.path-row { margin: 2px 0 2px 25px; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 25px); padding: 7px 7px 7px 12px; border-radius: 8px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--surface) 40%, transparent); }
.path-row code { min-width: 0; font: 400 13.5px/21px var(--font); color: var(--ink-2); overflow-wrap: anywhere; }
.copy-btn { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: var(--ink-3); transition: background-color .2s, color .2s; }
.copy-btn:hover { background: var(--surface-2); color: var(--ink); }
.copy-btn .ic { width: 22px; height: 22px; }
.copy-btn.is-done { color: var(--ink); }
.qr-row { margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 4px 14px 4px 4px; border-radius: 12px; transition: background-color .2s; }
.qr-row:hover { background: var(--surface-2); }
.qr-row img { width: 68px; height: 68px; border-radius: 8px; background: #fff; padding: 3px; box-shadow: 0 0 0 1px var(--rule); image-rendering: pixelated; }
.qr-row b { display: block; font-size: 17px; line-height: 23px; font-weight: 500; color: var(--ink); }
.qr-row small { display: block; font-size: 14.5px; line-height: 23px; color: var(--ink-3); }
.step-media { display: none; }

.story-stage { position: sticky; top: calc(50vh - var(--stage-h, 560px) / 2 + var(--hdr) / 2); aspect-ratio: 883 / 613;
  /* On a short window the stage shrinks so it always sits between the header and the bottom edge (24px air each side). */
  width: min(100%, calc((100vh - var(--hdr) - 48px) * 883 / 613)); justify-self: end; }
.screen { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .42s ease, transform .62s var(--ease-out), visibility 0s .62s; }
.screen.on { opacity: 1; visibility: visible; transform: none; transition: opacity .42s ease, transform .62s var(--ease-out), visibility 0s; }
.screen-img--win { width: 100%; height: auto; border-radius: clamp(12px, 1.2vw, 20px); box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 30px 60px -30px rgba(40, 30, 15, .28); }
.screen-img--menu { width: calc(100% + 6.5%); max-width: none; height: auto; }
.pair-slot { width: 100%; }

/* step 3: phone + plugin, lifted code fields; measurements are the Figma frame's, in % of its 883 × 613 box */
.pair { position: relative; width: 100%; aspect-ratio: 883 / 613; container-type: inline-size; }
.pair-phone { position: absolute; left: 0; top: 50%; width: 27.55%; aspect-ratio: 243.2 / 501.3; transform: translateY(-50%); padding: 2.95cqw 1.3cqw; border-radius: 4.17cqw; background: linear-gradient(145deg, #EDEAE2, #CFCBC1); box-shadow: inset 0 0 0 .2cqw #C3C3C3, inset 0 0 0 .4cqw #fff, 0 20px 40px -24px rgba(40, 30, 15, .4); }
.pair-phone::before { content: ""; position: absolute; inset: .27cqw; border-radius: 3.9cqw; background: #000100; }
.pair-phone__screen { position: absolute; inset: .81cqw; overflow: hidden; border-radius: 3.5cqw; background: #fff; }
.pair-phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.pair-phone__screen::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.pair-phone__island { position: absolute; left: 36.4%; top: 2.85%; width: 27.1%; height: auto; z-index: 2; }
.pair-code { position: absolute; z-index: 3; display: block; background-repeat: no-repeat; }
.pair-code--phone { left: -.05%; top: 43.85%; width: 27.8%; height: 8.64%; border-radius: 1.23cqw; background-image: url("media/figma/step3-pair-phone.webp"); background-size: 126.98% 1280.11%; background-position: 51.33% 47.41%; box-shadow: 0 0 1.23cqw .15cqw rgba(0, 0, 0, .25); }
.pair-link { position: absolute; left: 30.99%; top: 42.7%; width: 10.12%; height: auto; }
.pair-plugin { position: absolute; left: 44.55%; top: 0; width: 55.45%; height: 100%; overflow: hidden; border-radius: 1.85cqw; box-shadow: 0 1.28px 2.48px rgba(0, 0, 0, .25), 0 30px 60px -30px rgba(40, 30, 15, .3); }
.pair-plugin img { position: absolute; left: -.28%; top: -.39%; width: 101.59%; height: 101.66%; max-width: none; object-fit: fill; }
.pair-plugin::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.pair-blur { position: absolute; z-index: 2; -webkit-backdrop-filter: blur(1cqw); backdrop-filter: blur(1cqw); border-radius: 1cqw; }
.pair-blur--avatar { left: 92.74%; top: 10.13%; width: 6.56%; height: 9.24%; border-radius: 50%; }
.pair-blur--mail { left: 61.73%; top: 28.47%; width: 30.24%; height: 7.22%; }
/* the plugin's code field has its own 600px crop (the same x 494.7–715.9, y 486.7–566.4 of step3-plugin.webp): cut from
   the 792px screenshot it was drawn ~1.3× its pixels and went soft */
.pair-code--plugin { left: 77.28%; top: 48.29%; width: 20.31%; height: 10.54%; border-radius: 1.14cqw; background-image: url("media/figma/step3-pair-code-plugin.webp"); background-size: 100% 100%; background-color: #fff; box-shadow: 0 0 1.14cqw .14cqw rgba(0, 0, 0, .25); }

/* ---------- 5 · pricing ---------- */
.sec--pricing { padding-top: clamp(72px, 6vw, 112px); padding-bottom: clamp(88px, 8.3vw, 160px); }
.sec--pricing .sec-head { gap: 0; }
.sec--pricing .sec-head .kicker + .h2 { margin-top: 12px; }
.faq-side .kicker + .h2 { margin-top: -4px; }
.sec--pricing .h2 { margin-top: 22px; }
.sec-sub { margin-top: 22px; font-size: clamp(16px, .82rem + .38vw, 20px); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
/* Pricing: skills/bs-cadence-marketing-landing §8 (template.html .billing, .tiers[data-count="2"], .tier, .price, .bill-note,
   .price-foot, .compare-btn, .collapse, .cmp), on its own --cd-* aliases of the site tokens, in both themes. The one accent is the membership yellow. */
:root {
  --cd-surface: var(--surface-2);
  --cd-thumb: var(--surface);
  --cd-line: rgba(12, 12, 13, .09);
  --cd-line-2: rgba(12, 12, 13, .14);
  --cd-line-3: rgba(12, 12, 13, .24);
  --cd-text: var(--ink);
  --cd-text-2: var(--ink-2);
  --cd-text-3: var(--ink-3);
  --cd-tier: var(--surface);
  /* Paid plan, one recipe in both themes (glow · rim · gold top line · drop), only the fill changes with the ground:
     on paper the card is the page inverted (an ink card, after Craft's plans); on night it is not inverted, it sits one step
     above the free card (after Chronicle and Clerk), because a near-white card would glare on a dark page. */
  --cd-feat-fill: linear-gradient(var(--ink), var(--ink)); /* a layer above the rim, so a gradient: a bare colour may only be the last layer */
  --cd-feat-edge: var(--ink);
  --cd-feat-glow: rgba(255, 168, 0, .2);
  --cd-feat-rim-top: rgba(255, 168, 0, .62);
  --cd-feat-rim-low: rgba(255, 168, 0, .12);
  --cd-feat-hi: rgba(255, 199, 102, .3);
  --cd-feat-drop: 0 32px 64px -32px rgba(40, 30, 15, .55);
  --cd-feat-btn: var(--ground);
  --cd-feat-btn-text: var(--ink);
  --cd-feat-btn-hover: color-mix(in srgb, var(--ground) 86%, var(--ink));
  --cd-inset: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(40, 30, 15, .04);
  --cd-muted: var(--surface-2);
  --cd-muted-hi: var(--surface-3);
  --cd-muted-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  --cd-thumb-shadow: 0 1px 2px rgba(40, 30, 15, .12), 0 2px 6px rgba(40, 30, 15, .08);
  --cd-billing-inset: inset 0 1px 2px rgba(40, 30, 15, .08);
  --cd-cmp-bg: rgba(255, 255, 255, .6);
  --cd-cmp-head: #F8F7F4;
}
/* Dark: the site's warm night neutrals (tokens.css), not cadence's cool blue-greys, so the plans match the rest of the page. */
:root[data-theme="dark"] {
  --cd-surface: var(--surface-2);
  --cd-thumb: var(--surface-3);
  --cd-line: rgba(243, 242, 239, .075);
  --cd-line-2: rgba(243, 242, 239, .12);
  --cd-line-3: rgba(243, 242, 239, .2);
  --cd-tier: var(--surface);
  --cd-feat-fill: linear-gradient(180deg, #24211C, #1A1918 58%, var(--surface));
  --cd-feat-edge: var(--ground);
  --cd-feat-glow: rgba(255, 168, 0, .16);
  --cd-feat-rim-top: rgba(255, 168, 0, .78);
  --cd-feat-rim-low: rgba(255, 168, 0, .18);
  --cd-feat-hi: rgba(255, 214, 140, .22);
  --cd-feat-drop: 0 36px 80px -34px rgba(0, 0, 0, .95), 0 24px 64px -40px rgba(255, 168, 0, .22);
  --cd-feat-btn: var(--ink);
  --cd-feat-btn-text: var(--ground);
  --cd-feat-btn-hover: color-mix(in srgb, var(--ink) 84%, var(--ground));
  --cd-inset: inset 0 1px 0 rgba(255, 255, 255, .055), inset 2px 4px 16px rgba(248, 248, 248, .025);
  --cd-muted: var(--surface-2);
  --cd-muted-hi: var(--surface-3);
  --cd-muted-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .4);
  --cd-thumb-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .4);
  --cd-billing-inset: inset 0 1px 2px rgba(0, 0, 0, .4);
  --cd-cmp-bg: rgba(18, 18, 20, .6);
  --cd-cmp-head: #141416;
}
/* The billing switch, the plan buttons and the compare toggle use the hero's buttons (.pill): ink pills for the choice and
   the actions (black on paper, light on night), the soft grey pill for the rest, all fully rounded, on the page tokens. */
.billing { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 32px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.billing.is-buyout { display: none; }
.billing button { position: relative; z-index: 2; display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; transition: color .2s var(--ease); }
.billing button[aria-checked="true"] { color: var(--ground); }
.billing .save { height: 20px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12.5px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
/* on the ink thumb the saving tag takes the other theme's yellow so it keeps its contrast */
.billing button[aria-checked="true"] .save { background: rgba(255, 168, 0, .18); color: #FFC766; border-color: rgba(255, 168, 0, .42); }
:root[data-theme="dark"] .billing button[aria-checked="true"] .save { background: rgba(255, 168, 0, .16); color: #835200; border-color: rgba(214, 140, 0, .5); }
.billing-thumb { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform 380ms var(--ease-out); }
.billing[data-bill="yearly"] .billing-thumb { transform: translateX(100%); }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.tiers[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.tier { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px; border-radius: 18px; background: var(--cd-tier); border: 1px solid var(--cd-line); box-shadow: var(--cd-inset); color: var(--cd-text); }
.tier.feat { border-color: transparent; box-shadow: inset 0 1px 0 var(--cd-feat-hi), var(--cd-feat-drop);
  background: radial-gradient(80% 50% at 50% 0%, var(--cd-feat-glow), transparent 72%) padding-box, var(--cd-feat-fill) padding-box,
    linear-gradient(180deg, var(--cd-feat-rim-top), var(--cd-feat-rim-low) 46%, var(--cd-feat-rim-low)) border-box, var(--cd-feat-edge) border-box; }
/* the ink card on paper reads in the night palette (the light theme's own --ink stays the card fill) */
:root:not([data-theme="dark"]) .tier.feat { --cd-text: #F3F2EF; --cd-text-2: #B6B4AE; --cd-text-3: #96948E; --cd-line: rgba(243, 242, 239, .1); --accent-text: #FFC766; }
.tier.feat .btn-primary { background: var(--cd-feat-btn); color: var(--cd-feat-btn-text); }
@media (hover: hover) and (pointer: fine) { .tier.feat .btn-primary:hover { background: var(--cd-feat-btn-hover); } }
/* card rhythm (both cards share it, so their buttons and lists line up): name 26 · 12 · price 40 · 24 · button · 24 · rule · 20 · list.
   The price is the one large figure; the plan name is a 16px label and the badge 13.5px, so the two read as a pair. */
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.tier h3 { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; color: var(--cd-text); }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; background: var(--accent); color: var(--accent-ink); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 12px; min-height: 40px; }
.price-num { display: inline-block; font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--cd-text); font-variant-numeric: tabular-nums; }
.price-num.swap { animation: swap 420ms var(--ease-out); }
@keyframes swap { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.price-per, .price-was { font-size: 14.5px; line-height: 20px; color: var(--cd-text-3); }
.tier .btn { margin-top: 24px; width: 100%; }
.tier ul { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cd-line); }
.tier li { display: flex; gap: 10px; font-size: 14.5px; line-height: 22px; color: var(--cd-text-2); }
.tier li .ic { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent-text); stroke-width: 1.4; }
.tier:not(.feat) li .ic { color: var(--cd-text-3); }
.btn { --h: 50px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 24px; border-radius: 999px; font-size: 16px; line-height: 1; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; user-select: none; transition: background-color .2s var(--ease), color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 16px; height: 16px; }
/* one ink pill per screen (DESIGN.md): the membership card carries it; the free download is the soft grey pill */
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
/* on night the card is --surface, one step from --surface-2: the soft pill moves a step up so it still reads as a button */
:root[data-theme="dark"] .btn-soft { background: var(--surface-3); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--ground)); }
  .btn-soft:hover { background: var(--surface-3); }
  :root[data-theme="dark"] .btn-soft:hover { background: color-mix(in srgb, var(--surface-3) 86%, var(--ink)); }
}
.tier .meteor { position: absolute; top: -1px; left: 0; z-index: 3; width: 2px; height: 2px; border-radius: 999px; background: #FFE2A6; opacity: 0; animation: meteor var(--mdur, 5s) linear infinite; animation-delay: var(--mdel, 0s); }
.tier .meteor::before { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: var(--mw, 120px); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 168, 0, .3), var(--accent)); }
@keyframes meteor { 0% { left: 6%; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { left: 94%; opacity: 0; } }
.price-foot { display: flex; justify-content: center; max-width: 760px; margin: 24px auto 0; }
.compare-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; color: var(--ink); background: var(--surface-2); font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.compare-btn:active { transform: scale(.98); }
.compare-btn .ic { transition: transform 260ms var(--ease-out); }
.compare-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
@media (hover: hover) { .compare-btn:hover, .compare-btn[aria-expanded="true"] { background: var(--surface-3); } }
.collapse { display: grid; grid-template-rows: 0fr; max-width: 760px; margin-inline: auto; transition: grid-template-rows 480ms var(--ease-out); }
.collapse.open { grid-template-rows: 1fr; }
.collapse > div { position: relative; overflow: hidden; min-height: 0; }
.collapse:not(.open) > div { visibility: hidden; transition: visibility 0s 480ms; }
.cmp-wrap { position: relative; margin-top: 20px; border-radius: 18px; border: 1px solid var(--cd-line); overflow-x: auto; background: var(--cd-cmp-bg); }
.cmp { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--cd-line); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { position: sticky; top: 0; background: var(--cd-cmp-head); font-weight: 500; color: var(--cd-text); }
.cmp tbody th { font-weight: 450; color: var(--cd-text-2); }
.cmp td { color: var(--cd-text-2); text-align: center; }
.cmp thead th:not(:first-child) { text-align: center; }
.cmp .grp th { padding-top: 24px; font: 400 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cd-text-3); border-bottom: 1px solid var(--cd-line-2); }
.cmp td.is-feat { color: var(--cd-text); font-weight: 500; }

/* ---------- 6 · FAQ ---------- */
.sec--faq { padding-top: clamp(24px, 2vw, 40px); padding-bottom: clamp(88px, 7vw, 136px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq-side { display: flex; flex-direction: column; gap: 16px; }
.faq-ask { font-size: 15px; line-height: 24px; color: var(--ink-2); }
.faq details { box-shadow: inset 0 -1px 0 var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1rem + .2vw, 19px); line-height: 1.38; font-weight: 500; letter-spacing: -.012em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; color: var(--ink-2); background: linear-gradient(currentColor, currentColor) 50% / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 50% / 1.5px 14px no-repeat; transition: transform .45s var(--ease-out), color .2s; }
.faq summary:hover::after { color: var(--ink); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details > div { max-width: 70ch; padding: 0 0 26px; font-size: 17px; line-height: 28px; color: var(--ink-2); }
.faq details[open] > div { animation: faq-in .5s var(--ease-out); }
.faq details a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- footer ---------- */
.foot { padding: clamp(24px, 3vw, 48px) 0 clamp(72px, 6vw, 120px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-tag { max-width: 276px; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.foot-copy { padding-top: 6px; font: 400 12.5px/20px var(--mono); color: var(--ink-3); }
.foot-col h2 { margin-bottom: 14px; font: 400 12.5px/20px var(--mono); color: var(--ink-3); }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col li a { display: inline-block; padding: 3.5px 0 2.5px; font-size: 15px; line-height: 22px; color: var(--ink-2); transition: color .2s; }
.foot-col li a:hover { color: var(--ink); }
.foot-col li .foot-link { display: inline-block; padding: 3.5px 0 2.5px; font-size: 15px; line-height: 22px; color: var(--ink-2); text-align: left; transition: color .2s; }
.foot-col li .foot-link:hover { color: var(--ink); }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 12, 13, .5); animation: fade .25s; }
.xhs { position: relative; width: min(360px, 86vw); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--pop-shadow); animation: pop-up .3s var(--ease-out); }
.xhs img { width: 100%; height: auto; }
.xhs__close { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .85); color: #0C0C0D; }
.xhs__close:hover { background: #fff; color: #0C0C0D; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop-up { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 14px; line-height: 20px; box-shadow: var(--pop-shadow); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .3s var(--ease), transform .42s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
/* Chinese breaks at phrases and punctuation, not between any two characters, once a heading or lede has to wrap
   (at 1440+ nothing wraps, so nothing changes there). */
:lang(zh) :is(.hero-sub, .h2, .h1-like, .sec-sub, .lede) { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .hdr-contact { display: none; }
  /* five footer columns get too narrow for the links and the three round buttons: brand on top, four columns below */
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr-in { grid-template-columns: minmax(0, 1fr) auto; }
  .feat-grid, .feat--flip .feat-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feat--flip .feat-media { order: 0; }
  /* the recordings are 1600px wide: past 800px (881–960 here) a 2× screen would stretch them */
  .feat-media { max-width: 800px; }
  .feat-copy { max-width: 640px; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-stage, .story-rail, .step-dot { display: none; }
  /* stacked steps read as one centred column under the centred heading, so the pictures never outgrow the text */
  .story-steps { padding-left: 0; width: 100%; max-width: 680px; margin-inline: auto; }
  .step, .story-rail + .step, .step:last-child { min-height: 0; justify-content: flex-start; padding: 0 0 48px; }
  .step:last-child { padding-bottom: 0; }
  .step + .step { padding-top: 40px; border-top: 1px solid var(--rule); }
  .step .step-k, .step h3 { color: var(--ink); }
  .step .checks li, .step .nums > li { color: var(--ink-2); }
  .step-media { display: block; margin-top: 28px; }
  /* direct children only: the step-3 composite (.pair) sizes its own images */
  .step-media > img { width: 100%; height: auto; }
  .step-media .screen-img--win, .step-media img[data-step-img="0"] { border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 24px 48px -28px rgba(40, 30, 15, .3); }
  .step-media img[data-step-img="1"] { width: calc(100% + 6.5%); max-width: none; margin-left: -3.25%; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* touch: every control at least 40px tall, the visible sizes stay the same where a larger box would show */
  .hdr .brand, .foot .brand { min-height: 40px; }
  .icon-btn { width: 40px; height: 40px; }
  .pill--sm { min-height: 40px; }
  .slot-btn::after, .copy-btn::after { content: ""; position: absolute; inset: -8px; }
  .copy-btn { position: relative; }
  .copy-btn::after { inset: -5px; }
  .win-bar { margin-top: 7px; }
  .win-dot { min-width: 32px; min-height: 40px; padding-inline: 1px; }
  .billing button { height: 44px; }
  .faq-ask .tlink { padding-block: 8px; margin-block: -8px; }
  .foot-col ul { gap: 2px; }
  .foot-col li a, .foot-col li .foot-link { min-width: 40px; padding: 9px 0; }
}
@media (max-width: 760px) {
  .tiers[data-count="2"] { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 601px) and (max-width: 760px) {
  /* The iPhone button sits right of centre here, so a centred 360px popover runs off the right edge (en): open it
     leftwards from the button's right edge and let the anchor draw the arrow, still at the button's centre. */
  .qr-pop { left: auto; right: 0; transform: none; animation-name: pop-in-end; }
  .qr-pop::before { display: none; }
  .qr-anchor:has(.qr-pop:not([hidden]))::after { content: ""; position: absolute; z-index: 31; top: calc(100% + 6px); left: 50%; width: 12px; height: 12px; background: var(--surface); transform: translateX(-50%) rotate(45deg); box-shadow: -1px -1px 0 var(--rule); border-radius: 2px 0 0 0; animation: fade .26s var(--ease-out); }
}
@keyframes pop-in-end { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (max-width: 600px) {
  .hdr-act [data-lang-toggle], .hdr-act .theme-btn { display: none; }
  .hero-ctas { width: min(100%, 380px); flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .pill, .qr-anchor, .qr-anchor .pill { width: 100%; }
  .shot { border-radius: 12px; }
  /* billing toggle: two equal halves so the 50% thumb always covers the chosen one (at 320 "Yearly + Save 20%" was
     wider than half and pushed the thumb off its button) */
  .billing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .billing button { padding: 0 10px; gap: 6px; }
  .tier { padding: 24px; }
  /* a long plan button ("Install, then upgrade in the plugin") wraps instead of running out of a 280px card */
  .tier .btn { height: auto; min-height: var(--h); padding-block: 10px; white-space: normal; text-align: center; line-height: 1.25; }
  /* the comparison table fits the phone instead of hiding the Premium column behind a sideways scroll */
  .cmp { min-width: 0; font-size: 13.5px; }
  .cmp th, .cmp td { padding: 12px 8px; }
  .cmp th:first-child, .cmp td:first-child { padding-left: 14px; }
}
/* the head is taller on phones (two stacked buttons); on a short phone the kicker line goes, so the film keeps its share */
@media (max-width: 600px) { .hero { --ctas-h: 110px; } }
@media (max-width: 600px) and (max-height: 700px) { .hero { --kick-h: 0px; } .hero-head .kicker { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===================================================================================================================
   labelled chapter tabs in the hero, and a progress switcher under
   each feature recording, after screen.studio (its Zoom / Editing / Clarity tabs and its "Layouts in this video" strip).
   Built from this page's own parts: the pill buttons, the billing switch's ink thumb, the surface greys.
   =================================================================================================================== */
/* hero: the tabs (and the pause button) sit between the buttons and the film; the film's fit counts their row (48 + 12) */
.hero { --head-h: calc(var(--hdr) + var(--pad) + var(--kick-h) + var(--title-fs) * 2.16 + var(--gap) + var(--ctas-h) + 14px + 60px); }
.film-bar { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 12px; }
.film-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.film-tabs .win-dot { position: relative; display: inline-flex; align-items: center; min-width: 0; min-height: 0; height: 40px; padding: 0 20px;
  overflow: hidden; border-radius: 999px; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease); }
.film-tabs .win-dot:hover { color: var(--ink); }
.film-tabs .win-dot[aria-current="true"] { background: var(--ink); color: var(--ground); }
/* the chapter's progress: a light sweep inside the selected pill */
.film-tabs .win-dot > .ft-p { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; background: color-mix(in srgb, var(--ground) 18%, transparent);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: none; opacity: 0; }
.film-tabs .win-dot[aria-current="true"] > .ft-p { opacity: 1; }
.film-tabs .win-dot > .ft-l { position: relative; }
.film-tabs .win-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.film-bar .win-ctl { position: static; flex: none; width: 48px; height: 48px; margin: 0; background: var(--surface-2); }
.film-bar .win-ctl:hover { background: var(--surface-3); }

/* features: under the recording, what plays now and its time, one card per feature and a playhead across them */
.seg { margin-top: 20px; }
.seg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.seg-k { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.seg-t { margin-top: 2px; font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.seg-time { font-size: 15px; line-height: 26px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.seg-time span { color: var(--ink-3); }
.seg-row { position: relative; display: flex; gap: 8px; }
.seg-card { flex: 1 1 0; min-width: 0; height: 64px; padding: 0 14px; display: flex; align-items: center; border-radius: 14px; background: var(--surface-2);
  color: var(--ink-2); font-size: 14px; line-height: 18px; font-weight: 500; text-align: left;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.seg-card > span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.seg-card:hover { background: var(--surface-3); color: var(--ink); }
.seg-card.is-on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.seg-ph { position: absolute; left: 0; top: -8px; bottom: -6px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); pointer-events: none;
  transition: transform .26s linear; }
.seg-ph::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.feat-copy .seg-d { min-height: 3em; }
@media (max-width: 600px) {
  .film-tabs .win-dot { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .film-bar .win-ctl { width: 46px; height: 46px; }
  .seg-t { font-size: 17px; line-height: 22px; }
  .seg-card { height: 56px; padding: 0 10px; font-size: 12.5px; line-height: 16px; border-radius: 12px; }
  .seg-row { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .seg-ph { transition: none; } }
.film-tabs .win-dot > .ft-l { display: inline; width: auto; height: auto; overflow: visible; border-radius: 0; background: none; transition: none; }
/* a short stretch (the last one runs ~4 s) still gets a card wide enough for its name */
.seg-card { min-width: 96px; }
@media (max-width: 600px) { .seg-card { min-width: 58px; } }
.seg-card { min-width: 108px; padding: 0 12px; }
:lang(zh) .seg-card > span { word-break: keep-all; }
@media (max-width: 600px) { .seg-card { min-width: 64px; padding: 0 8px; } }
@media (max-width: 600px) { :lang(zh) .seg-card > span { word-break: normal; } }

/* ---------- v2, round 2 ---------- */
/* hero: the chapter tabs float on the film, small and translucent (glass), so they read as the film's own control and not
   as a third call to action next to the two buttons; the pause button floats at the film's top right. The film's fit no
   longer counts a row for them. */
.hero { --head-h: calc(var(--hdr) + var(--pad) + var(--kick-h) + var(--title-fs) * 2.16 + var(--gap) + var(--ctas-h) + 14px); }
.hero-demo { position: relative; }
.film-bar { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: 14px; margin: 0; pointer-events: none; }
.film-bar > * { pointer-events: auto; }
.film-tabs { gap: 0; padding: 3px; background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 0 0 1px var(--rule), 0 6px 18px -8px rgba(40, 30, 15, .28); }
.film-tabs .win-dot { height: 30px; padding: 0 14px; font-size: 13px; color: var(--ink-2); }
.film-tabs .win-dot[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.film-tabs .win-dot > .ft-p { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.film-bar .win-ctl { position: absolute; right: 0; top: 0; width: 36px; height: 36px; background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 0 0 1px var(--rule); }
.film-bar .win-ctl:hover { background: var(--surface); }
:root[data-theme="dark"] .film-tabs, :root[data-theme="dark"] .film-bar .win-ctl { background: color-mix(in srgb, var(--surface-3) 70%, transparent); box-shadow: 0 0 0 1px var(--rule), 0 6px 18px -8px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .film-tabs .win-dot[aria-current="true"] { background: color-mix(in srgb, var(--ink) 16%, var(--surface-3)); }
@media (max-width: 600px) {
  .film-bar { top: 10px; }
  .film-tabs .win-dot { height: 28px; padding: 0 10px; font-size: 12px; }
  .film-bar .win-ctl { width: 34px; height: 34px; }
}

/* features: one column like screen.studio's sections, but with this page's own heading (icon line, title, then the line
   for what plays now); the recording under it, centred and wider; the switcher under the recording */
section.feat .feat-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(28px, 3vw, 40px); }
section.feat .feat-copy, section.feat.feat--flip .feat-copy { order: 0; align-items: center; text-align: center; max-width: 760px; gap: 18px; }
section.feat .feat-media, section.feat.feat--flip .feat-media { order: 1; width: 100%; max-width: 920px; }
section.feat .feat-copy .kicker { justify-content: center; }
section.feat .feat-copy .kicker + .h2 { margin-top: -6px; }
section.feat .seg-d { min-height: 0; max-width: 34em; text-wrap: balance; }
.seg-head { display: none; }
.seg { margin-top: 18px; }
/* the film has no visible edge, so the pause button sits with the tabs instead of in a corner nobody can see */
.film-bar .win-ctl { position: static; }

/* ---------- v2, round 3 ---------- */
/* the hero is split (the split layout: title left, the 4:5 cut right). The film column sets the film's size there,
   so the stacked layout's fit-to-height cap does not apply; the floating tabs span the film column itself. */
@media (min-width: 961px) {
  :root[data-hero="split"] .hero-demo:has(.win) { max-width: none; margin-top: 0; }
  :root[data-hero="split"] .film-bar { left: 0; right: 0; }
}
/* the switcher's head again: what plays now, its line under it, the time on the right */
.seg-head { display: flex; align-items: flex-start; }
.seg-head > div { min-width: 0; text-align: left; }
.seg-head .seg-d { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 600px) { .seg-head .seg-d { font-size: 14px; line-height: 20px; } }

/* ---------- v2, round 4 ---------- */
/* split hero: the tabs (and pause) stand above the film as their own row, apart from it; the film column gives up their
   46 px of height so the film still fits the first screen */
@media (min-width: 961px) {
  :root[data-hero="split"] .hero { --film-w: clamp(360px, min(42vw, (100svh - var(--hdr) - 126px) * .8), 640px); }
  :root[data-hero="split"] .film-bar { position: static; margin: 0 0 14px; }
}
/* the switcher discloses progressively: every card shows its name; the playing one opens wider and its line appears under
   the name; the head above the cards is gone */
.seg { margin-top: 16px; }
.seg-card { height: 84px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 16px;
  transition: flex-grow .5s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.seg-row { --grow: 2.6; }
.seg-card.is-on { flex-grow: var(--grow); }
.seg-card .sc-t { font-size: 14.5px; line-height: 19px; font-weight: 500; }
.seg-card .sc-d { max-height: 0; opacity: 0; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-2);
  transition: opacity .3s var(--ease), max-height .45s var(--ease); }
.seg-card.is-on .sc-t { -webkit-line-clamp: 1; }
.seg-card.is-on .sc-d { max-height: 36px; opacity: 1; transition-delay: .12s; }
@media (max-width: 600px) {
  .seg-card { height: 92px; padding: 0 10px; }
  .seg-card .sc-t { font-size: 12.5px; line-height: 16px; }
  .seg-card .sc-d { font-size: 12px; line-height: 16px; }
  .seg-card.is-on .sc-d { max-height: 48px; -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) { .seg-card, .seg-card .sc-d { transition: none; } }
/* the playhead stays above the cards (a dot on a short stem) so it never runs through the words; the playing card shows
   its own progress as a thin line at its foot */
.seg-ph { top: -12px; bottom: auto; height: 12px; }
.seg-card { position: relative; }
.seg-card.is-on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 9px; height: 2px; border-radius: 1px;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / calc(var(--p, 0) * 100%) 100% no-repeat, var(--rule); }
@media (max-width: 600px) { .seg-card.is-on::after { left: 10px; right: 10px; bottom: 7px; } }
/* phones: a closed card is narrow, so its name may take a third line rather than be cut off */
@media (max-width: 600px) { .seg-card:not(.is-on) .sc-t { -webkit-line-clamp: 3; } }

/* ---------- v2, round 5 ---------- */
/* the strip scrubs: drag anywhere on it (vertical swipes still scroll the page on phones), or grab the playhead */
.seg-row { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.seg-ph { z-index: 2; pointer-events: auto; cursor: grab; }
.seg-ph::after { content: ""; position: absolute; left: -12px; right: -12px; top: -10px; bottom: -4px; }
.seg-ph { transition: none; }                             /* drawn frame by frame by app.js */
.seg-row.is-scrub, .seg-row.is-scrub * { cursor: grabbing; }
.seg-row.is-scrub .seg-card { transition: none; }
/* the open card's progress line is taller to aim at, and reads as draggable */
.seg-card.is-on { cursor: ew-resize; }
.seg-card.is-on::after { height: 3px; border-radius: 2px; }

/* ---------- v2, round 6 ---------- */
/* while scrubbing the cards hold their widths, so the playing one may be a narrow one: it shows its name alone, and its line
   comes back as it opens on release */
.seg-row.is-scrub .seg-card .sc-d { max-height: 0; opacity: 0; transition-delay: 0s; }
.seg-row.is-scrub .seg-card.is-on .sc-t { -webkit-line-clamp: 2; }
@media (max-width: 600px) { .seg-row.is-scrub .seg-card.is-on .sc-t { -webkit-line-clamp: 3; } }
/* phones: a closed card is narrow, every px of its width goes to the name */
@media (max-width: 600px) { .seg-card { padding: 0 8px; } .seg-card.is-on::after { left: 8px; right: 8px; } }

/* ---------- v2, round 7 ---------- */
/* split hero: a slightly smaller title and a tighter column gap give the film column more of the 1120px grid; the film may
   be up to 50vw / 660px, and its height reserve is trimmed so the fold lets it grow at laptop sizes too */
:root[data-hero="split"] .hero-title { --fit: 9.1; }
:root[data-hero="split"]:lang(en) .hero-title { --fit: 10.1; }
@media (min-width: 961px) {
  :root[data-hero="split"] .hero {
    --film-w: clamp(360px, min(50vw, (100svh - var(--hdr) - 100px) * .8), 680px);
    column-gap: clamp(32px, 3.4vw, 48px);
  }
}
/* the feature recordings span the same 1120px grid as every other section (they were capped at 920px and centred) */
section.feat .feat-media, section.feat.feat--flip .feat-media { max-width: none; }

/* ---------- v2, round 8 ---------- */
/* the hero film has no pause button; each feature recording has one, bottom-right on the recording */
.shot-ctl { position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--rule), 0 4px 14px rgba(0,0,0,.12); opacity: .0; transition: opacity .25s var(--ease), background-color .2s var(--ease); }
.shot-ctl::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.shot:hover .shot-ctl, .shot-ctl:focus-visible, .shot-ctl[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .shot-ctl { opacity: 1; } }
.shot-ctl:hover { background: var(--surface); }
.shot-ctl .i-play, .shot-ctl[aria-pressed="true"] .i-pause { display: none; }
.shot-ctl[aria-pressed="true"] .i-play { display: block; }
:root[data-theme="dark"] .shot-ctl { background: color-mix(in srgb, var(--surface-3) 78%, transparent); }

/* ---------- v2, round 9 ---------- */
/* title smaller again, film larger again: the height reserve under the film is trimmed (the frame's lower edge is empty
   canvas, so it may touch the fold), and the title keeps a 44px (en 42px) floor so it never drops under the section headings */
:root[data-hero="split"] .hero-title { --fit: 10; }
:root[data-hero="split"]:lang(en) .hero-title { --fit: 11; }
@media (min-width: 961px) {
  :root[data-hero="split"] .hero-title { font-size: max(44px, min(72px, 100cqi / var(--fit))); }
  :root[data-hero="split"]:lang(en) .hero-title { font-size: max(42px, min(72px, 100cqi / var(--fit))); }
  :root[data-hero="split"] .hero { --film-w: clamp(360px, min(52vw, (100svh - var(--hdr) - 56px) * .8), 680px); }
}

/* ---------- v2, round 10 ---------- */
/* tiny phones: the playing card opens wider so its line still fits the same number of lines as on a larger phone */
@media (max-width: 380px) {
  .seg-row { --grow: 3.2; gap: 5px; }
  .seg-card { min-width: 46px; padding: 0 6px; }
  .seg-card.is-on::after { left: 6px; right: 6px; }
  .seg-card .sc-t { font-size: 12px; line-height: 15px; }
}

/* iPhone App entries stay out of a production build until iOS distribution is open */
[data-ios-release-gated][hidden] { display: none !important; }

/* ---------- hero film, cut 18 ---------- */
/* the chapter tabs stand above the film at every width, as on the split layout: floating on the film they covered the
   top of the frame on phones (the phone's island, the first bubble). The film's fit-to-height counts their row (~40 px). */
.film-bar { position: static; margin: 0 0 10px; }
.hero { --head-h: calc(var(--hdr) + var(--pad) + var(--kick-h) + var(--title-fs) * 2.16 + var(--gap) + var(--ctas-h) + 14px + 40px); }

/* ---------- feature demos: 16:9 on the page grid (after screen.studio's "Nothing stays too small to read") ---------- */
/* screen.studio frames each demo 16:9 at the full content width of the page at every viewport (1260 / 1120 / 896px at
   1440 / 1280 / 1024) and does not shrink it to the screen height. Here the frame likewise spans the 1120px grid
   (--wrap, inside --gutter) like every other section; at 16:9 that is 630px high, so at 1440x900 the recording and its
   switcher still fit under the header. The recordings are 3:2 (1600 x 1056-1108): the crop sits low (92%) so the
   burned-in captions and the editor's timeline stay; what goes is the top strip (window title bar, rulers).
   Replacement recordings should be cut 16:9. */
section.feat .shot { aspect-ratio: 16 / 9; }
section.feat .shot video { object-position: 50% 92%; }

/* ---------- v2, round 10 ---------- */
/* one line saying what the recording is showing right now: drawn by the page (always sharp, same place in every clip), top-centre so it
   never sits on the phone (bottom-left), the timeline or the buttons at the bottom of the recording */
.shot-cap { position: absolute; z-index: 1; left: 0; right: 0; top: clamp(8px, 2.2%, 16px); display: flex; justify-content: center; pointer-events: none; }
.shot-cap span { display: inline-flex; align-items: center; gap: 9px; max-width: calc(100% - 24px); padding: 8px 16px 8px 13px; border-radius: 999px; white-space: nowrap;
  font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: .01em; color: #fff; background: rgba(20, 20, 24, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 8px 24px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(-6px); transition: opacity .28s var(--ease), transform .28s var(--ease); }
.shot-cap span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #2f8cff; }
.shot-cap.is-on span { opacity: 1; transform: none; }
@media (max-width: 640px) { .shot-cap span { font-size: 12px; padding: 5px 11px 5px 9px; gap: 6px; } .shot-cap span::before { width: 5px; height: 5px; } }
@media (prefers-reduced-motion: reduce) { .shot-cap span { transition: none; } }
