/* ============================================================
   CalorieSnap marketing site — "Midnight & Ember" light system.
   Mirrors mobile/src/constants/lightTheme.ts:
   cream page, white cards with soft ink shadows and 1px hairlines,
   deep-indigo chrome and CTAs, one ember accent per section.
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #F7F5F1;
  --card: #FFFFFF;
  --ink: #161A2E;
  --sub: #5A6173;
  --faint: #9A9FB0;
  --border: #E7E4EC;
  --brand: #272C57;
  --brand-dark: #1A1E40;
  --brand-soft: rgba(39, 44, 87, 0.08);
  --brand-muted: rgba(39, 44, 87, 0.16);
  /* Filled-CTA surfaces stay deep indigo in BOTH color schemes (white text on
     top), mirroring `brandFill` in mobile/src/constants/lightTheme.ts. */
  --brand-fill: #272C57;
  --brand-fill-strong: #1A1E40;
  /* The constant midnight surfaces (scan console, premium card, footer):
     the app's dark twin, identical in light and dark modes. */
  --midnight: #1A1E40;
  --midnight-deep: #20254A;
  --ember: #E0913A;
  --ember-soft: rgba(224, 145, 58, 0.12);
  /* Ember lightened for midnight surfaces (D.accent in the app). */
  --ember-bright: #EFA34F;
  --gold: #C2883A;
  --gold-deep: #7E5418;
  --gold-soft: rgba(194, 136, 58, 0.14);
  --sky: #3E63A8;
  --danger: #C9534B;
  --track: rgba(22, 26, 46, 0.06);
  --glass: rgba(247, 245, 241, 0.92);
  --shadow-card: 0 8px 32px rgba(16, 20, 42, 0.07);
  --shadow-lift: 0 16px 48px rgba(16, 20, 42, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  /* Type scale — one display size, one section title, shared body sizes. */
  --type-display: clamp(38px, 5.4vw, 60px);
  --type-title: clamp(26px, 3.2vw, 38px);
  --type-lede: clamp(16px, 1.6vw, 17.5px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

/* Images declare intrinsic width/height in markup (no layout shift);
   height:auto keeps them undistorted when the column constrains width. */
img {
  max-width: 100%;
  height: auto;
}

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

::selection {
  background: var(--brand-muted);
}

h1,
h2,
h3,
h4 {
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Stats and numerals line up like the app's ring and diary. */
strong,
b,
.metric-strip,
.quiz-result-grid b,
[data-premium-price] {
  font-variant-numeric: tabular-nums;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-header nav {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a {
  color: var(--sub);
  transition: color 160ms ease;
}

.site-header nav a:hover {
  color: var(--brand);
}

@media (min-width: 880px) {
  .site-header nav {
    display: flex;
  }
}

/* ============================================================
   Buttons and shared type
   ============================================================ */

.store-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 160ms ease, background 160ms ease,
    border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.store-button {
  color: #fff;
  background: var(--brand-fill);
  box-shadow: 0 10px 26px rgba(39, 44, 87, 0.22);
  font-size: 17px;
  line-height: 1.1;
  text-align: left;
}

.store-button:hover {
  transform: translateY(-1px);
  background: var(--brand-fill-strong);
  box-shadow: 0 14px 30px rgba(26, 30, 64, 0.26), inset 0 -2px 0 var(--ember);
}

.store-button small {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
}

.store-button-small {
  min-height: 44px;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: 12px;
}

.store-button-small small {
  font-size: 8.5px;
}

.store-button-android {
  color: var(--brand);
  background: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.store-button-android:hover {
  background: var(--card);
  border-color: var(--brand-muted);
  box-shadow: var(--shadow-lift);
  color: var(--brand-dark);
}

.store-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
}

.store-button-android .store-icon {
  background: var(--brand-soft);
}

.store-logo {
  display: block;
}

.store-logo-apple {
  width: 21px;
  height: 21px;
  fill: #fff;
}

.store-button-android .store-logo-apple {
  fill: var(--brand);
}

.store-logo-play {
  width: 19px;
  height: 19px;
}

.primary-action {
  color: #fff;
  background: var(--brand-fill);
  font-size: 16px;
}

.primary-action:hover {
  transform: translateY(-1px);
  background: var(--brand-fill-strong);
  box-shadow: inset 0 -2px 0 var(--ember);
}

.secondary-action {
  color: var(--brand);
  background: transparent;
  border-color: var(--border);
  font-size: 16px;
}

.secondary-action:hover {
  transform: translateY(-1px);
  border-color: var(--brand-muted);
  background: var(--brand-soft);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 640px;
  margin: 0 0 clamp(26px, 4vw, 44px);
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: var(--type-title);
  font-weight: 800;
}

.section-heading p {
  margin: 0;
  color: var(--sub);
  font-size: var(--type-lede);
}

main > section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

/* ============================================================
   Hero
   ============================================================ */

.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  padding-top: clamp(108px, 14vw, 156px);
  /* Dusk atmosphere: indigo evening light from the upper right, one
     ember remnant low on the left — the palette of 7 PM. Pure CSS so
     the photography slot in ASSETS.md can replace it without rework. */
  background:
    radial-gradient(110% 72% at 84% -12%, rgba(111, 121, 200, 0.16), transparent 62%),
    radial-gradient(64% 44% at 6% 32%, rgba(224, 145, 58, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(39, 44, 87, 0.05), transparent 38%);
}

/* Film grain knits the gradients together — static, no parallax, no JS.
   Sits above the section background, below all content. */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.07;
  pointer-events: none;
}

/* The affirmation eyebrow: a sentence, not a label — so it keeps
   sentence case and a quiet ember-to-indigo rule instead of caps. */
.hero-affirmation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-affirmation::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ember), var(--brand));
}

.hero-main-panel {
  display: grid;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 980px) {
  .hero-main-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 470px);
  }
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 640px;
  font-size: var(--type-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-copy > p {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--sub);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.privacy-note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.hero-proof-rail {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--sub);
  font-size: 13.5px;
}

