/* Searchli. Map-paper palette: cool off-white paper, slate ink, OS-style magenta pin, and the three
   rank colours from the Maps scan (top three, top ten, further down). One family, Archivo, with its
   width axis doing the work: wide and heavy for headings, normal width for reading. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f3f6f1;
  --paper-2: #e7ede4;
  --card: #fbfcfa;
  --ink: #1d2b3a;
  --muted: #536375;
  --line: #cfd9cf;
  --pin: #c92a63;
  --top: #2b8a57;
  --mid: #d6950f;
  --low: #c4553f;
  --none: #c3ccc5;
  --street: #ffffff;
  --water: #bcd6e3;
  --focus: #c92a63;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pin); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-stretch: 116%; letter-spacing: -0.015em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw + .6rem, 3.9rem); font-weight: 780; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.15rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, .4vw + 1rem, 1.28rem); line-height: 1.5; color: var(--ink); max-width: 38em; }
.narrow { max-width: 40em; }
.kicker { font-stretch: 116%; font-weight: 650; color: var(--pin); margin-bottom: .6em; }
.fine { font-size: .92rem; color: var(--muted); margin-top: 1.2em; }
.opt { color: var(--muted); font-weight: 400; }

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

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.home-link { text-decoration: none; flex: none; }
.logo { font-stretch: 125%; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1; display: inline-block; }
.logo-i { position: relative; display: inline-block; }
.logo-pin { position: absolute; width: .42em; left: 50%; top: -.12em; transform: translateX(-50%); fill: var(--pin); }
.top nav { margin-left: auto; }
.top nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.top nav a { text-decoration: none; font-weight: 520; font-size: .98rem; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--pin); text-decoration-thickness: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  font: inherit; font-weight: 650; font-stretch: 108%; text-decoration: none;
  padding: .78em 1.35em; border-radius: 999px; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: #2b3e52; border-color: #2b3e52; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-small { padding: .5em 1em; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }

/* Hero */
.hero, .page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 72px); }
.page-hero { border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-small { color: var(--muted); font-size: .95rem; }
.page-hero:not(:has(.hero-in)) h1 { max-width: 16em; }

/* Maps scan: the signature piece */
.scan { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(29, 43, 58, .45); }
.scan-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.scan-q { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; font-size: .95rem; font-weight: 520; }
.scan-q svg { width: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.scan-switch { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; }
.scan-switch button { font: inherit; font-size: .88rem; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 5px 13px; border-radius: 999px; cursor: pointer; }
.scan-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.scan-map { position: relative; aspect-ratio: 1; background: #e6ede2; border-radius: 12px; overflow: hidden; }
.scan-streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan-streets path { fill: none; stroke: var(--street); stroke-width: 14; stroke-linecap: round; }
.scan-streets path.minor { stroke-width: 6; opacity: .85; }
.scan-streets path.river { stroke: var(--water); stroke-width: 22; }
.scan-grid { position: absolute; inset: 5%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); place-items: center; }
.pt { width: min(80%, 42px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-stretch: 100%; font-size: clamp(.68rem, 1.6vw, .9rem); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transition: background-color .45s ease, transform .45s ease; }
.pt-top { background: var(--top); }
.pt-mid { background: var(--mid); color: #2a2205; }
.pt-low { background: var(--low); }
.pt-none { background: var(--none); color: #4a5560; font-size: clamp(.55rem, 1.2vw, .72rem); }
.pt-home { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--pin); }
.scan figcaption { display: flex; flex-direction: column; gap: 4px; padding: 12px 4px 2px; }
.scan-stat { font-size: 1rem; }
.scan-stat strong { font-stretch: 120%; font-size: 1.35rem; font-weight: 780; }
.scan-note { font-size: .82rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pt { transition: none; } }

/* Bands */
.band { padding: clamp(48px, 7vw, 96px) 0; }
.band-alt { background: var(--paper-2); }
.h-section { margin-bottom: .45em; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 2.2em; }
.trio > div { border-top: 3px solid var(--ink); padding-top: 18px; }
.trio p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 1.6em; }
.audience { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 36px); }
.audience h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); }
.audience p { color: var(--muted); }
.audience .more { font-weight: 650; text-decoration: underline; text-decoration-color: var(--pin); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.audience:hover { border-color: var(--ink); }

.steps { list-style: none; counter-reset: step; margin: 2em 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 750; font-stretch: 116%; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 52px; right: -18px; border-top: 2px dashed var(--line); }
.steps p { color: var(--muted); }

.report { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .75em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 11px; border-radius: 50%; background: var(--top); box-shadow: 0 0 0 3px color-mix(in srgb, var(--top) 22%, transparent); }

/* Prices */
.price-table { width: 100%; border-collapse: collapse; margin-top: 1.4em; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 18px 0; border-top: 1px solid var(--line); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 680; font-stretch: 112%; font-size: 1.12rem; padding-right: 24px; width: 68%; }
.price-table th span, .price-table td span { display: block; font-weight: 400; font-stretch: 100%; font-size: .97rem; color: var(--muted); margin-top: 4px; max-width: 46em; }
.price-table td { white-space: nowrap; text-align: right; }
.price-table td strong { font-stretch: 116%; font-size: 1.3rem; font-weight: 760; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 36px); }
.plan-main { border: 2px solid var(--ink); }
.plan h2 { font-size: 1.5rem; margin-bottom: .3em; }
.plan-who { color: var(--muted); }
.plan-price { margin: 1em 0 .2em; }
.plan-price strong { font-stretch: 120%; font-size: 2rem; font-weight: 780; letter-spacing: -0.02em; }
.plan-alt { color: var(--muted); font-size: .95rem; }
.plan .ticks { margin-top: 1.2em; }

