/* ═══════════════════════════════════════════════════════════════════════════
   COACHTRAX — 2025 Athletic Editorial Design System
   Sharp, flat, high-contrast. No glassmorphism, no purple gradients.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Self-hosted brand fonts (Latin, OFL; licences beside the files). No Google Fonts
   request: removes a render-blocking third-party stylesheet from every page. */
@font-face { font-family: 'Anton'; src: url('assets/editorial/fonts/anton.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('assets/editorial/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('assets/editorial/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  /* ── New brand palette ── */
  --volt: #C8F135;
  --volt-ink: #131A02;
  --green: #00CF8A;
  --green-ink: #051B10;

  --deep: #0A0E0C;          /* dark sections */
  --deep-2: #10140F;        /* dark raised */
  --deep-3: #161B15;        /* dark card */
  --paper: #F1EFE7;         /* bone sections */
  --paper-2: #E7E5DA;       /* bone raised */
  --paper-3: #DDDBCE;

  --ink-on-dark: #EFF3EA;
  --ink-on-dark-2: rgba(239,243,234,.62);
  --ink-on-dark-3: rgba(239,243,234,.38);
  --ink-on-light: #14180F;
  --ink-on-light-2: rgba(20,24,15,.64);
  --ink-on-light-3: rgba(20,24,15,.4);

  --line-d: rgba(239,243,234,.13);
  --line-l: rgba(20,24,15,.16);

  /* ── Legacy tokens (required by retained app-screen mockups) ── */
  --ct-accent: #00CF8A;
  --ct-accent-ink: #051B10;
  --ct-accent-dim: #00CF8A38;
  --ct-bg: #0B0D0C;
  --ct-surface: #15191A;
  --ct-surface2: #1E2325;
  --ct-text: #EDF1EF;
  --ct-text2: #B4C0BA;
  --ct-text3: #7E8B85;
  --ct-line: rgba(255,255,255,0.075);
  --ct-track: rgba(255,255,255,0.10);
  --ct-effort: #C8F135;
  --ct-cardio: #38E0FF;
  --ct-sleep: #A78BFA;
  --ct-fuel: #FFC832;
  --ct-recovery: #00CF8A;
  --ct-heart: #FF5A78;
  --ct-volt: #C8F135;
  --ct-volt-ink: #1A2200;

  /* ── Type ── */
  --f-display: 'Anton', 'Archivo', sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ct-display: 'Archivo', system-ui, sans-serif;   /* used inside app mockups */
  --ct-ui: 'Archivo', system-ui, sans-serif;
  --ct-mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad-x: clamp(20px, 4.5vw, 64px);
  --max-w: 1480px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--deep);
  color: var(--ink-on-dark);
  font-family: var(--f-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; box-sizing: border-box; }
::selection { background: var(--volt); color: var(--volt-ink); }

/* Film-grain noise — kills the flat "AI render" feel */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 2000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}

/* ── Layout ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section-dark { background: var(--deep); color: var(--ink-on-dark); }
.section-light { background: var(--paper); color: var(--ink-on-light); }
.section-volt { background: var(--volt); color: var(--volt-ink); }
.hr-d { border-top: 1px solid var(--line-d); }
.hr-l { border-top: 1px solid var(--line-l); }

/* ── Mono tag / eyebrow ── */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}
.tag::before { content: ''; width: 8px; height: 8px; background: var(--volt); flex-shrink: 0; }
.section-light .tag::before, .section-volt .tag::before { background: var(--ink-on-light); }
.tag .tag-dim { opacity: .55; }

/* ── Display type ── */
.mega, .h1, .h2, .h3 {
  font-family: var(--f-display); font-weight: 400;
  text-transform: uppercase; line-height: .94; letter-spacing: .005em;
}
.mega { font-size: clamp(58px, 9.2vw, 148px); }
.h1 { font-size: clamp(48px, 7vw, 108px); }
.h2 { font-size: clamp(38px, 5.4vw, 76px); }
.h3 { font-size: clamp(26px, 3.2vw, 42px); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}
.section-dark .outline { -webkit-text-stroke-color: rgba(239,243,234,.85); }
.section-light .outline { -webkit-text-stroke-color: rgba(20,24,15,.75); }
.volt { color: var(--volt); }
.green { color: var(--green); }
.hl {
  display: inline-block; background: var(--volt); color: var(--volt-ink);
  padding: 0 .12em; transform: skew(-9deg);
}
.hl > span { display: inline-block; transform: skew(9deg); }

.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; font-weight: 400; }
.section-dark .lead { color: var(--ink-on-dark-2); }
.section-light .lead { color: var(--ink-on-light-2); }
.lead strong { font-weight: 700; }
.section-dark .lead strong { color: var(--ink-on-dark); }
.section-light .lead strong { color: var(--ink-on-light); }

