/* ==========================================================================
   NapFit — the quiet gym
   Design tokens mirror src/theme/tokens.ts (default "Poppi" palette).
   No gradients. No soft shadows. Hard 4px offset shadows only.
   ========================================================================== */

:root {
  /* palette roles — swap these six pairs to change the whole site */
  --pri: #FF4F9A;
  --on-pri: #FFF2F8;
  --sec: #5A4FFF;
  --on-sec: #F0EFFF;
  --acc: #D8FF4F;
  --on-acc: #3A4212;

  --ink: #171512;
  --canvas: #F4EFE8;
  --surface: #FFFFFF;
  --muted: #E9E2D6;
  --text-muted: #6B655B;
  --text-faint: #9B968C;
  --divider: #DDD5C6;

  --display: "Unbounded", "Archivo", system-ui, -apple-system, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 5vw, 40px);
  --r-card: 20px;
  --r-pill: 99px;
  --shadow: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

h1, h2, h3 { margin: 0; font-family: var(--display); }

a { color: inherit; }

::selection { background: var(--acc); color: var(--on-acc); }

:focus-visible {
  outline: 3px solid var(--sec);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--acc);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font: 700 13px/1 var(--body);
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

/* ── typography scale ────────────────────────────────────── */

.display-xl {
  font-weight: 900;
  font-size: clamp(52px, 13vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.display-l {
  font-weight: 900;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.sub-h {
  font-weight: 900;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 52px 0 18px;
}

.eyebrow {
  font: 700 11px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pri);
  margin: 0 0 12px;
}
.eyebrow-acc { color: var(--acc); }

.lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0 0 26px;
}

.section-lead {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 32px;
}

.micro {
  font: 600 12.5px/1.5 var(--body);
  color: var(--text-faint);
  margin: 14px 0 0;
}

.fine {
  font: 400 13.5px/1.6 var(--body);
  color: var(--text-muted);
  max-width: 62ch;
  margin: 22px 0 0;
}

.pri { color: var(--pri); }
.acc { color: var(--acc); }

/* ── sticker chips ───────────────────────────────────────── */

.sticker {
  display: inline-block;
  font: 700 11.5px/1 var(--body);
  letter-spacing: 0.02em;
  padding: 9px 15px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  transform: rotate(-2deg);
  margin: 0 0 20px;
}
.sticker-acc { background: var(--acc); color: var(--on-acc); }
.sticker-r { transform: rotate(2deg); }

/* ── buttons + store badges ──────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font: 700 13px/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-ink { background: var(--ink); color: var(--acc); }
.btn-sm { min-height: 38px; padding: 10px 18px; font-size: 11.5px; }
.btn:hover { transform: translateY(-1px); }

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-row-c { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 9px 20px 9px 16px;
  background: var(--ink);
  color: var(--canvas);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: transform .12s ease;
}
.store-btn span {
  display: flex;
  flex-direction: column;
  font: 700 15px/1.05 var(--display);
  letter-spacing: -0.01em;
}
.store-btn small {
  font: 500 9.5px/1.4 var(--body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.72;
}
.store-glyph { width: 24px; height: 24px; flex: none; }
.store-btn:hover { transform: translateY(-2px); }

.store-btn-ink { background: var(--ink); color: var(--acc); border-color: var(--ink); }
.store-btn-acc { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }

/* ── header ──────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}
.logo {
  font: 900 19px/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.head-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font: 600 13px/1 var(--body);
}
.head-nav a { text-decoration: none; color: var(--text-muted); }
.head-nav a:hover { color: var(--ink); }
.head-cta { flex: none; }

@media (max-width: 720px) {
  .head-nav { display: none; }
  .head-cta { margin-left: auto; }
}

/* ── bands ───────────────────────────────────────────────── */

.band { padding: clamp(56px, 9vw, 104px) 0; }
.band-muted { background: var(--muted); }
.band-canvas { background: var(--surface); }
.band-ink { background: var(--ink); color: var(--canvas); }
.band-ink .section-lead { color: rgba(244, 239, 232, 0.78); }
.band-ink .fine { color: rgba(244, 239, 232, 0.6); }
.band-ink .micro { color: rgba(244, 239, 232, 0.55); }
.band-pri { background: var(--pri); color: var(--on-pri); }
.band-pri .section-lead { color: rgba(255, 242, 248, 0.85); }

/* ── hero ────────────────────────────────────────────────── */

.hero { padding-top: clamp(40px, 7vw, 76px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-phone { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-phone { justify-content: flex-end; }
}

/* ── marquee ─────────────────────────────────────────────── */

.marquee {
  margin-top: clamp(48px, 7vw, 84px);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--acc);
  overflow: hidden;
  padding: 12px 0;
}
.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.mq {
  font: 700 12.5px/1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-acc);
  white-space: nowrap;
}
.mq::after { content: " ·"; opacity: 0.45; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── mode cards ──────────────────────────────────────────── */

.mode-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .mode-grid { grid-template-columns: 1fr 1fr; } }

.big-card {
  position: relative;
  border-radius: 24px;
  padding: clamp(24px, 3.4vw, 34px);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.bc-pri { background: var(--pri); color: var(--on-pri); }
.bc-sec { background: var(--sec); color: var(--on-sec); }
.big-card h3 {
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 8px;
  max-width: 9ch;
}
.bc-sub {
  font: 600 13px/1.4 var(--body);
  opacity: 0.88;
  margin: 0 0 16px;
}
.bc-body {
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 18px;
  opacity: 0.95;
}
.bc-arrow {
  position: absolute;
  top: clamp(20px, 3vw, 28px);
  right: clamp(20px, 3vw, 28px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font: 600 13px/1.4 var(--body);
}
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--on-acc);
  font-size: 9px;
  display: grid;
  place-items: center;
}

/* ── three-up mini cards ─────────────────────────────────── */

.three-up {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 760px) { .three-up { grid-template-columns: repeat(3, 1fr); } }

.mini-card {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(244, 239, 232, 0.28);
  border-radius: 18px;
  padding: 22px;
}
.mini-ico { font-size: 22px; display: block; margin-bottom: 12px; }
.mini-card h3 {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--acc);
}
.mini-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(244, 239, 232, 0.8);
}

