/* New-homes lists: one stylesheet for every page. No build step, no external scripts.
   The product is a spreadsheet, so the site borrows the workbook's language: the teal header row, grid lines,
   tabular figures and the yellow "arrived late" fill. One typeface, Inter, for display and text (tight, heavy
   headings; regular text), IBM Plex Mono only inside the example sheet. The one loud moment is the hero's "last week" strip, drawn as a selected
   range of cells (teal outline and fill handle); in the configurator the place pips (hatched = taken, outline = open,
   teal = yours) carry the rest. Type steps by 1.25 from 16px: 13, 14, 16, 20, 25, 31, 39, 49, 56 (hero cap). */

:root {
  --bg: #F3F6F6;
  --surface: #FFFFFF;
  --band: #E7EEEF;           /* every other section */
  --ink: #14252A;
  --muted: #536569;
  --line: #D3DDDF;
  --line-strong: #A7B8BC;
  --accent: #1F4E5A;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3EEF0;
  --accent-hover: #183F49;
  --late: #FFF2CC;           /* the workbook's "arrived late" fill */
  --flag: #F6E5A8;
  --flag-ink: #5A4300;
  --danger: #A3302A;
  --sheet-link: #0563C1;     /* Excel's hyperlink blue */
  --shadow: rgba(20, 37, 42, 0.22);
  --shadow-sm: 0 1px 2px rgba(20, 37, 42, 0.05), 0 2px 6px -2px rgba(20, 37, 42, 0.08);
  --shadow-md: 0 2px 4px rgba(20, 37, 42, 0.06), 0 12px 28px -12px rgba(20, 37, 42, 0.22);
  --font-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-lg: 14px;
  --ring: 0 0 0 3px rgba(31, 78, 90, 0.18);
  --page: 66rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --band-pad: clamp(2.5rem, 1.75rem + 1.6vw, 3.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E181B; --surface: #142226; --band: #11201F; --ink: #E2EBEC; --muted: #98ACB0;
    --line: #29393E; --line-strong: #4A5F65; --accent: #82C2CC; --accent-ink: #0E181B; --accent-soft: #1A3137;
    --late: #3B3420; --flag: #4A3D17; --flag-ink: #F3DC8C; --danger: #F2958D; --sheet-link: #8DB8F2;
    --shadow: rgba(0, 0, 0, 0.55); --accent-hover: #9AD1DA;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
    --ring: 0 0 0 3px rgba(130, 194, 204, 0.3);
    color-scheme: dark;
  }
}