/* Line-mask for headline reveal */
.lm { display: block; overflow: hidden; }
.li { display: block; will-change: transform; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; border: none; cursor: pointer; text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s, color .18s, border-color .18s;
  border-radius: 3px; white-space: nowrap;
}
.btn-lg { padding: 0 30px; height: 56px; font-size: 13px; }
.btn-md { padding: 0 24px; height: 46px; font-size: 12px; }
.btn-sm { padding: 0 18px; height: 38px; font-size: 11px; }
.btn-volt { background: var(--volt); color: var(--volt-ink); }
.btn-volt:hover { background: #D8FF4A; transform: translateY(-2px); }
.btn-ink { background: var(--ink-on-light); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); background: #000; }
.btn-line { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-line:hover { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); transform: translateY(-2px); }
.btn .arr { transition: transform .18s; }
.btn:hover .arr { transform: translateX(4px); }

/* ── Store badges (waitlist popup binds to .btn-store) ── */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-store {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--deep-3); border: 1px solid var(--line-d);
  border-radius: 4px; padding: 11px 18px; cursor: pointer; color: var(--ink-on-dark);
  transition: border-color .15s, background .15s, transform .15s;
}
.btn-store:hover { border-color: var(--volt); transform: translateY(-2px); }
.btn-store svg { flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; gap: 1px; }
.store-sub { font-size: 10px; font-weight: 500; color: var(--ink-on-dark-3); letter-spacing: .04em; }
.store-name { font-family: var(--f-body); font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-on-dark); }
.store-badges.on-light .btn-store { background: var(--ink-on-light); border-color: var(--ink-on-light); color: var(--paper); }
.store-badges.on-light .store-name { color: var(--paper); }
.store-badges.on-light .store-sub { color: rgba(241,239,231,.55); }

/* ══════════════════════════════ NAV ══════════════════════════════ */
.ct-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .3s, border-color .3s, transform .35s cubic-bezier(.2,.8,.2,1);
  border-bottom: 1px solid transparent;
}
.ct-nav.scrolled {
  background: rgba(10,14,12,.86);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line-d);
}
.ct-nav.hidden-up { transform: translateY(-100%); }
.ct-nav-inner { height: 68px; display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-wordmark {
  font-family: var(--f-display); font-size: 20px; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink-on-dark);
}
.nav-wordmark span { color: var(--volt); }
/* Links never wrap: a two-line label broke the strip's vertical alignment once
   the logged-in extras (My account, bell, account menu) took up room. */
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.45vw, 26px); margin-left: auto; }
.nav-links a {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-on-dark-2);
  transition: color .15s; position: relative; padding: 4px 0; white-space: nowrap; line-height: 1.4;
}
.nav-links a:hover { color: var(--ink-on-dark); }
.nav-links a.active { color: var(--volt); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--volt);
}
.nav-cta { margin-left: 6px; flex-shrink: 0; }
.nav-auth { display: flex; align-items: center; flex-shrink: 0; }
.nav-login {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-on-dark-2); transition: color .15s;
}
.nav-login:hover { color: var(--ink-on-dark); }
/* Injected by nav-auth.js when logged in */
.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-d);
  border-radius: 3px; padding: 6px 10px; color: var(--ink-on-dark); font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.nav-user-avatar {
  width: 24px; height: 24px; border-radius: 2px; background: var(--volt); color: var(--volt-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
  background-size: cover; background-position: center;
}
.nav-user-chevron { opacity: .6; }
.nav-user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: var(--deep-2); border: 1px solid var(--line-d); border-radius: 4px;
  padding: 6px; display: none; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.nav-user.open .nav-user-menu { display: block; }
.nav-user-head { padding: 10px 12px; border-bottom: 1px solid var(--line-d); margin-bottom: 4px; }
.nav-user-head-name { font-weight: 700; font-size: 13px; }
.nav-user-head-email { font-size: 11px; color: var(--ink-on-dark-3); }
.nav-user-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 2px;
  background: none; border: none; color: var(--ink-on-dark-2); font-size: 13px; font-weight: 500;
}
.nav-user-item:hover { background: var(--deep-3); color: var(--ink-on-dark); }
/* Notifications bell + panel (nav-auth.js). Mirrors the app's notification
   list: unread dot, tap to mark read, per-row delete, mark-all / clear-all. */