/* ── split (copy + phone) ────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 60px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 0.95fr 1.05fr; }
  .split-rev { grid-template-columns: 1.05fr 0.95fr; }
}
.split-phone { display: flex; justify-content: center; }

.spec-list { margin: 0; }
.spec-list > div {
  padding: 16px 0;
  border-top: 2px solid var(--divider);
}
.spec-list > div:last-child { border-bottom: 2px solid var(--divider); }
.spec-list dt {
  font: 700 11px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pri);
  margin-bottom: 7px;
}
.spec-list dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── moves ───────────────────────────────────────────────── */

.moves-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .moves-grid { grid-template-columns: 1fr 1fr; } }

.mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  padding: 13px 17px;
  margin-bottom: 10px;
  border: 2px solid var(--ink);
}
.mode-banner b { font: 700 14px/1 var(--display); letter-spacing: -0.01em; }
.mode-banner span { font: 700 11px/1 var(--body); letter-spacing: 0.05em; }
.mb-pri { background: var(--pri); color: var(--on-pri); }
.mb-sec { background: var(--sec); color: var(--on-sec); }

.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 11px 15px;
}
.ex-n { font: 700 13.5px/1.3 var(--body); }
.ex-c { font: 400 11.5px/1.3 var(--body); color: var(--text-faint); grid-column: 1; }
.ex-d {
  font: 500 11.5px/1 var(--display);
  color: var(--text-muted);
  grid-row: 1 / span 2;
  grid-column: 2;
}

.prog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .prog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .prog-grid { grid-template-columns: repeat(3, 1fr); } }
.prog-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.prog-card b {
  display: block;
  font: 700 15px/1.2 var(--display);
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.prog-card span { font-size: 13px; line-height: 1.45; color: var(--text-muted); }

/* ── badges ──────────────────────────────────────────────── */

.badge {
  display: inline-block;
  font: 700 11.5px/1 var(--body);
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.b-acc { background: var(--acc); color: var(--on-acc); transform: rotate(-2deg); }
.b-pri { background: var(--pri); color: var(--on-pri); transform: rotate(2deg); }
.b-sec { background: var(--sec); color: var(--on-sec); transform: rotate(-2deg); }
.b-white { background: var(--surface); color: var(--ink); transform: rotate(2deg); }

.badge-wall {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
}

/* ── safety ──────────────────────────────────────────────── */

.safety-card {
  background: var(--canvas);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.4vw, 32px);
}
.safety-body {
  font-size: clamp(14.5px, 1.7vw, 16.5px);
  line-height: 1.65;
  margin: 0 0 22px;
}
.safety-card .sticker { margin: 0; }

/* ── pricing ─────────────────────────────────────────────── */

.bene {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 15px;
}
.bene li { display: flex; align-items: center; gap: 12px; }
.bene span {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--acc);
  color: var(--on-acc);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.plan-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}
@media (min-width: 620px) { .plan-row { grid-template-columns: 1fr 1fr; } }

.plan {
  position: relative;
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 16px 18px 16px 50px;
}
.plan-on { border-color: var(--acc); }
.plan b { display: block; font: 700 16px/1.2 var(--display); letter-spacing: -0.02em; }
.plan-note {
  display: block;
  margin-top: 6px;
  font: 700 11px/1.4 var(--body);
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.radio {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 242, 248, 0.5);
}
.plan-on .radio { border-color: var(--acc); background: var(--acc); }