/* ---- base -------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body);
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10; padding: 0.5rem 0.9rem; background: var(--accent); color: var(--accent-ink); border-radius: 0 0 5px 0; }
.skip:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
main.wrap { display: grid; gap: 3.5rem; padding-block: 2.5rem 4rem; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(1.5625rem, 1.3rem + 0.9vw, 1.953rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.25rem; height: 2px; background: var(--accent); border-radius: 1px; }
p { margin: 0; }
.muted { color: var(--muted); }
table { border-collapse: collapse; width: 100%; }

/* ---- header ------------------------------------------------------------------------------------------------ */
.site-head { position: sticky; top: 0; z-index: 8; border-bottom: 1px solid var(--line); background: var(--bg); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-head { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.site-head .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.65rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 700 1.125rem/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
.logo-bg { fill: var(--accent); }
.logo-mark { fill: none; stroke: var(--accent-ink); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; font-size: 0.9375rem; }
.nav a { color: var(--muted); font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.nav a.nav-cta { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: var(--shadow-sm); transition: background-color 0.15s; }
.nav a.nav-cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
@media (max-width: 44rem) { .nav a.nav-wide { display: none; } }
@media (max-width: 30rem) { .nav a.nav-mid { display: none; } }

/* ---- buttons ------------------------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: 0.6rem 1.25rem; border: 1px solid var(--accent); border-radius: var(--radius);
       font: 600 0.9375rem/1.2 var(--font-body); text-align: center; text-decoration: none; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
button.btn { cursor: pointer; -webkit-appearance: none; appearance: none; }
.btn-block { width: 100%; }
.btn-small { min-height: 2.5rem; padding: 0.4rem 0.95rem; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; filter: none; }
.link-btn { -webkit-appearance: none; appearance: none; justify-self: start; display: inline-flex; align-items: center; min-height: 2rem; padding: 0; border: 0; background: none;
            color: var(--accent); font: 600 0.875rem var(--font-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }

/* ---- home page bands ---------------------------------------------------------------------------------------- */
main.wrap.home { display: block; max-width: none; padding: 0; }
.band { padding-block: var(--band-pad); }
.band-alt { background: var(--band); border-block: 1px solid var(--line); }
.band + .band:not(.band-alt) { border-top: 0; }
.stack { display: grid; gap: 1.25rem; }
.band-head { display: grid; gap: 0.45rem; }
.band-head p { max-width: 68ch; color: var(--muted); }
@media (min-width: 56rem) {
  .band-head.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); align-items: end; column-gap: 3rem; }
  .band-head.split p { font-size: 0.9375rem; }
}

/* hero */
.hero { position: relative; padding-block: clamp(2.25rem, 1.4rem + 2.6vw, 4rem) var(--band-pad); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
                background: radial-gradient(60rem 28rem at 85% -10%, var(--accent-soft) 0%, transparent 65%); }
.hero-in { display: grid; gap: 1.25rem; justify-items: start; }
.hero h1 { max-width: 15.5em; font-size: clamp(2.25rem, 1.3rem + 3.8vw, 3.75rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.lede { max-width: 66ch; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 30rem) {
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
}

/* last week's figures as a selected range of cells: grid lines, a teal selection outline and its fill handle */
.lastweek { position: relative; display: flex; flex-wrap: wrap; width: 100%; margin-block: 0.15rem 0.1rem; gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line-strong);
            border-radius: var(--radius); box-shadow: var(--shadow-sm); font-variant-numeric: tabular-nums; line-height: 1.35; }
.lw-cell { padding: 0.55rem 0.9rem; background: var(--surface); }
.lw-total { flex: 1 1 100%; }
.lw-total b { font: 700 1.25rem/1 var(--font-display); }
.lw-council { flex: 1 1 0; min-width: 0; display: grid; }
.lw-name { color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.lw-council b { font: 700 1.25rem/1.15 var(--font-display); }
@media (min-width: 46rem) {
  .lastweek { display: inline-flex; flex-wrap: nowrap; width: auto; }
  .lw-total, .lw-council { flex: none; display: flex; align-items: baseline; gap: 0.4rem; padding: 0.6rem 0.95rem; }
  .lw-name { color: var(--ink); font-size: 0.9375rem; }
}

/* four facts, as one strip of cells */
.perks { width: 100%; margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden;
         background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.perks li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-content: start; align-items: center; gap: 0.2rem 0.6rem; padding: 0.8rem 1rem 0.9rem; background: var(--surface); }
.perks .ico { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.perks strong { font: 650 1.0625rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.perks span { grid-column: 1 / -1; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
@media (max-width: 34rem) {
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perks li { column-gap: 0.75rem; padding: 0.7rem 0.9rem; }
  .perks .ico { grid-row: 1 / span 2; align-self: start; margin-top: 0.1rem; }
  .perks strong { font-size: 1rem; }
  .perks span { grid-column: 2; }
}
@media (min-width: 50rem) { .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* example sheet: header row and grid lines like the workbook */
.sheet { display: grid; gap: 0.6rem; margin: 0; }
/* the example list is the product: on wide screens it takes up to 4rem of the margin on each side */
.band .sheet { margin-inline: calc(-1 * clamp(0px, (100vw - var(--page)) / 2 - 1rem, 4rem)); }
.sheet-frame { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.tabs { display: flex; gap: 0.25rem; padding: 0.45rem 0.75rem 0; overflow-x: auto; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.tab { padding: 0.3rem 0.75rem; border-radius: 4px 4px 0 0; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; }
.tab.on { margin-bottom: -1px; background: var(--surface); color: var(--ink); font-weight: 500; border: 1px solid var(--line); border-bottom-color: var(--surface); }
.sheet-title { padding: 0.6rem 0.8rem 0.5rem; font-weight: 600; font-size: 0.9375rem; border-bottom: 1px solid var(--line); }
.scroll { overflow-x: auto; }
.scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sheet-table { min-width: 58rem; font-size: 0.8125rem; line-height: 1.35; }
.sheet-table th, .sheet-table td { padding: 0.4rem 0.55rem; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.sheet-table th { background: var(--accent); color: var(--accent-ink); font: 600 0.8125rem var(--font-body); letter-spacing: 0.01em; }
.sheet-table th:last-child, .sheet-table td:last-child { border-right: 0; }
.sheet-table tbody tr:last-child td { border-bottom: 0; }
.sheet-table td.num { font-family: var(--font-mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.sheet-table td.notes { min-width: 13.5rem; white-space: normal; color: var(--muted); }
.sheet-table tr.late td { background: var(--late); }
.sheet-table tr.late td.notes { color: var(--ink); }
.maplink { color: var(--sheet-link); text-decoration: underline; }
figcaption { max-width: 80ch; color: var(--muted); font-size: 0.875rem; }

/* ---- configurator ------------------------------------------------------------------------------------------- */
.config { scroll-margin-top: 0.5rem; }
.config-head { margin-bottom: 1.25rem; }
.form-error { max-width: 66ch; margin-bottom: 1.25rem; padding: 0.75rem 1rem; background: var(--surface); border-left: 3px solid var(--danger); }
.note { max-width: 66ch; margin-bottom: 1.25rem; padding: 0.75rem 1rem; background: var(--accent-soft); border-radius: var(--radius); }

.cfg { display: grid; gap: 1.75rem; align-items: start; }
.cfg-main { display: grid; gap: 1.6rem; min-width: 0; }
@media (min-width: 60rem) {
  .cfg { grid-template-columns: minmax(0, 1fr) 22.5rem; column-gap: 2.25rem; }
  .docket { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
  .minibar { display: none !important; }
}

.step { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 0.75rem; }
.step > legend, .docket > h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.75rem; padding: 0; font: 650 1.25rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.docket > h3 { margin: 0; }
.step-no { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 0.875rem/1 var(--font-display); }

input[type="radio"], input[type="checkbox"] { width: 1.125rem; height: 1.125rem; margin: 0; flex: none; accent-color: var(--accent); }
input[type="text"], input[type="email"], input[type="search"] {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem; color: var(--ink); font: 400 1rem var(--font-body);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="search"]:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field { display: grid; gap: 0.3rem; }
.field > label, .finder > label { font-weight: 600; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--muted); }

/* step progress (phones, with JavaScript) */
.progress { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.progress button { display: block; width: 100%; min-height: 2.5rem; padding: 0 0 0.25rem; border: 0; background: none; color: var(--muted); font: 600 0.8125rem/1.2 var(--font-body); text-align: left; cursor: pointer; }
.progress button::before { content: ""; display: block; height: 4px; margin-bottom: 0.4rem; border-radius: 2px; background: var(--line); }
.progress button.done { color: var(--ink); }
.progress button.done::before, .progress button[aria-current]::before { background: var(--accent); }
.progress button[aria-current] { color: var(--accent); }
.cfg.wizard .step:not(.is-current), .cfg.wizard .docket:not(.is-current) { display: none; }
.cfg.wizard[data-at="2"] .cfg-main { display: none; }

/* step 1: trade chips; the full name and pitch show under the chosen one */
.trade-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trade { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.45rem 1.05rem; cursor: pointer;
         background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 500; line-height: 1.2; -webkit-tap-highlight-color: transparent;
         transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.trade input { position: absolute; left: 0.6rem; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.trade:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.trade:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.trade.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.trade:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.trade.on::before { content: ""; width: 0.6rem; height: 0.32rem; margin: -0.2rem 0.05rem 0 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
@supports not selector(:has(*)) {      /* older browsers: show the radio itself, ring the chip on any focus */
  .trade input { position: static; width: 1.125rem; height: 1.125rem; opacity: 1; pointer-events: auto; }
  .trade:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
}
.pitch { max-width: 72ch; padding: 0.55rem 0.8rem; background: var(--accent-soft); border-radius: var(--radius); font-size: 0.9375rem; line-height: 1.5; }
.pitch strong { font-weight: 600; }
.pitch:empty { display: none; }

/* step 2: search, busiest areas, regions */
.hint { max-width: 68ch; color: var(--muted); font-size: 0.875rem; }
.key { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: 0.5rem; white-space: nowrap; color: var(--ink); }
.trade-first { color: var(--accent); font-weight: 600; }
.finder { display: grid; gap: 0.35rem; }
.combo { position: relative; }
.combo input[type="search"] { min-height: 3.25rem; padding-left: 2.75rem; font-size: 1.0625rem; border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.combo input[type="search"]:hover { border-color: var(--accent); }
.search-ico { position: absolute; left: 0.9rem; top: 50%; width: 1.25rem; height: 1.25rem; margin-top: -0.625rem; color: var(--accent); pointer-events: none; }
.combo-list { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 4px); max-height: min(23rem, 55vh); margin: 0; padding: 0.3rem; list-style: none; overflow-y: auto; overscroll-behavior: contain;
              background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.75rem; padding: 0.45rem 0.6rem; border-radius: 4px; line-height: 1.3; cursor: pointer; }
.opt-main { font-weight: 500; }
.opt-main mark { background: none; color: inherit; font-weight: 700; }
.opt-meta { grid-column: 1; color: var(--muted); font-size: 0.8125rem; }
.opt-side { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt[aria-selected="true"] { background: var(--accent-soft); }
.opt.is-on .opt-side { color: var(--accent); font-weight: 600; }
.opt[aria-disabled="true"] { cursor: not-allowed; }
.opt[aria-disabled="true"] .opt-main { color: var(--muted); }
.no-match { color: var(--muted); font-size: 0.875rem; }

.busiest { display: grid; gap: 0.4rem; }
.busiest-h { font-weight: 600; font-size: 0.9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.3rem 0.75rem; cursor: pointer; -webkit-appearance: none; appearance: none;
        background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; font: 500 0.9375rem/1.2 var(--font-body);
        transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.chip:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.chip-n { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.chip[aria-pressed="true"]::before { content: ""; width: 0.55rem; height: 0.3rem; margin: -0.2rem 0.05rem 0 0; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.areas-msg { padding: 0.5rem 0.75rem; border-radius: var(--radius); background: var(--flag); color: var(--flag-ink); font-size: 0.9375rem; }
.areas-msg a { color: inherit; font-weight: 600; }

.regions-h { margin-top: 0.15rem; font: 600 0.9375rem/1.3 var(--font-body); }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.75rem), 1fr)); gap: 0.5rem; }
@media (min-width: 60rem) { .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; } }
.region { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s; }
.region:hover { box-shadow: var(--shadow-sm); }
.region:hover { border-color: var(--line-strong); }
.region[open] { grid-column: 1 / -1; border-color: var(--line-strong); }
.region.has { border-color: var(--accent); }
.region > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name sign" "meta tick"; gap: 0 0.4rem; padding: 0.55rem 0.7rem 0.6rem; cursor: pointer; list-style: none; border-radius: var(--radius); }
.region > summary::-webkit-details-marker { display: none; }
.region > summary::after { content: "+"; grid-area: sign; align-self: start; color: var(--accent); font: 500 1.0625rem/1.3 var(--font-mono); }
.region[open] > summary::after { content: "\2212"; }
.r-name { grid-area: name; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.r-meta { grid-area: meta; color: var(--muted); font-size: 0.78rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.r-ticked { grid-area: tick; align-self: end; justify-self: end; padding: 0.05rem 0.4rem; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.r-body { display: grid; gap: 0.15rem; padding: 0 0.5rem 0.5rem; }
.r-body > .link-btn { margin: -0.2rem 0.3rem 0.15rem; }

.councils { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 2px 0.5rem; }
.council { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "pick vol pips" "state state state"; align-items: center; column-gap: 0.75rem; padding: 0 0.5rem; border-radius: var(--radius); }
.c-pick { grid-area: pick; display: flex; align-items: center; gap: 0.6rem; min-width: 0; min-height: 2.75rem; cursor: pointer; }
@media (pointer: fine) { .c-pick { min-height: 2.4rem; } }
.c-name { overflow-wrap: anywhere; }
.c-vol { grid-area: vol; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.c-vol b { color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.council .pips { grid-area: pips; }
.c-state { grid-area: state; font-size: 0.8125rem; }
.c-state:empty { display: none; }
.council.on { background: var(--accent-soft); }
.council:has(input:checked) { background: var(--accent-soft); }
.council.full .c-pick { cursor: not-allowed; color: var(--muted); }
.council.full .c-state { justify-self: start; margin: -0.35rem 0 0.5rem 1.75rem; padding: 0.1rem 0.5rem; border-radius: 3px; background: var(--flag); color: var(--flag-ink); }
.council.full .c-state a { color: inherit; font-weight: 600; }
.pips { display: inline-flex; gap: 3px; }
.pip { display: inline-block; width: 0.75rem; height: 0.75rem; border: 1.5px solid var(--line-strong); border-radius: 2px; background: transparent; transition: background-color 0.15s, border-color 0.15s; }
.pip.taken { background: repeating-linear-gradient(135deg, var(--muted) 0 1.5px, transparent 1.5px 3.5px); border-color: var(--muted); }
.pip.yours { background: var(--accent); border-color: var(--accent); }

/* step 3: the price panel */
.docket { min-width: 0; display: grid; gap: 0.75rem; padding: 1.25rem 1.25rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); scroll-margin-top: 4.5rem; }
.picked { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.picked-h { margin-right: 0.15rem; color: var(--muted); font-size: 0.8125rem; }
.chip-x { min-height: 2rem; gap: 0.25rem; padding: 0.15rem 0.25rem 0.15rem 0.6rem; background: var(--accent-soft); border-color: transparent; font-size: 0.875rem; }
.chip-x:hover { border-color: var(--accent); }
.chip-x .x { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; color: var(--muted); font-size: 1rem; line-height: 1; }
.chip-x:hover .x { color: var(--ink); }
.quote { display: grid; gap: 0.3rem; min-height: 4.5rem; transition: opacity 0.15s; }
.quote.updating { opacity: 0.55; }
.q-empty { color: var(--muted); font-size: 0.9375rem; }
.q-empty.bad { color: var(--danger); }
.q-body { display: grid; gap: 0.2rem; }
.q-volume { font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.q-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.4rem; margin-top: 0.1rem; line-height: 1.05; }
.q-amount { font: 700 2.441rem/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.q-per, .q-gst, .q-was, .q-each { color: var(--muted); font-size: 0.875rem; }
.q-was s { text-decoration-thickness: 1px; }
.q-tier { margin-top: 0.2rem; font-weight: 600; font-size: 0.875rem; }
.q-slot, .q-msg, .q-promo { font-size: 0.875rem; }
.q-slot.warn, .q-msg.warn { padding: 0.45rem 0.65rem; border-radius: var(--radius); background: var(--flag); color: var(--flag-ink); }
.q-promo.ok { color: var(--accent); font-weight: 600; }
.q-promo.bad { color: var(--danger); }
.gets { margin: 0; padding: 0.7rem 0 0; list-style: none; display: grid; gap: 0.2rem; border-top: 1px dashed var(--line-strong); font-size: 0.875rem; }
.gets li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: 0.45rem; }
.gets li::before { content: ""; width: 0.55rem; height: 0.3rem; margin-top: 0.42rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.interval { margin: 0; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; }
.interval label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: 0.3rem 0.5rem; cursor: pointer;
                  border-radius: 5px; color: var(--muted); font-size: 0.875rem; font-weight: 600; line-height: 1.2; text-align: center; }
.interval input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.interval label.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.interval label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.interval label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.q-term { margin-top: -0.4rem; color: var(--muted); font-size: 0.8125rem; }

.promo > summary { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2rem; cursor: pointer; list-style: none; color: var(--accent); font-weight: 600; font-size: 0.9375rem; }
.promo > summary::-webkit-details-marker { display: none; }
.promo > summary::after { content: "+"; font-family: var(--font-mono); font-weight: 500; }
.promo[open] > summary::after { content: "\2212"; }
.promo[open] > summary { margin-bottom: 0.3rem; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.code-row input { text-transform: uppercase; letter-spacing: 0.04em; }

.extra { display: grid; gap: 0.2rem; margin-top: 0.35rem; }
.extra > label { font-size: 0.875rem; font-weight: 500; }
.extra-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem; }
.x-btn { display: inline-grid; place-items: center; width: 2.75rem; min-height: 2.75rem; padding: 0; cursor: pointer; background: transparent; color: var(--muted);
         border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 1.25rem; line-height: 1; }
.x-btn:hover { color: var(--ink); border-color: var(--ink); }
.emails > .link-btn { margin-top: 0.15rem; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { color: var(--danger); font-size: 0.9375rem; }
.trust { margin-top: -0.45rem; color: var(--muted); font-size: 0.8125rem; text-align: center; }
.fine { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
/* arriving from "Email me a free sample": that button leads */
.cfg[data-intent="sample"] #sample-btn { background: var(--accent); color: var(--accent-ink); }
.cfg[data-intent="sample"] #go { background: transparent; color: var(--accent); }

/* bottom bar on phones and tablets: the price, and the Next button in the step-by-step view */
.minibar { position: sticky; bottom: 0; z-index: 4; display: grid; gap: 0.3rem; margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r));
           padding: 0.6rem var(--gutter-r) calc(0.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: var(--ink); color: var(--bg); }
.mb-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mb-text { min-width: 0; display: grid; font-size: 0.8125rem; line-height: 1.3; }
.mb-text strong { font: 700 1.125rem/1.25 var(--font-display); }
.minibar .btn { flex: none; background: var(--bg); color: var(--ink); border-color: var(--bg); }
.step-msg { color: var(--flag); font-size: 0.875rem; font-weight: 600; }

/* ---- prices ------------------------------------------------------------------------------------------------- */
.pricing-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 56rem) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); grid-template-rows: auto 1fr; grid-template-areas: "head table" "notes table"; column-gap: 2.5rem; row-gap: 1rem; }
  .pricing-grid > .band-head { grid-area: head; }
  .pricing-grid > .price-wrap { grid-area: table; }
  .pricing-grid > .price-notes { grid-area: notes; }
}
.price-wrap { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 0.55rem 0.9rem; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table thead th { background: var(--accent-soft); color: var(--ink); font: 600 0.875rem var(--font-body); text-align: right; }
.price-table thead th:first-child { text-align: left; }
.price-table tbody th { color: var(--ink); font: 400 1rem var(--font-body); }
.tier-name { display: block; font: 650 1.125rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.tier-range { display: block; color: var(--muted); font-size: 0.8125rem; }
.price-table td.num { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.price-table td.first { color: var(--accent); font: 700 1.25rem var(--font-display); letter-spacing: -0.02em; }
.price-table tr.exclusive td { color: var(--muted); font-size: 0.875rem; text-align: right; }
@media (max-width: 30rem) {
  .price-table th, .price-table td { padding: 0.65rem 0.5rem; }
  .price-table td.num { font-size: 0.9375rem; }
  .price-table td.first { font-size: 1.125rem; }
}
.price-notes { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; color: var(--muted); font-size: 0.9375rem; }

/* ---- how it works ------------------------------------------------------------------------------------------- */
.how-cards { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 0.75rem; }
.how-cards li { counter-increment: how; display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-content: start; gap: 0.3rem 0.75rem; padding: 1rem 1.1rem 1.1rem;
                background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.how-cards li::before { content: counter(how); grid-row: 1 / span 2; color: var(--accent); font: 700 1.953rem/1 var(--font-display); letter-spacing: -0.04em; opacity: 0.85; }
.how-cards h3 { font-size: 1.125rem; line-height: 1.25; }
.how-cards p { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 50rem) {
  .how-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .how-cards li { grid-template-columns: 2.25rem minmax(0, 1fr); padding: 1.1rem 1.2rem 1.2rem; }
  .how-cards li::before { font-size: 2.441rem; }
}

/* ---- questions and contact ---------------------------------------------------------------------------------- */
.faq-grid { display: grid; gap: 1.25rem 3rem; align-items: start; }
@media (min-width: 56rem) {      /* the questions in two columns; the contact card takes the slot after the last one */
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; row-gap: 0; }
  .faq-grid > h2 { grid-column: 1 / -1; margin-bottom: 1.1rem; }
  .faq-grid > .faq { display: contents; }
  .faq-grid > .faq > details:nth-child(-n + 2) { border-top: 1px solid var(--line); }
  .faq-grid > .contact { margin-top: 0.85rem; }
}
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 68ch; padding: 0 0 1rem; color: var(--muted); }
.contact { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0.3rem 1rem; padding: 0.85rem 1.1rem 0.95rem;
           background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact h3 { font-size: 1.125rem; }
.contact .muted { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.5; }
.email { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---- message pages, legal, admin, footer -------------------------------------------------------------------- */
.notice { display: grid; gap: 1.1rem; max-width: 40rem; padding-block: 0.5rem 2rem; }
.notice h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.addr { color: var(--accent); overflow-wrap: anywhere; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.checks li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.5rem; }
.checks li::before { content: ""; width: 0.55rem; height: 0.3rem; margin-top: 0.55rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.facts { display: grid; gap: 0.5rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.legal { display: grid; gap: 1.75rem; max-width: 46rem; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.legal-head { display: grid; gap: 0.4rem; }
.legal h2 { font-size: 1.25rem; }
.legal section { display: grid; gap: 0.6rem; }
.legal ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.admin pre { margin: 0; padding-block: 1.5rem; font: 400 0.8125rem/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }

.site-foot { border-top: 1px solid var(--line); background: var(--band); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.25rem 2rem; color: var(--muted); font-size: 0.8125rem; }
.site-foot p { margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-foot a { color: var(--muted); }
