/* Buy Iowa Asphalt
 *
 * Design system extracted from the Claude Design handoff, artboards 1a, 1c, 1e, 1f.
 * Cream paper, ink text, one goldenrod accent. Slab serif headlines over a neutral
 * sans. The intent is local and trade rather than SaaS.
 *
 * Type sizes are deliberately generous. A meaningful share of the audience is over
 * 50 and reading on a phone in a parking lot.
 */

/* ---------------------------------------------------------------- tokens -- */

:root {
  /* Surfaces, lightest to darkest */
  --paper: #f7f3ea;
  --paper-raised: #fffdf8;
  --band: #efe7d8;
  --canvas: #e8e2d6;
  --gold-pale: #f1e6c9;

  /* Ink */
  --ink: #1e1a15;
  --ink-2: #57503f;
  --ink-3: #6b6354;
  --ink-muted: #8b8175;
  --ink-faint: #a39a8c;
  --ink-placeholder: #9c9284;

  /* Accent */
  --gold: #b8860b;
  --gold-dark: #8c6608;
  --gold-bright: #e8c266;
  --gold-rule: #d6c9a4;

  /* Rules */
  --rule: #dcd2be;
  --rule-soft: #ede5d5;
  --rule-map: #cfc4ae;

  /* Dark surfaces */
  --dark: #1e1a15;
  --dark-2: #24231f;
  --dark-rule: #3a352e;
  --dark-text: #a9a093;
  --dark-text-2: #b5ac9e;
  --dark-text-3: #cfc7b9;

  --danger: #a03b1e;
  --danger-bg: #fbf0ec;

  --serif: "Zilla Slab", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --shell: 1280px;
  --gutter: 44px;
  --radius: 4px;
  --focus: 0 0 0 3px rgba(184, 134, 11, 0.35);
}

/* The design is committed to a single light look. Painting the background
 * explicitly matters because the page is otherwise transparent to the host. */
* { box-sizing: border-box; }

/* The UA rule for [hidden] is display:none at zero specificity, so any class that
 * sets display beats it and el.hidden = true silently does nothing. That is how
 * the map spent its life behind an opaque .map-loading overlay. Toggling .hidden
 * from JS has to keep working, so make the attribute win outright. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Every interactive thing gets a visible focus ring. The map is the one place
 * this is hard, and it has a documented non-map fallback instead. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.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-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius);
  font: 600 14px var(--sans);
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ typography -- */

h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font: 600 10.5px/1.4 var(--mono);
  letter-spacing: .13em;
  color: var(--gold-dark);
  text-transform: uppercase;
}
.eyebrow--onDark { color: var(--gold-bright); }

.lede { font: 400 17px/1.6 var(--sans); color: var(--ink-2); }
.muted { color: var(--ink-muted); }
.fine { font: 400 12.5px/1.5 var(--sans); color: var(--ink-muted); }

/* --------------------------------------------------------------- brand ---- */

.mark {
  width: 26px; height: 26px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 2px;
  flex: none;
}
.mark--sm { width: 18px; height: 18px; }
.mark--xs { width: 16px; height: 16px; }

