/* Meal Motive website. One stylesheet, no build step.
   Colours, type and radii follow website-package/brand/tokens.json (light theme). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ground and text (tokens.json, light) */
  --bg: #F7F8F2;
  --bg-tint: #EEF2E3;
  --surface: #FFFFFF;
  --raised: #ECEDE6;
  --border: #DCDDD5;
  --text: #121317;
  --muted: #5A5B63;

  /* Avocado, sampled from the mark */
  --avo-950: #04261A;
  --avo-900: #06331F;
  --avo-800: #0A4A2E;
  --avo-700: #0E5E3A;
  --avo-600: #148853;
  --lime: #B8F36B;
  --lime-200: #E3FA9C;
  --lime-50: #F2FADF;
  --on-lime: #1A1A1F;

  /* The app's dark surfaces, for the live demos */
  --app-bg: #0B0B0F;
  --app-surface: #16161C;
  --app-raised: #202028;
  --app-border: #26262F;
  --app-muted: #A0A0AB;

  /* Score colours: only where a score is shown */
  --score-excellent: #1DB954;
  --score-good: #8BC34A;
  --score-poor: #FF9800;
  --score-avoid: #E53935;
  --score-none: #6B6B76;

  --r-card: 16px;
  --r-btn: 12px;
  --r-sheet: 24px;
  --r-panel: 32px;
  --r-pill: 30px;

  --gutter: 20px;
  --maxw: 1200px;
  --header-h: 64px;

  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-long: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 260ms;
  --t-slow: 380ms;

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 24px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

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

h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--lime); color: var(--on-lime); }

:focus-visible {
  outline: 3px solid var(--avo-600);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  background: var(--avo-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

h1, h2 { font-weight: 700; color: var(--text); text-wrap: balance; }
h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.012em;
  font-weight: 600;
}
p { text-wrap: pretty; }

.kicker {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--avo-700);
}
.kicker--lime { color: var(--lime); }

.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 27px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-weight: 600;
  color: var(--avo-700);
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--avo-900); color: #fff; }
.btn--dark:hover { background: var(--avo-800); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }

/* Store buttons. Replace with the official badge artwork before launch if you prefer. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  height: 56px;
  min-width: 170px;
  padding: 0 20px 0 16px;
  border: 1px solid #A6A6A6;
  border-radius: var(--r-btn);
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(6, 51, 31, 0.6); }
.store:active { transform: translateY(0); }
.store__logo { width: 26px; height: 26px; flex: none; }
.store__text { display: flex; flex-direction: column; gap: 3px; }
.store__small { font-size: 11px; line-height: 1; font-weight: 500; letter-spacing: 0.01em; }
[data-store="googlePlay"] .store__small { text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
.store__big { font-size: 21px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.stores--on-dark .store:focus-visible { outline-color: var(--lime); }

@media (max-width: 559px) {
  .stores { flex-wrap: nowrap; gap: 10px; }
  .store { flex: 1 1 0; min-width: 0; height: 54px; gap: 8px; padding: 0 12px; justify-content: center; }
  .store__logo { width: 22px; height: 22px; }
  .store__big { font-size: 18px; }
  .store__small { font-size: 10px; }
  [data-store="googlePlay"] .store__small { font-size: 9px; }
}
@media (max-width: 339px) {
  .stores { flex-wrap: wrap; }
  .store { flex: 1 1 100%; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 242, 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand__mark { width: 28px; height: auto; }

.nav { margin-left: auto; order: 3; }
.site-header__cta { order: 2; margin-left: auto; }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-right: -10px;
  border: 0;
  background: none;
  border-radius: var(--r-btn);
}
.nav__toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav__bar { transition: transform var(--t-base) var(--ease); transform-origin: 12px 12px; }
.nav__toggle[aria-expanded="true"] .nav__bar--1 { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bar--2 { transform: translateY(-4px) rotate(-45deg); }

.nav__menu {
  display: none;
  position: absolute;
  left: 0; right: 0; top: var(--header-h);
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__menu.is-open { display: flex; }
.nav__menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav__menu li:last-child a { border-bottom: 0; }

.site-header__cta--plain { margin-left: auto; }
@media (max-width: 359px) {
  .site-header__cta:not(.site-header__cta--plain) { display: none; }
}

@media (min-width: 960px) {
  .nav { order: 0; margin-left: auto; }
  .site-header__cta { order: 0; margin-left: 12px; }
  .site-header__cta--plain { margin-left: auto; }
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 4px;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav__menu a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 500;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  }
  .nav__menu a:hover { color: var(--text); background: rgba(14, 94, 58, 0.07); }
}

/* ---------- The phone (CSS drawn; sized in em from --w) ---------- */

