/* Podium landing (P-1079). Design family: web/partner/reference/landing.html. */
:root {
  --bg: #0A0F1C;
  --bg-deep: #05080F;
  --surface: #111827;
  --surface-2: #1A2233;
  --surface-3: #243049;
  --line: #1F2A3D;
  --text: #F5F8FA;
  --muted: #A7B3C6;
  --dim: #64748B;
  --teal: #2EE6D6;
  --teal-hi: #7CF3E8;
  --violet: #8B7FFF;
  --violet-deep: #6D5DFC;
  --amber: #FF9F0A;
  --coral: #FF6A3D;
  --gold: #F5C451;
  --silver: #C9D2DE;
  --bronze: #D99A6C;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --wrap: 1200px;
  --gutter: 16px;
  --display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-hi); }
b, strong { font-weight: 700; }
em, i { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.display {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
}
.num { font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: -0.01em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 28, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(31, 42, 61, 0.7);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { color: var(--teal); flex: none; }
.brand b { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 24px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { background: var(--text); color: var(--bg); font-weight: 800; padding: 9px 16px; margin-left: 4px; }
.nav-links .nav-cta:hover { background: var(--teal); color: var(--bg); }
@media (max-width: 479px) {
  .nav-links .nav-hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 800 17px/1 var(--body); text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: var(--bg); box-shadow: 0 12px 40px -12px rgba(46, 230, 214, 0.55); }
.btn-primary:hover { background: var(--teal-hi); color: var(--bg); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal); }
.btn-ghost:hover { background: rgba(46, 230, 214, 0.1); }
.btn svg { flex: none; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid rgba(31, 42, 61, 0.55); }
.split { display: grid; gap: 48px; align-items: center; }
.copy { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.copy h2 { margin: 0; font-size: clamp(44px, 7vw, 76px); }
.copy p { margin: 0; font-size: 19px; color: var(--muted); }
.copy .btn { align-self: flex-start; margin-top: 8px; }
.visual { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 20px; }
@media (min-width: 960px) {
  .section { padding: 128px 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.flip .copy { order: 2; }
  .split.flip .visual { order: 1; }
}

.stacked { display: flex; flex-direction: column; gap: 48px; }
.stacked .copy { max-width: 720px; }
@media (min-width: 960px) {
  .layered { position: relative; justify-content: flex-end; padding: 0 20px 0 0; }
  .layered > .card { position: absolute; left: 0; bottom: 48px; z-index: 2; max-width: 330px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 70px -20px rgba(0, 0, 0, 0.85); }
  .stacked .visual { gap: 32px; align-items: center; }
  .stacked .crop { width: 360px; }
}

/* ---------- Phone frame (real app screenshots) ---------- */
.phone {
  position: relative; flex: none;
  width: 260px; padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #2A3448, #0B111D 40%, #1B2436);
  box-shadow: 0 0 0 1px #2A3448, 0 50px 90px -40px rgba(46, 230, 214, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.phone img { width: 100%; border-radius: 38px; background: var(--bg-deep); }
.phone.sm { width: 220px; border-radius: 40px; padding: 8px; }
.phone.sm img { border-radius: 33px; }
.shot-label { margin: 12px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--dim); letter-spacing: 0.04em; }
.crop {
  flex: none; width: 300px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(46, 230, 214, 0.3);
  background: var(--bg-deep);
}
@media (min-width: 960px) {
  .phone { width: 290px; }
}

/* ---------- UI cards (his copy, set as app-style cards) ---------- */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 20px;
}
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-title b { font-size: 20px; }
.card-title span { font-size: 14px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 800 13px var(--body);
  background: var(--surface-3); color: var(--text);
}
.avatar.me { background: var(--surface-2); box-shadow: 0 0 0 2px var(--teal); }
.avatar.rival { background: var(--violet-deep); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(520px 360px at 72% 30%, rgba(46, 230, 214, 0.16), transparent 70%),
    radial-gradient(420px 320px at 15% 10%, rgba(109, 93, 252, 0.14), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-brand { margin: 0; font-size: 22px; color: var(--teal); }
.hero h1 { margin: 0; font-size: clamp(54px, 13vw, 100px); }
.hero h1 b { color: var(--teal); font-weight: 900; display: block; }
.hero-stage { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 24px; }
.hero-stage .phone.back { display: none; }
.chat { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 380px; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg.me { justify-content: flex-end; }
.bubble { padding: 12px 16px; border-radius: 22px; font-size: 16px; line-height: 1.4; max-width: 300px; }
.msg.me .bubble { background: #0E7C8A; border-bottom-right-radius: 8px; }
.msg.rex .bubble { background: var(--surface-2); border-bottom-left-radius: 8px; }
.workout-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 12px 12px 12px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #12403F, #121A26);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 214, 0.3);
}
.workout-chip div b { display: block; font-size: 17px; }
.workout-chip div span { display: block; font-size: 14px; color: var(--muted); }
.start {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: var(--bg);
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 17px; padding-right: 2px;
  box-shadow: 0 0 30px -6px rgba(46, 230, 214, 0.7);
}
.composer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 0 8px 0 18px; min-height: 50px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--dim); font-size: 16px;
}
.composer i { width: 36px; height: 36px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; }
.chat-card { padding: 20px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 112px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-stage { flex-direction: row; justify-content: flex-end; min-height: 640px; align-items: center; }
  .hero-stage .phone.front { position: relative; z-index: 2; }
  .hero-stage .phone.back { display: block; position: absolute; right: -24px; top: 90px; width: 250px; transform: rotate(7deg); opacity: 0.85; z-index: 1; }
  .hero-stage .chat-card { position: absolute; left: -70px; bottom: 40px; z-index: 3; max-width: 330px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 70px -20px rgba(0, 0, 0, 0.8); }
  .hero-stage .phone.front { margin-right: 80px; }
}

/* ---------- Strip under the hero: week, leagues, race ---------- */
.strip { padding: 0 0 88px; }
.strip-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .strip-grid { grid-template-columns: repeat(3, 1fr); } }
.week-top { display: flex; justify-content: space-between; align-items: flex-start; }
.week-top .streak { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 40px; color: var(--teal); line-height: 1; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.days i {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--bg);
  background: var(--teal);
}
.days i:last-child { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.league-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.league-row .trophy { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; }
.league-row div b { display: block; font-size: 17px; }
.league-row div span { display: block; font-size: 14px; color: var(--muted); }
.place { margin-left: auto; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; color: var(--gold); }
.score {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 22px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 214, 0.4);
}
.score .side { display: flex; align-items: center; gap: 8px; }
.score .side.right { justify-content: flex-end; }
.score .side b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; color: var(--teal); }
.score .side.right b { color: var(--violet); }
.score .mid { text-align: center; }
.score .mid span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); }
.score .mid b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 24px; }
.score .mid .live { color: var(--coral); }
.score .mid .live::before { content: "\25CF  "; }
.bar { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 14px; }
.bar i { display: block; height: 4px; width: 58%; border-radius: 2px; background: var(--teal); }
.callout {
  margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 2px;
}
.callout b { color: var(--violet); }
.callout span { color: var(--muted); font-size: 15px; }

