/* Homepage (homeowners): the "Site Plan" layouts, plus everything the live page renders at run time (search
   results, the save and paid-tracking dialogs, the exit prompt, the toast, the trade patch check). Tokens only. */

/* Utility the page's script toggles on many elements */
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Hero ---------- */
@media (min-width: 1101px) { .home-hero .hero-grid { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); } }
.home-hero .h1 { font-size: clamp(40px, 4.6vw, 68px); }
.search {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 48px; max-width: 540px;
  background: var(--sheet); border-radius: 18px; box-shadow: 0 0 0 1px var(--rule-2), 0 10px 30px -14px rgba(18, 20, 23, .18);
  transition: box-shadow var(--dur-instant);
}
.search:focus-within { box-shadow: 0 0 0 1.5px var(--red), 0 0 0 5px var(--red-wash), 0 10px 30px -14px rgba(18, 20, 23, .18); }
.search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; display: block; }
.search-in { flex: 1; min-width: 0; width: 100%; height: 48px; border: 0; background: transparent; font-size: 17px; outline: none; }
.search-in::placeholder { color: var(--ink-3); }
.search-in:focus-visible { box-shadow: none; }
.search .btn { flex: none; min-width: 132px; }
.search-note { font-size: 13.5px; color: var(--ink-3); margin-top: -12px; padding-left: 20px; }
.search-error { max-width: 540px; margin-top: -10px; padding: 10px 14px; border-radius: 12px; background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-soft); color: var(--amber-ink); font-size: 14px; }
.spinner-sm { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pw-spin .7s linear infinite; vertical-align: middle; }
@keyframes pw-spin { to { transform: rotate(360deg); } }

.home-visual { min-height: 520px; z-index: 2; }
.plan-card {
  position: absolute; right: -36px; top: 26px; width: 56%; margin: 0; padding: 14px 16px 10px; background: var(--sheet); border-radius: 6px;
  box-shadow: var(--sh-2); transform: rotate(3.2deg); transform-origin: 70% 30%;
  background-image: linear-gradient(var(--scrim) 1px, transparent 1px), linear-gradient(90deg, var(--scrim) 1px, transparent 1px); background-size: 16px 16px;
}
.plan-card::before { content: ""; display: block; aspect-ratio: 360 / 230; }   /* the plan's room, before it is drawn */
.plan-card.is-drawn::before { display: none; }
.plan-card figcaption { font-size: 10.5px; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; }
.plan-card .drawing .lyr { transition: --p 1100ms var(--ease-draw); }
.notif {
  position: absolute; left: 4%; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; width: min(360px, 80%);
  border-radius: 16px; background: color-mix(in srgb, var(--sheet) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--sh-3); font-size: 13px; line-height: 1.3; opacity: 0; transform: translateY(-14px) scale(.98); filter: blur(2px);
  transition: opacity 300ms cubic-bezier(.16, 1, .3, 1), transform 420ms cubic-bezier(.16, 1, .3, 1), filter 300ms cubic-bezier(.16, 1, .3, 1);
}
.notif.on { opacity: 1; transform: none; filter: none; }
.notif .nl { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); flex: none; }
.notif > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.notif b { font-weight: 500; }
.notif .mono { font-size: 11px; align-self: flex-start; }
.alert-card { position: absolute; left: 0; top: 84px; width: min(470px, 68%); z-index: 3; opacity: 0; transform: translateY(14px); filter: blur(2px);
  transition: opacity 360ms cubic-bezier(.16, 1, .3, 1), transform 520ms cubic-bezier(.16, 1, .3, 1), filter 360ms cubic-bezier(.16, 1, .3, 1); }
.alert-card.on { opacity: 1; transform: none; filter: none; }
.home-note { position: static; max-width: 46ch; margin-top: -8px; padding-left: 20px; font: 12.5px/1.5 var(--font-sans); color: var(--ink-3); }
.no-js .notif, .no-js .alert-card { opacity: 1; transform: none; filter: none; }

