/*
  Layout: product-led. A deep forest-green opening band with brass weight-plate rings and the real app on a
  tilted phone; the app's own moving figures stand in for people; parchment sections below, set like a
  training journal, with one more dark band for the coaches and the closing call to join.
  Single look on purpose (Liftling's Forest colours), so every colour is set explicitly.
*/
@font-face { font-family: 'Fraunces'; src: url("fonts/fraunces-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url("fonts/fraunces-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url("fonts/work-sans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url("fonts/work-sans-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url("fonts/work-sans-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  /* Colour */
  --forest: #0f1a16;        /* the app's dark background: opening band */
  --forest-2: #16241e;      /* raised dark surfaces */
  --forest-3: #24382f;      /* dark borders */
  --figure-bg: #0a1310;     /* the how-to figure panel, matched to the recordings */
  --cream: #efe7d4;         /* text on dark */
  --sage: #a3ad9f;          /* quiet text on dark */
  --gold: #d9a648;          /* accent on dark */
  --parchment: #ece6d6;     /* page */
  --paper: #f7f3e8;         /* cards on the page */
  --line: #ddd6c4;
  --ink: #1b2a23;           /* text on the page */
  --body: #46554c;
  --muted: #59655c;
  --brass: #ad7d26;         /* accent on the page */
  --brass-ink: #8a5f12;
  --on-gold: #1a140a;
  --mint: #6fb59a;          /* "getting stronger" and the rest timer */
  /* Type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  /* Shape */
  --page: 76rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--parchment); color: var(--body); font: 400 1.0625rem/1.6 var(--text); overflow-x: clip; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.05; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--page); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font: 600 0.78rem/1.2 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); }
.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; max-width: 38rem; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.head { display: grid; gap: 0.9rem; max-width: 44rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.head h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.015em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; text-decoration: none; cursor: pointer;
  font: 600 1rem/1 var(--text); padding: 1rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 24px -12px rgba(217, 166, 72, 0.8); }
.btn-ghost { border-color: rgba(239, 231, 212, 0.35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--paper); }


/* ---------- Header ---------- */
.site-head { background: var(--forest); color: var(--cream); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; font: 700 1.4rem/1 var(--display); color: var(--cream); }
.brand img { width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; }
.nav { display: flex; align-items: center; gap: 1.7rem; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--sage); transition: color 0.2s ease; }
.nav a:hover { color: var(--cream); }
.nav .btn { padding: 0.7rem 1.1rem; font-size: 0.92rem; color: var(--on-gold); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* ---------- Opening band ---------- */
.hero { position: relative; background: var(--forest); color: var(--sage); overflow: hidden; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--forest-2); border: 1px solid var(--forest-3); color: var(--cream); font-size: 0.85rem; font-weight: 500; }
.pill i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(111, 181, 154, 0.2); }
.hero h1 { color: var(--cream); font-size: clamp(3.2rem, 7.4vw, 6.2rem); letter-spacing: -0.03em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: var(--sage); font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; list-style: none; padding: 0; font-size: 0.92rem; color: var(--cream); }
.trust li { display: flex; align-items: center; gap: 0.45rem; }
.trust li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* Brass weight-plate rings behind the phone */
.plates { position: absolute; z-index: -1; right: -8rem; top: 50%; width: min(52rem, 90vw); aspect-ratio: 1; translate: 0 -50%; opacity: 0.55; pointer-events: none; }
.plates circle { fill: none; stroke: var(--gold); }

