/* Lightpace landing site. Direction B · Calm & airy.
   Motion rules: only transform and opacity animate; anything hidden before it is revealed is scoped
   under .js (added by /js/motion.js), so the page is complete without JavaScript; reduced motion
   switches every animation and transition off (see the end of this file). */

:root {
  --cream: #F8F6F0;
  --mint: #E4FAEE;
  --mint-2: #A8EBC6;
  --mint-3: #7FD9A8;
  --ink: #0C4433;
  --ink-2: rgba(12, 68, 51, 0.78);
  --ink-3: rgba(12, 68, 51, 0.72); /* >= 4.5:1 on cream, mint and white */
  --line: rgba(12, 68, 51, 0.1);
  --green: #1B7F5C;
  --sun: #FFC93C;
  --blue: #3D8FE0;
  --coral: #FF7A59;
  --purple: #7C5CE0;
  --orange: #F5A524;
  --card: #FFFFFF;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(72px, 10vw, 128px);
  --radius: 32px;
  --shadow-soft: 0 30px 60px -30px rgba(12, 68, 51, 0.22), 0 8px 20px -12px rgba(12, 68, 51, 0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--green); text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 900; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 3px solid rgba(27, 127, 92, 0.45); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 40px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 10; }
.home .site-header { position: absolute; top: 0; left: 0; right: 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; }
.brand-leaf { width: 40px; height: 40px; }
.brand-name { font-weight: 900; font-size: 1.3125rem; letter-spacing: -0.02em; }

.header-nav { display: flex; align-items: center; gap: var(--s5); }
.nav-link { color: var(--ink-2); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.nav-link:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-weight: 800; font-size: 0.9375rem; text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-link { display: none; }
}

/* ---------- Shared type ---------- */

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--green)); }
.kicker-sun { --accent: var(--sun); }
.kicker-green { --accent: var(--mint-3); }
.kicker-coral { --accent: var(--coral); }
.kicker-blue { --accent: var(--blue); }
.kicker-purple { --accent: var(--purple); }

.lede { font-size: clamp(1.1875rem, 2vw, 1.4375rem); font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.muted { color: var(--ink-3); }
.muted-sm { color: var(--ink-3); font-size: 0.875rem; font-weight: 600; }

/* ---------- Phone frame ---------- */

.phone {
  --pw: 280px;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.15);
  background: #10130F;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 50px 80px -30px rgba(12, 68, 51, 0.38),
    0 18px 30px -18px rgba(12, 68, 51, 0.3);
}
.phone img { width: 100%; border-radius: calc(var(--pw) * 0.125); background: var(--cream); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float { animation: float 7s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(120px, 15vw, 168px);
  text-align: center;
  background:
    radial-gradient(110% 80% at 85% 0%, var(--mint) 0%, rgba(228, 250, 238, 0) 62%),
    radial-gradient(70% 60% at 0% 40%, rgba(228, 250, 238, 0.7) 0%, rgba(228, 250, 238, 0) 70%),
    var(--cream);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(248, 246, 240, 0), var(--cream) 85%);
}
.hero-copy { position: relative; z-index: 4; }
.hero h1 { margin-top: var(--s4); font-size: clamp(3rem, 9vw, 6.75rem); letter-spacing: -0.045em; line-height: 0.96; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { max-width: 30ch; margin: var(--s5) auto 0; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }
.badge { display: inline-block; border-radius: 999px; transition: transform 0.3s var(--ease); }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 56px; width: auto; }

.hero-phones {
  --pw: clamp(168px, 25vw, 300px);
  position: relative;
  z-index: 2;
  height: calc(var(--pw) * 1.72);
  margin-top: clamp(48px, 7vw, 80px);
}
.slot { position: absolute; top: 0; left: 50%; width: var(--pw); margin-left: calc(var(--pw) / -2); }
.slot .phone { --pw: inherit; }
.slot-centre { z-index: 2; }
.slot-left { z-index: 1; transform: translate(-80%, 10%) rotate(-8deg) scale(0.88); }
.slot-right { z-index: 1; transform: translate(80%, 10%) rotate(8deg) scale(0.88); }