.nav-notif { position: relative; margin-right: 8px; }
.nav-notif-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: none; border: 1px solid var(--line-d);
  border-radius: 3px; color: var(--ink-on-dark-2); cursor: pointer; transition: color .15s, border-color .15s;
}
.nav-notif-btn:hover { color: var(--ink-on-dark); border-color: rgba(255,255,255,.25); }
.nav-notif-badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--volt); color: var(--volt-ink);
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.nav-notif-badge[hidden] { display: none; }
.nav-notif-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: calc(100vw - 32px);
  background: var(--deep-2); border: 1px solid var(--line-d); border-radius: 4px;
  display: none; box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow: hidden;
}
.nav-notif.open .nav-notif-menu { display: block; }
.nav-notif-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-bottom: 1px solid var(--line-d);
}
.nav-notif-head-title {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-on-dark);
}
.nav-notif-head-acts { display: flex; gap: 10px; }
.nav-notif-act {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 11px; font-weight: 600; color: var(--volt);
}
.nav-notif-act.danger { color: var(--ink-on-dark-3); }
.nav-notif-act:hover:not(:disabled) { text-decoration: underline; }
.nav-notif-act:disabled { opacity: .35; cursor: default; }
.nav-notif-list { max-height: 380px; overflow-y: auto; }
.nav-notif-item {
  position: relative; display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 12px 11px 10px; border-bottom: 1px solid var(--line-d); cursor: pointer;
}
.nav-notif-item:last-child { border-bottom: none; }
.nav-notif-item:hover { background: var(--deep-3); }
.nav-notif-dot {
  width: 7px; height: 7px; border-radius: 50%; background: transparent; margin-top: 5px; flex-shrink: 0;
}
.nav-notif-item.unread .nav-notif-dot { background: var(--volt); }
.nav-notif-item.unread .nav-notif-title { color: var(--ink-on-dark); }
.nav-notif-text { min-width: 0; flex: 1; }
.nav-notif-title { font-size: 13px; font-weight: 700; color: var(--ink-on-dark-2); }
.nav-notif-body { font-size: 12px; color: var(--ink-on-dark-3); line-height: 1.45; margin-top: 2px; }
.nav-notif-time {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-on-dark-3); margin-top: 4px;
}
.nav-notif-del {
  background: none; border: none; padding: 0 2px; cursor: pointer; line-height: 1;
  font-size: 16px; color: var(--ink-on-dark-3); opacity: 0; transition: opacity .15s;
}
.nav-notif-item:hover .nav-notif-del { opacity: 1; }
.nav-notif-del:hover { color: var(--ink-on-dark); }
.nav-notif-empty { padding: 26px 14px; text-align: center; font-size: 12.5px; color: var(--ink-on-dark-3); }
.nav-hamburger {
  display: none; background: none; border: none; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink-on-dark); transition: .25s; }
.nav-mobile {
  position: fixed; inset: 0; z-index: 890; background: var(--deep);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px var(--pad-x) 40px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nav-mobile.open { opacity: 1; visibility: visible; }
.nav-mobile > a {
  font-family: var(--f-display); font-size: clamp(34px, 8vw, 54px); text-transform: uppercase;
  color: var(--ink-on-dark); line-height: 1.15; border-bottom: 1px solid var(--line-d); padding: 10px 0;
}
.nav-mobile > a:hover { color: var(--volt); }
.nav-mobile .btn-primary, .nav-mobile .btn-volt { margin-top: 24px; align-self: flex-start; font-family: var(--f-body); }
.nav-mobile-auth { display: flex; gap: 20px; margin-top: 18px; }
.nav-mobile-auth a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-on-dark-2); }
body.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════ TICKER ══════════════════════════════ */
.ticker {
  overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
  padding: 16px 0; position: relative;
}
.ticker-volt { background: var(--volt); color: var(--volt-ink); border-color: var(--volt-ink); }
.ticker-track { display: inline-flex; align-items: center; will-change: transform; animation: tick 28s linear infinite; }
.ticker-rev .ticker-track { animation-direction: reverse; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker-item {
  font-family: var(--f-display); font-size: clamp(18px, 2.2vw, 30px); text-transform: uppercase;
  letter-spacing: .04em; display: inline-flex; align-items: center; flex-shrink: 0;
}
.ticker-item i {
  font-style: normal; display: inline-block; margin: 0 22px; font-size: .6em; opacity: .55;
}

/* ══════════════════════════════ STATS ══════════════════════════════ */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat-cell {
  padding: 34px 28px; border-left: 1px solid var(--line-d); position: relative;
}
.stat-cell:first-child { border-left: none; }
.stat-num {
  font-family: var(--f-display); font-size: clamp(44px, 4.6vw, 68px); line-height: 1;
  text-transform: uppercase; letter-spacing: .01em;
}
.stat-num sup { font-size: .5em; color: var(--volt); -webkit-text-stroke: 0; margin-left: 2px; }
.stat-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-on-dark-3); margin-top: 10px;
}

/* ══════════════════════════════ STEPS (numbered rows) ══════════════════════════════ */
.steps { border-top: 1px solid var(--line-l); }
.section-dark .steps { border-color: var(--line-d); }
.step-row {
  display: grid; grid-template-columns: 140px 1fr 1.1fr; gap: 28px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--line-l);
  transition: background .25s, padding-left .25s;
  position: relative;
}
.section-dark .step-row { border-color: var(--line-d); }
.step-row:hover { background: var(--volt); padding-left: 22px; }
.step-row:hover * { color: var(--volt-ink) !important; -webkit-text-stroke-color: var(--volt-ink) !important; }
.step-idx {
  font-family: var(--f-display); font-size: clamp(54px, 5.5vw, 84px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-on-light);
  transition: .25s;
}
.section-dark .step-idx { -webkit-text-stroke-color: rgba(239,243,234,.9); }
.step-title { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 36px); text-transform: uppercase; line-height: 1; }
.step-desc { font-size: 15px; line-height: 1.6; max-width: 460px; justify-self: end; }
.section-light .step-desc { color: var(--ink-on-light-2); }
.section-dark .step-desc { color: var(--ink-on-dark-2); }

