/* ─────────────────────────────────────────────────────────────────
   Nutrify.AI — Landing CSS
   Emerald & Obsidian. Newsreader display, Inter body.
   No frameworks. No purple gradients. No cookie-cutter shapes.
   ───────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --emerald:        #10B981;
  --emerald-bright: #34D399;
  --emerald-deep:   #0F5D48;
  --sage:           #7FB69A;
  --bone:           #EDE7D3;
  --cream:          #F5EFD9;

  /* Surfaces */
  --bg:        #0A0F0D;
  --bg-2:      #0D1410;
  --surface:   #141C16;
  --surface-2: #1A2420;
  --border:    #1F2E24;
  --border-2:  #18221C;

  /* Text */
  --text:      #F3F4F6;
  --text-2:    #A1A1AA;
  --text-3:    #6B7280;
  --text-inv:  #0A0F0D;

  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;

  /* Rhythm */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 999px;

  --shadow-soft:  0 4px 12px rgba(0,0,0,.25);
  --shadow-med:   0 8px 28px rgba(0,0,0,.4);
  --shadow-glow:  0 6px 30px rgba(16,185,129,.30);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px;
  background: var(--emerald); color: var(--text-inv);
  padding: 10px 14px; border-radius: var(--r-md); font-weight: 600;
}
.skip-link:focus { left: 12px; z-index: 100; }

/* ─── Layout primitives ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(72px, 10vw, 128px);
  position: relative;
}
.section--alt { background: linear-gradient(180deg, transparent, rgba(15,93,72,0.06), transparent); }

.section__head { max-width: 720px; margin: 0 0 clamp(40px, 5vw, 64px); }
.section__sub { color: var(--text-2); font-size: 17px; line-height: 1.6; margin: 14px 0 0; max-width: 56ch; }

/* ─── Type ──────────────────────────────────────────────────────── */
.display, .h1, .h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.display {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.038em;
}
.display em {
  font-style: italic;
  color: var(--bone);
  font-weight: 400;
}
/* Split-line clipping: .line is the visible row, .line__inner slides up inside it */
.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em; /* keeps descenders from clipping mid-glyph */
}
.display .line__inner {
  display: block;
  will-change: transform;
}
/* Word-split reveal (script generates .word/.word__inner). Used by
   section H2s and by bento tile titles, so they share the same line-clip
   slide-up the hero uses. */
.h2 .word,
.bento__title .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.06em;
  vertical-align: bottom;
}
.h2 .word__inner,
.bento__title .word__inner {
  display: inline-block;
  will-change: transform;
}
/* When the splitter preserves <em>, the inner element keeps its italic +
   bone color from the .h2 em rule below. */
.h2 em.word__inner,
.bento__title em.word__inner {
  font-style: italic;
  color: var(--bone);
  font-weight: 400;
}
.h2 em { font-style: italic; color: var(--bone); font-weight: 400; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }

.lede {
  margin: 24px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage);
  padding: 6px 12px;
  border: 1px solid rgba(127,182,154,0.22);
  border-radius: var(--r-full);
  background: rgba(127,182,154,0.06);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}
.eyebrow--quiet { background: transparent; border-color: rgba(127,182,154,0.18); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(52,211,153,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .7; transform: scale(1.2); }
}

/* ─── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 13, 0.65);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-color: var(--border-2);
  background: rgba(10, 15, 13, 0.85);
}
.nav__row {
  display: flex; align-items: center;
  height: 64px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600;
  margin-right: auto; /* push everything else to the right */
}
.brand__mark {
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 20px rgba(16,185,129,0.18);
}
.brand__word { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.01em; }
.brand__dot { color: var(--emerald-bright); }
.nav__links { display: none; gap: 28px; align-items: center; }
.nav__links a {
  color: var(--text-2); font-size: 15px; font-weight: 500;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--text); }
@media (min-width: 760px) {
  .nav__links { display: inline-flex; }
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--r-md); font-weight: 600; font-size: 15px;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald-bright); }
.btn--primary { background: var(--emerald); color: var(--text-inv); box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-1px); }

