/* CountingCarbon — mobile-first base styles */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --green-dark:   #1a5c2e;
  --green-mid:    #2d8a4e;
  --green-light:  #e8f5ec;
  --green-xlight: #f4fbf6;
  --text:         #1a1a1a;
  --text-muted:   #606060;
  --border:       #d4dbd6;
  --bg:           #fff;
  --shadow:       0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  --radius:       8px;
  --max-width:    960px;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #f7f8f7;
  margin: 0;
}

/* ── Nav ────────────────────────────────────────────────────────────── */

header { background: var(--green-dark); color: #fff; }

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 56px;
  position: relative;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  padding: 1rem 0;
  flex: 1;
}

/* Hamburger button — visible on mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: opacity 0.15s;
}
.nav-toggle:hover .nav-toggle__bar { opacity: 0.7; }

/* Nav menu */
#nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

#nav-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: block;
}
#nav-menu a:hover { color: #fff; background: rgba(255,255,255,0.12); }
#nav-menu a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}

@media (max-width: 600px) {
  .nav-toggle { display: flex; }

  #nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0.5rem 0 0.75rem;
  }
  #nav-menu.nav-menu--open { display: flex; }
  #nav-menu a {
    padding: 0.6rem 0.25rem;
    border-radius: 0;
    font-size: 1rem;
  }
  #nav-menu a:hover { background: none; opacity: 0.8; }
}

/* ── Flash messages ─────────────────────────────────────────────────── */

.messages { max-width: var(--max-width); margin: 1rem auto; padding: 0 1rem; }
.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.message--success { background: var(--green-light); border-left: 4px solid var(--green-mid); }
.message--error   { background: #fdecea; border-left: 4px solid #c0392b; }
.message--warning { background: #fef9e7; border-left: 4px solid #f39c12; }
.message--info    { background: #eaf4fb; border-left: 4px solid #2980b9; }

/* ── Main content ───────────────────────────────────────────────────── */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
}

main > h1:first-child {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  color: var(--green-dark);
}

/* ── Footer ─────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--green-mid); }

/* ── Hero (landing page) ─────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  max-width: 600px;
  margin: 0 auto;
}
.hero__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  color: var(--green-dark);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.hero__tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero__cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Features strip */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.feature {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.feature__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.feature h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--green-dark); }
.feature p  { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
  transition: opacity 0.15s, background 0.15s;
  min-height: 44px;
}
.btn:hover { opacity: 0.88; }
.btn--primary  { background: var(--green-mid); color: #fff; }
.btn--secondary {
  background: transparent;
  border-color: var(--green-mid);
  color: var(--green-mid);
}
.btn--danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn--sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  min-height: 36px;
}

/* On narrow screens, give standalone primary buttons full width */
@media (max-width: 400px) {
  .auth-card .btn,
  .auth-card form > .btn { display: block; width: 100%; text-align: center; margin-top: 0.5rem; }
  .auth-card .btn--secondary { margin-left: 0; }
}

/* ── Forms ───────────────────────────────────────────────────────────── */

label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=month],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,138,78,0.18);
}