/* ---------- Search results (the live /api/search answer) ---------- */
.results-sec { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); background: var(--paper); border-top: 1px solid var(--rule); scroll-margin-top: 84px; }
.results-sec.is-in { animation: pw-rise 420ms var(--ease-out) both; }
@keyframes pw-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.res-head { display: grid; gap: 12px; margin-bottom: 28px; }
.res-head .h3 { font-size: clamp(30px, 3.4vw, 48px); }
.res-head p { font: 13px/1.5 var(--font-mono); color: var(--ink-3); }
.res-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.res-stat { padding: 16px 16px 16px 0; min-width: 0; }
.res-stat + .res-stat { padding-left: 16px; border-left: 1px solid var(--rule); }
.res-stat dt { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.res-stat dd { margin: 8px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.res-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-clear, 88px) + 12px); }
.res-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.res-toolbar h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.res-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.res-controls label { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.res-controls .select { height: 40px; width: auto; min-width: 128px; font: 500 14px/1 var(--font-sans); letter-spacing: -0.01em; text-transform: none; color: var(--ink); border-radius: 10px; }
.res-controls .select:disabled { opacity: .55; }
.res-list { display: grid; gap: 10px; }
.res-card { display: grid; gap: 10px; padding: 18px 20px; background: var(--sheet); border-radius: 16px; box-shadow: var(--sh-1); color: inherit; transition: box-shadow var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out); animation: pw-rise 360ms var(--ease-out) both; animation-delay: calc(var(--k, 0) * 45ms); }
a.res-card:hover { box-shadow: 0 0 0 1px var(--rule-2), 0 14px 30px -18px rgba(17, 18, 20, .28); }
a.res-card:hover .res-open { background-size: 100% 2px; }
.res-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.res-ref { font: 500 12.5px/1.3 var(--font-mono); color: var(--amber-ink); overflow-wrap: anywhere; min-width: 0; }
.res-status { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--paper-2); color: var(--ink-2); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-status.status-pending { background: var(--amber-soft); color: var(--amber-ink); }
.res-status.status-consultation { background: var(--blue-wash); color: var(--blue-ink); }
.res-status.status-approved { background: var(--green-wash); color: var(--green-ink); }
.res-desc { font-size: 15.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.res-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 12.5px/1.4 var(--font-mono); color: var(--ink-3); }
.res-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.res-meta svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; }
.res-open { color: var(--ink); font-family: var(--font-sans); font-weight: 500; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat; padding-bottom: 1px; transition: background-size var(--dur-quick) var(--ease-out); }
.res-nolink { color: var(--ink-3); }
.res-empty { padding: 28px 24px; background: var(--sheet); border-radius: 16px; box-shadow: var(--sh-1); text-align: center; display: grid; gap: 6px; justify-items: center; }
.res-empty b { font-weight: 600; font-size: 17px; }
.res-empty p { font-size: 14.5px; color: var(--ink-2); max-width: 48ch; }
.res-empty .btn { margin-top: 10px; }
.res-notice { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-soft); font-size: 14px; color: var(--ink-2); }
.res-notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: var(--amber-deep); fill: none; stroke-width: 1.6; }
.res-notice b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.res-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; }
.res-pages p { font: 12.5px/1.4 var(--font-mono); color: var(--ink-3); }
.res-pages .btn-row { gap: 8px; }
.res-pages .btn:disabled { opacity: .4; cursor: not-allowed; }
.res-pages .btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.res-unmapped { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.res-unmapped header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.res-unmapped h4 { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.res-unmapped header span { font: 12px/1.3 var(--font-mono); color: var(--ink-3); }
.res-unmapped article { padding: 12px 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; font-size: 14px; }
.res-unmapped article b { font-weight: 600; overflow-wrap: anywhere; }
.res-unmapped article p { color: var(--ink-2); overflow-wrap: anywhere; }
.res-unmapped article a { justify-self: start; font-size: 13px; font-weight: 500; }
.res-track { display: grid; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--amber-field); color: #111214; box-shadow: 0 24px 48px -30px rgba(17, 18, 20, .45); }
.res-track .label { color: #111214; }
.res-track .label::before { background: #111214; box-shadow: 0 0 0 4px rgba(17, 18, 20, .12); }
.res-track h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.08; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.res-track p { font-size: 14.5px; color: #2B2D31; }
.res-track .btn { justify-self: stretch; white-space: normal; text-align: center; height: auto; min-height: 50px; padding: 12px 18px; line-height: 1.25; }
.res-track .btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }
.res-track .fine { font-size: 12.5px; color: #3A3C40; }
/* Email asks on the results (public/assets/results-prompts.js): inline, never a modal. The card is in place before the
   results paint, and its success step keeps the card's height, so nothing below it moves. */
.pw-ask[hidden], .pw-ask [hidden] { display: none; }
.pw-ask, .pw-gate { position: relative; display: grid; border-radius: 16px; }
.pw-ask { margin-bottom: 14px; padding: 18px 20px; background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-soft); }
.pw-ask-steps { display: grid; }
.pw-ask-steps > .pw-ask-step { grid-area: 1 / 1; }
.pw-ask-step { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pw-ask-step[data-reserved] { visibility: hidden; }
.pw-ask-step[data-step="done"] { align-self: center; }
.pw-ask-title { display: flex; align-items: flex-start; gap: 10px; padding-right: 36px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; text-wrap: balance; }
.pw-ask-title:focus { outline: none; }
.pw-ask-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--amber-field); margin-top: -3px; }
.pw-ask-ico svg { width: 17px; height: 17px; stroke: #111214; fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.pw-ask-copy { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.pw-ask-form { display: flex; gap: 8px; }
.pw-ask-form .input { flex: 1; min-width: 0; }
.pw-ask-form .btn { flex: none; height: 46px; }
.pw-ask-fine { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.pw-ask-error { font-size: 13.5px; font-weight: 500; color: var(--amber-ink); }
.pw-ask-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-3); transition: background-color var(--dur-instant), color var(--dur-instant); }
.pw-ask-close:hover { background: var(--paper-2); color: var(--ink); }
.pw-ask-close:focus-visible, .pw-ask-later:focus-visible { outline: none; box-shadow: var(--focus); }
.pw-ask-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pw-ask-later { justify-self: start; min-height: 36px; padding: 0 2px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: left; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; border-radius: 6px; }
.pw-ask-later:hover { color: var(--ink); text-decoration-color: currentColor; }
.pw-ask .btn-row { gap: 10px 18px; }
.pw-ask .btn-row .link { font-size: 14px; font-weight: 500; }
/* the repeat card: higher up, an amber field like the track card */
.pw-ask--strong { margin: 0 0 28px; padding: clamp(20px, 3vw, 28px); background: var(--amber-field); color: #111214; box-shadow: 0 24px 48px -30px rgba(17, 18, 20, .45); }
.pw-ask--strong .pw-ask-steps { max-width: 720px; }
.pw-ask--strong .label { color: #111214; }
.pw-ask--strong .label::before { background: #111214; box-shadow: 0 0 0 4px rgba(17, 18, 20, .12); }
.pw-ask--strong .pw-ask-title { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.03em; }
.pw-ask--strong .pw-ask-copy { color: #2B2D31; font-size: 15px; }
.pw-ask--strong .pw-ask-form { max-width: 560px; }
.pw-ask--strong .pw-ask-form .input { height: 52px; border-color: rgba(17, 18, 20, .18); background: #FFFFFF; color: #111214; }
.pw-ask--strong .pw-ask-form .btn { height: 52px; }
.pw-ask--strong .pw-ask-close, .pw-ask--strong .pw-ask-later, .pw-ask--strong .pw-ask-error { color: #2B2D31; }
.pw-ask--strong .pw-ask-close:hover { background: rgba(17, 18, 20, .08); color: #111214; }
.pw-ask--strong .pw-ask-later { text-decoration-color: rgba(17, 18, 20, .3); }
.pw-ask--strong .link { color: #111214; background-image: linear-gradient(#111214, #111214); }
/* the details gate: under the record that was opened */
.pw-gate { padding: 18px 20px; margin-top: -4px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--amber-soft), 0 0 0 1px var(--rule); animation: pw-rise 260ms var(--ease-out) both; }
.pw-gate .btn-row { gap: 10px 18px; }
.pw-gate .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.res-urgency { padding: 14px 16px; border-radius: 14px; background: var(--sheet); box-shadow: var(--sh-1); font-size: 14px; color: var(--ink-2); }
.res-urgency b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
/* the "want to dispute it?" card: guides on objecting, and the letter builder */
.res-object { padding: 18px 18px 16px; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--sh-1); }
.objection-guides-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.objection-guides-details > summary::-webkit-details-marker { display: none; }
.objection-guides-icon { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-soft); }
.objection-guides-icon svg { width: 18px; height: 18px; stroke: var(--amber-ink); fill: none; stroke-width: 1.6; }
.objection-guides-summary-text { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.objection-guides-chevron { width: 16px; height: 16px; flex: none; stroke: var(--ink-3); fill: none; stroke-width: 1.8; transition: transform var(--dur-quick) var(--ease-out); }
.objection-guides-details[open] .objection-guides-chevron { transform: rotate(180deg); }
.objection-guides-body { display: grid; gap: 12px; padding-top: 12px; }
.objection-guides-lead { font-size: 14px; color: var(--ink-2); }
.objection-guides-links { display: flex; flex-wrap: wrap; gap: 6px; }
.objection-guides-link-primary { justify-self: start; }
.objection-guides-link-secondary { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); transition: background-color var(--dur-instant), color var(--dur-instant); }
.objection-guides-link-secondary:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- Problem (shared drawing) ---------- */
.home-mech .timeline li { padding: 10px 0 16px; }
.mech-drawing:empty::before { content: ""; display: block; aspect-ratio: 640 / 430; }

/* ---------- Product tabs (auto-advancing tab layout, switched by scroll) ---------- */
.tabs { display: grid; gap: 28px; }
.tab-stage { position: relative; height: 560px; border-radius: var(--r-xl); background: var(--paper-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule);
  background-image: linear-gradient(var(--scrim) 1px, transparent 1px), linear-gradient(90deg, var(--scrim) 1px, transparent 1px); background-size: 28px 28px; container-type: inline-size; }
.tab-panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 36px; opacity: 0; visibility: hidden;
  transition: opacity 195ms cubic-bezier(.4, 0, .2, 1), visibility 0s linear 195ms; }
.tab-panel.is-on { opacity: 1; visibility: visible; transition: opacity 225ms cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.tab-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tab-list button { text-align: left; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; gap: 8px; align-content: start; color: var(--ink-3); transition: color var(--dur-quick); }
.tab-list button > * { min-width: 0; }
.tab-list button .bar { display: block; height: 2px; border-radius: 2px; background: var(--rule); overflow: hidden; margin-bottom: 10px; }
.tab-list button .bar b { display: block; height: 100%; width: 0; background: var(--red); }
.tab-list button[aria-selected="true"] { color: var(--ink); }
.tab-list button .t { font-size: 17px; font-weight: 500; }
.tab-list button .tdesc { font-size: 14.5px; line-height: 1.5; color: inherit; opacity: .9; }
.tab-list button[aria-selected="true"] .tdesc { color: var(--ink-2); }
.tab-note { margin-top: 14px; font: 12px/1.5 var(--font-mono); color: var(--ink-3); text-align: center; }
/* Scroll-driven: home.js adds .is-scroll unless reduced motion is on; the track then gives the pinned block about
   100svh of scroll per step, and the bars fill with the scroll. Native scroll only: position sticky, nothing intercepts
   wheel or touch. With reduced motion the steps stack (each graphic under its own heading, nothing pinned); with no JS
   the tabs sit in the page as they were. */
.tabs-track.is-scroll { position: relative; height: calc(4 * min(100svh, 1200px)); }   /* capped: a very tall window must not stretch the page */
.tabs-track.is-scroll > .tabs { position: sticky; top: calc(var(--nav-clear) + 4px); }
.tabs-track.is-scroll .tab-stage { height: clamp(260px, calc(100svh - var(--nav-clear) - 200px), 560px); }
.tabs-track.is-scroll .tab-panel > * { transform-origin: 50% 0; }
.tabs-track.is-stacked .tab-list { display: none; }
.tabs-track.is-stacked .tab-stage { height: auto; display: grid; gap: 48px; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.tabs-track.is-stacked .tab-panel { position: relative; inset: auto; opacity: 1; visibility: visible; height: 560px; border-radius: var(--r-xl); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.tabs-track.is-stacked .tab-panel::before { content: attr(data-title); position: absolute; top: 18px; left: 24px; font-size: 17px; font-weight: 500; color: var(--ink); z-index: 1; }

/* panel 0 — results */
.res-win { width: min(820px, 100%); height: 100%; max-height: 480px; }
.res-win .app-body { grid-template-columns: minmax(0, 1fr) 280px; }
.res-list-demo { overflow: hidden; border-right: 1px solid var(--rule); }
.res-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.res-row b { font-weight: 500; font-size: 13px; }
.res-row p { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-row .meta { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font: 11.5px/1 var(--font-mono); color: var(--ink-3); }
.res-row .topic { font: 500 11px/1 var(--font-sans); padding: 4px 7px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.res-row.new { background: color-mix(in srgb, var(--red-wash) 60%, var(--sheet)); }
.res-map { position: relative; background: var(--paper); }
.res-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* panel 1 — radius */
.radius-card { width: min(780px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0; background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; height: 100%; max-height: 460px; }
.radius-map { position: relative; background: var(--paper); }
.radius-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.radius-side { padding: 22px; display: grid; gap: 16px; align-content: start; border-left: 1px solid var(--rule); font-size: 13px; }
.radius-side h5 { margin: 0; font-size: 14px; font-weight: 500; }
.radius-side .pc { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule-2); font: 14px/1 var(--font-mono); }
.radius-side .pc svg { width: 14px; height: 14px; stroke: var(--red); fill: none; stroke-width: 1.6; }
.radius-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 3px; border-radius: 10px; background: var(--paper-2); }
.radius-opts span { height: 30px; display: grid; place-items: center; border-radius: 7px; font: 12px/1 var(--font-mono); color: var(--ink-2); transition: background-color var(--dur-quick), color var(--dur-quick); }
.radius-opts span.on { background: var(--sheet); color: var(--ink); box-shadow: var(--sh-1); font-weight: 500; }
.radius-count { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); }
.radius-count b { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.radius-count span { font-size: 12px; color: var(--ink-3); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.switch-row small { display: block; color: var(--ink-3); font-size: 12px; }
.sw { width: 34px; height: 20px; border-radius: 99px; background: var(--rule-2); position: relative; flex: none; transition: background-color var(--dur-quick); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform var(--dur-quick) var(--ease-out); }
.sw.on { background: var(--green); }
.sw.on::after { transform: translateX(14px); }

/* panel 2 — topics */
.topics-card { width: min(720px, 100%); background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 22px 24px; display: grid; gap: 14px; }
.topics-card .th { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.topics-card h5 { margin: 0; font-size: 14px; font-weight: 500; }
.topic-row { display: grid; grid-template-columns: 22px minmax(0, 200px) 1fr 64px; align-items: center; gap: 12px; font-size: 13px; }
.topic-row .box { width: 15px; height: 15px; }
.topic-row.on .box { background: var(--ink); box-shadow: none; }
.topic-row.on .box svg { opacity: 1; transform: none; }
.topic-row .tb { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.topic-row .tb i { display: block; height: 100%; border-radius: inherit; background: var(--ink-4); width: 0; transition: width 700ms var(--ease-out); }
.topic-row.on .tb i { background: var(--amber); }
.topic-row .n { font: 12px/1 var(--font-mono); color: var(--ink-2); text-align: right; }
.topic-row:not(.on) { color: var(--ink-3); }

/* ---------- Objection ---------- */
.object-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.object-copy { display: grid; gap: 22px; }
.object-steps { display: grid; gap: 0; }
.object-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.object-steps li:last-child { border-bottom: 1px solid var(--rule); }
.object-steps .mono { color: var(--red-ink); font-size: 12px; padding-top: 3px; }
.object-steps b { font-weight: 500; }
.object-steps p { font-size: 15px; color: var(--ink-2); }
.object-price { font-size: 17px; }
.object-price b { font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: -0.03em; margin-right: 4px; }
.objection { margin: 0; position: relative; }
.objection:empty { min-height: 520px; }
.obj-sheet { position: relative; background: var(--sheet); border-radius: 4px; box-shadow: 0 0 0 1px var(--rule), 0 30px 70px -30px rgba(18, 20, 23, .35); padding: 34px 34px 28px; font-size: 13px; line-height: 1.6; color: var(--ink-2); width: min(470px, 100%); transform: rotate(-1.2deg); }
.obj-sheet .to { font: 11.5px/1.6 var(--font-mono); color: var(--ink-3); }
.obj-sheet h6 { margin: 14px 0 10px; font: 500 20px/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.obj-sheet .ref { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.obj-sheet .gr { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--paper); position: relative; }
.obj-sheet .gr b { display: block; color: var(--ink); font-weight: 500; font-size: 13px; }
.obj-sheet .gr.ok { box-shadow: inset 2px 0 0 var(--green); }
.obj-sheet .gr.no { opacity: .55; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.obj-note { position: absolute; font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.obj-note.ok { color: var(--green-ink); }
.obj-note.no { color: var(--red-ink); }
.obj-note::before { content: ""; position: absolute; top: 7px; width: 34px; height: 1px; background: currentColor; }
.obj-note.r { left: calc(100% + 18px); }
.obj-note.r::before { right: calc(100% + 6px); }

/* ---------- Data / proof ---------- */
.data-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ukmap { margin: 0; position: relative; aspect-ratio: 0.82; max-height: 860px; }
.ukmap canvas { width: 100%; height: calc(100% - 64px); display: block; }
.ukmap figcaption { font-size: 12px; color: var(--ink-3); margin-top: 10px; max-width: 52ch; }
.data-copy { display: grid; gap: 24px; }
.data-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.data-stats div { padding: 16px 12px 16px 0; min-width: 0; }
.data-stats dt { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.data-stats dd { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -0.02em; }
.data-asof { font: 12px/1.5 var(--font-mono); color: var(--ink-3); }
.data-asof:empty { display: none; }

/* ---------- Three steps (three-steps.css): the line under 01's and 03's pictures gets its own lane above the titles ---------- */
.pw-steps .pw-step-body { padding-top: 32px; }
@media (max-width: 899px) { .pw-steps .pw-step-body { padding-top: 30px; } }

/* ---------- Pricing ---------- */
.bill-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--ink-3); }
.bill-toggle .is-on { color: var(--ink); }
.pricing-toggle { position: relative; width: 46px; height: 26px; border-radius: 99px; background: var(--rule-2); flex: none; transition: background-color var(--dur-quick); }
.pricing-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform var(--dur-quick) var(--ease-out); }
.pricing-toggle.active { background: var(--ink); }
.pricing-toggle.active::after { transform: translateX(20px); }
#annual-saving-label { color: var(--amber-ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.plan { background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-1); padding: 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.plan .mono { font-size: 12px; display: flex; align-items: center; gap: 8px; }
.plan .pp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 57px; }
.plan .pp b { font-family: var(--font-display); font-weight: 600; font-size: 60px; line-height: .95; letter-spacing: -0.04em; }
.plan .pp span { color: var(--ink-3); font-size: 14px; }
.plan .pnote { font-size: 13px; color: var(--amber-ink); font-weight: 500; margin-top: -8px; }
.plan .pd { color: var(--ink-2); font-size: 15px; }
.plan ul { display: grid; gap: 0; }
.plan li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.plan li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3.5 8.4l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3.5 8.4l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan li small { display: block; font-size: 13px; color: var(--ink-3); }
.plan .btn { justify-self: start; }
.plan .then { font-size: 13px; color: var(--ink-3); margin-top: -6px; }
.plan--pro.theme-amber { background: var(--amber-field); box-shadow: 0 30px 60px -30px rgba(17, 18, 20, .35); }
.plan--pro.theme-amber li { border-top-color: rgba(17, 18, 20, .16); }
.plan--pro.theme-amber li::before { background: #111214; }
.plan--pro.theme-amber .chip { background: #111214; color: #FFBE3B; }
.plan--pro.theme-amber .pnote { color: #111214; }
.plan--pro .pp span, .plan--pro .then, .plan--pro li small { color: #3A3C40; }
/* Business: the whole-council plan, kept as a compact card under the homeowner plans */
.plan-biz { max-width: 1080px; margin: 16px auto 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding: 24px 28px; border-radius: var(--r-xl); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.plan-biz .pb-name { display: grid; gap: 6px; }
.plan-biz .pp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plan-biz .pp b { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.035em; }
.plan-biz .pp span { color: var(--ink-3); font-size: 14px; }
.plan-biz .pnote { font-size: 13px; color: var(--amber-ink); font-weight: 500; }
.plan-biz ul { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.plan-biz li { display: flex; gap: 8px; }
.plan-biz li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 5px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3.5 8.4l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3.5 8.4l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan-biz .pb-act { display: grid; gap: 8px; justify-items: start; }
.plan-biz .pb-foot { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.plan-biz .pb-foot a { color: var(--ink); font-weight: 500; }
.plans-foot { text-align: center; margin-top: 28px; }
.upgrade-loading { display: none; }

/* ---------- Trade band, with the free patch check ---------- */
.tradeband { padding: clamp(64px, 8vw, 110px) 0; }
.tb-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.tb-copy { display: grid; gap: 18px; justify-items: start; }
.tb-copy .h3 { font-size: clamp(30px, 3.4vw, 50px); }
.tb-copy .body { color: #2B2D31; max-width: 46ch; }
.tb-copy .body a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.tb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 520px; margin: 4px 0; border-top: 1px solid rgba(17, 18, 20, .16); border-bottom: 1px solid rgba(17, 18, 20, .16); }
.tb-facts div { padding: 14px 10px 14px 0; }
.tb-facts dt { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #3A3C40; }
.tb-facts dd { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; letter-spacing: -0.03em; }
.tradeband.theme-amber .label { color: #111214; }
.tradeband.theme-amber .label::before { background: #111214; box-shadow: 0 0 0 4px rgba(17, 18, 20, .12); }
.tradeband.theme-amber .btn { background: #111214; color: #FFFFFF; }
.tradeband.theme-amber .btn:hover { background: #2B2D31; }
.tb-quote { font-size: 15px; color: #2B2D31; max-width: 46ch; padding-left: 14px; box-shadow: inset 2px 0 0 #111214; }
.pw-radar-widget { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--sheet); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(17, 18, 20, .45); }
.pw-radar-widget-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.025em; line-height: 1.15; }
.pw-radar-widget-sub { font-size: 14px; color: var(--ink-2); margin-top: -4px; }
.pw-radar-input { height: 46px; width: 100%; padding: 0 14px; border-radius: var(--r-md); background: var(--sheet); border: 1px solid var(--rule-2); font-size: 15px; color: var(--ink); transition: border-color var(--dur-instant), box-shadow var(--dur-instant); }
.pw-radar-input::placeholder { color: var(--ink-3); }
.pw-radar-input:focus { outline: none; border-color: var(--amber-deep); box-shadow: var(--focus); }
select.pw-radar-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237E838C' stroke-width='1.5'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.pw-radar-btn { height: 48px; border-radius: var(--r-btn); background: #111214; color: #fff; font-weight: 600; font-size: 16px; transition: background-color var(--dur-instant); }
.pw-radar-btn:hover { background: #2B2D31; }
.pw-radar-btn:disabled { opacity: .6; cursor: progress; }
.pw-radar-widget-foot { font-size: 13px; color: var(--ink-3); }
.pw-radar-widget-foot a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pw-radar-widget-foot[hidden], .pw-radar-out[hidden] { display: none; }
.pw-radar-out { padding: 14px 16px; border-radius: 12px; background: var(--paper-2); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.pw-radar-out strong { color: var(--ink); font-weight: 600; }
.pw-radar-out.is-error { background: var(--amber-wash); color: var(--amber-ink); }
.pw-radar-out-total { display: block; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.025em; color: var(--ink); }
.pw-radar-out-open { color: var(--green-ink); font-weight: 600; }
.pw-radar-out-held { color: var(--ink-3); }
.pw-radar-out-cta { display: inline-flex; align-items: center; margin-top: 8px; padding: 8px 14px; border-radius: 10px; background: #111214; color: #fff; font-weight: 600; font-size: 14px; }
.pw-radar-out-cta:hover { background: #2B2D31; }

/* ---------- Free planning help: guides, advisor, tools, forum ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--sh-1); color: inherit; transition: box-shadow var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out); }
.guide-card:hover { box-shadow: 0 0 0 1px var(--rule-2), 0 18px 40px -24px rgba(17, 18, 20, .35); transform: translateY(-2px); }
.guide-art { aspect-ratio: 16 / 7; background: var(--paper-2); border-bottom: 1px solid var(--rule); background-image: linear-gradient(var(--scrim) 1px, transparent 1px), linear-gradient(90deg, var(--scrim) 1px, transparent 1px); background-size: 16px 16px; display: grid; place-items: center; }
.guide-art svg { width: 78%; height: 82%; }
.guide-art .gk { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.guide-art .gf { fill: none; stroke: var(--ink-4); stroke-width: 1.1; }
.guide-art .ga { fill: var(--amber-soft); stroke: var(--amber-deep); stroke-width: 1.4; }
.guide-art .gs { fill: none; stroke: var(--site-red); stroke-width: 1.8; }
.guide-art .gb { fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 4 3; }
.guide-art .gt { font: 500 8px/1 var(--font-mono); letter-spacing: .08em; fill: var(--ink-3); }
.guide-body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 22px; }
.guide-body .mono { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.guide-body h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.guide-body p { font-size: 14.5px; color: var(--ink-2); }
.guide-body .more { margin-top: 4px; font-size: 14px; font-weight: 500; }
.help-more { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 22px; }
.help-tools { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--ink-2); }
.help-tools a { color: var(--ink); font-weight: 500; }
.help-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.help-panel { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--r-xl); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; }
.help-panel .h3 { font-size: clamp(24px, 2.2vw, 32px); }
.help-panel > p { color: var(--ink-2); font-size: 15.5px; }
.ask-form { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule-2); }
.ask-form:focus-within { box-shadow: 0 0 0 1.5px var(--red), 0 0 0 5px var(--red-wash); }
.ask-form input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 0; background: transparent; font-size: 16px; outline: none; }
.ask-form input:focus-visible { box-shadow: none; }
.ask-form .btn { flex: none; --h: 46px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chips a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-2); transition: color var(--dur-instant), box-shadow var(--dur-instant); }
.ask-chips a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.help-panel .fine { font-size: 12.5px; color: var(--ink-3); }
.forum-list { display: grid; }
.forum-list a { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--rule); color: inherit; }
.forum-list a:last-child { border-bottom: 1px solid var(--rule); }
.forum-list b { font-weight: 500; font-size: 15px; line-height: 1.35; }
.forum-list a:hover b { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.forum-list span { font-size: 13.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-panel .btn { justify-self: start; }

/* ---------- Coverage: what we monitor, regions, about ---------- */
.monitor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.monitor-grid li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 22px 24px 24px 0; border-bottom: 1px solid var(--rule); }
.monitor-grid li:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--rule); }
.monitor-grid .mi { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.monitor-grid .mi svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.monitor-grid .mi .am { stroke: var(--amber-deep); fill: var(--amber-soft); }
.monitor-grid h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.monitor-grid p { font-size: 14.5px; color: var(--ink-2); }
.regions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.regions-head { display: grid; gap: 14px; }
.regions-head .h3 { font-size: clamp(26px, 2.6vw, 38px); }
.regions-head p { color: var(--ink-2); font-size: 15.5px; }
.region-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.region-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); color: var(--ink); font-weight: 500; font-size: 15.5px; transition: color var(--dur-instant); }
.region-list a span { font: 12px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.region-list a:hover { color: var(--amber-ink); }
.region-more { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-3); }
.region-more a { color: var(--ink); font-weight: 500; }
.region-more a:hover { color: var(--amber-ink); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-grid .about-copy { display: grid; gap: 16px; color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 62ch; }

/* ---------- FAQ extras ---------- */
.faq-list details p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq-more { font-size: 15px; color: var(--ink-2); }
.faq-more a { color: var(--ink); font-weight: 500; }

/* ---------- Close ---------- */
.search--center { margin: 6px auto 0; width: 100%; text-align: left; }
.home-close { background: var(--paper-2); padding-bottom: clamp(180px, 17vw, 250px); border-top: 0; }
.home-close .close-inner { padding-bottom: clamp(24px, 3vw, 40px); position: relative; z-index: 1; }
.home-close .close-alt { font-size: 15px; color: var(--ink-2); }
.home-close .close-alt a { color: var(--ink); font-weight: 500; }
.street-band { position: relative; z-index: 1; height: clamp(230px, 21vw, 310px); margin-top: 8px; pointer-events: none; }
.street-band--close { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(180px, 17vw, 250px); margin: 0; opacity: .9; }

/* ---------- colour: the street band, dark data band, amber Pro card, amber trade band ---------- */
.home-hero { background: var(--paper-2); padding-bottom: 0; overflow: hidden; padding-top: calc(var(--nav-clear, 88px) + clamp(16px, 3vw, 40px)); }
.home-hero::before { display: none; }
.home-hero .hero-grid { position: relative; z-index: 2; padding-bottom: clamp(8px, 1.5vw, 24px); }
.home-hero .hero-copy { gap: 22px; }
.data.theme-dark { background: #0F1012; --map-hit: #FFB52E; --map-ink: #F4F2EC; --map-mid: #A9ADB5; --map-faint: #5A5F68; }
.data.theme-dark .ukmap figcaption { color: #8C9098; }

/* ---------- Dialogs: save a postcode, paid tracking setup, the exit prompt ---------- */
.pw-dialog-backdrop { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--font-sans); letter-spacing: var(--track-ui); color: var(--ink); }
.pw-dialog-scrim { position: absolute; inset: 0; background: rgba(17, 18, 20, .32); }
.pw-dialog-scrim--blur { background: rgba(17, 18, 20, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pw-dialog { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 32px; border-radius: var(--r-xl); background: var(--sheet); box-shadow: 0 0 0 1px rgba(17, 18, 20, .06), 0 40px 90px -30px rgba(17, 18, 20, .5); transform: scale(.96); opacity: 0; transition: transform 240ms var(--ease-out), opacity 200ms var(--ease-out); text-align: left; }
.pw-dialog--wide { max-width: 480px; }
.pw-dialog-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); transition: background-color var(--dur-instant), color var(--dur-instant); }
.pw-dialog-close:hover { background: var(--paper-2); color: var(--ink); }
.pw-dialog-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pw-dialog-art { width: 120px; height: 72px; margin-bottom: 14px; }
.pw-dialog h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 8px; padding-right: 32px; overflow-wrap: anywhere; }
.pw-dialog h3 em { font-style: normal; background: linear-gradient(transparent 62%, var(--amber-field) 62%, var(--amber-field) 92%, transparent 92%); }
.pw-dialog > p, .pw-dialog-copy { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-bottom: 18px; }
.pw-dialog form { display: grid; gap: 10px; }
.pw-dialog .input { height: 50px; font-size: 16px; }
.pw-dialog .btn { width: 100%; }
.pw-dialog-fine { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
/* "Continue with Google" beside the email field (public/site/js/auth.js) */
.pw-dialog [data-pw-google-wrap] .pw-or { margin: 14px 0 12px; }
.pw-track-google { margin-bottom: 4px; }
.res-save .pw-or { margin: 2px 0 10px; color: #3A3C40; }
.res-save .pw-or::before, .res-save .pw-or::after { background: rgba(17, 18, 20, .2); }
.res-save .pw-google { box-shadow: none; white-space: normal; text-align: center; height: auto; min-height: 50px; padding: 12px 18px; line-height: 1.25; }
.res-save .pw-google:hover { background: #fff; box-shadow: 0 0 0 2px rgba(17, 18, 20, .85); }
.pw-dialog-error { margin-top: 10px; font-size: 13.5px; color: var(--amber-ink); font-weight: 500; }
.pw-dialog-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -4px 0 18px; font-size: 13.5px; color: var(--ink-2); }
.pw-dialog-trust span { display: inline-flex; align-items: center; gap: 6px; }
.pw-dialog-trust svg { width: 14px; height: 14px; stroke: var(--green); fill: none; stroke-width: 2; }
/* The paid-tracking body comes from public/checkout-setup.js (shared with its tests), so it is styled by structure here */
#paid-tracking-modal .material-icons-round { display: none; }
#paid-tracking-close { width: 36px; height: 36px; border-radius: 10px; top: 14px !important; right: 14px !important; display: grid; place-items: center; }
#paid-tracking-close::before { content: ""; width: 16px; height: 16px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9'/%3E%3C/svg%3E") center / contain no-repeat; }
#paid-tracking-close:hover { background: var(--paper-2); }
#paid-tracking-close + div { width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-soft); display: grid; place-items: center; }
#paid-tracking-close + div::before { content: ""; width: 24px; height: 24px; background: var(--amber-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9' stroke-dasharray='3 2.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9' stroke-dasharray='3 2.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
#paid-tracking-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 8px; padding-right: 32px; }
#paid-tracking-description { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-bottom: 20px; }
#paid-tracking-form { display: grid; gap: 16px; }
#paid-tracking-form label { display: block; }
#paid-tracking-form label > span:first-child, #paid-tracking-radius-label, #paid-tracking-form legend { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
#paid-tracking-form label > span:first-child span { font-weight: 400; color: var(--ink-3); }
#paid-tracking-form label > span.block:not(:first-child) { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink-3); }
#paid-tracking-form input[type="text"], #paid-tracking-form input[type="email"], #paid-tracking-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); background: var(--sheet); border: 1px solid var(--rule-2); font-size: 16px; color: var(--ink); transition: border-color var(--dur-instant), box-shadow var(--dur-instant); }
#paid-tracking-form textarea { resize: vertical; }
#paid-tracking-form input::placeholder, #paid-tracking-form textarea::placeholder { color: var(--ink-3); }
#paid-tracking-form input:focus, #paid-tracking-form textarea:focus { outline: none; border-color: var(--amber-deep); box-shadow: var(--focus); }
#paid-tracking-form [role="group"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-2); }
.paid-radius-option { height: 40px; border-radius: 9px; font: 500 14px/1 var(--font-mono); color: var(--ink-2); transition: background-color var(--dur-instant), color var(--dur-instant), box-shadow var(--dur-instant); }
.paid-radius-option:hover { color: var(--ink); }
.paid-radius-option.active, .paid-radius-option[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--rule), 0 2px 6px -2px rgba(17, 18, 20, .2); }
#paid-tracking-frequency { border: 0; margin: 0; padding: 0; min-width: 0; }
#paid-tracking-frequency[hidden] { display: none; }
#paid-tracking-frequency .space-y-2 { display: grid; gap: 8px; }
#paid-tracking-frequency label { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule-2); cursor: pointer; }
#paid-tracking-frequency label > span { font-size: 14px; }
#paid-tracking-frequency label > span > span:first-child { display: block; font-weight: 600; color: var(--ink); }
#paid-tracking-frequency label > span > span + span { display: block; color: var(--ink-3); font-size: 12.5px; }
#paid-tracking-volume { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
#paid-tracking-submit { height: 52px; border-radius: var(--r-btn); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; transition: background-color var(--dur-instant); }
#paid-tracking-submit:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
#paid-tracking-submit:disabled { opacity: .6; cursor: progress; }
#paid-tracking-error { font-size: 14px; font-weight: 500; color: var(--amber-ink); }

.pw-toast { position: fixed; left: 50%; bottom: 24px; z-index: 10000; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: #111214; color: #fff; font: 500 14.5px/1.35 var(--font-sans); letter-spacing: -0.01em; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); transform: translate(-50%, 20px); opacity: 0; transition: transform 320ms var(--ease-out), opacity 240ms var(--ease-out); }
.pw-toast.on { transform: translate(-50%, 0); opacity: 1; }
.pw-toast svg { width: 18px; height: 18px; flex: none; stroke: #4ADE80; fill: none; stroke-width: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-visual { min-height: 540px; }
  .res-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .object-grid, .data-grid, .tb-grid, .help-row, .regions, .about-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan-biz { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .monitor-grid { grid-template-columns: 1fr 1fr; }
  .monitor-grid li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .monitor-grid li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--rule); }
  .region-list { grid-template-columns: 1fr 1fr; }
  .res-layout { grid-template-columns: 1fr; }
  .res-side { position: static; }
  .res-stats { grid-template-columns: 1fr 1fr; }
  .res-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .res-stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .tab-list { grid-template-columns: 1fr; gap: 6px; }
  .tab-list button .tdesc { display: none; }
  .tab-list button[aria-selected="true"] .tdesc { display: block; }
  .tab-stage { height: 470px; }
  .tabs-track.is-scroll .tab-stage { height: clamp(240px, calc(100svh - var(--nav-clear) - 210px), 470px); }
  .tabs-track.is-stacked .tab-panel { height: 500px; padding-top: 52px; }
  .tab-panel { padding: 16px; }
  .res-win .app-body { grid-template-columns: 1fr; }
  .res-map { display: none; }
  .radius-card { grid-template-columns: 1fr; grid-template-rows: 220px auto; max-height: none; height: auto; }
  .radius-side { border-left: 0; border-top: 1px solid var(--rule); padding: 16px; gap: 12px; }
  .obj-note { display: none; }
  .ukmap { aspect-ratio: .78; }
}
@media (max-width: 640px) {
  .search { padding-left: 42px; }
  .search-ico { left: 15px; }
  .search .btn { --h: 44px; padding: 0 16px; font-size: 15px; min-width: 0; }
  .search-in { font-size: 16px; }
  .home-visual { min-height: 0; display: grid; gap: 12px; padding-top: 4px; }
  .notif, .alert-card, .plan-card { position: relative; left: auto; right: auto; top: auto; width: 100%; }
  .alert-card:empty { min-height: 420px; }
  .plan-card { transform: rotate(1.6deg); margin-top: 6px; order: 3; }
  .topic-row { grid-template-columns: 22px minmax(0, 1fr) 54px; }
  .topic-row .tb { display: none; }
  /* pinned on a phone: the topics card must fit the pinned stage, so 7 rows on one line each */
  .tabs-track.is-scroll .topics-card { gap: 10px; padding: 16px 18px; }
  .tabs-track.is-scroll .topic-row > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs-track.is-scroll .topic-row:nth-child(n+9) { display: none; }
  .data-stats { grid-template-columns: 1fr 1fr; }
  .monitor-grid { grid-template-columns: 1fr; }
  .monitor-grid li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .region-list { grid-template-columns: 1fr; }
  .tb-facts { grid-template-columns: 1fr 1fr 1fr; }
  .res-card { padding: 16px; }
  .res-status { max-width: 50%; }
  .res-controls { width: 100%; }
  .res-controls label { flex: 1; min-width: 0; }
  .res-controls .select { flex: 1; min-width: 0; }
  .pw-dialog { padding: 26px 22px; }
  .ask-form { flex-direction: column; }
  .ask-form .btn { width: 100%; }
  .pw-ask, .pw-gate { padding: 16px; }
  .pw-ask--strong { padding: 20px 18px; }
  .pw-ask-form { flex-direction: column; }
  .pw-ask-form .input { flex: none; }
  .pw-ask-form .btn { width: 100%; }
  .pw-ask .btn-row .btn, .pw-gate .btn-row .btn { width: 100%; white-space: normal; height: auto; min-height: 48px; padding: 12px 18px; line-height: 1.25; }
  .help-panel { padding: 22px; }
  .plan { padding: 24px; }
  .plan-biz { padding: 22px; }
}
@media (max-width: 400px) {
  .search .btn { padding: 0 12px; }
  .tb-facts dd { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .res-card, .results-sec.is-in, .pw-gate { animation: none; }
  .pw-dialog, .pw-toast { transition: none; }
  .guide-card:hover { transform: none; }
}
.hero-search { display: grid; gap: 22px; max-width: 540px; }
.tb-quote { margin: 0; }
.tb-quote blockquote { margin: 0; }
.tb-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: #3A3C40; }
.tb-logo { height: 18px; width: auto; }
.tb-quote figcaption a { display: inline-flex; padding: 5px 8px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 18, 20, .08); }
