/* style.css — Yealth design tokens + component styles */

:root {
  /* Brand palette */
  --color-mint: #1DB891;
  --color-mint-deep: #169974;
  --color-mint-soft: #D4F0E5;
  --color-coral: #FF7D54;
  --color-coral-deep: #E5613A;
  --color-cream: #F2EDE6;
  --color-cream-light: #F8F4ED;
  --color-navy: #0A0E1A;
  --color-navy-soft: #1B2233;
  --color-text: #1F2A24;
  --color-text-muted: #5B6B62;
  --color-text-faint: #8C9A91;
  --color-bg: var(--color-cream);
  --color-surface: #FFFFFF;
  --color-surface-2: var(--color-cream-light);
  --color-border: rgba(10, 14, 26, 0.08);
  --color-border-strong: rgba(10, 14, 26, 0.14);

  /* Typography */
  --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
  --font-display: 'DM Sans', 'Inter', system-ui, sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem);
  --text-hero: clamp(2.5rem, 1.5rem + 5vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --container-wide: 1320px;

  /* Shadow — warm, low-contrast */
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-md: 0 6px 24px rgba(10, 14, 26, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 14, 26, 0.10);
  --shadow-mint: 0 12px 32px rgba(29, 184, 145, 0.22);
}

/* ============== LAYOUT ============== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

/* ============== NAV ============== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-cream) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}

.nav__brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav__links {
  display: none;
  gap: var(--space-8);
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
.nav__links a:hover { color: var(--color-navy); }

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

/* ============== BUTTONS ============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  min-height: 44px;
}

.btn--primary {
  background: var(--color-mint);
  color: white;
  box-shadow: var(--shadow-mint);
}
.btn--primary:hover {
  background: var(--color-mint-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(29, 184, 145, 0.28);
}
.btn--primary:active { transform: translateY(0); }

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

.btn--coral {
  background: var(--color-coral);
  color: white;
}
.btn--coral:hover {
  background: var(--color-coral-deep);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 0.95rem 1.75rem;
  font-size: var(--text-base);
}

.btn--block { width: 100%; }

/* ============== HERO ============== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-16);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--color-mint-soft);
  color: var(--color-mint-deep);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-mint);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-mint) 20%, transparent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: normal;
  color: var(--color-mint);
  position: relative;
  white-space: nowrap;
}

.hero__lede {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text-muted);
  max-width: 38ch;
  margin-bottom: var(--space-8);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.hero__proof-dots {
  display: flex;
}
.hero__proof-dots span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-cream);
  background: linear-gradient(135deg, var(--color-mint), var(--color-coral));
  margin-left: -8px;
}
.hero__proof-dots span:first-child { margin-left: 0; }
.hero__proof-dots span:nth-child(2) {
  background: linear-gradient(135deg, var(--color-coral), #F2C94C);
}
.hero__proof-dots span:nth-child(3) {
  background: linear-gradient(135deg, #6FB3D2, var(--color-mint));
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 0%, #16385E 0%, transparent 60%),
    radial-gradient(140% 100% at 100% 100%, rgba(29, 184, 145, 0.30) 0%, transparent 55%),
    linear-gradient(160deg, #0A0E1A 0%, #131A2E 100%);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg);
}

/* ============== REWARD SCENE (hero animation) ============== */

.reward-scene {
  position: absolute;
  inset: 0;
  color: white;
  font-family: var(--font-display);
  overflow: hidden;
  isolation: isolate;
}

.reward-scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 30% 35%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 30% 35%, black 30%, transparent 80%);
  opacity: 0.7;
}

.reward-scene__glow {
  position: absolute;
  width: 60%;
  height: 60%;
  right: -10%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(29, 184, 145, 0.45) 0%, transparent 60%);
  filter: blur(20px);
  z-index: 0;
}

/* Habits column */
.habits {
  position: absolute;
  left: 7%;
  top: 9%;
  width: 56%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.habit {
  display: grid;
  grid-template-columns: 22px 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px);
  animation: habit-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.habit--1 { animation-delay: 0.4s; }
.habit--2 { animation-delay: 0.8s; }
.habit--3 { animation-delay: 1.2s; }

@keyframes habit-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.habit__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 250ms ease, border-color 250ms ease;
}

.habit__check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 200ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Triggered check states */
.habit--1 .habit__check { animation: habit-check 0.5s 1.4s forwards; }
.habit--2 .habit__check { animation: habit-check 0.5s 2.2s forwards; }
.habit--3 .habit__check { animation: habit-check 0.5s 3.0s forwards; }

.habit--1 .habit__check svg { animation: habit-tick 0.4s 1.55s forwards; }
.habit--2 .habit__check svg { animation: habit-tick 0.4s 2.35s forwards; }
.habit--3 .habit__check svg { animation: habit-tick 0.4s 3.15s forwards; }

