/* Basket Pal — website styles
   One stylesheet for every page. Tokens first, then layout, components and page sections. */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* brand, from the app icon */
  --green-950: #062a1c;
  --green-900: #0a3a27;
  --green-800: #0d5236;
  --green-700: #0e6b43;
  --green-600: #0a8a4e;
  --green-500: #14a35e;
  --green-200: #bfe6cf;
  --green-100: #e2f3e8;
  --green-50:  #f1f9f3;
  --yellow-500: #f7b928;
  --yellow-400: #ffc83d;
  --yellow-300: #ffd866;
  --yellow-100: #fff3cc;
  --tomato: #e5412d;
  --orange: #f08a24;
  --sky: #3b82f6;

  /* surfaces and text (light) */
  --bg: #fbf7ee;
  --bg-alt: #f4eedf;
  --surface: #ffffff;
  --surface-2: #fffdf8;
  --ink: #13241a;
  --ink-2: #2b3d32;
  --muted: #5d6d63;
  --line: rgba(19, 36, 26, 0.12);
  --line-strong: rgba(19, 36, 26, 0.2);
  --accent: var(--green-600);
  --accent-ink: var(--green-700);
  --on-accent: #ffffff;
  --critical: #d93a26;
  --urgent: #e07a12;
  --ok: #12924f;
  --shadow-sm: 0 1px 2px rgba(10, 40, 25, 0.06), 0 2px 8px rgba(10, 40, 25, 0.05);
  --shadow-md: 0 2px 6px rgba(10, 40, 25, 0.06), 0 12px 32px rgba(10, 40, 25, 0.1);
  --shadow-lg: 0 6px 16px rgba(10, 40, 25, 0.08), 0 30px 80px rgba(10, 40, 25, 0.18);
  --phone-shadow: 0 2px 4px rgba(0,0,0,.08), 0 24px 48px -12px rgba(6, 42, 28, 0.35), 0 60px 120px -40px rgba(6, 42, 28, 0.45);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 140px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1510;
    --bg-alt: #0f1d16;
    --surface: #13221a;
    --surface-2: #172a20;
    --ink: #eef5ef;
    --ink-2: #d3e0d6;
    --muted: #9fb2a6;
    --line: rgba(230, 245, 235, 0.12);
    --line-strong: rgba(230, 245, 235, 0.2);
    --accent: #3ccf83;
    --accent-ink: #5fdc98;
    --on-accent: #062a1c;
    --green-100: #13301f;
    --green-50: #10261a;
    --yellow-100: #3a2f0f;
    --critical: #ff6b57;
    --urgent: #ffa246;
    --ok: #3ccf83;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 2px 6px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --shadow-lg: 0 6px 16px rgba(0,0,0,.35), 0 30px 80px rgba(0,0,0,.5);
    --phone-shadow: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -12px rgba(0,0,0,.6), 0 60px 120px -40px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1510;
  --bg-alt: #0f1d16;
  --surface: #13221a;
  --surface-2: #172a20;
  --ink: #eef5ef;
  --ink-2: #d3e0d6;
  --muted: #9fb2a6;
  --line: rgba(230, 245, 235, 0.12);
  --line-strong: rgba(230, 245, 235, 0.2);
  --accent: #3ccf83;
  --accent-ink: #5fdc98;
  --on-accent: #062a1c;
  --green-100: #13301f;
  --green-50: #10261a;
  --yellow-100: #3a2f0f;
  --critical: #ff6b57;
  --urgent: #ffa246;
  --ok: #3ccf83;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 2px 6px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 6px 16px rgba(0,0,0,.35), 0 30px 80px rgba(0,0,0,.5);
  --phone-shadow: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -12px rgba(0,0,0,.6), 0 60px 120px -40px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; font-variation-settings: "SOFT" 60, "opsz" 96; }