.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.blob-mint {
  width: 560px; height: 560px; left: -180px; top: 34%;
  background: radial-gradient(circle, rgba(127, 217, 168, 0.55) 0%, rgba(127, 217, 168, 0) 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.blob-sun {
  width: 480px; height: 480px; right: -160px; top: 4%;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.42) 0%, rgba(255, 201, 60, 0) 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(90px, -60px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-80px, 70px) scale(0.9); } }

/* Hero entrance: copy rises in line by line, then the phones fan out from the centre. */
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(80px); } }
@keyframes fan-left { from { opacity: 0; transform: translate(48%, 60px) rotate(8deg); } }
@keyframes fan-right { from { opacity: 0; transform: translate(-48%, 60px) rotate(-8deg); } }
.js .hero-in { animation: rise-in 0.9s var(--ease) both; animation-delay: calc(0.1s + var(--i, 0) * 80ms); }
.js .slot-centre .rise { animation: phone-in 1.2s var(--ease) 0.4s both; }
.js .slot-left .rise { animation: fan-left 1.3s var(--ease) 0.62s both; }
.js .slot-right .rise { animation: fan-right 1.3s var(--ease) 0.7s both; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Capability animations wait for their stage to be revealed, then play once. */
.js [data-reveal]:not(.is-visible) *,
.js [data-reveal]:not(.is-visible) *::before,
.js [data-reveal]:not(.is-visible) *::after { animation-play-state: paused !important; }

/* ---------- Capabilities ---------- */

.feature { padding-block: calc(var(--section) * 0.75); }
.feature:first-child { padding-top: var(--section); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.feature-flip .feature-copy { order: 2; }
.feature-copy { max-width: 460px; }
.feature-copy h2 { margin: var(--s4) 0 var(--s5); font-size: clamp(2.125rem, 4.4vw, 3.5rem); }
.feature-copy p { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); }
.feature-copy p + p { margin-top: var(--s4); }
.feature-copy .muted { color: var(--ink-3); }

.stage {
  --tint: rgba(127, 217, 168, 0.32);
  --tint-2: rgba(228, 250, 238, 0.9);
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(420px, 44vw, 560px);
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid rgba(12, 68, 51, 0.06);
  background:
    radial-gradient(90% 80% at 15% 0%, var(--tint) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(70% 70% at 100% 100%, var(--tint-2) 0%, rgba(255, 255, 255, 0) 70%),
    var(--card);
  box-shadow: var(--shadow-soft);
}
.stage-sun { --tint: rgba(255, 201, 60, 0.3); --tint-2: rgba(255, 122, 89, 0.1); }
.stage-mint { --tint: rgba(127, 217, 168, 0.36); --tint-2: rgba(228, 250, 238, 0.95); }
.stage-coral { --tint: rgba(255, 122, 89, 0.18); --tint-2: rgba(255, 201, 60, 0.16); }
.stage-blue { --tint: rgba(61, 143, 224, 0.2); --tint-2: rgba(127, 217, 168, 0.2); }
.stage-purple { --tint: rgba(124, 92, 224, 0.16); --tint-2: rgba(61, 143, 224, 0.12); }

.phone-stage { --pw: clamp(210px, 22vw, 268px); position: absolute; top: 11%; left: 50%; margin-left: calc(var(--pw) / -2); }

.card { background: var(--card); border-radius: 28px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-soft); }
.card-title { font-weight: 800; font-size: 1.0625rem; color: var(--ink); }

.chip {
  position: absolute; display: flex; align-items: center; gap: var(--s3);
  padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft); font-size: 0.9375rem; line-height: 1.35; text-align: left;
}
.chip small { color: var(--ink-3); font-weight: 700; font-size: 0.8125rem; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-sun { background: var(--sun); }
.chip-result { left: 6%; bottom: 12%; z-index: 2; }

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.86); }
  60% { opacity: 1; transform: translateY(0) scale(1.04); }
  to { opacity: 1; transform: none; }
}