/* App Store button — Apple HIG black pill, custom width */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; min-width: 180px; padding: 0 18px;
  border-radius: var(--r-md);
  background: #fff; color: #0A0F0D;
  border: 1px solid transparent;
  font-family: var(--font-body);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.store-btn--apple { background: #000; color: #fff; }
.store-btn--apple:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.store-btn__inner { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-btn__small { font-size: 11px; font-weight: 400; letter-spacing: 0.02em; opacity: .85; }
.store-btn__big   { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; font-family: var(--font-display); }

.store-btn--soon {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: not-allowed;
}
.store-btn--soon .store-btn__small { color: var(--text-3); }
.store-btn--soon .store-btn__big { color: var(--text); display: inline-flex; align-items: baseline; gap: 6px; }
.store-btn--soon .store-btn__big small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero__glow--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 60%);
  top: -160px; left: -120px;
  opacity: 0.35;
}
.hero__glow--b {
  width: 680px; height: 680px;
  background: radial-gradient(circle, var(--emerald-deep) 0%, transparent 65%);
  bottom: -260px; right: -160px;
  opacity: 0.45;
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5; mix-blend-mode: overlay;
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(48px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__cta--soon { flex-direction: column; align-items: flex-start; gap: 16px; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* QR card: desktop-only "scan to download" sitting next to the store buttons */
.qr-card {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 28, 22, 0.55), rgba(20, 28, 22, 0.25));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qr-card img {
  width: 72px; height: 72px;
  display: block;
  border-radius: 6px;
  background: rgba(10, 15, 13, 0.4);
  padding: 4px;
}
.qr-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.4;
  white-space: nowrap;
}
@media (min-width: 820px) {
  .qr-card { display: inline-flex; }
}
.cta__inner .qr-card { /* center within bottom CTA strip */
  align-self: center;
}

.coming-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.30);
  color: #FBBF55;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
}
.coming-soon__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.coming-soon__sep { color: rgba(251, 191, 85, 0.45); }
.coming-soon__sub {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(251, 191, 85, 0.85);
}
.coming-soon__sub--link {
  color: #FBBF55;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 85, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.coming-soon__sub--link:hover {
  color: #FCD279;
  text-decoration-color: #FCD279;
}
@media (max-width: 480px) {
  .coming-soon { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; line-height: 1.2; white-space: normal; }
  .coming-soon__sep { display: none; }
}
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 6vw, 80px);
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding-top: 36px;
  border-top: 1px solid var(--border-2);
}
.trust li {
  display: flex; flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.trust strong,
.trust strong > span {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  display: block;
}
.trust > li > span {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.35;
  text-wrap: balance;
}
@media (max-width: 640px) {
  .trust {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 22px;
  }
  .trust li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 14px;
    row-gap: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(127,182,154,0.10);
  }
  .trust li:last-child { border-bottom: 0; padding-bottom: 0; }
  .trust strong,
  .trust strong > span {
    font-size: clamp(30px, 8.5vw, 40px);
    letter-spacing: -0.03em;
  }
  .trust > li > span {
    font-size: 11px;
    letter-spacing: 0.05em;
    align-self: baseline;
    margin-top: 0;
  }
}

/* ─── Phone mockup ──────────────────────────────────────────────── */
.hero__device {
  display: flex; flex-direction: column; align-items: center;
  perspective: 1200px;
}
/* iPhone-like bezel. Width is the only size knob — screen drives height
   from the screenshot's true aspect ratio, so nothing crops. */