.phone {
  --bezel: 3.3em;
  position: relative;
  width: var(--w, 280px);
  font-size: calc(var(--w, 280px) / 100);
  padding: var(--bezel);
  border-radius: 16.4em;
  background:
    linear-gradient(150deg, #54555a 0%, #1d1e21 18%, #2b2c30 50%, #151618 82%, #4a4b50 100%);
  box-shadow:
    inset 0 0 0 0.45em #6a6b70,
    inset 0 0 0 0.9em #0c0c0e,
    0 3em 6em -2.4em rgba(6, 51, 31, 0.45),
    0 1em 2em -1em rgba(6, 51, 31, 0.25);
}
.phone__screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: 13.1em;
  overflow: hidden;
  background: var(--app-bg);
  isolation: isolate;
}
.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A faint sheen on the glass */
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 38%);
}
.phone__island {
  position: absolute;
  z-index: 3;
  top: 2.5em;
  left: 50%;
  width: 29%;
  height: 8.4em;
  transform: translateX(-50%);
  border-radius: 99em;
  background: #000;
}
.phone__btn {
  position: absolute;
  width: 0.9em;
  border-radius: 0.5em;
  background: linear-gradient(90deg, #3c3d41, #6b6c71, #3c3d41);
}
.phone__btn--action { left: -0.7em; top: 19%; height: 6.5em; }
.phone__btn--up { left: -0.7em; top: 27%; height: 11em; }
.phone__btn--down { left: -0.7em; top: 34.5%; height: 11em; }
.phone__btn--power { right: -0.7em; top: 29%; height: 17em; }

.phone--sm { --w: 190px; }
.phone--md { --w: 250px; }
@media (min-width: 960px) {
  .phone--md { --w: 290px; }
}

.phone--tilt-r { transform: rotate(3deg); }
.phone--tilt-l { transform: rotate(-3deg); }

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

.hero {
  position: relative;
  padding-top: clamp(20px, 5vw, 56px);
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
@supports (overflow: clip) {
  .hero { overflow: clip; }
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  width: 820px; height: 820px;
  right: -300px; top: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184, 243, 107, 0.62), rgba(184, 243, 107, 0.18) 55%, rgba(184, 243, 107, 0) 100%);
}
.hero__ring {
  position: absolute;
  width: 640px; height: 640px;
  right: -200px; top: 260px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(14, 94, 58, 0.22) 0deg 0.7deg, transparent 0.7deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 88.5%, #000 96%, transparent 96.5%);
  mask: radial-gradient(closest-side, transparent 88%, #000 88.5%, #000 96%, transparent 96.5%);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--avo-800);
}
.eyebrow__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 243, 107, 0.35);
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(44px, 12.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.05em; right: -0.07em;
  bottom: 0.04em;
  height: 0.38em;
  border-radius: 0.1em;
  background: var(--lime);
  transform-origin: left center;
  transform: skewX(-8deg);
}

.hero__lede {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 18px;
  line-height: 26px;
  color: var(--muted);
}
.hero__copy .stores { margin-top: 24px; }

.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.hero__ticks li { display: inline-flex; align-items: center; gap: 6px; }
.hero__ticks svg { width: 16px; height: 16px; fill: none; stroke: var(--avo-600); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* The stage: 3D phone, floating chips, avocado */
.hero__stage {
  --w: 220px;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding-bottom: 56px;
  perspective: 1500px;
}
.hero__stage::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 58px;
  width: calc(var(--w) * 0.9); height: 30px;
  transform: translateX(-46%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(6, 51, 31, 0.3), rgba(6, 51, 31, 0));
  z-index: -1;
}

