/* Colours follow athlium-mobile lib/app/theme.dart (AppColors) and brand/README.md. */
:root {
  --bg: #000;
  --bg2: #0b0b0d;
  --surface: #1C1C1E;
  --surface2: #2C2C2E;
  --surface3: #3A3A3C;
  --sep: rgba(84, 84, 88, .6);
  --label: #fff;
  --label2: rgba(235, 235, 245, .62);
  --label3: rgba(235, 235, 245, .34);
  --indigo: #536DFE;
  --indigo-deep: #3F51B5;
  --button: #4C5BF5;
  --accent-text: #8C9EFF;
  --success: #30D158;
  --yellow: #FFD60A;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--label); font: 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p, figure, ul { margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 12px var(--gutter); background: rgba(0,0,0,.72); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; color: var(--label2); }
.nav nav a:hover { color: var(--label); }
.pill { padding: 7px 14px; border-radius: 999px; background: var(--button); color: #fff; font-weight: 600; }

/* hero */
.hero { padding: clamp(56px, 9vh, 110px) var(--gutter) 40px; max-width: 1200px; margin: 0 auto; text-align: center; }
.sub { margin: 22px auto 0; max-width: 640px; font-size: clamp(17px, 1.5vw, 21px); color: var(--label2); }
.hint { color: var(--accent-text); }
.map { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; margin: 48px auto 0; max-width: 1080px; text-align: left; }
.figures { display: flex; gap: 0; margin-left: -20px; justify-content: center; outline: none; border-radius: 24px; }
.figures:focus-visible { box-shadow: 0 0 0 2px var(--indigo); }
.figures svg { height: clamp(420px, 64vh, 720px); width: auto; }
.figures path { fill: #2A2A2E; stroke: #000; stroke-width: 1.5; transition: fill .25s; }
.figures path.other { fill: #222226; }
.figures path.inert { fill: #1c1c1f; }
.figures path.muscle { cursor: pointer; }
.figures path.muscle:hover { fill: #4A55B4; }
.figures path.muscle.on { fill: var(--indigo); filter: drop-shadow(0 0 10px rgba(83,109,254,.7)); }
.panel { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 28px; padding: 26px; min-height: 480px; display: flex; flex-direction: column; gap: 18px; }
.panel-head h2 { font-size: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-head p { color: var(--accent-text); margin-top: 4px; font-weight: 500; }
.gifs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.gifs figure { background: #fff; border-radius: 18px; overflow: hidden; }
.gifs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gifs figcaption { padding: 8px 12px 10px; color: #111; font-size: 13px; font-weight: 500; text-transform: capitalize; line-height: 1.25; height: calc(2 * 1.25em + 18px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gifs figure.blank { background: var(--surface2); }
.panel-foot { color: var(--label3); font-size: 14px; margin-top: auto; }

/* feature sections */
.feature { max-width: 1200px; margin: 0 auto; padding: clamp(80px, 12vh, 150px) var(--gutter) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.flip .copy { order: 2; }
.feature.wide { grid-template-columns: 1fr; text-align: center; }
.copy.center { max-width: 760px; margin: 0 auto; }
.kicker { color: var(--accent-text); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.copy p { color: var(--label2); font-size: clamp(17px, 1.4vw, 20px); margin-top: 20px; }
.copy .kicker { margin-top: 0; font-size: 15px; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--label2); }
.points b { color: var(--label); font-weight: 600; }
.phone-wrap { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.phone { aspect-ratio: 585 / 1266; width: min(300px, 78vw); border-radius: 44px; box-shadow: 0 0 0 10px #121214, 0 0 0 11px rgba(255,255,255,.1), 0 40px 90px -20px rgba(0,0,0,.9); background: #000; }
.duo .phone { width: min(250px, 42vw); }
.duo .phone:first-child { transform: translateY(-30px); }
.trio { margin-top: 48px; }
.trio .phone { width: min(230px, 28vw); }
.trio .phone.big { width: min(290px, 34vw); z-index: 1; }

/* privacy strip */
.strip { max-width: 1200px; margin: clamp(80px, 12vh, 150px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip div { border-top: 1px solid var(--sep); padding-top: 18px; }
.strip b { display: block; font-size: 18px; margin-bottom: 6px; }
.strip span { color: var(--label2); font-size: 15px; }

/* download */
.download { text-align: center; padding: clamp(80px, 12vh, 150px) var(--gutter) 80px; max-width: 760px; margin: 0 auto; }
.download img { margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 20px 60px rgba(83,109,254,.45); }
.download p { color: var(--label2); margin-top: 18px; font-size: 19px; }
.download p a { color: var(--accent-text); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.stores-hero { margin-top: 36px; }
.store { display: flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 14px; background: #fff; color: #000; text-align: left; font-weight: 600; font-size: 17px; line-height: 1.1; transition: transform .2s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .6; }

.foot { max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter) 48px; border-top: 1px solid var(--sep); display: flex; flex-wrap: wrap; gap: 14px 28px; color: var(--label3); font-size: 13px; }
.foot a:hover { color: var(--label); }

@media (max-width: 900px) {
  .map { grid-template-columns: 1fr; }
  .figures svg { height: clamp(340px, 50vh, 480px); }
  .panel { min-height: 0; }
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature.flip .copy { order: 0; }
  .copy p { margin-left: auto; margin-right: auto; max-width: 560px; }
  .points { justify-items: center; }
  .strip { grid-template-columns: 1fr 1fr; }
  .trio { flex-wrap: wrap; }
  .trio .phone { width: min(180px, 40vw); }
  .trio .phone.big { width: min(220px, 48vw); }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav { gap: 12px; }
  .pill { margin-left: auto; }
  h1 br { display: none; }
  .figures svg { height: 300px; }
  .gifs figcaption { font-size: 12px; }
  .strip { grid-template-columns: 1fr; }
  .duo .phone { width: min(170px, 42vw); }
  .duo .phone:first-child { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 640px) {
  .trio { flex-wrap: nowrap; align-items: center; }
  .trio .phone { width: 26vw; }
  .trio .phone.big { width: 40vw; }
}
.feature.wide { overflow-x: clip; }
@media (max-width: 640px) { .trio { gap: 10px; } .trio .phone { width: 24vw; } .trio .phone.big { width: 38vw; } .feature.wide h2 { font-size: 30px; } }

/* the exercise animation plays over the phone's still, where the app draws it (inverted, as in the app) */
.phone-anim { position: relative; display: inline-block; }
.phone-anim .gif { position: absolute; left: 3.5%; top: 19.8%; width: 38.5%; aspect-ratio: 1; object-fit: contain; filter: invert(1) hue-rotate(180deg); background: #000; pointer-events: none; }
.trio .phone-anim.big { z-index: 1; }

/* close-ups beside the phone */
.feature.zoomed { grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 56px); }
.feature.zoomed.flip .copy { order: 0; }
.feature.zoomed.flip .phone-wrap { order: 2; }
.feature.zoomed.flip .zooms { order: 1; }
.zooms { display: grid; gap: 18px; align-content: center; }
.zooms figure { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 10px 10px 12px; }
.zooms img { width: 100%; height: auto; border-radius: 12px; }
.zooms figcaption { color: var(--label2); font-size: 14px; line-height: 1.4; padding: 10px 4px 0; }
.zooms figcaption b { color: var(--label); font-weight: 600; }
.zooms.row { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 40px auto 0; text-align: left; }
@media (max-width: 1000px) {
  .feature.zoomed { grid-template-columns: 1fr; }
  .feature.zoomed .phone-wrap, .feature.zoomed.flip .phone-wrap { order: 1; }
  .feature.zoomed .zooms, .feature.zoomed.flip .zooms { order: 2; grid-template-columns: 1fr 1fr; max-width: 720px; margin: 0 auto; text-align: left; }
}
@media (max-width: 640px) {
  .feature.zoomed .zooms, .feature.zoomed.flip .zooms, .zooms.row { grid-template-columns: 1fr; }
}
