:root {
  --ink: #1d2b1f; --muted: #66756a; --line: #e2e6df; --bg: #f6f4ee; --card: #fff;
  --brand: #2f5d34; --brand-2: #4a7d3f; --accent: #fa6200; --zamplo: #fa6200;
  --good: #2f7d3a; --warn: #a46a12; --bad: #a33a2b;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; background: var(--brand); color: #fff; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; }
.brand-name { font-size: 18px; } .brand-sub { font-size: 12px; opacity: .8; }
.account { font-size: 13px; display: flex; gap: 10px; align-items: center; }
.account a { color: #fff; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.member { background: #fff; color: var(--brand); }
.pill.good { background: #e4f1e1; color: var(--good); } .pill.warn { background: #fbefd9; color: var(--warn); }
.pill.bad { background: #f6e1dd; color: var(--bad); } .pill.gray { background: #ecefea; color: var(--muted); }

.gate { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; max-width: 1100px; margin: 48px auto; padding: 0 24px; align-items: start; }
.pitch h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; } .pitch em { color: var(--brand-2); font-style: normal; }
.lede { font-size: 18px; color: var(--muted); }
.steps { padding-left: 20px; } .steps li { margin: 10px 0; font-size: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.signup h2 { margin-top: 0; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; border: 1px solid #cfd5cc; border-radius: 8px; background: #fff; }
.btn { display: inline-flex; gap: 8px; justify-content: center; align-items: center; padding: 11px 16px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; width: 100%; } .btn.primary:hover { filter: brightness(.95); }
.btn.google { background: #fff; border-color: #cfd5cc; color: var(--ink); width: 100%; }
.btn.small { padding: 6px 10px; font-size: 13px; background: var(--brand); color: #fff; }
.btn.small.ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn.block { width: 100%; }
.or { text-align: center; margin: 14px 0; color: var(--muted); font-size: 12px; position: relative; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.or span { background: #fff; padding: 0 10px; position: relative; }
.err { color: var(--bad); font-size: 13px; min-height: 1em; margin: 8px 0 0; }
.fine { font-size: 12px; color: var(--muted); } .center { text-align: center; }

.app { max-width: 1200px; margin: 24px auto; padding: 0 24px; display: grid; gap: 16px; }
.toolbar { display: flex; gap: 24px; align-items: end; flex-wrap: wrap; }
.state-pick { min-width: 260px; margin: 0; } .check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0 0 10px; }
.check input { width: auto; margin: 0; }
.quota { margin-left: auto; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.hint h3 { margin: 0 0 6px; } .hint p { margin: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0 0 12px; } .muted { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px; }
.grid td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.grid tr.dim td { opacity: .55; }
.bar { display: inline-block; height: 6px; background: var(--brand-2); border-radius: 3px; margin-left: 8px; vertical-align: middle; }

.modal { border: none; border-radius: 14px; padding: 28px; max-width: 460px; width: calc(100% - 32px); }
.modal.wide { max-width: 860px; }
.modal::backdrop { background: rgba(20, 30, 20, .5); }
.modal h2 { margin-top: 0; }
.x { position: absolute; right: 14px; top: 10px; border: none; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 20px; }
.stat { background: var(--bg); border-radius: 10px; padding: 12px; } .stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }
.filter { border: 2px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin-top: 20px; background: #fff4ec; }
.filter h3 { margin: 0 0 8px; } .filter p { margin: 6px 0; }
.filter .actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.filter .actions .btn { width: auto; }

.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 30px auto; padding: 0 24px; font-size: 12px; color: var(--muted); }
.powered { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 13px; }
.powered img { height: 22px; }

@media (max-width: 820px) {
  .gate { grid-template-columns: 1fr; margin-top: 24px; } .pitch h1 { font-size: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); } .top { padding: 12px 16px; }
}
[hidden] { display: none !important; }
/* Zamplo orange accents (shared with Joe's brand) */
.top { border-bottom: 4px solid var(--accent); }
.steps li::marker { color: var(--accent); font-weight: 800; }
.quota a, .modal .fine a, .signup .fine a { color: var(--accent); font-weight: 600; }
.quota b { color: var(--accent); }
.grid th { border-bottom-color: var(--accent); }
.brand-logo { height: 40px; width: auto; display: block; border-radius: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); }
.tab { border: none; background: none; font: inherit; font-weight: 700; font-size: 16px; padding: 10px 18px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
#tabMarket, #tabPick { display: grid; gap: 16px; }

/* ---- Pick-a-Parcel ---- */
.crumbs { display: flex; gap: 6px; padding: 0; margin: 14px 0 6px; list-style: none; flex-wrap: wrap; }
.crumbs li { padding: 4px 12px; border-radius: 99px; background: #ecefea; color: var(--muted); font-size: 13px; font-weight: 600; }
.crumbs li.done { background: #e4f1e1; color: var(--good); }
.crumbs li.now { background: var(--accent); color: #fff; }
.quota.left { margin: 6px 0 0; }
#tabPick h2 { margin: 0 0 10px; font-size: 20px; }
#pickStep1 select { max-width: 320px; }
.county-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.county-card { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px; cursor: pointer; font: inherit; display: grid; gap: 6px; }
.county-card:hover { border-color: var(--accent); }
.county-card.sel { border: 2px solid var(--accent); background: #fff4ec; }
.county-card span { font-size: 13px; color: var(--muted); }
.county-card .pill { justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #cfd5cc; background: #fff; border-radius: 99px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.chip span { color: var(--muted); font-size: 12px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on span { color: #fff; opacity: .9; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px 16px; align-items: end; }
.filters .check { margin: 0; }
.filters .btn.primary { grid-column: 1 / -1; max-width: 320px; }
.score { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #fff; }
.score.hi { background: var(--good); } .score.mid { background: var(--accent); } .score.lo { background: #9aa39c; }
.why .pill { margin: 2px 0; }
.mine-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: start; padding-right: 30px; }
.report-head h2 { margin: 0 0 4px; }
.report-actions { display: flex; flex-direction: column; gap: 8px; min-width: 230px; }
.report-actions .btn { width: 100%; }
.pmap { height: 320px; border-radius: 10px; margin: 16px 0 6px; border: 1px solid var(--line); }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }
.report-grid h3 { margin: 18px 0 6px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { text-align: left; color: var(--muted); font-weight: 500; width: 42%; padding: 5px 8px 5px 0; vertical-align: top; }
.kv td { padding: 5px 0; border-bottom: 1px solid var(--line); }
b.bad, .bad { color: var(--bad); }
textarea { width: 100%; font: 14px/1.5 Georgia, serif; padding: 12px; border: 1px solid #cfd5cc; border-radius: 8px; resize: vertical; }
@media (max-width: 820px) {
  .filters { grid-template-columns: 1fr 1fr; } .report-grid { grid-template-columns: 1fr; }
}
.nowrap { white-space: nowrap; }
.tab-intro h3 { margin: 0 0 6px; font-size: 18px; }
.tab-intro p { margin: 0 0 6px; max-width: 980px; }
.tab-intro .fine { margin: 0; color: var(--accent); }
.progress .crumbs { margin: 0 0 6px; }
