/* Orion Coach landing — design tokens lifted from the app */

:root {
  /* Core */
  --bg:        hsl(240 12% 5%);
  --bg-2:     hsl(240 12% 7%);
  --fg:        hsl(240 10% 96%);
  --fg-2:     hsl(240 8% 78%);
  --muted:     hsl(240 5% 50%);
  --muted-2:   hsl(240 5% 38%);
  --card:      hsl(240 10% 10%);
  --card-2:    hsl(240 12% 8.5%);
  --card-bd:   hsl(240 8% 14%);
  --divider:   hsl(240 7% 20%);
  --input:     hsl(240 8% 14%);

  /* Brand gradient */
  --violet:    hsl(258 80% 60%);
  --violet-2:  hsl(258 80% 50%);
  --teal:      hsl(185 75% 50%);
  --grad: linear-gradient(90deg, hsl(258 80% 60%), hsl(185 75% 50%));
  --grad-soft: linear-gradient(90deg, hsl(258 80% 60% / .14), hsl(185 75% 50% / .14));

  /* Data-viz (charts/badges only) */
  --amber:     hsl(38 95% 58%);
  --coral:     hsl(14 90% 62%);
  --green:     hsl(145 65% 48%);
  --red:       hsl(4 90% 60%);

  /* Radius */
  --r-card: 18px;
  --r-card-lg: 22px;
  --r-btn: 12px;
  --r-pill: 999px;

  /* Type */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --col: 1120px;

  /* Shadow */
  --glow-violet: 0 0 24px hsl(258 80% 60% / .35);
  --glow-violet-lg: 0 0 60px hsl(258 80% 60% / .35), 0 0 120px hsl(258 80% 60% / .15);
}

/* ─── Reset / base ─────────────────────────────────────────────── */

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

html {
  background: var(--bg);
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss03";
  text-rendering: optimizeLegibility;
}

body {
  background: transparent;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

::selection { background: hsl(258 80% 60% / .35); color: #fff; }

/* ─── Background atmospherics ─────────────────────────────────────── */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

.cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/cosmos.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: var(--cosmos-opacity, 0.6);
  transition: opacity .5s ease, filter .5s ease;
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.18) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.18) 85%, transparent 100%);
}

.cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 38% at 78% 18%, hsl(258 80% 50% / .18), transparent 70%),
    radial-gradient(35% 30% at 12% 28%, hsl(185 75% 45% / .10), transparent 70%);
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 90%);
}

body.bg-flat   .cosmos::before { opacity: 0; }
body.bg-flat   .cosmos::after  { opacity: 0.2; }
body.bg-cosmic .cosmos::before { opacity: 0.6; }
body.bg-cosmic .cosmos::after  { opacity: 0.9; }
body.bg-bold   .cosmos::before { opacity: 1; }
body.bg-bold   .cosmos::after  { opacity: 1; }

/* ─── Utilities ───────────────────────────────────────────────── */

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 10px hsl(258 80% 60% / .8);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-bar {
  height: 2px;
  border-radius: 1px;
  background: var(--grad);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--r-card);
  position: relative;
}

.card.gradient-top {
  padding-top: 0;
  overflow: hidden;
}
.card.gradient-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  border-radius: var(--r-card) var(--r-card) 0 0;
}

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  text-align: center; white-space: nowrap;
  transition: transform .15s ease, box-shadow .25s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow-violet);
}
.btn-primary:hover {
  box-shadow: 0 0 32px hsl(258 80% 60% / .55), 0 8px 28px hsl(258 80% 60% / .25);
  filter: saturate(115%);
}

.btn-ghost {
  background: hsl(240 8% 16%);
  color: hsl(0 0% 92%);
  border: 1px solid hsl(240 8% 22%);
  border-radius: 10px;
  font-weight: 500;
}
.btn-ghost:hover { background: hsl(240 8% 20%); border-color: hsl(240 8% 28%); }

.btn-lg { height: 56px; font-size: 16px; padding: 0 26px; }

.btn .apple {
  width: 16px; height: 16px; flex: 0 0 auto;
  display: inline-block;
}

/* ─── Wordmark ───────────────────────────────────────────────── */

.wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 5px; line-height: 1;
}
.wordmark .bar { width: 24px; height: 2px; border-radius: 1px; background: var(--grad); }
.wordmark .name {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: hsl(0 0% 60%);
}

.wordmark-row {
  display: inline-flex; align-items: center; gap: 10px;
}
.wordmark-row .bar { width: 22px; height: 2px; border-radius: 1px; background: var(--grad); }
.wordmark-row .name {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: hsl(0 0% 68%);
}

/* ─── Nav ─────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: hsl(240 12% 5% / 0.0);
  border-bottom: 1px solid hsl(240 8% 12% / 0);
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  background: hsl(240 12% 5% / 0.5);
  border-bottom-color: hsl(240 8% 12% / 0.6);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-brand img {
  width: 28px; height: 28px;
  border-radius: 7px;
}
.nav-brand .name {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-brand .tag {
  font-size: 11px; font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-cta {
  height: 38px; padding: 0 14px;
  font-size: 13px; font-weight: 600;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 0 18px hsl(258 80% 60% / .28);
}

/* ─── Hero ─────────────────────────────────────────────────────── */

.hero {
  padding: 56px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero {
    padding: 80px 0 110px;
    min-height: calc(100vh - 64px);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
  }
}

.hero-eyebrow {
  margin-bottom: 18px;
  opacity: 0;
  animation: fade-in .8s ease .1s forwards;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 7.2vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  opacity: 0;
  animation: rise-in .8s cubic-bezier(.16,1,.3,1) .15s forwards;
  text-wrap: balance;
}

.hero h1 .accent { color: var(--violet); }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero p.lead {
  margin: 0 0 32px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 540px;
  opacity: 0;
  animation: rise-in .8s cubic-bezier(.16,1,.3,1) .3s forwards;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise-in .8s cubic-bezier(.16,1,.3,1) .45s forwards;
}

.hero-ctas .text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--fg-2);
  border-bottom: 1px solid hsl(240 5% 35%);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease, gap .2s ease;
}
.hero-ctas .text-link:hover {
  color: var(--fg);
  border-bottom-color: var(--violet);
  gap: 9px;
}
.hero-ctas .text-link .arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease;
  color: var(--violet);
}
.hero-ctas .text-link:hover .arrow { transform: translateX(2px); }

.hero-meta {
  display: flex; flex-wrap: nowrap; gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  opacity: 0;
  animation: fade-in .8s ease .6s forwards;
}
.hero-meta .ios {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-meta strong { color: var(--fg-2); font-weight: 500; }

@media (max-width: 480px) {
  .hero-meta { font-size: 10.5px; gap: 8px; letter-spacing: 0.005em; }
  .hero-meta .ios svg { width: 12px; height: 12px; }
}

/* Hero phone */

.phone-stage {
  display: flex; justify-content: center;
  position: relative;
  opacity: 0;
  animation: rise-in 1s cubic-bezier(.16,1,.3,1) .35s forwards;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% 8% 6%;
  background: radial-gradient(closest-side, hsl(258 80% 60% / .35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* ─── iPhone frame ─────────────────────────────────────────────── */

.iphone {
  --w: 320px;
  --h: 660px;
  width: var(--w);
  height: var(--h);
  border-radius: 46px;
  background: hsl(240 12% 4%);
  padding: 9px;
  box-shadow:
    inset 0 0 0 1px hsl(240 10% 18%),
    inset 0 0 0 2px hsl(240 10% 8%),
    0 30px 80px -20px rgba(0,0,0,.7),
    0 0 0 1px hsl(240 10% 14%);
  position: relative;
}
.iphone .screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: hsl(240 12% 5%);
  overflow: hidden;
  position: relative;
}
.iphone .notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px;
  border-radius: 99px;
  background: #000;
  z-index: 10;
}

@media (min-width: 920px) {
  .iphone {
    --w: 340px;
    --h: 700px;
  }
}

/* Phone status bar */

.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 26px 0;
  font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  height: 48px;
  position: relative;
  z-index: 2;
}
.phone-status .right { display: inline-flex; gap: 5px; align-items: center; }

/* Phone content frame (scaled in-place) */

.phone-content {
  padding: 14px 18px 24px;
  height: calc(100% - 48px);
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  position: relative;
}

.phone-h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 4px 0 0; }
.phone-sub { font-size: 13px; color: var(--muted); margin: 2px 0 0; }