.wordmark {
  font: 700 17px/1 var(--serif);
  letter-spacing: .03em;
  color: var(--ink);
}
.wordmark--sm { font-size: 12.5px; letter-spacing: .06em; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__sub { font: 400 10.5px/1.4 var(--sans); color: var(--ink-muted); margin-top: 3px; }

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 15px/1 var(--sans);
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 17px 26px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover:not(:disabled) { background: #a2760a; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover:not(:disabled) { background: #322c24; }
.btn--quiet {
  background: var(--paper-raised);
  border-color: var(--rule);
  color: var(--ink-2);
}
.btn--quiet:hover:not(:disabled) { border-color: var(--ink-faint); }
.btn--link {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-dark);
  font: 500 13.5px/1 var(--sans);
  text-decoration: underline;
  cursor: pointer;
}
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --------------------------------------------------------------- fields --- */

.field { display: flex; flex-direction: column; }
.field__label {
  font: 500 12px/1.4 var(--sans);
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field__label .opt { color: var(--ink-faint); font-weight: 400; }

.input, .textarea {
  width: 100%;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0 13px;
  height: 46px;
  font: 400 14.5px/1 var(--sans);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: 84px; padding: 12px 13px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-placeholder); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  border-width: 1.5px;
  box-shadow: var(--focus);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }

.field__error {
  font: 400 12.5px/1.5 var(--sans);
  color: var(--danger);
  margin-top: 5px;
}

/* ------------------------------------------------------------- messages --- */

.notice {
  display: flex;
  gap: 11px;
  padding: 14px;
  border-radius: var(--radius);
  font: 400 13px/1.6 var(--sans);
}
.notice--info { background: var(--band); color: var(--ink-2); }
.notice--error {
  background: var(--danger-bg);
  border: 1px solid rgba(160, 59, 30, .3);
  color: #7d2e17;
}
.notice ul { margin: 6px 0 0; padding-left: 18px; }

/* --------------------------------------------------------------- shell ---- */

.shell { max-width: var(--shell); margin: 0 auto; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font: 500 13.5px/1 var(--sans);
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav .btn { padding: 11px 18px; font-size: 13.5px; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------- hero ----- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
}
.hero__body { padding: 62px var(--gutter) 40px; max-width: 860px; }
.hero h1 {
  font: 700 53px/1.05 var(--serif);
  letter-spacing: -.01em;
  margin: 18px 0 0;
}
.hero__lede { margin: 20px 0 0; max-width: 520px; }

/* The photograph is a 3.6:1 panorama. In the old column-shaped frame it stretched
 * to 626x623 and cover showed 29 per cent of its width, so the road read as a
 * narrow slot. Full bleed at the picture's own aspect ratio shows the whole frame.
 * --canvas still paints underneath, so a failed image degrades to the surface it
 * always had. */
.hero__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1903 / 530;
  max-height: 430px;
  background: var(--canvas);
  overflow: hidden;
}
.hero__art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Address bar, landing */
.addressbar { display: flex; gap: 10px; margin: 30px 0 0; max-width: 540px; }
.addressbar .input {
  height: 56px;
  border-width: 1.5px;
  font-size: 15px;
  padding-left: 38px;
}
.addressbar__wrap { flex: 1; position: relative; }
/* In the wizard the list sits in the flow under the input. Here it has to float:
 * the hero box is mid-page, and pushing the headline and the fold around on every
 * keystroke would be worse than the suggestions are good. */
.addr__list--home {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(31, 26, 21, .16);
}
.addressbar__wrap[data-open="1"] .input { border-radius: var(--radius) var(--radius) 0 0; }
.addressbar__pin {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  pointer-events: none;
}
.addressbar .btn { height: 56px; padding: 0 26px; }

/* --------------------------------------------------------------- stats ---- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--dark); }
.stats__item { padding: 26px 32px; }
.stats__item + .stats__item { border-left: 1px solid var(--dark-rule); }
.stats__n { font: 600 30px/1 var(--serif); color: var(--gold-bright); }
.stats__label { font: 400 12.5px/1.4 var(--sans); color: var(--dark-text); margin-top: 7px; }

/* -------------------------------------------------------------- reasons --- */

.section { padding: 62px var(--gutter); background: var(--paper); }
.section--band {
  background: var(--band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 58px var(--gutter);
}
.section h2 { font: 600 32px/1.15 var(--serif); margin: 0 0 6px; }
.section__sub { font: 400 15px/1.6 var(--sans); color: var(--ink-muted); margin: 0 0 34px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 28px 26px 30px;
}
.card__num {
  width: 34px; height: 34px;
  background: var(--gold-pale);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--serif);
  color: var(--gold-dark);
}
.card h3 { font: 600 20px/1.25 var(--serif); margin: 18px 0 10px; }
.card p { font: 400 14px/1.65 var(--sans); color: var(--ink-2); }

/* --------------------------------------------------------------- steps ---- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.steps__item { padding-right: 26px; }
.steps__item + .steps__item { padding-left: 26px; }
.steps__item:last-child { padding-right: 0; }
.steps__n { font: 600 12px/1 var(--mono); color: var(--gold); letter-spacing: .1em; }
.steps__rule { height: 2px; background: var(--gold); margin: 12px 0 16px; }
.steps h3 { font: 600 18px/1.3 var(--serif); margin: 0 0 8px; }
.steps p { font: 400 13.5px/1.6 var(--sans); color: var(--ink-2); }

/* ------------------------------------------------------------ difference -- */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); background: var(--dark-2); }
.feature__body { padding: 56px var(--gutter); }
.feature__body h2 { font: 600 34px/1.15 var(--serif); color: var(--paper); margin: 16px 0 14px; }
.feature__body p { font: 400 15.5px/1.7 var(--sans); color: var(--dark-text-2); margin: 0 0 26px; }
.feature__figures {
  display: flex; gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-rule);
}
.feature__fig-n { font: 600 22px/1 var(--serif); color: var(--paper); }
.feature__fig-l { font: 400 12px/1.4 var(--sans); color: var(--ink-muted); margin-top: 6px; }

