/* SPDX-License-Identifier: LicenseRef-AMPL-1.0 OR AGPL-3.0-or-later */
:root {
  --green-700: #1f6b3a;
  --green-500: #3c9a5f;
  --green-100: #d9eede;
  --green-50: #eef7f0;
  --accent: #f2a541;
  --accent-ink: #2a1a05;
  --ink: #1d2420;
  --muted: #55615a;
  --line: #d5ddd7;
  --radius: 20px;
  --shadow: 0 2px 4px rgba(29, 36, 32, 0.06), 0 8px 24px rgba(29, 36, 32, 0.08);
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: #fff;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--s3); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0 0 var(--s3); padding-left: 1.25rem; }
a, button, summary, .btn { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a { color: var(--green-700); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #1d2420; outline-offset: 2px; }
.skip { position: absolute; left: var(--s3); top: -80px; background: #fff; padding: var(--s2) var(--s3); border-radius: 12px; z-index: 30; min-height: 44px; display: inline-flex; align-items: center; }
.skip:focus { top: var(--s2); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s3); }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s3); padding-top: var(--s2); padding-bottom: var(--s2); }
.logo { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 800; color: var(--green-700); font-size: 1.125rem; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo small { font-weight: 600; color: var(--muted); font-size: 0.8125rem; }
.tt .tt-back { fill: #22b8cf; } .tt .tt-front { fill: #0b5a7a; }
.ads-line, .vat-line { font-size: 0.9375rem; color: var(--muted); }
.goal { border-left: 4px solid var(--accent); padding-left: var(--s3); }
.nav { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); color: var(--ink); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 10px 24px;
  border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-muted { background: #fff; color: var(--muted); border-color: var(--line); font-weight: 700; }
.btn-ghost { background: #fff; color: var(--green-700); border-color: var(--green-700); }

/* sections */
.section { padding: var(--s5) 0; }
.section-tint { background: var(--green-50); }
.lead { font-size: 1.1875rem; color: var(--muted); }
.hero { background: linear-gradient(180deg, var(--green-50), #fff); padding: var(--s5) 0 var(--s4); }
.hero .wrap { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-art { max-width: 320px; width: 100%; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; font-weight: 800; color: var(--green-700); margin: 0 0 var(--s2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.badge { display: inline-block; background: var(--green-100); color: var(--green-700); border-radius: 999px; padding: 2px 12px; font-size: 0.8125rem; font-weight: 800; white-space: normal; }
.badge-accent { background: #fde7c4; color: var(--accent-ink); }
.notice { background: #fff6e5; border: 2px solid var(--accent); border-radius: var(--radius); padding: var(--s3); margin: 0 0 var(--s4); color: var(--accent-ink); font-weight: 600; }

/* grids and cards */
.grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); padding: 0; margin: 0; list-style: none; }
.grid > * { min-width: 0; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.card h3 { margin: 0; }
.card .badge { align-self: flex-start; }
.card p { margin: 0; color: var(--muted); }
.card-art { background: var(--green-50); border-radius: 14px; padding: var(--s3); margin: calc(var(--s1) * -1) 0 var(--s2); }
.card-art svg { display: block; width: 100%; height: 96px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-price { font-weight: 600; font-size: 0.9375rem; color: var(--muted); }
.card-meta { font-size: 0.9375rem; color: var(--muted); }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.steps li { counter-increment: step; position: relative; padding-left: 64px; min-width: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 800; font-size: 1.375rem; display: grid; place-items: center; }
.steps h3 { margin-bottom: var(--s1); }
.steps p { color: var(--muted); margin: 0; }

/* trust strip */
.trust { list-style: none; margin: 0; padding: var(--s3); display: grid; gap: var(--s2) var(--s4); grid-template-columns: minmax(0, 1fr); background: var(--green-700); color: #fff; border-radius: var(--radius); font-weight: 700; }
.trust li::before { content: "\2713\00a0"; color: var(--accent); }

/* lists, tables */
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: var(--s2); }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green-700); font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: var(--s3); overflow-wrap: anywhere; min-width: 0; }
th { background: var(--green-50); color: var(--green-700); }
td + td, th + th { border-left: 1px solid var(--line); }
td ul { margin: 0; padding-left: 1.1rem; }
caption { caption-side: top; text-align: left; padding: var(--s2) var(--s3); color: var(--muted); font-size: 0.9375rem; }

/* offers */
.offers { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); margin-bottom: var(--s4); }
.offer { border: 2px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); min-width: 0; background: #fff; }
.offer h3 { margin-bottom: var(--s1); }
.offer .price { font-size: 1.25rem; font-weight: 800; margin: 0; color: var(--ink); }
.offer .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.offer p { margin: var(--s1) 0 0; color: var(--muted); font-size: 0.9375rem; }
.price-block { background: var(--green-50); border-radius: var(--radius); padding: var(--s4); }

/* faq */
details { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: var(--s2); }
summary { cursor: pointer; min-height: 48px; padding: 10px var(--s3); display: flex; align-items: center; font-weight: 700; }
details[open] summary { color: var(--green-700); }
details p { padding: 0 var(--s3); }

/* form */
.form { display: grid; gap: var(--s3); max-width: 640px; }
.form label { display: grid; gap: var(--s1); font-weight: 700; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; min-height: 48px; padding: 10px var(--s3); border: 2px solid var(--muted); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 160px; resize: vertical; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form label.check, .consent label { display: flex; gap: var(--s2); align-items: flex-start; font-weight: 400; }
.form label.check input, .consent input { width: 24px; height: 24px; min-height: 24px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--green-700); }
.privacy { background: var(--green-50); border-radius: 16px; padding: var(--s3); font-size: 0.9375rem; }

/* recipes */
.recipe-art { background: var(--green-50); border-radius: 14px; padding: var(--s3); }
.recipe-art svg { display: block; width: 100%; height: 80px; }
.recipe-card h3 a { color: var(--ink); }
.rating { font-weight: 700; color: var(--ink); }

/* footer */
.site-footer { background: var(--ink); color: #fff; padding: var(--s5) 0; margin-top: var(--s5); font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 var(--s3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.footer-links a, .small-print a { display: inline-flex; align-items: center; min-height: 44px; }

/* sticky bar (phone) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(29, 36, 32, 0.12);
}
.sticky-price { flex: 0 1 auto; min-width: 0; font-weight: 800; line-height: 1.25; font-size: 0.9375rem; }
.sticky-bar .btn { flex: 1 1 0; min-width: 0; padding: 8px var(--s3); font-size: 0.9375rem; }

@media (min-width: 600px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .wrap { padding: 0 var(--s4); }
  .grid, .offers, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .section { padding: var(--s6) 0; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-header .wrap { flex-wrap: nowrap; }
  .nav a { padding: 0 var(--s3); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* svg palette */
.ill .g7 { fill: var(--green-700); } .ill .g5 { fill: var(--green-500); } .ill .g1 { fill: var(--green-100); } .ill .ac { fill: var(--accent); } .ill .wh { fill: #fff; }
.ill .ln { fill: none; stroke: var(--green-700); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ill .ln5 { fill: none; stroke: var(--green-500); stroke-width: 4; stroke-linecap: round; }
.ill .lna { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
/* v4: try first, smaller prices, checkout methods */
/* `.card .card-action` (not `.card-action`): must outrank `.card p { margin: 0 }`, else the button floats up and cards in one row disagree. */
.card .card-action { position: relative; z-index: 1; margin-top: auto; }
.stores-line { color: var(--muted); font-size: 0.9375rem; }
.price-rule { margin-top: var(--s3); }
.methods { border: 1px solid var(--line); border-radius: 16px; padding: var(--s3); margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.methods label, .methods-local label, .methods-advanced label { display: flex; align-items: center; gap: var(--s2); min-height: 44px; }
.methods-advanced { padding: 0 var(--s3) var(--s2); }
.sticky-bar .btn-ghost { flex: 0 1 auto; }
.buy-form .field { display: grid; gap: var(--s1); margin-bottom: var(--s3); }
.buy-form .field input, .buy-form .field select { min-height: 44px; font: inherit; min-width: 0; }
