:root {
  --concrete: #e9ebe8;
  --paper: #ffffff;
  --ink: #1c2733;
  --slate: #5b6773;
  --rule: #c9cdc8;
  --placard: #f2c230;
  --placard-ink: #2b2208;
  --stamp: #b3261e;
  --focus: #1f5fbf;
  --ok: #1f6b3a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --concrete: #151b22;
    --paper: #1e2630;
    --ink: #e8ebe7;
    --slate: #a3adb7;
    --rule: #36414d;
    --stamp: #e3675f;
    --focus: #7fb0ff;
    --ok: #6fd193;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --concrete: #151b22; --paper: #1e2630; --ink: #e8ebe7; --slate: #a3adb7;
  --rule: #36414d; --stamp: #e3675f; --focus: #7fb0ff; --ok: #6fd193; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 68ch; }

/* type scale ~1.25 */
h1, h2, h3 { line-height: 1.08; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-variation-settings: "wdth" 70; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-variation-settings: "wdth" 75; }
h3 { font-size: 1.2rem; font-variation-settings: "wdth" 90; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 38ch; }
.muted { color: var(--slate); }
.small { font-size: 0.9rem; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.brand { font-weight: 800; font-variation-settings: "wdth" 80; font-size: 1.1rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 32px; background: var(--placard); border-radius: 3px; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 5px; right: 5px; top: 8px; height: 2px; background: var(--placard-ink); box-shadow: 0 6px 0 var(--placard-ink), 0 12px 0 var(--placard-ink); }
.brand small { font-weight: 500; color: var(--slate); font-variation-settings: "wdth" 100; }

/* hero */
.hero { display: grid; gap: 40px; padding: 28px 0 64px; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding: 48px 0 88px; } }

/* the permit placard: the one loud thing */
.placard {
  background: var(--placard);
  color: var(--placard-ink);
  border-radius: 6px;
  padding: 22px 22px 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 18px 40px -18px rgba(43,34,8,.55);
  transform: rotate(-1.2deg);
  position: relative;
  max-width: 440px;
  justify-self: center;
  width: 100%;
}
.placard::before, .placard::after {
  content: ""; position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--concrete); box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
.placard::before { left: 12px; } .placard::after { right: 12px; }
.placard-title { font-weight: 800; font-size: 1.6rem; font-variation-settings: "wdth" 62; text-align: center; margin: 4px 0 14px; line-height: 1; }
.placard dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.98rem; }
.placard dt { font-weight: 500; opacity: 0.75; }
.placard dd { margin: 0; font-weight: 700; border-bottom: 1.5px solid rgba(43,34,8,.35); padding-bottom: 2px; }
.placard .why { margin: 16px 0 0; font-size: 0.95rem; line-height: 1.4; }
.placard .why b { font-weight: 800; }
.stamp {
  position: absolute; right: 30px; top: 14px; transform: rotate(-10deg);
  border: 3px solid var(--stamp); color: var(--stamp); background: transparent;
  font-weight: 800; font-variation-settings: "wdth" 70; padding: 2px 10px; border-radius: 4px; font-size: 1.15rem;
  opacity: 0.85; pointer-events: none;
}
.placard-foot { margin-top: 14px; font-size: 0.8rem; opacity: 0.7; display: flex; justify-content: space-between; gap: 8px; }
.placard-nav { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.placard-nav button { background: transparent; border: 1.5px solid var(--rule); color: var(--ink); border-radius: 4px; padding: 6px 12px; font: inherit; font-size: 0.9rem; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .placard.land { animation: land 0.55s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes land { from { transform: translateY(-14px) rotate(-5deg); opacity: 0; } to { transform: rotate(-1.2deg); opacity: 1; } }
}

/* buttons & forms */
.btn {
  display: inline-block; background: var(--ink); color: var(--concrete); border: 0; border-radius: 4px;
  padding: 14px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { filter: brightness(1.15); }
.btn.secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

section { padding: 56px 0; border-top: 1px solid var(--rule); }

/* how it works: a real sequence */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; padding-left: 52px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800;
}

/* trade table */
.trades { width: 100%; border-collapse: collapse; margin-top: 20px; }
.trades th, .trades td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.trades th { font-weight: 700; width: 30%; }
.trades td { color: var(--slate); }
.trades .n { white-space: nowrap; color: var(--ink); font-weight: 700; text-align: right; padding-right: 0; }

/* pricing */
.price { display: grid; gap: 28px; }
@media (min-width: 820px) { .price { grid-template-columns: 1fr 1fr; align-items: start; } }
.price-big { font-size: 3.2rem; font-weight: 800; font-variation-settings: "wdth" 65; line-height: 1; }
.terms { list-style: none; padding: 0; margin: 18px 0 0; }
.terms li { padding: 10px 0; border-bottom: 1px solid var(--rule); }

/* signup */
.form { background: var(--paper); border-radius: 6px; padding: 24px 20px; border-left: 6px solid var(--placard); }
.field { margin-bottom: 18px; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; padding: 12px; font: inherit; border: 1.5px solid var(--rule); border-radius: 4px;
  background: var(--concrete); color: var(--ink);
}
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.check { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1.5px solid var(--rule); border-radius: 4px; cursor: pointer; }
.check:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--placard) 22%, transparent); }
.check input { margin-top: 4px; accent-color: var(--ink); }
.zipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 10px; }
.zipgrid .check { padding: 6px 8px; font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 4px; margin-top: 14px; background: var(--concrete); border-left: 4px solid var(--ok); }
.notice.err { border-left-color: var(--stamp); }
.two { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }

/* dashboard */
.leads { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.lead { background: var(--paper); border-left: 6px solid var(--placard); border-radius: 4px; padding: 14px 16px; }
.lead h3 { margin: 2px 0 4px; }
.lead .meta { color: var(--slate); font-size: 0.92rem; }
.lead .why { margin: 8px 0 0; font-size: 0.95rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

footer { padding: 36px 0 48px; color: var(--slate); font-size: 0.9rem; border-top: 1px solid var(--rule); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top .btn { white-space: nowrap; padding: 10px 14px; }
.placard-title { text-align: left; padding-left: 14px; }

/* trade list: name + count on one line, permit kinds underneath */
.tradelist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0 32px; }
@media (min-width: 760px) { .tradelist { grid-template-columns: 1fr 1fr; } }
.tradelist li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.trow { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.trow .n { white-space: nowrap; }
.tradelist .src { font-size: 0.9rem; color: var(--slate); margin-top: 2px; }

.tgroup { margin-bottom: 14px; }
.tgroup-name { font-size: 0.9rem; color: var(--slate); margin-bottom: 6px; }
.checks { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
