/* ==========================================================================
   rep.ai — landing page
   ========================================================================== */

/* Outfit (SIL Open Font License) — self-hosted, no requests to Google */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #08070d;
  --bg-2: #0e0c15;
  --surface: #13101c;
  --surface-2: #1a1626;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(190, 150, 255, 0.35);
  --text: #f6f3fb;
  --text-2: #c9c3d6;
  --muted: #8f879f;
  --accent: #c9a3ff;
  --accent-2: #a87bf5;
  --accent-deep: #6d3fd1;
  --btn-grad: linear-gradient(135deg, #ecd3ff 0%, #c8a0ff 55%, #b98af7 100%);
  --btn-text: #1a1028;
  --glow: rgba(150, 90, 255, 0.45);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1240px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  background-image:
    radial-gradient(900px 600px at 70% -10%, rgba(120, 70, 220, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(120, 70, 220, 0.08), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--btn-text); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 16px/1 var(--font); border-radius: 999px; padding: 15px 26px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--btn-grad); color: var(--btn-text); box-shadow: 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(201,163,255,.06); }
.btn-sm { font-size: 15px; padding: 11px 20px; }
.btn-lg { font-size: 19px; padding: 18px 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1; }
.logo-mark { width: 40px; height: auto; flex: none; filter: drop-shadow(0 4px 14px rgba(150, 90, 255, .45)); transition: transform .3s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-text span { color: var(--accent); }
.main-nav ul { display: flex; gap: 44px; }
.main-nav a { color: var(--text-2); font-size: 16px; font-weight: 500; transition: color .2s; }
.main-nav ul a:hover { color: var(--text); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1.2fr; align-items: center; gap: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent);
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(201, 163, 255, 0.06); margin-bottom: 24px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero-title { font-size: clamp(44px, 5.3vw, 80px); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin-bottom: 26px; }
.hero-title span { display: block; white-space: nowrap; }
.hero-title .accent { background: linear-gradient(100deg, #e1c6ff, #b98af7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); max-width: 34ch; line-height: 1.5; }
.hero-note { font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 13px; border-radius: 12px;
  background: #000; border: 1px solid rgba(255,255,255,.16); color: #fff;
  transition: border-color .2s, transform .2s var(--ease);
}
.store-badge:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge span { display: flex; flex-direction: column; font-weight: 600; font-size: 16px; line-height: 1.1; }
.store-badge small { font-size: 10.5px; font-weight: 400; color: #c9c3d6; letter-spacing: .02em; }

.hero-visual { position: relative; min-height: 620px; display: flex; align-items: center; justify-content: flex-start; }
.hero-glow {
  position: absolute; left: 6%; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(150, 90, 255, .35), transparent 65%); filter: blur(10px); pointer-events: none;
}
.hero-coach { position: relative; width: min(420px, 52%); margin-left: 0; filter: drop-shadow(0 30px 60px rgba(120, 60, 230, .35)); animation: float 6s ease-in-out infinite; z-index: 1; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 320px; flex: none;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #3a2f52, #15111f 40%, #2a2140);
  box-shadow: 0 0 0 1px rgba(201,163,255,.25), 0 40px 80px -20px rgba(0,0,0,.8), 0 0 80px -10px rgba(140, 80, 255, .35);
}
.phone-screen { background: #0b0a10; border-radius: 37px; padding: 16px 16px 18px; overflow: hidden; position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.phone-status { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--text); padding: 2px 10px 18px; }
.status-icons { display: flex; gap: 4px; align-items: flex-end; }
.status-icons i { display: block; width: 4px; background: var(--text); border-radius: 1px; }
.status-icons i:nth-child(1) { height: 6px; } .status-icons i:nth-child(2) { height: 9px; } .status-icons i:nth-child(3) { height: 12px; width: 16px; border-radius: 3px; }
.phone-head { padding: 0 4px; margin-bottom: 14px; }
.phone-title { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 2px; letter-spacing: -0.02em; }
.phone-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); margin: 0; }
.phone-sub span:last-child:not(:first-child) { color: var(--muted); font-size: 12px; }
.phone-label { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 4px 8px; }

.workout-list { display: grid; gap: 8px; margin-bottom: 14px; }
.workout-list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 7px 12px 7px 7px;
}
.workout-list img { width: 52px; height: 52px; object-fit: contain; background: #0b0a10; border-radius: 12px; padding: 3px; }
.workout-list div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.workout-list b { color: var(--text); font-size: 14.5px; font-weight: 600; }
.workout-list small { color: var(--muted); font-size: 12px; }
.chev { color: var(--text-2); font-size: 22px; line-height: 1; }
.phone-btn { display: block; text-align: center; background: var(--btn-grad); color: var(--btn-text); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 12px; }

.hero-phone { position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(3deg); z-index: 2; animation: float-phone 7s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.hero, .section, #features { overflow-x: clip; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.kicker { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 700; margin-bottom: 20px; }
.section-lead { font-size: 19px; color: var(--text-2); max-width: 62ch; }

/* ---------- How it works ---------- */
.how { padding-top: 90px; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; }
.step-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 28px;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.step-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 20px 60px -30px var(--glow); }
.step-art { height: 210px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px; position: relative; }
.step-art::before { content: ""; position: absolute; inset: 20% 15% 0; background: radial-gradient(ellipse at 50% 70%, rgba(150, 90, 255, .28), transparent 65%); }
.step-art img { position: relative; height: 100%; width: auto; object-fit: contain; }
.scan-frame::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 170px; height: 100%; transform: translateX(-50%);
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 22px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 22px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 22px no-repeat;
  opacity: .8;
}
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: var(--accent); font-weight: 700; font-size: 17px;
  background: rgba(201,163,255,.06); margin-bottom: 14px;
}
.step-card h3 { font-size: 22px; margin-bottom: 10px; }
.step-card p { font-size: 16px; margin: 0; color: var(--text-2); }
.step-arrow { align-self: center; color: var(--accent); font-size: 30px; }