/* Screenshots of the sketch step, replacing the hand drawn stand-ins that stood in
 * for a product that now exists.
 *
 * Both show Google Maps imagery, which may be used this way as long as the Google
 * logo and the imagery credit stay visible. That constraint drives the sizing: the
 * large one is never cropped, because those marks live in its bottom corners, and
 * the small one carries the credit as text because at a quarter of the page width
 * nothing baked into the picture would be readable. */
.feature__shot {
  align-self: center;
  aspect-ratio: 960 / 518;
  overflow: hidden;
  background: var(--dark-2);
}
.feature__shot img { display: block; width: 100%; height: 100%; object-fit: contain; }

.step-shot {
  position: relative;
  aspect-ratio: 540 / 216;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--rule-map);
  background: var(--canvas);
}
.step-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step-shot__badge {
  position: absolute; right: 8px; bottom: 8px;
  font: 600 9.5px/1 var(--mono);
  color: var(--ink);
  background: var(--gold-pale);
  padding: 3px 6px;
  border-radius: 2px;
}
.step-shot__credit {
  font: 400 9px/1.4 var(--mono);
  color: var(--ink-faint);
  margin: 5px 0 0;
}

/* ----------------------------------------------------------------- cta ---- */

.cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
  padding: 38px var(--gutter);
  background: var(--gold-pale);
}
.cta h3 { font: 600 24px/1.2 var(--serif); margin: 0 0 6px; }
.cta p { font: 400 14px/1.5 var(--sans); color: var(--ink-3); }

/* -------------------------------------------------------------- footer ---- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 44px var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.site-footer h4 {
  font: 600 11px/1 var(--mono);
  letter-spacing: .1em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer p { font: 400 12.5px/1.65 var(--sans); color: var(--ink-muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; font: 400 13px/1.4 var(--sans); }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer address { font: 400 13px/1.7 var(--sans); color: var(--ink-2); font-style: normal; }
/* APAI operates this site; it is not their site. The badge is deliberately in the
 * footer next to the disclaimer and never in the header, because a mark up beside
 * the wordmark is what would make the page read as APAI's own. Here it reads as
 * attribution, which is what it is. */
.operator { display: flex; align-items: flex-start; gap: 14px; }
.operator__badge { flex: 0 0 auto; display: block; line-height: 0; border-radius: 50%; }
.operator__badge img { display: block; width: 38px; height: 38px; }
.operator__badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.operator p { margin: 0; }

/* The association is who operates this, not who this is. */
.site-footer p a, .site-footer address a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer p a:hover, .site-footer address a:hover { color: var(--gold-dark); }

/* ================================================================ wizard == */

.wiz { max-width: 960px; margin: 0 auto; background: var(--paper); min-height: 100vh; }

.wiz__bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
}
.wiz__brand { display: flex; align-items: center; gap: 9px; flex: none; text-decoration: none; }
.wiz__count { flex: none; font: 400 11.5px/1 var(--sans); color: var(--ink-faint); }

.progress { flex: 1; display: flex; align-items: center; padding-left: 20px; }
.progress__step { display: flex; align-items: center; gap: 8px; }
.progress__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  color: var(--ink-faint);
  font: 600 11px/20px var(--sans);
  text-align: center;
  flex: none;
}
.progress__label { font: 400 12.5px/1 var(--sans); color: var(--ink-faint); }
.progress__link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.progress__join { width: 34px; height: 1px; background: var(--rule); margin: 0 12px; flex: none; }

.progress__step[data-state="current"] .progress__dot {
  background: var(--gold); border-color: var(--gold); color: #fff; line-height: 22px;
}
.progress__step[data-state="current"] .progress__label { font-weight: 600; color: var(--ink); }
.progress__step[data-state="done"] .progress__dot {
  background: var(--rule); border-color: var(--rule); color: var(--ink-3); line-height: 22px;
}
.progress__step[data-state="done"] .progress__label { color: var(--ink-3); }
.progress__join[data-state="done"] { background: var(--gold); }

/* Mobile progress is a set of bars rather than numbered dots. */
.progress-bars { display: none; flex: 1; gap: 5px; padding: 0 6px; }
.progress-bars span { flex: 1; height: 3px; background: var(--rule); border-radius: 2px; }
.progress-bars span[data-on="1"] { background: var(--gold); }

