/* FileDigr prototype styles. Direction: "Survey" - chalk paper, night-blue ink, survey-flag orange, marker yellow.
   Set 5 October 2026 after Rachel released the earlier palette and type rules. No opacity on text. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F6F3EC;      /* chalk */
  --paper-2: #ECE6DA;    /* worn chalk */
  --card: #FFFDF8;       /* clean sheet */
  --ink: #0E1A26;        /* night-blue ink */
  --ink-2: #46515C;      /* secondary text */
  --night: #0B1520;      /* hero and dark bands */
  --link: #12457F;
  --link-hover: #AE3608;
  --flag: #E8561A;       /* survey flag: fills, bars, primary button */
  --flag-hover: #FF7A3D;
  --flag-text: #AE3608;  /* the same orange, dark enough to read as text */
  --marker: #F4C84A;     /* highlighter: the selected passage only */
  --divider: #D6CEBE;
  --caution: #AE3608;
  --serif: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;  /* headline face (a grotesque, kept under the old variable name) */
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 20px;
  /* aliases so older rules keep working */
  --canvas: var(--paper); --surface: var(--card); --deep: var(--night);
  --action: var(--link); --action-hover: var(--link-hover); --bar: var(--flag); --btn: var(--flag); --btn-hover: var(--flag-hover);
  --highlight: var(--marker); --oxblood: var(--flag);
}
/* Dark bands (hero, closing call) reset the roles locally */
.dark-band {
  --paper: #0B1520; --paper-2: #122234; --card: #14263A; --ink: #F6F3EC; --ink-2: #AEB9C4; --link: #9CC3F0; --link-hover: #FF9A6B;
  --divider: #28405A; --caution: #FF8A55; --flag-text: #FF8A55;
  --canvas: var(--paper); --surface: var(--card); --action: var(--link); --action-hover: var(--link-hover);
  background: var(--night); color: var(--ink); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 20px; line-height: 1.6; overflow-wrap: anywhere; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0 0 14px; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p, ul, ol, dl { margin: 0 0 14px; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 6px; }
.measure { max-width: 66ch; }
.small { font-size: 17px; }
.meta { color: var(--ink-2); font-size: 17px; font-variant-numeric: tabular-nums; }
.lead { font-size: 1.3125rem; line-height: 1.5; }
strong { font-weight: 700; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--card); color: var(--ink); border: 2px solid var(--ink); padding: 10px 16px; min-height: 44px; z-index: 30; font-weight: 600; }
.skip:focus { top: 8px; }

