/*
  SL-614: the stylesheet of the two HOME pages, / (EN) and /fr/ (FR).
  The six legal documents keep legal.css; each page links exactly one sheet
  (test/legal/legal_pages_test.dart).

  Identity per docs/BRAND.md: paper, header green, basilic and the check
  yellow (§3.1), the avatar tints (§3.3), the aisle colours as section
  punctuation only (§3.2), the night palette for dark mode (§3.5), Poppins
  (§4) served from /fonts on this origin, flat fills with no gradient or
  shadow on any shape (§2.3), the Délice timings for motion (§6), all of it
  off under prefers-reduced-motion.

  EXTERNAL and free of inline styles because the CSP in firebase.json is
  style-src 'self' with no 'unsafe-inline': a style="" attribute would be
  refused, so per-element colours are classes (.c-produce …).
*/

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
/* Layout concept: the page reads like a Mirilio list. A deep green header
   band (the app's list header) opens it, every section is introduced by an
   aisle capsule label, and the real app screens sit in one flat phone frame. */
:root {
  --paper: #FBFBF8;        /* page                      (paper)       */
  --surface: #FFFFFF;      /* cards                                   */
  --tint: #E6EEE8;         /* alternate bands, chips    (basketDisc)  */
  --ink: #18201C;          /* body text                               */
  --muted: #59605C;        /* secondary text, 6.2:1 on paper          */
  --line: #DDE4DF;         /* hairlines                               */
  --deep: #1E4635;         /* header, hero, CTA band    (header)      */
  --brand: #2F6B4E;        /* links, checks, buttons    (basilic)     */
  --on-brand: #FBFBF8;
  --accent: #F2B63C;       /* primary CTA + progress    (check yellow) */
  --accent-hover: #F5C35E;
  --on-accent: #1E4635;
  --on-deep: #FBFBF8;
  --on-deep-muted: rgba(251, 251, 248, .8);
  --on-deep-faint: rgba(251, 251, 248, .12);
  --frame: #0E1A14;
  --badge: #0B0F0D;
  --badge-ink: #FBFBF8;
  --checked: #6B706C;      /* checkedInk                              */
  --sage: #CFE3D4; --sage-ink: #1E4635;
  --amber: #F2B63C; --amber-ink: #1E4635;
  --lavender: #D8D6F0; --lavender-ink: #3B356B;
  --apricot: #F6D9C0; --apricot-ink: #7A4A21;
  /* Aisle accents: punctuation only (capsules, dots), never text */
  --a-produce: #5C9E52; --a-bakery: #A67C52; --a-meat: #C4502F; --a-deli: #B06A8C;
  --a-dairy: #4E8AC0; --a-savory: #C08A3E; --a-sweet: #D2A24C; --a-frozen: #5FA8B5;
  --a-drinks: #7B68A6; --a-household: #77837B; --a-health: #8E9AA6; --a-pets: #B5615A; --a-other: #9A9C92;

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.25rem, 1.55rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(64px, 9vw, 112px);
  --gutter: 20px;
  --max: 1120px;

  --r-chip: 10px; --r-card: 16px; --r-panel: 24px; --r-pill: 999px;

  /* Motion: the app's Délice timings */
  --t-tick: 180ms cubic-bezier(.34, 1.56, .64, 1);
  --t-settle: 220ms ease-in-out;
  --t-reveal: 300ms ease-out;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121815; --surface: #1A2420; --tint: #233A2E; --ink: #E8EDEA; --muted: #A2AAA5;
    --line: #2B3731; --brand: #8FD0AA; --on-brand: #1E4635; --checked: #808682;
    --frame: #050A07; --badge: #050806;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--deep);
}
h1, h2, h3 { font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-chip);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

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