.phone {
  width: clamp(260px, 27vw, 332px);
  border-radius: 48px;
  background:
    linear-gradient(160deg, #2a3530 0%, #0a0f0d 60%, #050908 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  padding: 9px; /* thin modern iPhone bezel */
  position: relative;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.6),
    0 14px 30px rgba(16, 185, 129, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: rotate3d(0, 1, 0, -8deg) rotate3d(1, 0, 0, 4deg);
  transform-origin: center;
  flex-shrink: 0;
}
/* Mobile: no GSAP scrub, so a continuous CSS float keeps the phone alive */
@media (max-width: 979px) {
  .hero__device { padding: 24px 0; }
  .phone {
    width: clamp(232px, 66vw, 308px);
    transform: translateY(0) rotate(-1deg);
    animation: phoneFloatMobile 7s ease-in-out infinite;
    margin: 0 auto;
  }
  @keyframes phoneFloatMobile {
    0%, 100% { transform: translateY(0)   rotate(-1.2deg); }
    50%      { transform: translateY(-14px) rotate(1.2deg); }
  }
}
.phone__screen {
  position: relative;
  width: 100%;
  /* Locked to the real screenshot ratio (1320×2868 — iPhone Pro display).
     Combined with object-fit: cover, every screen sits edge-to-edge with
     zero crop. */
  aspect-ratio: 1320 / 2868;
  border-radius: 38px;
  overflow: hidden;
  background: #050908;
  isolation: isolate;
  touch-action: pan-y; /* allow vertical scroll, capture horizontal swipes */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone__screen:active { cursor: grabbing; }

/* Dynamic Island — subtle realism cue at the top of the screen */
.phone__island {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Real iOS screens stacked, slide-cycled by GSAP (no scroll required) */
.phone__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  will-change: transform;
  /* Start all screens on-stage so the GPU rasterises every layer up front
     (mobile defers paint for off-viewport content). The JS warm-up then
     positions screens 2–5 off-screen right before the cycle begins. */
  transform: translate3d(0, 0, 0);
}
/* During the warm-up frame, every screen overlaps. Pin slide 0 above the
   stack so the user never sees a flash of the last image. */
.phone__img:first-of-type { z-index: 1; }

/* Prev / Next chevrons — appear on hover (desktop), always reachable by keyboard */
.phone__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(10, 15, 13, 0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 2;
}
.phone__nav--prev { left: 10px; }
.phone__nav--next { right: 10px; }
.phone__screen:hover .phone__nav,
.phone__nav:focus-visible { opacity: 1; }
.phone__nav:hover { background: rgba(16,185,129,0.6); border-color: rgba(255,255,255,0.25); }
.phone__nav:active { transform: translateY(-50%) scale(0.94); }

/* Touch devices: keep arrows discoverable but quieter */
@media (hover: none) {
  .phone__nav { opacity: 0.55; }
}

/* My Day animation overlay — progress ring fill + checkbox tick.
   Positions are percentages of the screen container (locked to 1320×2868),
   so the overlay tracks the underlying screenshot at any phone width. */
.myday-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .28s ease;
}
.myday-fx.is-active { opacity: 1; }

/* Progress ring — sits exactly over the empty 0% ring on the screenshot */
.myday-fx__ring {
  position: absolute;
  top: 15.9%;
  left: 8.1%;
  width: 20%;
  aspect-ratio: 1;
  transform: rotate(-90deg); /* start drawing from 12 o'clock, sweep clockwise */
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.55));
}
.myday-fx__ring-fill {
  fill: none;
  stroke: var(--emerald-bright);
  stroke-width: 3;
  stroke-linecap: round;
  /* pathLength=100 lets us animate dashoffset in clean 0–100 units */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.myday-fx.is-active .myday-fx__ring-fill {
  animation: ringFill 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.35s forwards;
}
@keyframes ringFill { to { stroke-dashoffset: 0; } }

/* Checkbox — sits over the empty squircle next to "Eat a fiber-rich breakfast" */
.myday-fx__check {
  position: absolute;
  top: 49.3%;
  left: 7.9%;
  width: 9.0%;
  aspect-ratio: 1;
  transform: scale(0.4);
  opacity: 0;
}
.myday-fx__check svg { width: 100%; height: 100%; display: block; }
.myday-fx__check-bg {
  fill: var(--emerald-bright);
}
.myday-fx__check-tick {
  fill: none;
  stroke: #08120E;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.myday-fx.is-active .myday-fx__check {
  animation: checkPop .55s cubic-bezier(0.34, 1.56, 0.64, 1) 1.45s forwards;
}
.myday-fx.is-active .myday-fx__check-tick {
  animation: tickDraw .45s ease-out 1.75s forwards;
}
@keyframes checkPop { to { transform: scale(1); opacity: 1; } }
@keyframes tickDraw { to { stroke-dashoffset: 0; } }

/* Dots + progress underneath the phone */
.phone__dots {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.phone__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  padding: 0;
  overflow: hidden;
  transition: width .35s cubic-bezier(0.22, 1, 0.36, 1), background .25s ease;
}
.phone__dot:hover { background: rgba(255,255,255,0.32); }
.phone__dot.is-active {
  width: 28px;
  background: rgba(255,255,255,0.18);
}
.phone__dot-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--emerald-bright), var(--emerald));
  border-radius: 999px;
  pointer-events: none;
}
.phone__dot.is-active .phone__dot-fill {
  animation: dotFill var(--slide-dwell, 5s) linear forwards;
}
.phone__dot.is-paused .phone__dot-fill {
  animation-play-state: paused;
}
@keyframes dotFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ─── Features grid ─────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--features {
  grid-template-columns: 1fr;
  perspective: 1200px; /* enables real 3D depth on card tilt */
}
@media (min-width: 720px) { .grid--features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid--features { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 28px 26px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .25s ease, box-shadow .3s ease;
  /* GSAP drives transform inline now — no CSS transition on transform */
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(16,185,129,0.10), transparent 40%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,0.12);
  color: var(--emerald-bright);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text); letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.card__body { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; }