.hero-proof-rail b {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 700px) {
  .hero-proof-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* --- Phone mock: the analysis theater on a midnight field --- */

.hero-product {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

/* Soft indigo-and-ember aura gives the phone depth without parallax. */
.hero-product::before {
  content: "";
  position: absolute;
  inset: -14% -18% -10%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(58% 48% at 50% 36%, rgba(111, 121, 200, 0.24), transparent 70%),
    radial-gradient(42% 34% at 58% 66%, rgba(224, 145, 58, 0.14), transparent 72%);
  pointer-events: none;
}

.phone-shell {
  background: #0B0E18;
  border: 1px solid rgba(236, 238, 246, 0.14);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lift);
}

.phone-screen {
  display: grid;
  gap: 12px;
  background: linear-gradient(178deg, #10131F 0%, #161A30 100%);
  border: 1px solid rgba(236, 238, 246, 0.1);
  border-radius: 32px;
  padding: 14px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 2px 10px 0;
  color: rgba(236, 238, 246, 0.62);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.app-hero {
  display: grid;
  gap: 12px;
  background: rgba(236, 238, 246, 0.04);
  border: 1px solid rgba(236, 238, 246, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.hero-phone .app-brand-row p {
  color: rgba(236, 238, 246, 0.5);
}

.hero-phone .app-brand-row h2 {
  color: #ECEEF6;
}

.app-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-brand-row img {
  width: 30px;
  height: 30px;
}

.app-brand-row p {
  margin: 0;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-brand-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

/* The signature ring: ember-to-indigo arc starting at 12 o'clock. */

.hero-ring {
  position: relative;
  width: 152px;
  margin: 2px auto;
}

.hero-ring svg {
  display: block;
  width: 100%;
  height: auto;
}

.ring-track {
  fill: none;
  stroke: rgba(236, 238, 246, 0.09);
  stroke-width: 11;
}

.ring-arc {
  fill: none;
  stroke: url(#ember-arc);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 351.86;
  /* 58% of the day logged; arc starts at 12 o'clock. */
  stroke-dashoffset: 147.8;
  transform: rotate(-90deg);
  transform-origin: 66px 66px;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-center strong {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ember-bright); /* large display only — never body text */
}

.ring-center small {
  color: rgba(236, 238, 246, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Scanner console (mirrors the in-app camera) ----------- */

.scan-console {
  display: grid;
  gap: 10px;
  background: linear-gradient(165deg, var(--midnight-deep) 0%, var(--midnight) 100%);
  border-radius: var(--radius-md);
  padding: 12px;
}

.scan-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.scan-console-top span {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 600;
}

.scan-console-top b {
  color: #fff;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.scan-frame-mini {
  position: relative;
  height: 74px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 58%, rgba(224, 145, 58, 0.22), transparent 58%),
    rgba(255, 255, 255, 0.05);
}

.scan-frame-mini i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
}

.scan-frame-mini i:nth-child(1) {
  top: 8px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
}

.scan-frame-mini i:nth-child(2) {
  top: 8px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 6px;
}

.scan-frame-mini i:nth-child(3) {
  bottom: 8px;
  left: 10px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 6px;
}

.scan-frame-mini i:nth-child(4) {
  bottom: 8px;
  right: 10px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 6px;
}

.scan-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding-bottom: 2px;
}

.scan-shutter {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.scan-tool {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.scan-tool-image {
  background:
    linear-gradient(135deg, transparent 52%, rgba(255, 255, 255, 0.5) 52%),
    rgba(255, 255, 255, 0.08);
}

.scan-tool-barcode {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.55) 0 2px,
      transparent 2px 6px
    )
    center / 14px 12px no-repeat,
    rgba(255, 255, 255, 0.08);
}

.app-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.action-with-icon {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 9px 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
}

.action-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-action {
  background: var(--ember);
  border-color: var(--ember);
  color: #1A1E40;
}

.plan-action .action-icon {
  stroke: #1A1E40;
}

/* The action tiles sit on the midnight screen. */
.hero-phone .action-with-icon:not(.plan-action) {
  background: rgba(236, 238, 246, 0.05);
  border-color: rgba(236, 238, 246, 0.14);
  color: #ECEEF6;
}

.hero-phone .action-with-icon:not(.plan-action) .action-icon {
  stroke: #B9BFDC;
}

/* --- Bedtime check card in the phone ------------------------ */

.command-card {
  background: rgba(236, 238, 246, 0.05);
  border: 1px solid rgba(236, 238, 246, 0.12);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-head p {
  margin: 0 0 2px;
  color: var(--ember-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-head h3 {
  margin: 0;
  color: #ECEEF6;
  font-size: 15px;
  font-weight: 800;
}

.command-head strong {
  flex: none;
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(239, 163, 79, 0.2);
  color: var(--ember-bright);
  font-size: 15px;
}

.coach-preview > p {
  margin: 10px 0 0;
  color: rgba(236, 238, 246, 0.66);
  font-size: 13px;
}

/* --- Scan-to-balance steps ----------------------------------- */

.steps-section {
  max-width: 1244px;
  margin: 0 auto;
}

.flow-panel {
  display: grid;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 860px) {
  .flow-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.flow-panel article {
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.flow-panel h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.flow-panel p {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
}

/* Step 1 visual: a crafted midnight camera frame with an ember glow. */
.step-camera {
  position: relative;
  height: 120px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 60%, rgba(224, 145, 58, 0.26), transparent 56%),
    linear-gradient(165deg, var(--midnight-deep), var(--midnight));
}

.step-camera i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
}

.step-camera i:nth-child(1) {
  top: 12px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
}

.step-camera i:nth-child(2) {
  top: 12px;
  right: 14px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 6px;
}

.step-camera i:nth-child(3) {
  bottom: 12px;
  left: 14px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 6px;
}

.step-camera i:nth-child(4) {
  bottom: 12px;
  right: 14px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 6px;
}

.step-camera span {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.review-card {
  display: grid;
  gap: 7px;
  height: 120px;
  align-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.review-card small {
  color: var(--sub);
  font-size: 11px;
  font-weight: 700;
}

.review-card strong {
  font-size: 19px;
  font-weight: 800;
}

.review-card span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.review-card span b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--brand));
}

.command-mini {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  height: 120px;
  background: linear-gradient(165deg, var(--midnight-deep), var(--midnight));
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #fff;
}

.command-mini small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-mini strong {
  font-size: 15px;
  font-weight: 800;
}

.command-mini span {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(224, 145, 58, 0.24);
  color: #fff;
  font-size: 13px;
}

/* ============================================================
   Tonight story: three quiet moments between dinner and sleep.
   The panel fades dusk -> night left to right; the story happens
   in the hours the product exists for.
   ============================================================ */

.story-section {
  max-width: 1244px;
  margin: 0 auto;
}

.story-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(24px, 3.6vw, 40px);
  padding: clamp(26px, 4.4vw, 56px);
  border-radius: clamp(24px, 3vw, 36px);
  color: #fff;
  background:
    radial-gradient(56% 70% at 0% 100%, rgba(224, 145, 58, 0.16), transparent 60%),
    radial-gradient(70% 60% at 96% 0%, rgba(111, 121, 200, 0.2), transparent 58%),
    linear-gradient(100deg, #232850 0%, #161A30 52%, #0D101D 100%);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

/* Same film grain as the hero, kept under the text. */
.story-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.12;
  pointer-events: none;
}

.story-heading {
  margin-bottom: 0;
}

.story-heading .eyebrow {
  color: var(--ember-bright);
}

.story-heading p {
  color: rgba(236, 238, 246, 0.75);
}

.story-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .story-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.story-moment {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(236, 238, 246, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(236, 238, 246, 0.05);
}

.story-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ember-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.story-time::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ember-bright);
  box-shadow: 0 0 0 4px rgba(239, 163, 79, 0.18);
}

.story-moment h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ECEEF6;
}

.story-moment > p {
  margin: 0;
  color: rgba(236, 238, 246, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

/* Small crafted visuals: scan frame, nudge pulse, closed ring. */

.story-visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  height: 112px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(236, 238, 246, 0.1);
  background: rgba(8, 10, 18, 0.45);
  overflow: hidden;
}

.story-visual b {
  font-size: 16px;
  font-weight: 800;
  color: #ECEEF6;
  letter-spacing: -0.01em;
}

.story-visual small {
  color: rgba(236, 238, 246, 0.6);
  font-size: 11px;
  font-weight: 600;
}

.story-visual-scan {
  background:
    radial-gradient(circle at 50% 56%, rgba(224, 145, 58, 0.24), transparent 62%),
    rgba(8, 10, 18, 0.45);
}

.story-visual-scan i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.story-visual-scan i:nth-child(1) {
  top: 10px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 5px;
}

.story-visual-scan i:nth-child(2) {
  top: 10px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 5px;
}

.story-visual-scan i:nth-child(3) {
  bottom: 10px;
  left: 12px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 5px;
}

.story-visual-scan i:nth-child(4) {
  bottom: 10px;
  right: 12px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 5px;
}

.story-pulse {
  width: 10px;
  height: 10px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: var(--ember-bright);
  box-shadow: 0 0 0 5px rgba(239, 163, 79, 0.2);
}

.story-visual-rest {
  background:
    radial-gradient(circle at 50% 38%, rgba(111, 121, 200, 0.24), transparent 66%),
    rgba(8, 10, 18, 0.52);
}

.story-ring {
  display: grid;
  place-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  border: 3px solid var(--ember-bright);
  border-radius: 999px;
  color: #ECEEF6;
  font-size: 15px;
  font-weight: 800;
}

/* ============================================================
   Real screenshots
   ============================================================ */

.screens-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screens-section .section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.screenshot-card {
  margin: 0;
  background: linear-gradient(180deg, var(--brand-soft), transparent 42%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.screenshot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.screenshot-card img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.screenshot-card figcaption {
  margin: 12px 4px 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sub);
}

.screenshot-card figcaption b {
  color: var(--ink);
  font-weight: 700;
}

/* ============================================================
   Honesty as luxury: the range, the review, the final word.
   Deliberately quiet — cream page, one white card, no theater.
   ============================================================ */

.honesty-section {
  max-width: 1244px;
  margin: 0 auto;
}

.honesty-panel {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 980px) {
  .honesty-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.honesty-copy h2 {
  margin: 0 0 14px;
  max-width: 520px;
  font-size: var(--type-title);
  font-weight: 800;
}

.honesty-copy > p {
  margin: 0 0 22px;
  max-width: 520px;
  color: var(--sub);
  font-size: var(--type-lede);
  line-height: 1.6;
}

.honesty-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.honesty-points li {
  position: relative;
  padding-left: 18px;
  color: var(--sub);
  font-size: 14.5px;
}

.honesty-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ember);
}

.honesty-points b {
  color: var(--ink);
  font-weight: 700;
}

/* The estimate card: a scan held open for review, range made visible. */

.estimate-card {
  display: grid;
  gap: 12px;
  max-width: 420px;
  justify-self: center;
  width: 100%;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ember);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}

.estimate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.estimate-head span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estimate-head b {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ember-soft);
  color: var(--gold-deep);
  font-size: 11.5px;
  font-weight: 700;
}

.estimate-card > strong {
  font-size: 19px;
  font-weight: 800;
}

.estimate-range {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.estimate-range b {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.estimate-range span {
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 600;
}

.estimate-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--track);
}

.estimate-bar i {
  position: absolute;
  inset: 0 24% 0 30%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--brand));
  opacity: 0.85;
}

.estimate-bar b {
  position: absolute;
  left: 54%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--card);
  border: 3px solid var(--brand);
  box-shadow: var(--shadow-card);
}

.estimate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.estimate-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.estimate-actions .estimate-confirm {
  background: var(--brand-fill);
  border-color: transparent;
  color: #fff;
}

.estimate-card > small {
  color: var(--faint);
  font-size: 12.5px;
}

/* ============================================================
   Features
   ============================================================ */

.feature-section {
  max-width: 1244px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.feature-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.feature-grid p {
  margin: 0;
  color: var(--sub);
  font-size: 14.5px;
}

/* ============================================================
   Connected nutrition
   ============================================================ */

.connected-section {
  max-width: 1244px;
  margin: 0 auto;
}

.connected-layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 1020px) {
  .connected-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
  }
}

.scan-review-card {
  position: relative;
  display: grid;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.scan-review-card > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.scan-overlay {
  position: absolute;
  top: 170px;
  right: 16px;
  display: grid;
  gap: 1px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scan-overlay span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scan-overlay strong {
  font-size: 19px;
  font-weight: 800;
}

.scan-overlay small {
  color: var(--sub);
  font-size: 11.5px;
  font-weight: 600;
}

.scan-copy {
  padding: 22px;
}

.scan-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}

.scan-copy p:last-child {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
}

.sync-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.sync-card-head h3 {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 800;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.device-grid span {
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.device-grid i {
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}

.device-grid img {
  width: 17px;
  height: 17px;
}

.device-grid b {
  font-size: 12.5px;
  font-weight: 700;
}

.device-grid small {
  color: var(--faint);
  font-size: 10.5px;
}

.connection-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.connection-flow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
}

.connection-flow span:not(:last-child)::after {
  content: "\2192";
  color: var(--faint);
}

/* ============================================================
   Tonight: the bedtime check on the midnight field
   ============================================================ */

.tonight-section {
  max-width: 1244px;
  margin: 0 auto;
}

.tonight-panel {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(111, 121, 200, 0.18), transparent 55%),
    linear-gradient(170deg, var(--midnight-deep) 0%, #10131F 100%);
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(26px, 4.4vw, 64px);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

@media (min-width: 980px) {
  .tonight-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

.tonight-copy .eyebrow {
  color: var(--ember-bright);
}

.tonight-copy h2 {
  margin: 0 0 14px;
  font-size: var(--type-title);
  font-weight: 800;
}

.tonight-copy > p {
  margin: 0 0 20px;
  max-width: 480px;
  color: rgba(236, 238, 246, 0.78);
  font-size: var(--type-lede);
}

.tonight-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.tonight-copy li {
  position: relative;
  padding-left: 18px;
  color: rgba(236, 238, 246, 0.72);
  font-size: 14px;
}

.tonight-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ember-bright);
}

.tonight-demo {
  display: grid;
  gap: 14px;
}

/* iOS-notification recreation — the moment the product exists for. */
.notification-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(236, 238, 246, 0.08);
  border: 1px solid rgba(236, 238, 246, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.notification-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.notification-head img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.notification-head b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(236, 238, 246, 0.85);
}

.notification-head span {
  margin-left: auto;
  color: rgba(236, 238, 246, 0.5);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.notification-card strong {
  font-size: 15.5px;
  font-weight: 800;
}

.notification-card p {
  margin: 0;
  color: rgba(236, 238, 246, 0.72);
  font-size: 13.5px;
}

/* The metric strip sits on midnight here. */
.tonight-demo .metric-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tonight-demo .metric-strip span {
  background: rgba(236, 238, 246, 0.05);
  border-color: rgba(236, 238, 246, 0.12);
  color: rgba(236, 238, 246, 0.6);
}

.tonight-demo .metric-strip b {
  color: #ECEEF6;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-strip span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--sub);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-strip b {
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* ============================================================
   Dashboard
   ============================================================ */

.dashboard-section {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  max-width: 1244px;
  margin: 0 auto;
}

.dashboard-copy h2 {
  margin: 0 0 12px;
  font-size: var(--type-title);
  font-weight: 800;
}

.dashboard-copy p {
  margin: 0;
  color: var(--sub);
  font-size: var(--type-lede);
  max-width: 560px;
}

.member-dashboard {
  display: grid;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 2.6vw, 28px);
  box-shadow: var(--shadow-card);
}

.member-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.member-dashboard-top > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-dot {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--ember), var(--brand));
}

.member-dashboard-top h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.member-dashboard-top strong {
  display: grid;
  justify-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.05;
}

.member-dashboard-top strong small {
  color: var(--sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calorie-panel {
    grid-row: span 2;
  }
}

.dashboard-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 18px;
}

.dashboard-grid h4 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
}

.calorie-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.calorie-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.calorie-panel li span {
  color: var(--sub);
}

.calorie-panel li b {
  font-weight: 800;
}

/* CSS calorie ring inside the dashboard preview. */
.calorie-ring {
  display: grid;
  place-content: center;
  width: 132px;
  height: 132px;
  margin: 4px auto;
  border-radius: 999px;
  background: conic-gradient(
    var(--ember) 0deg,
    var(--gold) 130deg,
    var(--brand) 209deg,
    var(--track) 209deg 360deg
  );
}

.calorie-ring span {
  display: grid;
  place-content: center;
  width: 106px;
  height: 106px;
  border-radius: 999px;
  background: var(--card);
  text-align: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.calorie-ring small {
  color: var(--sub);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head .eyebrow,
.dashboard-grid .eyebrow {
  margin-bottom: 0;
}

.macro-dials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.macro-dials span {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.macro-dials b {
  font-size: 17px;
  font-weight: 800;
}

.macro-dials small {
  color: var(--sub);
  font-size: 11px;
  font-weight: 700;
}

.insight-panel p {
  margin: 0;
  color: var(--sub);
  font-size: 13.5px;
}

.dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dashboard-link:hover {
  background: var(--brand-fill);
  border-color: var(--brand-fill);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--ember);
}

.insight-panel .dashboard-link {
  margin-top: 2px;
}

.diary-command-strip {
  display: grid;
  gap: 10px;
}

.diary-command-strip article {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.diary-command-strip span {
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diary-command-strip strong {
  font-size: 15px;
  font-weight: 800;
}

.diary-command-strip p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}

.dashboard-diary {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
}

@media (min-width: 700px) {
  .dashboard-diary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.dashboard-diary h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.dashboard-diary span {
  color: var(--sub);
  font-size: 13.5px;
}

.dashboard-diary > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--brand-fill);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.dashboard-diary > a:hover {
  background: var(--brand-fill-strong);
  box-shadow: inset 0 -2px 0 var(--ember);
}

/* ============================================================
   Quiz
   ============================================================ */

.quiz-section {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1244px;
  margin: 0 auto;
}

@media (min-width: 1020px) {
  .quiz-section {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }
}

.quiz-copy h2 {
  margin: 0 0 12px;
  font-size: var(--type-title);
  font-weight: 800;
}

.quiz-copy > p {
  margin: 0 0 20px;
  color: var(--sub);
  font-size: var(--type-lede);
}

.quiz-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-proof-list span {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.quiz-card {
  display: grid;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow-lift);
}

.quiz-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quiz-progress {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.quiz-progress span {
  display: block;
  height: 100%;
  width: 11%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--brand));
  transition: width 240ms ease;
}

[data-quiz-count] {
  color: var(--sub);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.quiz-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.quiz-step.is-active {
  display: grid;
  gap: 10px;
}

.quiz-step legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.quiz-step-note {
  margin: 0 0 8px;
  color: var(--sub);
  font-size: 14px;
}

.quiz-step > label:not(.text-field):not(.consent-field) {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.quiz-step > label:not(.text-field):not(.consent-field):hover {
  border-color: var(--brand-muted);
}

.quiz-step label.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.quiz-step label b {
  font-weight: 700;
}

.quiz-step label small {
  flex-basis: 100%;
  margin-left: 26px;
  color: var(--sub);
  font-size: 12.5px;
  font-weight: 500;
}

.quiz-step input[type="checkbox"],
.quiz-step input[type="radio"],
.consent-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
}

.selection-limit {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 12.5px;
}

.quiz-welcome-copy {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.quiz-welcome-copy img {
  width: 52px;
  height: 52px;
}

.quiz-welcome-copy h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
}

.quiz-welcome-copy p {
  margin: 0;
  color: var(--sub);
  font-size: 15px;
}

.quiz-intro-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 700px) {
  .quiz-intro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quiz-intro-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.quiz-intro-grid img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.quiz-intro-grid span {
  font-size: 13.5px;
  font-weight: 800;
}

.quiz-intro-grid p {
  margin: 0;
  color: var(--sub);
  font-size: 12.5px;
}

.activity-intro-card .activity-figure {
  display: grid;
  place-content: center;
  height: 84px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
}

.activity-figure span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px var(--brand-soft);
}

.intro-phone {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  height: 84px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 8px;
}

.intro-phone b {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.intro-phone small {
  color: var(--sub);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.intro-phone em {
  width: 70%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--brand));
}

.intro-phone strong {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-field {
  display: grid;
  gap: 6px;
  position: relative;
}

.text-field span {
  color: var(--sub);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.text-field input,
.text-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.text-field input:focus,
.text-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.text-field small {
  position: absolute;
  right: 13px;
  bottom: 14px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

.quiz-field-grid {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

@media (min-width: 620px) {
  .quiz-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quiz-field-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .quiz-field-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quiz-step[data-step-title="Timing"] .quiz-field-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.unit-toggle {
  display: inline-flex;
  gap: 6px;
  margin: 8px 0 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.unit-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
  cursor: pointer;
}

.unit-toggle label.is-selected {
  background: var(--brand-fill);
  color: #fff;
}

.unit-toggle label.is-selected input {
  accent-color: #fff;
}

.unit-panel.is-hidden,
.hidden-metric-fields {
  display: none;
}

/* --- Quiz result -------------------------------------------- */

.quiz-result-panel {
  display: grid;
  gap: 16px;
}

.quiz-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.quiz-result-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.quiz-result-head strong {
  flex: none;
  display: grid;
  justify-items: center;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}

.quiz-result-head strong small {
  color: var(--sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quiz-result-grid article {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.quiz-result-grid span {
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quiz-result-grid b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.quiz-result-grid small {
  color: var(--sub);
  font-size: 11.5px;
}

.quiz-result-command {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--midnight-deep), var(--midnight));
  color: #fff;
}

.quiz-result-command span {
  color: var(--ember-bright);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-result-command p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
}

.quiz-contact-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.access-selector > span {
  display: block;
  margin-bottom: 8px;
  color: var(--sub);
  font-size: 12.5px;
  font-weight: 700;
}

.access-selector div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.access-selector label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.access-selector label.is-selected {
  border-color: var(--brand-fill);
  background: var(--brand-fill);
  color: #fff;
}

.access-selector label.is-selected input {
  accent-color: #fff;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--sub);
  cursor: pointer;
}

.consent-field input {
  flex: none;
  margin-top: 2px;
}

.quiz-save-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.quiz-card.is-confirmed .quiz-save-status {
  color: var(--brand-dark);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.quiz-controls .primary-action {
  min-width: 150px;
}

[data-quiz-submit] {
  display: none;
}

/* ============================================================
   Built in the open: the social-proof slot, kept truthful.
   Numbers come from the repository, not a marketing deck.
   ============================================================ */

.open-proof-section {
  max-width: 1244px;
  margin: 0 auto;
}

.open-proof-panel {
  display: grid;
  gap: clamp(22px, 3vw, 32px);
}

.open-proof-head {
  max-width: 640px;
}

.open-proof-head h2 {
  margin: 0 0 12px;
  font-size: var(--type-title);
  font-weight: 800;
}

.open-proof-head p {
  margin: 0;
  color: var(--sub);
  font-size: var(--type-lede);
}

.open-proof-strip {
  display: grid;
  gap: 14px;
  margin: 0;
}

@media (min-width: 640px) {
  .open-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .open-proof-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.open-proof-strip > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.open-proof-strip dd {
  grid-row: 1;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.open-proof-strip dt {
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 600;
}

.open-proof-note {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing-section {
  max-width: 1244px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.price-card {
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.price-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.price-card > p {
  margin: 0;
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-card > strong {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-card > strong span {
  color: var(--sub);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.price-annual {
  color: var(--sub);
  font-size: 13px;
}

.price-annual strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.price-annual strong span {
  font-weight: 600;
  color: var(--sub);
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.price-card li {
  position: relative;
  padding-left: 24px;
  color: var(--sub);
  font-size: 14px;
}

.price-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
}

.price-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 6px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease;
}

.price-card > a:hover {
  border-color: var(--brand-fill);
  background: var(--brand-fill);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--ember);
}

/* Premium: the midnight card. */

.premium-card {
  background: linear-gradient(170deg, var(--midnight-deep) 0%, var(--midnight) 90%);
  border-color: var(--midnight);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.premium-card > p {
  background: rgba(224, 145, 58, 0.2);
  color: var(--ember-bright);
}

.premium-card > strong span,
.premium-card .price-annual,
.premium-card .price-annual strong span {
  color: rgba(255, 255, 255, 0.72);
}

.premium-card .price-annual strong {
  color: #fff;
}

.premium-card li {
  color: rgba(255, 255, 255, 0.82);
}

.premium-card li::before {
  color: var(--ember);
}

.premium-card > a {
  border-color: transparent;
  background: #fff;
  color: #272C57;
}

.premium-card > a:hover {
  background: #F7F5F1;
  color: #1A1E40;
  box-shadow: inset 0 -2px 0 var(--ember);
}

.command-value-card li::before {
  color: var(--gold);
}

/* ============================================================
   Download
   ============================================================ */

.download-section {
  max-width: 1244px;
  margin: 0 auto;
}

.download-panel {
  display: grid;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.6vw, 44px);
  box-shadow: var(--shadow-card);
}

.download-panel h2 {
  margin: 0;
  font-size: var(--type-title);
  font-weight: 800;
}

.download-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.download-panel > p {
  margin: 0;
  color: var(--sub);
  font-size: 16px;
  max-width: 620px;
}

.download-status-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.download-status-card span {
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.download-status-card strong {
  font-size: 16.5px;
  font-weight: 800;
}

.download-status-card p {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
}

.beta-readiness-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.beta-readiness-head span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.beta-readiness-head strong {
  font-size: 17px;
  font-weight: 800;
}

.beta-readiness-grid {
  display: grid;
  gap: 10px;
}

.beta-readiness-grid article {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.beta-readiness-grid span {
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beta-readiness-grid strong {
  font-size: 14.5px;
  font-weight: 800;
}

.beta-readiness-grid p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}

.download-waitlist-container {
  display: grid;
}

.download-waitlist-form {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--midnight-deep) 0%, var(--midnight) 92%);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.download-waitlist-form h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.download-waitlist-form > p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  max-width: 520px;
}

.waitlist-input-row {
  display: grid;
  gap: 10px;
}

@media (min-width: 620px) {
  .waitlist-input-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.waitlist-input-row input {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #161A2E;
}

.waitlist-input-row input:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(224, 145, 58, 0.3);
}

.waitlist-input-row .store-button {
  background: var(--ember);
  color: #1A1E40;
  box-shadow: none;
  font-size: 15.5px;
}

.waitlist-input-row .store-button:hover {
  background: #E89B49;
  box-shadow: none;
}

.waitlist-status {
  min-height: 1.2em;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
}

.download-waitlist-form.is-confirmed .waitlist-status {
  color: var(--ember);
}

.download-control-grid {
  display: grid;
  gap: 12px;
}

.download-control-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.download-control-grid span {
  color: var(--gold-deep);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.download-control-grid strong {
  font-size: 15.5px;
  font-weight: 800;
}

.download-control-grid p {
  margin: 0;
  color: var(--sub);
  font-size: 13.5px;
}

.download-note {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  display: grid;
  gap: 22px;
  padding: clamp(40px, 6vw, 64px) clamp(18px, 5vw, 64px);
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.78);
}

.footer-main {
  display: grid;
  gap: 8px;
  justify-items: start;
}

footer .brand {
  color: #fff;
}

.footer-main p {
  margin: 0;
  font-size: 14.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
}

/* ============================================================
   Responsive column counts
   ============================================================ */

/* Tablet: paired columns for the dense card strips. */
@media (min-width: 640px) {
  .download-control-grid,
  .beta-readiness-grid,
  .diary-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: full-width strips spread out. */
@media (min-width: 1020px) {
  .diary-command-strip,
  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .download-control-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .beta-readiness-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================================
   Trust: the honesty principles
   ============================================================ */

.trust-section {
  max-width: 1244px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ember);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.trust-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.trust-grid p {
  margin: 0;
  color: var(--sub);
  font-size: 14.5px;
}

.trust-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
}

.trust-link::after {
  content: "\2192";
}

.trust-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ============================================================
   Motion — calm, springless CSS; the reduced-motion block at the
   top of the file disables all of it.
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  /* The hero ring draws in once, then breathes like the app's
     "balance breath" (lightTheme.ts motion.breath: subtle, ~7s). */
  .ring-arc {
    animation: ring-draw 1500ms cubic-bezier(0.22, 0.7, 0.3, 1) 250ms backwards;
  }

  .hero-ring svg {
    animation: ring-breath 7200ms ease-in-out 2400ms infinite;
  }

  .hero-copy,
  .hero-product {
    animation: rise-in 700ms cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  }

  .hero-product {
    animation-delay: 140ms;
  }

  .notification-card {
    animation: rise-in 700ms cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  }

  /* The 8:15 PM nudge breathes once every few seconds — a hum, not an alarm. */
  .story-pulse {
    animation: pulse-halo 3200ms ease-in-out infinite;
  }
}

@keyframes pulse-halo {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 163, 79, 0.35);
  }

  60% {
    box-shadow: 0 0 0 11px rgba(239, 163, 79, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 163, 79, 0);
  }
}

@keyframes ring-draw {
  from {
    stroke-dashoffset: 351.86;
  }
}

@keyframes ring-breath {
  50% {
    transform: scale(1.012);
  }
}

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

/* ============================================================
   Dark mode — the app's dark twin (lightTheme.ts `D` palette).
   Midnight surfaces (scan console, premium card, footer, hero
   phone) are constant; the cream page swaps to deep midnight.
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #10131F;
    --card: #1A1E2E;
    --ink: #ECEEF6;
    --sub: #A7AEC6;
    --faint: #777E99;
    --border: rgba(236, 238, 246, 0.12);
    --brand: #9AA3E2;
    --brand-dark: #B7BEEC;
    --brand-soft: rgba(111, 121, 200, 0.16);
    --brand-muted: rgba(111, 121, 200, 0.3);
    --brand-fill: #2E345E;
    --brand-fill-strong: #3A4170;
    --ember: #EFA34F;
    --ember-soft: rgba(239, 163, 79, 0.16);
    --gold: #D9A45C;
    --gold-deep: #D9A45C;
    --gold-soft: rgba(217, 164, 92, 0.16);
    --sky: #7FA3E0;
    --danger: #E0756C;
    --track: rgba(236, 238, 246, 0.09);
    --glass: rgba(16, 19, 31, 0.88);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.55);
  }

  /* Filled CTAs keep white text on the deep indigo fill. */
  .store-button {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  }

  /* The waitlist button is ember-on-midnight; keep its ink dark. */
  .plan-action {
    color: #1A1E40;
  }

  /* App screenshots are light-mode captures; frame them quietly. */
  .screenshot-card img {
    background: #F7F5F1;
  }

  /* Hero dusk atmosphere: deeper glows on the midnight page. */
  .hero-section {
    background:
      radial-gradient(110% 72% at 84% -12%, rgba(111, 121, 200, 0.2), transparent 62%),
      radial-gradient(64% 44% at 6% 32%, rgba(239, 163, 79, 0.09), transparent 58%),
      linear-gradient(180deg, rgba(8, 10, 18, 0.5), transparent 42%);
  }

  .hero-section::before {
    opacity: 0.1;
  }

  .hero-product::before {
    background:
      radial-gradient(58% 48% at 50% 36%, rgba(111, 121, 200, 0.3), transparent 70%),
      radial-gradient(42% 34% at 58% 66%, rgba(239, 163, 79, 0.16), transparent 72%);
  }
}
