:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1d2a24;
  --muted: #55625b;
  --line: #dcd8cd;
  --accent: #2f6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e4efe8;
  --warn-soft: #fbf3df;
  --radius: 10px;
  --max: 980px;
  font-size: 17px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .2px; }
.brand span { color: var(--accent); }
nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { font-weight: 600; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card p.links { display: flex; flex-direction: column; gap: 4px; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
h2 { font-size: 1.45rem; margin: 0 0 12px; letter-spacing: -.2px; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
.hero { padding: 56px 0 36px; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 0 22px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 0;
  font-size: 1rem; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.small { font-size: .9rem; color: var(--muted); }
section { padding: 34px 0; }
section + section { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { margin: 0; color: var(--muted); }
.note { background: var(--warn-soft); border: 1px solid #ecdcae; border-radius: var(--radius); padding: 14px 16px; }
.note p { margin: 0; }
table.rules { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.rules th, table.rules td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rules th { background: var(--accent-soft); font-size: .92rem; }
table.rules tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.price { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price .card .amt { font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.price .card .was { text-decoration: line-through; color: var(--muted); margin-left: 6px; }
form.waitlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; max-width: 620px; }
form.waitlist label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
form.waitlist input, form.waitlist select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
form.waitlist .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
form.waitlist .check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .92rem; }
footer.site p { margin: 4px 0; }
@media (max-width: 560px) {
  header.site .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  nav a { margin-left: 0; }
  .hero { padding: 36px 0 24px; }
}

/* ---- Tools, demo and printables ---- */
.crumbs { font-size: .9rem; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.disclaimer { background: var(--warn-soft); border: 1px solid #ecdcae; border-radius: var(--radius); padding: 12px 14px; font-size: .95rem; }
.permit-quote { background: var(--surface); border-left: 4px solid var(--accent); padding: 12px 14px; font-size: .95rem; color: var(--ink); margin: 0; }
.calc { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.calc label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.calc input[type=date], .calc input[type=time], .calc input[type=number] { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.calc .checks { display: grid; gap: 8px; font-weight: 400; }
.result { margin-top: 16px; background: var(--accent-soft); border: 1px solid #c4dccd; border-radius: var(--radius); padding: 16px; }
.result .due { font-size: 1.4rem; font-weight: 700; }
.result ol { margin: 8px 0 0 18px; padding: 0; }
.proto-banner { background: #1d2a24; color: #fff; text-align: center; padding: 8px 12px; font-weight: 600; font-size: .92rem; }
.proto-banner span { color: #f3c969; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tabs a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: .95rem; }
.tabs a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.phone { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.phone h3 { margin-top: 4px; }
.site-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.site-row:last-child { border-bottom: 0; }
.pill { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; align-self: flex-start; }
.pill.red { background: #f7dcd7; color: #8a2a1d; } .pill.amber { background: #fbecc7; color: #7a5a06; } .pill.green { background: #dcefe3; color: #23573e; }
.alert-card { border: 2px solid #c9634f; border-radius: 14px; padding: 14px; background: #fff8f6; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.check-row input { margin-top: 4px; transform: scale(1.2); }
.btn.secondary { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.print-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.print-sheet table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.print-sheet th, .print-sheet td { border: 1px solid #bdb8ab; padding: 7px 6px; text-align: left; vertical-align: top; }
.print-sheet th { background: #f2efe8; }
.print-sheet .blank td { height: 30px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; margin-bottom: 12px; font-size: .95rem; }
.fields div { border-bottom: 1px solid #bdb8ab; padding: 6px 0 2px; }
@media print {
  @page { size: Letter; margin: .5in; }
  body { background: #fff; font-size: 10.5pt; }
  header.site, footer.site, .no-print, .crumbs, .tabs { display: none !important; }
  .print-sheet { border: 0; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  section { padding: 0; border: 0 !important; }
  a { color: inherit; text-decoration: none; }
}

/* Free tools index */
.tools-section { padding-top: 32px; }
.tool-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .tool-grid.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tool-card:hover, .tool-card:focus-visible { border-color: var(--accent); box-shadow: 0 6px 18px rgba(29,42,36,.08); transform: translateY(-2px); }
.tool-icon { grid-row: 1 / span 4; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.tool-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tool-title { font-weight: 700; font-size: 1.1rem; margin: 2px 0 6px; }
.tool-desc { color: var(--muted); font-size: .95rem; }
.tool-cta { margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--accent); }
.tool-card:hover .tool-cta { text-decoration: underline; }
.tool-card.static:hover { border-color: var(--line); box-shadow: none; transform: none; }
.tool-grid.three .tool-card { display: flex; flex-direction: column; align-items: flex-start; }
.tool-grid.three .tool-cta { margin-top: auto; padding-top: 14px; }
.tool-grid.three .tool-icon { grid-row: auto; margin-bottom: 12px; }
.tool-price { margin-top: 10px; color: var(--muted); }
.tool-price .amt { font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.tool-price .was { text-decoration: line-through; color: var(--muted); margin: 0 6px; }
.cta-band { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--muted); max-width: 560px; }
.cta-band .hero-actions { margin: 0; }
