/* dopamine.fitness: static, no framework. Colours: near-black, off-white, lime used sparingly. */
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0D10;
  --panel: #12151A;
  --ink: #F4F6F0;
  --mute: #A3AAA2;
  --line: rgba(244, 246, 240, 0.13);
  --lime: #C8FF00;
  --gutter: 16px;
  --wrap: 1120px;
  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .badge:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; overflow-wrap: break-word; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: #0B0D10; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.mark { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: 0.04em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.mark::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.nav { display: none; gap: 28px; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.get { font-weight: 600; font-size: 0.9375rem; text-decoration: none; background: var(--lime); color: #0B0D10; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.get:hover { background: #D8FF4A; }

/* Hero */
.hero { padding: 36px 0 48px; }
.hero .wrap { display: grid; gap: 36px; }
.hero h1 { font-size: clamp(2.25rem, 10.4vw, 5rem); }
.hero h1.long { font-size: clamp(1.6rem, 6.4vw, 3.1rem); line-height: 1.14; }
.hero h1 em { font-style: normal; color: var(--lime); }
.sub { font-size: 1.125rem; color: var(--ink); max-width: 34em; margin: 18px 0 0; }
.hero .badges { margin-top: 26px; }
.trust { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.875rem; max-width: 34em; }

/* Store badges */
.badges { display: flex; gap: 10px; align-items: flex-start; max-width: 410px; }
.store { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-width: 0; }
.badge {
  display: flex; align-items: center; gap: 9px;
  height: 56px; padding: 0 10px 0 12px;
  border-radius: 12px; border: 1px solid rgba(244, 246, 240, 0.55);
  background: #000; color: #fff; text-decoration: none; line-height: 1.1;
}
.badge:hover { border-color: var(--lime); }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge small { display: block; font-size: 0.6875rem; letter-spacing: 0.02em; opacity: 0.85; }
.badge b { display: block; font: 600 1.0625rem/1.15 var(--body); letter-spacing: -0.01em; white-space: nowrap; }
.note { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--mute); }
.is-ios .store.ios { order: -1; }

/* Phone screens */
.phone { margin: 0; }
.phone img { width: 100%; border-radius: 11.5% / 5.3%; border: 1px solid rgba(244, 246, 240, 0.22); background: #000; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6); }
.phone figcaption, .shot figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--mute); line-height: 1.45; }
.hero .phone { width: min(290px, 72vw); margin: 0 auto; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 14px; border: 1px solid rgba(244, 246, 240, 0.22); }

/* Photos: mood only, the app screens stay as proof */
.hero.has-photo { position: relative; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 62%; transform: scaleX(-1); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 16, 0.72), rgba(11, 13, 16, 0.82) 70%, var(--bg)); }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: 14px; border: 1px solid rgba(244, 246, 240, 0.22); }
.photo.tall { max-width: 360px; }
.photo figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--mute); }
.stack { display: grid; gap: 20px; }

/* Sections */
.sec { padding: 52px 0; border-top: 1px solid var(--line); }
.sec .wrap { display: grid; gap: 28px; }
.sec h2 { font-size: clamp(1.45rem, 5.6vw, 2.35rem); }
.sec h2 + p { margin-top: 16px; }
.copy { max-width: 36em; }
.copy p:last-child { margin-bottom: 0; }
.fine { color: var(--mute); font-size: 0.9375rem; }
.more { display: inline-block; margin-top: 4px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.more:hover { color: var(--lime); }
.more + .more { margin-left: 22px; }
.sec .phone { width: min(250px, 64vw); }

/* Readouts: real labels from the app, never invented numbers */
.readout { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.readout li { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
.readout li.plain { text-transform: none; letter-spacing: 0.02em; }
.readout-cap { margin: 10px 0 0; font-size: 0.8125rem; color: var(--mute); }

/* Screens row (download) */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.screens .phone { width: auto; }
.screens .phone img { box-shadow: none; }
.screens figcaption { font-size: 0.8125rem; }

/* Steps */
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; max-width: 36em; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 58px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #0B0D10; font: 700 0.875rem/28px var(--display); text-align: center; }
q { quotes: "\201C" "\201D"; font-weight: 600; }

/* FAQ */
.faq { margin: 20px 0 0; max-width: 36em; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--mute); }

/* Final call */
.final { padding: 64px 0 72px; border-top: 1px solid var(--line); background: var(--panel); }
.final h2 { font-size: clamp(1.6rem, 6.6vw, 2.9rem); max-width: 16em; }
.final .badges { margin-top: 28px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 110px; color: var(--mute); font-size: 0.875rem; }
.foot .wrap { display: grid; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--ink); }

/* Sticky install bar (mobile only) */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
  transition: transform 0.2s ease;
}
.sticky.off { transform: translateY(110%); }
.sticky span { font: 700 0.8125rem/1.2 var(--display); }
.sticky div { display: flex; gap: 8px; }
.sticky a { font-weight: 600; font-size: 0.875rem; text-decoration: none; padding: 10px 14px; border-radius: 999px; background: var(--lime); color: #0B0D10; white-space: nowrap; }
.is-ios .sticky .s-play, .is-android .sticky .s-ios { display: none; }
.is-ios .sticky .s-ios { order: -1; }

/* 404 */
.lost { padding: 72px 0 96px; }
.lost h1 { font-size: clamp(2rem, 9vw, 4rem); }

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  body { font-size: 1.125rem; }
  .nav { display: flex; }
  .sticky { display: none; }
  .foot { padding-bottom: 40px; }
  .hero { padding: 72px 0 84px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 56px; }
  .hero.solo .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .phone { width: min(320px, 100%); margin: 0 0 0 auto; }
  .sub { font-size: 1.3125rem; }
  .sec { padding: 88px 0; }
  .sec .wrap.split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; gap: 64px; }
  .sec .wrap.split .phone, .sec .wrap.split .shot, .sec .wrap.split .photo, .sec .wrap.split .stack { justify-self: end; }
  .sec .wrap.split .stack { width: 100%; max-width: 460px; }
  .hero-photo::after { background: linear-gradient(90deg, rgba(11, 13, 16, 0.9), rgba(11, 13, 16, 0.55) 55%, rgba(11, 13, 16, 0.25)), linear-gradient(180deg, transparent 75%, var(--bg)); }
  .sec .wrap.split .shot { width: 100%; max-width: 460px; }
  .screens { gap: 28px; max-width: 860px; }
  .screens figcaption { font-size: 0.9375rem; }
  .final { padding: 96px 0 104px; }
}

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