/* Components only the Groceries landing page uses — hero, device bezels, bands,
   bento, the privacy inset and the closing card. They stay out of shared/base.css
   so privacy.html and support.html don't carry ~8 KB they never draw. Tokens are
   still shared: every colour here comes from a custom property in base.css. */

/* ── header: the landing page is the one page with a download button ── */
header .btn { padding: 7px 16px; font-size: 12px; }
@media (max-width: 760px) { .nav-links { display: none; } }
section { position: relative; }
/* flush under the sticky bar — any extra offset leaves a sliver of the previous
   band showing, and --band-y already provides the breathing room */
section[id] { scroll-margin-top: var(--nav-h); }

.btn-lg { font-size: 19px; padding: 15px 31px; }

/* ── device bezels ──────────────────────────────────────────────────
   Concentric radius rule: screen radius ≈ 12.8% of screen width, and the
   bezel's outer radius = screen radius + bezel width. Getting this wrong is
   what makes a mockup read as a generic slab. iPad and Watch keep the rule
   with their own ratios — an iPad's corners are far shallower than a phone's,
   a watch's far deeper. */
.device {
  position: relative; margin-inline: auto;
  width: min(300px, 74vw);
  padding: 9px;
  border-radius: 45px;
  background: linear-gradient(150deg, #6e6e73 0%, #1d1d1f 30%, #48484a 62%, #0b0b0c 100%);
  box-shadow: 0 18px 48px rgba(42, 33, 27, .20);
}
.device::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; border: .5px solid rgba(255, 255, 255, .24);
  pointer-events: none;
}
.device picture { display: block; }
.device img { display: block; width: 100%; height: auto; border-radius: 36px; }

.device.lg    { width: min(324px, 76vw); padding: 10px; border-radius: 49px; }
.device.lg img { border-radius: 39px; }

.device.ipad     { width: min(420px, 80vw); padding: 11px; border-radius: 29px; }
.device.ipad img { border-radius: 18px; }

.device.watch     { width: min(176px, 46vw); padding: 12px; border-radius: 45px; }
.device.watch img { border-radius: 33px; }

.forest .device { box-shadow: 0 26px 64px rgba(0, 0, 0, .5); }

/* ── bands ──────────────────────────────────────────────────────── */
.forest { background: var(--forest); color: var(--on-forest); }
.forest .t-intro, .forest .t-small { color: var(--on-forest-2); }
.forest .eyebrow { color: var(--amber-lite); }
.forest a { color: var(--amber-lite); }

/* ── hero ───────────────────────────────────────────────────────── */
/* the bloom is wider than the stage; clip on x only so the ::before gradient
   still bleeds up under the translucent header */
.hero { padding: calc(var(--band-y) * .72) 0 var(--band-y); overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto; height: 620px; z-index: 0;
  background: linear-gradient(180deg, rgba(146, 201, 186, .40) 0%, rgba(250, 240, 212, .26) 46%, rgba(253, 248, 242, 0) 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { max-width: 33rem; }
.hero h1 { margin: 14px 0 20px; }
/* the one place colour touches the type — the app's own ramp */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #0f6e56 0%, #b8760a 54%, #c2470a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .t-intro { max-width: 30rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.cta-note { margin-top: 16px; }

.stage { position: relative; display: flex; justify-content: center; }
.bloom {
  position: absolute; z-index: 0;
  width: 136%; aspect-ratio: 1;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background:
    radial-gradient(44% 40% at 50% 22%, rgba(146, 201, 186, .64), transparent 70%),
    radial-gradient(48% 44% at 50% 80%, rgba(255, 183, 96, .58), transparent 70%),
    radial-gradient(38% 30% at 50% 52%, rgba(250, 240, 212, .52), transparent 72%);
  filter: blur(56px);
  pointer-events: none;
}
.stage .device { position: relative; z-index: 1; }

.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 15px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, .84);
  border: .5px solid rgba(42, 33, 27, .10);
  box-shadow: 0 10px 30px rgba(42, 33, 27, .13);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  font-size: 14px; letter-spacing: -.016em; font-weight: 500;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: -.01em; }
.chip .tick,
.chip .flag { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; }
.chip .tick { background: var(--groceries); }
.chip .flag { background: #e8801d; }
.chip-a { top: 13%; left: -14%; animation-delay: -1s; }
.chip-b { bottom: 16%; right: -13%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 36rem; margin-inline: auto; }
  .hero .t-intro { margin-inline: auto; }
  .cta-row { justify-content: center; }
  /* stacked: the stage is full-width, so 0 already overhangs the device —
     negative offsets here would run past the viewport edge */
  .chip-a { left: 0; } .chip-b { right: 0; }
}
@media (max-width: 560px) {
  .chip-a { top: 7%; } .chip-b { bottom: 11%; }
  .chip { font-size: 13px; padding: 9px 13px; }
}

/* ── trust strip ────────────────────────────────────────────────── */
.trust { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 18px 0; }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.trust span { padding: 0 24px; border-left: 1px solid var(--hair); font-size: 15px; letter-spacing: -.016em; color: var(--ink-2); }
.trust span:first-child { border-left: 0; }
@media (max-width: 680px) { .trust span { border-left: 0; padding: 0 12px; } }

