/* Layout concept: a road survey sheet. Navy ink on white paper, US centre-line yellow as the one accent,
   measurements set in mono the way a surveyor writes them. */
:root {
  --paper: #ffffff;
  --paper-2: #f3f5f8;
  --ink: #0f1d33;
  --ink-2: #3b4a60;
  --ink-3: #6a778a;
  --rule: #d9dee6;
  --navy: #14284a;
  --navy-ink: #ffffff;
  --line: #e2a91f;           /* the double-yellow centre line */
  --line-ink: #1a1405;
  --good: #2f7d4f;
  --focus: #2f6fd6;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.25rem, 5.2vw, 3.75rem);
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1626; --paper-2: #13203a; --ink: #e9eef6; --ink-2: #b8c3d4; --ink-3: #8593a8;
    --rule: #26354f; --navy: #1b3360; --navy-ink: #ffffff; --line: #f0b93a; --line-ink: #1a1405;
    --good: #5fbf86; --focus: #7aa7f0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1626; --paper-2: #13203a; --ink: #e9eef6; --ink-2: #b8c3d4; --ink-3: #8593a8;
  --rule: #26354f; --navy: #1b3360; --navy-ink: #ffffff; --line: #f0b93a; --line-ink: #1a1405;
  --good: #5fbf86; --focus: #7aa7f0; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 112%; }
h2 { font-size: var(--step-3); font-weight: 750; font-stretch: 108%; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.875em; font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
  font: 600 var(--step--1)/1.2 var(--body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3);
}

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 800 1.2rem/1 var(--display); font-stretch: 115%; letter-spacing: -0.01em; }
.brand-mark { width: 1.75rem; height: 1.75rem; flex: none; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--navy-ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.15rem; border-radius: 6px; border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--body); text-decoration: none; cursor: pointer;
  background: var(--navy); color: var(--navy-ink);
}
.btn:hover { filter: brightness(1.12); }
.btn-line { background: var(--line); color: var(--line-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-3); filter: none; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; filter: none; }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--line) 55%, transparent) 62%); }
.hero .lede { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-2); max-width: 34rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero .fine { margin-top: 0.9rem; color: var(--ink-3); font-size: var(--step--1); }

/* the survey sheet */
.sheet { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); overflow: hidden; min-width: 0; }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 1rem; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.sheet-head strong { font: 700 0.95rem/1.3 var(--display); font-stretch: 108%; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 520px) { .sheet-body { grid-template-columns: minmax(0, 1fr); } }
.sheet-map { padding: 0.75rem; border-right: 1px solid var(--rule); }
@media (max-width: 520px) { .sheet-map { border-right: 0; border-bottom: 1px solid var(--rule); } }
.sheet-map svg, .sheet-prof svg { width: 100%; height: auto; display: block; }
.sheet-prof { padding: 0.75rem 0.75rem 0.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.spec div { padding: 0.7rem 1rem; border-right: 1px solid var(--rule); }
.spec div:last-child { border-right: 0; }
.spec b { display: block; font: 600 var(--step-1)/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.spec span { font-size: var(--step--1); color: var(--ink-3); }
@media (max-width: 520px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec div:nth-child(2) { border-right: 0; } .spec div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
.svg-ink { stroke: var(--ink); }
.svg-line { stroke: var(--line); }
.svg-rule { stroke: var(--rule); }
.svg-fill { fill: color-mix(in srgb, var(--line) 22%, transparent); }
.svg-text { fill: var(--ink-3); font: 500 10px var(--mono); }

/* sections */
.band { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--rule); }
.band-alt { background: var(--paper-2); }
.band-head { display: grid; gap: 0.75rem; max-width: 44rem; margin-bottom: 2.25rem; }
.band-head p { color: var(--ink-2); font-size: var(--step-1); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { border-top: 3px solid var(--navy); padding-top: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.steps li::before { counter-increment: step; content: "Step " counter(step); font: 600 var(--step--1)/1 var(--mono); color: var(--ink-3); }
.steps p { color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.75rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; gap: 0.45rem; align-content: start; }
.feature .src { font: 500 var(--step--1)/1.4 var(--mono); color: var(--ink-3); }
.feature p { color: var(--ink-2); }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 700px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 0; display: grid; gap: 0.5rem; }
.shot img { border-radius: 6px; border: 1px solid var(--rule); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shot figcaption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-3); }

.checks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.report { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); font: 400 0.875rem/1.5 var(--mono); overflow-x: auto; }
.report div { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0.75rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--rule); }
.report div:last-child { border-bottom: 0; font-weight: 600; }
.pill { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-align: center; height: fit-content; }
.pill-ok { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.pill-info { background: var(--paper-2); color: var(--ink-3); }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { padding-left: 1.5rem; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.8rem; height: 0.18rem; background: var(--line); box-shadow: 0 0.3rem 0 var(--line); }

/* pricing */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price-card { border: 1px solid var(--rule); border-top: 4px solid var(--line); border-radius: 8px; padding: 1.75rem; background: var(--paper); display: grid; gap: 1.1rem; }
.price { display: flex; align-items: baseline; gap: 0.5rem; }
.price b { font: 800 3.25rem/1 var(--display); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-3); }
.req { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.req th, .req td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.req th { width: 9rem; font-weight: 600; color: var(--ink-2); }
.table-scroll { overflow-x: auto; }

/* faq */
.faq { display: grid; gap: 0; max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; color: var(--ink-2); max-width: 65ch; }

/* prose pages (guide, legal) */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.page-head p { margin-top: 0.75rem; color: var(--ink-2); font-size: var(--step-1); max-width: 44rem; }
.prose { padding-bottom: 4rem; }
.prose > * { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 0.75rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 0.9rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.prose code { font-family: var(--mono); font-size: 0.875em; background: var(--paper-2); padding: 0.1rem 0.3rem; border-radius: 3px; }
.prose .meta { color: var(--ink-3); font-size: var(--step--1); }
.note { border-left: 3px solid var(--line); background: var(--paper-2); padding: 0.9rem 1rem; border-radius: 0 6px 6px 0; color: var(--ink-2); }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem; color: var(--ink-3); font-size: var(--step--1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-grid h3 { font: 600 var(--step--1)/1.2 var(--body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.75rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.disclaimer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); max-width: 60rem; }
