/* Healthy Basket — styles
   Colours: green = main accent, amber = warm accent. */
:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-soft: #E8F5E9;
  --amber: #F59E0B;
  --amber-soft: #FFF7E6;
  --ink: #1C2321;
  --muted: #4A5550;
  --line: #DDE3DF;
  --error: #B3261E;
  --error-soft: #FDECEA;
  --bg: #FFFFFF;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; text-decoration: none; font: inherit; font-weight: 700;
  padding: 12px 22px; min-height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--green-dark); }
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: 0.95rem; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--green-dark); text-decoration: none; }
.brand-icon { width: 34px; height: 34px; flex: none; }

/* Hero */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--green-soft) 0%, #fff 100%); }
.tag { display: inline-block; background: var(--amber-soft); color: #7A4A00; border: 1px solid #F8D9A0; font-weight: 600; font-size: 0.9rem; padding: 4px 12px; border-radius: 999px; }
.lead { font-size: 1.25rem; color: var(--muted); margin-bottom: 1.6em; }

/* Sections */
.section { padding: 56px 0; }
.alt { background: #F7FAF7; }
.big-quote { font-size: clamp(1.25rem, 4.2vw, 1.6rem); line-height: 1.5; border-left: 5px solid var(--amber); padding-left: 18px; margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green); margin-bottom: 10px; }
.step-icon svg, .promise-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-num { display: block; font-size: 0.85rem; font-weight: 700; color: #7A4A00; text-transform: uppercase; letter-spacing: 0.06em; }
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

/* Facts */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { padding: 14px 16px 14px 46px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.facts li::before { content: ""; position: absolute; left: 16px; top: 21px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* Privacy promise */
.promise { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 2px solid var(--green); border-radius: var(--radius); padding: 22px; }
.promise-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.promise h2 { font-size: 1.4rem; }
.text-link { font-weight: 700; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Form */
.join { background: var(--green-soft); }
.form { background: #fff; border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); display: grid; gap: 22px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.req { color: var(--error); }
.optional, .hint-inline { font-weight: 400; color: var(--muted); }
.hint { font-size: 0.92rem; color: var(--muted); margin: 6px 0 0; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], input[type="file"] {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #B8C4BD; border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
input[type="file"] { padding: 10px; }
input:focus { border-color: var(--green); }
.input-short { max-width: 140px; }
[aria-invalid="true"] { border-color: var(--error) !important; background: var(--error-soft) !important; }
.error { color: var(--error); font-weight: 600; font-size: 0.95rem; margin: 6px 0 0; }
.error:empty { display: none; }

.choices { display: grid; gap: 8px; grid-template-columns: 1fr; }
.choices-row { grid-template-columns: repeat(2, minmax(0, 160px)); }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; min-height: 50px; }
.choice:hover { border-color: #B8C4BD; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green); }
.choice-block { align-items: flex-start; font-weight: 400; }
.choice-block input { margin-top: 3px; }
.consent { display: grid; gap: 4px; }
.consent .error { margin-bottom: 6px; }
fieldset.invalid .choice { border-color: #E6A8A3; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status.err { background: var(--error-soft); color: var(--error); border: 1px solid #F3B8B3; }
.form-status.ok { background: var(--green-soft); color: var(--green-dark); border: 1px solid #A5D6A7; }
.form-status.info { background: var(--amber-soft); color: #7A4A00; border: 1px solid #F8D9A0; }

.notice { display: flex; gap: 12px; background: var(--amber-soft); border: 2px solid var(--amber); color: #5C3700; padding: 16px; border-radius: 12px; font-weight: 600; }
.notice svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.preview { margin-top: 12px; max-height: 280px; width: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }

/* Simple content pages */
.page { padding: 40px 0 56px; }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.center { text-align: center; }
.big-check { width: 84px; height: 84px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.big-check svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.next-steps { text-align: left; background: #F7FAF7; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 8px; margin: 24px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-outline { background: #fff; color: var(--green-dark); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 0.95rem; color: var(--muted); }
.site-footer p { margin-bottom: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-weight: 600; padding: 6px 0; }

/* Larger screens */
@media (min-width: 720px) {
  .hero { padding: 96px 0 104px; }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .form { padding: 32px; }
  .choices { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 2s; }
}

/* Small fixes */
.next-steps h2 { margin-top: 0; }
[id] { scroll-margin-top: 80px; }

/* Links under "How it works" and lists on the info pages */
.steps-links { margin: 16px 0 0; }
.page .facts { padding-left: 0; margin-bottom: 1em; }
.page ol { padding-left: 1.4em; }
.page ol li { margin-bottom: 0.7em; }