.wiz__panel { display: none; }
.wiz__panel[data-active] { display: block; }

.wiz__center { padding: 64px 28px 76px; display: flex; justify-content: center; }
.wiz__narrow { width: 520px; max-width: 100%; }
.wiz h2 { font: 600 32px/1.15 var(--serif); margin: 0 0 8px; }
.wiz__sub { font: 400 14.5px/1.6 var(--sans); color: var(--ink-muted); margin: 0 0 24px; }

.wiz__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--paper-raised);
}
.wiz__foot-right { display: flex; align-items: center; gap: 18px; }
.wiz__reassure { font: 400 12.5px/1 var(--sans); color: var(--ink-faint); }

/* -- step 1, address ------------------------------------------------------ */

.addr { position: relative; }
.addr .input {
  height: 58px;
  font-size: 15.5px;
  border-width: 1.5px;
  padding-left: 38px;
}
.addr__pin {
  position: absolute; left: 16px; top: 29px;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  pointer-events: none;
}
.addr[data-open="1"] .input { border-radius: var(--radius) var(--radius) 0 0; }

.addr__list {
  background: var(--paper-raised);
  border: 1.5px solid var(--rule);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  list-style: none;
  margin: 0; padding: 0;
}
.addr__opt {
  padding: 13px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer;
  border-top: 1px solid var(--rule-soft);
}
.addr__opt:first-child { border-top: none; }
.addr__opt[aria-selected="true"], .addr__opt:hover { background: var(--gold-pale); }
.addr__opt-text { font: 400 14px/1.4 var(--sans); color: var(--ink-2); }
.addr__opt[aria-selected="true"] .addr__opt-text { font-weight: 500; color: var(--ink); }
/* The design showed a county badge here. Getting the county for a suggestion would
 * mean a billable Place Details call per row, so this shows the prediction's own
 * secondary text instead, which is free and tells the user the same thing: which
 * town it is in. County is confirmed on the next step from the shape they draw. */
.addr__opt-where {
  font: 400 12px/1.4 var(--sans);
  color: var(--ink-faint);
  flex: none;
  max-width: 45%;
  text-align: right;
}
.addr__opt[aria-selected="true"] .addr__opt-where { color: var(--ink-3); }