.plan-free {
  font: 700 12px/1.5 var(--body);
  letter-spacing: 0.03em;
  margin: 0 0 26px;
  opacity: 0.85;
}
.micro-pri { color: rgba(255, 242, 248, 0.72); }

/* ── faq ─────────────────────────────────────────────────── */

.faq { border-top: 2px solid var(--divider); }
.faq details { border-bottom: 2px solid var(--divider); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font: 700 15.5px/1.4 var(--body);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 500 22px/1 var(--display);
  color: var(--pri);
}
.faq details[open] summary::after { content: "–"; }
.faq p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

/* ── final ───────────────────────────────────────────────── */

.final .sticker { background: var(--acc); border-color: var(--acc); }
.final .section-lead { margin-inline: auto; }
.open-app { color: var(--acc); font-weight: 700; }

/* ── footer ──────────────────────────────────────────────── */

.site-foot {
  background: var(--canvas);
  border-top: 2px solid var(--ink);
  padding: 44px 0 40px;
}
.foot-inner { display: grid; gap: 18px; }
.foot-brand p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 46ch;
}
.foot-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 700 13px/1 var(--body);
}
.foot-nav a { text-decoration: none; border-bottom: 2px solid var(--pri); padding-bottom: 2px; }
.foot-nav a:hover { color: var(--pri); }
.foot-nav span { color: var(--text-faint); }
.foot-fine {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-faint);
}
.foot-fine a { color: var(--text-muted); }

/* ==========================================================================
   CSS-drawn iPhone frames
   Screens are authored at true app scale (393 x 852 logical px) and scaled
   down with a transform, so every number below matches docs/design/README.md.
   ========================================================================== */

.phone {
  --s: 0.60;
  width: calc(393px * var(--s) + 20px);
  flex: none;
}
@media (min-width: 480px) { .phone { --s: 0.68; } }
@media (min-width: 900px) { .phone { --s: 0.62; } }
@media (min-width: 1040px) { .phone { --s: 0.70; } }

.phone-body {
  position: relative;
  width: 100%;
  height: calc(852px * var(--s) + 20px);
  padding: 10px;
  background: var(--ink);
  border-radius: calc(56px * var(--s) + 10px);
  box-shadow: var(--shadow);
}

.phone-scale {
  width: calc(393px * var(--s));
  height: calc(852px * var(--s));
  overflow: hidden;
  border-radius: calc(46px * var(--s));
}

.scr {
  position: relative;
  width: 393px;
  height: 852px;
  transform: scale(var(--s));
  transform-origin: top left;
  border-radius: 46px;
  overflow: hidden;
  font-family: var(--body);
  display: flex;
  flex-direction: column;
}
.scr-canvas { background: var(--canvas); color: var(--ink); }
.scr-sec { background: var(--sec); color: var(--on-sec); }
.scr-pri { background: var(--pri); color: var(--on-pri); }

.island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #000;
  border-radius: 20px;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px 0;
  height: 54px;
  font: 600 15px/1 var(--body);
  flex: none;
}
.sb-light { color: var(--on-sec); }
.sb-right { display: flex; align-items: center; gap: 6px; }
.sb-sig {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  opacity: 0.9;
}
.sb-sig::before,
.sb-sig::after {
  content: "";
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}
.sb-sig::before { height: 7px; box-shadow: -5px 2px 0 0 currentColor, 5px -2px 0 0 currentColor; }
.sb-sig::after { height: 11px; margin-left: 5px; }
.sb-bat {
  width: 24px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  opacity: 0.9;
}
.sb-bat::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.home-bar {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  border-radius: 3px;
  background: rgba(23, 21, 18, 0.5);
}
.hb-light { background: rgba(240, 239, 255, 0.55); }