/* Aisle colours as classes: the CSP refuses inline style attributes. */
.c-produce { --c: var(--a-produce); } .c-bakery { --c: var(--a-bakery); } .c-meat { --c: var(--a-meat); }
.c-deli { --c: var(--a-deli); } .c-dairy { --c: var(--a-dairy); } .c-savory { --c: var(--a-savory); }
.c-sweet { --c: var(--a-sweet); } .c-frozen { --c: var(--a-frozen); } .c-drinks { --c: var(--a-drinks); }
.c-household { --c: var(--a-household); } .c-health { --c: var(--a-health); } .c-pets { --c: var(--a-pets); }
.c-other { --c: var(--a-other); } .c-accent { --c: var(--accent); } .c-sage { --c: var(--sage); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--deep); color: var(--on-deep);
}
.topbar .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.lockup .mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.sitenav { display: none; gap: var(--s5); }
.sitenav a, .langmenu summary { color: var(--on-deep-muted); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.sitenav a:hover, .langmenu summary:hover, .langmenu[open] summary { color: var(--on-deep); }
/* SL-623: the language menu. A <details>, so it opens with no script; the
   script only closes it on a click outside or on Escape. */
.langmenu { position: relative; }
.langmenu summary {
  list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding-inline: 4px;
}
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary svg { width: 12px; height: 12px; transition: transform var(--t-settle); }
.langmenu[open] summary svg { transform: rotate(180deg); }
.langmenu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 8px;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 0 8px;
  background: var(--surface); color: var(--ink); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .18);
}
.langmenu li a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap;
}
.langmenu li a:hover { background: var(--tint); }
.langmenu li a[aria-current] { color: var(--brand); font-weight: 600; }
/* On a phone the panel hangs from the header, gutter to gutter: anchored to
   the two letters it would run off the left edge. */
@media (max-width: 519px) {
  .langmenu { position: static; }
  .langmenu ul {
    left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px));
    top: calc(100% + 6px); grid-template-columns: 1fr 1fr;
  }
}
/* On the narrowest phones the lockup, the menu and the button share 280 px:
   « Télécharger » and « Downloaden » need the room the chevron takes. */
@media (max-width: 399px) {
  .topbar .wrap { gap: var(--s2); }
  .langmenu summary svg { display: none; }
  .topbar .btn-sm { padding-inline: 12px; }
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--on-deep-faint); }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (min-width: 860px) { .sitenav { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); border: 0;
  font: 600 .9375rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform var(--t-tick), background-color var(--t-settle);
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }

.storerow { display: flex; flex-wrap: wrap; gap: var(--s3); }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 14px;
  background: var(--badge); color: var(--badge-ink); border-radius: 14px; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(251, 251, 248, .22); flex: 1 1 170px; max-width: 230px;
  transition: transform var(--t-tick);
}
.store:active { transform: scale(.97); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.15; white-space: nowrap; }
.store small { font-size: .6875rem; opacity: .8; letter-spacing: .02em; }
.store b { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- aisle label (the app's section idiom) ---------- */
.aisle {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.aisle::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--c, var(--a-produce)); flex: none; }

/* ---------- phone frame ----------
   The <img> is the store screenshot itself (byte-identical to the store set,
   pinned by legal_pages_test). The screen is cropped here: in the 1080 x 1920
   store image the app screen is the 694 x 1389 box at (193, 443). */
.phone {
  width: 100%; max-width: 300px; padding: 3%; border-radius: 10.5% / 5.25%;
  background: var(--frame); box-shadow: inset 0 0 0 1px rgba(251, 251, 248, .08);
}
.screen { position: relative; overflow: hidden; aspect-ratio: 694 / 1389; border-radius: 8% / 4%; }
.screen img { position: absolute; max-width: none; width: 155.62%; height: auto; left: -27.81%; top: -31.89%; }

/* ---------- hero ---------- */
.hero { background: var(--deep); color: var(--on-deep); }
.hero .wrap { display: grid; gap: var(--s7); padding-top: clamp(40px, 7vw, 88px); }
.hero-copy { display: grid; gap: var(--s5); align-content: start; max-width: 36rem; min-width: 0; }
/* SL-623: « boodschappenlijst », « Einkaufsliste », « ostoslista » are one
   word each; at display size on a 320 px phone a long one must be allowed
   to hyphenate, or it widens the page. */
.site h1, .site h2, .site h3 { overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 12 4 4; }
.news {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-small); font-weight: 500; color: var(--on-deep);
  background: var(--on-deep-faint); border-radius: var(--r-pill); padding: 6px 14px 6px 10px;
}
.news i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -.025em; }
.hero .lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--on-deep-muted); max-width: 33rem; }
.trust { display: flex; flex-direction: column; gap: var(--s2) var(--s5); list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--on-deep-muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; flex: none; color: var(--sage); }
@media (min-width: 520px) { .trust { flex-direction: row; flex-wrap: wrap; } }
.hero-visual { justify-self: center; width: min(290px, 74vw); margin-bottom: -150px; position: relative; z-index: 2; }
.hero-visual .phone { max-width: none; }
.hero-caption {
  position: absolute; top: 46%; z-index: 3; display: none;
  background: var(--surface); color: var(--ink); border-radius: var(--r-card);
  padding: 12px 16px; font-size: var(--fs-small); line-height: 1.4; max-width: 200px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-caption b { display: block; font-weight: 600; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: end; }
  .hero-copy { padding-bottom: var(--s9); }
  .hero-visual { width: 300px; margin-bottom: -120px; }
  .hero-caption { display: block; left: -200px; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.band { background: var(--tint); }
.section-head { display: grid; gap: var(--s3); max-width: 40rem; margin-bottom: var(--s7); }
.section-head h2, .split h2, .demo h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.section-head p, .split .lead, .demo .lead { color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; }

.benefits { padding-top: calc(150px + var(--section) * .6); }
@media (min-width: 900px) { .benefits { padding-top: calc(120px + var(--section) * .7); } }
.benefit-grid { display: grid; gap: var(--s6); }
.benefit { display: grid; gap: var(--s2); align-content: start; }
.benefit h3 { font-size: var(--fs-h3); line-height: 1.3; }
.benefit p { color: var(--muted); }
@media (min-width: 760px) { .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7); } }

