/* RYTM — startup landing */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

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

:root {
  --bg: #ffffff;
  --bg-white: #ffffff;
  --bg-black: #09090b;
  --bg-black-elevated: #18181b;
  --fg: #09090b;
  --fg-on-dark: #fafafa;
  --muted: #71717a;
  --muted-on-dark: #a1a1aa;
  --border: #e4e4e7;
  --border-on-dark: rgba(255, 255, 255, 0.1);
  --border-strong: #d4d4d8;
  --blue: #38bdf8;
  --blue-light: #7dd3fc;
  --blue-dark: #0ea5e9;
  --blue-soft: rgba(56, 189, 248, 0.12);
  --blue-glow: rgba(56, 189, 248, 0.35);
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --max: 68rem;
  --max-wide: 80rem;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.08);
  --shadow-blue: 0 8px 32px rgba(56, 189, 248, 0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Grid background — only visible on light sections */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  opacity: 0.6;
}

.page { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container--narrow { max-width: 40rem; text-align: center; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-on-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.875rem clamp(1.25rem, 4vw, 2rem);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  margin-right: auto;
  color: var(--fg-on-dark);
}

.nav__logo img { width: 1.68rem; height: 1.68rem; }

.nav__links { display: none; gap: 0.25rem; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__link {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  border-radius: var(--radius-pill);
  transition: color .15s, background .15s;
}

.nav__link:hover { color: var(--blue-light); background: rgba(56, 189, 248, 0.1); }

.nav__cta {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--blue);
  color: var(--bg-black);
  border-radius: var(--radius-pill);
  transition: background .15s, box-shadow .15s;
}

@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

.nav__cta:hover { background: var(--blue-light); box-shadow: var(--shadow-blue); }

.nav__menu-btn {
  display: flex;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--fg-on-dark);
  padding: 0.25rem;
}

@media (min-width: 900px) { .nav__menu-btn { display: none; } }

.mobile-menu {
  display: none;
  position: fixed;
  top: 3.5rem;
  left: 1rem;
  right: 1rem;
  z-index: 99;
  background: var(--bg-black-elevated);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.is-open { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  border-radius: 8px;
  color: var(--fg-on-dark);
}

.mobile-menu a:hover { background: rgba(56, 189, 248, 0.1); color: var(--blue-light); }

/* ── Typography ── */
.eyebrow, .kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

.kicker--light { color: var(--blue-light); }

.display {
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.title--sm { font-size: clamp(1.375rem, 3vw, 1.75rem); }
.title--light { color: white; }

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 36rem;
}

.lead--center { margin: 0 auto; text-align: center; }
.lead--light { color: rgba(255,255,255,.7); }

.prose { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.prose p + p { margin-top: 0.75rem; }

.section-intro { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }

/* ── Sections ── */
.section { padding: clamp(4rem, 9vw, 6rem) 0; }

.tone-a {
  background: var(--bg-white);
  color: var(--fg);
  border-top: 1px solid var(--border);
}

.tone-b {
  background: var(--bg-black);
  color: var(--fg-on-dark);
  border-top: 1px solid var(--border-on-dark);
}

/* Dark section typography */
.tone-b .kicker { color: var(--blue-light); }
.tone-b .title { color: var(--fg-on-dark); }
.tone-b .lead,
.tone-b .prose { color: var(--muted-on-dark); }
.tone-b .display { color: var(--fg-on-dark); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .15s, opacity .15s, background .15s;
}

.btn--primary {
  background: var(--blue);
  color: var(--bg-black);
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: var(--border-strong);
}

.tone-b .btn--ghost {
  border-color: var(--border-on-dark);
  color: var(--fg-on-dark);
}

.btn--ghost:hover { background: var(--blue-soft); border-color: var(--blue); }

.tone-b .btn--ghost:hover { background: rgba(56, 189, 248, 0.12); color: var(--blue-light); }

/* ── Hero ── */
.hero {
  --hero-nav-offset: 3.75rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--hero-nav-offset) 0 clamp(2rem, 5vh, 3rem);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  width: 100%;
  max-width: 72rem;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vh, 3rem);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
}

.hero__copy .eyebrow {
  margin-bottom: 1rem;
}

.hero__copy .display {
  margin-bottom: 1.25rem;
}