.addr-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.addr-help {
  font: 400 12.5px/1.6 var(--sans);
  color: var(--ink-faint);
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* -- step 2, sketch ------------------------------------------------------- */

.sketch__head {
  padding: 22px 28px 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.sketch__head h2 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.sketch__head p { font: 400 13.5px/1.5 var(--sans); color: var(--ink-muted); }
.sketch__where { font: 400 12.5px/1.5 var(--sans); color: var(--ink-3); flex: none; }

.mapwrap {
  position: relative;
  height: 520px;
  background: #77796a;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
#map { position: absolute; inset: 0; }

.map-panel {
  position: absolute;
  background: var(--paper-raised);
  border: 1px solid var(--rule-map);
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(31, 26, 21, .25);
}

.tools { left: 18px; top: 18px; display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.tool {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 3px;
  font: 500 12px/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.tool:hover:not(:disabled) { background: var(--gold-pale); }
.tool[aria-pressed="true"] { background: var(--gold); color: #fff; font-weight: 600; }
.tool:disabled { opacity: .45; cursor: not-allowed; }
.tool--sep { border-top: 1px solid var(--rule-soft); margin-top: 2px; padding-top: 10px; }
.tool__ico { width: 12px; height: 12px; flex: none; }
.tool__ico--draw { background: currentColor; transform: rotate(45deg); }
.tool__ico--move { border: 2px solid currentColor; border-radius: 50%; }
.tool__ico--undo { height: 2px; background: currentColor; }
.tool__ico--clear { border: 2px solid var(--danger); border-radius: 2px; }

.readout { right: 18px; top: 18px; width: 238px; overflow: hidden; }
.readout__main { padding: 16px 18px 14px; }
.readout__n {
  font: 700 34px/1 var(--serif);
  color: var(--ink);
  margin: 9px 0 4px;
  font-variant-numeric: tabular-nums;
}
.readout__unit { font: 400 12.5px/1.4 var(--sans); color: var(--ink-muted); }
.readout__row {
  padding: 12px 18px;
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between; gap: 10px;
  font: 400 12.5px/1.4 var(--sans);
  color: var(--ink-muted);
}
.readout__row b { font: 600 12.5px/1.4 var(--sans); color: var(--ink); }
.readout__add {
  display: block; width: 100%;
  padding: 12px 18px;
  border: none; border-top: 1px solid var(--rule-soft);
  background: none;
  font: 500 12.5px/1.4 var(--sans);
  color: var(--gold-dark);
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}

/* The sheet's own Continue exists only for the phone layout, where the footer's
 * one is off screen below a full height map. On a desktop the footer is visible
 * and two Continues would just be confusing. */
.readout__continue { display: none; }

.map-hint {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(30, 26, 21, .9);
  border-radius: var(--radius);
  padding: 10px 16px;
  max-width: calc(100% - 36px);
}
.map-hint__dot { width: 8px; height: 8px; background: var(--gold-bright); transform: rotate(45deg); flex: none; }
.map-hint span { font: 400 12.5px/1.4 var(--sans); color: var(--gold-pale); }

.map-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--canvas);
  background-image: repeating-linear-gradient(135deg, rgba(31,26,21,.055) 0 9px, transparent 9px 18px);
  font: 500 11px/1.6 var(--mono);
  letter-spacing: .07em;
  color: var(--ink-muted);
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  z-index: 2;
}

/* Typed dimensions, the documented non-map path to a square footage. */
.dims { margin-top: 18px; padding: 16px; background: var(--band); border-radius: var(--radius); }
.dims__row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.dims .input { height: 42px; width: 96px; }
.dims__x { font: 400 14px/42px var(--sans); color: var(--ink-muted); }

/* -- step 3, details ------------------------------------------------------ */

/* Two columns, two rows. The aside spans both rows; the action row sits under
 * the left column, which is where the design puts it. Making the actions a real
 * grid cell rather than a nested element is what lets them move to the very
 * bottom on mobile, after the member list, without duplicating the markup. */
.wiz__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  grid-template-rows: 1fr auto;
}
.wiz__split--wide { grid-template-columns: minmax(0, 1fr) 344px; }
.wiz__main { grid-column: 1; grid-row: 1; }
.wiz__aside { grid-column: 2; grid-row: 1 / span 2; }
.wiz__actions { grid-column: 1; grid-row: 2; }

.wiz__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 32px 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.wiz__actions-right { display: flex; align-items: center; gap: 18px; }
.wiz__main { padding: 36px 32px 24px; }
.wiz__main h2 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; }
.wiz__aside {
  background: var(--band);
  border-left: 1px solid var(--rule);
  padding: 28px 24px;
}
.aside__title {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .12em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.qlabel {
  font: 600 11px/1.4 var(--mono);
  letter-spacing: .11em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.qhelp { font: 400 12.5px/1.5 var(--sans); color: var(--ink-muted); margin: 0 0 12px; }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; }
.choice {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--gold-rule); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
/* These are spans inside a <label> so the whole card is clickable, which means
 * they need explicit block display to stack. */
.choice__t { display: block; font: 600 15px/1.3 var(--sans); color: var(--ink); margin-bottom: 5px; }
.choice__d { display: block; font: 400 12.5px/1.5 var(--sans); color: var(--ink-muted); }
.choice__alias { display: block; font: 400 11.5px/1.4 var(--sans); color: var(--ink-faint); margin-top: 8px; }
.choice:has(input:checked) {
  background: var(--gold-pale);
  border-color: var(--gold);
  border-width: 1.5px;
  padding: 15.5px 17.5px;
}
.choice:has(input:checked) .choice__d { color: var(--ink-3); }
.choice:has(input:checked) .choice__alias { color: var(--ink-muted); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  position: relative;
  font: 500 13.5px/1 var(--sans);
  color: var(--ink-2);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--gold-rule); }
.chip:has(input:checked) {
  background: var(--gold-pale);
  border-color: var(--gold);
  border-width: 1.5px;
  padding: 11.5px 17.5px;
  font-weight: 600;
  color: var(--ink);
}
.chip:has(input:focus-visible) { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

.summary {
  display: flex; flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.summary__row { padding: 12px 14px; }
.summary__row + .summary__row { border-top: 1px solid var(--rule-soft); }
.summary__row--split { display: flex; justify-content: space-between; gap: 10px; }
.summary__k { font: 400 11.5px/1.4 var(--sans); color: var(--ink-muted); }
.summary__v { font: 600 13px/1.4 var(--sans); color: var(--ink); }
.summary__v--block { font-weight: 500; margin-top: 3px; }

.minimap {
  position: relative;
  height: 130px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--rule-map);
  background: var(--canvas);
  margin-bottom: 16px;
}
.minimap svg, .minimap img { position: absolute; inset: 0; width: 100%; height: 100%; }
.minimap img { object-fit: cover; display: block; }

/* -- step 4, contact ------------------------------------------------------ */

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }

.consent {
  display: flex; gap: 11px;
  margin-top: 20px;
  padding: 14px;
  background: var(--band);
  border-radius: var(--radius);
  cursor: pointer;
}
.consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--gold); }
.consent > span { display: block; font: 400 12.5px/1.6 var(--sans); color: var(--ink-2); }

