/* NibbleCheck marketing site.
   Mirrors the app, so someone who has used it recognises the site at once:
   - the palette is the app's DEFAULT theme, Blackcurrant (DEFAULT_PRESET in
     mobile/src/theme/palettes.ts), light and dark, with every value below
     taken from buildPalette() rather than picked by eye;
   - the screen header is the app's ScreenTitle: a vertical gradient of the
     accent (headerFill) closed by the same wave path, with a few glassy tiles;
   - icons sit on the app's soft tiles (docs/design/soft-tile.md,
     theme/softTile.ts), each in its area's colour from theme/petals.ts;
   - cards use the Jelly radii (theme/jelly.ts) and the theme-tinted shadow
     (buildShadow).
   SAFETY, as in the app: the verdict colours (--safe / --caution / --danger)
   are used ONLY inside the result mock-up, exactly as the app uses them.
   Green means "no allergens found in the ingredients" and nothing else here:
   no green ticks, no green decoration. Area colours are the app's, which are
   held ΔE >= 6 from the verdicts by __tests__/feature-colours.test.ts. */
/* ---------------------------------------------------------------------------
   Self-hosted webfonts. These used to be pulled from fonts.googleapis.com /
   fonts.gstatic.com, which sent every visitor's IP address to Google in the US
   with no consent step. They are served from our own origin now, so no
   third-party request happens at all.

   Both files are the latin subset of the upstream *variable* font (one file
   covers every weight), byte-identical to what Google was serving:
     Baloo 2 v23  — the app's display face (Baloo2-Bold / -ExtraBold in
                    mobile/assets/fonts), used at 700 and 800
     Nunito  v32  — wght 200-1000, used at 400 (body), 600, 700 and 800
   The app sets its body text in the system font; the site keeps Nunito
   because the privacy policy names the two typefaces the pages use.

   Only the latin subset is shipped — the pages contain no character outside it
   (the sole non-ASCII character on the site is the em dash U+2014). No italic
   face is shipped, so <em> stays a synthesised oblique.

   SIL Open Font Licence 1.1. The licence must travel with the fonts, so it is
   served alongside them and is reachable at:
     /assets/fonts/OFL-Baloo2.txt
     /assets/fonts/OFL-Nunito.txt
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("assets/fonts/baloo2-latin-var.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: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-var.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;
}

:root {
  color-scheme: light dark;

  /* Blackcurrant, light: LILAC_LIGHT ground + the derived brand set. The test
     (mobile/__tests__/web-contrast.test.ts) reads these literal hex values. */
  --accent: #6C4DE6;          /* primary: a FILL, never ink (see the test) */
  --accent-strong: #4E37A6;   /* primaryStrong: button ground, white 8.67:1 */
  --accent-deep: #4C36A1;     /* primaryDark: links and accent ink, 7.90:1 on --ground */
  --accent-tint: #E7E3FB;     /* primaryTint */
  --on-accent-tint: #412E8A;  /* onPrimaryTint: ink on the tint, 8.46:1 */
  --accent-darkest: #3C2B81;  /* the Jelly gradient's deep end: white 11.3:1 */
  --ground: #F3EFFC;          /* background */
  --surface: #FFFFFF;
  --surface-alt: #ECE6F9;
  --sunken: #EEE8FA;
  --ink: #241E3D;
  --ink-muted: #5D5875;       /* textMuted as buildPalette hardens it */
  --ink-subtle: #6A667C;      /* textSubtle, hardened to 4.5:1 on every ground */
  --border: #E0D9F2;
  --border-strong: #CBC1E8;
  /* The boundary of something you have to FIND and click: inputs, selects and
     the option tiles (borderControl, WCAG 1.4.11 3:1). --border is for card
     edges, where a hairline is a deliberate softness. */
  --border-control: #89829D;
  --focus: #4C36A1;

  /* The screen header (headerFill of the accent): top stop, bottom stop. The
     wave is filled with the bottom stop, as in ScreenTitle. Same in both modes,
     as in the app. */
  --hdr-1: #6145CF;
  --hdr-2: #43308F;
  --hdr-swash: #E4DCFF;       /* 4.90:1 on --hdr-1, more further down */

  /* Verdict palette — safety meaning, audited in the app. The result mock-up
     is the only place these are used. */
  --safe: #1A7942;
  --safe-tint: #DCF3E4;
  --caution: #975D17;
  --caution-tint: #FCEFD6;
  --danger: #C0392B;
  --danger-tint: #FDEBE8;

  /* Soft tiles: [light end, deep end] per area (softTileColours in
     theme/softTile.ts, Blackcurrant light). The white glyph clears 3:1 on both. */
  --t-accent-1: #5B41C1;    --t-accent-2: #4E38A6;
  --t-people-1: #D65F00;    --t-people-2: #B85200;
  --t-shopping-1: #0073AA;  --t-shopping-2: #006392;
  --t-freefrom-1: #009BC2;  --t-freefrom-2: #0085A7;
  --t-meals-1: #B0611D;     --t-meals-2: #B0611D;
  --t-community-1: #3B9CBE; --t-community-2: #3386A3;
  --tile-shadow: 26%;

  /* The Lists header (headerFill of the milk petal's deep end), for the band. */
  --band-1: #007BB6;
  --band-2: #00557D;

  /* Jelly radii, and the app's own radius scale */
  --r-block: 24px;
  --r-card: 20px;
  --r-tile: 16px;
  --r-md: 14px;
  --r-pill: 999px;

  /* buildShadow: tinted by the theme in light, plain black in dark */
  --shadow: 0 3px 20px rgba(76, 54, 161, 0.12);
  --shadow-sm: 0 2px 10px rgba(76, 54, 161, 0.10);
  --shadow-lg: 0 24px 60px rgba(67, 48, 143, 0.30);
  --maxw: 1080px;
  --wave-h: clamp(26px, 4.4vw, 60px);

  /* Aliases kept for flower.css, which predates the rename. */
  --coral: var(--accent-strong);
  --coral-dark: var(--accent-deep);
  --coral-tint: var(--accent-tint);
  --text: var(--ink);
  --muted: var(--ink-muted);
  --subtle: var(--ink-subtle);

  --display: "Baloo 2", "Arial Rounded MT Bold", "Nunito", -apple-system, "Segoe UI", sans-serif;
  --body: "Nunito", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Blackcurrant, dark: the AUBERGINE_DARK ground. The header, the band and the
   buttons keep their colours, as they do in the app. */