.phone3d {
  position: relative;
  width: var(--w);
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.phone3d.is-dragging { cursor: grabbing; }
.phone3d,
.phone3d__tilt,
.phone3d__pose,
.phone3d__intro,
.phone3d__spin { transform-style: preserve-3d; }

.phone3d__tilt { transition: transform 600ms var(--ease); }
.phone3d__pose { transform: rotateZ(4deg) rotateX(7deg) rotateY(-22deg); }
.phone3d__spin {
  position: relative;
  font-size: calc(var(--w) / 100);
  transition: transform 900ms var(--ease-long);
}
.phone3d.is-dragging .phone3d__spin { transition: none; }

.phone3d__front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.phone3d__front .phone__screen img { -webkit-user-drag: none; pointer-events: none; }

.phone3d__slice,
.phone3d__back {
  position: absolute;
  inset: 0;
  border-radius: 16.4em;
}
.phone3d__slice { background: linear-gradient(180deg, #5d5e63, #2a2b2f 50%, #4b4c51); }
.phone3d__slice--1 { transform: translateZ(-1.9em); }
.phone3d__slice--2 { transform: translateZ(-3.8em); }
.phone3d__slice--3 { transform: translateZ(-5.7em); }
.phone3d__slice--4 { transform: translateZ(-7.6em); }
.phone3d__slice--5 { transform: translateZ(-9.5em); }

/* Solid walls along the straight edges, so the phone reads as one slab edge-on. */
.phone3d__side { position: absolute; background: linear-gradient(90deg, #3b3c40, #7a7b80 45%, #4a4b50); }
.phone3d__side--l,
.phone3d__side--r { top: 15em; bottom: 15em; width: 11em; transform-origin: left center; transform: rotateY(90deg); }
.phone3d__side--l { left: 0; }
.phone3d__side--r { left: 100%; }
.phone3d__side--t,
.phone3d__side--b { left: 15em; right: 15em; height: 11em; transform-origin: center top; transform: rotateX(-90deg); background: linear-gradient(180deg, #3b3c40, #7a7b80 45%, #4a4b50); }
.phone3d__side--t { top: 0; }
.phone3d__side--b { top: 100%; }

.phone3d__back {
  transform: translateZ(-11em) rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #e4ecd9 0%, #cbd9bf 55%, #b4c6a6 100%);
  box-shadow: inset 0 0 0 0.9em #9ea797, inset 0 0 0 1.3em #c3ccb9;
}
.phone3d__camera {
  position: absolute;
  top: 6em; left: 7em;
  display: flex;
  flex-direction: column;
  gap: 2.4em;
  padding: 2.6em 2.4em;
  border-radius: 99em;
  background: linear-gradient(160deg, rgba(166, 185, 150, 0.9), rgba(140, 160, 124, 0.9));
  box-shadow: inset 0 0 0 0.4em rgba(255, 255, 255, 0.35), 0 0.6em 1.2em rgba(40, 60, 30, 0.25);
}
.phone3d__camera i {
  display: block;
  width: 11em; height: 11em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5a78 0%, #10131a 45%, #05060a 70%);
  box-shadow: 0 0 0 1.2em #2a2c30, 0 0 0 1.6em #8d9488;
}
.phone3d__camera b {
  position: absolute;
  right: -5em; top: 10em;
  width: 3.6em; height: 3.6em;
  border-radius: 50%;
  background: #f6f0d9;
  box-shadow: 0 0 0 0.6em #b6bfae;
}
.phone3d__logo { width: 30em; height: auto; margin-top: 18em; }

/* Opening: the phone turns round from its back, once. */
@media (prefers-reduced-motion: no-preference) {
  .phone3d__intro { animation: phone-intro 1500ms var(--ease-long) 150ms both; }
  .hero__stage { animation: fade-in 500ms var(--ease) both; }
  .hl::before { animation: hl-draw 700ms var(--ease) 450ms both; }
  .chip { animation: chip-in 500ms var(--ease) both; }
  .chip--choice { animation-delay: 1100ms; }
  .chip--carb { animation-delay: 1250ms; }
  .chip--offline { animation-delay: 1400ms; }
  .avo--hero .avo__needle { animation: needle-sweep 1200ms var(--ease) 500ms both; }
  .avo--hero { animation: avo-in 700ms var(--ease) 350ms both; }
}
@keyframes phone-intro {
  from { transform: rotateY(-200deg) translateY(4%); }
  to { transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hl-draw { from { transform: skewX(-8deg) scaleX(0); } to { transform: skewX(-8deg) scaleX(1); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes needle-sweep { from { transform: rotate(-130deg); } to { transform: rotate(0deg); } }
@keyframes avo-in { from { opacity: 0; transform: translateY(16px) rotate(-10deg); } to { opacity: 1; transform: none; } }

/* Floating cards */
.chip {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 34px -18px rgba(6, 51, 31, 0.45);
  pointer-events: none;
}
.chip__label {
  font-size: 10px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip__row { display: flex; align-items: center; gap: 10px; }
.chip__name { font-size: 14px; line-height: 18px; font-weight: 600; }
.chip__big { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chip__big small { font-size: 14px; font-weight: 600; color: var(--muted); }
.chip--choice { top: 7%; right: 0; }
.chip--carb { top: 38%; left: 0; }
.chip--offline {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  right: 2%; bottom: 20%;
  font-size: 14px; line-height: 18px; font-weight: 600;
}
.chip--offline svg { width: 20px; height: 20px; fill: none; stroke: var(--avo-700); stroke-width: 2; stroke-linecap: round; }

.score {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.score--good { background: var(--app-bg); color: var(--score-good); }

/* The avocado: body and needle stacked, needle turns about the stone. */
.avo {
  position: relative;
  display: block;
  width: 120px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 40%;
  perspective: 700px;
  -webkit-tap-highlight-color: transparent;
}
.avo__inner { position: relative; display: block; transform-style: preserve-3d; }
.avo__body { width: 100%; filter: drop-shadow(0 14px 18px rgba(6, 51, 31, 0.28)); }
.avo__needle {
  position: absolute;
  inset: 0;
  width: 100%;
  transform-origin: 50% 58.56%;
  will-change: transform;
}
.avo.is-spinning .avo__inner { animation: avo-spin 900ms var(--ease-long); }
@keyframes avo-spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

.avo--hero {
  position: absolute;
  z-index: 6;
  left: 0;
  bottom: 70px;
}

.hero__hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.hero__hint:hover { color: var(--text); border-color: var(--muted); }
.hero__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 600px) {
  .chip--offline { display: flex; }
  .hero__stage { --w: 250px; min-height: 620px; }
  .avo { width: 150px; }
}

@media (min-width: 960px) {
  .hero { padding-top: 40px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 24px;
    min-height: min(calc(100svh - var(--header-h) - 40px), 820px);
  }
  .hero__stage { --w: 300px; min-height: 740px; }
  .hero__glow { right: -260px; top: -40px; width: 980px; height: 980px; }
  .hero__ring { right: -120px; top: 60px; width: 760px; height: 760px; }
  .hero__lede { font-size: 20px; line-height: 30px; }
  .avo--hero { width: 200px; left: -10px; bottom: 80px; }
  .chip { padding: 12px 16px; }
  .chip__name { font-size: 15px; }
  .chip__big { font-size: 26px; line-height: 30px; }
  .chip--choice { right: 2%; top: 10%; }
  .chip--carb { left: 4%; top: 36%; }
}

@media (max-width: 959px) {
  .hero__glow { right: -380px; top: 420px; }
  .hero__ring { right: -260px; top: 470px; }
}

/* ---------- At a glance ---------- */

.proof {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.proof__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 16px 24px 0;
}
.proof__item:nth-child(n + 3) { border-top: 1px solid var(--border); }
.proof__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
.proof__big {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--avo-800);
}
.proof__text { font-size: 14px; line-height: 20px; color: var(--muted); }

@media (min-width: 800px) {
  .proof__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof__item { padding: 32px 24px; border-left: 1px solid var(--border); }
  .proof__item:first-child { border-left: 0; padding-left: 0; }
  .proof__item:nth-child(n + 3) { border-top: 0; }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 320px);
  gap: 14px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  counter-reset: step;
}
.steps::-webkit-scrollbar { display: none; }
.steps:focus-visible { outline-offset: -3px; }

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 20px 0;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: var(--surface);
  overflow: hidden;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  font-size: 16px;
}
.step h3 { font-size: 22px; line-height: 26px; letter-spacing: -0.02em; }
.step p { margin-top: 6px; color: var(--muted); }
.step__shot { display: flex; justify-content: center; margin-top: auto; height: 300px; overflow: hidden; }
.step__shot .phone { --w: 200px; align-self: flex-start; }
.how__phone { display: none; }

@media (min-width: 960px) {
  .how__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
  .steps {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .step {
    min-height: 68vh;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
  }
  .step__shot { display: none; }
  .step__body {
    padding-left: 28px;
    border-left: 3px solid var(--border);
    opacity: 0.38;
    transition: opacity var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease);
  }
  .step.is-active .step__body { opacity: 1; border-left-color: var(--avo-600); }
  .step h3 { font-size: 40px; line-height: 44px; letter-spacing: -0.035em; font-weight: 700; }
  .step p { margin-top: 12px; font-size: 20px; line-height: 30px; max-width: 26ch; }
  .step__num { width: 44px; height: 44px; font-size: 18px; margin-bottom: 20px; }

  .how__phone {
    position: sticky;
    top: var(--header-h);
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--header-h));
  }
  .how__phone .phone { --w: min(290px, calc((100vh - var(--header-h) - 80px) / 2.1)); }
  .how__phone .phone__screen img { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
  .how__phone .phone__screen img.is-active { opacity: 1; }
}

/* ---------- Better choices ---------- */

.choices { background: var(--bg-tint); }
.choices__grid { display: grid; gap: 48px; align-items: center; }
.choices__copy .section-head { margin-bottom: 28px; }
.choices__phone { display: flex; justify-content: center; }

.demo {
  display: grid;
  gap: 20px;
  padding: 24px 20px;
  border-radius: var(--r-sheet);
  background: var(--app-bg);
  color: #fff;
  box-shadow: 0 30px 60px -36px rgba(6, 51, 31, 0.7);
}
.demo__top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge { --score: 3; position: relative; width: 100%; max-width: 250px; }
.gauge svg { width: 100%; overflow: visible; }
.gauge__zone { fill: none; stroke-width: 13; stroke-linecap: round; }
.gauge__zone--avoid { stroke: var(--score-avoid); }
.gauge__zone--poor { stroke: var(--score-poor); }
.gauge__zone--good { stroke: var(--score-good); }
.gauge__zone--excellent { stroke: var(--score-excellent); }
.gauge__needle {
  fill: #fff;
  transform-box: view-box;
  transform-origin: 120px 118px;
  transform: rotate(calc(var(--score) * 1.8deg));
}
@media (prefers-reduced-motion: no-preference) {
  .gauge__needle { transition: transform 800ms var(--ease); }
}
.gauge__value {
  position: absolute;
  left: 0; right: 0; top: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.gauge__num { font-size: 52px; line-height: 50px; font-weight: 700; letter-spacing: -0.04em; }
.gauge__of { font-size: 17px; line-height: 22px; color: var(--app-muted); }
.demo__band { margin-top: 10px; font-size: 22px; line-height: 28px; font-weight: 600; color: var(--score-avoid); }
.demo[data-band="poor"] .demo__band { color: var(--score-poor); }
.demo[data-band="good"] .demo__band { color: var(--score-good); }
.demo[data-band="excellent"] .demo__band { color: var(--score-excellent); }
.demo__name { margin-top: 10px; font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.015em; max-width: 22ch; }
.demo__brand { margin-top: 6px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--app-muted); }

.demo__list {
  padding: 18px 12px 12px;
  border: 1px solid var(--app-border);
  border-radius: var(--r-card);
  background: var(--app-surface);
}
.demo__title { padding-inline: 8px; font-size: 20px; }
.demo__sub { padding-inline: 8px; margin-top: 4px; margin-bottom: 8px; font-size: 15px; line-height: 20px; color: var(--app-muted); }
.choice {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: none;
  color: #fff;
  text-align: left;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.choice:hover { background: var(--app-raised); }
.choice[aria-pressed="true"] { background: var(--app-raised); border-color: #3a3a46; }
.choice:focus-visible { outline-color: var(--lime); outline-offset: 1px; }
.choice__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--score-good); }
.choice__text { display: flex; flex-direction: column; min-width: 0; }
.choice__name { font-size: 16px; line-height: 21px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.choice__brand { font-size: 14px; line-height: 18px; color: var(--app-muted); }
.choice__score { font-size: 26px; line-height: 30px; font-weight: 600; color: var(--score-good); font-variant-numeric: tabular-nums; }
.demo__reset {
  display: block;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-btn);
  background: none;
  color: var(--app-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo__reset:disabled { display: none; }
.demo__reset:focus-visible { outline-color: var(--lime); }
.demo__note { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }

@media (min-width: 700px) {
  .demo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; padding: 28px; }
}
@media (min-width: 960px) {
  .choices__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; }
}

/* ---------- Type 1 diabetes ---------- */

.t1__panel {
  position: relative;
  display: grid;
  gap: 40px;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: var(--r-panel);
  overflow: hidden;
  color: #F4F8EC;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(184, 243, 107, 0.2), rgba(184, 243, 107, 0) 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(20, 136, 83, 0.35), rgba(20, 136, 83, 0) 70%),
    linear-gradient(160deg, var(--avo-800) 0%, var(--avo-900) 60%, var(--avo-950) 100%);
}
.t1__panel h2 { color: #fff; }
.t1__lede { margin-top: 18px; font-size: 18px; line-height: 27px; color: rgba(244, 248, 236, 0.84); max-width: 56ch; }
.t1__list { display: grid; gap: 20px; margin-top: 32px; }
.t1__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.t1__list svg {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(184, 243, 107, 0.14);
  fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.t1__list h3 { font-size: 18px; line-height: 22px; color: #fff; }
.t1__list p { margin-top: 4px; font-size: 15px; line-height: 22px; color: rgba(244, 248, 236, 0.78); }

.t1__visual { position: relative; display: grid; gap: 28px; justify-items: center; }
.t1__phone { display: flex; justify-content: center; }
.t1__phone .phone { --w: 230px; box-shadow: inset 0 0 0 0.45em #6a6b70, inset 0 0 0 0.9em #0c0c0e, 0 3em 6em -2em rgba(0, 0, 0, 0.55); }

.carbcalc {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.6);
}
.carbcalc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carbcalc__product { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.015em; }
.carbcalc__unit { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.carbcalc__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
}
.carbcalc__stepper button {
  display: grid; place-items: center;
  width: 44px; height: 48px;
  border: 0; background: none;
  border-radius: var(--r-btn);
  transition: background-color var(--t-fast) var(--ease);
}
.carbcalc__stepper button:hover { background: var(--raised); }
.carbcalc__stepper button:disabled { opacity: 0.35; cursor: default; background: none; }
.carbcalc__stepper svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.carbcalc__stepper output { min-width: 28px; text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

.carbcalc__out {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--border);
}
.carbcalc__out > div { padding-top: 12px; }
.carbcalc__out dt { font-size: 13px; line-height: 18px; color: var(--muted); }
.carbcalc__out dd { font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.carbcalc__carbs { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.carbcalc__carbs dd { font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -0.04em; color: var(--avo-800); }
.carbcalc__carbs small { font-size: 20px; letter-spacing: 0; color: var(--muted); }
.carbcalc__cap { margin-top: 14px; font-size: 13px; line-height: 18px; color: var(--muted); }

.t1__note {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  line-height: 21px;
  color: rgba(244, 248, 236, 0.74);
}

@media (min-width: 800px) {
  .t1__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
}
@media (min-width: 1040px) {
  .t1__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; column-gap: 48px; }
  .t1__visual { display: block; min-height: 600px; }
  .t1__phone { position: absolute; right: 0; top: 0; }
  .t1__phone .phone { --w: 260px; }
  .carbcalc { position: absolute; left: 0; bottom: 20px; max-width: 320px; }
}

/* ---------- Made for here (bento) ---------- */

.bento { display: grid; gap: 16px; }
.tile {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: var(--surface);
  overflow: hidden;
}
.tile h3 { font-size: 22px; line-height: 27px; letter-spacing: -0.02em; }
.tile p:not(.kicker):not(.tile__big) { margin-top: 10px; color: var(--muted); }

.tile--count { display: flex; flex-direction: column; justify-content: space-between; background: var(--lime); border-color: #A5DD5C; color: var(--on-lime); }
.tile--count p:not(.tile__big) { color: rgba(26, 26, 31, 0.78); }
.tile__big {
  margin-bottom: 20px;
  font-size: clamp(60px, 11vw, 104px);
  line-height: 0.9;
  font-weight: 750;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.tile--offline { background: var(--avo-900); border-color: var(--avo-900); color: #fff; }
.tile--offline p:not(.kicker) { color: rgba(244, 248, 236, 0.8) !important; }
.tile__icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(184, 243, 107, 0.15);
}
.tile__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; }

.tile--search { display: flex; flex-direction: column; padding-bottom: 0; }
.tile__peek { display: flex; justify-content: center; height: 280px; margin-top: 24px; overflow: hidden; }
.tile__peek .phone { --w: 230px; align-self: flex-start; }

.tile--honest { display: grid; gap: 28px; }
.tile--honest h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -0.03em; }
.unknown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 24px;
  border-radius: 20px;
  background: var(--app-bg);
  color: #fff;
}
.unknown > svg { width: 100%; max-width: 220px; overflow: visible; }
.unknown > svg path { fill: none; stroke: var(--score-none); stroke-width: 13; stroke-linecap: round; }
.unknown__pill {
  margin-top: -40px;
  padding: 6px 12px;
  border: 1px solid var(--app-border);
  border-radius: var(--r-pill);
  background: var(--app-raised);
  font-size: 14px; line-height: 18px; font-weight: 500;
  color: #E4E4EA;
}
.unknown__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 260px; min-height: 52px;
  margin-top: 6px;
  border-radius: var(--r-btn);
  background: #fff; color: var(--app-bg);
  font-weight: 600;
}
.unknown__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

@media (min-width: 760px) {
  .bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas:
      "count search"
      "offline search"
      "honest honest";
  }
  .tile--count { grid-area: count; }
  .tile--search { grid-area: search; }
  .tile--offline { grid-area: offline; }
  .tile--honest { grid-area: honest; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; padding: 40px; }
  .tile--search { padding: 36px 36px 0; }
  .tile__peek { height: auto; flex: 1; min-height: 300px; }
  .tile__peek .phone { --w: 260px; }
}

/* ---------- Diary ---------- */

.diary { background: var(--bg-tint); overflow: hidden; }
@supports (overflow: clip) { .diary { overflow: clip; } }
.diary__grid { display: grid; gap: 40px; align-items: center; }
.diary__copy > p:not(.kicker) { margin-top: 18px; font-size: 18px; line-height: 27px; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 14px; line-height: 20px; font-weight: 500;
}
.pills li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--avo-600);
}

.fan { position: relative; height: 430px; }
.fan__item { position: absolute; left: 50%; top: 10px; transition: transform var(--t-slow) var(--ease); }
.fan__item .phone { --w: min(160px, 42vw); }
.fan__item--c { z-index: 3; transform: translateX(-50%); }
.fan__item--l { z-index: 1; transform: translateX(-100%) translateY(34px) rotate(-9deg) scale(0.88); }
.fan__item--r { z-index: 2; transform: translateX(0%) translateY(34px) rotate(9deg) scale(0.88); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fan:hover .fan__item--l { transform: translateX(-122%) translateY(26px) rotate(-12deg) scale(0.9); }
  .fan:hover .fan__item--r { transform: translateX(22%) translateY(26px) rotate(12deg) scale(0.9); }
  .fan:hover .fan__item--c { transform: translateX(-50%) translateY(-8px); }
}

.recap {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: clamp(48px, 7vw, 88px);
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.recap__card { display: flex; justify-content: center; }
.recap__card img {
  width: min(100%, 320px);
  border-radius: 20px;
  transform: rotate(-3deg);
  box-shadow: 0 30px 50px -30px rgba(6, 51, 31, 0.55);
}
.recap__copy h3 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.recap__copy p:not(.kicker) { margin-top: 14px; font-size: 18px; line-height: 27px; color: var(--muted); max-width: 40ch; }

@media (min-width: 700px) {
  .fan { height: 600px; }
  .fan__item--l { transform: translateX(-112%) translateY(34px) rotate(-9deg) scale(0.9); }
  .fan__item--r { transform: translateX(12%) translateY(34px) rotate(9deg) scale(0.9); }
  .fan__item .phone { --w: 230px; }
  .recap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); padding: 48px; gap: 48px; }
}
@media (min-width: 960px) {
  .diary__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
  .fan__item--c .phone { --w: 250px; }
}

/* ---------- Private ---------- */

.private__grid { display: grid; gap: 36px; align-items: center; }
.private__copy > p:not(.kicker) { margin-top: 18px; font-size: 18px; line-height: 27px; color: var(--muted); max-width: 44ch; }
.private__copy .link-arrow { margin-top: 4px; }
.private__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.private__tiles li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: var(--surface);
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.private__tiles svg {
  width: 48px; height: 48px;
  padding: 11px;
  border-radius: 14px;
  background: var(--lime-50);
  fill: none; stroke: var(--avo-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 960px) {
  .private__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .private__tiles li { padding: 28px 24px; font-size: 20px; line-height: 24px; }
}

/* ---------- Plus ---------- */

.plus { border-top: 1px solid var(--border); }
.free-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -16px auto 40px;
  max-width: 720px;
}
.free-list li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px; line-height: 20px; font-weight: 600;
}
.free-list li::before {
  content: "";
  width: 16px; height: 16px;
  background: var(--avo-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plus__grid { display: grid; gap: 16px; }
.plus__card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
  overflow: hidden;
}
.plus__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--on-lime);
  font-size: 12px; line-height: 16px; font-weight: 700;
}
.plus__card h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.plus__card p { margin-top: 10px; color: var(--muted); max-width: 42ch; }
.plus__phones { position: relative; height: 300px; margin-top: 28px; }
.plus__phones .phone { position: absolute; top: 0; --w: 180px; }
.plus__phone-back { left: 50%; transform: translateX(-92%) translateY(26px) rotate(-6deg); }
.plus__phone-front { left: 50%; transform: translateX(-8%); }
.plus__phones--single .plus__phone-front { transform: translateX(-50%); }

.plus__foot { margin-top: 32px; text-align: center; font-size: 18px; line-height: 26px; font-weight: 600; }
.smallprint { margin: 16px auto 0; max-width: 680px; text-align: center; font-size: 13px; line-height: 19px; color: var(--muted); }

@media (min-width: 800px) {
  .plus__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plus__card { padding: 40px 40px 0; }
  .plus__phones { height: 360px; }
  .plus__phones .phone { --w: 210px; }
}

/* ---------- Reviews ---------- */

.reviews { background: var(--bg-tint); overflow: hidden; }
.reviews__note { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.marquee__toggle { flex: none; }
.marquee__toggle .i-play { display: none; fill: currentColor; stroke: none; }
.marquee__toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee__toggle[aria-pressed="true"] .i-play { display: block; }

.marquee { display: grid; gap: 16px; }
.marquee__row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.marquee__row::-webkit-scrollbar { display: none; }
.marquee__track { display: flex; gap: 16px; flex: none; padding-right: 16px; }

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 300px;
  padding: 22px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.review__stars { font-size: 16px; letter-spacing: 2px; color: #B7860B; }
.review__star-off { color: var(--border); }
.review blockquote p { font-size: 16px; line-height: 24px; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 13px; line-height: 18px; color: var(--muted); }
.review__who strong { display: block; font-size: 15px; line-height: 20px; color: var(--text); font-weight: 600; }
.review__avatar {
  display: grid; place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--lime-200);
  color: var(--avo-800);
  font-size: 13px; font-weight: 700;
}
.marquee__row--reverse .review__avatar { background: var(--avo-800); color: var(--lime); }

/* Auto-scroll only with scripts on and motion allowed; paused on hover, focus or the button. */
@media (prefers-reduced-motion: no-preference) {
  html.js .marquee.is-live .marquee__row {
    overflow: hidden;
    padding-inline: 0;
    -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  html.js .marquee.is-live .marquee__track { animation: marquee 80s linear infinite; }
  html.js .marquee.is-live .marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 90s; }
  html.js .marquee.is-live:hover .marquee__track,
  html.js .marquee.is-live:focus-within .marquee__track,
  html.js .marquee.is-live.is-paused .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

@media (min-width: 700px) {
  .review { width: 360px; padding: 26px; }
}

/* ---------- FAQ and Ask ---------- */

.faq__grid { display: grid; gap: 40px; align-items: start; }
.faq__list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--avo-800), var(--avo-800)) center / 12px 2px no-repeat,
    linear-gradient(var(--avo-800), var(--avo-800)) center / 2px 12px no-repeat,
    var(--lime-50);
  transition: transform var(--t-base) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 62ch; }
.faq details a { color: var(--avo-700); font-weight: 600; }

.ask {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: var(--surface);
}
.ask h3 { font-size: 24px; line-height: 28px; letter-spacing: -0.02em; }
.ask > p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 22px; }
.ask__form { display: grid; gap: 8px; margin-top: 20px; }
.ask__form label { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.ask__form select,
.ask__form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg);
  font-size: 16px;
  line-height: 22px;
  transition: border-color var(--t-fast) var(--ease);
}
.ask__form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5B63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat,
    var(--bg);
}
.ask__form textarea { resize: vertical; min-height: 120px; }
.ask__form select:focus,
.ask__form textarea:focus { border-color: var(--avo-600); }
.ask__form button { margin-top: 12px; }
.ask__alt { margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
.ask__alt a { color: var(--avo-700); font-weight: 600; word-break: break-word; }

@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
  .ask { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; }
}

/* ---------- Download ---------- */

.download { padding-top: 0; }
.download__panel {
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 72px);
  border-radius: var(--r-panel);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(55% 70% at 90% 30%, rgba(184, 243, 107, 0.32), rgba(184, 243, 107, 0) 70%),
    linear-gradient(150deg, var(--avo-700) 0%, var(--avo-900) 55%, var(--avo-950) 100%);
}
.download__panel::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -140px; top: -120px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(184, 243, 107, 0.28) 0deg 0.7deg, transparent 0.7deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 88.5%, #000 96%, transparent 96.5%);
  mask: radial-gradient(closest-side, transparent 88%, #000 88.5%, #000 96%, transparent 96.5%);
  pointer-events: none;
}
.download__copy { position: relative; }
.download__icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 22px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
.download h2 { color: #fff; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -0.045em; }
.download__copy > p { margin-top: 14px; font-size: 19px; line-height: 27px; color: rgba(244, 248, 236, 0.84); }
.download .stores { margin-top: 28px; }
.download__side { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; }
.avo--cta { width: 150px; }

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 200px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  text-align: center;
}
.qr[hidden] { display: none; }
.qr__code { width: 168px; height: 168px; }
.qr__code svg { width: 100%; height: 100%; }
.qr p { font-size: 13px; line-height: 18px; color: var(--muted); }