/* Reviewer strip (not part of the product) */
.strip { margin: 0; padding: 10px var(--gutter); background: var(--night); color: #F6F3EC; font-size: 16px; }
@media print { .strip { color: #000; border-bottom: 1px solid #000; } }
.screens { background: var(--paper-2); border-bottom: 1px solid var(--divider); padding: 6px var(--gutter); }
.screens p { margin: 0 0 2px; font-size: 16px; color: var(--ink-2); }
.screens ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.screens li { margin: 0; }
.screens a { display: inline-block; padding: 10px 0; min-height: 44px; }
.screens a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--flag); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Floating pill navigation */
.topbar { position: sticky; top: 0; z-index: 20; padding-top: 12px; pointer-events: none; }
.site-head { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 4px 24px; padding: 6px 8px 6px 24px; background: var(--card); border: 1px solid var(--divider); border-radius: 999px; }
.wordmark { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; min-height: 44px; }
.wordmark:hover { color: var(--ink); }
.wordmark i { font-style: normal; color: #AF3709; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) { display: inline-block; padding: 10px 0; min-height: 44px; color: var(--ink); text-decoration-color: var(--divider); }
.site-nav a:not(.btn):hover { color: var(--link-hover); }
.nav-cta { min-height: 44px; padding: 8px 20px; font-size: 16px; }
.home .topbar { margin-bottom: -82px; }

main { display: block; padding: 24px 0 56px; }
section { margin-bottom: 72px; }
.tight { margin-bottom: 32px; }
#how, #coverage, #pricing, #who, #addr-wrap { scroll-margin-top: 96px; }

.eyebrow { margin: 0 0 8px; font-size: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.eyebrow strong { color: var(--ink); }

/* Section headings carry a short flag bar */
main h2 { padding-top: 18px; border-top: 4px solid var(--flag); max-width: 24ch; }
.panel h2, .panel h3, .tabpanel h2 { border-top: 0; padding-top: 0; max-width: none; }

/* State tag: always in words */
.state-tag { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.state-tag li { margin: 0; padding: 5px 12px; border: 2px solid var(--ink); background: var(--card); font-weight: 700; font-size: 16px; }
.state-tag li.second { border-color: var(--ink-2); font-weight: 600; }
.caution { color: var(--caution); font-weight: 700; }

/* Panels and limits */
.panel { background: var(--card); border: 1px solid var(--divider); border-top: 4px solid var(--ink); padding: 22px; }
.limit { background: var(--card); border: 1px solid var(--divider); border-left: 4px solid var(--flag); padding: 14px 16px; margin: 0 0 20px; }
.limit p:last-child { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; min-width: 44px; padding: 10px 22px; border: 2px solid var(--ink); border-radius: 999px; font: 700 17px/1.25 var(--sans); text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: transform 150ms ease-out; }
.btn:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--flag); border-color: var(--flag); color: #0E1A26; font-size: 18px; padding: 12px 28px; }
.btn-primary:hover { background: var(--flag-hover); border-color: var(--flag-hover); color: #0E1A26; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.dark-band .btn:not(.btn-primary):hover { background: var(--paper-2); color: var(--ink); }
.status-line { margin: 12px 0 0; min-height: 1.5em; font-weight: 600; padding: 10px 14px; border: 2px solid var(--ink); background: var(--card); }
.status-line:empty { display: none; }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 88px; margin-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 1rem + 6.4vw, 6rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; max-width: 12ch; color: var(--ink); }
mark.swept { background: linear-gradient(var(--flag), var(--flag)) no-repeat left 90% / 100% 0.2em; color: inherit; padding: 0; white-space: nowrap; }
.hero .lead { max-width: 46ch; color: var(--ink); margin-top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 16px; border: 1px solid var(--divider); border-radius: 999px; background: var(--card); font-size: 16px; color: var(--ink-2); }
.badge strong { color: var(--ink); }
.badge .dot { width: 10px; height: 10px; background: var(--flag); border-radius: 50%; flex: none; }
.finder { margin-top: 28px; max-width: 700px; }
.finder-label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 1.125rem; }
.finder-row { display: flex; gap: 6px; background: #FFFDF8; border: 2px solid #FFFDF8; border-radius: 999px; padding: 6px; }
.finder-row:focus-within { border-color: var(--flag); }
.finder input { flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 10px 20px; background: transparent; color: #0E1A26; border: 0; border-radius: 999px; font: 500 20px/1.3 var(--sans); }
.finder input:focus-visible { outline: 3px solid #0E1A26; outline-offset: 2px; }
.finder .btn { min-height: 56px; white-space: nowrap; }
.trust { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; gap: 8px; }
.trust li { margin: 0; padding-left: 32px; position: relative; font-size: 17px; }
.trust li::before { content: ""; position: absolute; left: 6px; top: 0.25em; width: 9px; height: 17px; border: solid var(--flag); border-width: 0 3px 3px 0; transform: rotate(40deg) scale(0.8); }
.finder .meta { color: var(--ink-2); }
.print-label { display: none; }

/* Hero image: a tall frame with the survey drawn over it, and a briefing chip resting on the corner */
.hero-visual { position: relative; }
.frame { position: relative; margin: 0; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; border-radius: 4px; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame .contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.contours path { fill: none; stroke: #2A4663; stroke-width: 1.4; }
.contours path:nth-child(5n) { stroke: #3B5F83; stroke-width: 2; }
.survey { position: absolute; inset: 0; width: 100%; height: 100%; }
.survey .parcel { fill: none; stroke: #FFFDF8; stroke-width: 3; stroke-dasharray: 10 8; stroke-linejoin: round; }
.survey .pin { fill: var(--flag); }
.survey .pinline { stroke: #FFFDF8; stroke-width: 3; }
.survey .pad { fill: #FFFDF8; }
.chip { position: absolute; left: -24px; bottom: 28px; max-width: min(340px, 82%); background: #FFFDF8; color: #0E1A26; padding: 18px 20px; border-top: 5px solid var(--flag); }
.chip .state-tag { margin-bottom: 8px; }
.chip .state-tag li { background: #FFFDF8; border-color: #0E1A26; color: #0E1A26; }
.chip .state-tag li.second { border-color: #46515C; }
.chip p { margin: 0; font-weight: 600; line-height: 1.35; font-size: 18px; }
.chip .meta { color: #46515C; font-weight: 400; font-size: 15px; margin-top: 6px; }
.photo-note { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
@media (min-width: 960px) { .hero { padding: 168px 0 112px; } .hero-grid { grid-template-columns: 6.5fr 5fr; gap: 64px; } }
@media (max-width: 560px) { .finder-row { flex-wrap: wrap; border-radius: 28px; } .finder .btn { width: 100%; } .chip { left: 0; right: 0; bottom: 0; max-width: none; } }

/* Photo slots used elsewhere */
.photo { margin: 0; position: relative; background: var(--paper-2); overflow: hidden; border-radius: 4px; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo .contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo .contours path { stroke: #C9BFAC; }
.photo .contours path:nth-child(5n) { stroke: #B3A78F; }
.r32 { aspect-ratio: 3 / 2; }
.r43 { aspect-ratio: 4 / 3; }
.banner { aspect-ratio: 16 / 5; margin-bottom: 28px; }
@media (max-width: 719px) { .banner { aspect-ratio: 16 / 8; } }

/* Example places as file folders */
.places { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.places li { margin: 0; }
.places a { display: block; min-height: 56px; padding: 18px 18px 16px; background: var(--card); border: 2px solid var(--ink-2); border-top: 6px solid var(--flag); text-decoration: none; color: var(--ink); }
.places a .pn { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.places a .pr { display: block; font-size: 17px; color: var(--ink-2); margin-top: 8px; }
.folders a { transition: transform 150ms ease-out, border-color 150ms ease-out; }
.folders a:hover { transform: translateY(-4px); border-color: var(--ink); border-top-color: var(--flag); color: var(--ink); }
.folders a::after { content: "Open example"; display: block; margin-top: 12px; color: var(--link); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.hero .places a { background: var(--card); border-color: var(--divider); }
.hero h2.small { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; border-top: 0; padding-top: 0; margin: 40px 0 0; max-width: none; }

.grid-3 { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; }

/* Evidence */
.ev { background: var(--card); border: 1px solid var(--divider); margin: 0 0 14px; transition: border-color 150ms ease-out; }
.ev:has(.ev-panel.is-open) { border-color: var(--ink); }
.ev-head { margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.35; letter-spacing: 0; }
.ev-toggle { display: block; width: 100%; text-align: left; cursor: pointer; min-height: 56px; padding: 14px 16px; margin: 0; background: var(--card); color: var(--ink); border: 0; font: 700 18px/1.35 var(--sans); }
.ev-toggle:hover { background: var(--paper-2); }
.ev-toggle .kind { display: block; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.ev-toggle .hint { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.ev-panel { container-type: inline-size; padding: 0 16px 16px; border-top: 1px solid var(--divider); }
.ev-grid { display: grid; gap: 20px; padding-top: 16px; }
.passage-label { display: inline-block; margin: 0 0 6px; font-size: 16px; font-weight: 700; padding: 2px 8px; border: 2px solid var(--ink); }
.passage { margin: 0 0 12px; padding: 12px 14px 12px 16px; border-left: 4px solid var(--flag); background: var(--paper); font-family: var(--sans); font-size: 1.2rem; line-height: 1.55; }
.passage mark { background: var(--marker); color: var(--ink); padding: 1px 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.js .ev-panel mark { background: linear-gradient(var(--marker), var(--marker)) no-repeat left center / 0% 100%; transition: background-size 450ms cubic-bezier(.16,1,.3,1); }
.js .ev-panel.is-open mark { background-size: 100% 100%; background-color: var(--marker); }
.js .ev-panel:not(.is-open) mark { background-color: transparent; }
.js .ev-panel[hidden] { display: none; }
.parts { margin: 0; }
.parts dt { font-weight: 700; margin-top: 12px; }
.parts dt:first-child { margin-top: 0; }
.parts dd { margin: 2px 0 0; }
.dates { display: grid; gap: 2px 12px; grid-template-columns: max-content 1fr; font-size: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin: 0 0 12px; }
.dates dt { font-weight: 600; }
.dates dd { margin: 0; }
@container (min-width: 640px) { .ev-grid { grid-template-columns: 1fr 1fr; } }

.thread-n { display: inline-flex; align-items: center; justify-content: center; min-width: 1.45em; height: 1.45em; padding: 0 4px; margin: 0 6px 0 4px; background: var(--ink); color: var(--paper); font: 700 0.8125rem/1 var(--sans); vertical-align: middle; }
.ev-toggle .kind .thread-n { margin-left: 0; }
.thread-note { margin: -4px 0 12px; padding: 4px 0 8px 14px; border-left: 2px dotted var(--ink-2); margin-left: 1px; font-size: 1.0625rem; }
.thread-note .thread-n { margin-left: 0; }
.plain { margin: 0 0 12px; padding: 10px 14px; background: var(--paper); font-size: 1.0625rem; }

/* Ledgers, facts, timeline */
.ledger { list-style: none; padding: 0; margin: 0; }
.ledger > li { padding: 14px 0; border-top: 1px solid var(--divider); margin: 0; }
.ledger > li:last-child { border-bottom: 1px solid var(--divider); }
.ledger .name { font-weight: 700; display: block; }
.ledger .stat { display: block; font-variant-numeric: tabular-nums; }
.ledger .gap { display: block; color: var(--ink-2); font-size: 16px; }
.facts { display: grid; gap: 0; margin: 0 0 20px; }
.facts > div { padding: 10px 0; border-top: 1px solid var(--divider); }
.facts > div:last-child { border-bottom: 1px solid var(--divider); }
.facts dt { font-weight: 700; }
.facts dd { margin: 2px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0 0 12px; }
.timeline li { display: grid; grid-template-columns: 9.5em 1fr; gap: 0 12px; padding: 10px 0; border-top: 1px solid var(--divider); margin: 0; }
.timeline li:last-child { border-bottom: 1px solid var(--divider); }
.timeline .d { font-weight: 700; font-variant-numeric: tabular-nums; }
.price { font-family: var(--serif); font-size: 2rem; font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.price-note { display: inline-block; margin-top: 4px; padding: 2px 8px; border: 2px solid var(--ink); font-weight: 700; font-size: 16px; background: var(--card); }
.map { display: block; width: 100%; max-width: 420px; height: auto; border: 1px solid var(--divider); background: var(--card); }

/* Show-and-hide sections (native details) */
.more { margin: 0 0 12px; }
.more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 22px; cursor: pointer; list-style: none; border: 2px solid var(--ink-2); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 1.0625rem; color: var(--ink); transition: border-color 150ms ease-out, transform 150ms ease-out; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { border-color: var(--ink); transform: translateX(4px); }
.more > summary .wc, .more > summary .wo { font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.more > summary .wo { display: none; }
.more[open] > summary .wc { display: none; }
.more[open] > summary .wo { display: inline; }
.more[open] > summary { border-color: var(--ink); }
.more-body { padding: 18px 4px 6px; }
.more-body > :last-child { margin-bottom: 0; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 14px; font-size: 1.0625rem; }
.steps li strong { display: block; font-size: 1.1875rem; }

/* The briefing as a clean sheet */
.paper-sheet { position: relative; background: var(--card); border: 1px solid var(--divider); border-top: 0; padding: 0 0 24px; }
.paper-sheet > *:not(.sheet-bar):not(.stamp) { margin-left: 24px; margin-right: 24px; }
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 12px 20px; margin-bottom: 20px; background: var(--night); color: #F6F3EC; font-size: 16px; }
.sheet-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3B5F83; }
.sheet-bar span:nth-child(1) { background: var(--flag); }
.sheet-bar b { margin-left: 12px; font-weight: 600; }
.stamp { position: absolute; right: 24px; top: 70px; padding: 6px 14px; border: 3px solid #AF3709; color: #AF3709; font: 800 17px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; transform: rotate(-5deg); }
@media (max-width: 719px) { .stamp { position: static; display: inline-block; margin: 0 24px 12px; transform: rotate(-2deg); } }

/* How it works: one connected thread */
.threadsteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.threadsteps li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 20px; margin: 0; padding: 0 0 36px; position: relative; }
.threadsteps li:last-child { padding-bottom: 0; }
.threadsteps li::before { content: ""; position: absolute; left: 2.15rem; top: 4.4rem; bottom: 0; border-left: 3px dotted var(--flag); }
.threadsteps li:last-child::before { display: none; }
.threadsteps .big { font-family: var(--serif); font-weight: 800; font-size: 4.5rem; line-height: 0.9; color: #AF3709; text-align: center; letter-spacing: -0.04em; }
.threadsteps h3 { font-size: 1.75rem; margin-bottom: 6px; }
.threadsteps p { max-width: 52ch; margin-bottom: 0; }
@media (min-width: 960px) {
  .threadsteps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .threadsteps li { grid-template-columns: 1fr; padding: 0; }
  .threadsteps li::before { left: 5rem; right: -40px; top: 2.2rem; bottom: auto; border-left: 0; border-top: 3px dotted var(--flag); }
  .threadsteps li:last-child::before { display: none; }
  .threadsteps .big { text-align: left; margin-bottom: 14px; }
}

/* Alerts: three tiles, each with its own picture */
.alert-tiles { display: grid; gap: 20px; }
.tile { display: grid; align-content: start; gap: 8px; background: var(--card); border: 2px solid var(--divider); border-top: 6px solid var(--flag); text-decoration: none; color: var(--ink); transition: transform 150ms ease-out, border-color 150ms ease-out; padding-bottom: 20px; }
.tile:hover { transform: translateY(-4px); border-color: var(--ink); border-top-color: var(--flag); color: var(--ink); }
.tile .photo { border-radius: 0; margin-bottom: 8px; }
.tile h3, .tile p { margin: 0; padding: 0 22px; }
.tile h3 { font-size: 1.5rem; }
.tile p { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 960px) { .alert-tiles { grid-template-columns: 1.4fr 1fr 1fr; align-items: stretch; } .tile-lead h3 { font-size: 2rem; } }

/* Tabs */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.tablist [role="tab"] { min-height: 56px; padding: 10px 24px; background: var(--card); color: var(--ink); border: 2px solid var(--divider); border-bottom: 0; font: 600 18px/1.25 var(--sans); cursor: pointer; transition: transform 150ms ease-out; }
.tablist [role="tab"]:hover { transform: translateY(-2px); border-color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { border-color: var(--ink); border-top: 6px solid var(--flag); font-weight: 800; }
.tabpanel { display: grid; gap: 24px; background: var(--card); border: 2px solid var(--ink); padding: 24px; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); max-width: 22ch; }
@media (min-width: 960px) { .tabpanel { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 32px; } }

/* Pricing */
.tiers { display: grid; gap: 20px; margin: 32px 0 40px; align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: 28px 24px; background: var(--card); border: 2px solid var(--divider); border-top: 6px solid var(--ink-2); }
.tier h3 { font-size: 1.5rem; margin-bottom: 4px; }
.tier .price { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); margin-bottom: 6px; }
.tier .btn-row { margin-top: auto; padding-top: 12px; }
.tier-lead { border-color: var(--ink); border-top: 10px solid var(--flag); }
.checks { list-style: none; padding: 0; margin: 14px 0 12px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; font-size: 18px; }
.checks li::before { content: ""; position: absolute; left: 6px; top: 0.3em; width: 9px; height: 17px; border: solid var(--flag-text); border-width: 0 3px 3px 0; transform: rotate(40deg) scale(0.8); }
@media (min-width: 960px) { .tiers { grid-template-columns: 1fr 1fr 1.15fr; } .tier-lead { margin-top: -16px; padding-bottom: 40px; } }
.faq { max-width: 860px; }

/* Closing band and footer */
.closer { padding: 88px 0; margin: 0; }
.closer h2 { border-top-color: var(--flag); color: var(--ink); max-width: 18ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.footer { border-top: 1px solid var(--divider); padding: 32px 0 40px; font-size: 16px; }
.foot-cols { display: grid; gap: 28px; margin-bottom: 28px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: block; }
.foot-h { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.footer a { display: inline-block; padding: 10px 0; min-height: 44px; }
@media (min-width: 720px) { .foot-cols { grid-template-columns: 2fr 1fr 1fr; } }

.progress { position: fixed; left: 0; top: 0; width: 100%; height: 4px; background: var(--flag); transform: scaleX(0); transform-origin: left; z-index: 40; pointer-events: none; }
.state-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.state-row .state-tag { margin: 0; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 21px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  main { padding-top: 40px; }
}
@media (min-width: 960px) {
  .split { display: grid; grid-template-columns: 8fr 4fr; gap: 32px; align-items: start; }
  section { margin-bottom: 104px; }
}
@media (max-width: 719px) { .site-head { border-radius: 28px; padding: 6px 12px 6px 18px; } .site-nav ul { gap: 0 14px; } .site-nav li:nth-child(1), .site-nav li:nth-child(2) { display: none; } }
@media (max-width: 420px) { .timeline li { grid-template-columns: 1fr; } .dates { grid-template-columns: 1fr; } .dates dd { margin-bottom: 6px; } }

/* ===== Motion: runs once, finishes inside two seconds, off when asked. Moves things; never fades text. ===== */
@keyframes sweepbg { from { background-size: 0 0.2em; } to { background-size: 100% 0.2em; } }
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }
@keyframes slideIn { from { transform: translateX(-40px); } to { transform: none; } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes drawline { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drop { 0% { transform: translateY(-60px); } 70% { transform: translateY(4px); } 100% { transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes stampIn { from { transform: rotate(-5deg) scale(2); } to { transform: rotate(-5deg) scale(1); } }
@keyframes chipIn { from { transform: translate(-30px, 30px); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .badge { animation: rise 700ms cubic-bezier(.16,1,.3,1) backwards; }
  .hero h1 { animation: rise 800ms cubic-bezier(.16,1,.3,1) 100ms backwards; }
  mark.swept { animation: sweepbg 700ms cubic-bezier(.16,1,.3,1) 800ms backwards; }
  .hero .lead { animation: rise 800ms cubic-bezier(.16,1,.3,1) 250ms backwards; }
  .finder { animation: rise 800ms cubic-bezier(.16,1,.3,1) 400ms backwards; }
  .trust li { animation: rise 600ms cubic-bezier(.16,1,.3,1) backwards; }
  .trust li:nth-child(1) { animation-delay: 700ms; } .trust li:nth-child(2) { animation-delay: 820ms; } .trust li:nth-child(3) { animation-delay: 940ms; }
  .frame { animation: wipe 1100ms cubic-bezier(.65,0,.25,1) 150ms backwards; }
  .frame img, .frame .contours { animation: settle 1400ms cubic-bezier(.16,1,.3,1) 150ms backwards; }
  .survey .parcel { stroke-dasharray: 10 8; animation: none; }
  .survey .parcel-draw { stroke-dasharray: 1; animation: drawline 1000ms ease-out 800ms backwards; }
  .survey .pinwrap { animation: drop 700ms cubic-bezier(.3,1.2,.5,1) 1100ms backwards; }
  .chip { animation: chipIn 800ms cubic-bezier(.16,1,.3,1) 1100ms backwards; }
  .hero .folders li { animation: rise 700ms cubic-bezier(.16,1,.3,1) backwards; }
  .hero .folders li:nth-child(1) { animation-delay: 700ms; } .hero .folders li:nth-child(2) { animation-delay: 850ms; } .hero .folders li:nth-child(3) { animation-delay: 1000ms; }
  .ev-panel.is-open .ev-grid { animation: rise 320ms ease-out backwards; }
  .more[open] > .more-body { animation: rise 260ms ease-out backwards; }
  .reveal.pre { transform: translateY(56px); }
  .reveal.pre.in { transform: none; transition: transform 480ms cubic-bezier(.16,1,.3,1); }
  .reveal.pre.in .tier, .reveal.pre.in .tile, .reveal.pre.in .threadsteps li, .reveal.pre.in .tabs, .reveal.pre.in .faq .more { animation: rise 700ms cubic-bezier(.16,1,.3,1) backwards; }
  .reveal.pre.in .tier:nth-child(2), .reveal.pre.in .tile:nth-child(2), .reveal.pre.in .threadsteps li:nth-child(2) { animation-delay: 120ms; }
  .reveal.pre.in .tier:nth-child(3), .reveal.pre.in .tile:nth-child(3), .reveal.pre.in .threadsteps li:nth-child(3) { animation-delay: 240ms; }
  .reveal.pre.in .stamp { animation: stampIn 500ms cubic-bezier(.16,1,.3,1) 400ms backwards; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .tile:hover, .folders a:hover, .more > summary:hover, .tablist [role="tab"]:hover { transform: none; }
}

@media print {
  :root { --paper: #FFFFFF; --card: #FFFFFF; --paper-2: #F2F2F2; --ink: #000000; --ink-2: #333333; --link: #000000; --link-hover: #000000; --flag: #000000; --flag-text: #000000; --caution: #000000; --marker: #D9D9D9; --night: #FFFFFF; --divider: #888888; color-scheme: light; }
  .dark-band { --paper: #FFFFFF; --card: #FFFFFF; --ink: #000000; --ink-2: #333333; --link: #000000; --divider: #888888; --caution: #000000; --flag-text: #000000; background: #FFFFFF; color: #000000; }
  @page { margin: 16mm 14mm 22mm; }
  body { background: #FFFFFF; color: #000000; font-size: 12pt; }
  .frame, .photo, .survey, .chip, .hero-visual, .progress { display: none !important; }
  .no-print, .skip, .site-nav, .screens, .btn-row, .btn, .status-line, .topbar, .tablist { display: none !important; }
  .print-label { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 6px 0; border-top: 2px solid #000; font-size: 11pt; font-weight: 700; background: #FFFFFF; }
  .ev-panel, .js .ev-panel[hidden] { display: block !important; }
  .tabpanel[hidden] { display: block !important; }
  details::details-content { content-visibility: visible; display: block; }
  .more > summary .wc, .more > summary .wo { display: none !important; }
  .more > summary { border: 0; padding: 0; min-height: 0; font-size: 1.1em; }
  .ev-toggle .hint { display: none; }
  .ev, .panel, .limit, .passage, .tier { break-inside: avoid; }
  .reveal, .reveal.pre { transform: none !important; }
  .hero { padding: 0; }
  .hero h1 { color: #000; }
  mark.swept { background: #D9D9D9; }
  .sheet-bar { background: #fff; color: #000; border-bottom: 1px solid #000; }
  .stamp { border-color: #000; color: #000; }
  .thread-n { background: #fff; color: #000; border: 1px solid #000; }
  main h2 { border-top: 0; }
  .tier, .panel, .tabpanel { border: 1px solid #888; }
  .threadsteps .big { color: #000; }
  a { color: #000; }
  .wrap { max-width: none; padding: 0; }
}

.survey .parcel-draw { stroke-dasharray: 1; stroke-dashoffset: 0; stroke: var(--flag); stroke-width: 4; }
.tp-copy > :last-child { margin-bottom: 0; }
.finder-row :focus-visible { outline: 3px solid #0E1A26; outline-offset: 2px; }
.hero h1 { max-width: 14ch; }
.stamp { right: 48px; font-size: 15px; }

.field { display: block; width: 100%; min-height: 56px; padding: 10px 16px; background: var(--card); color: var(--ink); border: 2px solid var(--ink-2); border-radius: 0; font: 500 20px/1.3 var(--sans); }
.field:hover { border-color: var(--ink); }