/* ══════════════════════════════ BENTO ══════════════════════════════ */
.bento { display: grid; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.bento-2 { grid-template-columns: 1fr 1fr; }
.bento-3 { grid-template-columns: 1fr 1fr 1fr; }
.bento-4 { grid-template-columns: repeat(4, 1fr); }
.bento-cell {
  background: var(--deep-2); padding: 30px 28px; position: relative; overflow: hidden;
  transition: background .25s;
}
.bento-light { background: var(--line-l); border-color: var(--line-l); }
.bento-light .bento-cell { background: var(--paper-2); }
.bento-cell:hover { background: var(--deep-3); }
.bento-light .bento-cell:hover { background: var(--paper); }
.bento-num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-on-dark-3);
  display: block; margin-bottom: 20px;
}
.bento-light .bento-num { color: var(--ink-on-light-3); }
.bento-icon {
  width: 44px; height: 44px; border: 1px solid var(--line-d); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; border-radius: 2px;
}
.bento-light .bento-icon { border-color: var(--line-l); }
.bento-title { font-family: var(--f-display); font-size: 21px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.bento-desc { font-size: 14px; line-height: 1.6; color: var(--ink-on-dark-2); }
.bento-light .bento-desc { color: var(--ink-on-light-2); }

/* ══════════════════════════════ FAQ ══════════════════════════════ */
.faq-list { border-top: 1px solid var(--line-l); }
.section-dark .faq-list { border-color: var(--line-d); }
.faq-item { border-bottom: 1px solid var(--line-l); }
.section-dark .faq-item { border-color: var(--line-d); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; padding: 26px 0; text-align: left;
  font-family: var(--f-body); font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; color: inherit;
  transition: color .15s;
}
.faq-question:hover { color: var(--green); }
.section-light .faq-question:hover { color: #0A8A5F; }
.faq-q-idx { font-family: var(--f-mono); font-size: 11px; color: var(--ink-on-dark-3); margin-right: 16px; }
.section-light .faq-q-idx { color: var(--ink-on-light-3); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1); }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 0 26px; max-width: 720px; font-size: 15px; line-height: 1.7; color: var(--ink-on-dark-2); }
.section-light .faq-answer p { color: var(--ink-on-light-2); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }

/* ══════════════════════════════ FOOTER ══════════════════════════════ */
.ct-footer { background: var(--deep); border-top: 1px solid var(--line-d); padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr; gap: 60px; }
.footer-brand-text { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand-text img { width: 36px; height: 36px; }
.footer-brand-text span { font-family: var(--f-display); font-size: 24px; text-transform: uppercase; }
.footer-tagline { font-family: var(--f-display); font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(239,243,234,.4); margin-bottom: 26px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-on-dark-3); margin-bottom: 16px; font-weight: 600;
}
.footer-col a { display: block; font-size: 14px; color: var(--ink-on-dark-2); padding: 5px 0; transition: color .15s, transform .15s; }
.footer-col a:hover { color: var(--volt); transform: translateX(4px); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-d); margin-top: 56px; padding-top: 24px;
}
.footer-copy { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-on-dark-3); text-transform: uppercase; }

/* ══════════════════════════════ HERO ══════════════════════════════ */
.hero { position: relative; padding: clamp(150px, 18vh, 210px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 30%, rgba(0,0,0,.5), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 30%, rgba(0,0,0,.5), transparent 70%);
  opacity: .5;
}
.hero-ghost {
  position: absolute; z-index: 0; right: -2%; bottom: -4%;
  font-family: var(--f-display); font-size: clamp(200px, 26vw, 420px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(239,243,234,.07);
  text-transform: uppercase; pointer-events: none; user-select: none; white-space: nowrap;
}
.hero-title { margin: 22px 0 26px; }
.hero-cta-row { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-mini { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-on-dark-3); }
.hero-mini b { color: var(--volt); font-weight: 600; }

/* floating badges around hero phone */
.float-badge {
  position: absolute; background: rgba(16,20,15,.94); border: 1px solid var(--line-d);
  border-radius: 4px; padding: 11px 15px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); white-space: nowrap; z-index: 5;
}
.float-badge .fb-dot { width: 8px; height: 8px; flex-shrink: 0; }
.float-badge .fb-title { font-size: 12px; font-weight: 700; color: var(--ct-text); line-height: 1.2; font-family: var(--f-body); }
.float-badge .fb-sub { font-size: 10px; color: var(--ct-text3); font-family: var(--f-mono); letter-spacing: .04em; }
.phone-wrap { position: relative; width: max-content; padding: 24px 48px 24px 24px; }