.split { display: grid; gap: var(--s7); align-items: center; }
.split-copy { display: grid; gap: var(--s4); align-content: start; min-width: 0; max-width: 34rem; }
.ticks { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s3); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.ticks .minus svg { color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); justify-items: center; max-width: 560px; justify-self: center; width: 100%; }
.pair .phone { max-width: 260px; }
.pair .shot:nth-child(2) { margin-top: var(--s8); }
.pair figcaption { margin-top: var(--s3); font-size: var(--fs-small); color: var(--muted); text-align: center; text-wrap: balance; }
@media (max-width: 639px) {
  .pair {
    display: flex; gap: var(--s4); max-width: none; justify-items: initial;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    width: calc(100% + 2 * var(--gutter));
  }
  .pair::-webkit-scrollbar { display: none; }
  .pair .shot { flex: 0 0 68%; scroll-snap-align: start; }
  .pair .shot:nth-child(2) { margin-top: 0; }
  .pair .phone { max-width: none; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s9); }
  .split.flip .split-copy { order: 2; }
}

/* ---------- demo ---------- */
/* minmax(0, 1fr) so no child can widen the column past a narrow screen. */
.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); align-items: start; }
.demo-form { display: grid; gap: var(--s4); min-width: 0; max-width: 34rem; }
.field { display: grid; gap: var(--s2); min-width: 0; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field-row { display: flex; gap: var(--s2); min-width: 0; }
.field input {
  /* width: 0 drops the field's default ~200 px intrinsic width, which made
     the row 301 px wide and the page drag sideways on a 360 px phone. */
  flex: 1; width: 0; min-width: 0; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 1.0625rem var(--font);
}
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.field .btn { min-height: 52px; padding-inline: 24px; }
.detected { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--fs-small); color: var(--muted); min-height: 36px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px;
  border-radius: var(--r-chip); background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font: 500 var(--fs-small)/1.2 var(--font);
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--a-other)); }
.chip em { font-style: normal; color: var(--muted); font-weight: 400; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--brand); }
.examples { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: var(--fs-small); color: var(--muted); }
.demo-note { font-size: var(--fs-small); color: var(--muted); }