h1 { font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.8vw, 62px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.015em; }
em { font-style: italic; }
::selection { background: var(--yellow-300); color: var(--green-950); }
:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 16px; }
.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; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head p.lede { margin-top: 22px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.serif-accent { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 16px/1 var(--font-body); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background-color .2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn-yellow { --btn-bg: var(--yellow-400); --btn-fg: var(--green-950); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 22px 8px 10px;
  border-radius: 18px; background: #0b0f0d; color: #fff;
  text-decoration: none; box-shadow: var(--shadow-md);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.store-btn img { width: 42px; height: 42px; border-radius: 10px; }
.store-btn small { display: block; font-size: 12px; font-weight: 600; opacity: .72; line-height: 1.2; letter-spacing: .01em; }
.store-btn strong { display: block; font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
:root[data-theme="dark"] .store-btn { background: #fff; color: #0b0f0d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store-btn { background: #fff; color: #0b0f0d; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 650; font-size: 23px; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 12px rgba(10,138,78,.25); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: inline-block; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--green-100); color: var(--accent-ink); }
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px; min-height: 44px; padding: 0 22px;
  background: var(--green-600); color: #fff; font-size: 15px; font-weight: 700; line-height: 1;
}
.nav-links a.nav-cta:hover { background: var(--green-700); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { margin: auto; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; left: 12px; right: 12px; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 20px;
    background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a.nav-cta { margin: 6px 0 0; min-height: 52px; }
}

/* ---------- Phone frame ---------- */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 1206 / 2622;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(145deg, #2c302e, #0d0f0e 40%, #1d201f);
  box-shadow: var(--phone-shadow), inset 0 0 0 1.5px rgba(255,255,255,.12), inset 0 0 0 calc(var(--w) * 0.012) #050605;
  flex: none;
}
.phone::after { /* side button */
  content: ""; position: absolute; right: -2px; top: 24%; width: 3px; height: 11%; border-radius: 0 3px 3px 0; background: #1b1e1d;
}
.phone .screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--w) * 0.135);
  overflow: hidden; background: #f2f2f7;
}
.phone .screen img, .phone .screen picture { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .island {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--w) * 0.032 + var(--w) * 0.028);
  width: 31%; height: calc(var(--w) * 0.088); transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.phone .glare {
  position: absolute; inset: calc(var(--w) * 0.032); border-radius: calc(var(--w) * 0.135); z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 28%);
  mix-blend-mode: screen;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(80px, 9vw, 120px); overflow: clip; }
.hero::before { /* paper grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(19,36,26,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; margin-bottom: 26px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.eyebrow .pill { padding: 3px 9px; border-radius: 999px; background: var(--green-100); color: var(--accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .swash { position: relative; display: inline-block; font-style: italic; color: var(--accent); font-weight: 560; }
.hero h1 .swash svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible; }
.hero h1 .swash path { stroke: var(--yellow-400); stroke-width: 9; fill: none; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.1s .5s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--accent); flex: none; }

/* The hero composition is one fixed-proportion stage (designed at 557 × 640 px). Everything in it
   is sized in cqw and placed in % of the stage, so it only scales — it never spreads apart or
   moves relative to the screen sides — and stays centered at every width. */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-stage { position: relative; width: min(557px, 100%); aspect-ratio: 557 / 640; container-type: inline-size; }
.hero-stage .sun, .hero-stage .ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; }
.hero-stage .sun {
  width: 107.7cqw; translate: -36% -54%;
  background: radial-gradient(circle at 35% 30%, var(--yellow-300), var(--yellow-400) 55%, var(--yellow-500));
  box-shadow: inset 0 -30px 60px rgba(214, 140, 0, .25);
}
.hero-stage .ring { width: 112cqw; translate: -50% -50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent); animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-stage .phone { position: absolute; }
.hero-stage .phone.back { --w: 44.88cqw; left: 4%; top: 10%; transform: rotate(-7deg); filter: saturate(.95); }
.hero-stage .phone.front { --w: 52.06cqw; right: 8%; top: 1.25%; transform: rotate(4deg); }
.float-card {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: .86em;
  padding: .86em 1.14em .86em .86em; border-radius: 1.3em;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  font-size: max(9px, 2.51cqw); line-height: 1.3; color: var(--ink); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 800; }
.float-card span { color: var(--muted); font-weight: 600; font-size: .93em; }
.float-card .badge { display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: .86em; flex: none; font-size: 1em; }
.float-card .badge svg { width: 55%; height: 55%; }
.float-card.c1 { left: -2%; top: 18%; animation-delay: -1s; }
.float-card.c2 { right: -4%; top: 56%; animation-delay: -3s; }
.float-card.c3 { left: -8%; top: 63%; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bobStage { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.8cqw); } }
.hero-stage .float-card { animation-name: bobStage; }
.produce { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 18px 22px rgba(6,42,28,.22)); animation: bobStage 7s ease-in-out infinite; }
.produce.p1 { width: 31cqw; right: -13%; top: 30%; animation-delay: -2s; }
.produce.p2 { width: 23.7cqw; right: 0; bottom: -3%; animation-delay: -5s; }
.produce.p3 { width: 24cqw; left: -9.5%; top: 44.8%; animation-delay: -3.5s; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  /* Leave room on the sides for the cards and produce that stick out of the stage. */
  .hero-stage { width: min(557px, 88%); }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; background: var(--green-900); color: var(--yellow-300); padding: 22px 0; transform: rotate(-1.2deg); margin: -10px -20px 0; box-shadow: 0 10px 30px rgba(6,42,28,.2); }