.hero__copy .lead {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo {
  width: min(11.52rem, 49.92vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 36px var(--blue-glow));
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .hero__mark {
    justify-content: flex-end;
    align-self: center;
  }

  .hero__logo {
    width: clamp(307px, 26.88vw, 403px);
  }
}

/* ── Problem ── */
.split { display: grid; gap: 2.5rem; align-items: center; }

@media (min-width: 768px) {
  .split--problem { grid-template-columns: 1fr 1fr; }
}

.stat-grid { display: grid; gap: 0.75rem; }

.stat-card {
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-card__value {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

.stat-card__label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.stat-card__detail {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.tone-b .stat-card__label { color: var(--fg-on-dark); }
.tone-b .stat-card__detail { color: var(--muted-on-dark); }

.tone-b .stat-card {
  background: var(--bg-black-elevated);
  border-color: var(--border-on-dark);
}

.tone-b .stat-card__value { color: var(--blue-light); }

/* ── Daily rhythm ── */
.rhythm-flow {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 900px) {
  .rhythm-flow { grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
}

.rhythm-step {
  text-align: center;
  padding: 0.75rem 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: var(--step-delay, 0ms);
}

.reveal.is-visible .rhythm-step { opacity: 1; transform: none; }

.rhythm-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--blue);
  color: var(--bg-black);
  border-radius: 50%;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-blue);
}

.tone-b .rhythm-flow {
  background: var(--bg-black-elevated);
  border-color: var(--border-on-dark);
}

.tone-b .rhythm-step__label { color: var(--fg-on-dark); }
.tone-b .rhythm-step__detail { color: var(--muted-on-dark); }

.rhythm-step__label { font-size: 0.8125rem; font-weight: 700; margin-bottom: 0.25rem; }

.rhythm-step__detail { font-size: 0.75rem; color: var(--muted); line-height: 1.45; }

/* ── Multi-agent pipeline ── */
.agent-pipeline {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .agent-pipeline {
    grid-template-columns: 1fr auto auto;
    align-items: stretch;
    padding: 2rem;
  }
}

.agent-pipeline__track {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .agent-pipeline__track { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
}

.pipeline-phase {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--phase-delay, 0ms);
}

.reveal.is-visible .pipeline-phase { opacity: 1; transform: none; }

.pipeline-phase__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue);
}

.tone-b .pipeline-phase__label { color: var(--blue-light); border-bottom-color: var(--blue); }

.pipeline-phase__agents { display: flex; flex-direction: column; gap: 0.5rem; }

.agent-node {
  padding: 0.75rem;
  background: var(--blue-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease, border-color .2s;
  transition-delay: var(--node-delay, 0ms);
}

.reveal.is-visible .agent-node { opacity: 1; transform: none; }

.agent-node:hover { border-color: var(--blue); background: rgba(56, 189, 248, 0.18); }

.tone-b .agent-node {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}

.tone-b .agent-node:hover { background: rgba(56, 189, 248, 0.14); }

.agent-node--loop { border-style: dashed; border-color: var(--blue); }

.agent-node__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.agent-node__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--blue-glow);
}

.agent-node__name { font-size: 0.8125rem; font-weight: 700; }

.agent-node__badge {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted);
  background: white;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.agent-node__desc { font-size: 0.6875rem; color: var(--muted); line-height: 1.4; }

.agent-pipeline__arrow { color: var(--blue); }

.output-card {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--bg-black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-blue);
}

.tone-b .agent-pipeline {
  background: var(--bg-black-elevated);
  border-color: var(--border-on-dark);
}

.tone-b .agent-node__name { color: var(--fg-on-dark); }
.tone-b .agent-node__desc { color: var(--muted-on-dark); }
.tone-b .agent-node__badge {
  background: var(--bg-black);
  border-color: var(--border-on-dark);
  color: var(--blue-light);
}

.output-card__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(9, 9, 11, 0.55);
  margin-bottom: 0.75rem;
}

.output-card__list {
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.7;
  font-weight: 500;
}

.output-card__list li::before { content: "→ "; opacity: 0.45; }

.output-card__time {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(9, 9, 11, 0.12);
  border-radius: var(--radius-pill);
}

.agent-pipeline__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  padding: 0 0.5rem;
}

@media (min-width: 1024px) { .agent-pipeline__arrow { display: flex; } }

.agent-pipeline__output { display: flex; align-items: center; }

/* ── Features divider ── */
.section--agent {
  padding-bottom: clamp(5rem, 10vw, 7rem);
}

/* Features break — clear separation from AI coach section */
.features-break {
  height: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-white) 100%);
}

.features-divider {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--bg-white);
  color: var(--fg);
  border-top: none;
  border-bottom: 1px solid var(--border);
}

.features-divider .section-intro {
  margin-bottom: 0;
}