@keyframes habit-check {
  to {
    background: var(--color-mint);
    border-color: var(--color-mint);
  }
}
@keyframes habit-tick {
  to { opacity: 1; transform: scale(1); }
}

.habit__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
}
.habit__icon svg { width: 18px; height: 18px; }

.habit__label {
  font-size: 13px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.01em;
}

.habit__reward {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-mint);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateX(-4px);
}

.habit--1 .habit__reward { animation: reward-show 0.45s 1.55s forwards; }
.habit--2 .habit__reward { animation: reward-show 0.45s 2.35s forwards; }
.habit--3 .habit__reward { animation: reward-show 0.45s 3.15s forwards; }

@keyframes reward-show {
  to { opacity: 1; transform: translateX(0); }
}

/* Coin stream */
.coin-stream {
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 3;
}

.coin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFD78A 0%, #F2C94C 50%, #C99A28 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #6B4A0F;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(242, 201, 76, 0.35);
  opacity: 0;
}

/* Coins fly from habit row to vault */
.coin--1 { left: 38%; top: 19%; animation: coin-fly 1.4s 1.7s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.coin--2 { left: 38%; top: 32%; animation: coin-fly 1.4s 2.5s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.coin--3 { left: 38%; top: 45%; animation: coin-fly 1.4s 3.3s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.coin--4 { left: 38%; top: 19%; animation: coin-fly 1.4s 4.2s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.coin--5 { left: 38%; top: 32%; animation: coin-fly 1.4s 4.9s cubic-bezier(0.5, 0, 0.75, 0) forwards; }

@keyframes coin-fly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  15% {
    opacity: 1;
    transform: translate(20px, -10px) scale(1);
  }
  85% {
    opacity: 1;
    transform: translate(220px, 180px) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(232px, 200px) scale(0.4);
  }
}

/* Vault */
.vault {
  position: absolute;
  right: 7%;
  bottom: 9%;
  width: 46%;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  animation: habit-appear 0.6s 1.0s forwards;
}

.vault__slot {
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.20);
  border-radius: 3px;
  margin: 0 auto 10px;
  position: relative;
  overflow: hidden;
}

.vault__slot::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(29, 184, 145, 0.6), transparent);
  animation: slot-shimmer 3s linear infinite;
}

@keyframes slot-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.vault__body {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.vault__body::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(29,184,145,0.6), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.vault__amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.vault__amount-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vault__amount-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vault__bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.vault__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-mint) 0%, #2BE0AE 100%);
  border-radius: 999px;
  animation: bar-fill 6s 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes bar-fill {
  0%   { width: 0%; }
  25%  { width: 22%; }
  50%  { width: 45%; }
  75%  { width: 68%; }
  100% { width: 78%; }
}

.vault__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.vault__delta {
  color: var(--color-mint);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .habit, .vault {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .habit__check {
    background: var(--color-mint);
    border-color: var(--color-mint);
  }
  .habit__check svg {
    opacity: 1;
    transform: scale(1);
  }
  .habit__reward { opacity: 1; transform: none; }
  .coin { display: none; }
  .vault__bar-fill { width: 78%; animation: none; }
  .vault__slot::after { animation: none; }
}

@media (max-width: 720px) {
  .habits {
    top: 7%;
    left: 6%;
    right: 6%;
    width: auto;
  }
  .habit { padding: 10px 12px; gap: 8px; }
  .habit__label { font-size: 12px; }
  .habit__reward { font-size: 11px; }
  .vault {
    right: 6%;
    bottom: 7%;
    width: 70%;
  }
  .vault__amount-value { font-size: 24px; }
  /* Re-aim coins toward repositioned vault on narrow screens */
  @keyframes coin-fly {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
    15%  { opacity: 1; transform: translate(10px, -6px) scale(1); }
    85%  { opacity: 1; transform: translate(80px, 220px) scale(0.9); }
    100% { opacity: 0; transform: translate(90px, 240px) scale(0.4); }
  }
}

@media (max-width: 480px) {
  .habits { gap: 8px; }
  .habit { padding: 9px 10px; gap: 7px; grid-template-columns: 20px 20px 1fr auto; }
  .habit__icon svg { width: 16px; height: 16px; }
  .vault { width: 78%; }
  .vault__body { padding: 14px 14px 12px; }
  .vault__amount-value { font-size: 22px; }
  .vault__amount-label { font-size: 10px; }
  .vault__meta { font-size: 10px; }
}

/* ============== SECTION HEADERS ============== */

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mint-deep);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  max-width: 22ch;
}

.section-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.55;
}

/* ============== PROBLEM ============== */

.problem {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.problem__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 880px) {
  .problem__body {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-16);
  }
}