/* ─── BENTO FEATURE GRID ────────────────────────────────────────── */
.section--bento { padding-block: clamp(80px, 10vw, 140px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__sub { margin-inline: auto; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}
.bento__tile {
  position: relative;
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.6vw, 36px);
  background:
    radial-gradient(900px circle at 100% 0%, rgba(16,185,129,0.05), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: clamp(20px, 1.8vw, 26px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  min-height: 320px;
}
.bento__tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px circle at var(--mx, 0%) var(--my, 0%), rgba(52,211,153,0.10), transparent 50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.bento__tile:hover {
  border-color: rgba(16,185,129,0.32);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.bento__tile:hover::before { opacity: 1; }
.bento__tile > * { position: relative; z-index: 1; }

@media (min-width: 760px) {
  .bento__tile--lab     { grid-column: span 7; }
  .bento__tile--photo   { grid-column: span 5; }
  .bento__tile--coach   { grid-column: span 12; }
  .bento__tile--meal    { grid-column: span 7; }
  .bento__tile--workout { grid-column: span 5; }
  .bento__tile--sleep   { grid-column: span 4; }
  .bento__tile--day     { grid-column: span 4; }
  .bento__tile--supps   { grid-column: span 4; }
  .bento__tile--journal { grid-column: span 12; }
}

.bento__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.bento__tag-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.18);
}
.bento__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 4px 0 0;
  text-wrap: balance;
}
.bento__title em { font-style: italic; color: var(--bone); font-weight: 400; }
.bento__body {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}
.bento__demo {
  margin-top: auto;
  padding-top: 12px;
}

/* ── COACH wide tile: two-column body+demo on desktop ── */
@media (min-width: 980px) {
  .bento__tile--coach {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
    gap: clamp(28px, 3vw, 56px);
    align-items: start;
  }
  .bento__tile--coach > .bento__tag,
  .bento__tile--coach > .bento__title,
  .bento__tile--coach > .bento__body { grid-column: 1; }
  .bento__tile--coach > .bento__demo { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; padding-top: 0; }
  .bento__tile--coach > .coach-actions { grid-column: 1; margin-top: 4px; }
}

/* ── JOURNAL wide tile: same two-col on desktop ── */
@media (min-width: 980px) {
  .bento__tile--journal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(28px, 3vw, 56px);
    align-items: center;
  }
  .bento__tile--journal > .bento__tag,
  .bento__tile--journal > .bento__title,
  .bento__tile--journal > .bento__body { grid-column: 1; }
  .bento__tile--journal > .bento__demo { grid-column: 2; grid-row: 1 / span 3; padding-top: 0; }
}

