/* Early Door: shared styles. One content column, generous whitespace, report-style data details in mono. */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #131715;
  --ink-2: #4a524d;
  --muted: #737b76;
  --line: #dfe3e0;
  --line-strong: #c3cac5;
  --accent: #2a78d6;
  --accent-hover: #1c5cab;
  --accent-ink: #1c5cab;
  --on-accent: #ffffff;
  --glow: #e9a52b;
  --soon-bg: #e6f0fc;
  --soon-fg: #184f95;
  --new-bg: #ebeeec;
  --new-fg: #2c332f;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1211; --surface: #181c1a; --ink: #eef1ef; --ink-2: #b7bfba; --muted: #8b938e;
    --line: #2a302c; --line-strong: #3d443f; --accent: #3987e5; --accent-hover: #5598e7;
    --accent-ink: #86b6ef; --on-accent: #0b1320; --glow: #f0b545;
    --soon-bg: #15263b; --soon-fg: #9ec5f4; --new-bg: #232926; --new-fg: #d7ddd9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1211; --surface: #181c1a; --ink: #eef1ef; --ink-2: #b7bfba; --muted: #8b938e;
  --line: #2a302c; --line-strong: #3d443f; --accent: #3987e5; --accent-hover: #5598e7;
  --accent-ink: #86b6ef; --on-accent: #0b1320; --glow: #f0b545;
  --soon-bg: #15263b; --soon-fg: #9ec5f4; --new-bg: #232926; --new-fg: #d7ddd9;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.mono { font-family: var(--font-data); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.nav .button { padding: 7px 14px; font-size: 14px; }
.nav .button.primary { color: var(--on-accent); }

/* Sections */
main { display: block; }
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.eyebrow { font-family: var(--font-data); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.section h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head { display: grid; gap: 10px; max-width: 64ch; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }

/* Hero */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.hero-copy { display: grid; gap: 20px; }
.hero-copy .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--font-data); font-size: 13px; color: var(--muted); }
.proof b { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Ticket (a permit record, styled like an order ticket) */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 16px; display: grid; gap: 7px; align-content: start; min-width: 0; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--font-data); font-size: 12.5px; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong); margin-bottom: 3px; }
.pill { font-family: var(--font-sans); font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill.soon { background: var(--soon-bg); color: var(--soon-fg); }
.pill.new { background: var(--new-bg); color: var(--new-fg); }
.t-name { font-size: 1.08rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.t-meta { font-size: 14px; color: var(--ink-2); }
.t-tag { font-size: 13px; color: var(--ink-2); }
.t-tag b { font-weight: 600; color: var(--ink); }
.t-note { font-size: 13px; color: var(--ink-2); border-left: 2px solid var(--line-strong); padding-left: 9px; }
.t-foot { font-family: var(--font-data); font-size: 12px; color: var(--muted); }
.ticket-stack { display: grid; gap: 12px; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; counter-reset: step; }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-data); font-size: 12.5px; color: var(--muted); }
.steps h3 { font-size: 1.1rem; font-weight: 700; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Field list */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 40px; list-style: none; padding: 0; }
.fields li { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.fields b { font-weight: 600; }
.fields span { color: var(--ink-2); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { font-size: 14px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); }

/* Pricing */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 18px; max-width: 460px; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink-2); }
.checks li::before { content: ""; width: 14px; height: 8px; margin-top: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.fine { font-size: 13.5px; color: var(--muted); }
.pricing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .pricing-layout { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding-block: 16px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 66ch; }

/* Prose pages (about, data, legal) */
.prose { max-width: 70ch; padding-block: 56px 72px; display: grid; gap: 18px; }
.prose h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin-top: 18px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose .updated { font-family: var(--font-data); font-size: 13px; color: var(--muted); }

/* Report figures (sample page) */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.figure { padding: 16px 16px 18px; display: grid; gap: 4px; align-content: start; }
.figure + .figure { border-left: 1px solid var(--line); }
.figure:first-child { padding-left: 0; }
.fig-label { font-size: 13.5px; color: var(--ink-2); }
.fig-value { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.fig-note { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.bars { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: minmax(6.5rem, 10.5rem) minmax(0, 1fr); align-items: center; gap: 12px; border-radius: 4px; }
.bar-label { font-size: 14px; color: var(--ink-2); }
.track { display: flex; align-items: center; gap: 8px; min-width: 0; border-left: 1px solid var(--line-strong); padding-block: 3px; }
.bar { height: 14px; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.val { font-family: var(--font-data); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px; }
.chart { display: grid; gap: 12px; min-width: 0; }
.chart h3 { font-size: 1rem; font-weight: 600; }
.chart-note { font-family: var(--font-data); font-size: 12.5px; color: var(--muted); }
.report { display: grid; gap: 48px; padding-block: 48px 72px; }
.report-head { display: grid; gap: 14px; }
.report-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.report-head .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.report section { display: grid; gap: 16px; }
.report h2 { font-size: 1.25rem; font-weight: 700; }
.report .sec-sub { color: var(--ink-2); max-width: 64ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