@media (min-width: 960px) {
  .download__panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
  .avo--cta { width: 220px; }
  .download__side.has-qr .avo--cta { position: absolute; width: 170px; right: -24px; top: -70px; z-index: 0; }
  .download__side.has-qr .qr { position: relative; z-index: 1; }
}

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

.site-footer {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 22px;
}
.footer__grid { display: grid; gap: 28px; }
.footer__brand p { margin-top: 8px; color: var(--muted); max-width: 32ch; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer__nav a, .footer__contact a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--avo-700); text-decoration: underline; text-underline-offset: 3px; }
.footer__contact { color: var(--muted); }
.footer__contact a { color: var(--text); word-break: break-word; }
.footer__legal {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  background: linear-gradient(var(--border), var(--border)) center top / calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left))) 1px no-repeat;
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
}
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer__contact { grid-column: 2; text-align: right; }
}
@media (max-width: 959px) {
  .site-footer.has-dock { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ---------- Mobile download dock ---------- */

.dock {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -16px rgba(6, 51, 31, 0.45);
  transform: translateY(calc(100% + 40px));
  visibility: hidden;
  transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.dock.is-shown { transform: none; visibility: visible; transition: transform var(--t-base) var(--ease), visibility 0s; }
.dock__icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.dock__text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 17px; color: var(--muted); }
.dock__text strong { font-size: 15px; line-height: 20px; color: var(--text); }
.dock .btn { margin-left: auto; }
@media (min-width: 960px) {
  .dock { display: none; }
}

/* ---------- Scroll-in ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  html.js .choices__phone.reveal { transform: translateY(20px) rotate(2deg); }
  html.js .choices__phone.reveal.is-in { transform: none; }
}

/* ---------- Plain pages: legal, support, errors ---------- */

.page { padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 120px); }
.doc { max-width: 720px; }
.doc h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.doc h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: #2A2B31; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--avo-600); }
.doc a { color: var(--avo-700); font-weight: 600; text-underline-offset: 3px; word-break: break-word; }
.doc hr { margin: 40px 0 24px; border: 0; border-top: 1px solid var(--border); }
.doc em { color: var(--muted); }
.doc mark.todo {
  padding: 0 0.25em;
  border-radius: 4px;
  background: #FFE7A3;
  color: #4A3500;
  font-weight: 600;
}
.doc .lede { font-size: 19px; line-height: 28px; color: var(--muted); }
.doc .ask { margin-top: 28px; }

.error-page { display: grid; place-items: center; min-height: calc(100svh - var(--header-h) - 220px); padding-block: 48px 80px; text-align: center; }
.error-page__inner { max-width: 560px; }
.error-page .avo { width: 150px; margin: 0 auto 20px; }
.error-page__code {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--lime-50);
  border: 1px solid #D6EDB0;
  color: var(--avo-800);
  font-size: 13px; line-height: 18px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.error-page h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.02; letter-spacing: -0.045em; }