.app {
  width: 100%; max-width: 420px; justify-self: center; border-radius: var(--r-panel); overflow: hidden;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); min-width: 0;
}
.app-head { background: var(--deep); color: var(--on-deep); padding: 16px 18px 14px; display: grid; gap: 12px; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--on-deep-faint); border-radius: var(--r-pill); padding: 6px 14px; font-weight: 700; font-size: 1.0625rem; }
.list-pill svg { width: 14px; height: 14px; }
.avatars { display: flex; }
.av {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .75rem; font-weight: 700; background: var(--bg-av); color: var(--ink-av);
  box-shadow: 0 0 0 2px var(--deep); flex: none;
}
.avatars .av + .av { margin-left: -6px; }
.av-amber { --bg-av: var(--amber); --ink-av: var(--amber-ink); }
.av-sage { --bg-av: var(--sage); --ink-av: var(--sage-ink); }
.av-lavender { --bg-av: var(--lavender); --ink-av: var(--lavender-ink); }
.av-apricot { --bg-av: var(--apricot); --ink-av: var(--apricot-ink); }
.count { font-size: .9375rem; font-variant-numeric: tabular-nums; }
.count b { font-weight: 700; }
.bar { height: 8px; border-radius: 4px; background: rgba(251, 251, 248, .25); overflow: hidden; }
.bar span { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 4px; transition: width var(--t-reveal); }
.presence { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--on-deep-muted); }
.presence .av { width: 18px; height: 18px; font-size: .5625rem; box-shadow: none; }
.app-body { padding: 6px 18px 18px; max-height: 470px; overflow-y: auto; }
.aisle-block { padding-top: 14px; }
.aisle-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.aisle-title .aisle { color: var(--ink); opacity: .85; }
.aisle-title small { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.item {
  width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 9px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  font: 500 .9375rem/1.3 var(--font); border-radius: 8px;
}
.item .box { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--checked); display: grid; place-items: center; transition: background-color var(--t-settle); }
.item .box svg { width: 14px; height: 14px; color: var(--on-brand); opacity: 0; }
.item[aria-pressed="true"] .box { background: var(--brand); border-color: var(--brand); }
.item[aria-pressed="true"] .box svg { opacity: 1; }
.item[aria-pressed="true"] .name { text-decoration: line-through; color: var(--checked); font-weight: 400; }
.item .name { min-width: 0; overflow-wrap: anywhere; }
.item .qty { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.item .who { width: 18px; height: 18px; font-size: .5625rem; box-shadow: none; visibility: hidden; }
.item[aria-pressed="true"] .who { visibility: visible; }
.item.is-new { animation: arrive 900ms ease-out; }
.item.pop .box { animation: tick 180ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes arrive { 0% { background: color-mix(in srgb, var(--accent) 35%, transparent); } 100% { background: transparent; } }
@keyframes tick { from { transform: scale(.8); } to { transform: scale(1); } }
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s9); } }