/* 1. Scan line sweeps the meal photo once, then the estimate pops in. */
.scan { display: none; }
.js .scan {
  display: block; position: absolute; left: 4.5%; right: 4.5%; top: 17.5%; height: 22.5%;
  overflow: hidden; border-radius: 4px; pointer-events: none;
}
.js .scan-beam {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255, 201, 60, 0) 55%, rgba(255, 201, 60, 0.35) 92%, #FFE08A 98%, #FFC93C 100%);
  animation: scan 1.8s var(--ease-io) 0.5s both;
}
@keyframes scan {
  0% { opacity: 1; transform: translateY(-100%); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}
.js .chip-result { animation: pop 0.8s var(--ease) 2.1s both; }

/* 2. Calorie ring fills: two clipped half-arcs rotate into view (transform only). */
.card-budget { width: min(360px, 86%); text-align: center; }
.ring { width: min(220px, 100%); margin: 0 auto; }
.ring-track { fill: none; stroke: rgba(27, 127, 92, 0.12); stroke-width: 18; }
.ring-arc { fill: none; stroke: var(--green); stroke-width: 18; transform-box: view-box; transform-origin: 50% 50%; }
.arc-a { transform: rotate(180deg); }
.arc-b { transform: rotate(57.6deg); } /* 66% used: 1210 food of 1697 + 135 */
/* The finished ring as one path, so the two halves never show a seam where they meet. */
.ring-done { transform: none; }
.ring-big { font-family: var(--font); font-size: 50px; font-weight: 900; letter-spacing: -0.03em; fill: var(--ink); }
.ring-small { font-family: var(--font); font-size: 16px; font-weight: 700; fill: var(--ink-3); }
@keyframes half-turn { from { transform: rotate(0deg); } }
.js .arc-a { animation: half-turn 0.75s cubic-bezier(0.45, 0, 0.85, 0.5) 0.45s both; }
.js .arc-b { animation: half-turn 0.65s var(--ease) 1.2s both; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.js .ring-done { animation: appear 0.2s linear 1.85s both; }

.budget-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: var(--s5) 0 0; }
.budget-stats div { display: flex; flex-direction: column-reverse; }
.budget-stats dt { font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); }
.budget-stats dd { margin: 0; font-size: 1.375rem; font-weight: 900; letter-spacing: -0.02em; }
.give-back dd { color: var(--orange); }
.js .give-back { animation: pop 0.7s var(--ease) 1.8s both; }

/* 3. Health score badge pops in beside the meals list. */
.score-badge {
  position: absolute; right: 7%; top: 18%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 116px; height: 116px; border-radius: 34px;
  background: #DDF5E7; color: var(--green); box-shadow: var(--shadow-soft);
}
.score-num { font-size: 2.75rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.score-label { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.js .score-badge { animation: pop 0.8s var(--ease) 0.7s both; }

/* 4. Trend: weigh-in dots settle, then the 7-day line draws across (a transform wipe). */
.card-trend { position: relative; z-index: 2; justify-self: start; width: min(380px, 76%); margin-left: 7%; }
.phone-behind { --pw: 230px; top: 14%; left: auto; right: -12%; margin-left: 0; z-index: 1; opacity: 0.92; }
.trend-chart { position: relative; margin-top: var(--s4); }
.trend-chart svg { width: 100%; height: auto; overflow: visible; }
.goal-line { stroke: rgba(27, 127, 92, 0.45); stroke-width: 1.5; stroke-dasharray: 5 5; }
.goal-text { font-family: var(--font); font-size: 11px; font-weight: 700; fill: var(--ink-3); }
.dots circle { fill: var(--orange); transform-box: fill-box; transform-origin: center; }
.wipe { position: absolute; inset: 0; overflow: hidden; }
.wipe-in, .wipe-in svg { width: 100%; height: 100%; }
.trend-line path { fill: none; stroke: var(--green); stroke-width: 4.5; stroke-linecap: round; }
.legend { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4); font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); }
.legend span { width: 9px; height: 9px; border-radius: 50%; }
.legend span + span, .legend .dot-green { margin-left: var(--s2); }
.dot-orange { background: var(--orange); }
.dot-green { background: var(--green); }
@keyframes dot-in { from { opacity: 0; transform: scale(0.3); } }
@keyframes wipe-out { from { transform: translateX(-100%); } }
@keyframes wipe-back { from { transform: translateX(100%); } }
.js .dots circle { animation: dot-in 0.5s var(--ease) both; animation-delay: calc(0.35s + var(--n) * 55ms); }
.js .wipe { animation: wipe-out 1.5s var(--ease-io) 1s both; }
.js .wipe-in { animation: wipe-back 1.5s var(--ease-io) 1s both; }