.error-page p { margin-top: 16px; font-size: 18px; line-height: 27px; color: var(--muted); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.error-page .stores { justify-content: center; margin-top: 28px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.ask .ask__heading { margin: 0; font-size: 24px; line-height: 28px; }
.doc .ask { max-width: 520px; }

/* ---------- Pre-launch: waiting list ---------- */

html.launched .when-prelaunch,
html:not(.launched) .when-launched { display: none !important; }

.btn--lime { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover { background: var(--lime-200); }

.waitlist { margin-top: 24px; max-width: 480px; }
.waitlist__label { display: block; margin-bottom: 10px; font-size: 15px; line-height: 21px; font-weight: 600; }
.waitlist__row { display: flex; gap: 8px; }
.waitlist__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--surface);
  font-size: 17px;
}
.waitlist__input:focus { outline: 3px solid var(--avo-600); outline-offset: 1px; border-color: var(--avo-600); }
.waitlist__btn { flex: none; }
.waitlist__btn[disabled] { opacity: 0.6; cursor: progress; }
.waitlist__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist__msg { min-height: 22px; margin-top: 10px; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--avo-700); }
.waitlist__msg.is-error { color: #A12626; }
.waitlist--on-dark .waitlist__label { color: rgba(244, 248, 236, 0.9); }
.waitlist--on-dark .waitlist__input { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.96); color: var(--text); }
.waitlist--on-dark .waitlist__input:focus,
.waitlist--on-dark .waitlist__btn:focus-visible { outline-color: var(--lime); }
.waitlist--on-dark .waitlist__msg { color: var(--lime); }
.waitlist--on-dark .waitlist__msg.is-error { color: #FFB4A8; }
.waitlist.is-done .waitlist__row { display: none; }
@media (max-width: 419px) {
  .waitlist__row { flex-direction: column; }
  .waitlist__btn { width: 100%; }
}
