:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --soft: #f5f5f4;
  --accent: #ff6a13;
  --accent-ink: #ffffff;
  --frame: #111111;
  --screen: #ececea;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f5f5f5;
    --muted: #9a9a9a;
    --line: #1f1f1f;
    --soft: #0f0f0f;
    --frame: #2a2a2a;
    --screen: #1a1a1a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* Type */
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 9vw, 84px); font-weight: 800; }
h2 { font-size: clamp(32px, 5.5vw, 52px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.accent { color: var(--accent); }
.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 620px; margin: 22px auto 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 18px; }

/* Hero */
.hero { text-align: center; padding-top: 72px; padding-bottom: 40px; }
.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta small { color: var(--muted); font-size: 14px; }

/* App Store button */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fg); color: var(--bg);
  text-decoration: none; border-radius: 14px;
  padding: 12px 22px 12px 18px; min-height: 60px;
  transition: transform .15s ease, opacity .15s ease;
}
.appstore:hover { opacity: .88; }
.appstore:active { transform: scale(.98); }
.appstore svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.appstore span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.appstore .s { font-size: 12px; font-weight: 500; }
.appstore .l { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

/* Phones */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; padding-top: 40px; padding-bottom: 96px; }
.phone {
  width: 260px; flex: none; aspect-ratio: 9 / 19.5;
  background: var(--frame); border-radius: 46px; padding: 10px;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--screen); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.phone .screen::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 20px; background: #000; z-index: 2;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.phone .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.phone .ph img { width: 64px; height: 64px; opacity: .35; }
.phone.side { width: 220px; }
@media (max-width: 820px) {
  .phones { gap: 0; }
  .phone.side { display: none; }
  .phone { width: min(270px, 72vw); }
}

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { padding: 0; }
.step .n {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 20px;
}
.step p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--soft); border-radius: 24px; padding: 28px; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.card .ic { width: 40px; height: 40px; margin-bottom: 18px; color: var(--accent); }
.card .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: 32px; position: relative; }
.plan.featured { border: 2px solid var(--accent); }
.plan .tag {
  position: absolute; top: -13px; left: 28px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.plan .name { font-weight: 600; color: var(--muted); }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 0; line-height: 1.1; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); font-size: 16px; }
