/* pondervo.com home page. Tokens and fonts come from style.css (Lamplight, IBM Plex);
   the scroll mechanism from scroll.css/scroll.js. Phones show real app screens. */

:root {
  --s2: #ece7de;
  --glow: color-mix(in srgb, var(--accent) 30%, transparent);
  --bezel: #2b261f;
  --tile: #efecec;            /* the clips' own ground; tiles keep it in both themes */
  --shadow: 0 30px 60px -24px rgba(60, 40, 10, .35), 0 8px 18px -10px rgba(60, 40, 10, .25);
  --gutter: max(16px, calc((100vw - 1180px) / 2));
  --ease: cubic-bezier(.23, 1, .32, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --s2: #2e2923; --glow: color-mix(in srgb, var(--accent) 22%, transparent); --bezel: #3a332a; --shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(243, 237, 228, .06); }
}
:root[data-theme="dark"] { --s2: #2e2923; --glow: color-mix(in srgb, var(--accent) 22%, transparent); --bezel: #3a332a; --shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(243, 237, 228, .06); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.home { overflow-x: clip; }
body.home main { max-width: none; margin: 0; padding: 0; }
body.home::before { display: none; } /* the hero carries its own lamp */
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: 0; }
/* The app's EmphasisText: one payoff phrase per display title, in the accent. */
.hl { font-style: normal; color: var(--accent-text); }
p { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.top {
  position: absolute; z-index: 20; inset: 0 0 auto 0;
  display: flex; align-items: center; gap: 28px;
  padding: 20px var(--gutter); max-width: none; margin: 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 22px var(--font-head); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .i-sun { display: none; } :root:not([data-theme="dark"]) .i-moon { display: block; } }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (max-width: 760px) { .top nav { display: none; } .theme-toggle { margin-left: auto; } }

/* ---------- shared pieces ---------- */
.phone {
  position: relative; width: var(--pw, 300px); aspect-ratio: 720 / 1600;
  --bz: clamp(5px, calc(var(--pw, 300px) * .03), 10px);
  padding: var(--bz); border-radius: calc(var(--pw, 300px) * .12);
  background: var(--bezel); box-shadow: var(--shadow);
}
.phone > picture, .phone .screens { display: block; position: relative; height: 100%; border-radius: calc(var(--pw, 300px) * .12 - var(--bz)); overflow: hidden; background: var(--bg); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.screens > picture, .screens > .clip { position: absolute; inset: 0; }

.tile { position: relative; overflow: hidden; border-radius: 26px; background: var(--tile); box-shadow: var(--shadow); }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }

.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; }
.h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; max-width: 15ch; }
.wrap { padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 14vw, 168px); }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.how { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.free-line { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---------- 1 hero ---------- */
.hero .stage { isolation: isolate; }
.hero-back { z-index: -2; }
.hero-back picture, .hero-back img { width: 100%; height: 100%; }
.hero-back img { object-fit: cover; object-position: 70% 40%; opacity: .32; filter: saturate(.8); }
.hero-back::after { /* wash the photo into the page on the copy side */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 18%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, color-mix(in srgb, var(--bg) 30%, transparent));
}
.lamp { position: absolute; z-index: -1; left: 50%; top: -30vh; width: 140vw; height: 110vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-copy, .hero-next { position: absolute; z-index: 3; left: var(--gutter); top: 50%; translate: 0 -50%; width: min(560px, 46vw); }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: .98; }
.hero .lead { margin-top: 22px; }
.hero-next h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; }
.hero-next p { margin-top: 18px; }
.hero-mid { position: absolute; z-index: 3; left: var(--gutter); top: 50%; translate: 0 -50%; width: min(560px, 46vw); }
.hero-mid h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; }
.hero-mid p { margin-top: 18px; }
.rig { position: absolute; inset: 0; z-index: 2; }
.rig > * { position: absolute; }