/* Program card mock */

.mock-program {
  background: hsl(240 10% 9%);
  border: 1px solid hsl(258 80% 50% / .55);
  border-radius: 16px;
  padding: 14px 14px 16px;
  position: relative;
  box-shadow: 0 0 20px hsl(258 80% 60% / .12);
}

.mock-row { display: flex; justify-content: space-between; align-items: baseline; }
.mock-row .title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.mock-row .meta { font-size: 12px; color: var(--muted); }

.mock-progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
  margin-top: 10px;
}
.mock-progress-label strong { color: var(--fg); font-weight: 700; }
.mock-pips {
  display: flex; gap: 5px; margin-top: 5px;
}
.mock-pips .pip {
  flex: 1; height: 5px; border-radius: 99px;
  background: hsl(240 8% 18%);
}
.mock-pips .pip.on { background: var(--violet); }

.mock-cta {
  margin-top: 12px;
  width: 100%; height: 38px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px hsl(258 80% 60% / .35);
}
.mock-cta-meta { text-align: center; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Recovery card mock */

.mock-recovery {
  background: hsl(240 10% 9%);
  border: 1px solid var(--card-bd);
  border-radius: 16px;
  padding: 14px 14px 8px;
}
.mock-recovery .head {
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.mock-recovery .rec-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid hsl(240 7% 14%);
  font-size: 12.5px;
}
.mock-recovery .rec-row:first-of-type { border-top: 0; }
.mock-recovery .rec-row .lbl { color: var(--fg-2); }
.mock-recovery .rec-row .val {
  font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.mock-recovery .rec-row .val .since { color: var(--muted); font-size: 11px; font-weight: 500; }

.val.teal { color: var(--teal); }
.val.green { color: var(--green); }
.val.amber { color: var(--amber); }
.val.coral { color: var(--coral); }

/* Phone tab bar */

.phone-tabs {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  display: flex; justify-content: space-between;
  padding: 8px 6px 4px;
  border-top: 1px solid hsl(240 8% 12%);
  background: linear-gradient(180deg, transparent, hsl(240 12% 5%) 35%);
}
.phone-tabs .tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9.5px; color: var(--muted);
  padding: 4px 0;
  border-radius: 8px;
}
.phone-tabs .tab.active {
  color: var(--violet);
  background: hsl(258 80% 60% / .12);
}
.phone-tabs .tab svg { width: 18px; height: 18px; }

/* Floating Coach Orion ticker (over phone, animated) */

.coach-ticker {
  position: absolute;
  z-index: 5;
  right: -10%;
  bottom: 22%;
  width: 280px;
  max-width: 80%;
  background: hsl(240 10% 8% / .92);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(258 80% 50% / .42);
  border-radius: 14px;
  padding: 13px 14px 14px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,.7), 0 0 30px hsl(258 80% 60% / .18);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}

.coach-ticker::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  border-radius: 14px 14px 0 0;
}

.coach-ticker .who {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}
.coach-ticker .who .sparkle {
  width: 12px; height: 12px;
  background: var(--violet);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 L13.4 9.6 L21 11 L13.4 12.4 L12 22 L10.6 12.4 L3 11 L10.6 9.6 Z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 L13.4 9.6 L21 11 L13.4 12.4 L12 22 L10.6 12.4 L3 11 L10.6 9.6 Z'/></svg>") center / contain no-repeat;
}

.coach-ticker .set-meta {
  font-size: 11px; color: var(--muted);
  margin-bottom: 4px;
}
.coach-ticker .set-meta b { color: var(--fg); font-weight: 600; }
.coach-ticker .verdict {
  color: var(--fg);
  font-weight: 500;
}
.coach-ticker .verdict .lead {
  color: var(--green);
  font-weight: 700;
}

.coach-ticker .pip-row {
  display: flex; gap: 5px; margin-top: 10px;
}
.coach-ticker .pip-row .p {
  flex: 1; height: 3px; border-radius: 99px;
  background: hsl(240 7% 20%);
  overflow: hidden;
}
.coach-ticker .pip-row .p.active { background: var(--violet); }

