/* Daylight, the Labelwise design system: calm off-white page, white cards, eucalyptus
   accent, wattle gold used sparingly. Single light theme by choice: every colour is a token
   here. Ported from prototypes/daylight.html (chosen 2 November 2026) with its class names;
   the site uses it now and the app will in Phase 2. */

/* Fraunces (display) and Figtree (body), self-hosted: no request leaves our own host.
   Variable woff2, latin subset; licences beside them in static/fonts/ (SIL OFL 1.1). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/static/fonts/Fraunces-opsz-wght.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/static/fonts/Figtree-wght.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/static/fonts/Figtree-Italic-wght.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f7f8f4; --bg-tint: #eef4ef; --surface: #ffffff; --ink: #18231c; --muted: #56635a;
  --line: #dde4dc; --line-strong: #c5d1c7;
  --euc: #1f6b47; --euc-deep: #154d33; --euc-soft: #e4efe8; --sage: #8fb19e;
  --wattle: #e3a512; --wattle-soft: #fff4d3; --wattle-ink: #6e4d00;
  --marker: 255 212 64;
  --paper: #ffffff; --label-ink: #111111;
  --on-euc: #ffffff; --footer-bg: #eef1ec;
  --shadow-sm: 0 1px 2px rgb(24 35 28 / .06), 0 3px 10px rgb(24 35 28 / .05);
  --shadow-md: 0 2px 4px rgb(24 35 28 / .05), 0 14px 36px rgb(24 35 28 / .10);
  --radius: 14px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label-font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --bar-h: 64px;
}
@property --hl-a { syntax: "<number>"; inherits: false; initial-value: 0; }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--euc); text-underline-offset: 3px; }
a:hover { color: var(--euc-deep); }
:focus-visible { outline: 3px solid var(--euc); outline-offset: 3px; border-radius: 6px; }
.on-euc :focus-visible { outline-color: var(--wattle); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink);
  padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-md); }
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 50; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(28px, 3.8vw, 42px); }
h3 { font-size: 21px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 13px/1.2 var(--body);
  letter-spacing: .09em; text-transform: uppercase; color: var(--euc); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wattle); flex: none; }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.small { font-size: 14px; color: var(--muted); }

/* Bands: each section is its own full-width band */
.band { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); background: var(--bg); }
.band.white { background: var(--surface); }
.band.tint { background: var(--bg-tint); }
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-r { grid-template-columns: 5fr 6fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--euc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%231f6b47' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent; font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, box-shadow .15s, transform .15s; }
.btn-primary { background: var(--euc); color: var(--on-euc); box-shadow: 0 2px 0 var(--euc-deep), 0 8px 20px rgb(31 107 71 / .22); }
.btn-primary:hover { background: var(--euc-deep); color: var(--on-euc); }
.btn-quiet { background: var(--surface); color: var(--euc); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--euc); color: var(--euc-deep); }
.btn-gold { background: var(--wattle); color: var(--ink); box-shadow: 0 2px 0 #b9850a; }
.btn-gold:hover { background: #f0b52a; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }

/* 1. Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.topbar .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: var(--bar-h); flex-wrap: wrap; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { font: 700 22px/1 var(--display); letter-spacing: -0.01em; }
.logo-tag { display: block; font: 500 12px/1.2 var(--body); color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; margin: 0 -8px; padding-bottom: 2px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--euc); background: var(--euc-soft); }
@media (min-width: 820px) { .nav { order: 0; width: auto; margin: 0; overflow: visible; } :root { --bar-h: 72px; } }
@media (max-width: 819px) { html { scroll-padding-top: 128px; } }

/* 2. Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 104px); border-top: 0;
  background: radial-gradient(1200px 520px at 85% 10%, var(--euc-soft), transparent 70%), var(--bg); }
.hero-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr minmax(420px, 480px); } .hero-copy { padding-top: 48px; } }
.hero .lede { margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.text-link { font-weight: 600; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md);
  padding: clamp(16px, 3vw, 28px); min-width: 0; }
.demo-prompt { font: 600 20px/1.3 var(--display); margin: 0 0 4px; }
.controls { display: grid; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-size: 15px; font-weight: 500; background: var(--surface); transition: background-color .15s, border-color .15s; }
.pill input:checked + span { background: var(--euc); border-color: var(--euc); color: var(--on-euc); }
.pill input:hover + span { border-color: var(--euc); }
.pill input:focus-visible + span { outline: 3px solid var(--euc); outline-offset: 2px; }
.statement { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.statement span { color: var(--ink); font-weight: 600; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 15px; width: fit-content; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; transition: background-color .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .18s; }
.toggle input:checked + .switch { background: var(--euc); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { outline: 3px solid var(--euc); outline-offset: 2px; }
.caption { min-height: 1.5em; margin: 0; font-size: 15px; font-weight: 600; color: var(--euc); }

/* The printed label, drawn like the real thing: black on white, label typeface, ruled NIP */
.label { position: relative; background: var(--paper); color: var(--label-ink); font: 13px/1.38 var(--label-font);
  border: 1px solid #1a1a1a; border-radius: 3px; padding: 16px 16px 14px; max-width: 440px; margin-inline: auto;
  box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 10px 26px rgb(24 35 28 / .12); }
.label p { margin: 0; }
.lb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  border-bottom: 2px solid #111; padding: 0 92px 8px 0; margin-bottom: 10px; }
.lb-name { font: 700 22px/1.1 var(--label-font); letter-spacing: -0.01em; }
.lb-net { font-weight: 700; font-size: 14px; white-space: nowrap; }
.lb-ingr { margin-bottom: 6px; }
.lb-contains { margin-bottom: 12px; }
.nip-t { width: 100%; border-collapse: collapse; border: 1.5px solid #111; font-size: 12.5px; line-height: 1.3; }
.nip-t caption { caption-side: top; text-align: center; font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
  border: 1.5px solid #111; border-bottom: 0; padding: 5px 6px 4px; }
.nip-t td, .nip-t th { padding: 3px 6px; text-align: right; font-weight: 400; vertical-align: bottom; }
.nip-t th[scope="row"] { text-align: left; }
.nip-t .nip-meta td { text-align: left; padding-block: 1px; }
.nip-t .nip-head th { font-size: 11.5px; line-height: 1.2; border-top: 1.5px solid #111; border-bottom: 1px solid #111; padding-top: 5px; width: 34%; }
.nip-t .nip-meta + .nip-head th, .nip-t .nip-meta + .nip-head td { border-top: 1.5px solid #111; }
.nip-t .nip-head td { border-top: 1.5px solid #111; border-bottom: 1px solid #111; }
.nip-t .ind th { padding-left: 16px; }
.nip-t tr:last-child th, .nip-t tr:last-child td { padding-bottom: 5px; }
.lb-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 12px 0 10px; }
.lb-hsr svg { display: block; width: 74px; height: 74px; }
.lb-coo { flex: 1 1 180px; max-width: 230px; border-radius: 4px; }
.lb-coo svg { display: block; width: 100%; height: auto; }
.lb-details { border-top: 1px solid #111; padding-top: 8px; display: grid; gap: 1px; font-size: 12.5px; }
.lb-details p:nth-child(-n+3) { font-weight: 400; }
.lb-details p:nth-child(4) { margin-top: 5px; font-weight: 700; }

/* Delight lives here: the highlighter sweep and the ready stamp */
.hl { --hl-a: .9; background-image: linear-gradient(100deg, rgb(var(--marker) / calc(var(--hl-a) * .75)), rgb(var(--marker) / var(--hl-a)) 8%, rgb(var(--marker) / var(--hl-a)) 92%, rgb(var(--marker) / calc(var(--hl-a) * .7)));
  background-repeat: no-repeat; background-size: 0% 82%; background-position: 0 60%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 3px;
  animation: hl-sweep .6s cubic-bezier(.3,.7,.3,1) forwards, hl-fade 1.4s ease-in 1.9s forwards; }
@keyframes hl-sweep { from { background-size: 0% 82%; } to { background-size: 100% 82%; } }
@keyframes hl-fade { to { --hl-a: 0; } }
.stamp { position: absolute; top: -14px; right: -10px; z-index: 2; padding: 6px 10px 5px; border: 2.5px solid var(--euc);
  border-radius: 7px; color: var(--euc); background: rgb(255 255 255 / .9); font: 800 12px/1.05 var(--label-font);
  letter-spacing: .1em; text-transform: uppercase; transform: rotate(-8deg); box-shadow: inset 0 0 0 2px rgb(255 255 255), inset 0 0 0 3px rgb(31 107 71 / .35);
  pointer-events: none; }
.stamp[hidden] { display: none; }
.stamp.land { animation: stamp-land .55s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes stamp-land {
  0% { transform: scale(2.3) rotate(-22deg); opacity: 0; }
  60% { transform: scale(.94) rotate(-6deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hl { background-size: 100% 82%; animation: hl-fade 1.2s ease-in 2s forwards; }
  .stamp.land { animation: none; }
  * { transition-duration: 0s !important; }
}

/* 3. The problem */
.problems { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: 12px; }
.problems li { counter-increment: p; display: flex; gap: 16px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.problems li::before { content: counter(p); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wattle-soft); color: var(--wattle-ink); font: 700 15px/1 var(--body); }
.closing { margin-top: 28px; padding-left: 18px; border-left: 4px solid var(--wattle); font-size: 18px; }
.closing strong { font-weight: 600; }

/* 4. How it works: the label builds up as the steps scroll by. Resting state is the finished label. */
.how-grid { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); } .how-label { position: sticky; top: calc(var(--bar-h) + 32px); } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 68px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
@media (min-width: 900px) { .steps li { min-height: 118px; } }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 700 15px/1 var(--body); background: var(--euc); color: var(--on-euc); transition: background-color .25s; }
.steps li p { margin: 0; }
.steps strong { font-family: var(--display); font-weight: 600; font-size: 19px; }
.js-build .steps li:not(.done)::before { background: var(--euc-soft); color: var(--euc); }
.js-build .steps li.active { border-color: var(--wattle); box-shadow: 0 0 0 3px var(--wattle-soft), var(--shadow-sm); }
.js-build .steps li.done:not(.active)::before { content: "✓"; }
.label-build [data-part] { border-radius: 4px; transition: background-color .35s, outline-color .35s; outline: 2px solid transparent; outline-offset: 3px; }
.js-build .label-build [data-part]:not(.done) { outline: 1.5px dashed var(--sage); color: #4b574f; }
.js-build .label-build [data-part]:not(.done) svg { opacity: .45; }
.js-build .label-build [data-part].active { background: var(--wattle-soft); outline: 2px solid var(--wattle); }
.stamp-rest { top: -12px; }
.js-build .label-build .stamp:not(.done) { color: var(--sage); border-style: dashed; border-color: var(--sage); outline: 0; }
.how-cta { margin-top: 32px; }

/* 5. Nutrition panel */
.nip-card { max-width: 440px; }
.nip-card .label { box-shadow: none; }
.callout { margin-top: 20px; background: var(--euc-soft); border-radius: 12px; padding: 18px 20px; font-weight: 500; max-width: 440px; }
.batch { display: grid; gap: 6px; margin-top: 12px; font: 600 13px/1 var(--body); color: var(--euc-deep); }
.batch span { display: block; height: 22px; border-radius: 6px; background: var(--euc); color: var(--on-euc); padding: 5px 8px; }
.batch span + span { width: 68%; background: var(--wattle); color: var(--ink); }

/* 6. Allergens */
.ba { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 820px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba .card { display: flex; flex-direction: column; gap: 14px; }
.tag { align-self: flex-start; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.tag.before { background: #f6e3df; color: #8a2f1d; }
.tag.after { background: var(--euc-soft); color: var(--euc-deep); }
.snippet { font: 14px/1.45 var(--label-font); color: var(--label-ink); background: var(--paper); border: 1px solid #1a1a1a; border-radius: 3px; padding: 14px; margin: 0; }
.snippet p { margin: 0; }
.snippet p + p { margin-top: 6px; }
.ba .note { font-size: 15px; color: var(--muted); margin: 0; }
.ba .note strong { color: var(--ink); }

/* 7. Health Star Rating */
.hsr-show { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(circle at 50% 40%, var(--wattle-soft), var(--surface) 70%); }
.hsr-show svg { width: min(220px, 60vw); height: auto; display: block; }
.news { display: flex; gap: 14px; align-items: flex-start; background: var(--wattle-soft); border: 1px solid #f1d98e; border-radius: 12px; padding: 16px 18px; margin: 8px 0 14px; }
.news::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--wattle); box-shadow: 0 0 0 4px rgb(227 165 18 / .25); }
.news p { margin: 0; }

/* 8. Country of origin */
.coo-demo { display: grid; gap: 18px; }
.coo-stage { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 4vw, 36px); display: grid; place-items: center; }
.coo-stage .mark { width: 100%; max-width: 420px; border-radius: 6px; }
.coo-stage svg { display: block; width: 100%; height: auto; }
.coo-cap { font-weight: 600; text-align: center; margin: 14px 0 0; }

/* 9. On the pack */
.packs { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 44px; }
.pack { margin: 0; display: grid; justify-items: center; align-content: end; gap: 18px; background: var(--bg); border-radius: var(--radius);
  padding: 36px 16px 22px; border: 1px solid var(--line); }
.pack figcaption { font: 600 18px/1 var(--display); }
.label.mini { zoom: .34; width: 340px; padding: 14px; box-shadow: none; }
.label.mini .lb-head { padding-right: 0; }
.jar { display: grid; justify-items: center; filter: drop-shadow(0 14px 18px rgb(24 35 28 / .18)); }
.jar .lid { width: 150px; height: 30px; border-radius: 8px 8px 4px 4px; background: repeating-linear-gradient(90deg, #1b5c3d 0 4px, #237a51 4px 8px); }
.jar .glass { width: 180px; height: 250px; margin-top: -2px; border-radius: 26px 26px 30px 30px; display: grid; place-items: center; position: relative;
  background: linear-gradient(90deg, rgb(255 255 255 / .35), transparent 22% 78%, rgb(255 255 255 / .2)), linear-gradient(#8f2f1c, #b4472a 40%, #7e2716); }
.jar .glass::after { content: ""; position: absolute; left: 14px; top: 18px; width: 10px; bottom: 30px; border-radius: 6px; background: rgb(255 255 255 / .28); }
.jar .label.mini { zoom: .28; border-radius: 2px; }
.pouch .label.mini { zoom: .3; }
.pouch { width: 196px; height: 290px; position: relative; display: grid; place-items: center; padding-top: 36px;
  background: linear-gradient(90deg, rgb(0 0 0 / .08), transparent 12% 88%, rgb(0 0 0 / .1)), #c9a46e;
  clip-path: polygon(4% 0, 96% 0, 100% 3%, 100% 100%, 0 100%, 0 3%); border-radius: 0 0 14px 14px; filter: drop-shadow(0 14px 18px rgb(24 35 28 / .18)); }
.pouch::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 6px; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .18) 0 6px, transparent 6px 9px); }
.bottle { display: grid; justify-items: center; filter: drop-shadow(0 14px 18px rgb(24 35 28 / .18)); }
.bottle .cap { width: 44px; height: 26px; border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(90deg, #1b5c3d 0 3px, #237a51 3px 6px); }
.bottle .neck { width: 34px; height: 30px; background: linear-gradient(90deg, #6a2414, #9d3c22 50%, #6a2414); }
.bottle .body { width: 132px; height: 252px; border-radius: 52px 52px 16px 16px / 70px 70px 16px 16px; display: grid; place-items: center; padding-top: 36px;
  background: linear-gradient(90deg, rgb(255 255 255 / .28), transparent 25% 75%, rgb(0 0 0 / .15)), linear-gradient(#9d3c22, #7e2716); }
.bottle .label.mini { zoom: .25; width: 340px; }

/* 9a. Just need one part? Three cards into the app */
.parts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 32px; }
.part { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.part:hover { color: var(--ink); border-color: var(--euc); box-shadow: var(--shadow-md); }
.part svg { flex: none; width: auto; height: 48px; max-width: 45%; }
.part strong { font-family: var(--display); font-weight: 600; font-size: 19px; }
.part strong::after { content: " →"; color: var(--euc); }

/* 10. Every rule cited */
.cite-wrap { overflow-x: auto; margin: 36px 0 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.cite { width: 100%; border-collapse: collapse; min-width: 320px; }
.cite th, .cite td { text-align: left; padding: 16px 20px; vertical-align: middle; border-top: 1px solid var(--line); }
.cite thead th { border-top: 0; font: 600 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.cite-line { display: inline-block; font: 14px/1.35 var(--label-font); color: var(--label-ink); background: var(--paper); border: 1px solid #1a1a1a; border-radius: 3px; padding: 6px 10px; }
.cite td:last-child { color: var(--euc-deep); font-weight: 500; }
@media (max-width: 640px) {
  .cite thead { display: none; }
  .cite, .cite tbody, .cite tr, .cite td { display: block; min-width: 0; }
  .cite tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  .cite tr:first-child { border-top: 0; }
  .cite td { padding: 0; border: 0; }
  .cite td + td { margin-top: 8px; font-size: 15px; }
}
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.trust p { margin: 0; }
.trust p:first-child { font-weight: 600; }

/* 11. Pricing */
.badge { display: inline-block; background: var(--wattle-soft); color: var(--wattle-ink); border: 1px solid #f1d98e; font-weight: 700; font-size: 14px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 32px 0 20px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px; }
.plan.first { border: 2px solid var(--euc); box-shadow: var(--shadow-md); }
.plan h3 { margin: 0; }
.price { font: 600 26px/1.15 var(--display); margin: 0; }
.plan dl { margin: 0; display: grid; gap: 10px; flex: 1; }
.plan dt { font: 600 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan dd { margin: 2px 0 0; }
.plan .btn { width: 100%; margin-top: 6px; }

/* 11. The waitlist, under the plans and in the final call */
.waitlist { max-width: 560px; margin-top: 28px; }
.waitlist p { margin: 0 0 12px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-row input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); color: var(--ink); font: 16px/1.2 var(--body); }
.wl-row input[type="email"]:focus-visible { outline: 3px solid var(--euc); outline-offset: 2px; border-color: var(--euc); }
.wl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .wl-result { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; color: var(--euc); }
.waitlist .wl-result.bad { color: #8a2f1d; }
.final .waitlist { margin: 32px auto 0; text-align: left; }
.final .waitlist p { max-width: none; margin: 0 0 12px; font-size: 16px; }
.final .waitlist .wl-result { margin: 10px 0 0; color: var(--on-euc); }
.final .waitlist .wl-result.bad { color: var(--wattle-soft); }
.final .wl-row input[type="email"] { border-color: transparent; }
.final .wl-row input[type="email"]:focus-visible { outline-color: var(--wattle); }

/* 12. Who it's for */
.who { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.who .card p { margin: 0; }
.who svg { width: 40px; height: 40px; display: block; margin-bottom: 14px; }
.who strong { font-family: var(--display); font-weight: 600; font-size: 19px; }

/* 13. FAQ */
.faq { max-width: 800px; margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; position: relative; font-weight: 600; font-size: 18px; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--euc-soft); color: var(--euc); font: 600 20px/1 var(--body); }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 20px 18px; margin: 0; color: var(--ink); }

/* 14. Final call */
.final { background: var(--euc); color: var(--on-euc); text-align: center; border-top: 0; }
.final h2 { color: var(--on-euc); }
.final p { max-width: 52ch; margin: 0 auto 28px; font-size: 19px; color: #e3efe8; }

/* 15. Footer */
.footer { background: var(--footer-bg); color: var(--muted); font-size: 15px; padding-block: 48px; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 14px; }
.footer p { margin: 0; }
.footer .made { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.licence { font-size: 13px; max-width: 80ch; }

/* 16. Pages: guides, terms, privacy, data licence, the rules record */
.page { border-top: 0; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 96px); }
.prose { max-width: 760px; }
.prose-wide { max-width: 1040px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose code { font-size: .88em; background: var(--bg-tint); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; line-height: 1.45;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); min-width: 9em; }
.prose th { background: var(--bg-tint); font-weight: 700; }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 4px solid var(--wattle); }
.updated { color: var(--muted); font-size: 15px; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 16px; margin: 28px 0; }
.guide-list h2 { font-size: 22px; margin: 0 0 .4em; }
.guide-list p { margin: 0; color: var(--muted); }

/* 17. The origin wording tool */
.tool { display: grid; gap: 24px; margin-top: 28px; align-items: start; }
@media (min-width: 960px) { .tool { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .tool-result { position: sticky; top: calc(var(--bar-h) + 16px); } }
.tool-form { display: grid; gap: 16px; }
.tool-form fieldset, .origin-options { margin: 0; min-width: 0; }
.tool-form legend, .origin-options legend { font: 600 19px/1.3 var(--display); padding: 0 6px; }
.origin-options { border: 0; padding: 0; margin-top: 16px; }
.field { display: grid; gap: 6px; margin: 12px 0 0; font-weight: 600; font-size: 15px; }
.field[hidden], .toggle-line[hidden] { display: none; }
.tool input[type="text"], .tool input[type="number"], .tool select { font: inherit; font-weight: 400; width: 100%; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.choice:has(input:checked) { border-color: var(--euc); background: var(--euc-soft); }
.choice input { margin-top: 5px; accent-color: var(--euc); flex: none; }
.choice .small { display: block; }
.toggle-line { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 15px; }
.toggle-line input { margin-top: 5px; accent-color: var(--euc); flex: none; }
.ingr-head, .ingr-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.ingr-head { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.ingr-rows { display: grid; gap: 8px; margin: 6px 0 14px; }
.ingr-remove { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 20px; cursor: pointer; }
@media (max-width: 520px) {
  .ingr-head { display: none; }
  .ingr-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .ingr-row input[name="name"] { grid-column: 1 / -1; }
}
.tool-submit { margin: 0; }
.tool-error { color: #9b2c1f; font-weight: 600; min-height: 1.4em; margin: 0; }
.tool-result h2 { font-size: 24px; }
.tool-result .coo-stage svg { width: 100%; max-width: 420px; height: auto; }
.tool-warnings { padding-left: 1.2em; margin: 16px 0; }
.tool-warnings:empty { display: none; }
.tool-note { margin-top: 32px; max-width: 760px; }