/* What happens to a set, all from the act's --p. Positions are --pw multiples from the phone's
   centre; a screen point (sx, sy) of the 720x1600 render sits at ((sx/720 - .5) * .94,
   (sy/1600 - .5) * 2.162).
   .20-.28  the phone settles flat (--in)
   .25-.30  a tap on Log set (--t1), then the rest timer takes the screen (--r)
   .29-.46  the set leaves the button and arcs into the trend card (--m); the card slides in (--c),
            its history draws (--d1), and the last segment draws as the set lands (--d2, --hit)
   .56-.62  the card and set leave (--g)
   .62-.76  a tap on the exercise picture (--tap), its info panel and demonstration (--open) */
.hero {
  --in: clamp(0, var(--p) / .22, 1);
  --t1: clamp(0, (var(--p) - .24) / .05, 1); --r: clamp(0, (var(--p) - .3) / .04, 1);
  --m0: clamp(0, (var(--p) - .3) / .16, 1); --m: calc(var(--m0) * var(--m0) * (3 - 2 * var(--m0)));
  --c: clamp(0, (var(--p) - .27) / .07, 1);
  --d1: clamp(0, (var(--p) - .3) / .1, 1); --d2: clamp(0, (var(--p) - .435) / .03, 1);
  --hit: clamp(0, (var(--p) - .46) / .06, 1);
  --g: clamp(0, (var(--p) - .56) / .06, 1);
  --tap: clamp(0, (var(--p) - .62) / .07, 1); --open: clamp(0, (var(--p) - .7) / .07, 1);
  /* set path and card placement */
  --sx0: 0; --sy0: .98; --sy-lift: .74; --tx: .64; --ty: -.42; --tw: .86;
}
.anchor { --pw: clamp(270px, 25vw, 350px); left: calc(58% + var(--pw) / 2); top: calc(12svh + var(--pw) * 1.111); width: 0; height: 0; }
.anchor > * { position: absolute; left: 0; top: 0; translate: -50% -50%; }

.hero-phone { z-index: 2;
  transform: perspective(1600px) rotateY(calc((1 - var(--in)) * -14deg)) rotateX(calc((1 - var(--in)) * 6deg)) translateY(calc((1 - var(--in)) * 3%)); }
.hero-phone .screens > picture:first-child { position: relative; }
.rest-screen, .rest-screen picture { position: absolute; inset: 0; }
.rest-screen { opacity: var(--r); }

/* The trend card: a crop of the real chart. A --surface cover hides the plot to the right of the
   drawn part; the plot is x 150-640, y 258-518 of the 664x690 crop, the last point at (608, 278). */