/* ══════════════════════════════ PHONE MOCKUPS (retained app screens) ══════════════════════════════ */
.phone { position: relative; width: 290px; height: 592px; background: #1a1e1d; border-radius: 44px; border: 2px solid #2e3432; box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 24px 80px rgba(0,0,0,0.7), 0 0 80px rgba(0,207,138,0.06); overflow: hidden; flex-shrink: 0; }
.phone-sm { width: 248px; height: 506px; border-radius: 38px; }
.phone-screen { position: absolute; inset: 2px; background: #0B0D0C; border-radius: 42px; overflow: hidden; display: flex; flex-direction: column; }
.phone-sm .phone-screen { border-radius: 36px; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; background: #1a1e1d; border-radius: 15px; z-index: 10; }
.phone-sm .phone-notch { width: 90px; height: 26px; top: 8px; }
.phone-home { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; }
/* 2.0 app captures: the top pad clears the notch, the capture fills the rest. */
.phone-screen-shot { padding-top: 28px; background: #111613; }
.phone-sm .phone-screen-shot { padding-top: 24px; }
.phone-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pstat { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; flex-shrink: 0; margin-top: 10px; }
.pstat-time { font-family: var(--ct-display); font-size: 13px; font-weight: 700; color: var(--ct-text); }
.pstat-right { display: flex; gap: 5px; align-items: center; }
.pstat-bar { display: flex; gap: 1.5px; align-items: flex-end; }
.pstat-bar span { display: block; width: 3px; background: var(--ct-text2); border-radius: 1px; }
.pbody { flex: 1; overflow: hidden; padding: 4px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.p-greeting-sub { font-size: 11px; color: var(--ct-text3); font-weight: 500; }
.p-greeting { font-family: var(--ct-display); font-size: 22px; font-weight: 700; letter-spacing: -0.025em; color: var(--ct-text); line-height: 1.1; margin-top: 1px; }
.p-session { background: var(--ct-surface); border: 1px solid var(--ct-line); border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.p-av { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--ct-display); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.p-sess-name { font-family: var(--ct-display); font-size: 12px; font-weight: 700; color: var(--ct-text); letter-spacing: -0.01em; }
.p-sess-time { font-size: 10px; color: var(--ct-text3); margin-top: 1px; }
.p-sess-badge { margin-left: auto; font-size: 9px; font-weight: 700; background: rgba(0,207,138,.15); color: var(--ct-recovery); padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
.p-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; flex-shrink: 0; }
.p-stat-tile { background: var(--ct-surface); border: 1px solid var(--ct-line); border-radius: 12px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.p-stat-val { font-family: var(--ct-mono); font-size: 14px; font-weight: 600; color: var(--ct-text); letter-spacing: -.01em; }
.p-stat-label { font-size: 9px; font-weight: 600; color: var(--ct-text3); letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }
.p-nav { height: 50px; border-top: 1px solid var(--ct-line); display: flex; align-items: center; flex-shrink: 0; background: rgba(9,11,11,0.94); }
.p-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.p-nav-dot { width: 18px; height: 2px; border-radius: 1px; background: var(--ct-accent); }
.p-nav-icon { width: 18px; height: 18px; opacity: 0.4; }

/* Score rings — animate only when scrolled into view (.in-view added by JS) */
@keyframes ringFill1 { from { stroke-dashoffset: 276.46; } to { stroke-dashoffset: 35.9; } }
@keyframes ringFill2 { from { stroke-dashoffset: 219.91; } to { stroke-dashoffset: 63.8; } }
@keyframes ringFill3 { from { stroke-dashoffset: 163.36; } to { stroke-dashoffset: 14.7; } }
.ring-effort, .ring-recovery, .ring-sleep { stroke-dashoffset: 276.46; }
.ring-effort   { stroke-dasharray: 276.46; stroke-dashoffset: 276.46; }
.ring-recovery { stroke-dasharray: 219.91; stroke-dashoffset: 219.91; }
.ring-sleep    { stroke-dasharray: 163.36; stroke-dashoffset: 163.36; }
.in-view .ring-effort   { animation: ringFill1 1.4s .2s cubic-bezier(.2,.8,.2,1) forwards; }
.in-view .ring-recovery { animation: ringFill2 1.4s .35s cubic-bezier(.2,.8,.2,1) forwards; }
.in-view .ring-sleep    { animation: ringFill3 1.4s .5s cubic-bezier(.2,.8,.2,1) forwards; }

/* ══════════════ APP PREVIEW (dual phones) ══════════════ */
.duo-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.duo-center { display: flex; flex-direction: column; gap: 36px; max-width: 380px; }
.duo-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-on-light-3); margin-bottom: 10px; }
.section-dark .duo-label { color: var(--ink-on-dark-3); }

/* ══════════════ RADAR (achievers hero) ══════════════ */
.radar { position: relative; width: min(440px, 88vw); aspect-ratio: 1; }
.radar-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(200,241,53,.08) 0%, transparent 65%); }
.radar-pulse { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid rgba(200,241,53,.4); animation: pulseRing 3s cubic-bezier(.2,.6,.4,1) infinite; }
@keyframes pulseRing { 0% { transform: translate(-50%,-50%) scale(.55); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(1.05); opacity: 0; } }
.radar-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid var(--line-d); }
.radar-ring.r1 { width: 42%; height: 42%; }
.radar-ring.r2 { width: 68%; height: 68%; border-style: dashed; }
.radar-ring.r3 { width: 96%; height: 96%; }
.perimeter-tag {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; background: var(--deep-2);
  border: 1px solid var(--line-d); border-radius: 3px; padding: 7px 12px; z-index: 3;
}
.radar-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 2; }
.radar-you {
  width: 64px; height: 64px; border-radius: 50%; background: var(--volt); color: var(--volt-ink);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  font-family: var(--f-display); font-size: 16px; letter-spacing: .04em;
  box-shadow: 0 0 0 6px rgba(200,241,53,.15), 0 0 0 14px rgba(200,241,53,.05);
}
.radar-you-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-on-dark-3); }
.radar-pin { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 5px; transform: translate(-50%,-50%); }
.radar-av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ct-display); font-size: 13px; font-weight: 700; color: #0a0b0e; border: 2px solid var(--deep); box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.radar-pin-meta { font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; color: var(--ink-on-dark-2); background: var(--deep-2); border: 1px solid var(--line-d); border-radius: 3px; padding: 3px 7px; white-space: nowrap; }