/* ---------- Coach ---------- */
.rex-card { width: 100%; max-width: 360px; align-self: center; }
.rex-head { display: flex; align-items: center; gap: 12px; }
.rex-head .rex { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--teal-hi), #0E7C8A); box-shadow: 0 0 24px -4px rgba(46, 230, 214, 0.7); }
.rex-head div b { display: block; font-size: 19px; }
.rex-head div span { display: block; font-size: 14px; color: var(--muted); }
.wave { display: flex; align-items: center; gap: 4px; height: 36px; margin: 18px 0 6px; }
.wave i { flex: 1; border-radius: 3px; background: var(--teal); opacity: 0.85; }
.rex-line { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.rex-line span { color: var(--muted); }
.zone { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.zone .z { width: 52px; height: 52px; border-radius: 16px; background: rgba(46, 230, 214, 0.14); color: var(--teal); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; }
.zone .bpm { margin-left: auto; text-align: right; color: var(--muted); }
.zone .bpm b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 34px; color: var(--text); }
.zones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 14px; }
.zones i { height: 6px; border-radius: 3px; background: var(--surface-3); }
.zones i:nth-child(2) { background: var(--teal); }

/* ---------- Gym ---------- */
.gym-card { width: 100%; max-width: 440px; }
.gym-card h3 { margin: 0; font-size: 26px; }
.gym-card .where { color: var(--muted); margin: 2px 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.plan-out { margin-top: 18px; padding: 18px; border-radius: 22px; background: linear-gradient(160deg, #12403F 0%, #121419 70%); box-shadow: inset 0 0 0 1px rgba(46, 230, 214, 0.28); }
.plan-out .card-title b { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 28px; line-height: 1; }
.plan-out .card-title span { color: var(--teal); }
.rows { list-style: none; margin: 12px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 16px; }
.rows li span:last-child, .rows li b { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 19px; color: var(--text); white-space: nowrap; }

/* ---------- Leaderboard ---------- */
.lb { width: 100%; max-width: 440px; }
.lb-head { display: flex; align-items: center; gap: 12px; }
.lb-head .trophy { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; }
.lb-head div b { display: block; font-size: 19px; }
.lb-head div span { display: block; font-size: 14px; color: var(--muted); }
.lb-head .place { font-size: 32px; color: var(--silver); }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin: 22px 0 10px; text-align: center; }
.podium .who { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; }
.podium .who em { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 17px; color: var(--muted); }
.podium .step { margin-top: 8px; border-radius: 14px 14px 6px 6px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 32px; color: var(--bg); }
.podium .p1 .step { height: 108px; background: linear-gradient(180deg, #7CF3E8, var(--teal)); }
.podium .p2 .step { height: 78px; background: linear-gradient(180deg, #E7ECF3, var(--silver)); }
.podium .p3 .step { height: 58px; background: linear-gradient(180deg, #F0C29E, var(--bronze)); }
.podium .p1 .avatar { box-shadow: 0 0 0 2px var(--teal); }
.standings { list-style: none; margin: 0; padding: 0; }
.standings li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.standings .rank { width: 18px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 20px; color: var(--dim); }
.standings .name b { display: block; font-size: 16px; }
.standings .name span { display: block; font-size: 13px; color: var(--dim); }
.standings em { margin-left: auto; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 19px; }
.standings em small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.standings li.you { margin: 0 -12px; padding: 12px; border-radius: 16px; border-top-color: transparent; background: rgba(46, 230, 214, 0.1); box-shadow: inset 0 0 0 1px rgba(46, 230, 214, 0.35); }
.standings li.you .rank { color: var(--teal); }
.lb-foot { margin: 14px 0 0; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.lb-foot span:last-child { color: var(--teal); font-weight: 700; }

/* ---------- Plans ---------- */
.plans-head { display: grid; gap: 40px; align-items: end; margin-bottom: 40px; }
@media (min-width: 960px) { .plans-head { grid-template-columns: 1fr auto; } }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.plan {
  position: relative; overflow: hidden; min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 18px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan::after {
  content: ""; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 214, 0.22), transparent 70%);
}
.plan:nth-child(2)::after, .plan:nth-child(5)::after { background: radial-gradient(circle, rgba(139, 127, 255, 0.26), transparent 70%); }
.plan:nth-child(3)::after, .plan:nth-child(6)::after { background: radial-gradient(circle, rgba(255, 106, 61, 0.22), transparent 70%); }
.plan .weeks { position: absolute; top: 16px; right: 16px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); font-size: 13px; font-weight: 700; }
.plan h3 { margin: 0; font-size: clamp(30px, 4vw, 38px); }
.plan p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* ---------- Creator ---------- */
.creator-card { width: 100%; max-width: 440px; }
.creator-card .by { font-size: 13px; color: var(--teal); margin: 6px 0 4px; font-weight: 600; }
.setlist { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.setlist > b { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.track { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.track .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 14px; }
.track .t b { display: block; font-size: 16px; }
.track .t span { display: block; font-size: 13px; color: var(--muted); }
.track em { margin-left: auto; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 17px; color: var(--teal); white-space: nowrap; }
.plays { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.plays::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #1DB954; }

/* ---------- Partner ---------- */
.partner-card { width: 100%; max-width: 460px; }
.partner-card .open { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--teal); }
.partner-card .city { margin: 2px 0 16px; color: var(--muted); }
.equip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.equip div { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.equip em { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 20px; color: var(--text); }
.facts { list-style: none; margin: 16px 0 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.facts li b { color: var(--text); text-align: right; }

/* ---------- Final CTA ---------- */
.final { padding: 112px 0; text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(640px 360px at 50% 100%, rgba(46, 230, 214, 0.18), transparent 70%);
}
.final h2 { margin: 0 auto; max-width: 900px; font-size: clamp(48px, 9vw, 96px); }
.final p { margin: 20px auto 0; max-width: 540px; font-size: 19px; color: var(--muted); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.final-links { display: flex; justify-content: center; gap: 24px; margin-top: 22px; font-weight: 700; }
.final-links a { text-decoration: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--dim); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { margin: 0; }
.footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text); text-decoration: none; }
.footer ul a:hover { color: var(--teal); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Legal pages (P-1488): one calm reading column. */
.doc { max-width: calc(68ch + 2 * var(--gutter)); padding-top: 40px; padding-bottom: 72px; font-size: 18px; line-height: 1.65; overflow-wrap: break-word; }
.doc h1 { margin: 0 0 20px; font-size: clamp(38px, 9vw, 56px); line-height: 1; }
.doc h2 { margin: 44px 0 10px; font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.doc p, .doc ul { margin: 0 0 16px; color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--teal); }