.form-group { margin-bottom: 1.25rem; }
.form-errors { color: #c0392b; font-size: 0.875rem; margin-top: 0.25rem; list-style: none; padding: 0; }
.form-errors li::before { content: "⚠ "; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

.form-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-end; }
.form-inline input { flex: 1; min-width: 0; }
.form-inline select { width: auto; min-width: 140px; }

/* ── Cards ───────────────────────────────────────────────────────────── */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 1rem; font-size: 1.05rem; color: var(--green-dark); }
.card--danger { border-color: #e0b8b4; background: #fdf5f4; }
.card--danger h2 { color: #9b2c2c; }

/* Estimate current-value display inside a card */
.headline-number { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.25rem; }
.headline-number .unit { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
p.meta { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ── Auth pages ──────────────────────────────────────────────────────── */

.auth-card {
  max-width: 440px;
  margin: 1.5rem auto;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 1.25rem; font-size: 1.4rem; color: var(--green-dark); }
.auth-links { margin-top: 1.5rem; font-size: 0.9rem; }
.auth-legal { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

@media (max-width: 480px) {
  .auth-card { padding: 1.5rem 1.25rem; margin: 1rem auto; }
}

/* ── Prose ───────────────────────────────────────────────────────────── */

.prose { max-width: 700px; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose ul { line-height: 1.7; }

/* ── Household members list ──────────────────────────────────────────── */

.member-list { list-style: none; padding: 0; margin: 0; }
.member-list__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.member-list__item:last-child { border-bottom: none; }
.member-list__email { flex: 1; font-size: 0.95rem; word-break: break-all; }
.member-list__since { font-size: 0.82rem; color: var(--text-muted); }

/* ── Invite list ─────────────────────────────────────────────────────── */

.invite-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.invite-list li { padding: 0.35rem 0; font-size: 0.9rem; word-break: break-all; }

/* ── Badges ──────────────────────────────────────────────────────────── */

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  white-space: nowrap;
}
.badge--warn { background: #fef9e7; color: #7a5a00; }

/* ── Accessibility ───────────────────────────────────────────────────── */

.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;
}
.text-muted { color: var(--text-muted); }

/* ── Entries ─────────────────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.page-header h1 { margin: 0; }

.cadence-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.cadence-form label { margin: 0; font-weight: 400; }
.cadence-form select { width: auto; }

.entry-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 1.5rem;
}

.unit { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }

/* Tab bar (food mode switcher) */
.tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab {
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab:hover { color: var(--green-dark); }
.tab--active {
  color: var(--green-dark);
  border-bottom-color: var(--green-mid);
}

/* Table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.entry-table th, .entry-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.entry-table th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--green-xlight);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.entry-table tbody tr:last-child td { border-bottom: none; }
.entry-table tbody tr:hover { background: #f4fbf6; }

.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.num--negative { color: var(--green-mid); font-weight: 600; }
.entry-actions { text-align: right !important; }
.entry-table input[type=number] {
  width: 6.5rem; padding: 0.2rem 0.4rem; font-size: 0.85rem;
}

/* Row states */
.entry-row--saved td { animation: flash-save 1.8s ease-out; }
.entry-row--editing td { background: #f0f7f2; }
.entry-row--errors td { padding-top: 0; }

@keyframes flash-save {
  0%   { background: #c0ecce; }
  100% { background: transparent; }
}

/* Save flash banner */
.save-flash {
  padding: 0.75rem 1rem;
  background: var(--green-light);
  border-left: 4px solid var(--green-mid);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Small button variant */
.btn--sm { padding: 0.3rem 0.75rem; font-size: 0.82rem; min-height: 36px; }

/* HTMX loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }

/* ── Dashboard ───────────────────────────────────────────────────────── */

/* Headline number */
.dash-headline {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin-bottom: 1.5rem;
}
.dash-headline__number {
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
}
.dash-headline__unit {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 400;
  color: var(--green-dark);
}
.dash-headline__sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.dash-headline__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  opacity: 0.75;
}

/* Chart canvas wrapper */
.chart-wrap {
  position: relative;
  max-height: 340px;
}
.chart-wrap--doughnut {
  max-height: 260px;
  max-width: 260px;
  margin: 0 auto;
}
.chart-note {
  font-size: 0.82rem;
  margin: -0.5rem 0 0.75rem;
}

/* Composition layout: table + doughnut side by side on wider screens */
.composition-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .composition-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .composition-layout .composition-table { flex: 1; }
  .composition-layout .chart-wrap--doughnut { flex: 0 0 240px; }
}

/* Slice colour dot in breakdown table */
.slice-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Per-slice average context shown next to the slice label */
.slice-context {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-left: 18px;
  margin-top: 1px;
}
.slice-context a {
  color: var(--text-muted);
}

/* Benchmark source citation link/tag */
.benchmark-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  margin-left: 0.4rem;
  cursor: help;
}
a.benchmark-source:hover { color: var(--green-dark); }

/* Benchmark bar chart */
.benchmarks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.benchmarks__divider {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 0.5rem 0 0.15rem;
  border-top: 1px solid var(--border);
  margin-top: 0.4rem;
}
.benchmark-row {
  display: grid;
  grid-template-columns: 10rem 1fr 7rem;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.benchmark-row__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}
.benchmark-row__bar-wrap {
  background: #e8ece9;
  border-radius: 4px;
  height: 16px;
  overflow: hidden;
}
.benchmark-row__bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  min-width: 2px;
}
.benchmark-row__value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.benchmark-row--you .benchmark-row__bar-wrap { background: #d4eed9; }
.benchmark-row--you .benchmark-row__label,
.benchmark-row--you .benchmark-row__value { color: var(--text); }

@media (max-width: 520px) {
  .benchmark-row {
    grid-template-columns: 7.5rem 1fr 5.5rem;
    gap: 0.4rem;
    font-size: 0.8rem;
  }
  .benchmark-row__label  { font-size: 0.78rem; }
  .benchmark-row__value  { font-size: 0.75rem; }
  .benchmark-row__bar-wrap { height: 13px; }
}

@media (max-width: 360px) {
  .benchmark-row { grid-template-columns: 6rem 1fr 5rem; }
}

/* ── Phase 2 additions ────────────────────────────────────────────────────── */
.page-subtitle { color: var(--text-muted); margin-top: -0.5rem; margin-bottom: 1rem; }
.help-text { font-size: 0.82rem; color: var(--text-muted); margin: 0.2rem 0 0; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; cursor: pointer; }
.checkbox-label input[type=checkbox] { width: 1.1rem; height: 1.1rem; }

/* ── Breakdown page ────────────────────────────────────────────────────────── */

.breakdown-summary p { margin: 0.25rem 0; }
.breakdown-total { font-size: 1.1rem; margin: 0.75rem 0 0.25rem; }

.breakdown-item { margin-bottom: 1.25rem; }
.breakdown-item__title {
  font-size: 0.95rem;
  font-family: monospace;
  color: var(--green-dark);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.breakdown-table { margin-bottom: 0.75rem; }

.breakdown-formula {
  background: var(--bg-alt, #f8f8f6);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.88rem;
}
.breakdown-formula__expr {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1em;
  color: var(--green-dark);
}
.breakdown-formula__ver {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.breakdown-citation { font-size: 0.8rem; color: var(--text-muted); }
.breakdown-line-result { font-size: 0.92rem; margin: 0.5rem 0 0; }

.breakdown-factors-note { background: #f0f7f3; }

/* ── Catalogue browse page ─────────────────────────────────────────────────── */

.catalogue-ogl {
  background: #f0f7f3;
  font-size: 0.88rem;
}
.catalogue-ogl p { margin: 0; }

.catalogue-section-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 2rem 0 0.75rem;
}

.catalogue-slice summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}
.catalogue-slice summary::-webkit-details-marker { display: none; }
.catalogue-slice summary::before {
  content: '▶';
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.catalogue-slice[open] summary::before { transform: rotate(90deg); }
.catalogue-slice__count { font-size: 0.82rem; margin-left: auto; }
.catalogue-slice__desc { font-size: 0.88rem; color: var(--text-muted); margin: 0.5rem 0 0.75rem; }

.catalogue-li {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}
.catalogue-li__title { font-size: 0.95rem; margin: 0 0 0.4rem; font-weight: 600; }
.catalogue-li__key {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}
.catalogue-li__inputs { font-size: 0.85rem; margin-bottom: 0.4rem; }
.catalogue-input-tag {
  display: inline-block;
  background: #eef;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  margin: 0.1rem 0.25rem 0.1rem 0;
  font-size: 0.82rem;
}
.catalogue-formula {
  font-size: 0.88rem;
  background: #f8f8f6;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  margin: 0.4rem 0;
  display: inline-block;
}
.catalogue-formula__expr { color: var(--green-dark); margin-left: 0.3rem; }
.catalogue-li__help { font-size: 0.82rem; color: var(--text-muted); margin: 0.25rem 0 0; }

.catalogue-factorset summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.catalogue-factorset summary::-webkit-details-marker { display: none; }
.catalogue-factorset summary::before {
  content: '▶';
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.catalogue-factorset[open] summary::before { transform: rotate(90deg); }
.catalogue-fs__source { font-size: 0.85rem; margin: 0.5rem 0 0.75rem; }
.catalogue-factors-table { font-size: 0.83rem; }
.catalogue-citation { font-size: 0.78rem; color: var(--text-muted); max-width: 30ch; }

/* ── Wizard ─────────────────────────────────────────────────────────── */

.wizard {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.wizard__header { margin-bottom: 2rem; }
.wizard__subtitle { color: var(--text-muted); margin: 0.25rem 0 1rem; }
.wizard__progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.75rem 0 0.4rem;
}
.wizard__progress-bar {
  height: 100%;
  background: var(--green-mid);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.wizard__step-label { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.wizard__error { margin-bottom: 1rem; }

.wizard__form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
}
.wizard__form legend {
  font-weight: 600;
  font-size: 1rem;
  padding: 0 0.4rem;
}
.wizard__hint { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0 0.75rem; }

.wizard__radio-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.wizard__radio { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.95rem; }
.wizard__radio input[type="radio"] { flex-shrink: 0; }

.wizard__radio-group--cards { gap: 0.75rem; }
.wizard__radio--card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color 0.15s;
}
.wizard__radio--card:has(input:checked) { border-color: var(--green-mid); background: var(--green-xlight); }
.wizard__card-title { font-weight: 600; display: block; }
.wizard__card-desc { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 0.15rem; }

.wizard__conditional { margin-top: 0.5rem; }

.wizard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}
.wizard__skip-all { margin-left: auto; font-size: 0.85rem; }
.btn--ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
}
.btn--ghost:hover { border-color: var(--text-muted); color: var(--text); }

.wizard__reassurance {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* ── Estimate badge ──────────────────────────────────────────────────── */

.badge-estimate {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff8e1;
  color: #7c6000;
  border: 1px solid #f0d060;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
  margin-left: 0.35rem;
}

/* ── Landing page ────────────────────────────────────────────────────── */

.landing-hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: #fff;
}
.landing-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.75rem; }
.landing-hero .tagline { font-size: clamp(1rem, 2.5vw, 1.25rem); opacity: 0.9; margin: 0 0 2rem; max-width: 46ch; margin-inline: auto; }
.landing-hero .hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.landing-hero .btn--primary { background: #fff; color: var(--green-dark); }
.landing-hero .btn--primary:hover { background: var(--green-light); }
.landing-hero .btn--outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; padding: 0.55rem 1.2rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.landing-hero .btn--outline:hover { background: rgba(255,255,255,0.12); }

.landing-section { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1rem; }
.landing-section--alt { background: var(--green-xlight); }
.landing-section h2 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.landing-section .section-intro { color: var(--text-muted); margin: 0 0 2rem; max-width: 55ch; }

.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; counter-reset: steps; }
.how-step { counter-increment: steps; position: relative; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.how-step::before {
  content: counter(steps);
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  background: var(--green-mid); color: #fff;
  border-radius: 50%; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.how-step h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.how-step p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.example-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.example-number {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}
.example-number__slice { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.example-number__kg { font-size: 1.75rem; font-weight: 700; color: var(--green-dark); line-height: 1.1; }
.example-number__unit { font-size: 0.78rem; color: var(--text-muted); }
.example-number__total { border-color: var(--green-mid); background: var(--green-xlight); }
.example-number__total .example-number__kg { font-size: 2.25rem; }

.trust-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; }
.trust-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
.trust-list__icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }

.landing-cta-section { text-align: center; padding: 3rem 1rem; }
.landing-cta-section h2 { font-size: 1.75rem; margin: 0 0 0.5rem; }
.landing-cta-section p { color: var(--text-muted); margin: 0 0 1.5rem; }