.problem__lead {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--color-navy);
}

.problem__lead strong {
  color: var(--color-coral);
  font-weight: 600;
}

.problem__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.problem__text p:last-child { margin-bottom: 0; }

.problem__stat {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.problem__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2);
}

.problem__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 38ch;
}

.problem__stat-label small {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.72rem;
  color: var(--color-text-faint);
  line-height: 1.45;
}

.problem__stat-label small em {
  font-style: italic;
}

/* ============== MECHANIC (3 cards) ============== */

.mechanic__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-12);
}

@media (min-width: 720px) {
  .mechanic__grid { grid-template-columns: repeat(3, 1fr); }
}

.mech-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.mech-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.mech-card__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-mint-deep);
  letter-spacing: 0.04em;
}

.mech-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.mech-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============== HOW IT WORKS ============== */

.howitworks {
  background: var(--color-navy);
  color: white;
}

.howitworks .eyebrow { color: var(--color-mint); }
.howitworks .section-title { color: white; }
.howitworks .section-lede { color: rgba(255, 255, 255, 0.65); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
  counter-reset: step;
}

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

.step {
  position: relative;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  counter-increment: step;
  transition: background 250ms ease, transform 250ms ease;
}

.step:hover {
  background: rgba(29, 184, 145, 0.08);
  transform: translateY(-2px);
}

.step__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-mint);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.step__num::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--color-mint);
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: white;
  margin-bottom: var(--space-3);
}

.step__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.step__text strong {
  color: var(--color-mint);
  font-weight: 600;
}

/* ============== SCIENCE ============== */

.science {
  background: var(--color-cream-light);
}

.science__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 880px) {
  .science__inner {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-16);
  }
}

.science__pillars {
  display: grid;
  gap: var(--space-4);
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.pillar:last-child { border-bottom: none; padding-bottom: 0; }

.pillar__marker {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mint);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.pillar__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.science__note {
  margin-top: var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.science__badge {
  margin-top: var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: var(--color-navy, #0A0E1A);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  text-transform: none;
}

.science__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-mint, #1DB891);
  box-shadow: 0 0 0 3px rgba(29, 184, 145, 0.25);
  flex-shrink: 0;
}

.science__refs {
  margin: var(--space-8) 0 var(--space-3);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
}

.science__journals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.science__journals li {
  display: inline-flex;
  align-items: center;
}

.science__journals a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.science__journals a:hover,
.science__journals a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.science__journals a:focus-visible {
  outline: 2px solid var(--color-mint, #1DB891);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Nature — lowercase PT Serif Bold, tight tracking */
.science__journals .j-nature {
  font-family: 'PT Serif', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: var(--color-text, #1F2A24);
}

/* Science — bold italic-feeling Inter Black, tight tracking */
.science__journals .j-science {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--color-text, #1F2A24);
}

/* Brain & Behavior — PT Serif Bold with italic ampersand */
.science__journals .j-brainbehavior {
  font-family: 'PT Serif', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--color-text, #1F2A24);
}

.science__journals .j-brainbehavior em {
  font-style: italic;
  font-weight: 400;
  margin: 0 0.08em;
  color: var(--color-text-muted);
}

.science__disclaimer {
  margin-top: var(--space-4);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--color-text-faint);
  opacity: 0.8;
  max-width: 38rem;
}

.science__journals li + li {
  position: relative;
}

.science__journals li + li::before {
  content: "·";
  position: absolute;
  left: calc(var(--space-6) * -0.5 - 4px);
  color: var(--color-border);
  font-size: 1.25rem;
}

@media (max-width: 640px) {
  .science__journals {
    gap: var(--space-4) var(--space-6);
  }
  .science__journals li + li::before {
    display: none;
  }
}

/* ============== FAMILY LOOP ============== */

.family__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 920px) {
  .family__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.family__cards {
  display: grid;
  gap: var(--space-3);
}

.family-card {
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.family-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-mint-soft);
  color: var(--color-mint-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.family-card:nth-child(2) .family-card__icon {
  background: rgba(255, 125, 84, 0.14);
  color: var(--color-coral-deep);
}
.family-card:nth-child(3) .family-card__icon {
  background: rgba(108, 156, 215, 0.14);
  color: #4F7EAF;
}

.family-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.family-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
}

.family__pull {
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  font-weight: 500;
  font-style: italic;
  max-width: 28ch;
}

/* ============== WAITLIST ============== */

.waitlist {
  background: var(--color-mint);
  color: white;
  position: relative;
  overflow: hidden;
}

.waitlist::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.waitlist .eyebrow { color: rgba(255,255,255,0.85); }
.waitlist .section-title { color: white; }
.waitlist .section-lede { color: rgba(255, 255, 255, 0.85); }

.waitlist__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
  position: relative;
}

@media (min-width: 880px) {
  .waitlist__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-16);
  }
}

.waitlist__form {
  background: white;
  color: var(--color-text);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 600px) {
  .waitlist__form { padding: var(--space-10); }
}

.field { margin-bottom: var(--space-5); }

.field__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.field__input,
.field__select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: white;
  font-size: var(--text-base);
  color: var(--color-navy);
  min-height: 48px;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231F2A24' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field__input:focus,
.field__select:focus {
  border-color: var(--color-mint);
  outline: 2px solid color-mix(in oklab, var(--color-mint) 25%, transparent);
  outline-offset: 0;
}

.field__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 520px) {
  .field__row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .field__row .field { margin-bottom: 0; }
}