@media (prefers-color-scheme: dark) {
  :root {
    --accent-deep: #AE9DF1;     /* 7.52:1 on the dark ground */
    --accent-tint: #251A4E;
    --on-accent-tint: #BDAFF4;
    --ground: #1A1622;
    --surface: #241E30;
    --surface-alt: #2C2440;
    --sunken: #1A1622;
    --ink: #F4EEF7;
    --ink-muted: #B4A7C4;
    --ink-subtle: #958AA5;
    --border: #352B45;
    --border-strong: #463A58;
    --border-control: #766E84;
    --focus: #AE9DF1;

    --safe: #41C781;
    --safe-tint: #15321F;
    --caution: #E2A23E;
    --caution-tint: #352815;
    --danger: #F0685A;
    --danger-tint: #3A1C18;

    --t-accent-1: #6C4DE6;    --t-accent-2: #5D42C6;
    --t-people-1: #F06A00;    --t-people-2: #CE5B00;
    --t-shopping-1: #0089CA;  --t-shopping-2: #0076AE;
    --t-freefrom-1: #009EC7;  --t-freefrom-2: #0088AB;
    --t-meals-1: #D17323;     --t-meals-2: #B4631E;
    --t-community-1: #3B9CBE; --t-community-2: #3386A3;

    --shadow: 0 3px 20px rgba(0, 0, 0, 0.40);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
/* On the coloured header and bands the ring is white (6.4:1 on the header's
   top stop, more further down). */
.nav :focus-visible, .hero :focus-visible, .band :focus-visible, .wavy :focus-visible { outline-color: #fff; }

/* Skip link — first focusable thing on every page, hidden until it is focused.
   Not display:none/visibility:hidden: those take it out of the tab order, which
   is the one thing it exists for. */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--accent-deep);
  border: 2px solid var(--accent-deep); border-radius: var(--r-tile);
  padding: 12px 18px; font-weight: 800; font-size: 15px; text-decoration: none;
  transition: top .12s ease;
}
.skip-link:focus { top: 12px; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Nav — the top of the app's header: the accent's top stop, white words. */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--hdr-1);
  color: #fff;
}
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 66px; }
/* flex-shrink:0 is load-bearing, not tidiness. .nav .wrap is a flex row; without
   it the brand box shrinks below its own text in a crowded nav, the name
   overflows, and the next flex item (the "tap me" button) paints straight over
   the final letter — the live site read "NibbleChec". Found by rendering the
   page, not by reading the CSS. */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; text-decoration: none; color: var(--ink); flex-shrink: 0; white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.nav .brand, .nav .brand-name { color: #fff; }
/* Moved here from flower.css, which only index.html loads: about.html,
   reviews.html and data/index.html were rendering the brand word as a plain
   underlined link. */
.brand-name { color: var(--ink); text-decoration: none; }
.nav .spacer { flex: 1; }
.nav a.navlink { text-decoration: none; color: #fff; opacity: .92; font-weight: 700; margin: 0 9px; white-space: nowrap; }
.nav a.navlink:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { background: #fff; color: var(--accent-strong); box-shadow: none; white-space: nowrap; padding: 10px 18px; font-size: 15px; }
.nav .btn:hover { background: #F1EDFF; }

/* Buttons — the app's primary button: primaryStrong with white words. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--body);
  background: var(--accent-strong); color: #fff; font-weight: 800; font-size: 16px;
  padding: 14px 24px; border-radius: var(--r-tile); text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-darkest); box-shadow: var(--shadow); }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: var(--accent-tint); color: var(--on-accent-tint); box-shadow: none; }
.btn.secondary:hover { background: var(--border); }
.btn.block { display: flex; width: 100%; }

/* Eyebrow + section headings — the app's eyebrow, on a tinted pill. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill);
  /* 12.5px uppercase is SMALL text and needs 4.5:1: onPrimaryTint on
     primaryTint is 8.46:1 in light and 7.93:1 in dark. Audit W3. */
  background: var(--accent-tint); color: var(--on-accent-tint);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* Area variants: featureBlock(hue).fill and .ink, which the app grades to
   4.5:1. Each pair is measured again by web-contrast.test.ts. */
.eyebrow.people { background: #FFE8D6; color: #92481F; }
.eyebrow.shopping { background: #D6ECF7; color: #125484; }
.eyebrow.freefrom { background: #D6F4FB; color: #126B92; }
.eyebrow.community { background: #E2F6FD; color: #387399; }
.eyebrow.meals { background: #F8E9DC; color: #7B4930; }
@media (prefers-color-scheme: dark) {
  .eyebrow.people { background: #5D3424; color: #FFB173; }
  .eyebrow.shopping { background: #1B3A58; color: #73BEE2; }
  .eyebrow.freefrom { background: #1B4660; color: #73D8F2; }
  .eyebrow.community { background: #2E4A63; color: #9CE1F9; }
  .eyebrow.meals { background: #51342D; color: #E6B286; }
}
/* On the header and the band: a glass pill, white words. */
.hero .eyebrow, .wavy .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------------------------------------------------------------------------
   The soft tile (docs/design/soft-tile.md). A rounded square in the area's
   colour, deepening top-left to bottom-right, light on its top half, a bold
   white filled glyph at half the side, and a soft shadow in its own colour
   (black in dark). Corners are a third of the side at every size. Decoration:
   the words beside it carry the meaning, so the glyphs are aria-hidden.
   --------------------------------------------------------------------------- */
.tile {
  --t1: var(--t-accent-1); --t2: var(--t-accent-2);
  --side: 56px;
  position: relative; flex: 0 0 auto;
  width: var(--side); height: var(--side); border-radius: calc(var(--side) * 0.326);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--t1), var(--t2));
  box-shadow: 0 5px 16px color-mix(in srgb, var(--t1) var(--tile-shadow), transparent);
  color: #fff; margin-bottom: 18px; overflow: hidden;
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 55%);
}
.tile svg { position: relative; width: 50%; height: 50%; fill: currentColor; }
.tile.sm { --side: 40px; box-shadow: 0 4px 12px color-mix(in srgb, var(--t1) var(--tile-shadow), transparent); }
.tile.xs { --side: 28px; box-shadow: 0 3px 8px color-mix(in srgb, var(--t1) var(--tile-shadow), transparent); }
.tile.accent { --t1: var(--t-accent-1); --t2: var(--t-accent-2); }
.tile.people { --t1: var(--t-people-1); --t2: var(--t-people-2); }
.tile.shopping { --t1: var(--t-shopping-1); --t2: var(--t-shopping-2); }
.tile.freefrom { --t1: var(--t-freefrom-1); --t2: var(--t-freefrom-2); }
.tile.meals { --t1: var(--t-meals-1); --t2: var(--t-meals-2); }
.tile.community { --t1: var(--t-community-1); --t2: var(--t-community-2); }
@media (prefers-color-scheme: dark) {
  .tile, .tile.sm, .tile.xs { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
}

/* Glassy tiles: the header's texture (ScreenTitle's glassTile), a white
   pictogram on a faint white tile. They never move. */
.glass {
  position: absolute; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 32.6%; background: rgba(255, 255, 255, 0.11); opacity: .6;
}
.glass svg { width: 58%; height: 58%; fill: #fff; }

/* ---------------------------------------------------------------------------
   Hero — the app's screen header at page scale: a vertical gradient of the
   accent (so its bottom edge is one flat colour), glassy tiles, and the wave
   hanging below it in the bottom stop's colour. The wave is the app's own
   path (ScreenTitle, viewBox 240x26) stretched to the width, used as a mask
   so it can be painted with a custom property and join with no seam.
   --------------------------------------------------------------------------- */
.hero {
  position: relative; color: #fff;
  padding: 56px 0 40px;
  margin-bottom: var(--wave-h);
  background: linear-gradient(180deg, var(--hdr-1), var(--hdr-2));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(1px - var(--wave-h));
  height: var(--wave-h); background: var(--hdr-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H240 V7 C206,23 172,1 128,10 C86,19 44,27 0,13 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H240 V7 C206,23 172,1 128,10 C86,19 44,27 0,13 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.hero-tiles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 60px; line-height: 0.98; margin: 0 0 18px; color: #fff; }
.hero h1 .swash { color: var(--hdr-swash); }
.hero p.lede { font-size: 19px; color: #fff; margin: 0 0 28px; max-width: 28em; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--accent-strong); box-shadow: 0 6px 18px rgba(20, 10, 60, 0.25); }
.hero .btn:hover { background: #F1EDFF; }
.hero .btn.secondary { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.hero .btn.secondary:hover { background: rgba(255, 255, 255, 0.24); }
.hero .cta-note { color: #fff; }

/* ---------------------------------------------------------------------------
   The phone: the app's result screen, drawn in its own colours. The verdict
   hero uses the app's fills and heroStops (danger #A0322B, white ink); the
   cards are the per-person cards with their verdict-coloured edge. This is
   the ONLY place on the site that uses the verdict colours, and the clear
   row is the one green thing on the page, as "No allergens found".
   --------------------------------------------------------------------------- */
.phone {
  background: #15111D; border-radius: 46px; padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  max-width: 340px; margin: 0 auto; color: var(--ink);
}
.phone .screen { background: var(--ground); border-radius: 37px; overflow: hidden; padding-bottom: 16px; }
.rhero {
  position: relative; color: #fff;
  padding: 44px 18px 20px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, #A32C3C 0%, #A0322B 50%, #904227 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.rhero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}
.rhero .island { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 13px; background: #000; }
.rtop { position: relative; display: flex; align-items: center; gap: 8px; }
.rtop .back { width: 22px; height: 22px; fill: #fff; margin-left: -4px; }
.rtop .thumb {
  width: 38px; height: 38px; border-radius: var(--r-md); flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.25); overflow: hidden;
  background: linear-gradient(180deg, #2B1F18 0 34%, #F4E7D6 34% 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.rtop .pname { font-weight: 800; font-size: 14px; line-height: 1.25; }
.rtop .pbrand { font-size: 12.5px; opacity: .92; }
.rhead { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.rhead .well { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rhead .well svg { width: 22px; height: 22px; fill: var(--danger); }
.rhead b { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.12; }
.rbody { padding: 14px 14px 0; display: grid; gap: 10px; }
.verdict {
  background: var(--surface); border: 1px solid var(--border); border-left-width: 5px;
  border-radius: var(--r-card); padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.verdict.danger { border-left-color: var(--danger); }
.verdict.caution { border-left-color: var(--caution); }
.verdict.safe { border-left-color: var(--safe); }
.verdict .ident { display: flex; align-items: center; gap: 8px; }
.verdict .avatar {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; color: #fff; font-size: 15px; line-height: 1;
}
.verdict .who { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.verdict .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.verdict .row svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }
.verdict .line { font-size: 14px; font-weight: 800; margin-right: 2px; }
.verdict.danger .row { color: var(--danger); }
.verdict.caution .row { color: var(--caution); }
.verdict.safe .row { color: var(--safe); }
/* The allergen chip: the verdict colour at 8% behind, 33% on the edge. */
.pill {
  border: 1px solid color-mix(in srgb, currentColor 33%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
  border-radius: var(--r-pill); padding: 2px 9px; font-size: 12px; font-weight: 800;
}
.phone .foot { display: flex; justify-content: space-between; align-items: center; margin: 12px 16px 0; font-size: 12px; color: var(--ink-subtle); font-weight: 700; }
.phone .conf { display: inline-flex; align-items: center; gap: 6px; }
.phone .conf .bar { width: 56px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.phone .conf .bar i { display: block; width: 78%; height: 100%; background: var(--accent); }

/* Sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--sunken); }
h2.section-title { font-size: 38px; line-height: 1.05; text-align: center; margin: 0 0 10px; }
p.section-sub { text-align: center; color: var(--ink-muted); max-width: 36em; margin: 0 auto 40px; font-size: 17px; }
.section-head { text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }

/* A wave-edged band: the app's Lists header colour, a wave on both edges. */
section.wavy {
  position: relative; color: #fff;
  margin: var(--wave-h) 0;
  background: linear-gradient(180deg, var(--band-1), var(--band-2));
}
section.wavy::before, section.wavy::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--wave-h);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H240 V7 C206,23 172,1 128,10 C86,19 44,27 0,13 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H240 V7 C206,23 172,1 128,10 C86,19 44,27 0,13 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
section.wavy::before { top: calc(1px - var(--wave-h)); background: var(--band-1); transform: scale(-1, -1); }
section.wavy::after { bottom: calc(1px - var(--wave-h)); background: var(--band-2); }
section.wavy h2.section-title { color: #fff; }
section.wavy p.section-sub, section.wavy .chips-note { color: #fff; }
section.wavy .glass { opacity: .5; }

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards — white Jelly blocks on the tinted ground, the theme's own shadow. */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* "How it works": three white blocks, a soft tile each in its area's colour */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-block); padding: 26px 24px 28px; position: relative;
  box-shadow: var(--shadow);
}
.step .num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--border-strong); position: absolute; top: 20px; right: 24px; }
.step h3 { margin: 0 0 6px; font-size: 21px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* Allergen chips — the app's chip: a white pill, bold words. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 7px 14px; font-weight: 800; font-size: 14px; color: var(--ink);
}
.chip.more { background: var(--surface-alt); color: var(--ink-muted); border-style: dashed; border-color: var(--border-strong); }
/* On the blue band: the legal fourteen as white pills, the rest as glass. */
.wavy .chip { background: #fff; border-color: #fff; color: #10324A; box-shadow: 0 2px 8px rgba(0, 30, 50, 0.18); }
.wavy .chip.more { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }
.chips-note { text-align: center; color: var(--ink-muted); font-size: 15px; margin: 22px auto 0; max-width: 40em; }

/* Community block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: 36px; line-height: 1.05; margin: 0 0 12px; }
.split p { color: var(--ink-muted); font-size: 17px; margin: 0 0 16px; }
.split ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.split li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
/* No ticks: a tick beside a promise about labels reads as "checked, fine".
   Each point leads with a small soft tile carrying what it is about. */
.split li .tile { margin: -2px 0 0; }
.split ul.plain { display: block; }
.review-card { background: var(--surface); border-radius: var(--r-block); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.review-card .rc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-card .rc-head .tile { margin: 0; }
.review-card .rc-head b { font-family: var(--display); font-size: 18px; }
.review-card .photo { height: 120px; border-radius: var(--r-tile); background: repeating-linear-gradient(0deg, var(--surface-alt) 0 8px, var(--sunken) 8px 16px); position: relative; overflow: hidden; border: 1px solid var(--border); }
.review-card .photo::after { content: "INGREDIENTS: wheat flour, sugar, cocoa butter, MILK powder, HAZELNUTS…"; position: absolute; left: 14px; right: 14px; top: 26px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.6; color: var(--ink-subtle); letter-spacing: .02em; }
.review-card .rc-row { display: flex; gap: 8px; margin-top: 14px; }
.review-card .rc-row span { flex: 1; text-align: center; padding: 10px; border-radius: var(--r-tile); font-weight: 800; font-size: 14px; }
/* Not green: agreeing about a label is not a verdict on the food. */
.review-card .agree { background: var(--accent-strong); color: #fff; }
.review-card .disagree { background: var(--surface-alt); color: var(--ink-muted); }
.review-card .rc-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-subtle); }

/* Nursery band — the app's filled Jelly accent block */
.band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-darkest)); color: #fff;
  border-radius: var(--r-block); padding: 48px 44px; text-align: center; box-shadow: var(--shadow-lg);
}
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}
.band > * { position: relative; }
.band > .hero-tiles { position: absolute; }
.band h2 { color: #fff; font-size: 32px; line-height: 1.15; margin: 0 0 12px; }
.band p { color: #fff; max-width: 36em; margin: 0 auto 24px; font-size: 17px; }
.band .btn { background: #fff; color: var(--accent-strong); box-shadow: none; }
.band .btn:hover { background: #F1EDFF; }

/* The two closing bands sit as a pair, not two sections apart. */
section#reviews { padding-bottom: 28px; }
section#nurseries { padding-top: 28px; }

/* Footer */
footer { background: var(--surface-alt); border-top: 1px solid var(--border); padding: 36px 0; color: var(--ink-subtle); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer .spacer { flex: 1; }
/* The social accounts, on every page (owner, 27 Nov 2026). */
footer .social { max-width: var(--maxw); margin: 16px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
footer .social span { color: var(--ink-subtle); font-weight: 600; }
footer a { color: var(--ink-muted); text-decoration: none; font-weight: 700; }
footer .wrap > a:not(.brand) { padding: 2px 4px; }
footer a.brand { margin-left: 0; color: var(--ink); }
footer a:hover { color: var(--ink); }
/* interest.html and data/index.html put their notices straight in the footer,
   outside .wrap: hold them to the same column. */
footer > p { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding: 0 20px; }
.disclaimer { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--ink-subtle); }

/* Forms (interest.html) */
.form-wrap { max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 22px; }
.field > .q { display: block; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.field .hint { color: var(--ink-subtle); font-weight: 600; font-size: 13px; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; padding: 13px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  /* --border is a hairline. WCAG 1.4.11 wants 3:1 for the visual boundary of
     a control a person has to find; --border-control is the app's own
     borderControl, derived to clear it on every ground. Audit W3. */
  background: var(--surface); border: 2px solid var(--border-control); border-radius: var(--r-tile);
}
/* The keyboard focus ring is the global :focus-visible rule above. This used to
   read `outline: none; border-color: var(--accent)`, which at specificity (0,1,1)
   beat it and left the border as the only indicator. The border tint is kept
   as decoration only, in the text-grade accent. */
input:focus, textarea:focus, select:focus { border-color: var(--accent-deep); }
textarea { min-height: 110px; resize: vertical; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  border: 2px solid var(--border-control); border-radius: var(--r-tile); padding: 11px 16px; cursor: pointer;
  background: var(--surface); font-weight: 700; font-size: 15px; user-select: none; position: relative;
}
/* The selected label: onPrimaryTint on primaryTint, 8.46:1 light / 7.93:1 dark. */
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--on-accent-tint); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
/* The input inside .opt is opacity:0, so it can never show a focus ring itself.
   Without this the radios and all 14 allergen checkboxes were keyboard-focusable
   with no visible focus at all. */
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
@supports not selector(:has(*)) {
  .opt:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
}
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-muted); }
.checkline input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.hidden { display: none !important; }
.honey { position: absolute; left: -9999px; }
.note { background: var(--accent-tint); color: var(--on-accent-tint); border-radius: var(--r-tile); padding: 12px 14px; font-size: 14px; font-weight: 700; }
.success-box { text-align: center; padding: 48px 24px; }
.success-box .big { font-size: 48px; }
.success-box h2 { margin: 12px 0 8px; }
.err { color: var(--danger); font-weight: 700; font-size: 14px; margin-top: 10px; }
/* Stays in the DOM always so role="alert" is live before the text arrives —
   toggling display:none announced nothing. Empty, it has no line box and so
   takes no space; the margin is dropped so it leaves no gap either. */
.err:empty { margin-top: 0; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 44px; }
  .phone { max-width: 330px; }
  .nav .btn { white-space: nowrap; padding: 10px 16px; font-size: 14px; }
  .grid.cols-3, .grid.cols-4, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  /* The nav links used to be `display: none` here with nothing to replace them:
     below 900px the site's whole navigation simply disappeared, for every user
     and every input method. There is no hamburger to build them into, so they
     wrap onto further rows instead — and the nav stops being sticky at this
     width so a two- or three-row bar does not pin itself over the content. */
  .nav { position: static; }
  .nav .wrap { height: auto; flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .nav .spacer { flex-basis: 100%; height: 0; margin: 0; }
  .nav a.navlink { margin: 0 14px 0 0; font-size: 15px; }
  h2.section-title { font-size: 32px; }
}
/* The wide tiles live in the page's side margins, which only exist this wide. */
@media (max-width: 1240px) { .glass.wide { display: none; } }
/* ...and the small one stands in for them only where they are hidden. */
@media (min-width: 1241px) { .hero .glass:not(.wide) { display: none; } }
@media (max-width: 700px) { .band .glass { display: none; } }
@media (max-width: 560px) {
  .logo-hint { display: none; }
  .brand { font-size: 20px; }
  .grid.cols-3, .grid.cols-4, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .band { padding: 34px 22px; }
  .band h2 { font-size: 26px; }
  section.block { padding: 52px 0; }
  .split h2 { font-size: 30px; }
}

/* ---------------------------------------------------------------------------
   About / Reviews pages
   Added 9 Sep 2026 with about.html and reviews.html. Reuses the existing
   blocks (.block, .card, .split, .review-card, .band) — these are the few
   things a text-led page needs that a feature-led one did not.
   --------------------------------------------------------------------------- */

/* A shorter header for the sub-pages: the app's inner-screen header, words
   on the left, single column, no phone. */
.hero.compact { padding: 48px 0 30px; }
.hero.compact .wrap { display: block; }
.hero.compact h1 { font-size: 46px; }

/* Reading measure. Running text wants ~65 characters, not the 1080px grid the
   feature sections use. */
.wrap.narrow { max-width: 720px; }

.prose p { font-size: 17px; color: var(--ink-muted); }
.prose p strong { color: var(--ink); }
.prose h2.section-title { margin-top: 0; }
.prose > .btn { margin-top: 8px; }
.prose .section-sub { font-size: 15px; margin-top: -4px; }

/* Bare lists — no tick, no bullet, for "what we will not do" style content
   where a tick would read as approval. */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li {
  position: relative; padding: 0 0 0 18px; margin: 0 0 8px;
  color: var(--ink-muted); font-size: 15px;
}
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong);
}
ul.plain.spaced li { margin-bottom: 14px; font-size: 17px; }
ul.plain.spaced li strong { color: var(--ink); }

/* The honest empty state on reviews.html. Deliberately plain: a decorated
   "no data" panel reads as a mistake, a quiet one reads as a choice. */
.empty-state {
  text-align: center; padding: 28px 18px;
  border: 1px dashed var(--border-strong); border-radius: var(--r-tile);
  background: var(--surface-alt);
}
.empty-state p { margin: 4px 0; }
.empty-mark {
  display: block; font-family: var(--display); font-size: 40px;
  line-height: 1; color: var(--ink-subtle); margin-bottom: 6px;
}

@media (max-width: 900px) {
  .hero.compact h1 { font-size: 38px; }
}

/* A quieter band for a section that is being honest rather than selling. */
.band.quiet { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.band.quiet::before { display: none; }
.band.quiet h2, .band.quiet p { color: var(--ink); }
.band.quiet p { color: var(--ink-muted); }
.band.quiet :focus-visible { outline-color: var(--focus); }
.band.quiet .btn.secondary { background: var(--accent-tint); color: var(--on-accent-tint); }

/* "in development" marker beside a feature name, so a plan never reads as a
   shipped thing. In the accent tint, not amber: amber is "check the label". */
.tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-family: var(--body); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--on-accent-tint); background: var(--accent-tint);
  border-radius: 999px; padding: 3px 8px;
}

/* FAQ — native <details>, so it works with no JavaScript and reads correctly
   to a screen reader. */
.cta-note { margin: 12px 0 0; color: var(--ink-muted); font-size: 15px; font-weight: 600; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-tile); padding: 2px 20px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 28px 15px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2.5px solid var(--accent-deep); border-bottom: 2.5px solid var(--accent-deep);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 16px; color: var(--ink-muted); font-size: 16px; }

/* ODbL / OGL attribution. Required wherever the data is used — the licence
   asks the notice make a reader aware the content IS available under it, so
   both the licence and our own published extract are linked, not just named. */
.attrib { font-size: 12px; line-height: 1.6; color: var(--ink-subtle); margin: 0 0 10px; }
.attrib a { color: var(--ink-muted); margin-left: 0; }

/* One header on every page (28 Nov 2026): on a phone it is the logo and
   "Join the beta", as on the home page; About, Support and the rest are in the
   footer. Three wrapped rows of links pushed every page's content down. */
@media (max-width: 560px) {
  .nav a.navlink { display: none; }
  .nav .wrap { flex-wrap: nowrap; height: 66px; padding-top: 0; padding-bottom: 0; }
  .nav .spacer { flex: 1; flex-basis: auto; }
}