@media (max-width: 920px) {
  .coach-ticker { right: 0; bottom: 12%; width: 240px; }
}

/* ─── Sub-hero strip ──────────────────────────────────────────── */

.strip {
  border-top: 1px solid var(--card-bd);
  border-bottom: 1px solid var(--card-bd);
  background: hsl(240 12% 6% / .6);
  padding: 28px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) {
  .strip-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.strip-item {
  display: flex; flex-direction: column; gap: 6px;
}
.strip-item .num {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
}
.strip-item h4 {
  margin: 0;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
}
.strip-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ─── Section ─────────────────────────────────────────────────── */

section.s {
  padding: 96px 0;
  position: relative;
}

@media (max-width: 720px) {
  section.s { padding: 72px 0; }
}

.s-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.s-head .eyebrow { margin-bottom: 14px; }
.s-head h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.s-head p {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ─── How it works ────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--r-card);
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
  counter-increment: step;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  border-radius: var(--r-card) var(--r-card) 0 0;
  opacity: .9;
}
.step .stepnum {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.step .stepnum::before { content: counter(step, decimal-leading-zero); margin-right: 8px; color: var(--violet); }
.step h4 {
  margin: 14px 0 6px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.step .stepviz {
  margin-top: 18px;
  height: 64px;
  border-radius: 10px;
  background: hsl(240 12% 7%);
  border: 1px solid var(--card-bd);
  display: flex; align-items: center; padding: 10px 12px;
  position: relative;
  overflow: hidden;
}

/* Step 1 — goals chips */
.viz-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.viz-chips .chip {
  font-size: 10.5px; font-weight: 600;
  padding: 4px 8px;
  border-radius: 99px;
  background: hsl(258 80% 60% / .14);
  color: hsl(258 80% 80%);
  border: 1px solid hsl(258 80% 60% / .28);
}
.viz-chips .chip.t {
  background: hsl(185 75% 50% / .14);
  color: hsl(185 75% 78%);
  border-color: hsl(185 75% 50% / .28);
}

/* Step 2 — sets typed */
.viz-set {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.viz-set .badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  background: hsl(258 80% 60% / .15);
  color: var(--violet);
  padding: 3px 7px; border-radius: 6px;
}

/* Step 3 — signals merging */
.viz-signals { width: 100%; display: flex; align-items: center; gap: 6px; }
.viz-signals .sig { flex: 1; height: 18px; border-radius: 4px; }
.viz-signals .sig.a { background: linear-gradient(90deg, transparent, hsl(258 80% 60% / .9)); }
.viz-signals .sig.b { background: linear-gradient(90deg, transparent, hsl(185 75% 50% / .9)); }
.viz-signals .sig.c { background: linear-gradient(90deg, transparent, hsl(38 95% 58% / .8)); }
.viz-signals .arrow { font-size: 11px; color: var(--muted); }

/* Step 4 — arrow */
.viz-arrow { display: flex; width: 100%; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.viz-arrow .week { padding: 3px 7px; border-radius: 5px; background: hsl(240 10% 10%); border: 1px solid var(--card-bd); }
.viz-arrow .week.next { color: var(--violet); border-color: hsl(258 80% 60% / .4); background: hsl(258 80% 60% / .08); }
.viz-arrow .arr { flex: 1; height: 1px; background: linear-gradient(90deg, hsl(240 7% 22%), var(--violet)); }

/* ─── Coach's Verdict showcase ────────────────────────────────── */

.verdict-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 920px) {
  .verdict-stage { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

.verdict-card {
  background: var(--card);
  border: 1px solid hsl(145 65% 48% / .42);
  border-radius: var(--r-card-lg);
  padding: 26px 26px 28px;
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}

.verdict-card .head {
  font-size: 14px; font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.verdict-card .next-line {
  font-size: 13.5px; color: var(--muted);
  margin-bottom: 14px;
}
.verdict-card .next-line b { color: var(--fg-2); font-weight: 600; }

.verdict-card .body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
}

.verdict-tabs {
  display: flex; gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.verdict-tabs .vtab {
  font-size: 11.5px; font-weight: 600;
  padding: 7px 12px;
  background: hsl(240 8% 13%);
  color: var(--fg-2);
  border: 1px solid var(--card-bd);
  border-radius: 99px;
  letter-spacing: 0.02em;
  transition: all .15s ease;
}
.verdict-tabs .vtab:hover { border-color: hsl(240 8% 24%); }
.verdict-tabs .vtab.active {
  background: hsl(258 80% 60% / .14);
  color: var(--violet);
  border-color: hsl(258 80% 60% / .4);
}

/* Stats row beneath verdict, lifted from the workout screen */
.verdict-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.verdict-stat {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: 14px;
  padding: 16px 14px 14px;
  position: relative;
  overflow: hidden;
}
.verdict-stat::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  border-radius: 14px 14px 0 0;
}
.verdict-stat .v {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.verdict-stat .l {
  font-size: 11.5px; color: var(--muted); margin-top: 2px;
}

/* Right column: principles aside */
.verdict-aside h3 {
  margin: 0 0 14px;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
}
.verdict-aside p {
  margin: 0 0 22px;
  font-size: 14.5px; color: var(--fg-2); line-height: 1.55;
}
.verdict-aside .principles {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--card-bd);
}
.verdict-aside .principles li {
  list-style: none;
  border-bottom: 1px solid var(--card-bd);
  padding: 14px 0;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
}
.verdict-aside .principles li .marker {
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 8px hsl(258 80% 60% / .6);
}
.verdict-aside .principles li h5 {
  margin: 0 0 2px;
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.005em;
}
.verdict-aside .principles li p {
  margin: 0;
  font-size: 13px; color: var(--muted);
  line-height: 1.5;
}

/* ─── Recovery section ────────────────────────────────────────── */

.recovery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 920px) {
  .recovery-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.recovery-readout {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--r-card-lg);
  padding: 6px 22px 22px;
  position: relative;
  overflow: hidden;
}
.recovery-readout::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  border-radius: 22px 22px 0 0;
}
.recovery-readout h4 {
  margin: 16px 0 4px;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
}
.recovery-readout .sub {
  font-size: 12.5px; color: var(--muted);
  margin: 0 0 14px;
}

.recovery-readout .row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid hsl(240 7% 15%);
}
.recovery-readout .row .name {
  font-size: 14px; color: var(--fg);
  font-weight: 500;
}
.recovery-readout .row .v {
  font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.recovery-readout .row .v .since {
  font-size: 11.5px; color: var(--muted); font-weight: 500;
}
.recovery-readout .verdict-bar {
  margin-top: 18px;
  background: hsl(240 8% 8%);
  border: 1px dashed hsl(240 8% 22%);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
}
.recovery-readout .verdict-bar b {
  color: var(--violet);
  font-weight: 700;
}

.recovery-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.recovery-copy p {
  margin: 0 0 16px;
  font-size: 15px; line-height: 1.6; color: var(--fg-2);
}
.recovery-copy .note {
  margin-top: 22px;
  padding: 14px;
  background: hsl(240 10% 8%);
  border: 1px solid var(--card-bd);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex; gap: 10px; align-items: flex-start;
}
.recovery-copy .note .icon {
  width: 16px; height: 16px; margin-top: 2px;
  flex: 0 0 16px;
  color: var(--teal);
}

/* ─── Methodology ─────────────────────────────────────────────── */

.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .method-grid { grid-template-columns: repeat(3, 1fr); }
}

.method {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--r-card);
  padding: 22px;
  position: relative;
}
.method .tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
  background: hsl(258 80% 60% / .14);
  color: hsl(258 80% 80%);
  border: 1px solid hsl(258 80% 60% / .3);
  margin-bottom: 14px;
}
.method.t .tag {
  background: hsl(185 75% 50% / .14);
  color: hsl(185 75% 78%);
  border-color: hsl(185 75% 50% / .3);
}
.method h4 {
  margin: 0 0 6px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
}
.method p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.method .formula {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-2);
  padding: 10px 12px;
  background: hsl(240 12% 7%);
  border: 1px solid var(--card-bd);
  border-radius: 10px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow-x: auto;
}
.method .formula .k { color: var(--violet); }
.method .formula .t { color: var(--teal); }