/* 5. Coach bubbles appear one by one. */
.chat { display: flex; flex-direction: column; gap: var(--s3); width: min(420px, 88%); }
.bubble { max-width: 84%; padding: 14px 18px; border-radius: 22px; font-size: 1rem; line-height: 1.45; }
.bubble strong { display: block; font-size: 1.0625rem; margin-bottom: 2px; }
.bubble-me { align-self: flex-end; background: var(--green); color: #FFFFFF; border-bottom-right-radius: 6px; transform-origin: 100% 100%; font-weight: 600; }
.bubble-coach { align-self: flex-start; background: var(--card); color: var(--ink); border-bottom-left-radius: 6px; box-shadow: var(--shadow-soft); transform-origin: 0 100%; }
.chat-note { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin-top: var(--s2); font-size: 0.8125rem; font-weight: 800; color: var(--purple); }
.chat-note svg { flex: none; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(14px) scale(0.94); } }
.js .chat > * { animation: bubble-in 0.7s var(--ease) both; animation-delay: calc(0.4s + var(--n) * 0.65s); }

/* 6. The carafe fills with water. */
.card-water { display: flex; align-items: center; gap: clamp(20px, 4vw, 36px); width: min(420px, 88%); }
.carafe { width: clamp(96px, 12vw, 128px); flex: none; }
.carafe-glass { fill: #EEF5FD; }
.water-body { fill: var(--blue); }
.water-top { fill: #7DB6EE; }
.carafe-outline { fill: none; stroke: #B7D5F3; stroke-width: 3; }
.carafe-cap { fill: #B7D5F3; }
.water-copy { flex: 1; min-width: 0; }
.water-amount { margin-top: 2px; color: var(--ink-3); font-weight: 700; }
.water-amount strong { color: var(--ink); font-size: 2.75rem; font-weight: 900; letter-spacing: -0.03em; margin-right: 4px; }
.water-pill { display: flex; justify-content: space-between; margin-top: var(--s2); padding: 10px 14px; border-radius: 14px; background: #DFECFB; color: #1F5FA8; font-weight: 800; font-size: 0.9375rem; }
.water-pill:first-of-type { margin-top: var(--s4); }
@keyframes fill-up { from { transform: translateY(110px); } }
.js .water { animation: fill-up 2s var(--ease) 0.5s both; }

/* 7. A reminder slides onto a lock screen. */
.stage-lock { background: linear-gradient(165deg, #FFF1C7 0%, #FFE1D4 48%, #DCEBFB 100%); }
.lock { display: flex; flex-direction: column; align-items: center; width: min(400px, 88%); }
.lock-time { font-size: clamp(4rem, 8vw, 5.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: rgba(12, 68, 51, 0.82); }
.notif {
  display: flex; gap: var(--s3); align-items: flex-start; width: 100%; margin-top: var(--s6);
  padding: 14px 16px; border-radius: 22px; text-align: left;
  background: rgba(255, 255, 255, 0.82); box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 0.9375rem; line-height: 1.4;
}
.notif-icon { flex: none; width: 36px; height: 36px; padding: 4px; border-radius: 10px; background: var(--ink); }
.notif-head { display: flex; justify-content: space-between; color: var(--ink); }
.notif-head span { color: var(--ink-3); font-size: 0.8125rem; font-weight: 700; }
.nudges { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: var(--s2); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.nudges li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-size: 0.8125rem; font-weight: 800; color: var(--ink-3); }
.nudges li.on { background: var(--ink); color: var(--cream); }
@keyframes slide-down { from { opacity: 0; transform: translateY(-28px) scale(0.97); } }
.js .notif { animation: slide-down 0.9s var(--ease) 0.6s both; }

/* 8. Offline, then synced: the status dot settles from grey to green. */
.card-sync { width: min(400px, 88%); }
.sync-row { display: grid; justify-items: start; }
.sync-state {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: var(--s2);
  padding: 8px 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 800;
}
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.state-offline { background: #EEF0EE; color: #5E6E68; opacity: 0; }
.state-synced { background: #DDF5E7; color: var(--green); transform-origin: 0 50%; }
.sync-list { margin: var(--s4) 0 0; padding: 0; list-style: none; }
.sync-list li { display: flex; justify-content: space-between; gap: var(--s3); padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 0.9375rem; }
.sync-list li span:last-child { color: var(--ink-3); white-space: nowrap; }
.sync-with { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); }
.sync-with span { padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--green); font-weight: 800; }
@keyframes state-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes state-in { from { opacity: 0; transform: scale(0.9); } }
@keyframes blink { 50% { opacity: 0.25; } }
.js .state-offline { animation: state-out 0.5s ease 1.9s both; }
.js .state-offline .sync-dot { animation: blink 0.8s ease-in-out 0.4s 2; }
.js .state-synced { animation: state-in 0.6s var(--ease) 2s both; }

/* ---------- Safe by design ---------- */

.safety {
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--cream) 0%, var(--mint) 22%, var(--mint) 78%, var(--cream) 100%);
}
.section-head { max-width: 640px; margin: 0 auto var(--s8); text-align: center; }
.section-head h2 { margin: var(--s4) 0 var(--s4); font-size: clamp(2.25rem, 5vw, 3.75rem); }
.section-head p { font-size: 1.1875rem; color: var(--ink-2); }

.safety-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.safety-grid li { padding: var(--s6) var(--s5); border-radius: 28px; background: rgba(255, 255, 255, 0.78); box-shadow: 0 20px 40px -30px rgba(12, 68, 51, 0.3); }
.safety-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--mint-2); color: var(--ink); font-weight: 900; font-size: 1.0625rem; letter-spacing: -0.02em;
}
.safety-grid h3 { margin: var(--s5) 0 var(--s2); font-size: 1.25rem; letter-spacing: -0.02em; }
.safety-grid p { color: var(--ink-2); font-size: 1rem; }
.medical-note { max-width: 620px; margin: var(--s7) auto 0; text-align: center; font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); }

/* ---------- Feedback ---------- */

.feedback { padding-block: var(--section); }
.feedback-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.feedback-copy { position: sticky; top: var(--s8); max-width: 420px; }
.feedback-copy h2 { margin: var(--s4) 0 var(--s5); font-size: clamp(2.125rem, 4.4vw, 3.5rem); }
.feedback-copy p { font-size: 1.1875rem; color: var(--ink-2); }

.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-soft); border: 1px solid rgba(12, 68, 51, 0.06); }
.field { margin: 0 0 var(--s5); }
.field > label, .rating legend { display: block; margin-bottom: var(--s2); font-weight: 800; font-size: 0.9375rem; color: var(--ink); }
.optional { margin-left: 6px; font-weight: 600; font-size: 0.8125rem; color: var(--ink-3); }
textarea, input[type="email"], input[type="text"] {
  display: block; width: 100%; padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid rgba(12, 68, 51, 0.14); background: #FBFAF6; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.5;
}
textarea { resize: vertical; min-height: 140px; }
textarea::placeholder, input::placeholder { color: rgba(12, 68, 51, 0.6); }
textarea:focus-visible, input:focus-visible { outline: 3px solid rgba(27, 127, 92, 0.3); outline-offset: 0; border-color: var(--green); background: #FFFFFF; }

.rating { border: 0; padding: 0; min-width: 0; }
.rating legend { padding: 0; }
.stars { display: flex; gap: 2px; }
.stars label { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.stars svg { width: 30px; height: 30px; fill: #EFEADD; stroke: rgba(12, 68, 51, 0.32); stroke-width: 1.2; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.stars label:hover svg { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 3px solid rgba(27, 127, 92, 0.45); outline-offset: 0; }
/* Fill every star up to the hovered or chosen one. */
.stars label:hover svg, .stars label:has(~ label:hover) svg { fill: #FFDE85; }
.stars:has(#rating-1:checked) label:nth-of-type(-n+1) svg,
.stars:has(#rating-2:checked) label:nth-of-type(-n+2) svg,
.stars:has(#rating-3:checked) label:nth-of-type(-n+3) svg,
.stars:has(#rating-4:checked) label:nth-of-type(-n+4) svg,
.stars:has(#rating-5:checked) label:nth-of-type(-n+5) svg,
.stars input:checked + label svg { fill: var(--sun); }

/* Honeypot: kept off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--cream);
  font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.98); }
.button:disabled { opacity: 0.55; cursor: progress; transform: none; }
.form-status { min-height: 1.6em; margin-top: var(--s3); font-weight: 700; color: var(--green); }
.recaptcha-note { margin-top: var(--s4); font-size: 0.8125rem; line-height: 1.5; color: var(--ink-3); }
.recaptcha-note a { color: inherit; }

/* ---------- Closing download band ---------- */

.download { padding-block: var(--s5) var(--section); }
.download-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 104px) var(--s5);
  border-radius: 44px; background: var(--ink); color: var(--cream); text-align: center;
}
.download-band h2 { color: #FFFFFF; font-size: clamp(2.25rem, 5.4vw, 4rem); margin-top: var(--s5); }
.download-band p { margin-top: var(--s4); font-size: 1.1875rem; font-weight: 600; color: rgba(248, 246, 240, 0.72); }
.download-band .badge { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.download-leaf { width: 72px; height: auto; margin: 0 auto; }
.blob-band {
  z-index: -1; width: 720px; height: 720px; left: 50%; top: -60%; margin-left: -360px;
  background: radial-gradient(circle, rgba(127, 217, 168, 0.32) 0%, rgba(127, 217, 168, 0) 66%);
  animation: drift-a 24s ease-in-out infinite alternate;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: var(--s7); }
.footer-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s5) var(--s7); }
.footer-brand p { margin-top: var(--s1); font-size: 0.9375rem; color: var(--ink-3); max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.footer-nav a { color: var(--ink-2); font-weight: 700; font-size: 0.9375rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--green); text-decoration: underline; }
.footer-copy { flex-basis: 100%; font-size: 0.875rem; color: var(--ink-3); }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  background: radial-gradient(100% 120% at 90% 0%, var(--mint) 0%, rgba(228, 250, 238, 0) 65%);
}
.legal-hero .wrap, .prose { max-width: 800px; }
.legal-hero h1 { margin-top: var(--s4); font-size: clamp(2.5rem, 6.4vw, 4.25rem); letter-spacing: -0.04em; }
.legal-hero .lede { margin-top: var(--s4); }
.updated { display: inline-block; margin-top: var(--s5); padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.prose { padding-bottom: var(--section); }
.prose h2 { margin: var(--s7) 0 var(--s3); font-size: clamp(1.5rem, 2.6vw, 1.875rem); letter-spacing: -0.025em; }
.prose h3 { margin: var(--s5) 0 var(--s2); font-size: 1.1875rem; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p { margin-top: var(--s3); }
.prose ul, .prose ol { margin: var(--s3) 0 0; padding-left: 1.3em; }
.prose li + li { margin-top: var(--s2); }
.prose strong { color: var(--ink); }
.callout { margin-top: var(--s6); padding: var(--s5) var(--s6); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-soft); }
.callout h2 { margin-top: 0; font-size: 1.25rem; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { position: relative; padding-left: 44px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--mint-2); color: var(--ink); font-weight: 900; font-size: 0.875rem;
}

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.not-found h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.04em; margin-top: var(--s5); }
.not-found p { margin-top: var(--s4); color: var(--ink-2); font-size: 1.1875rem; }
.not-found .button { margin-top: var(--s6); text-decoration: none; }
.not-found .float { width: 96px; margin: 0 auto; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .feature-grid, .feedback-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-copy { order: 0; }
  .feature-copy, .feedback-copy { max-width: 560px; }
  .feedback-copy { position: static; }
  .stage { height: clamp(400px, 110vw, 520px); border-radius: 32px; }
}

@media (max-width: 560px) {
  .safety-grid { grid-template-columns: minmax(0, 1fr); }
  .card-trend { justify-self: center; width: 88%; margin-left: 0; }
  .phone-behind { display: none; }
  .score-badge { width: 92px; height: 92px; border-radius: 28px; right: 5%; }
  .score-num { font-size: 2.125rem; }
  .chip-result { left: 5%; right: 5%; bottom: 8%; }
  .download-band { border-radius: 32px; }
  .badges { gap: var(--s2); }
  .badge img { height: 46px; }
}

/* ---------- Reduced motion: everything still, everything visible ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .scan { display: none; }
}