.chip { overflow: hidden; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.chip picture { display: block; }
.chip img { position: absolute; left: 0; top: 0; max-width: none; height: auto;
  width: calc(720 / var(--cw) * 100%); translate: calc(var(--cx) / 720 * -100%) calc(var(--cy) / 1600 * -100%); }
.trend { z-index: 3; width: calc(var(--pw) * var(--tw)); aspect-ratio: var(--cw) / var(--ch); border-radius: calc(var(--pw) * .055);
  opacity: calc(var(--c) * (1 - var(--g)));
  transform: translate(calc(var(--pw) * (var(--tx) + (1 - var(--c)) * .14 + var(--g) * .16)), calc(var(--pw) * var(--ty))) rotate(calc((1 - var(--c)) * 4deg)); }
.trend-cover { position: absolute; top: 37.2%; bottom: 24.6%; right: 2%; background: var(--surface);
  left: calc((150 + var(--d1) * 410 + var(--d2) * 80) / 664 * 100%); }
.trend-hit { position: absolute; left: 91.57%; top: 40.29%; width: 9%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
  box-shadow: 0 0 0 3px var(--accent); opacity: calc(min(1, var(--hit) * 30) * (1 - var(--hit))); scale: calc(1 + var(--hit) * 1.6); }
.trend .pro-tag { position: absolute; right: 4%; bottom: 3.5%; margin: 0; background: var(--accent); color: #231e18; }

/* The set: rises off the button, then arcs (x eases in, y eases out) to the chart's last point,
   shrinking into it. */
.set-pill { z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: #231e18; font: 700 18px/1 var(--font-head); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  --lift: clamp(0, (var(--p) - .29) / .04, 1);
  --ex: calc(var(--tx) + (.9157 - .5) * var(--tw)); --ey: calc(var(--ty) + (.4029 - .5) * var(--tw) * 690 / 664);
  opacity: calc(min(1, var(--lift) * 3) * (1 - clamp(0, (var(--m0) - .85) / .15, 1)));
  transform: translate(
    calc(var(--pw) * (var(--sx0) + (var(--ex) - var(--sx0)) * var(--m0) * var(--m0))),
    calc(var(--pw) * (var(--sy0) + (var(--sy-lift) - var(--sy0)) * var(--lift) + (var(--ey) - var(--sy-lift)) * var(--m0) * (2 - var(--m0)))))
    scale(calc((.7 + .3 * var(--lift)) * (1 - .75 * var(--m))));
}
.set-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.hero-panel { position: absolute; inset: 0; opacity: var(--open); translate: 0 calc((1 - var(--open)) * 6%); }
.hero-panel picture { position: absolute; inset: 0; }
.panel-video { position: absolute; left: 6.67%; top: 34.81%; width: 90%; height: 22.75%; border-radius: 7% / 12%; overflow: hidden; background: var(--tile); }
.panel-video video { width: 100%; height: 100%; object-fit: cover; }
.tap { position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 70%, transparent) 30%, color-mix(in srgb, var(--accent) 25%, transparent));
  box-shadow: 0 0 0 3px var(--accent), 0 0 24px 4px color-mix(in srgb, var(--accent) 60%, transparent); }