/* ── split feature ──────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-copy h2 { margin: 12px 0 18px; }
.split-visual { display: flex; justify-content: center; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; }
.facts li { padding: 18px 0; border-top: 1px solid var(--hair); }
.facts li:last-child { border-bottom: 1px solid var(--hair); }
.facts h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.022em; margin-bottom: 4px; }
.forest .facts li { border-color: rgba(246, 239, 229, .22); }

/* two phones, the typing and the answer it gives back */
.pair { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2vw, 20px); }
/* 216 + 216 + gap has to clear the split column, which is ~488px at --maxw */
.pair .device { width: min(216px, 38vw); padding: 7px; border-radius: 34px; }
.pair .device img { border-radius: 27px; }
.pair .device:last-child { margin-bottom: clamp(16px, 4vw, 40px); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { order: 0 !important; }
}

/* ── bento ──────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
.tile {
  background: var(--tile, var(--white));
  border-radius: var(--r-l);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.tile-body { padding: 30px 30px 6px; }
.tile .kicker { font-size: 15px; line-height: 1.33; letter-spacing: -.014em; font-weight: 600; margin-bottom: 8px; color: var(--tint, var(--ember)); }
.tile h3 { margin-bottom: 8px; }
.tile p { font-size: 15px; line-height: 1.4286; letter-spacing: -.016em; color: var(--ink-2); }

.t-cats   { grid-column: span 3; --tile: #f1f1fb; --tint: #5546b8; }
.t-watch  { grid-column: span 3; --tile: #eef7f1; --tint: #15704a; }
.t-glance { grid-column: span 3; --tile: #fff3ea; --tint: #b8480a; }
.t-import { grid-column: span 3; --tile: #fff6e6; --tint: #976005; }

/* a screen cropped at the tile's edge, as if the device carries on below it */
.peek { margin-top: auto; height: 176px; overflow: hidden; display: flex; justify-content: center; padding: 0 24px; }
.peek .device { width: 100%; max-width: 250px; padding: 7px 7px 0; border-radius: 37px 37px 0 0; box-shadow: 0 -2px 24px rgba(42, 33, 27, .14); }
.peek .device img { border-radius: 30px 30px 0 0; height: 169px; object-fit: cover; object-position: top; }

.watch-art { margin-top: auto; padding: 16px 24px 30px; display: flex; justify-content: center; }
.watch-art .device { width: min(168px, 52%); }

.rows { margin: 8px 30px 30px; display: grid; gap: 8px; }
.rows div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-s); background: rgba(255, 255, 255, .72); font-size: 15px; letter-spacing: -.016em; }
.rows i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fff; font-size: 14px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-cats, .t-watch, .t-glance, .t-import { grid-column: span 1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
}

/* ── privacy inset ──────────────────────────────────────────────── */
.privacy { background: var(--espresso); color: var(--on-esp); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.privacy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 54% at 8% 4%, rgba(15, 110, 86, .40), transparent 62%),
    radial-gradient(50% 50% at 94% 98%, rgba(232, 128, 29, .22), transparent 60%);
}
.privacy > * { position: relative; }
.privacy .eyebrow { color: var(--amber-lite); }
.privacy h2 { margin: 12px 0 16px; max-width: 20ch; }
.privacy .t-intro { color: var(--on-esp-2); max-width: 48ch; }
.privacy a { color: #f5a97a; }
.pcols { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(36px, 5vw, 56px); }
.pcols > div { padding: 4px 30px; border-left: 1px solid rgba(245, 237, 228, .20); }
.pcols > div:first-child { border-left: 0; padding-left: 0; }
.pcols > div:last-child { padding-right: 0; }
.pcols h3 { font-size: 21px; line-height: 1.19; letter-spacing: .011em; margin-bottom: 8px; }
.pcols p { font-size: 15px; line-height: 1.4286; letter-spacing: -.016em; color: var(--on-esp-2); }
.privacy-foot { margin-top: 34px; font-size: 12px; line-height: 1.333; letter-spacing: -.01em; color: var(--on-esp-2); max-width: 64ch; }
@media (max-width: 820px) {
  .pcols { grid-template-columns: 1fr; }
  .pcols > div { border-left: 0; border-top: 1px solid rgba(245, 237, 228, .20); padding: 24px 0 0; margin-top: 24px; }
  .pcols > div:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
}

/* ── closing card ───────────────────────────────────────────────── */
.final { padding: var(--band-y) 0 calc(var(--band-y) * 1.1); text-align: center; }
.final-card {
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 60px);
  background: linear-gradient(168deg, var(--g-mint) 0%, var(--g-cream) 46%, #ffd49a 72%, var(--g-amber) 100%);
  color: var(--ink);
}
.final-card .icon-lg { width: 84px; height: 84px; border-radius: 19px; margin: 0 auto 26px; box-shadow: 0 12px 30px rgba(90, 60, 20, .32); }
/* .78, not .74: against the mint end of the ramp .74 falls to 4.46:1 */
.final-card p { color: rgba(42, 33, 27, .78); max-width: 36ch; margin-inline: auto; }
.final-card .btn { margin-top: 30px; }
.specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; margin-top: 28px; }
.specs span { padding: 0 20px; border-left: 1px solid rgba(42, 33, 27, .26); font-size: 15px; letter-spacing: -.016em; color: rgba(42, 33, 27, .78); }
.specs span:first-child { border-left: 0; }
@media (max-width: 620px) { .specs span { border-left: 0; padding: 0 10px; } }

/* ── footer note ────────────────────────────────────────────────── */
footer .foot-note { width: 100%; order: -1; margin-bottom: 8px; }

/* ── reveal ─────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.28, .11, .32, 1), transform .9s cubic-bezier(.28, .11, .32, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
