:root {
  --ink: #17252b;
  --muted: #5c6b70;
  --paper: #f6f3ec;
  --panel: #ffffff;
  --line: #ddd6c8;
  --leaf: #2f6f3e;
  --accent: #a3541d;
  --ok: #2f6f3e;
  --est: #a3541d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--leaf); }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2rem; margin: 0 0 .3em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.05rem; margin: 0 0 .4em; }

.top { background: var(--ink); color: #f3efe6; padding: 12px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand .mark { display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 2px solid #b8c9b0; border-radius: 50%; font-weight: 700; }
.brand small { color: #b9c4c6; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: #e9e4d8; text-decoration: none; border-bottom: 1px solid transparent; }
.top nav a:hover { border-bottom-color: #b8c9b0; }

/* header Designs dropdown */
.menu { position: relative; }
.menu > a { display: inline-flex; align-items: center; gap: 5px; }
.menu > a::after { content: "\25be"; font-size: .68em; }
.menu-panel { display: none; position: absolute; left: 0; top: 100%; z-index: 30;
  min-width: 160px; margin: 8px 0 0; padding: 6px 0; list-style: none;
  background: #fff; border: 1px solid #c8d2bd; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2); }
/* invisible hover bridge over the gap between the trigger and the panel, so the
   menu no longer closes while the pointer travels from "Designs" down to a draft */
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0;
  top: -12px; height: 12px; }
.menu:hover .menu-panel, .menu:focus-within .menu-panel { display: block; }
.menu-panel li { position: relative; }
/* The panel lives inside .top nav, whose `a` rule is more specific than a
   plain `.menu-panel a`; qualify these selectors so the darker resting colour
   actually applies instead of the light header-link colour. */
.top nav .menu-panel a { display: block; padding: 6px 14px; color: #000000; font-weight: 600; text-decoration: none;
  border-bottom: none; white-space: nowrap; }
.top nav .menu-panel a:hover { background: #eef3e9; color: #000000; border-bottom: none; }
.menu-sub { display: none; position: absolute; left: 100%; top: -7px; z-index: 31;
  min-width: 130px; margin: 0 0 0 4px; padding: 6px 0; list-style: none;
  background: #fff; border: 1px solid #c8d2bd; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2); }
/* bridge on the left of each draft submenu for the diagonal move to Overview/Plan/Budget */
.menu-sub::before { content: ""; position: absolute; left: -8px; top: 0; bottom: 0; width: 8px; }
.menu-panel li:hover > .menu-sub, .menu-panel li:focus-within > .menu-sub { display: block; }
.menu-sub a { padding: 5px 14px; }

.hero { padding: 34px 0 10px; }
.hero.small { padding-bottom: 0; }
.lede { color: var(--muted); max-width: 78ch; }
.muted { color: var(--muted); font-size: .92em; }
.note-line { background: #efe9db; border-left: 3px solid var(--accent); padding: 8px 12px; }
.owner { background: #f1ece0; border-left: 3px solid var(--leaf); padding: 8px 12px; font-size: .93em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 22px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.card h2 { margin-top: 0; }
.card h2 a { text-decoration: none; }
.tag { font-style: italic; color: var(--accent); margin-top: 0; }

.stats { display: flex; gap: 20px; margin: 12px 0; }
.stats dt { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; }

.btn { display: inline-block; background: var(--leaf); color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 5px; border: 1px solid var(--leaf); font-size: .92em; }
.btn.ghost { background: transparent; color: var(--leaf); }
.btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.small { padding: 5px 10px; font-size: .85em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.rate { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.rate input[type=text] { flex: 1; min-width: 160px; }
label { display: inline-flex; flex-direction: column; gap: 4px; font-size: .88em; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 6px; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }

.callout { background: #e9efe6; border-left: 4px solid var(--leaf); padding: 10px 14px; }
.callout.ok { background: #e9efe6; }
.warn { background: #fdf3e7; border-left: 4px solid var(--accent); padding: 10px 14px; }

table.grid { width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--line); margin: 10px 0 18px; font-size: .93em; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); padding: 8px 10px;
  text-align: left; vertical-align: top; }
table.grid thead th { background: #ece6d9; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; }
table.grid td.num, table.grid th.num { text-align: right; white-space: nowrap; }
table.grid.mini td, table.grid.mini th { padding: 5px 8px; }
table.grid tfoot th { background: #f3efe5; }
table.compare td { min-width: 220px; }
tr.grand td, tr.grand th { font-weight: 700; font-size: 1.05em; background: #f3efe5; }

.zone-chip { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: .85em; }
.zone-A { background: #b3208a; } .zone-B { background: #c26a10; } .zone-C { background: #6d3aa8; }
.zone-D { background: #b3322c; } .zone-E { background: #2f7f5c; } .zone-F { background: #2b6a8f; }
.zone-G { background: #7a7a2f; } .zone-H { background: #4a4a8f; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78em; border: 1px solid var(--line); }
.pill.ok { background: #e4efe3; color: #24562f; border-color: #bcd4b8; }
.pill.est { background: #f6ecdd; color: #7a4415; border-color: #e0cba9; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.panel.warn { background: #fdf3e7; }

/* ---- scaled plan ---- */
.plan-full { width: 100%; }
.keys-row { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .keys-row { grid-template-columns: 1fr; } }
.keybox { margin-bottom: 10px; }
.keybox h3 { text-transform: uppercase; letter-spacing: .06em; font-size: .82em; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; font-size: .9em; }
.legend li { padding: 2px 0; }
.keybtn { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 5px;
  padding: 4px 6px; font: inherit; color: inherit; cursor: pointer; }
.keybtn:hover { background: #f3efe5; border-color: var(--line); }
.keybtn.on { background: #e9efe6; border-color: var(--leaf); }
.keybtn .kname { text-transform: capitalize; }
.legend .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; flex: none; }
.keybox .legend { max-height: 112px; overflow-y: auto; overflow-x: hidden; padding-right: 4px;
  scrollbar-gutter: stable; }
/* keep a visible scrollbar on the Layers / Zones key boxes when the list overflows.
   Do NOT set scrollbar-width here: a non-auto value makes Chrome ignore the
   ::-webkit-scrollbar rules below and fall back to the native overlay bar that
   only appears while scrolling. */
.keybox .legend::-webkit-scrollbar { width: 11px; }
.keybox .legend::-webkit-scrollbar-track { background: #ece7db; border-radius: 6px; }
.keybox .legend::-webkit-scrollbar-thumb { background: #8a9884; border-radius: 6px;
  border: 2px solid #ece7db; }
.keybox .legend::-webkit-scrollbar-thumb:hover { background: #6d7c67; }
/* Firefox: a scrollbar-color forces a non-overlay, always-visible scrollbar. */
@supports (-moz-appearance: none) {
  .keybox .legend { scrollbar-width: auto; scrollbar-color: #8a9884 #ece7db; }
}
/* light gray rule above the click-to-filter hint in the Layers / Zones keys */
.keybox .keyhint { border-top: 1px solid #d8d2c6; padding-top: 8px; margin-top: 8px; }
.filter-summary { margin: 0 0 10px; font-size: .95em; font-weight: 600; color: var(--ink); }
.filter-summary[hidden] { display: none; }
.zoombar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.zoombar .btn { padding: 5px 9px; }

.plan-viewport { position: relative; width: 100%; overflow: hidden; background: #e9e4d7;
  border: 1px solid var(--line); border-radius: 8px; cursor: grab; touch-action: none; }
.plan-viewport.dragging { cursor: grabbing; }
.plan-inner { position: relative; width: 100%; transform-origin: 0 0; will-change: transform; }
.plan-inner img { display: block; width: 100%; height: auto; user-select: none; }
#overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#overlay circle { cursor: help; }
.hint { margin-top: 8px; }

.tablewrap { overflow-x: auto; max-width: 100%; border-radius: 8px; }
.plantlist { margin-top: 6px; }
.plantlist td, .plantlist th { white-space: nowrap; }
.plantlink { background: none; border: 0; padding: 0; font: inherit; color: var(--leaf);
  cursor: pointer; text-align: left; }
.plantlink:hover { text-decoration: underline; }

/* ---- charts ---- */
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; overflow-x: auto; }
.chart-row { display: grid; grid-template-columns: minmax(160px, 220px) minmax(420px, 1fr);
  align-items: center; gap: 10px; border-bottom: 1px solid #eee8dc; padding: 4px 0; }
.chart-row:last-child { border-bottom: 0; }
.chart-head { font-size: .78em; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); border-bottom: 1px solid var(--line); }
.chart-name { font-size: .9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-track { position: relative; display: flex; height: 26px; background: #faf8f2;
  border-radius: 4px; overflow: hidden; }
.chart-month { flex: 1 1 0; text-align: center; font-size: .68em; line-height: 26px;
  border-left: 1px dotted #e3dccd; color: var(--muted); }
.chart-month:first-child { border-left: 0; }
.chart-body .chart-bar { position: absolute; top: 4px; bottom: 4px; border: 0; padding: 0;
  background: var(--leaf); opacity: .8; border-radius: 3px; cursor: help; }
.chart-body .chart-bar:hover { opacity: 1; }
.chart-section { margin: 10px 0 2px; font-size: .78em; text-transform: uppercase;
  letter-spacing: .05em; color: var(--accent); border-bottom: 1px solid var(--line);
  padding-bottom: 3px; }

/* ---- hover card ---- */
.plant-tip { position: fixed; z-index: 50; pointer-events: none; max-width: 320px;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 37, 43, .18); padding: 10px 12px; font-size: .84em; }
.plant-tip h4 { margin: 0 0 2px; font-size: 1rem; }
.plant-tip .tip-bot { margin: 0 0 6px; color: var(--muted); font-size: .9em; }
.plant-tip .tip-row { display: flex; gap: 8px; justify-content: space-between;
  border-top: 1px dotted #e8e1d3; padding: 2px 0; }
.plant-tip .tip-row span { color: var(--muted); }
.plant-tip .tip-row b { font-weight: 600; text-align: right; }
.plant-tip .tip-note { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 4px; }
.plant-tip .tip-note span { display: block; color: var(--muted); font-size: .82em;
  text-transform: uppercase; letter-spacing: .04em; }

/* ---- plant database ---- */
.plantscroll { max-height: none; }
.plants-table { min-width: 1900px; }
.plants-table thead th { position: sticky; top: 0; z-index: 2; }
.plants-table .stick { position: sticky; left: 0; z-index: 3; background: var(--panel);
  box-shadow: 1px 0 0 var(--line); min-width: 190px; }
.plants-table thead .stick { z-index: 4; background: #ece6d9; }
.plants-table tbody tr:nth-child(even) td { background: #faf9f5; }
.plants-table tbody tr:nth-child(even) td.stick { background: #f6f4ee; }
.plants-table tbody tr:hover td { background: #f1f5ec; }
.plants-table td.uses { min-width: 260px; max-width: 340px; font-size: .88em; }
.library-note code { font-size: .85em; }

.note-zone { margin: 12px 0 4px; }
.note-zone h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.note-zone ul { margin: 0 0 8px 10px; padding-left: 18px; }
.note-zone li { margin: 2px 0; }

.library-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px; align-items: end; }
.library-form label.wide { grid-column: 1 / -1; }
.library-form textarea { width: 100%; }
.library-form button { justify-self: start; }

.scalebar { background: var(--ink); height: 10px; border-radius: 2px; margin-bottom: 6px; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; background: var(--panel);
  border: 1px solid var(--line); padding: 14px; border-radius: 8px; margin: 18px 0; }
.filters button { align-self: flex-end; }

.zone-block { background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 16px; }
.feedback-box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.feedback-box form { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.feedback-box textarea { width: 100%; }

.steps { max-width: 70ch; }
.foot { margin: 40px auto 30px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85em; }
.foot p { margin: 0; }
.foot-links { margin-top: 8px; }
.foot-links a { color: var(--leaf); }
.foot-links span { padding: 0 6px; }

/* ---------------------------------------------------------- plant photos */
.row-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 4px;
  border: 1px solid #d8dfd0; display: block; cursor: zoom-in; background: #f4f6f1; }
.plants-table td.photo-cell { width: 60px; padding: 4px 8px; }

.photo-hover { position: fixed; z-index: 60; width: 320px; max-width: 90vw;
  background: #fff; border: 1px solid #c8d2bd; border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.photo-hover img { display: block; width: 100%; height: auto; }
.photo-hover-cap { padding: 8px 10px; font-size: .85rem; line-height: 1.35; }

.plant-photo { margin: 0 0 14px; }
.plant-photo img { width: 100%; max-width: 560px; height: auto; display: block;
  border-radius: 8px; border: 1px solid #d8dfd0; }
.plant-photo figcaption { font-size: .82rem; margin-top: 4px; }

.tip-photo { display: block; width: 100%; height: auto; max-height: 180px;
  object-fit: cover; border-radius: 6px; margin: 6px 0 8px; }

.credit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px; }
.credit-card { margin: 0; border: 1px solid #d8dfd0; border-radius: 8px; overflow: hidden;
  background: #fff; }
.credit-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.credit-card figcaption { padding: 8px 10px; font-size: .8rem; line-height: 1.35; }

/* --------------------------------------------------------- chart sort bar */
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 6px 0 10px; }
.sortbar-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
  color: #5b6b56; margin-right: 2px; }
.sortbtn { font: inherit; font-size: .85rem; padding: 4px 11px; cursor: pointer;
  border: 1px solid #c3cdb8; border-radius: 999px; background: #fff; color: #23331f; }
.sortbtn:hover { background: #f2f5ec; }
.sortbtn.on { background: #2f5136; border-color: #2f5136; color: #fff; }
.sortbtn:focus-visible { outline: 2px solid #2f5136; outline-offset: 2px; }

/* --------------------------------------------------- budget layer costs */
.layer-costs { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none;
  padding: 0; margin: 6px 0 0; font-size: .95rem; }
.layer-costs li { display: inline-flex; align-items: baseline; gap: 4px; color: #23331f; }
.layer-costs li.all { color: #2f5136; border-left: 1px solid #c3cdb8; padding-left: 16px; }

/* --------------------------------------------------- draft section nav */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.subnav-link { display: inline-block; padding: 4px 14px; border-radius: 999px;
  border: 1px solid #c3cdb8; color: #2f5136; text-decoration: none; font-size: .95rem;
  line-height: 1.5; }
.subnav-link:hover { background: #eef3e9; }
.subnav-link.on { background: #2f5136; border-color: #2f5136; color: #fff; }
.subnav-link:focus-visible { outline: 2px solid #2f5136; outline-offset: 2px; }
.subnav-row { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 16px; margin: 10px 0 0; }
.subnav-row .subnav { margin: 0; }
.subnav-row .compare-drafts { flex: none; }

/* --------------------------------------------------- sector analysis */
.sectors .lede { margin-top: 0; }
.sector-map-wrap { margin: 14px 0 6px; }
.sector-map { position: relative; max-width: 780px; }
.sector-map svg { display: block; width: 100%; height: auto; background: #f3f1e8;
  border: 1px solid var(--line); border-radius: 8px; }
.sector-site .lot { fill: #eef3e6; stroke: #b9c7ac; stroke-width: 2; }
.sector-site .house { fill: #e6ded0; stroke: #a99b83; stroke-width: 2; }
.sector-site .pool { fill: #cfe4ec; stroke: #7fa9bb; stroke-width: 2; }
.sector-site .driveway { fill: #e9e3d6; stroke: #c3bba6; stroke-width: 1.5; }
.sector-site .street { fill: #dcd8cd; stroke: #c3bba6; stroke-width: 1.5; }
.sector-site .site-label { fill: #6a6a5e; font-size: 15px; text-anchor: middle;
  font-family: "Iowan Old Style", Georgia, serif; }
.sector-site .street-label { font-size: 16px; letter-spacing: .04em; }
.sector-site .north line { stroke: var(--ink); stroke-width: 2; }
.sector-site .north polygon { fill: var(--ink); }
.sector-site .north text { fill: var(--ink); font-size: 15px; text-anchor: middle; font-weight: 700; }

.sector-arrow { cursor: pointer; outline: none; }
.sector-arrow line { stroke-width: 3.5; stroke-linecap: round; }
.sector-arrow polygon { stroke: none; }
.sector-arrow circle { stroke: #fff; stroke-width: 2; }
.sector-arrow text { fill: #fff; font-size: 14px; font-weight: 700;
  font-family: "Iowan Old Style", Georgia, serif; pointer-events: none; }
.sector-arrow.opportunity line { stroke: #2f6f3e; }
.sector-arrow.opportunity polygon { fill: #2f6f3e; }
.sector-arrow.opportunity circle { fill: #2f6f3e; }
.sector-arrow.caution line { stroke: #a3541d; }
.sector-arrow.caution polygon { fill: #a3541d; }
.sector-arrow.caution circle { fill: #a3541d; }
.sector-arrow.neutral line { stroke: #5c6b70; }
.sector-arrow.neutral polygon { fill: #5c6b70; }
.sector-arrow.neutral circle { fill: #5c6b70; }
.sector-arrow:hover line, .sector-arrow:focus line { stroke-width: 5.5; }
.sector-arrow:focus circle { stroke: #17252b; stroke-width: 3; }

.sector-hint { margin: 8px 0 0; }

.sector-tip { position: fixed; z-index: 60; max-width: 340px; padding: 12px 14px;
  background: #fff; border: 1px solid #c8d2bd; border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22); font-size: .9rem; pointer-events: none; }
.sector-tip h4 { margin: 0 0 2px; font-size: 1rem; }
.sector-tip .tip-bot { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }
.sector-tip .sector-tip-sum { margin: 0 0 8px; }
.sector-tip .tip-note { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.sector-tip .tip-note span { display: block; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); margin-bottom: 2px; }

.sector-list { list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sector-item { background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid #5c6b70; border-radius: 8px; padding: 12px 14px; }
.sector-item.sector-opportunity { border-left-color: #2f6f3e; }
.sector-item.sector-caution { border-left-color: #a3541d; }
.sector-item h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sector-num { display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: #5c6b70; color: #fff; font-size: .82rem; flex: none; }
.sector-opportunity .sector-num { background: #2f6f3e; }
.sector-caution .sector-num { background: #a3541d; }
.sector-tone { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.sector-obs { margin: 0 0 6px; }
.sector-resp { margin: 0; font-size: .95em; }
.sector-sources { margin-top: 18px; }

/* =====================  Landing (home) page  ===================== */
main.landing { position: relative; }

/* Fixed, slightly blurred food-forest backdrop that stays put while the
   copy scrolls over it. */
main.landing::before {
  content: "";
  position: fixed;
  inset: -6vmax;                 /* overscan so the blur has no soft edges */
  z-index: -2;
  background: #16241a url("img/food-forest-hero.jpg") center / cover no-repeat;
  filter: blur(4px) saturate(1.05) brightness(.9);
}
main.landing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(10,22,14,.22), rgba(8,16,10,.72) 72%),
    linear-gradient(180deg, rgba(8,16,10,.42), rgba(8,16,10,.6));
}

/* Hero */
.landing-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(54px, 12vh, 132px) 22px clamp(38px, 8vh, 78px);
  text-align: center;
  color: #f6f3ea;
}
.landing-hero .eyebrow {
  margin: 0 0 14px;
  font-size: .8em; letter-spacing: .18em; text-transform: uppercase;
  color: #cfe3c2; font-weight: 700;
}
.landing-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 2px 28px rgba(0,0,0,.5);
}
.landing-hero .lede {
  margin: 0 auto 26px; max-width: 60ch;
  font-size: clamp(1.02rem, 2.1vw, 1.24rem); line-height: 1.6;
  color: #e9ecdf; text-shadow: 0 1px 14px rgba(0,0,0,.55);
}
main.landing .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 6px; }
.landing-hero .btn.ghost {
  color: #f4f6ee; border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
}
.landing-hero .btn.ghost:hover { background: rgba(255,255,255,.24); }

/* Jump nav */
.jump {
  display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center;
  margin: 34px auto 0; padding: 0;
}
.jump a {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #f4f6ee; text-decoration: none; font-size: .9em;
  backdrop-filter: blur(6px); transition: background .18s, transform .18s;
}
.jump a:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }

/* Content sections sit on crisp, translucent cards over the backdrop. */
.landing-section {
  max-width: 1040px;
  margin: 0 auto 26px;
  padding: clamp(26px, 5vw, 52px);
  background: rgba(253,252,248,.96);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 20px;
  box-shadow: 0 18px 52px rgba(8,20,12,.3);
  backdrop-filter: blur(3px);
}
.landing-section.alt { background: rgba(245,248,239,.96); }
.landing-section h2 {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em;
}
main.landing .lede { max-width: 66ch; }

/* "Back to top" chip on each linked section title */
.to-top {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .58em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #3c5c43; text-decoration: none; white-space: nowrap;
  border: 1px solid #cdd9c6; border-radius: 999px; padding: 6px 12px;
  background: #fff; transition: background .18s, color .18s, border-color .18s;
}
.to-top:hover { background: #2f5136; color: #fff; border-color: #2f5136; }

/* Card grids */
main.landing .reasons,
main.landing .grid { display: grid; gap: 16px; }
main.landing .reasons { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
main.landing .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 18px 0 10px; }
main.landing .grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
main.landing .reasons article,
main.landing .grid article {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px;
}
main.landing .reasons article h3,
main.landing .grid article h3 { margin: 0 0 8px; font-size: 1.04rem; }
main.landing .reasons article p,
main.landing .grid article p { margin: 0; color: #4a4a44; line-height: 1.55; }

/* Numbered steps */
main.landing .steps.big {
  max-width: none; margin: 0; padding: 0; list-style: none;
  counter-reset: step; display: grid; gap: 12px;
}
main.landing .steps.big li {
  position: relative; counter-increment: step;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px 14px 62px; line-height: 1.55;
}
main.landing .steps.big li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 13px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--leaf); color: #fff; font-weight: 700; font-size: .9em;
}

/* Price cards */
main.landing .price-card { display: flex; flex-direction: column; }
main.landing .price-card .price {
  font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800;
  color: var(--leaf); margin: 4px 0 12px;
}

/* ---- optional checkout page (Stripe placeholder; see STRIPE-SETUP.md) ---- */
main.checkout { max-width: 780px; }
main.checkout .status { margin-bottom: 18px; }
main.checkout .status ul { margin: 8px 0 4px; padding-left: 22px; }
main.checkout fieldset { border: 0; padding: 0; margin: 0 0 14px; }
main.checkout legend { font-weight: 700; margin-bottom: 6px; }
main.checkout label.plan { display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
main.checkout label.plan:first-of-type { border-top: 0; }
main.checkout .plan .price { margin-left: auto; font-weight: 700; white-space: nowrap; }
main.checkout .notice { border-left: 3px solid var(--accent); background: var(--panel);
  padding: 10px 14px; margin-top: 14px; }
