/* Peasful landing page. The look the owner chose for the mockups ("fresh and
   vibrant": spring green plus vegetable colours), with the app's display face
   Quicksand for headings. Everything lives here: the Content-Security-Policy
   allows no inline style, so what the mockup wrote as style="…" is a class
   below (blob-a, f1…f6, num-*, t-*, b-beef…). */

@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #F4F7F0; --surface: #FFFFFF; --surface2: #E7EEE2; --line: #D2DDCB;
  --ink: #12200F; --muted: #4A5C43;
  --accent: #43A81F; --accent-strong: #2C781E; --accent-soft: #E0F2D6; --on-accent: #08170A;
  --tomato: #E5483A; --carrot: #F28C28; --beet: #A3336F; --corn: #F2C230; --pea: #7CC444;
  --deep: #16301A;
  /* The three stems of the mark, the app's meal checks (frontend/src/index.css
     --c-stem-*): protein, vegetables and fruit, whole grains. */
  --stem-protein: #A3336F; --stem-veg: #2C781E; --stem-grain: #E0A91C; --stem-empty: #D2DDCB;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101A0E; --surface: #18251A; --surface2: #22331F; --line: #2C3F29;
    --ink: #E6EFE2; --muted: #9CB093;
    --accent: #5BD44B; --accent-strong: #7BE86B; --accent-soft: #16301A;
    --deep: #0B140A;
    --stem-protein: #E879B2; --stem-veg: #7BE86B; --stem-grain: #F0B93F; --stem-empty: #768671;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Decorative pieces (the tilted ribbon, the floating vegetables) may poke past
   the edge; clip them so the page itself never scrolls sideways. */
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Text never runs past its box: anything too long for its line wraps. */
  overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual;
}
/* Only a phone's narrow columns need hyphenation, and only in long words
   (never "ge-rechnet"): at least ten letters, four on each side of the break.
   On a wide screen the lines are long enough without it (owner, 2026-10-29). */
@media (max-width: 480px) {
  p, li, summary { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}
h1, h2, h3 {
  font-family: "Quicksand", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0;
  text-wrap: balance; hyphens: manual; -webkit-hyphens: manual;
}
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: .6em 0; }
p, li, summary { text-wrap: pretty; }
a { color: inherit; }
.sprite { display: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }

/* header */
header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
header .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 26px; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* hero */
.hero { position: relative; padding: 48px 0 30px; overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
  .hero { padding: 80px 0 60px; }
}
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
.blob-a { width: 520px; height: 520px; background: var(--accent-soft); right: -160px; top: -140px; }
.blob-b { width: 260px; height: 260px; background: color-mix(in srgb, var(--corn) 30%, transparent); left: -90px; top: 300px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hl { position: relative; white-space: nowrap; }
.hl svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 20px 0 26px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.plate { position: relative; width: min(92vw, 430px); aspect-ratio: 1; margin: 0 auto; }
.plate .dish {
  position: absolute; inset: 8%; border-radius: 50%; background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(20, 48, 26, .45), inset 0 0 0 14px var(--surface2);
}
.float { position: absolute; animation: float 6s ease-in-out infinite; }
.float:nth-child(odd) { animation-duration: 7.5s; animation-delay: -2s; }
.f1 { width: 58%; left: 21%; top: 28%; --r: -8deg; }
.f2 { width: 30%; left: 4%; top: 4%; --r: -10deg; }
.f3 { width: 30%; right: 0; top: 10%; --r: 12deg; }
.f4 { width: 28%; left: 8%; bottom: 2%; --r: 6deg; }
.f5 { width: 24%; right: 8%; bottom: 6%; --r: -14deg; }
.f6 { width: 20%; left: 44%; bottom: -2%; --r: 8deg; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) + 6deg)); }
}