.field__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  cursor: pointer;
}

.field__check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-mint);
  cursor: pointer;
}

.form-success {
  display: none;
  padding: var(--space-6);
  background: var(--color-mint-soft);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--color-mint) 30%, transparent);
  margin-top: var(--space-4);
}
.form-success.is-visible { display: block; }
.form-success__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-mint-deep);
  margin-bottom: var(--space-2);
}
.form-success__text {
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* Post-signup donate CTA */
.form-success__cta {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in oklab, var(--color-mint) 22%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.form-success__cta-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}
.form-success__cta-btn {
  position: relative;
  animation: pulseGlow 2.4s ease-in-out infinite;
  transform-origin: center;
}
.form-success__cta-btn:hover {
  animation-play-state: paused;
}
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px -4px color-mix(in oklab, var(--color-mint) 40%, transparent);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 10px 28px -6px color-mix(in oklab, var(--color-mint) 65%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-success__cta-btn { animation: none; }
}

.waitlist__perks {
  display: grid;
  gap: var(--space-4);
}

.waitlist__perk {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.95);
}

.waitlist__perk-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.waitlist__perk-text {
  font-size: var(--text-base);
  line-height: 1.45;
}
.waitlist__perk-text strong { font-weight: 600; }

/* ============== SUPPORT ============== */

.support {
  background: var(--color-surface);
}

.support__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

@media (min-width: 640px) {
  .support__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .support__grid { grid-template-columns: repeat(4, 1fr); }
}

.tier {
  padding: var(--space-6);
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.tier:hover {
  transform: translateY(-2px);
  border-color: var(--color-coral);
  box-shadow: var(--shadow-md);
}

.tier--featured {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.tier--featured::before {
  content: "Best value";
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-mint);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.tier--featured .tier__amount { color: var(--color-mint); }
.tier--featured .tier__label { color: #FFFFFF; }
.tier--featured .tier__desc { color: rgba(255, 255, 255, 0.72); }
.tier--featured .tier__btn {
  background: var(--color-mint);
  color: var(--color-navy);
  border-color: var(--color-mint);
}
.tier--featured .tier__btn:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--color-navy);
}
.tier--featured:hover {
  border-color: var(--color-mint);
  transform: translateY(-2px);
}

.tier__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tier__label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}

.tier__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-2);
  flex-grow: 1;
}

.tier__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-coral-deep);
  border: 1px solid var(--color-coral);
  font-weight: 600;
  font-size: var(--text-sm);
  min-height: 40px;
}
.tier__btn:hover {
  background: var(--color-coral);
  color: white;
}

/* ============== FOOTER ============== */

.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
  padding-block: var(--space-16) var(--space-10);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-12);
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer__brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer__tag {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  max-width: 36ch;
  line-height: 1.5;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.footer__col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}
.footer__col a:hover { color: var(--color-mint); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

/* ============== SCROLL REVEAL ============== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============== UTILITIES ============== */

.text-center { text-align: center; }

@media (min-width: 880px) {
  .md-text-left { text-align: left; }
}

/* ============== EMBEDDED CHECKOUT MODAL ============== */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.checkout-modal[hidden] { display: none; }
.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: checkout-fade 200ms ease-out;
}
.checkout-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(10, 14, 26, 0.24);
  padding: 28px 24px 24px;
  animation: checkout-rise 220ms ease-out;
}
.checkout-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-navy);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.checkout-modal__close:hover {
  background: var(--color-cream);
  transform: scale(1.05);
}
.checkout-modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 40px 16px 0;
  line-height: 1.3;
}
.checkout-modal__element {
  min-height: 320px;
}
.checkout-modal__error {
  margin-top: 12px;
  padding: 12px 14px;
  background: #FFF1ED;
  border: 1px solid var(--color-coral);
  border-radius: 10px;
  color: var(--color-coral-deep);
  font-size: 14px;
}
@keyframes checkout-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes checkout-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .checkout-modal { padding: 0; align-items: flex-end; }
  .checkout-modal__panel {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}