.hero-stage { position: relative; display: grid; place-items: center; min-width: 0; padding-block: 1rem; }
.phone {
  width: min(100%, 19.5rem); aspect-ratio: 780 / 1404; border-radius: 2.6rem; padding: 0.6rem;
  background: #050a08; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 2px var(--forest-3);
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 2.05rem; background: var(--forest); }
.hero .phone { transform: rotate(-4deg); animation: arrive 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
@keyframes arrive { from { transform: translateY(40px) rotate(-1deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
.float { position: absolute; display: flex; align-items: center; gap: 0.6rem; background: var(--paper); color: var(--ink); border-radius: 1rem; padding: 0.7rem 0.95rem; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.75); font-size: 0.88rem; line-height: 1.25; animation: bob 5s ease-in-out infinite; }
.float b { display: block; font-weight: 600; }
.float small { color: var(--muted); font-size: 0.8rem; }
.float .star { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.6rem; background: var(--gold); color: var(--on-gold); font-weight: 700; flex: none; }
.float-hit { top: 16%; left: max(0rem, calc(50% - 15rem)); }
.float-rest { bottom: 20%; right: max(0rem, calc(50% - 16rem)); animation-delay: -2.5s; background: var(--forest-2); color: var(--cream); border: 1px solid var(--forest-3); }
.float-rest small { color: var(--sage); }
.float-rest > span { display: grid; gap: 0.2rem; }
/* With the script running, the cards come in on the clip's own moments instead of sitting there from the start. */
.synced .float-hit, .synced .float-rest { opacity: 0; scale: 0.85; transition: opacity 0.3s ease, scale 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.synced .float-hit.show, .synced .float-rest.show { opacity: 1; scale: 1; }
.float-rest .t { font: 600 1.35rem/1 var(--text); color: var(--mint); font-variant-numeric: tabular-nums; }
.float-fig { bottom: 4%; left: max(0rem, calc(50% - 16.5rem)); padding: 0.4rem; background: var(--figure-bg); border: 1px solid var(--forest-3); animation-delay: -1.2s; }
.float-fig video { width: 6.5rem; height: auto; border-radius: 0.6rem; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .plates { right: -40%; top: 72%; }
}
@media (max-width: 520px) {
  .float-hit { left: 0; top: 8%; }
  .float-rest { right: 0; }
  .float-fig { display: none; }
}

/* ---------- Numbers strip ---------- */
.numbers { background: var(--forest-2); border-top: 1px solid var(--forest-3); color: var(--sage); }
.numbers ul { list-style: none; margin: 0; padding-block: 1.8rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.numbers li { display: grid; gap: 0.2rem; }
.numbers b { font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.numbers span { font-size: 0.92rem; }
@media (max-width: 720px) { .numbers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Figures ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.fig { background: var(--figure-bg); border-radius: 1.4rem; padding: 0.6rem 0.6rem 1rem; display: grid; gap: 0.8rem; align-content: start; color: var(--cream); }
.fig .clip { aspect-ratio: 1 / 1.04; border-radius: 1rem; overflow: hidden; background: var(--figure-bg); display: grid; place-items: center; }
.fig video { width: 100%; height: 100%; object-fit: contain; }
.fig h3 { color: var(--cream); font-size: 1.3rem; padding-inline: 0.5rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; align-content: start; gap: 0.35rem; padding-inline: 0.5rem; }
.chip { font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--forest-2); color: var(--sage); border: 1px solid var(--forest-3); }
.chip.main { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.figures-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- How it works ---------- */
.how { background: var(--paper); border-block: 1px solid var(--line); }
.rows { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.row:nth-child(even) .row-text { order: 2; }
.row-text { display: grid; gap: 1rem; max-width: 30rem; min-width: 0; }
.step { display: flex; align-items: center; gap: 0.8rem; font: 700 1rem/1 var(--display); color: var(--brass-ink); }
.step::after { content: ""; flex: 1; max-width: 6rem; height: 1px; background: var(--line); }
.row h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ticks { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.7rem; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; border-radius: 0.4rem; background: var(--brass); color: var(--on-gold); font-size: 0.8rem; font-weight: 700; }
.row-media { display: grid; place-items: center; min-width: 0; }
.row-media .phone { width: min(100%, 17.5rem); }
@media (max-width: 820px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .row-text { order: 0; }
}

/* ---------- Plans ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.filters button { font: 600 0.9rem/1 var(--text); padding: 0.65rem 1rem; border-radius: 999px; cursor: pointer; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.3rem 1.3rem 1.1rem; display: grid; gap: 0.6rem; align-content: start; }
.plan .group { font: 600 0.72rem/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); }
.plan h3 { font-size: 1.35rem; }
.plan .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.88rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan p { font-size: 0.95rem; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Dark band: coaches ---------- */
.dark { background: var(--forest); color: var(--sage); }
.dark h2, .dark h3 { color: var(--cream); }
.coaches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.coach { background: var(--forest-2); border: 1px solid var(--forest-3); border-radius: 1.4rem; padding: 0.7rem 0.7rem 1.2rem; display: grid; gap: 0.9rem; align-content: start; }
.coach .clip { aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: var(--figure-bg); }
.coach video { width: 100%; height: 100%; object-fit: cover; }
.coach .line { font: 700 1.25rem/1.2 var(--mono); color: var(--cream); padding-inline: 0.4rem; }
.coach .name { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.14em; color: var(--gold); padding-inline: 0.4rem; }
.coach p { padding-inline: 0.4rem; font-size: 0.95rem; }
.quiet { aspect-ratio: 1; border-radius: 1rem; background: var(--figure-bg); display: grid; place-items: center; align-content: center; gap: 1rem; padding: 1rem; }
.quiet .bubble { background: var(--gold); color: var(--on-gold); font-weight: 600; border-radius: 999px; padding: 0.6rem 1.2rem; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.8); font-variant-numeric: tabular-nums; }
.quiet small { color: var(--sage); font-size: 0.85rem; text-align: center; }
@media (max-width: 900px) { .coaches { grid-template-columns: minmax(0, 1fr); max-width: 26rem; } }

/* ---------- Themes ---------- */
.themes-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.themes-head .head { margin-bottom: 0; }
.seg { display: inline-flex; padding: 0.3rem; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--ink); font: 600 0.92rem/1 var(--text); padding: 0.6rem 1.2rem; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.theme-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.9rem; }
.theme { display: grid; gap: 0.6rem; justify-items: center; }
.theme .screen { width: 100%; aspect-ratio: 390 / 702; border-radius: 1.1rem; overflow: hidden; border: 0.3rem solid var(--ink); background: var(--forest); box-shadow: 0 20px 30px -24px rgba(27, 42, 35, 0.8); }
.theme img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.3s ease; }
.theme span { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
@media (max-width: 1000px) { .theme-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Tour ---------- */
.tour { background: var(--paper); border-block: 1px solid var(--line); }
.tour .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.player { width: min(100%, 21rem); justify-self: center; aspect-ratio: 9 / 16; border-radius: 1.6rem; overflow: hidden; border: 0.45rem solid var(--ink); background: var(--forest); box-shadow: 0 40px 70px -35px rgba(27, 42, 35, 0.75); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.credit { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) { .tour .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 60rem; }
.price { border-radius: 1.4rem; padding: 2rem; display: grid; gap: 1.1rem; align-content: start; }
.price-free { background: var(--paper); border: 1px solid var(--line); }
.price-pro { background: var(--forest); color: var(--sage); }
.price-pro h3 { color: var(--cream); }
.price .tag { justify-self: start; font: 600 0.75rem/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 999px; background: var(--parchment); color: var(--brass-ink); }
.price-pro .tag { background: var(--gold); color: var(--on-gold); }
.price h3 { font-size: 2rem; }
.price .sum { font: 700 1.15rem/1.3 var(--display); color: var(--ink); }
.price-pro .sum { color: var(--cream); }
.price-pro .ticks li::before { background: var(--gold); }
@media (max-width: 760px) { .prices { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font: 600 1.2rem/1.3 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass-ink); font-family: var(--text); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 1.3rem; max-width: 44rem; }

/* ---------- Join ---------- */
.join { position: relative; overflow: hidden; isolation: isolate; }
.join .wrap { padding-block: clamp(4rem, 9vw, 6.5rem); display: grid; gap: 1.6rem; justify-items: start; }
.join h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 40rem; }
.join .plates { right: -14rem; opacity: 0.35; }
.join-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; counter-reset: s; }
.join-steps li { background: var(--forest-2); border: 1px solid var(--forest-3); border-radius: 1rem; padding: 1rem 1.1rem; counter-increment: s; display: grid; gap: 0.3rem; }
.join-steps li::before { content: counter(s); font: 700 1.4rem/1 var(--display); color: var(--gold); }
.join-steps b { color: var(--cream); font-weight: 600; }
.join-steps span { font-size: 0.9rem; }
@media (max-width: 720px) { .join-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { background: var(--forest-2); color: var(--sage); border-top: 1px solid var(--forest-3); font-size: 0.92rem; }
.foot .wrap { padding-block: 3rem 3.5rem; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot h4 { margin: 0 0 0.8rem; font: 600 0.75rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot .about { display: grid; gap: 0.9rem; align-content: start; }
.foot .small { font-size: 0.82rem; }
@media (max-width: 820px) { .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .about { grid-column: 1 / -1; } }

/* ---------- Reveal: only for what starts below the first screen ---------- */
.pre { opacity: 0.15; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pre.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .phone, .float { animation: none; }
  .pre { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Prices ---------- */
.price .amount { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.95rem; color: var(--muted); }
.price .amount b { font: 700 2.3rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-pro .amount { color: var(--sage); }
.price-pro .amount b { color: var(--cream); }
.price-note { margin-top: 1.2rem; max-width: 60rem; font-size: 0.88rem; color: var(--muted); }

/* ---------- Join: by email, then the testers group, then full ----------
   The join band in index.html says data-join="email", "group" or "full". */
.join:not([data-join="email"]) .when-email, .join:not([data-join="group"]) .when-group, .join:not([data-join="full"]) .when-full { display: none; }
.join-steps a { color: var(--gold); text-underline-offset: 3px; }
.join .note { max-width: 40rem; font-size: 0.92rem; color: var(--sage); }
.join .note a { color: var(--cream); }

/* ---------- Skip link, for keyboards ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 0.5rem 0.75rem; border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 600; }
.skip:focus { left: var(--gutter-l); }

/* ---------- Privacy policy page ---------- */
.policy { max-width: 42rem; margin: 0 auto; padding-block: clamp(2.5rem, 6vw, 4.5rem) 3.5rem; display: flex; flex-direction: column; gap: 2.25rem; }
.policy header { display: flex; flex-direction: column; gap: 0.75rem; }
.policy h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); letter-spacing: -0.02em; }
.policy .lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink); text-wrap: balance; }
.policy .updated { font-size: 0.875rem; letter-spacing: 0.02em; color: var(--muted); }
.policy .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--brass); border-bottom: 1px solid var(--line); }
.policy .facts div { padding: 1rem 0.75rem 1rem 0; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.policy .facts b { font: 600 1.15rem/1.25 var(--display); color: var(--ink); }
.policy .facts span { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 30rem) {
  .policy .facts { grid-template-columns: minmax(0, 1fr); }
  .policy .facts div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .policy .facts div:last-child { border-bottom: 0; }
}
.policy section { display: flex; flex-direction: column; gap: 0.75rem; }
.policy h2 { font-weight: 600; font-size: 1.45rem; line-height: 1.25; }
.policy ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.policy li::marker { color: var(--brass); }
.policy strong { color: var(--ink); }
.policy a { color: var(--brass-ink); text-underline-offset: 3px; }
.policy .types { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 0.975rem; }
.policy .types dt { padding-top: 0.2rem; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-ink); }
.policy .types dd { color: var(--ink); }
.policy > footer { border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Page not found ---------- */
.lost { padding-block: clamp(4rem, 10vw, 7rem); display: grid; gap: 1rem; justify-items: start; max-width: 40rem; }
.lost h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); letter-spacing: -0.02em; }

/* On narrow phones the email address in the footer wraps instead of pushing past the edge. */
.foot .wrap > * { min-width: 0; }
.foot a { overflow-wrap: anywhere; }
.join .full-note { max-width: 40rem; font-size: 1.1rem; color: var(--sage); }
.join .full-note b { color: var(--cream); }

/* ======================================================================
   Version 2: a shorter page, with a phone you can try
   ====================================================================== */
/* Anything marked hidden stays hidden, even if a rule below gives it a display. */
[hidden] { display: none !important; }

/* ---------- The stage beside the headline ---------- */
.try-stage { position: relative; display: grid; justify-items: center; gap: 1rem; min-width: 0; padding-block: 0.5rem; }
.narrator {
  max-width: 21rem; min-height: 4.6rem; padding: 0.75rem 1rem; border-radius: 1rem;
  background: var(--paper); color: var(--ink); font-size: 0.92rem; line-height: 1.4;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.75);
}
.narrator b { color: var(--brass-ink); }
.coach-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.88rem; color: var(--sage); }
.coach-pick span { margin-right: 0.2rem; }
.coach-pick button { font: 600 0.85rem/1 var(--text); padding: 0.55rem 0.85rem; border-radius: 999px; border: 1px solid var(--forest-3); background: var(--forest-2); color: var(--cream); cursor: pointer; }
.coach-pick button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* Chad, up front: a Go time card beside the phone. Tapping it plays Go time in the phone. */
.tease {
  position: absolute; z-index: 2; right: max(0rem, calc(50% - 17rem)); bottom: 16%; width: 9.5rem;
  display: grid; padding: 0; border: 0; border-radius: 1rem; overflow: hidden; cursor: pointer; text-align: center;
  background: #000; color: var(--on-gold); rotate: 4deg;
  box-shadow: 0 24px 44px -16px rgba(0, 0, 0, 0.85), 0 0 0 2px var(--gold);
  container-type: inline-size; animation: bob 5s ease-in-out -1.5s infinite;
  transition: opacity 0.25s ease, scale 0.25s ease;
}
.tease img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.tease-line { --e: 1.4cqw; position: absolute; left: 0.4rem; right: 0.4rem; top: calc(100cqw - 2.6rem); font-size: 1.35rem; line-height: 1.1; }
.tease-tag { position: absolute; left: 0.45rem; top: 0.45rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: #efe7d4; font: 700 0.62rem/1.4 var(--text); letter-spacing: 0.08em; }
.tease-play { padding: 0.45rem 0.4rem; background: var(--gold); font: 700 0.8rem/1.2 var(--text); }
.tease:hover .tease-play, .tease:focus-visible .tease-play { background: var(--cream); }
/* While Go time is in the phone, the card steps aside. */
.try-stage.going .tease { opacity: 0; scale: 0.9; pointer-events: none; }
@media (max-width: 520px) {
  /* On a phone it sits beside the narrator, above the phone, so Chad is on the first screen. */
  .narrator { justify-self: start; max-width: calc(100% - 6.9rem); min-height: 6.3rem; font-size: 0.88rem; }
  .tease { width: 6.2rem; right: 0; top: 0.35rem; bottom: auto; }
  .tease-line { font-size: 0.95rem; top: calc(100cqw - 1.85rem); }
  .tease-play { font-size: 0.72rem; padding-inline: 0.2rem; }
}

/* ---------- The phone: the workout screen in HTML ----------
   Everything inside is sized in em, and the em follows the phone's width (cqw),
   so the screen scales like a picture but keeps real, tappable buttons. */
.phone.try { container-type: inline-size; transform: rotate(-2deg); }
/* Slides in without fading, so the phone is there even if animations are paused. */
@keyframes arrive-try { from { transform: translateY(40px) rotate(0deg); } to { transform: rotate(-2deg); } }
.hero .phone.try { animation-name: arrive-try; }
.app {
  --a-bg: #0f1a16; --a-card: #16241e; --a-line: #24382f; --a-box: #0a1310; --a-gold: #d9a648; --a-ink: #efe7d4; --a-muted: #a3ad9f; --a-mint: #6fb59a;
  position: relative; height: 100%; overflow: hidden; border-radius: 2.05rem; background: var(--a-bg); color: var(--a-ink);
  font: 500 4.1cqw/1.25 var(--text); display: flex; flex-direction: column;
}
.app button { font: inherit; color: inherit; cursor: pointer; }
.app-top { display: flex; align-items: center; gap: 0.7em; padding: 1.5em 1.2em 0.8em; border-bottom: 1px solid var(--a-line); font-size: 1.05em; }
.app-top b { flex: 1; font-weight: 600; }
.app-top .round { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--a-card); color: var(--a-gold); font-size: 0.85em; }
.app-top .finish { padding: 0.45em 0.9em; border-radius: 999px; background: var(--a-gold); color: #1a140a; font-size: 0.8em; font-weight: 700; }
.app-stats { display: flex; gap: 2.2em; margin: 0; padding: 0.7em 1.2em; }
.app-stats dt { color: var(--a-muted); font-size: 0.82em; }
.app-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rest { margin: 0 0.9em 0.6em; padding: 0.7em; border-radius: 1em; background: var(--a-card); border: 1px solid #3b6555; display: grid; gap: 0.6em; }
.rest p { display: flex; align-items: baseline; gap: 0.5em; font-size: 0.85em; font-weight: 600; }
.rest p b { font-size: 1.7em; font-variant-numeric: tabular-nums; }
.rest-btns { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.4em; }
.rest-btns button { padding: 0.6em 0; border-radius: 0.7em; border: 1px solid var(--a-line); background: var(--a-box); font-weight: 700; font-size: 0.85em; }
.rest-btns .skip-rest { background: var(--a-mint); border-color: var(--a-mint); color: #0b1d16; }
.card { margin: 0 0.9em; padding: 0.9em 0.7em; border-radius: 1em; background: var(--a-card); display: grid; gap: 0.55em; align-content: start; }
.card .ex { color: var(--a-gold); font-weight: 700; font-size: 1em; }
.card.later { margin-top: 0.6em; opacity: 0.7; }
.card.later p { color: var(--a-muted); font-size: 0.8em; }
.restchip { justify-self: start; padding: 0.2em 0.6em; border-radius: 999px; background: var(--a-box); color: var(--a-gold); font-size: 0.72em; font-weight: 700; }
.hitline { font-size: 0.78em; color: var(--a-ink); }
.hitline b { color: var(--a-gold); }
.sets { display: grid; gap: 0.35em; }
.sets-head, .set { display: grid; grid-template-columns: 1.7em minmax(0, 1fr) 3.4em 2.8em 2.6em; align-items: center; gap: 0.35em; }
.sets-head > span { font-size: 0.66em; }
.sets-head { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--a-muted); padding-inline: 0.4em; }
.set { padding: 0.3em 0.4em; border-radius: 0.7em; border: 1px solid transparent; }
.set .n { font-weight: 700; text-align: center; font-size: 0.85em; }
.set .prev { color: var(--a-muted); font-size: 0.78em; white-space: nowrap; }
.set .box { display: grid; place-items: center; height: 2.1em; border-radius: 0.55em; background: var(--a-box); border: 1px solid var(--a-line); font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(217, 166, 72, 0.55); }
.tick { width: 2.3em; height: 2.1em; border-radius: 0.55em; border: 1px solid var(--a-line); background: #2a3a33; color: var(--a-muted); font-weight: 700; padding: 0; }
.tick:disabled { cursor: default; }
.set.warm .n { color: var(--a-gold); }
.set.done { background: rgba(217, 166, 72, 0.14); border-color: rgba(217, 166, 72, 0.25); }
.set.done .box { color: var(--a-ink); border-color: transparent; }
.set.done .tick { background: var(--a-gold); border-color: var(--a-gold); color: #1a140a; }
.set.next { border-color: rgba(217, 166, 72, 0.4); }
.set.next .prev::before { content: "◎ "; color: var(--a-gold); }
.set.next .box { border-style: dashed; border-color: rgba(217, 166, 72, 0.5); color: var(--a-gold); }
.set.next .tick { background: var(--a-box); border: 2px solid var(--a-gold); color: var(--a-gold); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 0.35em rgba(217, 166, 72, 0.28); } }
.hitchip { justify-self: start; margin: -0.1em 0 0.1em 2.2em; padding: 0.2em 0.6em; border-radius: 999px; background: var(--a-gold); color: #1a140a; font-size: 0.72em; font-weight: 700; animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pop { from { scale: 0.6; opacity: 0; } }

/* Go time, as the app draws it: the Meme caption look, the app's default (src/components/workout/go-time-looks.tsx).
   The app's sizes are in points on a phone about 390 wide; here 1 point is 0.0625em.
   The black edge round the white words is 3 points, 0.77cqw at any size. */
@font-face { font-family: 'Anton'; src: url("fonts/anton-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
.go-box {
  position: absolute; top: 1.1em; left: 0.75em; right: 0.75em; z-index: 3;
  display: block; padding: 0; border: 0; overflow: hidden; text-align: center;
  background: #000; border-radius: 1em; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  animation: fade-in-down 0.5s ease-out;
}
.go-box img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.go-tag {
  position: absolute; left: 0.625em; top: 0.625em; padding: 0.125em 0.5em; border-radius: 999px;
  background: rgba(0, 0, 0, 0.65); color: #efe7d4; font: 700 0.75em/1.33 var(--text); letter-spacing: 0.083em;
}
.go-words { position: absolute; left: 1em; right: 1em; bottom: 0.625em; display: grid; justify-items: center; }
.go-rest, .go-num, .go-line, .tease-line {
  --e: 0.77cqw;
  font-family: 'Anton', Impact, 'Arial Narrow Bold', sans-serif; font-weight: 400; color: #fff; text-align: center; overflow-wrap: anywhere;
  text-shadow: calc(var(--e) * -1) calc(var(--e) * -1) 0 #000, 0 calc(var(--e) * -1) 0 #000, var(--e) calc(var(--e) * -1) 0 #000,
    calc(var(--e) * -1) 0 0 #000, var(--e) 0 0 #000, calc(var(--e) * -1) var(--e) 0 #000, 0 var(--e) 0 #000, var(--e) var(--e) 0 #000;
}
.go-rest { font-size: 1.875em; line-height: 1.267; }
.go-num { font-size: 6em; line-height: 1.167; font-variant-numeric: tabular-nums; }
.go-line { line-height: 1.18; }
.go-line.big { font-size: 3em; }
.go-line.mid { font-size: 2.375em; }
.go-line.small { font-size: 1.875em; }
/* Each number, and then the line, punches in like the app's ZoomIn. */
.punch { animation: punch 0.22s ease-out; }
@keyframes punch { from { scale: 0; } }
@keyframes fade-in-down { from { opacity: 0; transform: translateY(-1.5em); } }

/* The plain pill: no coach, just "Go time" when the rest is over, and the screen's edges flash. */
.go-pill {
  position: absolute; top: 1.1em; left: 50%; translate: -50% 0; z-index: 3;
  display: grid; justify-items: center; padding: 0.5em 1.5em; border-radius: 999px;
  background: var(--a-gold); color: #1a140a; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); white-space: nowrap;
  animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), fade-out 0.4s ease 2.5s forwards;
}
.go-pill b { font-size: 1.375em; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.go-pill span { font-size: 0.8em; font-weight: 600; }
.app.flash { animation: edge-flash 0.9s ease-out 2; }
@keyframes edge-flash { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; } 30% { box-shadow: inset 0 0 0 6px var(--a-gold); } }
@keyframes fade-out { to { opacity: 0; } }

/* The end */
.done-screen { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 0.6em; padding: 1.5em; background: var(--a-bg); text-align: center; animation: pop 0.4s ease-out; }
.done-screen .big { font: 700 2em/1.05 var(--display); color: var(--a-ink); }
.done-screen .best { padding: 0.35em 0.8em; border-radius: 999px; background: var(--a-gold); color: #1a140a; font-weight: 700; }
.done-screen .small { color: var(--a-muted); font-size: 0.85em; }
.done-screen button { margin-top: 0.6em; padding: 0.7em 1.4em; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-card); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .set.next .tick, .hitchip, .go-box, .go-pill, .done-screen, .punch, .tease { animation: none; }
  .app.flash { animation: none; box-shadow: inset 0 0 0 6px var(--a-gold); }
}

/* ---------- How it works: plans list and the figure grid ---------- */
.plan-list { border-top: 1px solid var(--line); padding-top: 0.6rem; }
.plan-list summary { cursor: pointer; font-weight: 600; color: var(--brass-ink); padding-block: 0.3rem; }
.plan-list ul { list-style: none; padding: 0.5rem 0 0; margin: 0; display: grid; }
.plan-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.plan-list li b { color: var(--ink); font-weight: 600; }
.plan-list li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.fig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; width: min(100%, 26rem); }
.fig-grid figure { margin: 0; padding: 0.5rem 0.5rem 0.7rem; border-radius: 1.1rem; background: var(--figure-bg); display: grid; gap: 0.4rem; }
.fig-grid video { width: 100%; aspect-ratio: 1 / 1.04; object-fit: contain; border-radius: 0.8rem; }
.fig-grid figcaption { font: 700 1rem/1 var(--display); color: var(--cream); padding-inline: 0.3rem; }

/* ---------- The tour window ---------- */
.tour { width: min(92vw, 26rem); padding: 0.8rem; border: 0; border-radius: 1.4rem; background: var(--forest); color: var(--cream); }
.tour::backdrop { background: rgba(5, 10, 8, 0.75); }
.tour video { width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; border-radius: 1rem; background: #000; }
.tour form { display: flex; justify-content: center; margin-top: 0.7rem; }

.btn-ghost { background: transparent; }