/* Detail rows on audience pages */
.detail { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); gap: clamp(20px, 4vw, 56px); padding: 34px 0; border-top: 1px solid var(--line); }
.detail:first-of-type { margin-top: 1.4em; }
.detail h2 { font-size: 1.45rem; }

.narrow-block { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; font-stretch: 108%; font-size: 1.1rem; padding: 16px 32px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--pin); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); max-width: 44em; }

/* Review form */
.review-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 36px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c5bb; border-radius: 8px; padding: 11px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pin) 30%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 6px 0 20px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.notice h2 { font-size: 1.3rem; }
.notice-ok { background: color-mix(in srgb, var(--top) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--top) 40%, transparent); }
.notice-err { background: color-mix(in srgb, var(--low) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--low) 40%, transparent); }
.review-side h2 { font-size: 1.35rem; }

/* Closing CTA */
.cta { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 88px) 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { max-width: 18em; margin: 0; }
.cta .actions { margin: 0; }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn:hover { background: #fff; }
.cta .btn-ghost { background: transparent; color: var(--paper); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--paper); }
.cta :focus-visible { outline-color: #ff8fb6; }

/* Footer */
.foot { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.foot p { color: var(--muted); max-width: 30em; margin-top: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.foot li { margin-bottom: 8px; }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal p { font-size: .85rem; color: var(--muted); max-width: none; }

/* Narrow screens */
@media (max-width: 960px) {
  .hero-in, .report, .review-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .top-in { gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .top nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .top nav ul { gap: 18px; padding-bottom: 4px; }
  .top .btn-small { margin-left: auto; }
  .trio, .split, .plans, .foot-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { padding: 4px 0 0 58px; }
  .steps li::after { display: none; }
  .detail { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: auto; }
  .price-table th { padding: 18px 0 6px; border-top: 1px solid var(--line); }
  .price-table td { border-top: 0; text-align: left; padding: 0 0 18px; white-space: normal; }
  .price-table tr:last-child th { border-bottom: 0; }
  .scan { padding: 10px; border-radius: 14px; }
  .scan-grid { inset: 3%; }
}
