/* Frame Coach home page, v3 (titanium icon, mannequin camera).
   Dark, photo-led single look. The white figure is the recurring signature;
   green appears only where the app shows "ready". */

@font-face {
  font-family: "Funnel Display";
  src: url("/assets/fonts/funnel-display.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("/assets/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("/assets/fonts/atkinson-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("/assets/fonts/atkinson-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("/assets/fonts/atkinson-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #07080a;
  --ink-2: #0f1114;
  --ink-3: #171a1e;
  --line: #262a30;
  --fg: #f3f4f6;
  --fg-2: #b6bcc5;
  --fg-3: #7d848e;
  --ti-hi: #f4f6f8;
  --ti-mid: #a3aab3;
  --ti-lo: #50565e;
  --ready: #3ddc84;
  --ready-deep: #1d5a35;
  --display: "Funnel Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4.2vw, 56px);
  --page: 1280px;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  background: var(--ink);
  color: var(--fg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--fg); font: 400 18px/1.55 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ready); outline-offset: 4px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(40px, 6.4vw, 84px); line-height: 0.95; }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.kicker { font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--fg-2); max-width: 40ch; }
.ti {
  background: linear-gradient(100deg, var(--ti-hi) 0%, var(--ti-mid) 30%, var(--ti-hi) 48%, var(--ti-lo) 74%, var(--ti-mid) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
h1 .ti, h2 .ti { display: inline-block; }
.section { padding-block: clamp(88px, 11vw, 168px); }
.section-head { display: grid; gap: 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 8, 10, 0.72); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 19px var(--display); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--fg-2); }
.site-nav a { transition: color 0.2s; }
.site-nav a:hover { color: var(--fg); }
.header-cta img { width: 120px; height: 40px; }
@media (max-width: 820px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px); }
.hero-glow { position: absolute; z-index: -1; inset: -10% -20% -10% 30%; opacity: 0.55; pointer-events: none; }
.hero-glow img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.5); transform: scale(1.2); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(120% 90% at 18% 40%, var(--ink) 30%, rgba(7, 8, 10, 0.6) 62%, rgba(7, 8, 10, 0.2)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
.hero h1 { margin-top: 24px; font-size: clamp(46px, 6.9vw, 100px); line-height: 0.9; letter-spacing: -0.035em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lede { margin-top: 30px; }
.cta-row { display: flex; align-items: center; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.app-store-cta { display: inline-block; border-radius: 12px; transition: transform 0.25s var(--ease); }
.app-store-cta:hover { transform: translateY(-2px); }
.app-store-cta img { width: 180px; height: 60px; }
.qr { display: none; align-items: center; gap: 14px; font: 500 13px/1.4 var(--mono); color: var(--fg-3); }
.qr img { width: 76px; height: 76px; border-radius: 10px; border: 5px solid #fff; background: #fff; }
@media (min-width: 1024px) and (hover: hover) { .qr { display: flex; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font: 500 14px var(--mono); color: var(--fg-2); }
.facts li { display: inline-flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ready); box-shadow: 0 0 10px var(--ready); }
@media (max-width: 520px) { .hero h1 { font-size: min(46px, 13.4vw); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-phone { justify-self: center; }
  .hero-glow { inset: 30% -30% -10% -30%; }
}

/* Phone and camera screen (mirrors the app's camera UI) */
.hero-phone { position: relative; }
.phone {
  position: relative; width: min(372px, 84vw); max-width: 100%; aspect-ratio: 9 / 19.5; border-radius: 58px; padding: 12px;
  background: linear-gradient(140deg, #e3e6ea 0%, #6c727b 18%, #f2f4f6 38%, #545a62 60%, #c7ccd2 82%, #7a8089 100%);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 0 2px #1a1c1f;
}
.phone::before { content: ""; position: absolute; right: -3px; top: 26%; width: 4px; height: 13%; border-radius: 0 3px 3px 0; background: linear-gradient(#9aa0a8, #5a6068); }
.screen { position: absolute; inset: 12px; border-radius: 47px; overflow: hidden; background: #000; }
.island { position: absolute; z-index: 9; top: 12px; left: 50%; width: 32%; height: 28px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.cam-top { position: absolute; top: 8.2%; left: 7%; right: 7%; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.cam-top svg { width: 17px; height: 17px; }
.cam-top span { display: flex; gap: 18px; }
.vf { position: absolute; left: 4%; right: 4%; top: 13.5%; height: 52%; border-radius: 8px; overflow: hidden; background: #111; }
.vf-shot { position: absolute; inset: 0; transform-origin: 50% 45%; }
.vf-shot img, .vf-figure { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vf-figure { opacity: 0.55; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)); }
.vf-ring { position: absolute; inset: 0; border-radius: 8px; border: 3px solid transparent; }
.vf-ring::before { content: ""; position: absolute; inset: -3px; border-radius: 8px; padding: 3px; background: linear-gradient(160deg, #f1d36a, #3ddc84 45%, #3fd0e0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; }
.vf-ring::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 26px rgba(61, 220, 132, 0.55); opacity: 0; }
.vf-card { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 11px; background: rgba(28, 30, 33, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 12px/1.2 var(--body); color: #fff; }
.vf-card img { width: 24px; height: 32px; border-radius: 5px; object-fit: cover; background: #2a2d31; }
.vf-card b { margin-left: auto; color: var(--ready); font-weight: 600; }
.cam-hint { position: absolute; left: 4%; right: 4%; top: 67.4%; height: 7.2%; }
.hint { position: absolute; inset: 0; display: flex; align-items: center; gap: 9px; padding-inline: 13px; border-radius: 13px; background: rgba(38, 40, 44, 0.95); font: 600 13px/1.2 var(--body); color: #fff; opacity: 0; }
.hint::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #f1c453; -webkit-mask: radial-gradient(circle, #000 35%, transparent 37%); mask: radial-gradient(circle, #000 35%, transparent 37%); }
.hint-ok { background: var(--ready-deep); }
.hint-ok::before { background: var(--ready); -webkit-mask: none; mask: none; box-shadow: inset 0 0 0 5px var(--ready-deep), inset 0 0 0 16px var(--ready); }
.hint-1 { opacity: 1; }
.cam-zoom { position: absolute; left: 6%; right: 5%; top: 77.6%; display: flex; align-items: center; gap: 6px; font: 600 11.5px var(--body); color: #fff; }
.cam-zoom i { font-style: normal; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.cam-zoom i.on { background: rgba(255, 255, 255, 0.16); }
.cam-zoom em { margin-left: auto; font-style: normal; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.cam-bar { position: absolute; left: 9%; right: 9%; bottom: 4.6%; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.cam-bar svg { width: 21px; height: 21px; }
.shutter { position: relative; width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; }
.shutter::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.flash { position: absolute; inset: 0; z-index: 8; background: #fff; opacity: 0; pointer-events: none; }
.cam-thumb { position: absolute; left: 7.4%; bottom: 4.2%; width: 32px; height: 32px; border-radius: 8px; overflow: hidden; border: 2px solid #fff; opacity: 0; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag { position: absolute; left: -128px; top: 66%; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 16px; background: rgba(15, 17, 20, 0.86); border: 1px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 500 13px/1.25 var(--mono); color: var(--fg-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.hero-tag b { display: block; font: 800 22px/1 var(--display); color: var(--fg); }
@media (max-width: 1100px) { .hero-tag { display: none; } }

/* Hero loop: too far away, step closer, figure locks on, frame turns green, shutter, clean photo. 10 s. */
@media (prefers-reduced-motion: no-preference) {
  .vf-shot { animation: fc-approach 10s var(--ease) infinite; }
  .vf-figure { animation: fc-figure 10s linear infinite; }
  .vf-ring::before, .vf-ring::after { animation: fc-ring 10s linear infinite; }
  .hint-1 { animation: fc-h1 10s linear infinite; }
  .hint-2 { animation: fc-h2 10s linear infinite; }
  .hint-ok { animation: fc-h3 10s linear infinite; }
  .shutter::after { animation: fc-press 10s var(--ease) infinite; }
  .shutter { animation: fc-shutter-ring 10s linear infinite; }
  .flash { animation: fc-flash 10s linear infinite; }
  .cam-thumb { animation: fc-thumb 10s var(--ease) infinite; }
  .vf-card b { animation: fc-steps 10s steps(1) infinite; }
  .hero-glow img { animation: fc-drift 24s ease-in-out infinite alternate; }
}
@keyframes fc-approach { 0%, 5% { transform: scale(1.42) translate(-5%, 7%); } 22%, 26% { transform: scale(1.14) translateY(-6%); } 42%, 100% { transform: none; } }
@keyframes fc-figure { 0%, 42% { opacity: 0.55; } 50%, 66% { opacity: 0.4; } 70%, 100% { opacity: 0; } }
@keyframes fc-ring { 0%, 47% { opacity: 0; } 51%, 67% { opacity: 1; } 71%, 100% { opacity: 0; } }
@keyframes fc-h1 { 0%, 22% { opacity: 1; } 24%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fc-h2 { 0%, 22% { opacity: 0; } 24%, 46% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes fc-h3 { 0%, 46% { opacity: 0; } 48%, 70% { opacity: 1; } 73%, 100% { opacity: 0; } }
@keyframes fc-press { 0%, 64% { transform: scale(1); } 66% { transform: scale(0.84); } 69%, 100% { transform: scale(1); } }
@keyframes fc-shutter-ring { 0%, 47% { border-color: #fff; } 50%, 68% { border-color: var(--ready); } 71%, 100% { border-color: #fff; } }
@keyframes fc-flash { 0%, 66% { opacity: 0; } 67.5% { opacity: 0.85; } 73%, 100% { opacity: 0; } }
@keyframes fc-thumb { 0%, 69% { opacity: 0; transform: scale(2.4) translate(60%, -120%); } 74%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes fc-steps { 0% { opacity: 0.55; } 24% { opacity: 0.8; } 48%, 100% { opacity: 1; } }
@keyframes fc-drift { from { transform: scale(1.2) translate(-3%, -2%); } to { transform: scale(1.3) translate(4%, 3%); } }
@media (prefers-reduced-motion: reduce) {
  .hint-1 { opacity: 0; }
  .hint-ok { opacity: 1; }
  .vf-ring::before, .vf-ring::after { opacity: 1; }
  .shutter { border-color: var(--ready); }
}

/* Photo strip */
.strip { position: relative; overflow: hidden; padding-block: 8px clamp(40px, 6vw, 72px); }
.strip-track { display: flex; gap: 16px; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: fc-slide 70s linear infinite; }
  .strip:hover .strip-track { animation-play-state: paused; }
}
/* Pause control for the looping camera and the strip (home.js shows it). */
.motion-toggle { position: absolute; right: 16px; bottom: 2px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(15, 17, 20, 0.86); color: var(--fg); cursor: pointer; }
.motion-toggle[hidden], .motion-toggle .i-play, .motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
.motion-toggle svg { width: 14px; height: 14px; }
.motion-paused .hero *, .motion-paused .hero *::before, .motion-paused .hero *::after, .motion-paused .strip-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; }
  .strip-track [aria-hidden="true"] { display: none; }
  .tile { scroll-snap-align: start; }
}
@keyframes fc-slide { to { transform: translateX(calc(-50% - 8px)); } }
.tile { position: relative; flex: none; width: clamp(200px, 21vw, 290px); aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; background: var(--ink-3); }
.tile-low { margin-top: 36px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-fig { position: absolute; top: 10px; right: 10px; width: 30%; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(120% 90% at 50% 20%, rgba(60, 66, 74, 0.92), rgba(12, 13, 16, 0.92)); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.tile .tile-fig img { position: static; width: 84%; height: 88%; object-fit: contain; }
.tile figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 14px; background: rgba(7, 8, 10, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tile figcaption b { font: 800 16px/1.15 var(--display); }
.tile figcaption span { font: 500 12px var(--mono); color: var(--fg-2); }

/* Pain to result */
.pain-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.pain-grid .section-head { position: sticky; top: 112px; }
.pain-list { border-top: 1px solid var(--line); counter-reset: pain; }
.pain-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line); }
.pain-row::before { counter-increment: pain; content: counter(pain, decimal-leading-zero); font: 500 13px var(--mono); color: var(--fg-3); }
.pain-was { position: relative; justify-self: start; color: var(--fg-3); font-size: 19px; }
.pain-was::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: #ff6b5e; transform-origin: left center; transition: transform 0.6s var(--ease) 0.1s; }
.pain-now { display: flex; align-items: center; gap: 12px; font: 800 21px/1.2 var(--display); letter-spacing: -0.01em; transition: opacity 0.6s var(--ease) 0.45s, transform 0.6s var(--ease) 0.45s; }
.pain-now::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--ready); box-shadow: 0 0 14px var(--ready); }
.js .pain-row.pending .pain-was::after { transform: scaleX(0); }
.js .pain-row.pending .pain-now { opacity: 0.08; transform: translateX(-10px); }
@media (max-width: 860px) {
  .pain-grid { grid-template-columns: minmax(0, 1fr); }
  .pain-grid .section-head { position: static; }
  .pain-row { grid-template-columns: 36px minmax(0, 1fr); row-gap: 8px; }
  .pain-now { grid-column: 2; }
}

/* Copy the figure: sticky scroll scene (enhanced by home.js) */

.scene { margin-top: clamp(40px, 6vw, 72px); }
.scene-frame { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scene-step { display: grid; gap: 14px; }
.scene-media { position: relative; aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 80% at 50% 25%, #2a2f36, #0c0d10 70%); }
.scene-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-photo { clip-path: inset(0 0 0 0); }
.scene-figure { opacity: 0; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3)); }
.scene-text { display: grid; gap: 4px; }
.scene-text .num { font: 500 12px var(--mono); color: var(--fg-3); letter-spacing: 0.1em; }
.scene-text h3 { font-size: 22px; }
.scene-text p { color: var(--fg-2); font-size: 16px; }
@media (max-width: 900px) { .scene-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Scrolly mode */
.scene-captions { display: none; }
/* Short windows (a phone held sideways) keep the static grid. */
@media (min-height: 540px) {
  .scene.is-scrolly { display: block; height: 420vh; margin-top: clamp(24px, 4vw, 48px); }
  .is-scrolly .scene-stage { position: sticky; top: 76px; height: calc(100vh - 92px); height: calc(100svh - 92px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
  .is-scrolly .scene-frame { display: block; position: relative; height: min(100%, 860px); aspect-ratio: 2 / 3; justify-self: center; max-width: 100%; }
  .is-scrolly .scene-step { position: absolute; inset: 0; display: block; }
  .is-scrolly .scene-media { position: absolute; inset: 0; aspect-ratio: auto; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9); }
  .is-scrolly .scene-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .is-scrolly .scene-step { --enter: 0; --wipe: 0; opacity: var(--enter); transform: translateY(calc((1 - var(--enter)) * 5%)) scale(calc(0.965 + var(--enter) * 0.035)); will-change: opacity, transform; }
  .is-scrolly .scene-photo { clip-path: inset(calc((1 - var(--wipe)) * 100%) 0 0 0); }
  .is-scrolly .scene-figure { opacity: 1; clip-path: inset(0 0 calc(var(--wipe) * 100%) 0); }
  .is-scrolly .scene-media::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: calc((1 - var(--wipe)) * 100%); background: linear-gradient(90deg, transparent, var(--ready) 20%, #e9fff2 50%, var(--ready) 80%, transparent); box-shadow: 0 0 24px 4px rgba(61, 220, 132, 0.55); opacity: calc(var(--wipe) * (1 - var(--wipe)) * 4); pointer-events: none; }
  .is-scrolly .scene-captions { display: grid; position: relative; min-height: 220px; align-self: center; }
  .scene-caption { position: absolute; inset: 0; display: grid; align-content: center; gap: 14px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .scene-caption.is-on { opacity: 1; transform: none; }
  .scene-caption .num { font: 500 14px var(--mono); color: var(--fg-3); letter-spacing: 0.12em; }
  .scene-caption h3 { font-size: clamp(36px, 4.6vw, 64px); line-height: 0.98; letter-spacing: -0.025em; }
  .scene-caption p { color: var(--fg-2); font-size: 19px; max-width: 30ch; }
  .scene-progress { position: absolute; left: 0; bottom: -40px; display: flex; gap: 8px; }
  .scene-progress i { width: 30px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
  .scene-progress i b { display: block; height: 100%; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
  @media (max-width: 900px) {
    .is-scrolly .scene-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 8px; }
    .is-scrolly .scene-captions { min-height: 128px; order: -1; }
    .scene-caption { align-content: start; gap: 8px; }
    .scene-caption p { font-size: 16px; }
    .scene-progress { bottom: auto; top: -6px; }
    /* Leave room for the sticky download bar. */
    .is-scrolly .scene-frame { height: auto; width: min(100%, calc((100vh - 320px - env(safe-area-inset-bottom, 0px)) * 0.6667)); width: min(100%, calc((100svh - 320px - env(safe-area-inset-bottom, 0px)) * 0.6667)); }
  }
}

/* Taller */
.taller { background: var(--ink-2); }
.taller-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.taller-fig { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 2 / 3; max-height: 860px; justify-self: center; width: 100%; max-width: 560px; }
.taller-fig > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed rgba(255, 255, 255, 0.75); transform-origin: left; transition: transform 1s var(--ease); }
.guide-top { top: 7.5%; }
.guide-feet { bottom: 3.2%; }
.note { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(7, 8, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 13px/1.2 var(--mono); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ready); box-shadow: 0 0 10px var(--ready); }
.note-top { top: calc(7.5% + 10px); left: 14px; }
.note-phone { top: 52%; right: 14px; }
.note-feet { bottom: calc(3.2% + 12px); left: 14px; }
.phone-pin { position: absolute; right: 14px; top: calc(52% + 50px); width: 46px; height: 46px; display: grid; place-items: center; }
.phone-pin i { width: 18px; height: 32px; border-radius: 5px; border: 2px solid #fff; transform: rotate(-14deg); box-shadow: 0 0 18px rgba(61, 220, 132, 0.6); }
.js .taller-fig.pending .guide { transform: scaleX(0); }
.js .taller-fig.pending .note { opacity: 0; transform: translateY(8px); }
.taller-fig .note-phone { transition-delay: 0.3s; }
.taller-fig .note-feet { transition-delay: 0.55s; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.metrics div { padding: 22px 18px 0 0; display: grid; gap: 6px; align-content: start; }
.metrics b { font: 800 28px/1 var(--display); letter-spacing: -0.02em; }
.metrics span { font-size: 15px; color: var(--fg-2); }
@media (max-width: 900px) { .taller-grid { grid-template-columns: minmax(0, 1fr); } .metrics { grid-template-columns: minmax(0, 1fr); } .metrics div { padding-right: 0; } }

/* Duo: the whole photo in a card, its colours as ambient light */
.duo { position: relative; isolation: isolate; overflow: hidden; }
.duo-glow { position: absolute; inset: 0; z-index: -1; opacity: 0.6; pointer-events: none; }
.duo-glow img { width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.6); transform: scale(1.3); }
.duo::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--ink) 15%, rgba(7, 8, 10, 0.55) 60%, rgba(7, 8, 10, 0.3)); pointer-events: none; }
.duo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.duo-copy { display: grid; gap: 22px; }
.duo-poses { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.duo-poses li { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); font: 600 15px var(--body); }
.duo-card { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 2 / 3; border-radius: 30px; overflow: hidden; box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95); transform: rotate(2deg); transition: transform 0.6s var(--ease); }
.duo-card:hover { transform: rotate(0deg) scale(1.01); }
.duo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo-card .tile-fig { width: 24%; top: 16px; right: 16px; }
.duo-card figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: rgba(7, 8, 10, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.duo-card figcaption b { font: 800 19px/1.15 var(--display); }
.duo-card figcaption span { font: 500 13px var(--mono); color: var(--fg-2); }
@media (max-width: 900px) { .duo-grid { grid-template-columns: minmax(0, 1fr); } .duo::after { background: linear-gradient(180deg, var(--ink) 10%, rgba(7, 8, 10, 0.6)); } }

/* Privacy and price */
.panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.panel { position: relative; overflow: hidden; display: grid; gap: 18px; align-content: start; padding: clamp(28px, 4vw, 52px); border-radius: 30px; background: var(--ink-2); border: 1px solid var(--line); }
.panel h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch; }
.panel ul { display: grid; gap: 12px; color: var(--fg-2); }
.panel li { display: flex; gap: 12px; align-items: baseline; }
.panel li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ready); transform: translateY(-2px); }
.panel-price { background: linear-gradient(150deg, #23272c 0%, #121417 55%, #0b0c0e 100%); border-color: #353a41; }
.panel-price::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(220, 226, 232, 0.16), transparent); pointer-events: none; }
.big { font: 800 clamp(96px, 12vw, 168px)/0.8 var(--display); letter-spacing: -0.05em; }
.lock { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); }
.lock svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .panels { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 7vw, 110px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 18px; padding-block: 24px; cursor: pointer; list-style: none; font: 800 21px/1.25 var(--display); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 14px; height: 14px; flex: none; margin-top: 6px; background: linear-gradient(var(--fg-3), var(--fg-3)) center / 100% 2px no-repeat, linear-gradient(var(--fg-3), var(--fg-3)) center / 2px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { padding-bottom: 24px; color: var(--fg-2); max-width: 58ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Closing */
.closing { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(80px, 10vw, 140px) clamp(96px, 12vw, 170px); }
.closing::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 4%; width: 120%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 168, 92, 0.22), transparent); pointer-events: none; }
.closing-fan { position: relative; height: clamp(230px, 26vw, 340px); margin-bottom: clamp(36px, 5vw, 64px); }
.closing-fan img { position: absolute; left: 50%; bottom: 0; width: clamp(120px, 13vw, 190px); aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); transform-origin: 50% 100%; transition: transform 0.9s var(--ease); }
.closing-fan { --spread: clamp(54px, 9vw, 150px); }
.closing-fan img:nth-child(1) { z-index: 1; transform: translateX(calc(-50% - 2 * var(--spread))) translateY(26px) rotate(-16deg); }
.closing-fan img:nth-child(2) { z-index: 2; transform: translateX(calc(-50% - var(--spread))) translateY(6px) rotate(-8deg); }
.closing-fan img:nth-child(3) { z-index: 3; transform: translateX(-50%) translateY(-8px); }
.closing-fan img:nth-child(4) { z-index: 2; transform: translateX(calc(-50% + var(--spread))) translateY(6px) rotate(8deg); }
.closing-fan img:nth-child(5) { z-index: 1; transform: translateX(calc(-50% + 2 * var(--spread))) translateY(26px) rotate(16deg); }
.js .closing.pending .closing-fan img:not(.closing-icon) { transform: translateX(-50%) rotate(0deg); }
.closing-fan .closing-icon { left: 50%; bottom: -36px; z-index: 6; width: clamp(88px, 8vw, 116px); aspect-ratio: 1; border-radius: 24%; border: 0; transform: translateX(-50%); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 6px var(--ink); }
.closing h2 { margin-top: 20px; }
.closing h2 { font-size: clamp(48px, 7.4vw, 104px); line-height: 0.92; }
.closing .app-store-cta { margin-top: 40px; }
.closing p { margin-top: 18px; font: 500 14px var(--mono); color: var(--fg-2); }

/* Footer */
.site-footer { padding-block: 44px 56px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: start; }
.site-footer .brand { color: var(--fg); }
.site-footer p { margin-top: 10px; }
.site-footer p a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--fg-2); }
.footer-nav a:hover { color: var(--fg); }
.site-footer small { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Sticky mobile CTA (sticky-cta.js) */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta:not([hidden]) { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(7, 8, 10, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .sticky-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .sticky-brand img { width: 36px; height: 36px; border-radius: 9px; }
  .sticky-brand span { display: flex; flex-direction: column; font: 800 16px/1.15 var(--display); white-space: nowrap; }
  .sticky-cta small { font: 500 12px/1.3 var(--mono); color: var(--fg-3); }
  .has-sticky-cta .header-cta { visibility: hidden; }
  .sticky-cta .app-store-link img { width: 132px; height: 44px; }
  .has-sticky-cta body { padding-bottom: 72px; }
}
