/* GymPlan landing. Dark-only by brand choice (matches the promo films). One accent, one radius (6px; the phone frame is the only exception). */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/assets/fonts/barlow-condensed-800.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0e0f11;
  --bg-2: #16181b;
  --bg-3: #1d2024;
  --line: rgb(255 255 255 / 0.09);
  --text: #f2f1ee;
  --muted: #a3a6ad;
  --accent: #f05a1a;
  --on-accent: #0e0f11;
  --r: 6px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.005em; margin: 0; }
h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); max-width: 16ch; }
h3 { font-size: 1.6rem; line-height: 1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.lead { color: var(--muted); font-size: 1.1875rem; max-width: 46ch; }
.eyebrow { font: 600 0.8125rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; background: var(--accent); color: var(--on-accent); font: 600 1.125rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; padding: 16px 22px; border-radius: var(--r); border: 1px solid var(--accent); transition: transform 0.2s var(--ease), background 0.2s var(--ease); }
.btn:hover { background: #ff6a2b; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:hover svg { transform: translateX(3px); }
.btn svg { transition: transform 0.2s var(--ease); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgb(255 255 255 / 0.22); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.06); }
.btn-sm { padding: 11px 16px; font-size: 1rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(14 15 17 / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.5rem/1 var(--display); text-transform: uppercase; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: var(--on-accent); border-radius: var(--r); }
.brand-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.975rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; min-height: calc(100dvh - 68px - 168px); }
.hero h1 { font-size: clamp(2.9rem, 5vw, 4.75rem); }
@media (min-width: 768px) { .hero h1 span { white-space: nowrap; } }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-top: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-media { position: relative; aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: 100%; max-width: 520px; }
.hero-gym { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); filter: grayscale(1) contrast(1.08) brightness(0.8); }
.hero-media::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); background: linear-gradient(200deg, transparent 40%, rgb(14 15 17 / 0.85)); pointer-events: none; }
.phone { position: absolute; z-index: 1; left: -44px; bottom: -40px; width: 42%; aspect-ratio: 1170 / 2532; padding: 7px; background: #050506; border-radius: 34px; border: 1px solid rgb(255 255 255 / 0.14); box-shadow: 0 30px 80px rgb(0 0 0 / 0.55); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }

/* How it works */
.how { padding: 120px 0; border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: 48px; margin-top: 56px; align-items: center; }
.how-steps { display: grid; gap: 4px; }
.step { display: flex; gap: 16px; text-align: left; background: none; border: 0; border-left: 2px solid var(--line); color: var(--muted); padding: 18px 20px; cursor: pointer; font: inherit; transition: color 0.25s, border-color 0.25s, background 0.25s; }
.step svg { width: 26px; height: 26px; margin-top: 2px; }
.step strong { display: block; font: 800 1.75rem/1 var(--display); text-transform: uppercase; color: var(--text); margin-bottom: 6px; opacity: 0.55; transition: opacity 0.25s; }
.step:hover strong, .step.is-active strong { opacity: 1; }
.step.is-active { color: var(--text); border-left-color: var(--accent); background: linear-gradient(90deg, rgb(240 90 26 / 0.08), transparent 70%); }
.step.is-active svg { color: var(--accent); }
.how-screen { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 16 / 10; }
.how-screen video { width: 100%; height: 100%; object-fit: cover; }

/* Exercise library */
.library { padding: 120px 0; background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.library .lead { margin-top: 20px; }
.marquee { margin-top: 56px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.ex { width: 260px; margin: 0; }
.ex img { width: 260px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--bg-3); }
.ex figcaption { margin-top: 10px; font: 600 1.05rem/1.2 var(--display); text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track.is-ready { animation: marquee 80s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stat */
.stat { padding: 128px 0; }
.stat-in { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.stat-num { font: 800 clamp(7rem, 17vw, 14rem)/0.8 var(--display); color: var(--accent); letter-spacing: -0.02em; }
.stat-num small { font-size: 0.45em; margin-left: 4px; }
.stat-text { font: 600 clamp(1.6rem, 2.8vw, 2.4rem)/1.15 var(--display); text-transform: uppercase; max-width: 22ch; }
.cite { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }

/* Merchant bento */
.merchants { padding: 120px 0; border-top: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; }
.cell { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.cell > svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: auto; padding-bottom: 28px; box-sizing: content-box; }
.cell p { color: var(--muted); max-width: 42ch; }
.cell-rev { grid-column: span 4; padding: 0; }
.cell-rev img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.cell-rev .cell-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cell-rev .cell-body svg { width: 30px; height: 30px; color: var(--accent); }
.cell-cat { grid-column: span 2; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; gap: 8px; margin-bottom: auto; padding-bottom: 24px; }
.products img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--r); background: #fff; }
.cell-theme, .cell-lang { grid-column: span 2; }
.langs { font: 800 2.5rem/0.95 var(--display); color: var(--text) !important; letter-spacing: 0.02em; margin-bottom: auto; padding-bottom: 20px; word-spacing: 0.2em; }
.cell-priv { grid-column: span 2; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cell-priv p, .cell-priv > svg { color: rgb(14 15 17 / 0.8); }

/* FAQ */
.faq { padding: 120px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font: 600 1.45rem/1.2 var(--display); text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary svg { color: var(--accent); transition: transform 0.3s var(--ease); }
details[open] summary svg { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 48px 26px 0; max-width: 62ch; }
details a { color: var(--text); text-underline-offset: 3px; }

/* Final CTA + footer */
.final { padding: 140px 0; }
.final-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.final h2 { font-size: clamp(3rem, 7vw, 6.25rem); max-width: none; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.95rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Scroll reveal: hidden only once JS confirms motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 72px; }
  .hero-media { justify-self: center; max-width: 440px; }
  .phone { left: -40px; }
  .how-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-rev, .cell-cat { grid-column: span 2; }
  .cell-theme, .cell-lang, .cell-priv { grid-column: span 1; }
  .cell-priv { grid-column: span 2; }
  .faq-in { grid-template-columns: 1fr; gap: 32px; }
}

/* Phone */
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 80px; }
  .hero-media { width: calc(100% - 40px); margin-left: 40px; }
  .phone { left: -40px; bottom: -32px; width: 44%; border-radius: 24px; padding: 5px; }
  .phone video { border-radius: 19px; }
  .how, .library, .merchants, .faq { padding: 88px 0; }
  .step { padding: 14px 14px; }
  .stat { padding: 96px 0; }
  .stat-in { grid-template-columns: 1fr; gap: 28px; }
  .bento { grid-template-columns: 1fr; }
  .cell-rev, .cell-cat, .cell-theme, .cell-lang, .cell-priv { grid-column: auto; }
  .ex, .ex img { width: 200px; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .final { padding: 104px 0; }
  .foot nav { flex-wrap: wrap; }
}

/* Legal pages */
.legal { padding-top: 72px; padding-bottom: 120px; max-width: 760px; }
.legal h1 { font-size: clamp(3rem, 7vw, 5rem); }
.legal h2 { font-size: 1.9rem; max-width: none; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 12px; margin: 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal code { font-size: 0.9em; background: var(--bg-3); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.updated { margin: 16px 0 40px; font-size: 0.95rem; }