.plan li { padding: 6px 0; display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.fineprint { text-align: center; color: var(--muted); font-size: 14px; max-width: 620px; margin: 28px auto 0; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* Final CTA */
.final { text-align: center; }
.final .cta { margin-top: 32px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* Legal / doc pages */
.doc { padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(38px, 7vw, 60px); }
.doc .meta { color: var(--muted); margin: 14px 0 40px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 10px; line-height: 1.2; }
.doc p, .doc li { color: var(--fg); opacity: .86; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc ul { padding-left: 20px; }
.doc .callout { background: var(--soft); border-radius: 20px; padding: 24px 26px; margin: 8px 0 0; }
.doc .callout p { margin: 0; opacity: 1; }
.doc details summary { font-size: 17px; }
.doc details p { opacity: 1; color: var(--muted); }

/* Drill + guide pages */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted) !important; }
.crumbs span[aria-hidden] { opacity: .5; }
.doc .lede-l { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); opacity: 1; margin: 18px 0 0; }
.doc h3 { margin: 26px 0 6px; font-size: 19px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.facts .chip { background: var(--soft); border-color: var(--line); font-size: 14px; }
.facts .chip b { color: var(--fg); font-weight: 600; }
.doc ol.numbered { list-style: none; padding: 0; counter-reset: n; }
.doc ol.numbered > li { counter-increment: n; position: relative; padding: 0 0 0 46px; margin: 0 0 16px; min-height: 30px; }
.doc ol.numbered > li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.doc ul.marks { list-style: none; padding: 0; }
.doc ul.marks > li { position: relative; padding-left: 26px; margin: 0 0 12px; }
.doc ul.marks > li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.workout { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 16px 0 0; }
.workout .row { display: flex; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.workout .row:first-child { border-top: 0; }
.workout .t { flex: none; width: 92px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.workout .d { opacity: .86; }
@media (max-width: 520px) { .workout .row { flex-direction: column; gap: 2px; } }
.inline-cta { background: var(--soft); border-radius: 20px; padding: 24px 26px; margin: 24px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.inline-cta p { margin: 0; opacity: 1 !important; max-width: 420px; }
.doc .inline-cta a.appstore, .final a.appstore { color: var(--bg); }
.inline-cta .appstore { min-height: 52px; padding: 10px 18px 10px 14px; }
.inline-cta .appstore .l { font-size: 19px; }
.rel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.doc a.rel-card, a.rel-card { display: block; background: var(--soft); border-radius: 20px; padding: 20px 22px; color: var(--fg); text-decoration: none; transition: opacity .15s; }
.doc a.rel-card:hover, a.rel-card:hover { text-decoration: none; opacity: .8; }
.rel-card .k { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.rel-card strong { display: block; font-size: 17px; margin: 4px 0 4px; letter-spacing: -0.01em; }
.rel-card span.s { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 600px) { .rel { grid-template-columns: 1fr; } }
.hub { padding-top: 56px; padding-bottom: 96px; }
.hub h1 { font-size: clamp(40px, 8vw, 68px); }
.hub .intro { color: var(--muted); max-width: 680px; font-size: 18px; margin: 18px 0 44px; }
.hub h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 16px; }
.hub .rel { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .hub .rel { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hub .rel { grid-template-columns: 1fr; } }
.final small { display: block; color: var(--muted); font-size: 14px; }

/* ===== v2 design system (Nov 2026): matches /v2 homepage. Overrides the original theme above. ===== */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Nunito:wght@800;900&display=swap");
:root, :root:where(*) {
  --bg: #EDEDED; --fg: #0B0B0B; --muted: #5E5E5E; --line: #DCDCDC; --soft: #FFFFFF;
  --accent: #FF6A13; --accent-ink: #FFFFFF; --frame: #0B0B0B; --screen: #EDEDED;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #EDEDED; --fg: #0B0B0B; --muted: #5E5E5E; --line: #DCDCDC; --soft: #FFFFFF; --frame: #0B0B0B; --screen: #EDEDED; }
}
body { font-family: "Geist", -apple-system, system-ui, sans-serif; font-weight: 500; letter-spacing: -.01em; background: var(--bg); color: var(--fg); }
h1, h2, h3 { font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; font-weight: 900; letter-spacing: -.04em; }
header.wrap { position: sticky; top: 0; z-index: 40; background: rgba(237,237,237,.85); backdrop-filter: blur(14px); }
.brand { font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; font-weight: 900; font-size: 19px; letter-spacing: -.03em; }
.brand img { border-radius: 8px; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--fg); }
.card, .doc .callout, .inline-cta, .doc a.rel-card, a.rel-card { background: var(--soft); box-shadow: 0 10px 30px rgba(0,0,0,.07); border-radius: 24px; }
.plan { background: var(--soft); border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.appstore { background: var(--fg); color: #fff; border-radius: 16px; }
.doc .inline-cta a.appstore, .final a.appstore { color: #fff; }
.chip { background: var(--soft); border: 0; font-weight: 600; color: var(--fg); }
.workout { background: var(--soft); border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.doc a:not(.appstore):not(.rel-card) { color: var(--accent); font-weight: 600; }
.eyebrow, .k { color: var(--accent); }
/* FAQ cards, same as the homepage */
details, details:first-child { background: var(--soft); border: 0 !important; border-radius: 20px; padding: 18px 22px; margin: 0 0 10px; box-shadow: 0 10px 30px rgba(0,0,0,.07); }
details summary { font-weight: 700; font-size: 17px; }
details p { margin-top: 10px; }
summary::after { color: #9A9A9A; font-weight: 900; }

/* comparison tables, glossary */
.table-wrap { overflow-x: auto; margin: 16px 0 0; border-radius: 20px; background: var(--soft); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
.table-wrap thead th { border-top: 0; font-weight: 700; color: var(--fg); }
.table-wrap td:first-child { font-weight: 600; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; }
.doc .az a { display: inline-block; min-width: 34px; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--soft); text-decoration: none; }
.terms { margin: 0; }
.terms dt { font-weight: 700; font-size: 17px; margin: 18px 0 4px; scroll-margin-top: 80px; }
.terms dd { margin: 0; opacity: .86; }
