/* Not Cool Beans website (notcoolbeans.com). The phone app's LABEL look, from
   CLAUDE.md "Design tokens": white paper, near-black ink, separation by solid
   rules rather than shadows, square corners, pink only for danger, mono only
   for data. One deliberate look (no dark mode), same as the app.
   Layout: a single reading column, the same width as the app (480px) on a
   phone and a wider 760px column on a desktop. */

:root {
  --paper: #ffffff;
  --ink: #111418;
  --muted: #4f5b6b;
  --pink: #cc5070;
  --green: #2d7a4f;
  --tint: #f4f6f9;
  --font-head: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-code: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}

@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ── Header ─────────────────────────────────────────── */
.site-header { border-bottom: 2px solid var(--ink); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* ── Type ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.06; font-weight: 900; }
h2 { font-size: 26px; line-height: 1.15; font-weight: 800; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }
.mono {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Sections ───────────────────────────────────────── */
main section { padding-block: 36px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }

/* Hero */
.hero { display: grid; gap: 32px; grid-template-columns: 1fr; padding-block: 48px 44px; }
@media (min-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* The "Recall facts" panel: a back-of-pack nutrition label, the graphic every
   UK shopper already trusts. Same construction as the app's hero panel. */
.facts { border: 2px solid var(--ink); padding: 12px 16px 14px; min-width: 0; }
.facts h2 { font-size: 30px; font-weight: 900; padding-bottom: 6px; border-bottom: 7px solid var(--ink); }
.facts .serving { padding: 6px 0; border-bottom: 4px solid var(--ink); font-size: 14px; }
.facts dl { margin: 0; }
.facts .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink);
}
.facts .row:last-child { border-bottom: 4px solid var(--ink); }
.facts dt { font-weight: 700; font-size: 15px; }
.facts dd { margin: 0; font-family: var(--font-code); font-weight: 500; font-size: 14px; text-align: right; }
.facts .note { font-size: 12px; padding-top: 8px; }

/* Numbered steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border-bottom: 1px solid var(--ink); }
.steps li:last-child { border-bottom: 0; }
.step-num {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  font-family: var(--font-code); font-weight: 500;
}
.steps p { color: var(--muted); }

/* Ruled list (watches / privacy / support) */
.ruled { border-top: 1px solid var(--ink); }
.ruled > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--ink); }
@media (min-width: 620px) {
  .ruled > div { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
}
.ruled dt, .ruled .k { font-weight: 700; }
.ruled dd { margin: 0; }

/* Questions */
.faq details { border-bottom: 1px solid var(--ink); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 30px 15px 0;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 2px; top: 12px;
  font-family: var(--font-code); font-size: 20px;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 40em; }

/* Plain panel for a short page's main point */
.panel { border: 2px solid var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.panel .band { margin: -18px -18px 4px; padding: 8px 18px; background: var(--ink); color: var(--paper); }
.email { font-family: var(--font-code); font-size: 15px; word-break: break-all; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 4px solid var(--ink); font-size: 14px; }
.site-footer .wrap { padding-block: 26px 40px; display: flex; flex-direction: column; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.site-footer .small { font-size: 12px; color: var(--muted); max-width: 46em; }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform 180ms ease-out; }
}
.after-list { margin-top: 14px; }

/* Privacy and Terms: reading pages. Copies of the app's pages (see the note
   at the top of each file). */
.legal { padding-block: 36px 8px; display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-inline: auto; }
.legal h1 { font-size: 34px; }
.legal section { padding-block: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.legal section h2 { font-size: 20px; }
.legal .updated { font-size: 14px; }
