/*
  BuildPing
  The look comes from street signs and city maps. Guide-sign green with a white
  inset line, map symbols in road-sign colours, and Overpass, which is drawn
  from highway lettering, because what we send people is addresses.
*/

/* Overpass, SIL Open Font License 1.1 (assets/fonts/OFL.txt). Served from our own site: no third-party font requests. */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/overpass-latin-wght-normal.woff2') format('woff2');
}

:root {
  --paper: #fff;
  --plate: #eef2ef;
  --ink: #000;
  --ink-2: #3a423f;
  --muted: #5e6763;
  --rule: #c9d1cc;
  --sign: #00664a;
  --sign-dark: #004d38;
  --yellow: #ffd400;
  --orange: #ff8a00;
  --red: #e5352b;
  --blue: #2f7de1;
  --purple: #8a4fd3;
  --brown: #7a4a21;
  --pink: #f2609e;
  --font: 'Overpass', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--sign);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The only rule that sets vertical space between sections. */
.band {
  padding-block: clamp(56px, 8vw, 112px);
}

.band--plate {
  background: var(--plate);
}

.band--tight {
  padding-block: clamp(36px, 5vw, 64px);
}

/* -------------------------------------------------------------------- type */

.h1,
.h2,
.h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 1;
}

.h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
}

.h3 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lede {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}

.prose {
  max-width: 38em;
}

.prose p {
  margin: 0 0 1em;
}