/* ── LAB demo: range bars ── */
.lab-demo { display: grid; gap: 14px; }
.lab-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
}
.lab-row__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-body);
}
.lab-row__name { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -0.005em; }
.lab-row__val {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: var(--text); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.lab-bar {
  position: relative;
  display: grid; grid-template-columns: 30% 40% 30%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}
.lab-bar__zone--low  { background: rgba(245, 158, 11, 0.55); }
.lab-bar__zone--ok   { background: linear-gradient(90deg, rgba(52,211,153,0.65), rgba(16,185,129,0.85)); }
.lab-bar__zone--high { background: rgba(244, 113, 116, 0.55); }
.lab-bar__marker {
  position: absolute;
  top: 50%;
  left: var(--p, 50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #F5EFD9;
  border: 2px solid #08120E;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 4px 12px rgba(0,0,0,0.4);
}
.lab-flag {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lab-flag--low  { color: #F59E0B; }
.lab-flag--ok   { color: var(--emerald-bright); }
.lab-flag--high { color: #F47174; }

/* ── PHOTO → macros demo ── */
.photo-demo { display: flex; flex-direction: column; gap: 14px; }
.photo-demo__frame {
  position: relative;
  height: 130px;
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 30% 30%, #1f3329 0%, #0f1c16 60%, #08120e 100%);
  overflow: hidden;
  isolation: isolate;
}
.photo-demo__corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--emerald-bright);
  border-style: solid;
}
.photo-demo__corner--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.photo-demo__corner--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.photo-demo__corner--bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.photo-demo__corner--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }
.photo-demo__plate {
  position: absolute;
  inset: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  align-content: center; justify-content: center;
  padding: 30px;
}
.photo-demo__chip {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 239, 217, 0.92);
  color: #08120E;
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateY(6px);
  animation: chipIn 0.5s ease-out forwards;
}
.photo-demo__chip--1 { animation-delay: 0.4s; }
.photo-demo__chip--2 { animation-delay: 0.7s; }
.photo-demo__chip--3 { animation-delay: 1.0s; }
@keyframes chipIn { to { opacity: 1; transform: translateY(0); } }
.photo-demo__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-bright), transparent);
  filter: drop-shadow(0 0 6px rgba(52,211,153,0.8));
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 6%; opacity: 0.2; }
  50%      { top: 92%; opacity: 1; }
}
.photo-demo__macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  background: rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
}
.photo-demo__macros li {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px;
}
.photo-demo__macros b {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.photo-demo__macros small { font-size: 0.55em; font-weight: 500; opacity: 0.7; margin-left: 1px; }
.photo-demo__macros span {
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
}

/* ── COACH demo: chat + action card ── */
.coach-demo {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  background: rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  min-height: 220px;
  justify-content: center;
}
.coach-msg { display: flex; }
.coach-msg--user { justify-content: flex-end; }
.coach-msg--ai { flex-direction: column; gap: 10px; align-items: flex-start; max-width: 100%; }
.coach-msg__bubble {
  display: inline-block;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 88%;
}
.coach-msg--user .coach-msg__bubble {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: #06120D;
  border-bottom-right-radius: 6px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(16,185,129,0.22);
}
.coach-msg--ai .coach-msg__bubble {
  background: rgba(245, 239, 217, 0.06);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.coach-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  width: 100%;
  background: linear-gradient(180deg, rgba(245,239,217,0.04), rgba(245,239,217,0.01));
  border: 1px solid rgba(127,182,154,0.25);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.3);
}
.coach-card__line { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.coach-card__title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500; color: var(--text);
  letter-spacing: -0.01em;
}
.coach-card__macros {
  font-size: 12px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.coach-card__macros em { font-style: normal; color: var(--text); font-weight: 600; }
.coach-card__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  background: var(--emerald-bright); color: #06120D;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: -0.005em;
  pointer-events: none;
  white-space: nowrap;
}

.coach-actions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(127,182,154,0.18);
}
.coach-actions li {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.01em;
  padding: 5px 10px;
  background: rgba(127,182,154,0.08);
  border: 1px solid rgba(127,182,154,0.18);
  border-radius: 999px;
  color: var(--sage);
}
.coach-actions li::before {
  content: '↳ ';
  color: var(--emerald-bright);
  margin-right: 2px;
  font-weight: 700;
}

/* ── MEAL plan + grocery demo ── */
.meal-demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 540px) {
  .meal-demo { grid-template-columns: 1fr 1fr; }
}
.meal-demo__col {
  padding: 14px;
  background: rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.meal-demo__h {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
}
.meal-demo__meal {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text);
  padding: 6px 0;
  border-top: 1px solid rgba(127,182,154,0.10);
}
.meal-demo__meal:nth-child(2) { border-top: 0; }
.meal-demo__meal b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  background: rgba(127,182,154,0.12);
  color: var(--sage);
  border-radius: 5px;
  flex-shrink: 0;
}