.method-footnote {
  margin-top: 40px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 720px;
}

/* ─── Mesocycle adaptation ────────────────────────────────────── */

.meso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 920px) {
  .meso-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
}

.meso-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.meso-copy p {
  margin: 0 0 14px;
  font-size: 15px; color: var(--fg-2); line-height: 1.6;
}
.meso-copy .legend {
  display: flex; gap: 14px; margin-top: 18px;
  font-size: 12px; color: var(--muted);
}
.meso-copy .legend span { display: inline-flex; align-items: center; gap: 6px; }
.meso-copy .legend i { width: 10px; height: 10px; border-radius: 99px; }
.meso-copy .legend .v { background: var(--violet); }
.meso-copy .legend .t { background: var(--teal); }
.meso-copy .legend .a { background: var(--amber); }

.meso-chart {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--r-card-lg);
  padding: 24px 24px 18px;
  position: relative;
  overflow: hidden;
}
.meso-chart::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad);
  border-radius: 22px 22px 0 0;
}
.meso-chart .meso-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
}
.meso-chart .meso-head .ttl {
  font-size: 14px; font-weight: 700;
}
.meso-chart .meso-head .meta { font-size: 11.5px; color: var(--muted); }

.meso-weeks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  height: 220px;
}
.meso-week {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  height: 100%;
  justify-content: end;
}
.meso-week .stack {
  display: flex; flex-direction: column-reverse;
  gap: 3px;
  border-radius: 6px;
  overflow: hidden;
}
.meso-week .seg {
  background: hsl(258 80% 60% / .85);
  border-radius: 3px;
}
.meso-week .seg.t { background: hsl(185 75% 50% / .85); }
.meso-week .seg.empty { background: hsl(240 7% 14%); }
.meso-week .label {
  text-align: center;
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
}
.meso-week.deload .label { color: var(--amber); }
.meso-week .toptag {
  font-size: 10px; color: var(--muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px;
}
.meso-week.deload .toptag { color: var(--amber); }

/* ─── Pricing ─────────────────────────────────────────────────── */

.pricing {
  display: flex; justify-content: center;
}
.pricing-card {
  width: 100%;
  max-width: 540px;
  background: var(--card);
  border: 1px solid hsl(258 80% 60% / .35);
  border-radius: var(--r-card-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px hsl(258 80% 60% / .12);
}
.pricing-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad);
  border-radius: var(--r-card-lg) var(--r-card-lg) 0 0;
}
.pricing-card::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(closest-side, hsl(258 80% 60% / .25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.pricing-card .trial-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 6px 10px; border-radius: 99px;
  background: var(--grad-soft);
  color: var(--teal);
  border: 1px solid hsl(185 75% 50% / .35);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
}
.pricing-card h3 {
  margin: 0 0 4px;
  font-size: 28px; font-weight: 700; letter-spacing: -0.025em;
}
.pricing-card .sub {
  margin: 0 0 22px;
  color: var(--fg-2);
  font-size: 14.5px;
}
.pricing-rows {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
}
.pricing-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 16px;
  background: hsl(240 12% 7%);
  border: 1px solid var(--card-bd);
  border-radius: 12px;
}
.pricing-row.featured {
  border-color: hsl(258 80% 60% / .45);
  background: linear-gradient(180deg, hsl(258 80% 60% / .08), hsl(240 12% 7%));
}
.pricing-row .l { font-size: 14px; font-weight: 600; }
.pricing-row .l .save { display: inline-block; margin-left: 8px; font-size: 11px; color: var(--teal); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pricing-row .r { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pricing-row .r .per { font-size: 12px; color: var(--muted); font-weight: 500; }

.pricing-card .btn { width: 100%; height: 52px; }

.pricing-fine {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── FAQ ─────────────────────────────────────────────────────── */

.faq-list {
  border-top: 1px solid var(--card-bd);
}
.faq {
  border-bottom: 1px solid var(--card-bd);
}
.faq summary {
  list-style: none;
  cursor: default;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--card-bd);
  border-radius: 99px;
  flex: 0 0 28px;
  transition: transform .25s ease, color .15s ease;
}
.faq[open] summary::after {
  content: "−";
  color: var(--violet);
  border-color: hsl(258 80% 60% / .45);
}
.faq .answer {
  padding: 0 0 26px;
  font-size: 14.5px; color: var(--fg-2); line-height: 1.6;
  max-width: 70ch;
}

/* ─── CTA strip / closer ──────────────────────────────────────── */

.closer {
  padding: 96px 0 64px;
  text-align: center;
  position: relative;
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 30%, hsl(258 80% 50% / .18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.closer .wordmark { margin-bottom: 22px; }
.closer h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  text-wrap: balance;
}
.closer p {
  max-width: 540px; margin: 0 auto 28px;
  color: var(--fg-2); font-size: 16px; line-height: 1.55;
}
.closer .meta {
  margin-top: 16px;
  font-size: 12px; color: var(--muted);
}

/* ─── Footer ──────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--card-bd);
  padding: 56px 0 48px;
  background: hsl(240 12% 4%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-brand {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 320px;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand .tag {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-col h6 {
  margin: 0 0 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13.5px; color: var(--fg-2);
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--fg); }

.legal {
  border-top: 1px solid var(--card-bd);
  padding-top: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.legal .disclaim {
  font-size: 11.5px; color: var(--muted-2); line-height: 1.6;
  max-width: 820px;
}
.legal .row {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 12px; color: var(--muted);
  justify-content: space-between;
  align-items: center;
}
.legal .row .links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal .row .links a { color: var(--muted); }

/* ─── Apple icon helper ───────────────────────────────────────── */

.apple-svg {
  width: 17px; height: 17px;
  display: inline-block;
  vertical-align: -3px;
}

/* ─── Variants applied by Tweaks panel ────────────────────────── */

/* Accent emphasis */
body.accent-violet { --grad: linear-gradient(90deg, hsl(258 80% 60%), hsl(258 80% 60%)); }
body.accent-teal   { --grad: linear-gradient(90deg, hsl(185 75% 50%), hsl(185 75% 50%)); }
/* default keeps gradient */

/* Copy density */
body.density-spartan .hide-spartan { display: none; }
body.density-robust  .hide-robust { display: none; }
body:not(.density-robust) .show-robust { display: none; }

/* Pricing toggle */
body.hide-pricing #pricing { display: none; }

/* ─── Force-mobile viewport (Tweaks "Viewport: Mobile") ───────── */
/* The page is responsive; this preview mode constrains the layout to its
   mobile form so you can compare without resizing the browser. It overrides
   the desktop breakpoints inline. */

body.force-mobile {
  /* let html bg + .cosmos show through */
}
/* In mobile preview, let the cosmos fill the viewport behind the constrained
   content column — looks better than the dark void either side. */
body.force-mobile .nav,
body.force-mobile .strip,
body.force-mobile footer {
  width: 440px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
body.force-mobile section.s,
body.force-mobile .hero,
body.force-mobile .closer,
body.force-mobile footer {
  width: 440px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
body.force-mobile .hero {
  padding: 36px 0 64px;
  min-height: 0;
  position: relative;
}
body.force-mobile .hero > .wrap { position: relative; z-index: 1; }

body.force-mobile .wrap {
  max-width: 100%;
  padding: 0 20px;
}

/* Force all multi-column grids back to one column */
body.force-mobile .hero-grid,
body.force-mobile .strip-grid,
body.force-mobile .steps,
body.force-mobile .verdict-stage,
body.force-mobile .recovery-grid,
body.force-mobile .method-grid,
body.force-mobile .meso-grid,
body.force-mobile .footer-grid {
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}

body.force-mobile .hero {
  padding: 36px 0 64px;
  min-height: 0;
}
body.force-mobile .hero h1 { font-size: 38px !important; }
body.force-mobile .hero p.lead { font-size: 16px !important; }

body.force-mobile .s-head h2 { font-size: 30px !important; }
body.force-mobile .closer h2 { font-size: 34px !important; }

body.force-mobile .iphone {
  --w: 320px !important;
  --h: 660px !important;
}
body.force-mobile .coach-ticker {
  right: 0 !important;
  left: 8px !important;
  bottom: 18% !important;
  width: auto !important;
  max-width: none !important;
}

body.force-mobile section.s { padding: 64px 0; }
body.force-mobile .closer { padding: 64px 0 48px; }

/* ─── Animations ──────────────────────────────────────────────── */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero p.lead, .hero-eyebrow, .hero-ctas, .hero-meta, .phone-stage { animation: none; opacity: 1; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