/* Panel geometry is the app's own: video box at x 48-696, y 557-921; Log set at (360, 1526). */
.tap-ex { left: 13.9%; top: 13.9%; opacity: min(1, calc(var(--tap) * 2) * (1 - var(--open))); scale: calc(.5 + var(--tap) * .5); }
.tap-log { left: 50%; top: 95.4%; width: 20%; opacity: calc(min(1, var(--t1) * 2) * (1 - var(--r))); scale: calc(.5 + var(--t1) * .5); }
.floor { position: absolute; z-index: 4; inset: auto 0 0 0; height: 22svh; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

@media (max-width: 760px) {
  .hero-copy, .hero-mid, .hero-next { top: 92px; translate: none; width: auto; right: var(--gutter); }
  .hero h1 { font-size: clamp(40px, 11.5vw, 54px); }
  .hero .lead { margin-top: 14px; font-size: 17px; }
  .get { margin-top: 20px; }
  .free-line { display: none; }
  .hero-back img { object-position: 60% 30%; opacity: .22; }
  .hero-back::after { background: linear-gradient(180deg, var(--bg) 40%, color-mix(in srgb, var(--bg) 40%, transparent)); }
  /* 400px floor: the copy above ends near 380px on short phones. */
  .anchor { --pw: min(60vw, 260px); left: 50%; top: calc(max(58svh, 400px) + var(--pw) * 1.111); }
  /* The button is below the fold here: the set rises from the logged rows instead. */
  .hero { --sy0: -.5; --sy-lift: -.62; --tx: .08; --ty: -.55; --tw: .96; }
  .tap-log { display: none; }
  .set-pill { font-size: 16px; padding: 8px 14px; }
}

/* ---------- pinned tours (workout, coach) ---------- */
.tour .stage { display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: center; align-items: center; gap: clamp(48px, 9vw, 150px); padding-inline: var(--gutter); }
.tour--flip .stage { grid-template-columns: auto minmax(0, 520px); }
.tour--flip .tour-slot { order: -1; }
/* The steps share one grid cell, so the copy is always as tall as its longest step. */
.tour-copy { display: grid; align-items: center; min-height: 60svh; max-width: 520px; }
.tour-copy .step { grid-area: 1 / 1; }
.step h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; }
.step p { margin-top: 18px; }
.step .fine { margin-top: 14px; font-size: 15px; color: var(--muted); }
/* Height-aware too: the phone (2.22 x its width) stays clear of the rail at 94svh on short windows. */
.tour-phone { --pw: min(clamp(260px, 24vw, 330px), calc((88svh - 40px) * .45)); }
.tour-glow { position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -10vw; top: 50%; translate: 0 -50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.tour--flip .tour-glow { right: auto; left: -14vw; }
/* a thin rail that fills as you scroll the tour */
.rail { position: absolute; left: 50%; translate: -50% 0; bottom: 6svh; width: min(520px, 40vw); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rail::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }

@media (max-width: 760px) {
  /* Copy on top at its tallest step's height; the phone takes what is left above the rail. */
  .tour .stage, .tour--flip .stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: 0;
    padding-top: 7svh; padding-bottom: calc(4svh + 3px + 14px); }
  .tour-slot, .tour--flip .tour-slot { order: 1; container-type: size; display: grid; place-items: end center; margin-top: 16px; }
  .tour-phone { --pw: min(64vw, 270px, 45cqh); }
  .tour-copy { min-height: 0; align-items: start; margin-top: 2svh; }
  .step h2 { font-size: clamp(28px, 8vw, 36px); }
  .step p { margin-top: 10px; font-size: 16px; }
  .step .fine { font-size: 14px; margin-top: 8px; }
  .rail { left: var(--gutter); right: var(--gutter); translate: none; width: auto; bottom: 4svh; }
  .tour-glow { width: 120vw; height: 120vw; right: -10vw; top: 26%; }
}
/* Short phones: the small print would leave the phone a thumbnail, so the tours show the lead only. */
@media (max-width: 760px) and (max-height: 760px) {
  .tour .step .fine { display: none; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .tour .stage, .tour--flip .stage { padding-top: 5svh; }
  .step h2 { font-size: 26px; }
  .step p { font-size: 15px; }
}

/* ---------- 3 library ---------- */
.lib-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.lib-copy h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1; max-width: 14ch; }
.lib-copy .lead { margin-top: 22px; }
.lib-facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; max-width: 36em; }
.lib-facts li { padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.lib-facts strong { display: block; color: var(--text); }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); padding-bottom: 56px; }
.lib-tile { margin: 0; }
.lib-tile:nth-child(even) { translate: 0 56px; }
.lib-tile .tile { aspect-ratio: 1; }
.lib-tile figcaption { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--muted); }
.lib-pair { display: grid; grid-template-columns: auto auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(72px, 10vw, 128px); }
.lib-pair .phone { --pw: clamp(220px, 20vw, 280px); }
.lib-pair .phone:nth-child(2) { margin-top: 90px; }
.lib-pair .copy { padding-left: clamp(0px, 3vw, 40px); }
.lib-pair h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; }
.lib-pair p { margin-top: 16px; }
@media (max-width: 760px) {
  .lib-split { grid-template-columns: 1fr; }
  .lib-grid { gap: 12px; padding-bottom: 32px; }
  .lib-tile:nth-child(even) { translate: 0 32px; }
  .lib-tile .tile { border-radius: 20px; }
  .lib-pair { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lib-pair .phone { --pw: calc((100vw - 2 * var(--gutter) - 14px) / 2); }
  .lib-pair .phone:nth-child(2) { margin-top: 40px; }
  .lib-pair .copy { grid-column: 1 / -1; grid-row: 1; padding: 0 0 16px; }
}

/* ---------- bring a plan in (import, step by step; form check) ---------- */
.show-head { max-width: 720px; }
.show-head .lead { margin-top: 18px; }
.import-steps { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 clamp(24px, 4vw, 56px); }
.import-steps > li { display: grid; grid-template-rows: subgrid; grid-row: span 3; counter-increment: step; }
.import-steps .phone { --pw: clamp(200px, 19vw, 260px); align-self: end; justify-self: start; }
.import-steps h3 { margin-top: 28px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; display: flex; gap: 12px; align-items: baseline; }
.import-steps h3::before { content: counter(step); flex: none; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%;
  background: var(--accent); color: #231e18; font-size: .8em; translate: 0 -.08em; }
.import-steps p { margin-top: 10px; color: var(--muted); max-width: 30em; }
.step-paper { position: relative; }
.step-paper .paper-stack, .step-paper .paper-top { grid-area: 1 / 1; align-self: end; }
.step-paper h3 { grid-row: 2; }
.step-paper p { grid-row: 3; }
.step-paper img { display: block; width: min(100%, 300px); height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.step-paper .paper-stack img { rotate: 5deg; translate: 26px -14px; opacity: .92; }
.step-paper .paper-top { rotate: -2.5deg; position: relative; }
.form-check { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 48px); align-items: center;
  margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.form-check img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.form-check h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.form-check p { margin-top: 10px; color: var(--muted); max-width: 34em; }
@media (max-width: 860px) {
  .import-steps { grid-template-columns: 1fr; grid-template-rows: none; gap: 56px; }
  .import-steps > li { grid-template-rows: none; grid-row: auto; }
  .import-steps .phone { --pw: min(60vw, 250px); }
  .step-paper img { width: min(72vw, 300px); }
  .form-check { grid-template-columns: 1fr; }
}

/* ---------- 5 progress ---------- */
.progress { position: relative; }
.prog-trio { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: clamp(20px, 4vw, 64px); margin-top: clamp(56px, 8vw, 96px); }
.prog-trio figure { margin: 0; }
.prog-trio .phone { --pw: clamp(220px, 21vw, 290px); }
.prog-trio figure:nth-child(2) { margin-top: -60px; }
.prog-trio figcaption { margin-top: 22px; max-width: 26ch; color: var(--muted); font-size: 16px; }
.prog-trio figcaption strong { display: block; color: var(--text); font: 700 21px/1.2 var(--font-head); margin-bottom: 4px; }
.pro-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 6px; background: var(--s2); color: var(--muted); font: 700 13px/1.6 var(--font-text); vertical-align: 3px; }
@media (max-width: 760px) {
  .prog-trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68vw; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 24px; }
  .prog-trio figure { scroll-snap-align: center; }
  .prog-trio figure:nth-child(2) { margin-top: 0; order: -1; }
  .prog-trio .phone { --pw: 68vw; }
}

/* ---------- 6 looks (pinned switcher, one mode at a time) ---------- */
.looks-intro { padding-bottom: clamp(40px, 6vw, 72px); }
.looks-intro .lead { margin-top: 18px; }
.looks .stage { background: var(--bg); }
.look-layer {
  --lb: var(--dk); --lc: #f3ede4; --la: var(--ac);
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter) 72px; background: var(--lb); color: var(--lc);
}
.looks[data-mode="light"] .look-layer { --lb: var(--lt); --lc: #231e18; --la: var(--act); }
.look-layer::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(90vw, 900px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 26%, transparent), transparent); }
.looks[data-mode="light"] .look-layer::before { opacity: .6; }
.look-name { position: relative; align-self: center; }
.look-name h3 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; color: var(--la); }
.look-name p { margin-top: 12px; font-size: 18px; color: inherit; opacity: .75; }
.look-phone { --pw: min(23vw, 34svh, 330px); position: relative; }
.look-phone > picture { background: var(--lb); }
.looks[data-mode="dark"] .m-light, .looks[data-mode="light"] .m-dark { display: none; }
.look-mode { position: absolute; z-index: 3; top: 28px; right: var(--gutter); }
.look-mode button, .look-names button { font: inherit; cursor: pointer; border: 0; }
.look-mode button {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.look-mode svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.look-names {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 3;
  display: flex; gap: 2px; margin: 0; padding: 5px; list-style: none; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.look-names button { position: relative; display: block; padding: 9px 14px; border-radius: 999px; background: none; color: var(--muted); font: 700 15px/1 var(--font-head); white-space: nowrap; }
.look-names button:hover { color: var(--text); }
.look-names .on { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--accent); color: #231e18; pointer-events: none; }
@media (max-width: 760px) {
  /* 72px at the bottom keeps the phone clear of the dot bar (14px + 32px + a gap). */
  .look-layer { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; padding: 92px 16px 72px; }
  .look-name { justify-self: start; align-self: start; }
  .look-name h3 { font-size: 34px; }
  .look-name p { margin-top: 4px; font-size: 15px; }
  .look-phone { --pw: min(66vw, calc((100svh - 92px - 62px - 72px - 16px) * .45)); }
  .look-mode { top: 20px; right: 16px; }
  .look-mode button { padding: 9px 13px; font-size: 14px; }
  .look-names { gap: 0; padding: 2px 6px; bottom: 14px; }
  .look-names button { width: 28px; height: 28px; padding: 0; font-size: 0; }
  .look-names button::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 45%, transparent); }
  .look-names .on { inset: 9px; font-size: 0; background: var(--accent-text); z-index: 1; }
}

