@font-face { font-family: "Oswald"; src: url("Oswald-VariableFont.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("Lato-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --yellow: #ffed00;
  --bg: #000;
  --card: #141414;
  --card-raised: #1e1e1e;
  --text: #fff;
  --muted: #a3a3a3;
  --line: #2a2a2a;
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 "Lato", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .kicker, .brand span, .btn, .stat strong, .price, .menu a { font-family: "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.02; margin: 12px 0 22px; font-weight: 700; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; margin: 8px 0 18px; font-weight: 700; }
h3 { font-size: 24px; margin: 6px 0; font-weight: 600; }
.hl { color: var(--yellow); }
.kicker { color: var(--yellow); font-size: 15px; letter-spacing: .14em; font-weight: 500; margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #d6d6d6; max-width: 34em; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100% - var(--max)) / 2)); background: rgba(0,0,0,.78); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand span { font-weight: 600; font-size: 20px; color: var(--yellow); letter-spacing: .06em; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { text-decoration: none; color: #cfcfcf; font-size: 15px; letter-spacing: .08em; }
.menu a:hover { color: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--yellow); color: #000; text-decoration: none; font-weight: 600; font-size: 19px; padding: 16px 28px; border-radius: 16px; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 10px 40px rgba(255,237,0,.25); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(255,237,0,.35); }
.btn .apple { width: 22px; height: 22px; }
.btn.small { font-size: 15px; padding: 9px 16px; border-radius: 12px; box-shadow: none; }
.btn.small .apple { width: 17px; height: 17px; }

/* Hero */
main > section { padding: 0 max(16px, calc((100% - var(--max)) / 2)); }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; min-height: min(calc(100vh - 64px), 860px); padding-top: 40px !important; padding-bottom: 40px !important; position: relative; }
.hero::before { content: ""; position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; background: radial-gradient(circle, rgba(255,237,0,.22), transparent 62%); pointer-events: none; z-index: -1; }
.hero-media { position: relative; height: min(78vh, 720px); }
.hero-media .phone { position: absolute; width: min(44%, 300px); }
.hero-media .phone.front { left: 8%; top: 4%; z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-media .phone.back { right: 6%; top: 14%; transform: rotate(6deg); opacity: .92; }
/* Centred between the phones: their centres sit at 8% + w/2 and 94% - w/2, so the midpoint is 51% for any width. */
.hero-media .watch { position: absolute; left: 51%; margin-left: calc(min(38%, 250px) / -2); bottom: 5%; width: min(38%, 250px); z-index: 3; animation: float 6s ease-in-out -2s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Devices */
.phone { margin: 0; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #2c2c2e, #111); box-shadow: 0 0 0 1px #3a3a3c inset, 0 40px 80px rgba(0,0,0,.7), 0 0 60px rgba(255,237,0,.08); }
.phone img { border-radius: 37px; width: 100%; height: auto; }
/* The watch image already includes its case and shadow (transparent background). */
.watch { margin: 0; }
.watch img { width: 100%; height: auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 30px !important; padding-bottom: 70px !important; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stat strong { display: block; font-size: 52px; color: var(--yellow); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding-top: 70px !important; padding-bottom: 70px !important; }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: #d0d0d0; font-size: 18px; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before { content: ""; position: absolute; inset: 10% 15%; background: radial-gradient(circle, rgba(255,237,0,.16), transparent 65%); z-index: -1; }
.feature-media .phone { width: min(80%, 340px); }
.feature-media .watch { width: min(72%, 340px); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding-left: 34px; margin: 12px 0; color: #e8e8e8; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="10" fill="black"/><path d="M5.5 10.5l3 3 6-7" stroke="white" stroke-width="2.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="10" fill="black"/><path d="M5.5 10.5l3 3 6-7" stroke="white" stroke-width="2.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat; }

/* How it works */
.how { padding-top: 90px !important; padding-bottom: 90px !important; background: linear-gradient(180deg, transparent, #0d0d08 30%, #0d0d08 70%, transparent); }
.how h2 { text-align: center; }
.how ol { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.how li p { color: var(--muted); margin: 0; }
.step { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: #000; font: 600 22px "Oswald", sans-serif; }
.how-shots { display: flex; justify-content: center; gap: 40px; }
.how-shots .phone { width: min(40%, 300px); }
.how-shots .phone:nth-child(2) { margin-top: 60px; }

/* Pricing */
.pricing { padding-top: 90px !important; padding-bottom: 60px !important; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; margin-top: 36px; text-align: left; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.plan.pro { background: var(--yellow); color: #000; border-color: var(--yellow); }
.plan.pro .checks li { color: #000; }
.plan.pro .checks li::before { background: #000; }
.plan.pro .note { color: rgba(0,0,0,.65); }
.price { font-size: 28px; margin: 4px 0 8px; }

/* FAQ */
/* The section spans the page; its padding centres an 860 px column (a max-width here would shrink the content on wide screens). */
main > section.faq { padding: 60px max(16px, calc((100% - 860px) / 2)); }
.faq h2 { text-align: center; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 12px 0; }
summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--yellow); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: #cfcfcf; margin: 12px 0 0; }

/* Final */
.final { text-align: center; padding-top: 80px !important; padding-bottom: 110px !important; }
.final h2 { font-size: clamp(40px, 6vw, 80px); margin-bottom: 30px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px max(16px, calc((100% - var(--max)) / 2)) 44px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--yellow); }
.langs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 22px 0; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a.active, .langs a:hover { color: var(--yellow); }
.fine { font-size: 12.5px; max-width: 70em; }

/* Legal */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 16px 80px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal h2 { font-size: 26px; margin-top: 42px; }
.legal p, .legal li { color: #d4d4d4; }
.legal .updated { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-media .phone.front, .hero-media .watch { animation: none; } }

/* Narrow screens */
@media (max-width: 900px) {
  .menu { display: none; }
  .topbar { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero-media { height: 560px; }
  .hero-media .phone { width: 56%; }
  .stats, .how ol { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 34px; padding-top: 50px !important; padding-bottom: 50px !important; }
  .feature.flip .feature-text { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .how-shots .phone { width: 46%; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { font-size: 17px; padding: 14px 20px; }
  .hero-media { height: 470px; }
  .phone { border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
}

/* Grid and flex children may shrink below their content (long words, wide images). */
html { overflow-x: clip; }
.hero > *, .feature > *, .stats > *, .how li, .plans > *, .topbar > * { min-width: 0; }
h1, h2 { overflow-wrap: break-word; hyphens: manual; }

/* Store badges (official artwork) */
.badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.final .badges { justify-content: center; }
.badge { display: inline-block; position: relative; line-height: 0; }
.badge.apple img { height: 56px; width: auto; }
.badge.play img { height: 82px; width: auto; margin: -13px -8px; }
.badge.play.soon-badge img { filter: grayscale(1); opacity: .45; }
.badge.play .soon { position: absolute; top: -10px; right: -6px; line-height: 1; background: var(--yellow); color: #000; font: 600 12px/1 "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; border-radius: 999px; transform: rotate(6deg); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.badges.small .badge.apple img { height: 38px; }
.badge-fallback { display: inline-block; line-height: 1; background: #fff; color: #000; font: 600 15px "Oswald", sans-serif; text-transform: uppercase; padding: 14px 20px; border-radius: 12px; }
.badges.small .badge-fallback { padding: 8px 12px; font-size: 13px; }

/* Language switcher: buttons that change the texts in place */
.langs button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.langs button:hover, .langs button.active { color: var(--yellow); }

/* Section heads */
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head .lead { margin-top: 0; }

/* Race data */
.data { padding-top: 40px !important; padding-bottom: 70px !important; }
.data .stats { padding: 0 !important; }
.data-note { color: #d0d0d0; font-size: 18px; max-width: 46em; margin-top: 26px; }

/* Citations */
.cite { display: inline-block; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 6px; background: rgba(255,237,0,.14); color: var(--yellow); font: 600 12px/20px "Lato", sans-serif; text-align: center; text-decoration: none; vertical-align: 2px; }
.cite:hover { background: var(--yellow); color: #000; }

/* Method pillars */
.method { padding-top: 70px !important; padding-bottom: 40px !important; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.pillar:hover { border-color: rgba(255,237,0,.5); transform: translateY(-3px); }
.pillar p { color: var(--muted); margin: 6px 0 0; font-size: 16px; }
.icon { width: 34px; height: 34px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

/* Science box */
.sci { border-left: 3px solid var(--yellow); background: linear-gradient(90deg, rgba(255,237,0,.07), transparent); border-radius: 0 16px 16px 0; padding: 14px 18px; margin: 22px 0 6px; }
.sci p { margin: 0; font-size: 16px !important; color: #cfcfcf !important; }
.sci .sci-label { font: 500 13px "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow) !important; margin-bottom: 6px; }

/* Cadence test protocol and chart */
.how-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: center; margin-top: 34px; }
.how-grid ol { grid-template-columns: 1fr; margin: 0; }
.chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: #3a3a3a; stroke-width: 1.5; }
.chart .zone { fill: rgba(255,237,0,.12); stroke: rgba(255,237,0,.45); stroke-dasharray: 5 5; }
.chart .zone-label { fill: var(--yellow); font: 600 14px "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em; text-anchor: middle; }
.chart .leg { fill: none; stroke-width: 2; stroke-dasharray: 6 6; }
.chart .leg.up { stroke: #ff5a4e; }
.chart .leg.down { stroke: #4ec9ff; }
.chart .avg { fill: none; stroke: #fff; stroke-width: 3; }
.chart .dots circle { fill: #fff; }
.chart .ticks text { fill: var(--muted); font: 13px "Lato", sans-serif; text-anchor: middle; }
.chart .axis-label { fill: var(--muted); font: 13px "Lato", sans-serif; text-anchor: middle; }
.chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.key { display: inline-block; width: 22px; height: 0; border-top: 2px dashed; margin-right: -6px; }
.key.up { color: #ff5a4e; } .key.down { color: #4ec9ff; } .key.avg { border-top: 3px solid #fff; }

/* Binaural visual */
.binaural { margin: 0; width: min(100%, 460px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 22px 18px; }
.tone { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tone:last-child { border: 0; }
.tone svg { width: 100%; height: 54px; display: block; margin-top: 6px; }
.tone polyline { fill: none; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.tone.left polyline { stroke: #ff5a4e; } .tone.right polyline { stroke: #4ec9ff; } .tone.beat polyline { stroke: var(--yellow); }
.ear { display: flex; justify-content: space-between; align-items: baseline; }
.ear span { color: var(--muted); font-size: 15px; }
.ear strong { font: 600 22px "Oswald", sans-serif; }
.tone.beat .ear strong { color: var(--yellow); font-size: 30px; }

/* Audience */
.audience { padding-top: 70px !important; padding-bottom: 40px !important; }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-top: 3px solid var(--yellow); }
.aud p { color: #cfcfcf; margin: 8px 0 0; }

/* Metrics glossary */
.metrics { padding-top: 70px !important; padding-bottom: 50px !important; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.metric h3 { font-size: 19px; color: var(--yellow); }
.metric p { color: #cfcfcf; font-size: 15px; margin: 6px 0 0; }

/* References and claims */
.science { padding-top: 60px !important; padding-bottom: 30px !important; }
.refs { counter-reset: ref; list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.refs li { counter-increment: ref; break-inside: avoid; position: relative; padding-left: 36px; margin: 0 0 14px; color: #bdbdbd; font-size: 14px; line-height: 1.5; scroll-margin-top: 90px; }
.refs li::before { content: counter(ref); position: absolute; left: 0; top: 1px; min-width: 24px; height: 20px; border-radius: 6px; background: rgba(255,237,0,.14); color: var(--yellow); font: 600 12px/20px "Lato", sans-serif; text-align: center; }
.refs li:target { color: #fff; }
.refs li:target::before { background: var(--yellow); color: #000; }
.refs a { color: var(--yellow); text-decoration: none; word-break: break-all; }
.claims { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: #0c0c0c; }
.claims p { color: #cfcfcf; margin: 8px 0 0; }

@media (max-width: 900px) {
  .pillars, .metric-grid { grid-template-columns: 1fr 1fr; }
  .aud-grid, .how-grid { grid-template-columns: 1fr; }
  .refs { columns: 1; }
}
@media (max-width: 520px) {
  .pillars, .metric-grid { grid-template-columns: 1fr; }
}
.pillars > *, .metric-grid > *, .aud-grid > *, .how-grid > * { min-width: 0; }
.brand span, .badge-fallback { white-space: nowrap; }
@media (max-width: 420px) { .brand span { font-size: 17px; } .badges.small .badge-fallback { font-size: 12px; padding: 7px 10px; } }

.badge.apple img { height: 56px; width: auto; }
.topbar .btn.small { margin-left: 8px; white-space: nowrap; }