.grocery-list { display: flex; flex-direction: column; gap: 4px; }
.grocery-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.grocery-list li i {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1.5px solid rgba(127,182,154,0.4);
  background: transparent;
  position: relative;
}
.grocery-list li.is-checked {
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(127,182,154,0.4);
}
.grocery-list li.is-checked i {
  background: var(--emerald-bright);
  border-color: var(--emerald-bright);
}
.grocery-list li.is-checked i::after {
  content: '';
  position: absolute;
  left: 3px; top: 1px;
  width: 4px; height: 8px;
  border-right: 2px solid #06120D;
  border-bottom: 2px solid #06120D;
  transform: rotate(45deg);
}

/* ── WORKOUT demo ── */
.workout-demo {
  padding: 14px 16px;
  background: rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.workout-demo__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(127,182,154,0.12);
}
.workout-demo__title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
}
.workout-demo__timer {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
  color: var(--emerald-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 14px;
}
.workout-demo__timer::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px rgba(52,211,153,0.7);
  animation: pulse 1.4s ease-in-out infinite;
}
.workout-demo__sets { display: flex; flex-direction: column; gap: 2px; }
.workout-demo__sets li {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-2);
}
.workout-demo__sets li i {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(127,182,154,0.4);
  position: relative;
}
.workout-demo__sets li em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.workout-demo__sets .is-done { color: var(--text-3); }
.workout-demo__sets .is-done i { background: var(--emerald-bright); border-color: var(--emerald-bright); }
.workout-demo__sets .is-done i::after {
  content: ''; position: absolute;
  left: 3px; top: 1px;
  width: 4px; height: 7px;
  border-right: 2px solid #06120D;
  border-bottom: 2px solid #06120D;
  transform: rotate(45deg);
}
.workout-demo__sets .is-active i {
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(52,211,153,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
.workout-demo__sets .is-active { color: var(--text); }

/* ── SLEEP demo ── */
.sleep-demo { display: flex; flex-direction: column; gap: 14px; }
.sleep-bars {
  display: grid; grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 100px;
  padding: 12px;
  background: rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
}
.sleep-bars span {
  height: var(--h, 50%);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--emerald-bright) 0%, var(--emerald-deep) 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
  transform-origin: bottom;
  animation: barRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.sleep-bars span:nth-child(1) { animation-delay: 0.05s; }
.sleep-bars span:nth-child(2) { animation-delay: 0.10s; }
.sleep-bars span:nth-child(3) { animation-delay: 0.15s; }
.sleep-bars span:nth-child(4) { animation-delay: 0.20s; }
.sleep-bars span:nth-child(5) { animation-delay: 0.25s; }
.sleep-bars span:nth-child(6) { animation-delay: 0.30s; }
.sleep-bars span:nth-child(7) { animation-delay: 0.35s; }
@keyframes barRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.sleep-demo__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.sleep-demo__avg { display: flex; flex-direction: column; gap: 2px; }
.sleep-demo__avg b {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.sleep-demo__avg small {
  font-size: 11px; font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.sleep-demo__delta {
  font-size: 12px; font-weight: 600;
  color: var(--emerald-bright);
  padding: 4px 10px;
  background: rgba(52,211,153,0.12);
  border-radius: 999px;
  border: 1px solid rgba(52,211,153,0.22);
}

/* ── MY DAY demo ── */
.day-demo {
  display: flex; align-items: center; gap: 18px;
  padding: 14px;
  background: rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
}
.day-demo__ring {
  position: relative;
  width: 88px; height: 88px;
  flex-shrink: 0;
}
.day-demo__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.day-demo__ring-bg {
  fill: none;
  stroke: rgba(127,182,154,0.14);
  stroke-width: 6;
}
.day-demo__ring-fill {
  fill: none;
  stroke: var(--emerald-bright);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 28;
  filter: drop-shadow(0 0 6px rgba(52,211,153,0.5));
  animation: ringDraw 1.4s cubic-bezier(0.65, 0, 0.35, 1) backwards;
  animation-delay: 0.3s;
}
@keyframes ringDraw { from { stroke-dashoffset: 100; } }
.day-demo__pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.day-demo__pct b {
  font-size: 24px; font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-right: 1px;
}
.day-demo__actions {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; min-width: 0;
}
.day-demo__actions li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text);
}
.day-demo__actions li i {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1.5px solid rgba(127,182,154,0.4);
  position: relative;
}
.day-demo__actions .is-done { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(127,182,154,0.3); }
.day-demo__actions .is-done i { background: var(--emerald-bright); border-color: var(--emerald-bright); }
.day-demo__actions .is-done i::after {
  content: ''; position: absolute;
  left: 3px; top: 1px;
  width: 4px; height: 7px;
  border-right: 2px solid #06120D;
  border-bottom: 2px solid #06120D;
  transform: rotate(45deg);
}

/* ── SUPPLEMENTS demo ── */
.supps-list {
  display: flex; flex-direction: column;
  background: rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
}
.supps-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(127,182,154,0.08);
}
.supps-list li:last-child { border-bottom: 0; }
.supps-list__pill {
  width: 28px; height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F5EFD9 0% 50%, #E0B36F 50% 100%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.3);
}
.supps-list__pill--b { background: linear-gradient(90deg, #FF8A7A 0% 50%, #C0533F 50% 100%); }
.supps-list__pill--c { background: linear-gradient(90deg, #C8DCEF 0% 50%, #6F8FAE 50% 100%); }
.supps-list__name {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  color: var(--text);
}
.supps-list__why {
  grid-column: 2;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--emerald-bright);
}

/* ── JOURNAL demo ── */
.journal-demo { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 540px) {
  .journal-demo { grid-template-columns: 1fr 1fr; align-items: start; }
}
.journal-note {
  padding: 16px 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(127,182,154,0.08) 27px 28px),
    rgba(13, 20, 16, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  border-left: 3px solid var(--emerald-bright);
  display: flex; flex-direction: column; gap: 8px;
}
.journal-note__head {
  display: flex; justify-content: space-between; align-items: center;
}
.journal-note__date {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
}
.journal-note__tag {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(127,182,154,0.10);
  border: 1px solid rgba(127,182,154,0.22);
}
.journal-note__body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: var(--bone);
}
.journal-memory {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(13, 20, 16, 0.4);
  border: 1px dashed rgba(127,182,154,0.28);
}
.journal-memory__h {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}
.journal-chip {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 500;
  padding: 7px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(52,211,153,0.10), rgba(52,211,153,0.04));
  border: 1px solid rgba(52,211,153,0.22);
  color: var(--text);
  letter-spacing: -0.005em;
  width: max-content;
  max-width: 100%;
}

/* ─── DIFFERENTIATOR: lab-grounded engine ───────────────────────── */
.section--engine {
  padding-block: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(800px circle at 50% -20%, rgba(16,185,129,0.08), transparent 60%);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.section--engine .h2 em { display: inline-block; }
.rules {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
  padding-block: 8px 32px;
}
.rule {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.rule::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--emerald-bright), var(--emerald-deep));
}
.rule__from {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text-3);
  letter-spacing: -0.01em;
}
.rule__cond {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(244, 113, 116, 0.10);
  border: 1px solid rgba(244, 113, 116, 0.28);
  color: #FCA5A8;
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rule__cond em {
  font-style: normal;
  font-weight: 700;
  color: #F47174;
}
.rule__arrow { color: var(--sage); flex-shrink: 0; opacity: 0.7; }
.rule__then {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: balance;
}
.rule__then strong {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
}
@media (max-width: 640px) {
  .rule {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 18px 18px 22px;
  }
  .rule__arrow { display: none; }
  .rule__cond { width: max-content; }
}

.engine__foot {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--bone);
  letter-spacing: -0.005em;
}