/* site.js clones the list until it covers the viewport and sets the exact shift (one list width, in px),
   so the loop restarts on an identical frame on any screen width. */
.marquee-track { display: flex; width: max-content; will-change: transform; backface-visibility: hidden; animation: marquee var(--marquee-duration, 48s) linear infinite; }
.no-js .marquee-track { animation: none; }
.marquee ul { flex: none; display: flex; align-items: center; gap: 34px; margin: 0; padding: 0 17px; list-style: none; }
.marquee li { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-style: italic; font-weight: 500; white-space: nowrap; letter-spacing: -0.01em; display: flex; align-items: center; gap: 34px; }
.marquee li::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(20,163,94,.25); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 28px 28px 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; background: var(--yellow-400); color: var(--green-950);
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
}
.step:nth-child(2)::before { background: var(--green-100); color: var(--accent-ink); }
.step:nth-child(3)::before { background: var(--green-600); color: #fff; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }
.step .formula { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 10px; background: var(--bg-alt); font: 700 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Interactive demo */
.demo {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
  padding: clamp(18px, 3vw, 34px); border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  box-shadow: var(--shadow-lg); color: #eaf6ee; overflow: hidden;
}
.demo::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,61,.22), transparent 65%); pointer-events: none; }
.demo-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.demo-head h3 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); }
.demo-head p { margin: 0; color: rgba(234,246,238,.72); font-size: 15px; }
.demo-panel { position: relative; padding: 18px; border-radius: 24px; background: #f2f2f7; color: #111; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.demo-panel h4 { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 12px; font: 800 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #6b6b72; }
.demo-panel h4 .tag { padding: 5px 9px; border-radius: 999px; background: #fff; color: var(--green-700); letter-spacing: .02em; text-transform: none; font-size: 12px; }
/* No overflow clipping, so the guide's highlight ring shows whole around a row. */
.demo-rows { margin: 0; padding: 0; list-style: none; background: #fff; border-radius: 16px; }
.demo-rows li:first-child { border-radius: 16px 16px 0 0; }
.demo-rows li:last-child { border-radius: 0 0 16px 16px; }
.demo-rows li:only-child { border-radius: 16px; }
.demo-rows li { display: grid; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-top: 1px solid #ececf0; }
.demo-rows li:first-child { border-top: 0; }
.demo-pantry .demo-rows li { grid-template-columns: 1fr auto; transition: background-color .3s; }
.demo-list .demo-rows li { grid-template-columns: 28px 40px 44px 1fr; transition: background-color .3s; }
.demo-prod { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px; margin: -4px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.demo-prod:hover .demo-name small { color: var(--green-700); }
.demo-name small .pen { display: inline-block; margin-left: 4px; opacity: .55; }
.demo-pantry li.editing { background: #effaf3; }
.demo-pantry li.editing .demo-name small { color: var(--green-700); font-weight: 700; }

/* Target popup, opened by tapping a product in the pantry */
/* top/left and start alignment: WebKit stretches an absolutely positioned grid child with auto
   insets to the full grid height, which would break the measuring done before it is placed. */
.target-pop {
  position: absolute; z-index: 15; top: 0; left: 0; align-self: start; justify-self: start; width: min(280px, calc(100% - 24px));
  padding: 16px; border-radius: 20px; background: #fff; color: #13241a;
  box-shadow: 0 22px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.05);
  animation: popIn .22s cubic-bezier(.2,.8,.2,1);
}
.target-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.target-pop h5 { margin: 0; font: 800 17px/1.2 var(--font-body); }
.target-pop p { margin: 4px 0 14px; font-size: 13px; color: #6b6b72; line-height: 1.4; }
.target-pop .t-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.target-pop .t-row button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eeeef2; color: #13241a; font: 700 22px/1 var(--font-body); cursor: pointer; transition: transform .12s, background-color .15s; }
.target-pop .t-row button:hover { background: #e3e3ea; }
.target-pop .t-row button:active { transform: scale(.92); }
.target-pop .t-field { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 14px; background: #f2f2f7; box-shadow: inset 0 0 0 1.5px #19a556; }
.target-pop input { width: 5ch; padding: 0; border: 0; background: none; color: #13241a; font: 800 26px/1 var(--font-body); text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.target-pop input::-webkit-outer-spin-button, .target-pop input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.target-pop input:focus { outline: none; }
.target-pop .t-field:focus-within { box-shadow: inset 0 0 0 2px #19a556, 0 0 0 4px rgba(25,165,86,.18); }
.target-pop .t-unit { font-weight: 700; color: #6b6b72; }
.target-pop .t-done { display: block; width: 100%; min-height: 42px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--green-600); color: #fff; font: 700 15px/1 var(--font-body); cursor: pointer; }
.target-pop .t-done:hover { background: var(--green-700); }
.demo-thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #eee; }
.demo-name { font-size: 16px; font-weight: 600; line-height: 1.2; }
.demo-name small { display: block; font-size: 13px; font-weight: 500; color: #8a8a90; margin-top: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #eeeef2; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: #111; font: 700 18px/1 var(--font-body); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform .12s; }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 42px; text-align: center; font: 700 15px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.demo-arrow { display: grid; place-items: center; padding: 0 14px; color: var(--yellow-300); }
.demo-arrow svg { width: 44px; height: 44px; }
.check { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--c, #111); }
.check svg { width: 26px; height: 26px; }
.qty { text-align: center; line-height: 1.05; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c, #111); }
.qty small { display: block; font-size: 11px; color: #8a8a90; font-weight: 500; }
.demo-list li.critical { --c: #e5412d; }
.demo-list li.urgent { --c: #f08a24; }
.demo-list li.bought { --c: #19a556; }
.demo-list li.bought.more { --c: #f08a24; }
.demo-list li.skipped { --c: #a2a2a8; }
.demo-list li.done .demo-name { text-decoration: line-through; color: #a2a2a8; }
.demo-list li.done .demo-name small { color: #c2c2c8; }
.demo-list li.done .demo-thumb { filter: grayscale(1); opacity: .7; }
.demo-list li.enter { animation: rowIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: #fff7d6; } }
.demo-empty { display: grid; place-items: center; gap: 6px; min-height: 160px; padding: 24px; text-align: center; color: #6b6b72; font-weight: 600; }
.demo-empty strong { font-family: var(--font-display); font-size: 22px; color: #111; }
.demo-note { grid-column: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; margin-top: 16px; font-size: 14px; font-weight: 600; color: rgba(234,246,238,.82); }
.demo-note span { display: inline-flex; align-items: center; gap: 8px; }
.demo-note i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.flash { animation: flash .7s ease; }
@keyframes flash { 0% { background: #fff3c4; } 100% { background: transparent; } }
.demo > *, .feature > *, .hero-grid > * { min-width: 0; }
/* Quick repeated taps on the steppers must not trigger iOS double-tap zoom. */
.demo { touch-action: manipulation; }

/* Guided tour of the demo */
.demo-tour-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font: 700 14px/1 var(--font-body); cursor: pointer; transition: background-color .2s; }
.demo-tour-btn:hover { background: rgba(255,255,255,.16); }
.demo-tour-btn[hidden] { display: none; }
.coach {
  --ax: 50%;
  position: absolute; z-index: 20; top: 0; left: 0; align-self: start; justify-self: start; width: min(300px, calc(100% - 24px));
  padding: 14px 16px 12px; border-radius: 18px;
  background: #fff; color: #13241a; box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.04);
  transition: top .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.coach[hidden] { display: none; }
.coach-arrow { position: absolute; left: var(--ax); width: 16px; height: 16px; margin-left: -8px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.coach.below .coach-arrow { top: -7px; }
.coach.above .coach-arrow { bottom: -7px; }
.coach-step { margin: 0 0 4px; font: 800 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
.coach-text { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.coach-text b { font-weight: 800; }
.coach-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.coach-skip { padding: 6px 2px; border: 0; background: none; color: #6b6b72; font: 600 13px/1 var(--font-body); cursor: pointer; }
.coach-skip:hover { color: #13241a; text-decoration: underline; }
.coach-next { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--green-600); color: #fff; font: 700 14px/1 var(--font-body); cursor: pointer; }
.coach-next:hover { background: var(--green-700); }
.coach-next[hidden] { display: none; }
.coach-wait { font-size: 13px; font-weight: 600; color: #8a8a90; }
.coach-target { position: relative; z-index: 2; border-radius: 12px; box-shadow: 0 0 0 3px var(--yellow-400); animation: coachPulse 1.6s ease-in-out infinite; }
.demo-rows li.coach-target { border-radius: 14px; }
.target-pop.coach-target { position: absolute; z-index: 15; border-radius: 20px; }
@keyframes coachPulse { 0%, 100% { box-shadow: 0 0 0 3px var(--yellow-400), 0 0 0 3px rgba(255,200,61,.5); } 50% { box-shadow: 0 0 0 3px var(--yellow-400), 0 0 0 10px rgba(255,200,61,0); } }
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .demo-arrow { padding: 12px 0; transform: rotate(90deg); }
  .demo-note { grid-column: 1; }
}
@media (max-width: 480px) {
  .demo { padding: 16px; border-radius: 28px; }
  .demo-panel { padding: 12px; border-radius: 20px; }
  .demo-rows li { gap: 10px; padding: 10px; }
  .demo-list .demo-rows li { grid-template-columns: 26px 36px 40px 1fr; }
  .demo-prod { gap: 10px; }
  .demo-thumb { width: 36px; height: 36px; }
  .stepper button { width: 28px; height: 28px; }
  .stepper output { min-width: 38px; font-size: 14px; }
  .demo-name { font-size: 15px; }
}

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; display: grid; place-items: center; min-height: 600px; }
.feature-media .blob { position: absolute; inset: 6% 4%; border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%; background: var(--green-100); }
.feature-media .blob.yellow { background: var(--yellow-100); }
.feature-media .phone { --w: 300px; z-index: 1; }
.feature-copy h2 { margin-bottom: 22px; }
.feature-copy .lede { margin-bottom: 28px; }
.points { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-100); color: var(--accent-ink); }
.points b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.points span { color: var(--muted); font-size: 16px; line-height: 1.5; }
.tag-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; animation: bob 7s ease-in-out infinite; }
.tag-chip .dot { width: 10px; height: 10px; border-radius: 50%; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { min-height: 0; padding: 30px 0; }
  .feature-media .phone { --w: 260px; }
}

/* Two phones side by side inside a feature */
/* Sized in cqw of the pair (designed 500 px wide), so the two phones scale together and never
   spill over the text column. */
.duo { position: relative; display: flex; align-items: center; justify-content: center; width: min(500px, 100%); container-type: inline-size; }
.duo .phone:first-child { --w: 50cqw; transform: rotate(-5deg) translateX(6cqw); z-index: 1; }
.duo .phone:last-child { --w: 54cqw; transform: rotate(4deg) translateX(-6cqw) translateY(6cqw); z-index: 2; }

/* ---------- Receipt illustration ---------- */
/* Designed 510 px wide; the receipt is sized in em of a cqw font size so the pair scales as one. */
.receipt-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; width: min(510px, 100%); container-type: inline-size; }
.receipt {
  position: relative; z-index: 2; flex: none; width: 20em; padding: 2em 1.7em 2.6em; margin-right: -3.1em; transform: rotate(-4deg);
  background: #fffefa; color: #2a2a2a; box-shadow: var(--shadow-lg);
  font: 500 max(8px, 2.55cqw)/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  margin-top: 6.9em;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/16px 9px repeat-x, linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/16px 9px repeat-x, linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat;
}
.receipt .r-head { text-align: center; font-weight: 800; letter-spacing: .12em; margin-bottom: .3em; }
.receipt .r-sub { text-align: center; color: #8a8a8a; font-size: .85em; margin-bottom: 1.1em; }
.receipt .r-line { display: flex; justify-content: space-between; gap: .77em; padding: 0 .3em; border-radius: .3em; }
.receipt .r-line.hit { background: rgba(255, 200, 61, .45); animation: scanhit 4s ease-in-out infinite; }
.receipt .r-line.hit:nth-of-type(odd) { animation-delay: .4s; }
.receipt .r-rule { border-top: 1.5px dashed #c9c9c9; margin: .77em 0; }
.receipt .r-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15em; padding: 0 .3em; }
.receipt .scanline { position: absolute; left: 0; right: 0; height: 3.1em; top: 0; background: linear-gradient(to bottom, transparent, rgba(20,163,94,.18), transparent); border-bottom: 2px solid rgba(20,163,94,.7); animation: scan 3.6s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes scan { 0% { transform: translateY(0); } 50% { transform: translateY(25.4em); } 100% { transform: translateY(0); } }
@keyframes scanhit { 0%, 100% { background: rgba(255,200,61,.45); } 50% { background: rgba(20,163,94,.22); } }
.receipt-stage .phone { --w: 56.9cqw; flex: none; transform: rotate(3deg); }

/* ---------- Urgency meter ---------- */
.levels { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.level { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.level .lname { font-weight: 800; font-size: 17px; }
.level .lname small { display: block; font-weight: 600; font-size: 14px; color: var(--muted); }
.level .lqty { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--font-display); font-size: 30px; font-weight: 650; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.level .lqty small { font: 800 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meter { grid-column: 1 / -1; position: relative; height: 12px; border-radius: 999px; background: var(--bg-alt); overflow: visible; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--c); width: var(--v); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.meter .mark { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--mc); left: var(--at); }
.level.ok { --c: var(--ok); }
.level.need { --c: var(--ink); }
.level.urgent { --c: var(--urgent); }
.level.critical { --c: var(--critical); }
.reveal:not(.in) .meter .fill { width: 0; }
/* Orange level switch: with it off, the medium threshold disappears and "urgent" rows fall back to "on the list". */
.level-toggle { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 14px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; }
.level-toggle > span:first-child { flex: 1; }
.level-toggle b { display: block; font-size: 17px; }
.level-toggle small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.level-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.level-toggle .switch { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--line-strong); transition: background-color .2s; }
.level-toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.level-toggle input:checked + .switch { background: var(--urgent); }
.level-toggle input:checked + .switch::after { transform: translateX(20px); }
.level-toggle input:focus-visible + .switch { outline: 3px solid var(--yellow-400); outline-offset: 2px; }
.levels-wrap .level { transition: border-color .3s; }
.levels-wrap .level .lqty, .levels-wrap .meter .fill { transition: color .3s, background-color .3s, width 1.2s cubic-bezier(.2,.8,.2,1); }
.levels-wrap.no-orange .level[data-orange] { --c: var(--ink); }
.levels-wrap.no-orange .if-orange { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 3px; height: 16px; border-radius: 2px; display: inline-block; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  position: relative; grid-column: span 4; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 23px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.card .ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: var(--green-100); color: var(--accent-ink); }
.card.span-6 { grid-column: span 6; }
.card.span-8 { grid-column: span 8; }
.card.span-12 { grid-column: span 12; }
.card.tint-yellow { background: var(--yellow-100); border-color: transparent; }
.card.tint-yellow .ic { background: var(--yellow-400); color: var(--green-950); }
.card.tint-green { background: var(--green-800); border-color: transparent; color: #eaf6ee; }
.card.tint-green h3 { color: #fff; }
.card.tint-green p { color: rgba(234,246,238,.78); }
.card.tint-green .ic { background: rgba(255,255,255,.12); color: var(--yellow-300); }
.card .lang { display: flex; gap: 8px; margin-top: 8px; }
.card .lang span { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); font-weight: 700; font-size: 14px; }
.card .mini-variants { display: grid; gap: 8px; margin-top: 10px; }
.card .mini-variants div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; font-weight: 600; }
.card .mini-variants em { font-style: normal; color: var(--muted); font-weight: 600; }
.card .mini-variants .rank { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-100); color: var(--accent-ink); font-size: 12px; font-weight: 800; margin-right: 8px; }
.card .stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.card .stores span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--bg); font-weight: 700; font-size: 14px; }
.card .stores i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; }
.card .notif { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 70%, var(--bg-alt)); border: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; font-size: 14px; line-height: 1.35; }
.card .notif img { width: 36px; height: 36px; border-radius: 9px; }
.card .notif b { display: block; font-size: 14px; }
.card .notif span { color: var(--muted); }
@media (max-width: 1020px) {
  .card, .card.span-6, .card.span-8 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bento { gap: 14px; }
  .card, .card.span-6, .card.span-8, .card.span-12 { grid-column: span 12; padding: 24px; }
}

/* ---------- Photo band ---------- */
.photo-band { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--yellow-400); color: var(--green-950); box-shadow: var(--shadow-lg); }
.photo-band figure { margin: 0; min-height: 440px; position: relative; overflow: hidden; }
.photo-band figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.photo-band .quote { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 64px); }
.photo-band blockquote { margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 560; }
.photo-band p { margin: 0; font-weight: 600; font-size: 16px; color: rgba(6,42,28,.75); }
@media (max-width: 860px) { .photo-band { grid-template-columns: 1fr; } .photo-band figure { min-height: 300px; } }


/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); border-radius: var(--radius-xl); background: radial-gradient(120% 140% at 85% 0%, var(--green-500) 0%, var(--green-700) 38%, var(--green-950) 100%); color: #eaf6ee; text-align: center; box-shadow: var(--shadow-lg); }
.final-cta::before, .final-cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.final-cta::before { width: 360px; height: 360px; left: -120px; bottom: -180px; background: radial-gradient(circle, rgba(255,200,61,.35), transparent 70%); }
.final-cta::after { width: 260px; height: 260px; right: 8%; top: -160px; border: 1.5px dashed rgba(255,255,255,.18); }
.final-cta .app-icon { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,.06); transform: rotate(-6deg); }
.final-cta h2 { color: #fff; margin-bottom: 18px; }
.final-cta p { max-width: 54ch; margin: 0 auto 32px; color: rgba(234,246,238,.82); font-size: clamp(17px, 1.6vw, 20px); }
.final-cta .store-btn { background: #fff; color: #0b0f0d; }
.final-cta .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 40px; border-top: 1px solid var(--line); margin-top: var(--section-y); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 800 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer-grid a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin-top: 16px; font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Inner pages (support, privacy) ---------- */
.page-hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--yellow-400) 55%, transparent), transparent 68%); pointer-events: none; }
.page-hero h1 { font-size: clamp(42px, 6vw, 76px); margin-bottom: 18px; position: relative; z-index: 1; }
.page-hero .lede { position: relative; z-index: 1; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; position: relative; z-index: 1; }
.quick a { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: center; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quick .ic { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); color: var(--accent-ink); }
.quick b { font-size: 17px; }
.quick span { color: var(--muted); font-size: 14px; font-weight: 500; }
@media (max-width: 860px) { .quick { grid-template-columns: 1fr; } }

.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: 15px; }
.faq-nav a:hover { background: var(--green-100); color: var(--accent-ink); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
details.qa { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; transition: box-shadow .2s, border-color .2s; }
details.qa[open] { box-shadow: var(--shadow-md); border-color: transparent; }
details.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; line-height: 1.35; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230e6b43' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .answer { padding: 0 22px 20px; color: var(--ink-2); }
details.qa .answer p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { display: none; } }

/* Contact form */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-aside { position: sticky; top: 100px; }
.contact-aside .note { margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: var(--green-50); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.contact-aside .note b { color: var(--ink); }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field .label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font: 500 16px/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6d63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--critical); }
.field .hint { font-size: 13px; color: var(--muted); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.topics span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 650; font-size: 15px; color: var(--ink-2); transition: all .15s; }
.topics input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.topics input:focus-visible + span { outline: 3px solid var(--yellow-400); outline-offset: 2px; }
.hp { position: absolute !important; left: -5000px !important; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-foot p { margin: 0; font-size: 13px; color: var(--muted); max-width: 44ch; }
.form-status { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 16px; font-weight: 600; }
.form-status.ok { display: block; background: var(--green-100); color: var(--accent-ink); }
.form-status.err { display: block; background: color-mix(in srgb, var(--critical) 12%, transparent); color: var(--critical); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.sent { display: none; text-align: center; padding: 40px 10px; }
.sent .ic { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 24px; background: var(--green-100); color: var(--accent-ink); }
.sent h3 { margin-bottom: 10px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .sent { display: block; animation: rowIn .5s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact-aside { position: static; } .field-row { grid-template-columns: 1fr; } }

/* Legal / long-form */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font: 800 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; }
.toc a:hover, .toc a.active { background: var(--green-100); color: var(--accent-ink); }
.prose { max-width: 72ch; font-size: 17px; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 56px 0 16px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-body); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prose td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 48px; padding: 0; list-style: none; }
.glance li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.glance .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-100); color: var(--accent-ink); }
.glance b { display: block; color: var(--ink); }
.glance span { font-size: 15px; color: var(--muted); }
.updated { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); position: relative; z-index: 1; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; } .glance { grid-template-columns: 1fr; } }

/* Handoff pages (join, emailconfirmed): the web side of a link meant for the app. Same fixed-
   proportion stage idea as the hero (designed at 460 × 460 px, sized in cqw). */
.handoff { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); overflow: hidden; }
.handoff-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.handoff h1 { font-size: clamp(40px, 5.6vw, 70px); margin-bottom: 20px; }
.handoff .cta-row { margin-top: 32px; }
.handoff-note { margin: 22px 0 0; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; font-weight: 600; max-width: 52ch; }
.handoff-note svg { flex: none; margin-top: 2px; color: var(--accent); }
.handoff-visual { display: flex; justify-content: center; }
.handoff-stage { position: relative; width: min(460px, 100%); aspect-ratio: 1; container-type: inline-size; }
.handoff-stage .sun, .handoff-stage .ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; }
.handoff-stage .sun { width: 78cqw; translate: -50% -50%; background: radial-gradient(circle at 35% 30%, var(--yellow-300), var(--yellow-400) 55%, var(--yellow-500)); box-shadow: inset 0 -30px 60px rgba(214, 140, 0, .25); }
.handoff-stage .ring { width: 100cqw; translate: -50% -50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent); animation: spin 120s linear infinite; }
.handoff-icon { position: absolute; left: 50%; top: 50%; width: 44cqw; translate: -50% -50%; rotate: -6deg; border-radius: 22.5%; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 24px 48px -12px rgba(6,42,28,.4), 0 0 0 2.4cqw rgba(255,255,255,.35); }
.handoff-check { position: absolute; z-index: 3; left: 61%; top: 59%; display: grid; place-items: center; width: 17cqw; aspect-ratio: 1; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 1.6cqw var(--bg), var(--shadow-lg); animation: popIn .6s cubic-bezier(.2,.8,.2,1) .2s both; }
.handoff-check svg { width: 52%; height: 52%; }
.handoff-stage .float-card { font-size: max(10px, 3.2cqw); animation-name: bobStage; }
.handoff-stage .float-card.h1 { left: -4%; top: 14%; animation-delay: -1s; }
.handoff-stage .float-card.h2 { right: -6%; bottom: 13%; animation-delay: -3.5s; }
.avatars { display: flex; }
.avatars i { display: grid; place-items: center; width: 2.2em; height: 2.2em; margin-left: -.5em; border-radius: 50%; border: .16em solid var(--surface); color: #fff; font-style: normal; font-weight: 800; font-size: .92em; }
.avatars i:first-child { margin-left: 0; }
.avatars i.you { background: var(--surface); color: var(--accent-ink); border: .14em dashed var(--accent); }
.handoff-stage .produce.p1 { width: 30cqw; right: -9%; top: 26%; animation-delay: -2s; }
.handoff-stage .produce.p3 { width: 25cqw; left: -7%; bottom: 6%; top: auto; animation-delay: -4s; }
.handoff-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.handoff-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: start; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.handoff-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--green-100); color: var(--accent-ink); font: 700 20px/1 var(--font-display); }
.handoff-steps b { font-size: 17px; }
.handoff-steps span { color: var(--muted); font-size: 15px; font-weight: 500; }
.handoff-more h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 22px; }
@media (max-width: 860px) {
  .handoff-grid { grid-template-columns: 1fr; }
  .handoff-stage { width: min(320px, 78%); }
  .handoff-steps { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .swash path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}