.scr-pad { padding: 4px 22px 30px; }
.scr-col { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.row-between { display: flex; align-items: center; justify-content: space-between; }

.app-logo { font: 900 17px/1 var(--display); letter-spacing: -0.03em; }
.dots-pill {
  background: var(--muted);
  border-radius: var(--r-pill);
  padding: 0 16px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.app-hero {
  font: 900 40px/0.98 var(--display);
  letter-spacing: -0.04em;
  margin: 14px 0 8px;
}
.app-title {
  font: 900 30px/1 var(--display);
  letter-spacing: -0.035em;
  margin: 16px 0 4px;
}
.app-sub { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); margin: 0 0 14px; }
.scr-sec .app-sub { color: rgba(240, 239, 255, 0.85); }

/* home mode cards */
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 0;
  min-height: 130px;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 10px;
  text-decoration: none;
}
.mode-pri { background: var(--pri); color: var(--on-pri); }
.mode-sec { background: var(--sec); color: var(--on-sec); }
.mode-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.mode-t { font: 700 22px/1 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.mode-s { font: 500 12.5px/1.3 var(--body); opacity: 0.85; }

/* stat tiles */
.tile-row { display: flex; gap: 10px; margin: 4px 0 12px; }
.tile {
  flex: 1;
  border-radius: 16px;
  padding: 12px 14px;
}
.tile b { display: block; font: 900 26px/1 var(--display); letter-spacing: -0.03em; }
.tile span { display: block; margin-top: 4px; font: 700 11px/1.2 var(--body); letter-spacing: 0.04em; }
.tile-acc { background: var(--acc); color: var(--on-acc); }
.tile-ink { background: var(--ink); color: var(--canvas); }
.tile-pri { background: var(--pri); color: var(--on-pri); }

/* bottom nav */
.botnav { display: flex; gap: 8px; margin-top: auto; }
.nav-pill {
  flex: 1;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--muted);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font: 700 12px/1 var(--body);
  letter-spacing: 0.04em;
}
.nav-pill.on { background: var(--ink); color: var(--canvas); }

/* session screen */
.sess-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}
.sess-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-pill);
  padding: 8px 13px;
  font: 600 11.5px/1 var(--body);
  letter-spacing: 0.05em;
}
.sess-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.sess-pos { margin-left: auto; font: 600 11.5px/1 var(--body); letter-spacing: 0.05em; opacity: 0.85; }
.sess-name { font: 900 26px/1.05 var(--display); letter-spacing: -0.02em; margin: 0 0 6px; }
.sess-one { font: 500 13px/1.4 var(--body); opacity: 0.85; margin: 0 0 14px; }

.demo-slot {
  height: 96px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 0 14px;
}
.demo-slot b { font: 700 12.5px/1.2 var(--body); letter-spacing: 0.04em; }
.demo-slot span { font: 400 11px/1.2 var(--body); opacity: 0.72; }

.sess-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 0;
}
.big-num {
  font: 900 84px/1 var(--display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.cue-chip {
  min-width: 150px;
  text-align: center;
  background: var(--acc);
  color: var(--on-acc);
  border-radius: var(--r-pill);
  padding: 11px 20px;
  font: 700 14px/1 var(--body);
  letter-spacing: 0.02em;
}

.sess-bottom { display: flex; flex-direction: column; gap: 10px; }
.prog { height: 10px; border-radius: 5px; background: rgba(0, 0, 0, 0.22); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--acc); border-radius: 5px; transition: width 1s linear; }
.sess-meta {
  display: flex;
  justify-content: space-between;
  font: 600 11px/1 var(--body);
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.ctrl-row { display: flex; gap: 10px; }
.ctrl {
  flex: 1;
  height: 48px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font: 700 14px/1 var(--body);
  letter-spacing: 0.03em;
}
.ctrl-out { border: 2px solid var(--on-sec); }
.ctrl-fill { background: var(--on-sec); color: var(--sec); }
.panic {
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--acc);
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--display);
  letter-spacing: 0.01em;
}

/* progress screen */
.tile-row-3 .tile { padding: 12px; }
.tile-row-3 .tile b { font-size: 24px; }
.tile-row-3 .tile span { font-size: 10px; }

.week-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.week-h {
  font: 700 11px/1 var(--body);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.bars { display: flex; align-items: flex-end; gap: 8px; height: 108px; }
.bars span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  font: 700 10px/1 var(--body);
  color: var(--text-faint);
}
.bars i { width: 100%; background: var(--pri); border-radius: 6px; }
.bars i.stub { background: #EEE8DC; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge-row .badge { font-size: 11.5px; }

/* ── reveal on scroll ────────────────────────────────────── */

/* Hidden only once JS has confirmed it can bring them back. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .store-btn:hover, .btn:hover { transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   Legal pages (terms.html / privacy.html)
   ========================================================================== */

.legal { padding: clamp(44px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.legal .updated {
  font: 700 11px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 30px;
}
.legal h2 {
  font-weight: 900;
  font-size: clamp(19px, 2.6vw, 24px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 2px solid var(--divider);
}
.legal h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  margin: 22px 0 8px;
}
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); text-decoration-color: var(--pri); text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.legal .callout {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
  margin: 26px 0 34px;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .toc {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.legal .toc a {
  display: inline-block;
  font: 700 11.5px/1 var(--body);
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  text-decoration: none;
  background: var(--surface);
}
.legal .toc a:hover { background: var(--acc); }
.legal .contact-card {
  background: var(--acc);
  color: var(--on-acc);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 28px);
  margin-top: 34px;
}
.legal .contact-card p { color: var(--on-acc); }
.legal .contact-card a { color: var(--on-acc); }