/* ---------- 7 plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }
.plan { padding: 30px clamp(16px, 2.4vw, 34px) 8px 0; }
.plan + .plan { padding-left: clamp(16px, 2.4vw, 34px); border-left: 1px solid var(--line); }
.plan h3 { font-size: clamp(30px, 3vw, 40px); }
.plan .kind { margin-top: 6px; color: var(--accent-text); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { position: relative; margin: 0; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border: solid var(--accent-text); border-width: 0 0 2px 2px; rotate: -45deg; }
.plan li small { display: block; color: var(--muted); font-size: 14px; }
.plan--coach { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.plans-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 56px); align-items: start; }
.plans-phone { margin: clamp(44px, 6vw, 72px) 0 0; }
.plans-phone .phone { --pw: clamp(220px, 19vw, 260px); }
.plans-phone figcaption { margin-top: 14px; max-width: 24ch; color: var(--muted); font-size: 15px; }
@media (max-width: 1100px) { .plans-layout { grid-template-columns: 1fr; } .plans-phone { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: end; margin-top: 32px; } .plans-phone .phone { --pw: min(46vw, 240px); } }
.plans-note { margin-top: 30px; color: var(--muted); font-size: 15px; max-width: 60em; }
@media (max-width: 860px) {
  .plans-grid { grid-template-columns: 1fr; border-top: 0; }
  .plan, .plan + .plan { padding: 28px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .plan.plan--coach { padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); }
}

/* ---------- 8 data, faq, close ---------- */
.data-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px clamp(28px, 5vw, 72px); margin: clamp(40px, 6vw, 64px) 0 0; }
.data-list dt { font: 700 22px/1.2 var(--font-head); }
.data-list dd { margin: 8px 0 0; color: var(--muted); max-width: 36em; }
@media (max-width: 760px) { .data-list { grid-template-columns: 1fr; } }