.features-divider .kicker { color: var(--blue-dark); }
.features-divider .title { margin-bottom: 0.75rem; }

/* ── Feature blocks ── */
.feature-block__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-block__inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature-block--reverse .feature-block__copy { order: 2; }
  .feature-block--reverse .feature-block__visual { order: 1; }
}

.feature-block__visual {
  padding: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-block__visual:has(.feature-shot) {
  padding: 0;
}

.feature-block__visual .feature-shot {
  border-radius: inherit;
}

.tone-b .feature-block__visual {
  background: var(--bg-black-elevated);
  border-color: var(--border-on-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dayline {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
}

.tone-b .dayline {
  background: var(--bg-black-elevated);
  border-color: var(--border-on-dark);
  color: var(--muted-on-dark);
  border-left-color: var(--blue-light);
}

.tone-b .dayline strong { color: var(--fg-on-dark); }

.dayline strong { color: var(--fg); font-weight: 600; }

/* ── Coach hero (screenshot only) ── */
.feature-hero__inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.feature-hero__head {
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.feature-hero__head .lead {
  font-size: 0.9375rem;
  margin: 0 auto;
}

.feature-hero__visual {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.feature-shot {
  display: block;
  width: 100%;
  height: auto;
}

.feature-shot--coach {
  border-radius: inherit;
}

.tone-b .feature-hero__visual {
  background: var(--bg-black-elevated);
  border-color: var(--border-on-dark);
}

/* ── App mock UI (diagrams) ── */
.mock {
  --mock-bg: #0c0c0e;
  --mock-surface: #161618;
  --mock-border: #2a2a2e;
  --mock-text: #f4f4f5;
  --mock-muted: #a1a1aa;
  --mock-purple: #7c6df0;
  width: 100%;
  font-size: 0.625rem;
  color: var(--mock-text);
  text-align: left;
}

.mock--modal {
  background: var(--mock-bg);
  border: 1px solid var(--mock-border);
  border-radius: 10px;
  padding: 0.75rem;
  overflow: hidden;
}

.mock-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.mock-modal__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
}

.mock-modal__close {
  color: var(--mock-muted);
  font-size: 1rem;
  line-height: 1;
}

.mock-checkin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.65rem;
}

.mock-slider-row__q {
  font-size: 0.5625rem;
  line-height: 1.35;
  color: var(--mock-text);
  margin-bottom: 0.25rem;
}

.mock-slider-row__track {
  position: relative;
  height: 3px;
  background: #3f3f46;
  border-radius: 99px;
  margin-bottom: 0.2rem;
}

.mock-slider-row__track i {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #71717a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.mock-slider-row__ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  color: var(--mock-muted);
  gap: 0.25rem;
}

.mock-checkin__prompt {
  font-size: 0.5625rem;
  margin-bottom: 0.35rem;
  color: var(--mock-text);
}

.mock-checkin__prompt em {
  display: block;
  font-style: normal;
  color: var(--mock-muted);
  margin-top: 0.1rem;
}

.mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.mock-tags span {
  padding: 0.2rem 0.45rem;
  background: var(--mock-surface);
  border: 1px solid var(--mock-border);
  border-radius: 99px;
  font-size: 0.5rem;
  color: var(--mock-muted);
}

.mock-modal__foot {
  display: flex;
  gap: 0.35rem;
}

.mock-modal__foot--meal {
  flex-direction: column;
  gap: 0.35rem;
}

.mock-modal__foot-row {
  display: flex;
  gap: 0.35rem;
}

.mock-btn {
  flex: 1;
  text-align: center;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.5625rem;
  font-weight: 600;
}

.mock-btn--ghost {
  background: var(--mock-surface);
  border: 1px solid var(--mock-border);
  color: var(--mock-text);
}

.mock-btn--primary {
  background: var(--mock-purple);
  color: white;
}

.mock-btn--sm { flex: 0 0 auto; white-space: nowrap; padding: 0.35rem 0.55rem; }
.mock-btn--wide { flex: none; width: 100%; }

/* Meal mock */
.mock-meal__hint {
  font-size: 0.5625rem;
  color: var(--mock-muted);
  margin-bottom: 0.45rem;
}

.mock-meal__parse {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.mock-meal__input {
  flex: 1;
  padding: 0.35rem 0.5rem;
  background: var(--mock-surface);
  border: 1px solid var(--mock-border);
  border-radius: 6px;
  font-size: 0.5rem;
  color: var(--mock-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-meal__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.mock-field label {
  display: block;
  font-size: 0.5rem;
  color: var(--mock-muted);
  margin-bottom: 0.15rem;
}

.mock-select,
.mock-textarea {
  padding: 0.3rem 0.45rem;
  background: var(--mock-surface);
  border: 1px solid var(--mock-border);
  border-radius: 6px;
  font-size: 0.5rem;
  color: var(--mock-text);
}

.mock-select--muted { color: var(--mock-muted); }

.mock-textarea {
  min-height: 2rem;
  margin-bottom: 0.35rem;
  color: var(--mock-muted);
}

.mock-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2.75rem;
  border: 1px dashed var(--mock-border);
  border-radius: 6px;
  color: var(--mock-muted);
  font-size: 0.5rem;
}

.mock-upload__icon {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Leaderboard mock */
.mock--lb {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 0.5rem;
  background: #050505;
  border: 1px solid var(--mock-border);
  border-radius: 10px;
  padding: 0.55rem;
  min-height: 11rem;
}

.mock-lb__head {
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.35rem;
}

.mock-lb__metric {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
}

.mock-lb__dates {
  text-align: center;
  font-size: 0.5rem;
  color: var(--mock-muted);
  margin-bottom: 0.45rem;
}

.mock-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  min-height: 4.5rem;
}

.mock-podium__place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  max-width: 3.25rem;
}

.mock-podium__name {
  font-size: 0.5rem;
  color: var(--mock-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mock-podium__bar {
  width: 100%;
  height: 2rem;
  background: #27272a;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #71717a;
}

.mock-podium__bar--tall { height: 3rem; }
.mock-podium__bar--short { height: 1.35rem; }

.mock-podium__pts {
  font-size: 0.4375rem;
  padding: 0.1rem 0.3rem;
  background: rgba(124, 109, 240, 0.25);
  border-radius: 99px;
  color: #c4b5fd;
}

.mock-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #3f3f46;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: white;
}

.mock-avatar--sm { width: 1rem; height: 1rem; font-size: 0.5rem; }

.mock-avatar--gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

.mock-lb__row {
  display: grid;
  grid-template-columns: 0.75rem 1rem 1fr auto;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.35rem;
  background: #161618;
  border-radius: 6px;
  font-size: 0.5rem;
  margin-bottom: 0.2rem;
}

.mock-lb__badge {
  font-size: 0.4375rem;
  padding: 0.1rem 0.3rem;
  background: rgba(124, 109, 240, 0.25);
  border-radius: 99px;
  color: #c4b5fd;
}

.mock-lb__side {
  background: #161618;
  border: 1px solid var(--mock-border);
  border-radius: 8px;
  padding: 0.45rem;
}

.mock-lb-side__title {
  font-size: 0.5625rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.35rem;
}

.mock-lb-side__top {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.5rem;
  text-align: center;
}

.mock-lb-side__top div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.mock-lb-side__winner { transform: translateY(-0.15rem); }

.mock-lb-side__row {
  display: grid;
  grid-template-columns: 0.75rem 1fr auto;
  gap: 0.25rem;
  font-size: 0.5rem;
  color: var(--mock-muted);
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--mock-border);
}

.mock-lb-side__more {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.5rem;
  color: var(--mock-muted);
  padding: 0.25rem;
  background: #27272a;
  border-radius: 6px;
}

.feature-block__visual .mock--modal,
.feature-block__visual .mock--lb,
.feature-block__visual .mock--dash {
  transform: scale(1);
}

/* Dashboard mock */
.mock--dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #050505;
  border: 1px solid var(--mock-border);
  border-radius: 10px;
  padding: 0.5rem;
  min-height: 16rem;
  font-size: 0.6875rem;
}

.mock-dash__screen--home {
  padding: 0.5rem;
  background: linear-gradient(180deg, #0c4a6e 0%, #0a0a0c 45%);
  border-radius: 8px;
  border: 1px solid #164e63;
}

.mock-dash__greet {
  font-size: 0.625rem;
  font-weight: 700;
  color: #67e8f9;
  margin-bottom: 0.45rem;
}

.mock-dash__greet span { color: white; }

.mock-dash__streak-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.35rem 0;
}

.mock-dash__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 3.5rem;
}

.mock-dash__bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #22d3ee, #7c6df0);
  opacity: 0.7;
}

.mock-dash__nav {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.mock-dash__nav span {
  font-size: 0.4375rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  color: #71717a;
  background: #18181b;
}

.mock-dash__nav .is-active {
  color: white;
  background: linear-gradient(90deg, #0891b2, #7c6df0);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.mock-dash__mood {
  padding: 0.35rem 0.45rem;
  background: rgba(24, 24, 27, 0.85);
  border: 1px solid #3f3f46;
  border-radius: 8px;
  margin-bottom: 0.35rem;
}

.mock-dash__mood-label {
  display: block;
  font-size: 0.4375rem;
  color: #a1a1aa;
  margin-bottom: 0.25rem;
}

.mock-dash__mood-track {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #22d3ee, #7c6df0);
}

.mock-dash__mood-track i {
  position: absolute;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  background: white;
  border: 2px solid #7c6df0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(124, 109, 240, 0.6);
}

.mock-dash__streak-ring {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
  flex-shrink: 0;
}

.mock-dash__streak-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mock-dash__ring-bg { fill: none; stroke: #27272a; stroke-width: 8; }
.mock-dash__ring-fg { fill: none; stroke-width: 8; stroke-linecap: round; }

.mock-dash__streak-num {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.375rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.mock-dash__streak-lbl {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.375rem;
  color: #a1a1aa;
  white-space: nowrap;
}

.mock-dash__streak-tasks {
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.375rem;
  color: #22d3ee;
  font-weight: 700;
}

.mock-dash__week {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 0.4rem 0;
}

.mock-dash__week span {
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.375rem;
  font-weight: 700;
  border-radius: 4px;
  background: #27272a;
  color: #71717a;
}

.mock-dash__week .is-done { background: #0891b2; color: white; }
.mock-dash__week .is-today { background: #7c6df0; color: white; box-shadow: 0 0 8px rgba(124,109,240,.5); }

.mock-dash__coach-lbl {
  text-align: center;
  font-size: 0.375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
  margin-top: 0.35rem;
}

.mock-dash__coach-bar {
  margin-top: 0.2rem;
  padding: 0.3rem 0.5rem;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 99px;
  font-size: 0.4375rem;
  color: #71717a;
  text-align: center;
}

.mock-dash__screen--action {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mock-dash__card {
  padding: 0.45rem;
  background: #0a0a0a;
  border: 1px solid #27272a;
  border-radius: 8px;
  flex: 1;
}

.mock-dash__card--meal { background: linear-gradient(135deg, #0c4a6e22, #18181b); border-color: #0891b244; }

.mock-dash__card-title {
  font-size: 0.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.35rem;
}

.mock-dash__card-title--cyan { color: #67e8f9; }

.mock-dash__task {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.35rem;
  background: #18181b;
  border-radius: 6px;
  font-size: 0.4375rem;
  color: #e4e4e7;
  margin-bottom: 0.2rem;
}

.mock-dash__task--done { opacity: 0.7; }

.mock-dash__task-icon {
  width: 0.875rem;
  height: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.4375rem;
  flex-shrink: 0;
}

.mock-dash__task-icon--done { background: #166534; }
.mock-dash__task-icon--meal { background: #0e7490; }
.mock-dash__task-icon--check { background: #5b21b6; }
.mock-dash__task-icon--journal { background: #b45309; }

.mock-dash__task span:nth-child(2) { flex: 1; }

.mock-dash__pill {
  font-size: 0.3125rem;
  font-weight: 800;
  padding: 0.12rem 0.3rem;
  border-radius: 99px;
  white-space: nowrap;
}

.mock-dash__pill--green { background: #166534; color: #86efac; }
.mock-dash__pill--cyan { background: #0e7490; color: #a5f3fc; }
.mock-dash__pill--purple { background: #5b21b6; color: #ddd6fe; }
.mock-dash__pill--amber { background: #92400e; color: #fde68a; }

.mock-dash__meal-row {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: 0.4375rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid #27272a;
  color: #a1a1aa;
}

.mock-dash__meal-type { color: #67e8f9; font-weight: 700; }

@media (max-width: 520px) {
  .mock--dash { grid-template-columns: 1fr; }
}

/* Morning coach mock */
.mock--coach {
  background: #030303;
  border: 1px solid var(--mock-border);
  border-radius: 10px;
  padding: 0.75rem;
  overflow-x: auto;
  min-height: 26rem;
  font-size: 0.6875rem;
}

.mock-coach__badge {
  display: inline-block;
  font-size: 0.4375rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(124, 109, 240, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 99px;
  color: #c4b5fd;
  margin-bottom: 0.35rem;
}

.mock-coach__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.mock-coach__title {
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin: 0.25rem 0;
}

.mock-coach__title em {
  font-style: normal;
  background: linear-gradient(90deg, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mock-coach__sub {
  font-size: 0.4375rem;
  color: var(--mock-muted);
  line-height: 1.4;
  max-width: 14rem;
}

.mock-coach__goal-card {
  padding: 0.35rem 0.5rem;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  min-width: 6.5rem;
}

.mock-coach__goal-label {
  display: block;
  font-size: 0.3125rem;
  letter-spacing: 0.1em;
  color: #71717a;
  margin-bottom: 0.15rem;
}

.mock-coach__goal-text { display: block; font-size: 0.4375rem; color: white; font-weight: 600; }
.mock-coach__goal-btn {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.3125rem;
  padding: 0.12rem 0.35rem;
  border: 1px solid #52525b;
  border-radius: 4px;
  color: #a1a1aa;
}

.mock-coach__flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(7rem, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  min-width: 28rem;
}

.mock-coach__col-title {
  font-size: 0.4375rem;
  font-weight: 700;
  color: #a1a1aa;
  margin-bottom: 0.35rem;
}

.mock-coach__hub {
  position: relative;
  min-height: 10.5rem;
  background: radial-gradient(circle at center, #1a1a1f 0%, #111113 55%);
  border: 1px solid #27272a;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}

.mock-coach__hub::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(124, 109, 240, 0.35);
  pointer-events: none;
}

.mock-coach__hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 0.3125rem;
  color: white;
  z-index: 2;
}

.mock-coach__hub-center strong { display: block; font-size: 0.375rem; }
.mock-coach__hub-center small { color: #71717a; }

.mock-coach__metric {
  position: absolute;
  font-size: 0.3125rem;
  padding: 0.15rem 0.25rem;
  border-radius: 5px;
  line-height: 1.25;
  max-width: 3.25rem;
  border: 1px solid transparent;
}

.mock-coach__metric b { display: block; font-size: 0.375rem; color: white; }
.mock-coach__metric small { color: #a1a1aa; font-size: 0.25rem; }

.mock-coach__metric--good { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.25); }
.mock-coach__metric--bad { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.25); }

.mock-coach__metric--t1 { top: 4%; left: 4%; }
.mock-coach__metric--t2 { top: 4%; right: 4%; }
.mock-coach__metric--t3 { top: 28%; left: 2%; }
.mock-coach__metric--t4 { top: 28%; right: 2%; }
.mock-coach__metric--t5 { top: 52%; left: 4%; }
.mock-coach__metric--t6 { top: 52%; right: 4%; }
.mock-coach__metric--b1 { bottom: 4%; left: 4%; }
.mock-coach__metric--b2 { bottom: 4%; right: 4%; }
.mock-coach__metric--b3 { bottom: 28%; left: 2%; }
.mock-coach__metric--b4 { bottom: 28%; right: 2%; }

.mock-coach__context {
  padding: 0.3rem;
  background: #18181b;
  border-radius: 6px;
  font-size: 0.3125rem;
  color: #a1a1aa;
}

.mock-coach__context strong {
  display: block;
  color: #d4d4d8;
  margin-bottom: 0.2rem;
  font-size: 0.34375rem;
}

.mock-coach__context span { display: block; margin-top: 0.1rem; }

.mock-coach__card {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  font-size: 0.3125rem;
  color: #a1a1aa;
  line-height: 1.35;
}

.mock-coach__card span:first-child { font-size: 0.5625rem; flex-shrink: 0; }
.mock-coach__card b { display: block; color: white; font-size: 0.34375rem; margin-bottom: 0.1rem; }
.mock-coach__card p { margin: 0; }

.mock-coach__card--brain { border-left: 2px solid #a78bfa; }
.mock-coach__card--body { border-left: 2px solid #22d3ee; }
.mock-coach__card--gap { border-left: 2px solid #f59e0b; }
.mock-coach__card--clock { border-left: 2px solid #f87171; }

.mock-coach__col--insight .mock-coach__insight {
  padding: 0.45rem;
  background: linear-gradient(135deg, rgba(124, 109, 240, 0.15), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(124, 109, 240, 0.15);
}

.mock-coach__insight-icon { font-size: 0.75rem; display: block; margin-bottom: 0.25rem; }

.mock-coach__insight strong {
  display: block;
  color: white;
  font-size: 0.4375rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.mock-coach__insight p { color: #a1a1aa; font-size: 0.3125rem; line-height: 1.45; margin: 0 0 0.3rem; }

.mock-coach__win {
  font-size: 0.3125rem;
  color: #86efac;
  padding: 0.25rem;
  background: rgba(74, 222, 128, 0.08);
  border-radius: 4px;
}

.mock-coach__action {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  font-size: 0.3125rem;
}

.mock-coach__action-icon { font-size: 0.5625rem; flex-shrink: 0; }
.mock-coach__action b { display: block; color: white; font-size: 0.34375rem; }
.mock-coach__action p { color: #71717a; margin: 0; line-height: 1.35; }

.mock-coach__action-footer {
  margin-top: 0.25rem;
  padding: 0.35rem;
  text-align: center;
  font-size: 0.34375rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, #5b21b6, #7c3aed);
  border-radius: 6px;
}

.mock-coach__bottom {
  padding-top: 0.45rem;
  border-top: 1px solid #27272a;
}

.mock-coach__bottom-title {
  font-size: 0.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 0.3rem;
}

.mock-coach__habit-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.3125rem;
  color: #a1a1aa;
  margin-bottom: 0.35rem;
}

.mock-coach__arrow { color: #7c6df0; }

.mock-coach__bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.mock-coach__trend {
  padding: 0.3rem;
  background: #18181b;
  border-radius: 6px;
  font-size: 0.3125rem;
  color: #a1a1aa;
}

.mock-coach__spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 1.25rem;
  margin: 0.25rem 0;
}

.mock-coach__spark i {
  flex: 1;
  background: #3f3f46;
  border-radius: 2px 2px 0 0;
}

.mock-coach__spark .is-best { background: #7c6df0; }

.mock-coach__trophy {
  padding: 0.3rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 6px;
  font-size: 0.3125rem;
  color: #fde68a;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .mock-coach__flow { grid-template-columns: 1fr 1fr; min-width: 0; }
  .mock-coach__bottom-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .mock-checkin__grid { grid-template-columns: 1fr; }
  .mock--lb { grid-template-columns: 1fr; }
  .mock-lb__side { display: none; }
}

/* ── Diagrams ── */
.diag { width: 100%; }

/* Dashboard */
.diag-dash {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  width: 100%;
}

.diag-dash__ring {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.diag-dash__row--done { background: var(--blue); color: var(--bg-black); }

.diag-dash__row {
  padding: 0.35rem 0.5rem;
  font-size: 0.6875rem;
  background: var(--blue-soft);
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.diag-dash__chip {
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  background: var(--blue-soft);
  border-radius: 6px;
  margin-bottom: 0.35rem;
  text-align: center;
}

.tone-b .diag-dash__row,
.tone-b .diag-dash__chip { background: rgba(56, 189, 248, 0.1); color: var(--fg-on-dark); }
.tone-b .diag-dash__ring { color: var(--blue-light); border-color: var(--blue-light); }

/* Check-in */
.diag-slider { margin-bottom: 0.65rem; }
.diag-slider span { font-size: 0.6875rem; font-weight: 600; color: var(--muted); }
.diag-slider__bar {
  height: 6px;
  background: var(--blue-soft);
  border-radius: var(--radius-pill);
  margin-top: 0.25rem;
  overflow: hidden;
}
.diag-slider__bar i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: var(--radius-pill);
}

.diag-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.5rem; }

.diag-tags span {
  font-size: 0.625rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-pill);
  color: var(--blue-dark);
}

.tone-b .diag-tags span { border-color: rgba(56, 189, 248, 0.4); color: var(--blue-light); }
.tone-b .diag-slider span { color: var(--muted-on-dark); }
.tone-b .diag-slider__bar { background: rgba(56, 189, 248, 0.15); }

/* Meals */
.diag--meals { text-align: center; }
.diag-meal-path {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  font-size: 0.6875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.diag-meal-path--active { background: var(--blue); color: var(--bg-black); border-color: var(--blue); }
.diag-meal-path__icon { font-size: 1.125rem; }
.diag-meal-result {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

/* Wearables */
.diag--wearables { text-align: center; }
.diag-device {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 0.25rem;
}
.diag-device--alt { background: var(--blue-soft); }
.diag-sync-line {
  width: 2px;
  height: 1.25rem;
  background: var(--border-strong);
  margin: 0.5rem auto;
}
.diag-sync-hub {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  background: var(--blue);
  color: var(--bg-black);
  border-radius: 8px;
  box-shadow: var(--shadow-blue);
}

.diag-sync-tags {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.diag-sync-tags span {
  font-size: 0.625rem;
  padding: 0.2rem 0.45rem;
  background: var(--blue-soft);
  border-radius: var(--radius-pill);
  color: var(--blue-dark);
}

.tone-b .diag-sync-tags span { background: rgba(56, 189, 248, 0.12); color: var(--blue-light); }
.tone-b .diag-meal-result,
.tone-b .diag-lb-note { color: var(--muted-on-dark); }
.tone-b .diag-device { border-color: var(--border-on-dark); color: var(--fg-on-dark); }
.tone-b .diag-device--alt { background: rgba(56, 189, 248, 0.08); }
.tone-b .diag-meal-path { border-color: var(--border-on-dark); color: var(--fg-on-dark); }
.tone-b .diag-action { background: rgba(56, 189, 248, 0.08); border-color: var(--border-on-dark); color: var(--fg-on-dark); }
.tone-b .diag-brief { background: rgba(56, 189, 248, 0.08); color: var(--fg-on-dark); }
.tone-b .diag-lb-row { border-color: var(--border-on-dark); color: var(--fg-on-dark); }

/* Coach */
.diag-brief {
  padding: 0.75rem;
  background: var(--bg-muted);
  border-radius: 8px;
  margin-bottom: 0.65rem;
}
.diag-brief__title { font-size: 0.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.diag-brief__line {
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 0.35rem;
}
.diag-brief__line--short { width: 60%; }
.diag-action {
  font-size: 0.6875rem;
  padding: 0.4rem 0.6rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

/* Leaderboard */
.diag-lb-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.65rem; }
.diag-lb-tabs span {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
}
.diag-lb-tabs .is-active { background: var(--blue); color: var(--bg-black); }
.diag-lb-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.diag-lb-row--1 { font-weight: 700; }
.diag-lb-note { font-size: 0.625rem; color: var(--muted); margin-top: 0.5rem; }

/* Streaks */
.diag--streaks { text-align: center; }
.diag-streak-ring {
  position: relative;
  width: 7rem;
  height: 7rem;
  margin: 0 auto 0.75rem;
}
.diag-streak-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.diag-streak-ring__bg { fill: none; stroke: var(--blue-soft); stroke-width: 8; }
.diag-streak-ring__fg { fill: none; stroke: var(--blue); stroke-width: 8; stroke-linecap: round; }
.diag-streak-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  padding-bottom: 0.75rem;
  color: var(--blue-dark);
}

.tone-b .diag-streak-ring__num { color: var(--blue-light); }

.diag-streak-ring__lbl {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  font-size: 0.625rem;
  color: var(--muted);
}

.tone-b .diag-streak-ring__lbl { color: var(--muted-on-dark); }

.diag-week { display: flex; gap: 0.35rem; justify-content: center; }
.diag-week span {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: var(--blue-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.diag-week .is-done { background: var(--blue); border-color: var(--blue); }
.tone-b .diag-week span { background: rgba(56, 189, 248, 0.1); border-color: var(--border-on-dark); }

/* ── FAQ ── */
.faq-list { max-width: 36rem; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }

.tone-b .faq-item { border-bottom-color: var(--border-on-dark); }

.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.125rem 0;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.faq-item__icon { color: var(--blue); font-size: 1.25rem; transition: transform .2s; }
.tone-b .faq-item__icon { color: var(--blue-light); }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

.faq-item__a {
  display: none;
  padding-bottom: 1.125rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.is-open .faq-item__a { display: block; }

.tone-b .faq-item__a { color: var(--muted-on-dark); }

/* ── CTA ── */
.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.cta-section__note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.tone-b .cta-section__note { color: var(--muted-on-dark); }

/* ── Footer ── */
.footer {
  padding: 3rem 0;
  background: var(--bg-black);
  color: rgba(255,255,255,.75);
  border-top: 3px solid var(--blue);
}

.footer__inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner { grid-template-columns: 1fr auto; text-align: left; align-items: start; }
  .footer__copy { grid-column: 1 / -1; text-align: center; }
}

.footer__brand { font-weight: 800; font-size: 1rem; color: var(--blue-light); letter-spacing: 0.08em; }
.footer__tagline { font-size: 0.8125rem; margin-top: 0.25rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; justify-content: center; }
.footer__links a { font-size: 0.8125rem; color: rgba(255,255,255,.6); }
.footer__links a:hover { color: var(--blue-light); }
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,.4); margin-top: 0.5rem; }

/* ── Reveal animations ── */
.reveal {
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal[data-reveal="fade-up"] { opacity: 0; transform: translateY(24px); }
.reveal[data-reveal="slide-in"] { opacity: 0; transform: translateX(-24px); }
.reveal[data-reveal="scale-in"] { opacity: 0; transform: scale(0.97); }

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .rhythm-step, .pipeline-phase, .agent-node {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