.countpick { display: flex; gap: 6px; margin-bottom: 16px; }
.countpick label {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 11px 0;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font: 600 14px/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
}
.countpick label:last-child { flex: 1.6; font-size: 12.5px; }
.countpick input { position: absolute; opacity: 0; pointer-events: none; }
.countpick label:has(input:checked) {
  background: var(--gold);
  border-color: var(--gold);
  border-width: 1.5px;
  color: #fff;
  padding: 10px 0;
}
.countpick label:has(input:focus-visible) { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

.modepick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mode {
  position: relative;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 13px;
  cursor: pointer;
}
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode__radio {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-map);
  margin-top: 1px;
}
.mode:has(input:checked) {
  background: var(--gold-pale);
  border-color: var(--gold);
  border-width: 1.5px;
  padding: 11.5px 12.5px;
}
.mode:has(input:checked) .mode__radio {
  background: var(--gold);
  border: 4px solid var(--gold-pale);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.mode:has(input:focus-visible) { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.mode > span:last-child { display: block; min-width: 0; }
.mode__t { display: block; font: 600 13px/1.3 var(--sans); color: var(--ink); }
.mode__d { display: block; font: 400 11.5px/1.5 var(--sans); color: var(--ink-muted); margin-top: 3px; }
.mode:has(input:checked) .mode__d { color: var(--ink-3); }

.picklist { display: flex; flex-direction: column; gap: 8px; }
.pick {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 13px;
  display: flex; gap: 11px;
  cursor: pointer;
}
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__box {
  flex: none;
  width: 17px; height: 17px;
  border-radius: 3px;
  border: 1.5px solid var(--rule-map);
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.pick__box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.pick:has(input:checked) { border-color: var(--gold); border-width: 1.5px; padding: 11.5px 12.5px; }
.pick:has(input:checked) .pick__box { background: var(--gold); border-color: var(--gold); }
.pick:has(input:checked) .pick__box::after { opacity: 1; }
.pick:has(input:focus-visible) { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.pick:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pick__body { display: block; flex: 1; min-width: 0; }
.pick__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pick__name { display: block; font: 600 13.5px/1.3 var(--sans); color: var(--ink); }
.pick__meta { display: block; font: 400 12px/1.65 var(--sans); color: var(--ink-2); margin-top: 5px; }
.pick__meta a { color: var(--gold-dark); }

.tier {
  flex: none;
  font: 600 9px/1 var(--mono);
  letter-spacing: .06em;
  padding: 3px 5px;
  border-radius: 2px;
  text-transform: uppercase;
}
.tier--contractor { color: var(--gold-dark); background: var(--gold-pale); }
.tier--associate { color: var(--ink-3); background: #e4dcc9; }

.picklist__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 9px;
}
.picklist__count { font: 600 11px/1 var(--sans); color: var(--gold-dark); }
.aside__foot {
  font: 400 11.5px/1.6 var(--sans);
  color: var(--ink-muted);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* ---------------------------------------------------------- confirmation -- */

.done { padding: 56px 32px 64px; max-width: 720px; margin: 0 auto; }
.done h2 { font: 600 32px/1.15 var(--serif); margin: 0 0 8px; }
.done__ref {
  display: inline-block;
  font: 600 13px/1 var(--mono);
  color: var(--ink);
  background: var(--gold-pale);
  border: 1px solid var(--gold-rule);
  padding: 8px 11px;
  border-radius: 3px;
  margin: 4px 0 24px;
}
.done__sent { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; }
.sent-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sent-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sent-card__name { font: 600 16px/1.3 var(--serif); color: var(--ink); }
.sent-card__meta { font: 400 13.5px/1.8 var(--sans); color: var(--ink-2); margin-top: 6px; }
.sent-card__meta a { color: var(--gold-dark); }

/* The confirmation is the one screen a customer keeps, and keeping it usually means
 * printing it or saving a PDF. Everything below exists because a screen layout is
 * the wrong shape for paper: a viewport-height container, a column measured in
 * browser pixels, pale text that prints grey, and links whose address is on paper
 * nowhere at all. */
@page { margin: 16mm; }

@media print {
  .site-header, .wiz__bar, .wiz__foot, .site-footer, .no-print { display: none !important; }

  html, body { background: #fff; margin: 0; padding: 0; }
  body { color: #000; font-size: 11pt; }

  /* min-height: 100vh means one screenful of blank paper; the max-widths are sized
   * for a browser window, not for the page box @page has already set. */
  .wiz { max-width: none; min-height: 0; margin: 0; background: #fff; }
  .done { max-width: none; margin: 0; padding: 0; }
  .done .summary { max-width: none !important; }

  /* Pale on cream is deliberate on screen and unreadable on paper. */
  .lede, .fine, .summary__k, .sent-card__meta, .eyebrow { color: #333; }

  /* A contractor split across a page break is a contractor you cannot phone. */
  .sent-card, .summary, .done__ref { break-inside: avoid; page-break-inside: avoid; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }

  .sent-card { border: 1px solid #999; background: #fff; }

  /* Long estimating@ addresses ran off the edge of the card and off the paper. */
  .sent-card__meta, .sent-card__meta a { overflow-wrap: anywhere; word-break: break-word; }

  /* A printed link is worth nothing without its address. tel: and mailto: already
   * show the number or the address as their own text, so only web links need it. */
  a { color: #000; text-decoration: none; }
  .sent-card__meta a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    overflow-wrap: anywhere;
  }
}

/* =============================================================== mobile == */

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .site-nav { gap: 16px; }
  .site-nav a:not(.btn) { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero__body { padding: 26px var(--gutter) 30px; order: 2; }
  .hero h1 { font-size: 33px; line-height: 1.08; margin-top: 12px; }
  .hero__lede { font-size: 14.5px; }
  /* A phone is too narrow for the full 3.6:1 frame to have any height, so give it
   * 16:9 and let cover take the sides. The photo leads on a phone, hence order. */
  .hero__art { order: 1; aspect-ratio: 16 / 9; max-height: none; }

  .addressbar { flex-direction: column; max-width: none; margin-top: 22px; }
  .addressbar .input, .addressbar .btn { height: 52px; width: 100%; }

  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats__item:nth-child(4) { display: none; }
  .stats__item { padding: 18px 14px; text-align: center; }
  .stats__n { font-size: 21px; }
  .stats__label { font-size: 10.5px; }

  .section, .section--band { padding: 26px var(--gutter) 40px; }
  .section h2 { font-size: 22px; }
  .cards, .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps__item, .steps__item + .steps__item { padding: 0 0 18px; }

  .feature { grid-template-columns: 1fr; }
  .feature__body { padding: 30px var(--gutter); }
  .feature__body h2 { font-size: 24px; }

  .cta { flex-direction: column; align-items: stretch; gap: 16px; padding: 30px var(--gutter); }
  .cta .btn { width: 100%; }

  .site-footer { grid-template-columns: 1fr 1fr; gap: 24px; padding: 30px var(--gutter); }
  /* Half a phone's width minus the gutter leaves no room for a badge and a
   * paragraph side by side, so stack them. */
  .operator { flex-direction: column; gap: 10px; }

  /* -- wizard on a phone -- */
  .wiz__bar { padding: 10px 18px 14px; gap: 12px; }
  .wiz__brand { display: none; }
  .progress { display: none; }
  .progress-bars { display: flex; }
  .wiz__back-m { font: 500 14px/1 var(--sans); color: var(--gold-dark); background: none; border: none; cursor: pointer; }

  .wiz__center { padding: 26px var(--gutter) 24px; }
  .wiz h2 { font-size: 27px; }

  /* One column, and the action bar goes last so the sticky Send button sits
   * below the member list rather than covering it, matching the mobile design. */
  .wiz__split, .wiz__split--wide { grid-template-columns: 1fr; grid-template-rows: none; }
  .wiz__main { grid-column: 1; grid-row: auto; padding: 24px var(--gutter); }
  .wiz__aside {
    grid-column: 1; grid-row: auto;
    border-left: none;
    border-top: 1px solid var(--rule);
    padding: 24px var(--gutter);
  }
  .wiz__actions {
    grid-column: 1; grid-row: auto;
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin: 0;
    padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--rule);
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .wiz__actions .btn--gold { width: 100%; height: 54px; font-size: 16px; }
  .wiz__actions-right { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .wiz__actions .wiz__reassure { text-align: center; }

  .choices { grid-template-columns: 1fr; gap: 9px; }
  .grid2 { grid-template-columns: 1fr; }

  /* The sketch step becomes a bottom sheet so the map stays thumb reachable. */
  .sketch__head { display: none; }
  .mapwrap { height: calc(100vh - 62px); border: none; }
  .tools { top: 14px; left: 14px; gap: 5px; padding: 5px; }
  /* Draw and Move corner shrink to their icon; Undo and Clear keep their word and
   * drop the icon instead, which is the rule two lines below.
   *
   * The icons are spans as well as the labels, so hiding every span inside .tool
   * hid those too and left Draw and Move corner as two blank squares: a gold one
   * and a white one, with nothing in either. Only the label is hidden now. */
  .tool { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .tool > span:not(.tool__ico) { display: none; }
  .tool--labelled > span:not(.tool__ico) {
    display: block;
    font-size: 11px;
  }
  .tool--labelled .tool__ico { display: none; }
  /* 12px reads as a speck at arm's length in a 46px target. */
  .tool__ico--draw, .tool__ico--move { width: 16px; height: 16px; }

  .readout {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    width: auto;
    border: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(31, 26, 21, .25);
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    z-index: 5;
  }
  .readout::before {
    content: "";
    display: block;
    width: 38px; height: 4px;
    border-radius: 2px;
    background: var(--rule);
    margin: 0 auto 16px;
  }
  .readout__main { padding: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .readout__n { font-size: 38px; margin: 8px 0 3px; }
  .readout__county-m { text-align: right; }
  .readout__row { display: none; }
  .readout__sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
  /* The sheet takes over as the step's action bar, so the footer below the map
   * would be a second, unreachable copy of the same two controls. */
  [data-panel="2"] .wiz__foot { display: none; }
  .readout__continue {
    display: block;
    flex: 1;
    height: 52px;
    font-size: 15px;
  }
  .readout__add {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper-raised);
    text-decoration: none;
    text-align: center;
    flex: none;
    width: auto;
    padding: 0 18px;
    height: 52px;
    line-height: 52px;
    font-weight: 600;
    font-size: 14px;
  }
  /* Beside the toolbar rather than across it. At top 74 and full width the hint
   * was laid straight over the drawing tools, hiding the controls it describes.
   * The tools column is 14 + 5 + 46 + 5 wide, so 76 clears it. */
  .map-hint { bottom: auto; top: 14px; left: 76px; right: 14px; transform: none; }

  .wiz__foot {
    position: sticky; bottom: 0;
    padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wiz__foot .btn--gold { width: 100%; height: 54px; font-size: 16px; }
  .wiz__foot-right { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .wiz__back-d { display: none; }
  .wiz__reassure { text-align: center; }
}

@media (max-width: 380px) {
  .countpick { flex-wrap: wrap; }
  .countpick label { flex: 0 0 calc(33.333% - 4px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================= directory == */

.dir-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.dir-filters .field { min-width: 200px; }
.dir-filters .input { cursor: pointer; }

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dir-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 20px 22px 18px;
}
.dir-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.dir-card__name { font: 600 18px/1.25 var(--serif); }
.dir-card__note {
  font: 400 11.5px/1.5 var(--sans);
  color: var(--ink-faint);
  margin-top: 6px;
}
.dir-card__contact { font: 400 13.5px/1.8 var(--sans); color: var(--ink-2); margin-top: 10px; }
.dir-card__contact a { color: var(--gold-dark); }

.dir-card__work { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dir-card__work span {
  font: 500 11px/1 var(--sans);
  color: var(--ink-3);
  background: var(--band);
  border-radius: 999px;
  padding: 6px 10px;
}

.dir-card__counties { margin-top: 12px; }
.dir-card__counties summary {
  font: 500 12.5px/1.4 var(--sans);
  color: var(--gold-dark);
  cursor: pointer;
}
.dir-card__counties p {
  font: 400 12.5px/1.6 var(--sans);
  color: var(--ink-muted);
  margin-top: 8px;
}

/* ============================================================== prose ===== */

.prose { max-width: 660px; }
.prose h3 { font: 600 20px/1.3 var(--serif); margin: 32px 0 8px; }
.prose p, .prose li { font: 400 15px/1.7 var(--sans); color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--gold-dark); }
.prose__updated { font: 400 12.5px/1.5 var(--sans); color: var(--ink-faint); margin-top: 6px; }

@media (max-width: 900px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-filters .field { min-width: 0; flex: 1 1 140px; }
}
