/* PDF Census: calm, plain, civic. One deep-teal accent on a soft green-grey ground.
   Layout: a single reading column for prose, wider grids only for cards and the sample readout. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --ink: #1b2a2f;
  --muted: #4a5a60;
  --line: #d6dfdc;
  --accent: #1f5f58;
  --accent-hover: #164943;
  --accent-soft: #e2efeb;
  --accent-ink: #ffffff;
  --b-fix: #c7801a;
  --b-counsel: #5876a8;
  --b-archive: #a3b0ac;
  --b-pass: #2f8a6b;
  --warn-bg: #fdf6e9;
  --warn-line: #a86a12;
  --warn-ink: #3b2706;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 42, 47, .06), 0 4px 16px rgba(27, 42, 47, .05);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .4rem; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: .6rem 1rem; z-index: 30; border: 2px solid var(--accent); border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Type: one family, contrast from weight and size only. */
h1, h2, h3 { font-family: var(--font); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1.1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .9rem; }
h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 650; margin: 0 0 .5rem; }
.eyebrow { display: block; font-size: .8rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.lead { font-size: 1.18rem; color: var(--ink); max-width: 38rem; }
.fine { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
nav li + li { margin-top: 0; }
.site-header nav a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.site-header nav a.nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.site-header nav a.nav-cta:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }

/* Sections */
section { padding: 4.5rem 0; }
.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.deadline { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--radius); padding: .9rem 1rem; max-width: 38rem; font-size: 1rem; }
.deadline-icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1rem; }
.cta-row.center { justify-content: center; }

/* Sample readout card */
.readout { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1.5rem; margin: 0; }
.readout-label { font-size: .8rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.readout-big { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 .35rem; font-variant-numeric: tabular-nums; }
.readout-sub { color: var(--muted); margin: 0 0 1.2rem; }
.stackbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 0 0 1rem; }
.stackbar span { display: block; height: 100%; }
.stackbar span + span { box-shadow: inset 2px 0 0 var(--surface); }
.legend { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: 6px; font-size: .95rem; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; margin: 0; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.legend .n { font-variant-numeric: tabular-nums; color: var(--muted); }
.legend li.key { font-weight: 650; }
.legend li.key .n { color: var(--ink); }
.readout-cost { border-top: 1px solid var(--line); padding-top: 1rem; margin: 0 0 .9rem; font-size: .98rem; }
.readout-cost strong { font-variant-numeric: tabular-nums; }
.readout .fine { margin: 0; }
.b-fix { background: var(--b-fix); } .b-counsel { background: var(--b-counsel); } .b-archive { background: var(--b-archive); } .b-pass { background: var(--b-pass); } .b-unknown { background: #c9d1ce; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: .9rem; }
.steps p { margin: 0; color: var(--muted); }

/* Benefits */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.benefits article { border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.benefits article p { color: var(--muted); margin: 0; }

/* Lists */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f5f58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; padding: .8rem 1.35rem; border-radius: 999px; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; min-height: 48px; text-align: center; transition: background-color .15s ease, color .15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); text-decoration: none; }
button.btn:disabled { opacity: .6; cursor: progress; }

/* Pricing */
.prices { margin: 0 0 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card .price { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.card .per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.card p { color: var(--muted); }
.card p:last-child { margin: auto 0 0; padding-top: .5rem; }
.card .btn { width: 100%; }
.tint .card { background: var(--bg); box-shadow: none; }

/* Forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; margin: 2rem auto 0; box-shadow: var(--shadow); }
.tint .panel { background: var(--bg); box-shadow: none; }
.narrow-panel { max-width: 640px; }
.panel:focus { outline: 3px solid var(--accent); }
.stack > * + * { margin-top: 1.1rem; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: .35rem; padding: 0; }
label.radio, label.checkbox { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; padding: .35rem 0; }
label.radio input, label.checkbox input { margin-top: .35rem; width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 1.5px solid #8a9a97; border-radius: 8px; background: var(--surface); color: var(--ink); min-height: 48px; }
input[type=text]:focus, input[type=email]:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
::placeholder { color: #6b7a78; }
.hint { display: block; font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 600; margin: 0; }
.form-msg.error { color: #8a1c1c; }
.form-msg.ok { color: #0d5a2b; }
.reassure { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 1rem 0 0; font-size: .92rem; color: var(--muted); }
.reassure li { margin: 0; }
.reassure li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.1rem; margin: 0 0 .7rem; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; padding: 1rem 1.6rem 1rem 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: .85rem; font-size: 1.3rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 1.1rem; color: var(--muted); }

/* Notices */
.notice { background: var(--warn-bg); border: 1px solid #ecd6ad; border-left: 5px solid var(--warn-line); color: var(--warn-ink); padding: 1.1rem 1.3rem; border-radius: var(--radius); }
.notice h2 { font-size: 1.15rem; margin-bottom: .4rem; color: var(--warn-ink); }
.notice p { margin: 0; }
.draft-banner { background: var(--surface); border: 1px dashed #8a9a97; border-radius: 8px; padding: .6rem .9rem; }
mark.owner { background: #ffe58a; color: #3b2a00; padding: 0 .2em; border-radius: 3px; }

.final { text-align: center; }
.final h2 { margin-bottom: .6rem; }

/* Legal and content pages */
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.prose blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--line); background: var(--surface); border-radius: 0 8px 8px 0; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); padding: .8rem 1rem; border-radius: 8px; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2.5rem 0; font-size: .95rem; color: var(--muted); }
.site-footer a { color: var(--accent); }
.site-footer p { margin: .5rem 0; }
.site-footer nav ul { gap: 4px 20px; margin: .5rem 0 1rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 3rem 0; }
  .hero { padding: 2.5rem 0 2.5rem; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  .site-header nav ul { gap: 2px 16px; }
  .site-header { position: static; }
  .panel { padding: 1.25rem; }
}
@media print {
  .site-header nav, .skip, form { display: none; }
  .site-header { position: static; }
  body { background: #fff; }
}
.stackbar-svg { display: block; width: 100%; height: 14px; }
.includes { margin: .25rem 0 1rem; font-size: .95rem; }
.includes li { color: var(--ink); }
.guarantee { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 0 auto 1.5rem; background: var(--accent-soft); border: 1px solid #c9e0da; border-radius: 14px; padding: 1.25rem 1.4rem; }
.guarantee-icon { flex: none; width: 36px; height: 36px; color: var(--accent); }
.guarantee h3 { margin-bottom: .3rem; }
.guarantee p { margin: 0; color: var(--ink); }