.faq-inner { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 700 20px/1.3 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; rotate: 45deg; transition: rotate 200ms var(--ease); }
.faq details[open] summary::after { rotate: -135deg; top: 31px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }

.close { position: relative; isolation: isolate; min-height: 88svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.close-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 50%, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg)); }
.close { text-align: left; place-items: center stretch; padding-block: clamp(72px, 10vw, 120px); }
.close-inner { display: grid; grid-template-columns: minmax(0, 620px) auto; justify-content: center; align-items: center; gap: clamp(40px, 8vw, 140px); padding-inline: var(--gutter); }
.close h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1; max-width: 13ch; }
.close .lead { margin-top: 20px; }
.close-phone { --pw: clamp(240px, 21vw, 300px); }
@media (max-width: 760px) { .close-inner { grid-template-columns: 1fr; } .close-phone { --pw: min(62vw, 260px); justify-self: center; } }


.foot { max-width: none; margin: 0; padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot a { color: var(--muted); margin: 0; }
.foot p { flex-basis: 100%; margin: 6px 0 0; max-width: 80ch; color: var(--muted); }

/* ---------- reduced motion: same order, nothing pinned or stacked ---------- */
.sp-reduced .hero-copy, .sp-reduced .hero-mid, .sp-reduced .hero-next { position: relative; top: auto; left: auto; translate: none; width: auto; max-width: 820px; padding: 120px var(--gutter) 0; }
.sp-reduced .hero-mid, .sp-reduced .hero-next { padding-top: 48px; }
.sp-reduced .hero .stage { min-height: 0; }
.sp-reduced .rig { position: relative; height: 100svh; }
.sp-reduced .tour .stage { display: block; padding-block: 72px; }
.sp-reduced .tour-copy { height: auto; min-height: 0; display: grid; gap: 40px; max-width: 640px; }
.sp-reduced .tour-copy .step { position: static; translate: none; grid-area: auto; }
.sp-reduced .tour-slot { container-type: normal; display: block; margin-top: 0; }
.sp-reduced .tour .step .fine { display: block; }
.sp-reduced .tour-phone { --pw: 240px; width: auto; aspect-ratio: auto; padding: 0; background: none; box-shadow: none; margin-top: 40px; }
.sp-reduced .tour-phone .screens { display: flex; gap: 16px; overflow-x: auto; height: auto; border-radius: 0; background: none; }
.sp-reduced .tour-phone .screens > picture, .sp-reduced .tour-phone .screens > .clip { position: static; flex: 0 0 240px; aspect-ratio: 720 / 1600; border-radius: 24px; overflow: hidden; }
.sp-reduced .rail, .sp-reduced .tour-glow { display: none; }
.sp-reduced .looks .stage { display: grid; gap: 0; }
.sp-reduced .look-layer { position: relative; inset: auto; min-height: 88svh; opacity: 1; }
.sp-reduced .look-names { display: none; }
/* Reduced motion: the phone flat, the trend card drawn in place, no taps or flying set. */
.sp-reduced .hero { --in: 1; --t1: 0; --r: 0; --c: 1; --d1: 1; --d2: 1; --hit: 0; --g: 0; --tap: 0; --open: 0; }
.sp-reduced .set-pill { display: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; z-index: 30; right: max(16px, calc(var(--gutter) - 64px)); bottom: 22px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(12px);
  opacity: 0; translate: 0 12px; visibility: hidden; transition: opacity 220ms var(--ease), translate 220ms var(--ease), visibility 0s 220ms;
}
.to-top.is-shown { opacity: 1; translate: none; visibility: visible; transition-delay: 0s; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .to-top { bottom: 74px; right: 14px; width: 44px; height: 44px; } }

/* ---------- app clips (#63): one video per theme, the other stays display:none and never loads ---------- */
.clip-v { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.phone > .clip-v { border-radius: calc(var(--pw, 300px) * .12 - var(--bz)); }
.clip-v.light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .clip-v.dark { display: none; }
  :root:not([data-theme="dark"]) .clip-v.light { display: block; }
}
:root[data-theme="light"] .clip-v.dark { display: none; }
:root[data-theme="light"] .clip-v.light { display: block; }

/* Programs: copy beside one phone. */
.programs-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 112px); align-items: center; max-width: 1080px; margin-inline: auto; }
.programs .data-list { grid-template-columns: 1fr; margin-top: 36px; }
.programs-phone { margin: 0; }
.programs-phone .phone { --pw: clamp(220px, 23vw, 290px); }
@media (max-width: 760px) {
  .programs-grid { grid-template-columns: minmax(0, 1fr); }
  .programs-phone { justify-self: center; }
  .programs-phone .phone { --pw: 68vw; }
}

/* Google ships the badge with clear space around it; the negative margin lines its edge up with the text. */
.play { display: inline-block; line-height: 0; margin: -11px 0 -11px -11px; }
.play img { display: block; width: 176px; height: auto; }
.play:focus-visible { outline: 2px solid currentColor; }