/* ---------- Feature sections ---------- */
.feature { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-grid.reverse .feature-copy { order: 2; }
.feature-copy { max-width: 560px; }
.feature-copy p { font-size: 18px; }
.list-intro { color: var(--text); font-weight: 600; margin-bottom: 12px; }
.check-list { display: grid; gap: 12px; margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 38px; color: var(--text); font-size: 17px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(201,163,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23c9a3ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--line-strong);
}
.pull { color: var(--text) !important; font-weight: 600; font-size: 20px !important; border-left: 3px solid var(--accent); padding-left: 18px; }
.disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px !important; color: var(--text-2);
  background: rgba(201,163,255,.06); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px;
}
.disclaimer svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }

.feature-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.glow-orb { position: absolute; width: min(460px, 100vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(140, 80, 255, .3), transparent 65%); pointer-events: none; }
.float-mascot { position: absolute; width: 190px; z-index: 3; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; }
.float-right { right: 0; bottom: 0; }
#ai-workout-planner .phone { margin-right: 150px; }
.float-left { left: 0; bottom: 10px; animation-delay: -2s; }

.mini-card { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; margin-bottom: 12px; }
.mini-card div { display: flex; flex-direction: column; line-height: 1.3; }
.mini-card b { color: var(--text); font-size: 16px; }
.mini-card small { font-size: 12px; color: var(--text-2); }
.tag { color: var(--accent) !important; font-weight: 700; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; }
.plan-hero { background: linear-gradient(135deg, #2a1f45, #16121f); }
.plan-hero img { width: 104px; }

.week-dots { display: flex; justify-content: space-between; background: var(--surface-2); border-radius: 16px; padding: 10px 12px; margin-bottom: 12px; }
.week-dots span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); background: #0f0d16; }
.week-dots .on { background: var(--accent-deep); color: #fff; }

.plan-list { display: grid; gap: 8px; }
.plan-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; }
.plan-list li > div { display: flex; flex-direction: column; line-height: 1.3; }
.plan-list b { color: var(--text); font-size: 14px; }
.plan-list small { color: var(--muted); font-size: 11.5px; }
.plan-meta { align-items: flex-end; text-align: right; }
.suggest { font-size: 13px; font-weight: 700; color: var(--btn-text); background: var(--accent); padding: 2px 9px; border-radius: 999px; margin-bottom: 3px; }

/* Body scan visual */
.scan-stage { position: relative; width: 300px; padding: 24px 20px 10px; z-index: 1; }
.scan-stage img { width: 100%; filter: drop-shadow(0 30px 60px rgba(120, 60, 230, .35)); }
.scan-stage::after {
  content: ""; position: absolute; left: 8%; right: 8%; height: 2px; top: 10%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 4px rgba(201,163,255,.55);
  animation: scan 4s ease-in-out infinite;
}
.corner { position: absolute; width: 36px; height: 36px; border: 2.5px solid var(--accent); opacity: .9; }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }

.stat-card {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px;
  background: rgba(22, 18, 32, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 14px 16px; min-width: 170px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
}
.stat-card small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat-card b { color: var(--text); font-size: 24px; letter-spacing: -0.02em; }
.stat-a { left: 0; top: 16%; animation: float 7s ease-in-out infinite; }
.stat-b { right: 0; bottom: 18%; animation: float 7s ease-in-out infinite -3s; }
.pill { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(201,163,255,.12); border-radius: 999px; padding: 3px 10px; margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 8px; }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: #5b35b5; }
.bars i.hi { background: var(--accent); box-shadow: 0 0 16px rgba(201,163,255,.5); }
.bars.tall { height: 110px; gap: 9px; }

/* Nutrition */
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.targets div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 11px; display: flex; flex-direction: column; line-height: 1.2; }
.targets b { color: var(--text); font-size: 18px; }
.targets small { color: var(--muted); font-size: 11.5px; }
.protein-bar { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: 14px; padding: 11px 13px 13px; margin-bottom: 12px; }
.protein-bar span:last-of-type { color: var(--text); font-weight: 600; }
.protein-bar i { flex-basis: 100%; height: 7px; border-radius: 9px; margin-top: 8px; background: linear-gradient(90deg, var(--accent) var(--w), #2a2340 var(--w)); }
.meal { align-items: center; }
.meal img { width: 80px; height: 110px; object-fit: contain; }

/* Recovery */
.recovery-card {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: linear-gradient(180deg, #1b1529, #110e19); border: 1px solid var(--line-strong);
  border-radius: 28px; padding: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 80px -20px rgba(140, 80, 255, .35);
}
.rc-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.rc-top > div:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.big { font-size: 42px; color: var(--text); letter-spacing: -0.03em; }
.moon { position: relative; width: 84px; height: 84px; flex: none; }
.moon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 20px rgba(201,163,255,.5)); }
.spark { position: absolute; color: var(--accent); animation: twinkle 3s ease-in-out infinite; }
.s1 { top: -4px; right: -10px; font-size: 18px; }
.s2 { bottom: 6px; right: -18px; font-size: 12px; animation-delay: -1.5s; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.rc-stats div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; line-height: 1.25; }
.rc-stats b { color: var(--text); font-size: 18px; }
.rc-stats small { color: var(--muted); font-size: 12px; }
.rc-week { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; }
.rc-week-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.rc-week-head span:last-child { color: var(--muted); font-weight: 400; font-size: 13px; }
.days { display: flex; gap: 9px; margin-top: 6px; }
.days span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.rc-note { display: flex; gap: 14px; align-items: flex-start; background: rgba(201,163,255,.07); border-radius: 16px; padding: 14px 16px; }
.rc-note > span { font-size: 26px; color: var(--accent); line-height: 1; }
.rc-note p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.rc-note b { display: block; color: var(--text); }

/* ---------- At a glance ---------- */
.glance { border-top: 1px solid var(--line); }
.glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.glance-grid div { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.glance-grid dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.glance-grid dd { margin: 0; color: var(--text); font-size: 17px; line-height: 1.5; }

/* ---------- FAQ + CTA ---------- */
.faq-cta { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.faq h2 { margin-bottom: 28px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px;
  background: rgba(255,255,255,.02); transition: border-color .25s, background .25s;
}
.faq-item[open] { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(150, 90, 255, .1), rgba(150, 90, 255, .03)); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: -6px;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq-item h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.faq-a { padding: 0 22px 18px; }
.faq-a p { font-size: 16px; color: var(--text-2); margin: 0 0 .7em; }
.faq-a p:last-child { margin: 0; }

.cta-card {
  position: sticky; top: 100px; overflow: hidden;
  border-radius: 28px; padding: 0 34px 34px;
  background: linear-gradient(160deg, #2a1d4a 0%, #171225 55%, #120e1c 100%);
  border: 1px solid rgba(190, 150, 255, .5);
  box-shadow: 0 0 0 1px rgba(190,150,255,.1) inset, 0 30px 90px -30px rgba(140, 80, 255, .55);
}
.cta-glow { position: absolute; top: -120px; left: 50%; width: 480px; height: 480px; transform: translateX(-50%); background: radial-gradient(circle, rgba(170, 110, 255, .45), transparent 65%); pointer-events: none; }
.cta-coach { position: relative; width: 78%; max-width: 360px; margin: 6px auto -6px; }
.cta-body { position: relative; }
.cta-card h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 14px; }
.cta-card p { font-size: 17px; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.signup input {
  flex: 1 1 220px; min-width: 0; font: 500 16px var(--font); color: var(--text);
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 15px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,163,255,.18); }
.signup .btn { flex: 0 0 auto; }
.form-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; min-height: 0; }
.form-msg.ok { color: #9ff0c4; }
.form-msg.err { color: #ffb4c4; }
.fine { font-size: 13px !important; color: var(--muted); margin-bottom: 20px; }
.store-row.compact .store-badge { padding: 8px 14px 8px 11px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { margin: 0 0 4px; font-size: 16px; }
.footer-nav { display: flex; gap: 72px; }
.footer-nav ul { display: grid; gap: 10px; align-content: start; }
.footer-nav a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-phone { 0%, 100% { transform: translateY(-50%) rotate(3deg); } 50% { transform: translateY(calc(-50% - 10px)) rotate(3deg); } }
@keyframes scan { 0%, 100% { top: 12%; opacity: .2; } 50% { top: 86%; opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; }
  .hero-phone { width: 290px; }
  .main-nav ul { gap: 30px; }
}

@media (max-width: 1020px) {
  .main-nav ul { gap: 22px; }
  .main-nav a { font-size: 15px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .hero-visual { min-height: 560px; justify-content: center; }
  .hero-coach { width: 330px; margin-right: 190px; }
  .hero-phone { right: 50%; margin-right: -330px; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
  .step-card { flex-direction: row; align-items: center; gap: 24px; }
  .step-art { height: 180px; flex: 0 0 160px; margin: 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .feature-copy { max-width: none; }
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .cta-card { position: relative; top: 0; }
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: rgba(8,7,13,.97); border-bottom: 1px solid var(--line);
    padding: 12px 24px 28px; transform: translateY(-120%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; margin-bottom: 18px; }
  .main-nav ul a { display: block; padding: 14px 0; font-size: 19px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-cta-mobile { display: flex; width: 100%; padding: 15px; font-size: 17px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { height: 66px; }
  .main-nav { inset: 66px 0 auto 0; }
  .logo { font-size: 26px; gap: 8px; }
  .logo-mark { width: 34px; }
  .hero { padding-top: 22px; }
  .hero-title { font-size: clamp(44px, 13vw, 60px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn-lg { font-size: 17px; padding: 16px 24px; }
  .hero-visual { min-height: 440px; margin-top: 10px; justify-content: flex-start; }
  .hero-coach { width: 50%; margin: 0; z-index: 3; }
  .hero-glow { width: 360px; height: 360px; left: -10%; }
  .hero .hero-phone { width: 196px; right: -4px; margin-right: 0; padding: 7px; border-radius: 34px; }
  .hero-phone .phone-screen { border-radius: 28px; padding: 12px 10px 12px; }
  .hero-phone .phone-title { font-size: 17px; }
  .hero-phone .workout-list img { width: 40px; height: 40px; }
  .hero-phone .workout-list b { font-size: 12.5px; }
  .hero-phone .workout-list small { font-size: 10.5px; }
  .hero-phone .workout-list li { padding: 5px 8px 5px 5px; gap: 8px; border-radius: 12px; }
  .hero-phone .phone-sub { font-size: 11px; }
  .hero-phone .phone-btn { font-size: 13px; padding: 10px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .step-card { flex-direction: column; align-items: stretch; padding: 18px 18px 22px; }
  .step-art { flex: none; height: 170px; margin-bottom: 12px; }
  .feature-visual { min-height: 0; padding: 10px 0 30px; }
  .phone { width: min(300px, 86vw); }
  .float-mascot { width: 120px; }
  #ai-workout-planner .phone { margin-right: 70px; }
  .float-right { right: -6px; bottom: -10px; }
  .float-left { left: -6px; bottom: -10px; }
  .scan-stage { width: 230px; }
  .stat-card { min-width: 0; padding: 10px 12px; }
  .stat-card b { font-size: 19px; }
  .stat-a { left: 0; top: 6%; }
  .stat-b { right: 0; bottom: 10%; }
  .bars { height: 34px; }
  .recovery-card { padding: 18px; }
  .rc-stats b { font-size: 15px; }
  .big { font-size: 34px; }
  .moon { width: 64px; height: 64px; }
  .glance-grid { grid-template-columns: 1fr; }
  .faq-item summary { padding: 16px 18px; }
  .faq-a { padding: 0 18px 16px; }
  .faq-item h3 { font-size: 16.5px; }
  .cta-card { padding: 0 20px 26px; border-radius: 24px; }
  .signup .btn { flex: 1 1 100%; }
  .footer-nav { gap: 40px; }
}

/* ==========================================================================
   Legal pages (privacy, terms, legal notice)
   ========================================================================== */
.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 16px; }
.legal-hero .lead { font-size: 19px; max-width: 68ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal-meta span { font-size: 13px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; background: rgba(255,255,255,.03); }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 100px; align-items: start; }
.legal-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 6px; }
.legal-toc p { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.legal-toc ol { list-style: none; padding-left: 0; counter-reset: toc; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.legal-toc a::before { content: counter(toc) ". "; }
.legal-toc a:hover, .legal-toc a.active { color: var(--text); border-left-color: var(--accent); }

.prose { max-width: 780px; color: var(--text-2); font-size: 16.5px; line-height: 1.72; }
.prose section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: 96px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 0 0 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose section:first-child h2 { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; letter-spacing: -0.01em; }
.prose h4 { font-size: 16px; color: var(--text); margin: 20px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 7px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose ol li { margin-bottom: 7px; padding-left: 4px; }
.prose ol li::marker { color: var(--accent); font-weight: 600; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(201,163,255,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose address { font-style: normal; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 16px; color: var(--text); line-height: 1.7; }

.table-wrap { overflow-x: auto; margin: 6px 0 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 600; background: rgba(201,163,255,.07); font-size: 13.5px; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 500; }

.callout { display: flex; gap: 14px; border: 1px solid var(--line-strong); background: rgba(201,163,255,.06); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 18px; }
.callout::before { content: "i"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--btn-text); font-weight: 800; font-size: 13px; margin-top: 2px; }
.callout p:last-child { margin: 0; }
.callout.warn { border-color: rgba(255, 196, 120, .45); background: rgba(255, 196, 120, .06); }
.callout.warn::before { content: "!"; background: #ffc478; }

.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 18px; }
.summary-grid div { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: var(--radius-sm); padding: 14px 16px; }
.summary-grid b { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }
.summary-grid span { font-size: 14.5px; line-height: 1.55; }

/* Placeholders that must be completed before publishing */
mark.ph { background: rgba(255, 214, 102, .16); color: #ffd666; border: 1px dashed rgba(255, 214, 102, .55); border-radius: 6px; padding: 0 6px; font-weight: 600; }

.legal-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal-footer-nav a { color: var(--text-2); }
.legal-footer-nav a:hover, .legal-footer-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 1020px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .legal-toc { position: static; max-height: none; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 12px; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 40px 0 28px; }
  .summary-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
}
@media print {
  .site-header, .legal-toc, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .prose, .prose h2, .prose h3, .prose strong, .prose td:first-child { color: #000; }
  .legal-layout { display: block; }
}
