/* SteadyCupboard — calm, practical, British. Warm neutrals, large type, big targets.
   Accessibility first: 18px base, WCAG AA contrast, visible focus, mobile-first. */

:root {
  --bg: #f7f2ea;
  --surface: #ffffff;
  --surface-2: #fbf7f0;
  --ink: #2a2824;
  --muted: #5a544a;
  --line: #e6dccd;
  --brand: #3c6a58;      /* calm sage */
  --brand-ink: #2b4f41;
  --brand-050: #eaf1ed;
  --accent: #b9682f;     /* warm amber — never alarm red */
  --good: #357a54;
  --mid: #9a6b1f;
  --low: #8f564a;        /* muted clay, not a warning red */
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(60,45,30,.06), 0 6px 20px rgba(60,45,30,.07);
  --maxw: 960px;
  --gutter: 16px;
  --tap: 48px;
  font-size: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1a17;
    --surface: #26231f;
    --surface-2: #2d2a25;
    --ink: #f0ebe2;
    --muted: #c3bcae;
    --line: #3c382f;
    --brand: #7fb79f;
    --brand-ink: #a7d2c1;
    --brand-050: #253029;
    --accent: #e0996a;
    --good: #7fc29a;
    --mid: #d6ad6a;
    --low: #d8a097;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1a17; --surface: #26231f; --surface-2: #2d2a25; --ink: #f0ebe2;
  --muted: #c3bcae; --line: #3c382f; --brand: #7fb79f; --brand-ink: #a7d2c1;
  --brand-050: #253029; --accent: #e0996a; --good: #7fc29a; --mid: #d6ad6a; --low: #d8a097;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin-top: .2em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-ink); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.1) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 22px; border-radius: 999px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; background: var(--brand); color: #fff;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--surface); color: var(--brand-ink); border-color: var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--brand); background: var(--brand-050); }
.btn.block { display: flex; width: 100%; }
.btn.lg { font-size: 1.15rem; padding: 16px 28px; }

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

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3,1fr); } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-050), var(--bg)); }
.hero .wrap { padding-top: 40px; padding-bottom: 20px; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 40ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Transparency box */
.transparency { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 22px; }

/* The Check */
.check-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.check-head { padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--brand-050); }
.check-body { padding: 22px; }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; background: var(--brand); width: 0%; transition: width .25s ease; }
.q-title { font-size: 1.3rem; margin-bottom: 4px; }
.q-hint { color: var(--muted); margin-bottom: 16px; }
.options { display: grid; gap: 12px; }
@media (min-width: 520px) { .options.two { grid-template-columns: 1fr 1fr; } }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 56px; padding: 14px 18px; font-size: 1.05rem; font-weight: 600;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
}
.opt:hover { border-color: var(--brand); background: var(--brand-050); }
.opt[aria-pressed="true"], .opt.selected { border-color: var(--brand); background: var(--brand-050); box-shadow: inset 0 0 0 1px var(--brand); }
.opt .tick { margin-left: auto; opacity: 0; font-weight: 800; color: var(--brand-ink); }
.opt[aria-pressed="true"] .tick, .opt.selected .tick { opacity: 1; }
.check-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* Result */
.result-water { font-size: 2.1rem; font-weight: 800; color: var(--brand-ink); }
.scoreboard { display: grid; gap: 10px; margin: 18px 0; }
.score-row { display: grid; grid-template-columns: 1fr; gap: 6px; }
.score-row .label { display: flex; justify-content: space-between; font-weight: 600; }
.meter { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; }
.lvl-low > span { background: var(--low); }
.lvl-mid > span { background: var(--mid); }
.lvl-high > span { background: var(--good); }
.gaps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; }
.gaps li { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.first-step { background: var(--brand-050); border: 1px solid var(--brand); border-radius: var(--radius); padding: 16px; }

/* Blurred previews */
.previews { display: grid; gap: 16px; margin-top: 10px; }
@media (min-width: 640px) { .previews { grid-template-columns: 1fr 1fr; } }
.preview { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.preview .sheet { padding: 16px; filter: blur(4px); user-select: none; pointer-events: none; opacity: .85; }
.preview .lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--surface) 30%, transparent); font-weight: 700; color: var(--brand-ink); }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(3,1fr); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--brand-ink); }
.plan .per { color: var(--muted); font-size: .95rem; }
.plan ul { padding-left: 1.1em; margin: 12px 0 18px; }
.plan li { margin: 6px 0; }
.plan .btn { margin-top: auto; }
.vat { color: var(--muted); font-size: .85rem; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: 10px; }
details.faq > summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-ink); }
details.faq[open] > summary::after { content: "–"; }
details.faq .answer { padding: 0 18px 16px; color: var(--muted); }

/* How it works */
.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { counter-increment: step; content: counter(step); flex: 0 0 auto; width: 38px; height: 38px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); }
.site-footer a { color: var(--brand-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 14px; }

/* Cookie banner */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; max-width: 640px; margin: 0 auto; }
.cookie p { margin: 0 0 12px; }
.cookie .row { display: flex; flex-wrap: wrap; gap: 10px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-050); border-radius: 999px; padding: 3px 10px; }
.notice { font-size: .85rem; color: var(--muted); font-style: italic; }