/* ─── Steps ─────────────────────────────────────────────────────── */
.steps {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: var(--r-2xl);
  padding: 32px 28px;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127,182,154,0.45);
  display: block; line-height: 1; margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; color: var(--text); margin: 0 0 8px; letter-spacing: -0.015em;
}
.step p { color: var(--text-2); margin: 0; font-size: 15px; line-height: 1.55; }

/* ─── CTA ─────────────────────────────────────────────────────── */
.cta { padding-block: clamp(80px, 10vw, 120px); }
.cta__inner {
  background:
    radial-gradient(800px circle at 100% 0%, rgba(16,185,129,0.18), transparent 50%),
    radial-gradient(600px circle at 0% 100%, rgba(15,93,72,0.30), transparent 50%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(48px, 6vw, 72px);
  text-align: center;
}
.cta__title { max-width: 18ch; margin: 0 auto; }
.cta__sub { color: var(--text-2); margin: 16px auto 32px; max-width: 50ch; }
.cta .hero__cta { justify-content: center; margin-top: 0; }
.cta .hero__cta--soon { align-items: center; }
.cta .hero__cta-row { justify-content: center; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 800px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  transition: border-color .2s ease, background .2s ease;
}
.faq details[open] { border-color: rgba(16,185,129,0.4); background: var(--bg-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500; color: var(--text);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 22px; font-weight: 300;
  color: var(--sage);
  transition: transform .2s ease;
  margin-left: 12px;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); margin: 14px 0 0; font-size: 15px; line-height: 1.6; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-2);
  padding-block: 48px 36px;
  background: var(--bg-2);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer__top {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
}
.footer__brand img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16,185,129,0.15);
}
.footer__links { display: inline-flex; gap: 24px; }
.footer__links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--border-2);
}
.footer__copy,
.footer__credit {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
  letter-spacing: 0.005em;
}
.footer__credit a {
  color: var(--sage);
  font-weight: 500;
  position: relative;
  transition: color .2s ease;
}
.footer__credit a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--emerald-bright), transparent);
  opacity: 0.5;
  transform-origin: left;
  transform: scaleX(0.6);
  transition: transform .25s ease, opacity .25s ease;
}
.footer__credit a:hover { color: var(--emerald-bright); }
.footer__credit a:hover::after { transform: scaleX(1); opacity: 1; }
@media (max-width: 560px) {
  .footer__top { gap: 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ─── Reveal animations (intersection-driven) ───────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(0.22, 1, 0.36, 1), transform .8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Hero tagline ───────────────────────────────────────────────── */
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

/* ─── CTA waitlist button ────────────────────────────────────────── */
.cta__waitlist-btn {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
  box-shadow: 0 0 0 1px rgba(52,211,153,0.3), var(--shadow-glow);
}
.cta__waitlist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(52,211,153,0.5), 0 12px 36px rgba(16,185,129,0.4);
}

/* ─── Store buttons: now clickable (links to waitlist) ───────────── */
.store-btn--soon {
  cursor: pointer;
}
.store-btn--soon:hover {
  border-color: rgba(52,211,153,0.45);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

/* ─── Waitlist section ───────────────────────────────────────────── */
.section--waitlist {
  padding-block: clamp(80px, 10vw, 120px);
  background:
    radial-gradient(700px circle at 50% 50%, rgba(16,185,129,0.06), transparent 60%),
    linear-gradient(180deg, transparent, rgba(15,93,72,0.05), transparent);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.waitlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 60px);
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 820px) {
  .waitlist {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.waitlist__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.waitlist__head .eyebrow { align-self: flex-start; }
.waitlist__head .h2 { margin: 0; }
.waitlist__sub {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 38ch;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.waitlist__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.waitlist__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.waitlist__field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.waitlist__field input {
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
  -webkit-appearance: none;
}
.waitlist__field input::placeholder { color: var(--text-3); }
.waitlist__field input:focus {
  border-color: var(--emerald);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.waitlist__field input.is-error {
  border-color: #F47174;
  box-shadow: 0 0 0 3px rgba(244,113,116,0.15);
}

.waitlist__submit {
  height: 52px;
  width: 100%;
  font-size: 15px;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.waitlist__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.waitlist__submit-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(6,18,13,0.3);
  border-top-color: #06120D;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
}
.waitlist__submit.is-loading .waitlist__submit-spinner { display: block; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.waitlist__legal {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.waitlist__success {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 40px 24px;
  background:
    radial-gradient(300px circle at 50% 40%, rgba(52,211,153,0.10), transparent 70%),
    var(--surface);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: var(--r-2xl);
}
.waitlist__success h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0;
}
.waitlist__success p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}
.waitlist__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  color: var(--emerald-bright);
  border: 1px solid rgba(52,211,153,0.3);
}
.waitlist__success[hidden] { display: none; }

/* ─── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .phone { animation: none; }
  .phone__dot.is-active .phone__dot-fill { animation: none; width: 100%; }
  .myday-fx.is-active .myday-fx__ring-fill { animation: none; stroke-dashoffset: 0; }
  .myday-fx.is-active .myday-fx__check { animation: none; transform: scale(1); opacity: 1; }
  .myday-fx.is-active .myday-fx__check-tick { animation: none; stroke-dashoffset: 0; }
  .ring__progress { animation: none; stroke-dashoffset: 78; }
}