.prose h2 {
  margin: 1.8em 0 0.5em;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

.small {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ header */

.top {
  border-bottom: 2px solid var(--ink);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.logo {
  position: relative;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* The dot on the i is the ping: a map symbol, yellow with a black ring. */
.logo__i {
  position: relative;
  display: inline-block;
}

.logo__i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.06em;
  width: 0.34em;
  height: 0.34em;
  transform: translateX(-50%);
  background: var(--yellow);
  border: 0.07em solid var(--ink);
  border-radius: 50%;
}

.logo--onsign {
  color: #fff;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

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

/* A street-name blade: green, white lettering, a white line set in from the edge. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.6em 1.3em;
  border: 0;
  border-radius: 11px;
  background: var(--sign);
  box-shadow:
    inset 0 0 0 3px var(--sign),
    inset 0 0 0 5px #fff;
  color: #fff;
  font: 800 17px/1.15 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--sign-dark);
  box-shadow:
    inset 0 0 0 3px var(--sign-dark),
    inset 0 0 0 5px #fff;
}

.btn--small {
  min-height: 44px;
  font-size: 16px;
  padding-inline: 1.1em;
}

/* On a green sign the button turns into a white regulatory sign. */
.btn--white {
  background: #fff;
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 0 0 5px var(--ink);
  color: var(--ink);
}

.btn--white:hover {
  background: var(--yellow);
  box-shadow:
    inset 0 0 0 3px var(--yellow),
    inset 0 0 0 5px var(--ink);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* -------------------------------------------------------------- sign panel */

.sign {
  background: var(--sign);
  color: #fff;
  border-radius: 22px;
  padding: clamp(26px, 3vw, 38px);
  box-shadow:
    inset 0 0 0 5px var(--sign),
    inset 0 0 0 8px #fff;
}

.sign--white {
  background: #fff;
  color: var(--ink);
  box-shadow:
    inset 0 0 0 5px #fff,
    inset 0 0 0 8px var(--ink);
}

.sign__title {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.012em;
}

.sign a:not(.btn) {
  color: inherit;
}

/* ------------------------------------------------------------------- forms */

.fields {
  display: grid;
  gap: 14px;
}

.fields--2 {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.field__input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.55em 0.75em;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 600 17px/1.2 var(--font);
}

select.field__input {
  appearance: none;
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  background-size: 12px 8px;
}

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.4;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

/* Bots fill every field. People never see this one. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 4px;
}

.signup__fine {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.signup__status {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.signup__status:empty {
  display: none;
}

.signup__status {
  padding: 12px 14px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.signup__status[data-kind='error'] {
  background: var(--yellow);
}

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

.hero {
  padding-block: clamp(30px, 3.6vw, 52px) clamp(48px, 7vw, 96px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.hero__title {
  max-width: 15.5em;
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.hero__copy .lede {
  margin-top: 0;
}

.hero__copy .sign {
  margin-top: 28px;
}

/* --------------------------------------------------------------- map plate */

.plate {
  margin: 0;
}

.plate__map {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--plate);
  aspect-ratio: 10 / 9;
}

.plate__map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.plate .grat {
  stroke: #fff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* Sizes for map text are set in map units by the script, so they stay the same on screen at any width. */
.plate .grat-label {
  fill: var(--muted);
  font-family: var(--font);
  font-weight: 600;
}

.plate .place {
  fill: var(--ink-2);
  font-family: var(--font);
  font-weight: 800;
  paint-order: stroke;
  stroke: var(--plate);
  stroke-linejoin: round;
}

.plate .d {
  stroke: var(--ink);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}

.d--n {
  fill: var(--yellow);
}

.d--h {
  fill: var(--orange);
}

.d--c {
  fill: var(--red);
}

.d--o {
  fill: #fff;
}

@keyframes ping-in {
  from {
    opacity: 0;
    transform: scale(3.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.plate--play .d {
  animation: ping-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--k, 0) * 115ms);
}

.plate__clock {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 5px 10px 3px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 10px 14px 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 3px;
}

.legend span.num {
  margin-left: auto;
  padding-left: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.dot {
  flex: none;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}

.plate__cap {
  margin-top: 12px;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.plate__cap strong {
  color: var(--ink);
}

.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* -------------------------------------------------------- the real morning */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}

.demo__side {
  position: sticky;
  top: 20px;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
}

.seg button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink);
  font: 800 16px/1 var(--font);
  cursor: pointer;
}

.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

.trades {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.trade {
  display: block;
  width: 100%;
  padding: 13px 14px 11px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.trade__name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.trade__why {
  display: none;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.45;
}

.trade:hover {
  background: #fff;
}

.trade[aria-pressed='true'] {
  background: var(--sign);
  color: #fff;
  border-bottom-color: var(--sign);
}

.trade[aria-pressed='true'] .trade__why {
  display: block;
}

.trade-select {
  display: none;
}

.register {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
}

.register__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 16px 22px 14px;
  border-bottom: 2px solid var(--ink);
}

.register__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.register__count {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.register__foot {
  margin: 0;
  padding: 14px 22px 16px;
  border-top: 2px solid var(--ink);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.leads {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 20px;
  padding: 16px 22px 15px;
}

.lead + .lead {
  border-top: 1px solid var(--rule);
}

.lead__type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.lead__value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lead__addr {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.lead__area {
  font-weight: 500;
  color: var(--ink-2);
}

.lead__desc {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
}

.lead__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 26px;
  margin: 8px 0 0;
}

.lead__meta div {
  display: flex;
  gap: 7px;
  align-items: baseline;
}

.lead__meta dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.lead__meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.empty {
  margin: 0;
  padding: 28px 22px;
  font-size: 17px;
  color: var(--ink-2);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  padding-top: 3px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.step p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------- table */

.tablewrap {
  margin-top: clamp(24px, 3vw, 40px);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.3;
}

.table th,
.table td {
  padding: 13px 16px 11px 0;
  text-align: left;
  vertical-align: baseline;
}

.table thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.table tbody th {
  font-weight: 800;
  white-space: nowrap;
}

.table tbody tr + tr th,
.table tbody tr + tr td {
  border-top: 1px solid var(--rule);
}

.table .r {
  text-align: right;
  padding-right: 0;
  font-variant-numeric: tabular-nums;
}

.table .prov {
  font-weight: 500;
  color: var(--muted);
}

/* Bars share a left edge, so the eye can compare them. */
.barbox {
  display: inline-block;
  width: 124px;
  margin-right: 12px;
  text-align: left;
}

.bar {
  display: inline-block;
  height: 10px;
  border-radius: 2px;
  background: var(--sign);
  vertical-align: 1px;
}

.table .count {
  display: inline-block;
  min-width: 3.2em;
}

.notyet {
  margin: 28px 0 0;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 920px;
}

.plan__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.plan__price {
  margin: 10px 0 0;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan__per {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.plan__list {
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
  font-size: 17px;
  line-height: 1.4;
}

.plan__list li {
  padding-block: 9px 7px;
  border-top: 1px solid currentColor;
}

.plan__list li:last-child {
  border-bottom: 1px solid currentColor;
}

.plans__note {
  margin: 22px 0 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- questions */

.qa {
  max-width: 820px;
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 2px solid var(--ink);
}

.q {
  border-bottom: 1px solid var(--rule);
}

.q summary {
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 16px;
  align-items: center;
  padding: 18px 2px 15px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.q summary::-webkit-details-marker {
  display: none;
}

.q summary::after {
  content: '';
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 100% no-repeat;
}

.q[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 3px no-repeat;
}

.q p {
  margin: 0 0 20px;
  max-width: 40em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- last call */

.close {
  background: var(--sign);
  color: #fff;
  padding-block: clamp(48px, 7vw, 96px);
}

.close__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.close .h2 {
  max-width: 15em;
}

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

.foot {
  padding-block: 44px 56px;
  border-top: 2px solid var(--ink);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 28px clamp(24px, 4vw, 56px);
}

.foot p {
  margin: 12px 0 0;
  max-width: 36em;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li {
  padding-block: 3px;
}

.foot a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

/* --------------------------------------------- pages rendered by the Worker */

.crumbs {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.statline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.statline li {
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-2);
}

.statline strong {
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 3px 14px 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.chip:hover {
  background: var(--yellow);
}

.chip[aria-current='page'] {
  background: var(--ink);
  color: #fff;
}

.citylist {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  columns: 3 220px;
  column-gap: 40px;
}

.citylist li {
  break-inside: avoid;
  padding-block: 7px 5px;
  border-bottom: 1px solid var(--rule);
  font-size: 18px;
  font-weight: 800;
}

.citylist a {
  text-decoration: none;
}

.citylist a:hover {
  text-decoration: underline;
}

.citylist span {
  font-weight: 500;
  color: var(--muted);
}

.note {
  margin: 0 0 24px;
  padding: 14px 18px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.sample {
  max-width: 700px;
  margin: 28px auto 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  border: 0;
}

.checks legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 800;
}

.checks .check {
  font-size: 16px;
  font-weight: 700;
}

.narrow {
  max-width: 40em;
}

.narrow .lede {
  max-width: none;
}

.stack > * {
  margin-block: 0;
}

.stack > * + * {
  margin-top: 24px;
}

.admin {
  font-size: 15px;
}

.admin .table {
  font-size: 15px;
}

.admin .table th,
.admin .table td {
  padding: 8px 14px 6px 0;
}

.ok {
  color: var(--sign);
  font-weight: 800;
}

.bad {
  color: var(--red);
  font-weight: 800;
}

/* -------------------------------------------------------------- small screens */

@media (max-width: 940px) {
  .hero__grid,
  .demo,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }

  .demo__side {
    position: static;
  }

  .top__in {
    justify-content: space-between;
  }

  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The trade list becomes one select so the permits stay on screen. */
  .trades {
    display: none;
  }

  .trade-select {
    display: block;
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .plans,
  .fields--2,
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead {
    padding-inline: 16px;
  }

  .register__head,
  .register__foot {
    padding-inline: 16px;
  }

  .lead__addr {
    font-size: 19px;
  }

  .legend {
    font-size: 12px;
    padding: 7px 10px 5px;
  }

  .plan__price {
    font-size: 54px;
  }

  /* On a phone the table drops the two yes/no columns; the city pages carry them. */
  .table .opt,
  .barbox {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plate--play .d {
    animation: none;
  }
}

@media print {
  .top,
  .foot,
  .close,
  .sign {
    display: none;
  }
}