/* ---------- sharing card ---------- */
.share-card {
  background: var(--deep); color: var(--on-deep); border-radius: var(--r-panel); padding: clamp(20px, 4vw, 32px);
  display: grid; gap: var(--s5); width: 100%; max-width: 460px; justify-self: center;
  box-shadow: inset 0 0 0 1px rgba(251, 251, 248, .1); /* keeps its edge on the dark band */
}
.share-card .app-row { flex-wrap: wrap; }
.share-card .aisle { color: var(--on-deep-muted); white-space: nowrap; }
.share-card .avatars .av { width: 52px; height: 52px; font-size: 1.125rem; box-shadow: 0 0 0 3px var(--deep); }
.share-card .avatars .av + .av { margin-left: -10px; }
@media (max-width: 479px) { .share-card .avatars .av { width: 44px; height: 44px; font-size: 1rem; } }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-size: var(--fs-small); color: var(--on-deep-muted); line-height: 1.4; }
.feed .av { width: 28px; height: 28px; font-size: .6875rem; box-shadow: none; }
.feed b { color: var(--on-deep); font-weight: 600; }
.invite {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--on-deep-faint); border-radius: var(--r-card); padding: 12px 14px; font-size: var(--fs-small);
}
.invite code { font-family: inherit; color: var(--on-deep); overflow-wrap: anywhere; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: var(--s4); max-width: 820px; }
.plan {
  background: var(--surface); border-radius: var(--r-card); padding: var(--s6) var(--s5);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--s4); align-content: start;
}
.plan-premium { box-shadow: inset 0 0 0 2px var(--brand); }
.plan header { display: grid; gap: var(--s2); }
.plan h3 { font-size: var(--fs-h3); }
.price { font-size: 2.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: .9375rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .ticks li { font-size: .9375rem; }
.plans-note { margin-top: var(--s5); color: var(--muted); font-size: var(--fs-small); max-width: 46rem; }
.plans-note strong { color: var(--ink); font-weight: 600; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: 18px 0; font-weight: 600; font-size: 1.0625rem; min-height: 60px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background-color: var(--tint); background-repeat: no-repeat; background-position: center;
  background-image: linear-gradient(var(--brand), var(--brand)), linear-gradient(var(--brand), var(--brand));
  background-size: 12px 2px, 2px 12px; transition: transform var(--t-settle);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* ---------- final CTA ---------- */
.cta { background: var(--deep); color: var(--on-deep); text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: var(--s5); padding-block: var(--section); }
.cta .mark { width: 76px; height: 76px; }
.cta h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.02em; }
.cta p { color: var(--on-deep-muted); max-width: 32rem; }
.cta .storerow { justify-content: center; }

/* ---------- footer ---------- */
.sitefoot { padding-block: var(--s7); font-size: var(--fs-small); color: var(--muted); }
.sitefoot .wrap { display: grid; gap: var(--s5); }
.sitefoot .lockup { color: var(--ink); }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.sitefoot nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.sitefoot nav a:hover { color: var(--brand); }
.sitefoot .mail { color: var(--ink); font-weight: 500; }
.sitefoot .langs { gap: 0 var(--s4); }
.sitefoot .langs a { color: var(--muted); }

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

/* ---------- SL-660: premade grocery lists (/lists) ----------
   Generated by tool/gen_premade.dart. The page is the list itself, grouped
   by aisle like the app, with an empty box per line to tick on paper. */
.premade .wrap { display: grid; gap: var(--s4); padding-block: clamp(32px, 6vw, 72px); max-width: calc(52rem + 2 * var(--gutter)); }
.premade h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.premade .lead { font-size: var(--fs-lead); color: var(--muted); max-width: 44rem; }
.premade-season { font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.premade-meta { font-weight: 500; }
.premade-hint, .premade-source { font-size: var(--fs-small); color: var(--muted); }
.premade-source { display: none; }
.premade-aisles { columns: 2 18rem; column-gap: var(--s6); margin-top: var(--s3); }
.premade-aisle { break-inside: avoid; margin-bottom: var(--s5); }
.premade-aisle h2 {
  display: flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.premade-dot { width: 4px; height: 14px; border-radius: 2px; background: var(--c, var(--a-other)); flex: none; }
.premade-aisle ul { list-style: none; margin: 0; padding: 0; }
.premade-aisle li { display: flex; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line); }
.premade-box { width: 18px; height: 18px; flex: none; border: 2px solid var(--brand); border-radius: 5px; }
.premade-name { flex: 1; min-width: 0; overflow-wrap: break-word; }
.premade-qty { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.premade-index { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.premade-index a {
  display: grid; gap: 6px; height: 100%; padding: var(--s5); border-radius: var(--r-card);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none;
}
.premade-index a:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.premade-index b { font-size: 1.25rem; font-weight: 600; }
.premade-index span:last-child { color: var(--muted); font-size: var(--fs-small); }
.premade-more .wrap { display: grid; gap: var(--s4); padding-block: var(--s7); max-width: calc(52rem + 2 * var(--gutter)); }
.premade-more h2 { font-size: 1.25rem; }
.premade-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.premade-more li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s3); }
.premade-more a { font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.premade-more span { color: var(--muted); font-size: var(--fs-small); }

@media print {
  /* Scoped to the list pages: the home pages share this sheet and print as
     they always have. */
  .premade-page .topbar, .premade-page .skip, .premade-page .cta,
  .premade-page .premade-more, .premade-page .sitefoot, .premade-page .premade-hint { display: none; }
  .premade-page::before { display: none; }
  body.premade-page { background: #fff; color: #000; font-size: 11pt; line-height: 1.4; color-scheme: light; }
  .premade .wrap { padding: 0; max-width: none; gap: 6pt; }
  .premade h1 { font-size: 20pt; }
  .premade .lead { color: #333; font-size: 10.5pt; }
  .premade-season, .premade-aisle h2, .premade-qty { color: #333; }
  .premade-aisles { columns: 2; column-gap: 24pt; }
  .premade-aisle { margin-bottom: 10pt; }
  .premade-aisle li { min-height: 0; padding: 3pt 0; border-color: #ccc; }
  .premade-aisle h2 { border-color: #999; }
  .premade-box { width: 11pt; height: 11pt; border: 1.5pt solid #000; border-radius: 2pt; }
  .premade-source { display: block; color: #555; }
  .premade a { color: #000; text-decoration: none; }
}
