: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; }

/* ---- hot markets ---- */
.sortby { display: flex; gap: 4px; flex-wrap: wrap; background: #ecefea; padding: 3px; border-radius: 10px; }
.sortby button { border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.sortby button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.heat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 8px; }
.heat-card { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; display: grid; gap: 8px; }
.heat-card:hover { border-color: var(--accent); }
.heat-card.sel { border: 2px solid var(--accent); background: #fff4ec; }
.hc-top { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: #ecefea; font-size: 12px; font-weight: 800; color: var(--muted); }
.gauge { display: flex; align-items: center; gap: 10px; }
.gbar { position: relative; flex: 1; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #4f8fd8 0%, #8ec5a3 30%, #f2c94c 55%, #fa6200 80%, #d6261c 100%); }
.gbar i { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; transform: translateX(-2px); }
.gval { font-weight: 700; font-size: 13px; white-space: nowrap; min-width: 92px; }
.gauge.none { font-size: 12px; }
.hstats { font-size: 13px; color: var(--muted); }
.up { color: var(--good); font-weight: 600; font-size: 13px; } .down { color: var(--bad); font-weight: 600; font-size: 13px; }
.heat-more { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.heat-more select { width: auto; min-width: 220px; margin: 0; }
.heatcell { min-width: 190px; } .heatcell .gauge.none span { font-size: 11px; }

/* ================= v3: homepage, nav, tool pages, stepper ================= */
.top { gap: 20px; position: sticky; top: 0; z-index: 50; }
a.brand { color: #fff; text-decoration: none; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; opacity: .85; }
.mainnav a:hover { opacity: 1; background: rgba(255,255,255,.1); }
.mainnav a.active { opacity: 1; background: rgba(255,255,255,.16); box-shadow: inset 0 -3px 0 var(--accent); }
.account { margin-left: 8px; }
.btn.light { background: #fff; color: var(--brand); }
.btn.big { padding: 14px 22px; font-size: 16px; border-radius: 10px; }
.btn.outline { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.outline.light { background: transparent; color: #fff; border-color: #fff; }
.center { text-align: center; }

/* home */
.home { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; }
.home h2 { font-size: 30px; margin: 0 0 8px; }
.home section { margin-top: 64px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-top: 48px !important; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: #fff4ec; padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.hero h1 { font-size: 46px; line-height: 1.08; margin: 0 0 16px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero .lede { font-size: 19px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-visual { display: grid; gap: 16px; transform: rotate(-1.5deg); }
.hv-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 12px 30px rgba(29,43,31,.08); display: grid; gap: 10px; }
.hv-card:nth-child(2) { transform: translateX(28px) rotate(2deg); }
.hv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.hv-badge { font-weight: 800; color: #d6261c; font-size: 13px; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.path-card { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.path-card.featured { border-color: var(--accent); box-shadow: 0 14px 34px rgba(250,98,0,.12); }
.path-icon { font-size: 34px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 14px; background: #fff4ec; }
.path-card h3 { font-size: 26px; margin: 0; }
.path-tag { font-size: 16px; margin: 0; color: var(--muted); }
.path-tag b { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; flex: 1; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #e4f1e1; color: var(--good); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.mini-steps { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 4px 0 6px; list-style: none; counter-reset: ms; }
.mini-steps li { counter-increment: ms; font-size: 12px; font-weight: 600; color: var(--muted); background: #f1f3ef; padding: 4px 10px 4px 6px; border-radius: 99px; }
.mini-steps li::before { content: counter(ms); display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; margin-right: 6px; font-size: 10px; }
.compare { margin-top: 22px; background: #fff; border: 1px dashed #cfd5cc; border-radius: 12px; padding: 16px 20px; text-align: center; }
.why-grid, .how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.why-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.why-tile span { font-size: 28px; } .why-tile h4, .how-grid h4 { margin: 10px 0 6px; font-size: 18px; } .why-tile p, .how-grid p { margin: 0; color: var(--muted); }
.how-grid > div { text-align: center; padding: 10px 18px; }
.num-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 20px; }
.faq { max-width: 760px; margin-left: auto; margin-right: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 10px; }
.faq summary { font-weight: 700; cursor: pointer; } .faq details p { margin: 10px 0 0; color: var(--muted); }
.final-cta { background: var(--brand); color: #fff; border-radius: 20px; padding: 44px 24px; text-align: center; }
.final-cta h2 { color: #fff; }
.center-row { justify-content: center; margin-top: 18px; }

/* tool pages */
.tool-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.tool-head h1 { margin: 6px 0 4px; font-size: 30px; }
.tool-head p { margin: 0; color: var(--muted); max-width: 760px; }
.tool-head .quota { margin: 0; text-align: right; }
.stepper { position: sticky; top: 70px; z-index: 40; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 14px 24px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px rgba(29,43,31,.06); --progress: 0%; }
.stepper::before, .stepper::after { content: ""; position: absolute; left: calc(24px + 15px); right: calc(24px + 15px); top: 29px; height: 4px; border-radius: 4px; background: #e6e9e3; }
.stepper::after { right: auto; width: calc((100% - 78px) * var(--p, 0)); background: var(--accent); transition: width .3s; }
.stepper li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; flex: 1; text-align: center; }
.stepper li:first-child { justify-items: start; text-align: left; } .stepper li:last-child { justify-items: end; text-align: right; }
.stepper .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #fff; border: 2px solid #d4d9d0; color: var(--muted); }
.stepper .lbl { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stepper li.done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.stepper li.done { cursor: pointer; } .stepper li.done .lbl { color: var(--good); }
.stepper li.now .dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(250,98,0,.18); }
.stepper li.now .lbl { color: var(--ink); }
#tabMarket, #tabPick { gap: 14px; }

@media (max-width: 900px) {
  .hero, .path-grid, .why-grid, .how-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; } .hero-visual { display: none; }
  .mainnav { display: none; } .stepper .lbl { display: none; } .stepper { top: 64px; }
  .acct-email { display: none; }
}
.hero-cta .btn { width: auto; }

/* ================= v4: single flow ================= */
.hv-count { font-weight: 800; color: var(--accent); }
.hv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; font-weight: 600; }
.hv-split span { background: #f6f4ee; border-radius: 8px; padding: 8px 10px; }
.flow { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.flow h4 { margin: 10px 0 6px; font-size: 17px; } .flow p { margin: 0; color: var(--muted); font-size: 14px; }
.substep { margin-top: -10px; border-top-left-radius: 0; border-top-right-radius: 0; }
#pickStep3 { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.list-card { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: center; background: #fff4ec; border: 2px solid var(--accent); border-radius: 14px; padding: 20px; }
.list-big b { display: block; font-size: 52px; line-height: 1; color: var(--accent); }
.list-big span { color: var(--ink); font-weight: 600; }
.list-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.list-stats div { background: #fff; border-radius: 10px; padding: 10px 12px; }
.list-stats b { display: block; font-size: 20px; } .list-stats span { font-size: 13px; color: var(--muted); }
.choose-h { margin: 22px 0 10px; }
.path-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { text-align: left; font: inherit; cursor: pointer; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--accent); box-shadow: 0 10px 26px rgba(250,98,0,.12); }
.choice.sel { border-color: var(--accent); background: #fff4ec; }
.choice .ci { font-size: 30px; } .choice b { font-size: 19px; } .choice span { color: var(--muted); }
.choice .cgo { color: var(--accent); font-weight: 800; margin-top: 4px; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.action { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.action .ai { font-size: 28px; } .action h4 { margin: 0; font-size: 18px; } .action p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.aprice { font-size: 14px; background: #f6f4ee; border-radius: 8px; padding: 8px 10px; }
.mail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mail-grid h4 { margin: 14px 0 8px; }
.tpl-list { display: grid; gap: 8px; }
.tpl { text-align: left; font: inherit; cursor: pointer; border: 1px solid #cfd5cc; background: #fff; border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.tpl span { font-size: 12px; color: var(--muted); }
.tpl.on { border: 2px solid var(--accent); background: #fff4ec; }
.mail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.mail-fields .wide { grid-column: 1 / -1; }
.preview { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 22px; min-height: 280px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.preview.postcard { aspect-ratio: 9 / 6; min-height: 0; background: #fffdf7; }
.preview pre { white-space: pre-wrap; margin: 0; font: 14px/1.6 Georgia, serif; }
.preview.hand pre { font: 18px/1.5 "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #1d3a8a; }
.up-prev { text-align: center; padding: 60px 10px; font-size: 18px; }
.checkout { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout .tot { font-size: 22px; color: var(--accent); }
.checkout .btn { width: auto; }
.soon { margin-top: 14px; background: #fff8e1; border: 1px solid #f2c94c; border-radius: 10px; padding: 12px 14px; }
.ticks.small li { font-size: 14px; }
@media (max-width: 900px) {
  .flow, .path-choice, .action-grid, .mail-grid, .list-card { grid-template-columns: 1fr; }
}
.bonus-up { margin-top: 14px; background: #e4f1e1; border: 1px solid #b9dcb1; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
#mailSend[disabled] { opacity: .5; cursor: not-allowed; }
.brand-logo.plain { height: 30px; background: transparent; }

/* ================= mobile + tablet polish ================= */
.m-only { display: none; }
@media (max-width: 900px) {
  .tool-head .quota { text-align: left; }
  .report-actions { min-width: 0; width: 100%; }
  .checkout { flex-direction: column; align-items: stretch; }
  .checkout .btn { width: 100%; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  /* compact sticky header */
  .top { padding: 8px 12px; gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo.boxed { height: 26px; }
  .brand-logo.plain { height: 22px; }
  .brand-name { font-size: 14px; white-space: nowrap; }
  .brand-sub, .acct-email, .account .pill.member { display: none; }
  .account { margin-left: auto; font-size: 13px; }
  .account .btn.small { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
  .stepper { top: 50px; padding: 10px 12px 26px; border-radius: 12px; }
  .stepper::before, .stepper::after { left: 27px; right: 27px; top: 25px; }
  .stepper::after { width: calc((100% - 54px) * var(--p, 0)); }
  .stepper .dot { width: 26px; height: 26px; font-size: 12px; }
  .stepper li.now .lbl { display: block; position: absolute; top: 31px; font-size: 11px; white-space: nowrap; }
  /* inputs ≥16px so iOS doesn't zoom on focus */
  input, select, textarea { font-size: 16px; }
  .app, .home { padding-left: 14px; padding-right: 14px; }
  .card { padding: 16px; border-radius: 12px; }
  .hero { margin-top: 24px !important; gap: 20px; }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .home section { margin-top: 44px; }
  .home h2 { font-size: 24px; }
  .tool-head h1 { font-size: 24px; }
  .sec-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .sortby { width: 100%; }
  .sortby button { flex: 1 1 45%; }
  .heat-cards, .county-cards { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .btn.primary { max-width: none; }
  .list-big b { font-size: 42px; }
  .list-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .heat-more { flex-direction: column; align-items: stretch; }
  .heat-more select { width: 100%; }
  /* shortlist table becomes cards */
  #pickStep5 .table-wrap { overflow: visible; }
  #pickStep5 table.grid, #pickStep5 tbody { display: block; }
  #pickStep5 thead { display: none; }
  #pickStep5 tr { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  #pickStep5 td { border: none; padding: 0; text-align: left !important; }
  #pickStep5 td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
  #pickStep5 .c-score { grid-row: span 2; }
  #pickStep5 .c-loc { grid-column: 2 / -1; }
  #pickStep5 .why, #pickStep5 td:last-child { grid-column: 1 / -1; }
  #pickStep5 td:last-child .btn { width: 100%; padding: 10px; }
  .m-only { display: inline; } .d-only { display: none; }
  /* dialogs become full-screen sheets */
  .modal, .modal.wide { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: 20px 16px 28px; }
  .modal h2 { font-size: 22px; padding-right: 30px; }
  .x { position: sticky; float: right; top: 0; z-index: 2; background: #fff; border-radius: 50%; width: 36px; height: 36px; }
  .mail-fields { grid-template-columns: 1fr; }
  .preview { padding: 16px; min-height: 0; }
  .pmap { height: 240px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .brand { flex: 1 1 auto; overflow: hidden; }
  .brand > div { min-width: 0; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .account { flex: 0 0 auto; }
}
@media (max-width: 380px) { .brand-name { display: none; } }
@media (min-width: 701px) and (max-width: 900px) {
  .stepper { top: 74px; padding-bottom: 28px; }
  .stepper li.now .lbl { display: block; position: absolute; top: 36px; font-size: 12px; white-space: nowrap; }
}