/* ══════════════ METRIC CHIPS / PR CARDS / LEGEND ══════════════ */
.metric-chip { background: var(--paper-2); border: 1px solid var(--line-l); border-radius: 4px; padding: 15px 16px; display: flex; align-items: center; gap: 8px; }
.metric-chip-icon { width: 38px; height: 38px; border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.metric-chip-label { font-size: 10px; font-weight: 700; color: var(--ink-on-light-3); text-transform: uppercase; letter-spacing: .08em; }
.metric-chip-val { font-family: var(--f-display); font-size: 22px; color: var(--ink-on-light); letter-spacing: .01em; margin-top: 2px; }
.ring-legend { display: flex; flex-direction: column; gap: 22px; }
.ring-legend-item { display: flex; align-items: flex-start; gap: 16px; }
.ring-legend-dot { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; border-radius: 2px; }
.ring-legend-title { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.ring-legend-desc { font-size: 14px; color: var(--ink-on-light-2); line-height: 1.55; margin-top: 4px; max-width: 380px; }

.pr-card { background: var(--deep-2); border: 1px solid var(--line-d); border-radius: 4px; padding: 22px; transition: transform .2s, border-color .2s; }
.pr-card:hover { transform: translateY(-4px); border-color: var(--volt); }
.pr-big { font-family: var(--f-display); font-size: clamp(38px, 3.6vw, 52px); line-height: .9; letter-spacing: .01em; }
.pr-unit { font-size: .34em; font-family: var(--f-mono); letter-spacing: .1em; color: var(--ink-on-dark-3); margin-left: 5px; text-transform: uppercase; }

/* ══════════════ CHECKLIST (benefits) ══════════════ */
.check-list { display: flex; flex-direction: column; }
.check-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-l); }
.section-dark .check-item { border-color: var(--line-d); }
.check-item:first-child { padding-top: 0; }
.check-box { width: 26px; height: 26px; background: var(--volt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 2px; margin-top: 2px; }
.check-title { font-family: var(--f-body); font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.check-desc { font-size: 14px; line-height: 1.6; margin-top: 3px; color: var(--ink-on-light-2); }
.section-dark .check-desc { color: var(--ink-on-dark-2); }

/* ══════════════ FORMS ══════════════ */
.field label { display: block; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-on-light-3); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 1px solid var(--line-l); border-radius: 3px;
  padding: 14px 16px; font-size: 15px; color: var(--ink-on-light); outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-on-light); box-shadow: 3px 3px 0 var(--volt); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314180F' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field-dark label { color: var(--ink-on-dark-3); }
.field-dark input, .field-dark select, .field-dark textarea { border-color: var(--line-d); color: var(--ink-on-dark); }
.field-dark input:focus, .field-dark select:focus, .field-dark textarea:focus { border-color: var(--volt); box-shadow: 3px 3px 0 var(--volt); }

/* ══════════════ GIANT DRIFT WORD ══════════════ */
.drift-word {
  font-family: var(--f-display); font-size: clamp(90px, 15vw, 240px); line-height: 1;
  text-transform: uppercase; white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1px rgba(239,243,234,.14); user-select: none; pointer-events: none;
}
.section-light .drift-word { -webkit-text-stroke-color: rgba(20,24,15,.12); }

/* ══════════════ PRELOADER (index only) ══════════════ */
#preloader { position: fixed; inset: 0; z-index: 3000; background: var(--deep); display: flex; align-items: center; justify-content: center; }
#preloader .pre-word { font-family: var(--f-display); font-size: clamp(40px, 7vw, 88px); text-transform: uppercase; letter-spacing: .02em; overflow: hidden; }
#preloader .pre-word span { display: inline-block; }
#preloader .pre-volt { color: var(--volt); }
#preloader .pre-bar { position: absolute; bottom: 0; left: 0; height: 4px; background: var(--volt); width: 0%; }

/* ══════════════ MISC ══════════════ */
.slash { display: inline-block; width: 60px; height: 10px; background: var(--volt); transform: skew(-24deg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 54px; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.center-head .tag { justify-content: center; }
.center-head .lead { margin-left: auto; margin-right: auto; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-36 { margin-top: 36px; } .mt-48 { margin-top: 48px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { display: flex; justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; gap: 44px; }
  .bento-4 { grid-template-columns: 1fr 1fr; }
  .bento-3 { grid-template-columns: 1fr 1fr; }
  .duo-grid { grid-template-columns: 1fr; justify-items: center; }
  .duo-center { max-width: 520px; }
  .step-row { grid-template-columns: 90px 1fr; }
  .step-desc { grid-column: 2; justify-self: start; }
}
@media (max-width: 1100px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .ct-nav-inner .nav-cta { display: none; }
  /* Keep the bell visible on mobile; hide login/user dropdown (those live in the hamburger). */
  .ct-nav-inner .nav-auth { display: flex; margin-left: auto; }
  .ct-nav-inner .nav-auth .nav-user,
  .ct-nav-inner .nav-auth .nav-login { display: none; }
  .nav-hamburger { display: flex; margin-left: 8px; }
  .nav-notif-menu { right: auto; left: 50%; transform: translateX(-50%); width: min(340px, calc(100vw - 24px)); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-left: none; border-top: 1px solid var(--line-d); padding: 26px 20px; }
  .stat-cell:nth-child(-n+2) { border-top: none; }
  .stat-cell:nth-child(even) { border-left: 1px solid var(--line-d); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .bento-2, .bento-3, .bento-4 { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 64px 1fr; gap: 16px; padding: 30px 0; }
  .step-idx { font-size: 46px; }
  .float-badge { display: none; }
  .phone-wrap { padding: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEGACY COMPAT LAYER — classes used by roadmap.html, terms.html and
   nav-auth.js injections. Mapped onto the new design tokens.
   ═══════════════════════════════════════════════════════════════════════════ */
.ct-container { max-width: 1400px; margin: 0 auto; padding: 0 56px; }
.section-pad { padding: 108px 0; }
.section-pad-sm { padding: 72px 0; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--volt); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--volt); flex-shrink: 0; }
.h-display { font-family: var(--f-display); font-size: clamp(48px, 7vw, 80px); font-weight: 400; letter-spacing: .005em; line-height: .94; color: var(--ink-on-dark); text-transform: uppercase; }
.h-section { font-family: var(--f-display); font-size: clamp(34px, 4.5vw, 52px); font-weight: 400; letter-spacing: .005em; line-height: .94; color: var(--ink-on-dark); text-transform: uppercase; }
.body-lead { font-size: 18px; font-weight: 400; color: var(--ink-on-dark-2); line-height: 1.65; max-width: 560px; }
.btn-primary { background: var(--volt); color: var(--volt-ink); }
.btn-primary:hover { background: #D8FF4A; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink-on-dark); border: 1px solid var(--line-d); }
.btn-outline:hover { border-color: var(--volt); color: var(--volt); }
.btn-ghost { background: transparent; color: var(--volt); }
.btn-ghost:hover { opacity: .8; }
.btn-secondary { background: var(--deep-3); color: var(--ink-on-dark); border: 1px solid var(--line-d); }
.btn-secondary:hover { border-color: rgba(255,255,255,.25); }

/* Legal (terms.html) */
.legal-hero { padding: 150px 0 24px; text-align: center; }
.legal-hero .eyebrow { justify-content: center; }
.legal-tabs { display: inline-flex; gap: 6px; background: var(--deep-2); border: 1px solid var(--line-d); padding: 5px; border-radius: 6px; margin-top: 26px; }
.legal-tabs button { font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-on-dark-3); border: none; background: none; padding: 10px 22px; border-radius: 4px; cursor: pointer; transition: all .15s; }
.legal-tabs button.on { background: var(--volt); color: var(--volt-ink); }
.legal-meta { font-size: 13.5px; color: var(--ink-on-dark-3); font-weight: 500; margin-top: 14px; }
.legal-doc { display: none; max-width: 780px; margin: 0 auto; padding: 0 22px 100px; }
.legal-doc.on { display: block; }
.legal-paper { background: var(--deep-2); border: 1px solid var(--line-d); border-radius: 8px; padding: 14px 40px 44px; }
.legal-paper h2.sec { font-family: var(--f-body); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; margin: 38px 0 6px; padding-top: 20px; border-top: 1px solid var(--line-d); scroll-margin-top: 90px; color: var(--ink-on-dark); }
.legal-paper h2.sec:first-of-type { border-top: none; padding-top: 8px; }
.legal-paper h2.sec .num { color: var(--volt); font-variant-numeric: tabular-nums; margin-right: 10px; }
.legal-paper h3.sub { font-family: var(--f-body); font-weight: 700; font-size: 16px; margin: 22px 0 4px; color: var(--ink-on-dark); }
.legal-paper p { margin: 10px 0; color: var(--ink-on-dark-2); font-size: 15.5px; line-height: 1.65; }
.legal-paper p.lead { color: var(--ink-on-dark-2); font-size: 16.5px; }
.legal-paper ul, .legal-paper ol { margin: 10px 0; padding-left: 22px; color: var(--ink-on-dark-2); font-size: 15.5px; line-height: 1.65; }
.legal-paper li { margin: 6px 0; }
.legal-paper strong { font-weight: 700; color: var(--ink-on-dark); }
.legal-paper a { color: var(--volt); text-decoration: none; }
.legal-paper a:hover { text-decoration: underline; }
.legal-callout { background: rgba(200,241,53,.06); border: 1px solid rgba(200,241,53,.22); border-radius: 6px; padding: 14px 16px; margin: 16px 0; }
.legal-callout .c-t { font-weight: 700; font-size: 14px; margin-bottom: 3px; color: var(--volt); }
.legal-callout p { margin: 4px 0; font-size: 14px; color: var(--ink-on-dark-2); }
.legal-toc { background: var(--deep-3); border: 1px solid var(--line-d); border-radius: 6px; padding: 18px 22px; margin: 22px 0 8px; }
.legal-toc .toc-t { font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-on-dark-3); margin-bottom: 10px; }
.legal-toc ol { columns: 2; column-gap: 30px; padding-left: 18px; margin: 0; }
.legal-toc li { margin: 4px 0; font-size: 13.5px; }
.legal-toc a { color: var(--ink-on-dark-2); font-weight: 600; }
.legal-toc a:hover { color: var(--volt); }
.legal-paper table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.legal-paper th, .legal-paper td { text-align: left; padding: 10px 12px; border: 1px solid var(--line-d); vertical-align: top; color: var(--ink-on-dark-2); }
.legal-paper th { background: var(--deep-3); font-family: var(--f-mono); font-weight: 600; font-size: 11px; color: var(--ink-on-dark-3); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1100px) { .ct-container { padding: 0 32px; } }
@media (max-width: 640px) {
  .ct-container { padding: 0 20px; }
  .section-pad { padding: 56px 0; }
  .h-display { font-size: 36px; }
  .h-section { font-size: 30px; }
  .legal-paper { padding: 10px 20px 32px; }
  .legal-toc ol { columns: 1; }
  .legal-tabs button { padding: 9px 14px; }
}

/* ══════════════ iOS FORM CONTROLS ══════════════ */
/*
 * Mobile Safari zooms the whole page whenever a focused form control has a
 * font-size under 16px, and it does not zoom back out — so tapping any input or
 * opening any <select> left the layout shifted and half off-screen. Our controls
 * are defined at 13.5–15px across styles.css and several per-page <style>
 * blocks, so this needs !important to land on all of them from one place.
 * Applied only to touch pointers, leaving desktop typography untouched.
 */
@media (pointer: coarse) {
  input, select, textarea,
  .field input, .field select, .field textarea,
  .acct-input, .auth-input {
    font-size: 16px !important;
  }
}

/* Editorial discovery and expanded shared navigation. */
.seo-resources h2 { margin-top: 20px; }
.seo-resources p { margin-top: 24px; }
.seo-resources nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 36px; }
.seo-resources nav a { color: var(--ink-on-light); border-top: 1px solid var(--line-l); padding: 22px 0; font-size: 15px; font-weight: 700; }
@media (max-width: 1250px) { .ct-nav .nav-links { display: none; } .ct-nav .nav-hamburger { display: flex; } }
/* Logged in, the strip carries an extra link plus bell + account menu; show only
   the avatar until there is room for the name so Download App stays on-screen. */
@media (min-width: 1251px) and (max-width: 1420px) {
  .ct-nav .nav-user-name { display: none; }
  .ct-nav .nav-notif { margin-right: 0; }
}
.nav-mobile { overflow-y: auto; }
@media (max-height: 850px) { .nav-mobile { justify-content: flex-start; } .nav-mobile > a { font-size: 28px; padding: 8px 0; } }
@media (max-width: 700px) { .seo-resources nav { grid-template-columns: 1fr; } }

/* ══════════════════════════════ ANALYTICS CONSENT (analytics.js) ══════════════════════════════ */
.footer-col .footer-cookie {
  display: block; padding: 5px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: 14px; color: var(--ink-on-dark-2); transition: color .15s, transform .15s;
}
.footer-col .footer-cookie:hover { color: var(--volt); transform: translateX(4px); }
.ct-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; margin: 0 auto; max-width: 720px;
  display: flex; align-items: center; gap: 18px; padding: 16px 18px;
  background: var(--deep-2); color: var(--ink-on-dark); border: 1px solid var(--line-d); border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.ct-consent p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-on-dark-2); flex: 1; }
.ct-consent a { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; }
.ct-consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ct-consent button {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 16px; border-radius: 3px; cursor: pointer; border: 1px solid var(--line-d); background: none; color: var(--ink-on-dark);
}
.ct-consent .ct-consent-yes { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.ct-consent button:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
@media (max-width: 560px) { .ct-consent { flex-direction: column; align-items: stretch; } .ct-consent-actions > * { flex: 1; } }