/* marquee */
.marquee { background: var(--deep); color: #E6F5DC; overflow: hidden; padding: 14px 0; transform: rotate(-1.5deg); margin: 30px -10px; }
.marquee .track { display: flex; gap: 34px; width: max-content; animation: slide 38s linear infinite; font-weight: 700; font-size: 1.05rem; }
.marquee span { display: inline-flex; align-items: center; gap: 34px; white-space: nowrap; }
.marquee i { width: 9px; height: 9px; border-radius: 50%; background: var(--pea); display: inline-block; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section { padding: 56px 0; }
section.tight { padding-top: 20px; }
section.tighter { padding-top: 10px; }
.eyebrow { color: var(--accent-strong); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 10px; }
.steps { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border-radius: 26px; padding: 24px; position: relative; border: 1px solid var(--line); }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; color: var(--on-accent); }
.num-accent { background: var(--accent); }
.num-carrot { background: var(--carrot); }
.num-corn { background: var(--corn); }
.step p { color: var(--muted); margin: .4em 0 0; }
.cards { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .cards .card { grid-column: span 2; }
  .cards .card:nth-child(4) { grid-column: 2 / span 2; }
}
.card { position: relative; overflow: hidden; border-radius: 28px; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--line); }
.card .icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 44px; height: 44px; }
.card p { color: var(--muted); margin: .5em 0 0; }
.card .corner { position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: .13; }
/* One tone per card: the corner in full colour, the icon's ground in a tint. */
.t-tomato .corner { background: var(--tomato); }
.t-tomato .icon { background: color-mix(in srgb, var(--tomato) 16%, transparent); }
.t-carrot .corner { background: var(--carrot); }
.t-carrot .icon { background: color-mix(in srgb, var(--carrot) 18%, transparent); }
.t-accent .corner { background: var(--accent); }
.t-accent .icon { background: var(--accent-soft); }
.t-beet .corner { background: var(--beet); }
.t-beet .icon { background: color-mix(in srgb, var(--beet) 14%, transparent); }
.t-corn .corner { background: var(--corn); }
.t-corn .icon { background: color-mix(in srgb, var(--corn) 22%, transparent); }
sup { font-size: .65em; color: var(--accent-strong); font-weight: 700; }
.stat { margin-top: 22px; border-radius: 28px; padding: 26px; background: var(--deep); color: #E6F5DC; display: grid; gap: 18px; }
@media (min-width: 760px) { .stat { grid-template-columns: 1fr 1.4fr; align-items: center; padding: 34px; } }
.stat h3 { font-size: 1.6rem; color: #fff; }
.stat p { opacity: .8; margin: .4em 0 0; }
.stat sup { color: var(--pea); }
.bar2 { margin: 14px 0; }
.bar2 .lbl { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.bar2 .lbl small { font-weight: 500; opacity: .8; }
.bar2 .b { height: 20px; border-radius: 999px; }
.b-beef { width: 100%; background: var(--tomato); }
.b-peas { width: 1%; min-width: 12px; background: var(--pea); }

/* the three stems */
.intro { color: var(--muted); max-width: 36em; font-size: 1.08rem; }
.stems { display: grid; gap: 16px; margin-top: 26px; align-items: stretch; }
@media (min-width: 760px) { .stems { grid-template-columns: .7fr 1.3fr; } }
.stems-mark {
  display: grid; place-items: center; align-content: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px;
}
.stems-mark svg { width: 150px; height: 150px; }
.stems-mark b { font-weight: 800; color: var(--accent-strong); }
.stem-rows { display: grid; gap: 12px; }
.stem-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px;
}
/* One stem of the mark, in its colour, beside the rule it stands for. */
.stem-row i { flex: none; width: 12px; height: 40px; border-radius: 999px; margin-top: 2px; }
.s-protein { background: var(--stem-protein); }
.s-veg { background: var(--stem-veg); }
.s-grain { background: var(--stem-grain); }
.stem-row h3 { font-size: 1.08rem; }
.stem-row p { color: var(--muted); margin: .25em 0 0; font-size: .98rem; }
.stems-note { color: var(--muted); font-size: .9rem; margin-top: 16px; }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 22px; margin: 12px 0; }
summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 1em; text-align: center; font-size: 1.6rem; line-height: 1; color: var(--accent-strong); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 18px; }

/* bands */
.privacy {
  background: var(--accent); color: var(--on-accent); border-radius: 32px; padding: 30px 26px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center;
  text-align: center; font-weight: 800; font-size: 1.15rem;
}
.invite-box {
  position: relative; overflow: hidden; background: var(--surface);
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 32px; padding: 34px 26px; text-align: center;
}
.invite-box .face { width: 120px; height: 120px; margin: 0 auto -6px; display: block; }
.invite-box p { color: var(--muted); max-width: 34em; margin: 12px auto 22px; text-wrap: balance; }
.invite-box .ctas { justify-content: center; }
.sources { font-size: .8rem; color: var(--muted); margin-top: 18px; text-wrap: balance; }
footer { padding: 40px 0 60px; color: var(--muted); font-size: .9rem; text-align: center; }
footer .brand { justify-content: center; color: var(--ink); margin-bottom: 2px; }
footer .tagline { color: var(--accent-strong); font-weight: 700; margin-bottom: 10px; }
footer a { color: var(--ink); }

/* reveal: hidden only while reveal.js is running (it adds html.js), so the
   page is complete without a script. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
