/* Local Maps Rank: storefront sign-painting world.
   Shop glass (bottle green) + gold-leaf lettering with outline & shade + porcelain-enamel plates
   + enamel red for actions. Public Sans for reading, Ultra for painted display lettering. */
@font-face { font-family: 'Public Sans'; src: url('/fonts/web/PublicSans-var.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Ultra'; src: url('/fonts/web/Ultra-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --glass: #123b2e;          /* storefront glass */
  --glass-deep: #0b2a20;
  --glass-line: #2a5a49;
  --gold: #e0ad45;           /* gold leaf */
  --gold-edge: #8c6421;
  --shade: #061a13;
  --enamel: #fcfcfa;         /* porcelain plate */
  --enamel-edge: #dcd8cc;
  --paper: #edf1ec;
  --ink: #14181f;
  --muted: #586058;
  --line: #e2e1d9;
  --red: #c23a2b;            /* enamel red: actions */
  --red-deep: #9b2b1f;
  --r1: #0f7a4a; --r2: #6aa84f; --r3: #e9b23a; --r4: #e0703a; --r5: #b8322c;
  --radius: 10px;
  --display: 'Ultra', 'Rockwell Extra Bold', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; }
::selection { background: var(--gold); color: var(--shade); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--glass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
html { scrollbar-color: var(--glass-line) var(--paper); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* ---------- painted lettering ---------- */
.sign {
  font-family: var(--display); font-weight: 400; letter-spacing: .005em; line-height: 1.02;
  color: var(--gold); -webkit-text-stroke: .085em var(--shade); paint-order: stroke fill;
  text-shadow: .06em .065em 0 var(--shade), .075em .085em 0 var(--gold-edge);
  text-wrap: balance; margin: 0;
}
.sign-ink { font-family: var(--display); font-weight: 400; color: var(--glass); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1, h2, h3 { text-wrap: balance; }
h2.sign-ink { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font: 700 20px/1.3 var(--sans); margin: 0 0 6px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #d9e6df; max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* pinstripe: the sign painter's double rule */
.pinstripe { height: 7px; border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); opacity: .55; margin: 0; }

/* ---------- header ---------- */
.top { background: var(--glass); color: #e9f0ec; border-bottom: 1px solid var(--glass-line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .sign { font-size: 23px; text-shadow: .06em .07em 0 var(--shade); }
.mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: #e9f0ec; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--gold); }
.nav .btn { padding: 9px 16px; font-size: 15px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }
.menu-panel { position: absolute; right: 0; top: 50px; z-index: 20; background: var(--glass-deep); border: 1px solid var(--glass-line); border-radius: 8px; padding: 8px; display: grid; min-width: 200px; box-shadow: 0 16px 30px -10px rgba(0,0,0,.5); }
.menu-panel a { color: #e9f0ec; text-decoration: none; font-weight: 600; padding: 11px 12px; border-radius: 6px; }
.menu-panel a:hover { background: var(--glass); color: var(--gold); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .menu { display: block; } .top .wrap { gap: 10px; } }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 17px/1 var(--sans); color: #fff; background: var(--red); border: 0; border-radius: 6px;
  padding: 15px 22px; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.18), 0 2px 6px rgba(6,26,19,.25);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--red-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .7; cursor: progress; }
.btn.ghost { background: transparent; color: var(--glass); box-shadow: inset 0 0 0 1.5px var(--glass); }
.btn.ghost:hover { background: var(--glass); color: #fff; }
.btn.on-glass.ghost { color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.on-glass.ghost:hover { background: var(--gold); color: var(--shade); }
.btn.small { padding: 10px 14px; font-size: 15px; }
.btn.block { width: 100%; }

label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=tel], input[type=time], select, textarea {
  width: 100%; font: 400 17px/1.3 var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid #c9c6ba; border-radius: 6px; padding: 13px 14px; caret-color: var(--red);
}
input::placeholder, textarea::placeholder { color: #6b7068; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glass); box-shadow: 0 0 0 3px rgba(224,173,69,.45); }
.field { margin: 0 0 14px; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.error { background: #fbe9e6; color: #7d1f15; border-radius: 6px; padding: 10px 12px; font-size: 15px; margin: 0 0 12px; }
.ok { background: #e5f2ea; color: #0c5134; border-radius: 6px; padding: 10px 12px; font-size: 15px; margin: 0 0 12px; }

/* ---------- porcelain enamel plate ---------- */
.plate {
  position: relative; background: var(--enamel); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 18px 34px -14px rgba(6,26,19,.5), 0 2px 5px rgba(6,26,19,.14);
}

/* ---------- hero (shop window) ---------- */
.window { background: radial-gradient(120% 90% at 75% 10%, #1a4a3a 0%, var(--glass) 45%, var(--glass-deep) 100%); color: #e9f0ec; position: relative; overflow: hidden; }
.window::after { /* a faint reflection across the glass */
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 55%; height: 140%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.045) 45%, rgba(255,255,255,0) 60%);
  transform: rotate(8deg); pointer-events: none;
}
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 64px) 0 clamp(40px, 5vw, 80px); position: relative; z-index: 1; }
.hero h1.sign { font-size: clamp(36px, 3.9vw, 56px); margin: 0 0 16px; }
.hero .lede { margin: 0 0 22px; }
.hero .plate { max-width: 470px; }
.hero .plate .btn { width: 100%; margin-top: 4px; }
.hero .fine { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero .plate { max-width: none; } }

/* the map as a framed window display */
.display { position: relative; }
.frame { padding: 10px; border: 3px double var(--gold); outline: 1px solid rgba(224,173,69,.4); outline-offset: 5px; border-radius: 3px; background: rgba(6,26,19,.35); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.frame > .inner { border: 1.5px solid var(--gold); border-radius: 1px; overflow: hidden; background: #f3efe7; }
.tag { position: absolute; left: -14px; bottom: 26px; background: var(--enamel); color: var(--ink); border-radius: 6px; padding: 10px 14px; font-size: 14px; line-height: 1.35; max-width: 270px; box-shadow: 0 10px 22px -8px rgba(0,0,0,.5); transform: rotate(-2deg); }
.tag b { display: block; font-size: 15px; }
@media (max-width: 900px) { .tag { left: 10px; bottom: 14px; } }

/* legend chips */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: inherit; margin: 12px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- sections ---------- */
section.band { padding: clamp(56px, 8vw, 104px) 0; }
section.band.white { background: var(--enamel); }
section.band.glass { background: var(--glass); color: #e3ece7; }
section.band.glass .muted { color: #b5c9bf; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.section-head { max-width: 720px; margin: 0 0 clamp(28px, 4vw, 48px); }
.section-head p { font-size: 19px; margin: 14px 0 0; }

/* contrast: guess vs measurement */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px -18px rgba(6,26,19,.4); }
.versus > div { padding: clamp(24px, 3vw, 38px); }
.versus .guess { background: #e3e8e3; color: #343a34; }
.versus .measure { background: var(--glass); color: #e3ece7; }
.versus h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0 0 12px; }
.versus .measure h3 { color: var(--gold); }
.versus ul { margin: 0; padding-left: 18px; }
.versus li { margin: 0 0 6px; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

/* annotated map reading */
.reading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .reading { grid-template-columns: minmax(0, 1fr); } }
.notes { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.notes li { position: relative; padding: 0 0 22px 52px; }
.notes li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--glass); color: var(--gold); font: 400 18px/36px var(--display); text-align: center; }

/* tables */
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.data th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
table.data td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.num, table.data th.num { text-align: right; }
table.data tr.you td { background: #fff7e3; }
.scroll-x { overflow-x: auto; }
.stars { color: #7a520a; white-space: nowrap; }

/* fix list */
.fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fix { background: #fff; border-radius: var(--radius); padding: 20px 22px 18px 74px; position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.fix .n { position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--glass); color: var(--gold); font: 400 19px/38px var(--display); text-align: center; }
.fix .meta { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.fix .meta .hi { color: var(--red); }
.fix p { margin: 4px 0 8px; }
.fix ul { margin: 0; padding-left: 18px; color: #33382f; font-size: 15.5px; }
.fix li { margin: 0 0 3px; }

/* stats as painted numerals */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.stats > div { padding: 16px 16px 4px 0; }
.stats .big { font: 400 clamp(28px, 3.2vw, 40px)/1 var(--display); color: var(--glass); }
.stats .big small { font-size: .5em; color: var(--muted); }
.stats .lbl { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* result page */
.result-head { padding: clamp(28px, 4vw, 48px) 0 clamp(26px, 3vw, 36px); position: relative; z-index: 1; }
.result-head h1.sign { font-size: clamp(34px, 4.6vw, 60px); margin: 6px 0 12px; }
.result-head .kw { font-weight: 700; color: var(--gold); }
.result-head .lede { max-width: 60ch; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; padding: clamp(28px, 4vw, 48px) 0; }
@media (max-width: 960px) { .result-grid { grid-template-columns: minmax(0, 1fr); } }
.mapbox { position: relative; }
.mapbox .frame { background: var(--glass); }
.inspect { margin-top: 14px; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; min-height: 92px; }
.inspect ol { margin: 6px 0 0; padding-left: 20px; }
.heatmap .pt { cursor: pointer; }
.heatmap .pt.sel circle:nth-child(2) { stroke: var(--ink); }
.heatmap .pt.fresh { animation: drop .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes drop { from { opacity: 0; } to { opacity: 1; } }
.progress { font-weight: 700; color: var(--gold); }
.panel { margin: 0 0 28px; }
.panel h2 { font: 400 28px/1.1 var(--display); color: var(--glass); margin: 0 0 14px; }
.cta-plate { background: var(--glass); color: #e3ece7; border-radius: var(--radius); padding: 26px; }
.cta-plate h2 { color: var(--gold); }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; color: var(--ink); }
.plan .name { font: 400 28px/1 var(--display); color: var(--glass); margin: 8px 0 10px; }
.plan .price { font: 800 44px/1 var(--sans); letter-spacing: -.02em; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--r1); border-bottom: 2.5px solid var(--r1); transform: rotate(-45deg); }
.plan.feature { background: #fff8e8; }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font: 700 12.5px/1 var(--sans); padding: 7px 12px; border-radius: 4px; white-space: nowrap; }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin: 6px 4px 0 0; border-right: 2.5px solid var(--glass); border-bottom: 2.5px solid var(--glass); transform: rotate(45deg); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { margin: 10px 0 0; max-width: 68ch; }

/* app (operate mode) */
.app-head { background: var(--enamel); border-bottom: 1px solid var(--line); padding: 26px 0 18px; }
.app-head h1 { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--display); color: var(--glass); margin: 0; }
.subnav { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.subnav a { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--muted); padding-bottom: 6px; border-bottom: 2.5px solid transparent; }
.subnav a.on { color: var(--glass); border-color: var(--gold); }
.app-body { padding: 28px 0 64px; }
.loc-list { display: grid; gap: 12px; }
.loc { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); }
.loc:hover { box-shadow: inset 0 0 0 1.5px var(--glass); color: var(--ink); }
.loc .thumb { width: 74px; height: 74px; border-radius: 6px; overflow: hidden; background: var(--paper); }
.loc .k { font-size: 14px; color: var(--muted); }
.loc .score { text-align: right; font: 400 26px/1 var(--display); color: var(--glass); }
.loc .score small { display: block; font: 400 12.5px/1.3 var(--sans); color: var(--muted); }
.kw-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.kw-tabs a { text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.kw-tabs a.on { background: var(--glass); color: var(--gold); box-shadow: none; }
.empty { background: #fff; border-radius: var(--radius); padding: 36px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.cands { display: grid; gap: 10px; margin: 14px 0; }
.cand { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 8px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.cand:has(input:checked) { box-shadow: inset 0 0 0 2px var(--glass); background: #f3f8f5; }
.cand input { margin-top: 5px; accent-color: var(--glass); }
.cand .a { font-size: 14px; color: var(--muted); }

/* reading pages */
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font: 400 30px/1.15 var(--display); color: var(--glass); margin: 2em 0 .5em; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { max-width: 68ch; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; text-align: left; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); padding: 22px 0; }
.post-list a { font: 700 21px/1.3 var(--sans); text-decoration: none; color: var(--ink); }
.post-list a:hover { color: var(--red); }

/* footer */
footer.foot { background: var(--glass-deep); color: #aac1b6; padding: 44px 0 36px; font-size: 14.5px; }
footer.foot .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.foot a { color: #e3ece7; text-decoration: none; }
footer.foot a:hover { color: var(--gold); }
footer.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.foot .sign { font-size: 22px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.nav a { white-space: nowrap; }
@media (max-width: 520px) {
  .brand .sign { font-size: 18px; white-space: nowrap; }
  .mark { width: 24px; height: 24px; }
  .nav { gap: 12px; }
  .nav .btn { padding: 8px 12px; font-size: 14px; }
  .plate { padding: 22px 18px; }
  .wrap, .narrow { width: calc(100% - 32px); }
}

.frame svg, .frame img { width: 100%; height: auto; }
html, body { overflow-x: clip; }

/* review fixes */
.window { border-bottom: 4px double rgba(224,173,69,.5); }
.notes.plain li { padding-left: 0; }
.notes.plain li::before { content: none; }
.notes.plain li h3 { border-top: 1.5px solid rgba(224,173,69,.45); padding-top: 14px; }
.star { display: inline-block; width: .85em; height: .85em; margin-left: 2px; vertical-align: -.05em; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.caption { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.lede.wide { max-width: 62ch; }
.lede b { color: #fff; }
.fix .meta { margin: 2px 0 6px; }

/* ---------- UI pass (20 Oct): motion, trust, annotated map, report preview ---------- */
section.band { padding: clamp(64px, 9vw, 120px) 0; }
.stack { position: relative; }
.stack > img { display: block; width: 100%; height: auto; }
.stack .overlay { position: absolute; inset: 0; }
.stack .overlay svg { width: 100%; height: 100%; }
/* The hero grid lights up from the business outward, once, like a sign switching on. */
.js .hero-map .pt { opacity: 0; animation: light-up .6s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(250ms + var(--d) * 1.5ms); }
@keyframes light-up { to { opacity: 1; } }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; font-size: 14.5px; color: var(--glass-text, #e3ece7); }
.trust li { display: flex; align-items: center; gap: 7px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.annotated .inner { position: relative; }
.callout { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; margin: -26px 0 0 26px; border-radius: 50%; background: var(--glass); color: var(--gold); font: 400 17px/34px var(--display); text-align: center; box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(6,26,19,.5); }
.report-preview { margin: 0; justify-self: center; max-width: 440px; transform: rotate(1.5deg); }
.report-preview img { border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 30px 60px -20px rgba(0,0,0,.6); }
.report-preview figcaption { font-size: 14px; color: #b5c9bf; margin-top: 14px; transform: rotate(-1.5deg); }
.band.glass .split { align-items: center; }
/* Sections settle into place as they enter. Visible by default; only animates when JS is on. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn { transition: background .2s cubic-bezier(.16, 1, .3, 1), transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1); }
.btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.18), 0 8px 18px -6px rgba(155,43,31,.55); }
@media (max-width: 860px) { .report-preview { transform: none; max-width: 360px; } .report-preview figcaption { transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .hero-map .pt, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* ---------- white-label client report (agency color via --brand, no display face) ---------- */
.wl { background: #f6f6f3; min-height: 100vh; }
.wl-top { background: var(--brand); color: var(--brand-ink, #fff); }
.wl-top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.wl-top img { height: 36px; width: auto; }
.wl-name { font: 800 20px/1 var(--sans); }
.wl-pdf { background: rgba(255,255,255,.16); color: var(--brand-ink, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-ink, #fff) 40%, transparent); }
.wl-pdf:hover { background: rgba(255,255,255,.28); }
.wl-head { padding: 40px 0 8px; }
.wl-head h1 { font: 800 clamp(30px, 4vw, 48px)/1.08 var(--sans); letter-spacing: -.02em; margin: 0 0 6px; }
.wl-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.wl-card { display: grid; gap: 4px; background: #fff; border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(20,24,31,.06), 0 10px 24px -16px rgba(20,24,31,.35); }
.wl-card .kw::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: 1px; }
.wl-card:hover { color: var(--ink); transform: translateY(-2px); }
.wl-card { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.wl-card .kw { font-weight: 700; font-size: 15px; }
.wl-card .big { font: 800 34px/1 var(--sans); letter-spacing: -.02em; }
.wl-card .big small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.wl-card .lbl { font-size: 13.5px; color: var(--muted); }
.chg { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.chg.up { color: #0c6b40; } .chg.down { color: #a32a24; }
.wl-search { padding: 18px 0; }
.wl-search h2, .wl-fixes h2 { font: 800 28px/1.15 var(--sans); letter-spacing: -.01em; margin: 0 0 10px; }
.wl-search h3 { margin: 22px 0 8px; font-size: 17px; }
.wl-line { font-size: 17px; margin: 0; }
.wl-frame { border: 3px solid var(--brand); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -24px rgba(20,24,31,.45); }
.wl-frame svg { width: 100%; height: auto; }
.wl-fixes { padding: 24px 0 64px; }
.wl-fixes .wrap { max-width: 900px; }
.wl .fix .n { background: var(--brand); color: var(--brand-ink, #fff); font-family: var(--sans); font-weight: 800; }
.wl-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }

/* Home hero: headline spans both columns so the form and the map share the first screen. */
.home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 0; align-items: start; padding-top: clamp(24px, 4vh, 48px); }
.home-hero > h1.sign { grid-column: 1 / -1; font-size: clamp(36px, min(4.4vw, 8vh), 58px); max-width: none; margin: 0 0 clamp(14px, 2.6vh, 26px); }
.home-hero .lede { margin-top: 0; }
.home-hero .display { max-width: min(100%, calc(100vh - 330px)); justify-self: end; width: 100%; margin-top: 4px; }
@media (max-width: 900px) { .home-hero > h1.sign { font-size: clamp(36px, 9vw, 52px); } .home-hero .display { justify-self: stretch; max-width: none; margin-top: 28px; } }
.hero-report { max-width: min(480px, calc((100vh - 160px) * .77)); justify-self: center; }
.weeks { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.weeks li { display: grid; gap: 2px; min-width: 92px; padding: 10px 12px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.weeks li.now { box-shadow: inset 0 0 0 2px var(--glass); }
.weeks .wk { font-size: 13px; color: var(--muted); }
.weeks .v { font: 400 24px/1 var(--display); color: var(--glass); }
.weeks .v small { font: 600 13px var(--sans); color: var(--muted); }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .home-hero > h1.sign { font-size: clamp(32px, 9.4vw, 46px); }
  .home-hero > div:not(.display) { order: 3; }
  .home-hero .display { order: 2; margin: 0 0 26px; }
  .home-hero .tag { position: static; transform: none; max-width: none; margin-top: 12px; box-shadow: none; }
}
@media (max-width: 520px) {
  .wl-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wl-card { padding: 14px; }
  .wl-card .big { font-size: 28px; }
  .wl-head { padding-top: 28px; }
  .wl-head h1 { margin-bottom: 18px; }
}

.app-head { border-bottom: 4px double rgba(224,173,69,.55); }
.thumb .mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 10px; height: 100%; }
.thumb .mini i { border-radius: 50%; background: var(--line); }
.plan-ended { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; align-items: start; }
.plan-ended .plate h2 { font: 400 30px/1.05 var(--display); color: var(--glass); margin: 0 0 10px; }
.plan-ended dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.plan-ended dt { color: var(--muted); }
.plan-ended dd { margin: 0; font-weight: 600; }
@media (max-width: 960px) { .plan-ended { grid-template-columns: minmax(0, 1fr); } }
.wl-dateline { color: var(--muted); margin: 0 0 22px; }
/* Proof tag hangs from the frame's bottom edge instead of covering map dots. */
@media (min-width: 901px) { .home-hero .tag { position: relative; left: auto; bottom: auto; display: inline-block; margin: -18px 0 0 22px; max-width: 360px; } }
.summary-note { margin-top: 34px; max-width: 70ch; } .summary-note p { margin: 0 0 8px; color: var(--muted); }
.crumbs { font-size: 14px; color: #b5c9bf; margin: 0 0 14px; }
.crumbs a { color: var(--gold); }
.facts { margin: 0; padding-left: 18px; }
.facts li { margin: 0 0 8px; }
.hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.hub h2 { font: 400 24px/1.1 var(--display); color: var(--glass); margin: 0 0 10px; text-transform: capitalize; }
.hub ul { margin: 0; padding-left: 18px; }
.cta-plate .plate .fine, .cta-plate .plate label { color: var(--muted); } .cta-plate .plate label { color: var(--ink); } .notes.plain li p { margin: 0 0 10px; }

.watch { margin: 0; padding-left: 18px; }
.watch li { margin: 0 0 8px; }
.watch li.alert { color: #a32a24; font-weight: 600; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.days { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.days legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.tool textarea#out { width: 100%; font: 13px/1.45 ui-monospace, Consolas, monospace; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfa; margin-bottom: 12px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } }

.copyrow { display: flex; gap: 8px; margin: 10px 0; }
.copyrow input { flex: 1; min-width: 0; font: 14px ui-monospace, Consolas, monospace; }
.compare td:first-child { font-weight: 600; }
.compare td:nth-child(2) { background: rgba(15,122,74,.06); }
pre.api { background: #0f241c; color: #e3ece7; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font: 13px/1.5 ui-monospace, Consolas, monospace; }

/* Gap recheck: prices need room for real allowances instead of narrow text columns. */
.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.plan { padding: 30px; }
.plan li { font-size: 16px; line-height: 1.55; padding-top: 10px; padding-bottom: 10px; }
.scan-pool-note { max-width: 90ch; border-left: 4px solid var(--gold); padding: 16px 20px; background: #fff; margin: 0 0 32px; }
.plan-allowances { background: var(--enamel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; margin-top: 32px; }
.plan-allowances h2 { font: 400 26px/1.3 var(--display); color: var(--glass); margin: 0 0 20px; }
.plan-allowances dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 40px; margin: 0; }
.plan-allowances dt { font-weight: 700; margin-bottom: 8px; }
.plan-allowances dd { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 700px) {
  .plans, .plan-allowances dl { grid-template-columns: minmax(0,1fr); }
  .plan, .plan-allowances { padding: 24px; }
}

/* Gap recheck: shared dashboard surfaces use clear, spacious task groups. */
.app-body { padding-top: 36px; }
.app-body > .panel, .app-body > .plate, .app-body .result-grid > div > .panel {
  padding: 28px; background: var(--enamel); border: 1px solid var(--line); border-radius: 12px;
}
.app-body .panel h2 { font-size: 25px; line-height: 1.3; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.app-body .panel + .panel, .app-body > form + form { margin-top: 28px; }
.app-body .plate { box-shadow: 0 5px 18px -14px var(--glass); }
.app-body .plate .plate { box-shadow: none; border: 1px solid var(--line); }
.app-body form > label, .app-body form > select, .app-body form > input:not([type=hidden]), .app-body form > textarea { margin-bottom: 16px; }
.app-body form > .btn { margin-top: 12px; }
.app-body fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin: 18px 0; }
.app-body legend { font-weight: 700; color: var(--glass); padding: 0 8px; }
.app-body fieldset label { margin: 12px 0; line-height: 1.6; }
.app-body :is(.row2,.row3,.result-grid) { gap: 24px; }
.app-body :is(.row2,.row3,.result-grid) > * { min-width: 0; }
.app-body :is(code,pre,a,p,li,dd,label,button) { overflow-wrap: anywhere; }
.app-body pre { white-space: pre-wrap; }
.app-body table { display: block; max-width: 100%; overflow-x: auto; }
.subnav { gap: 8px; margin-top: 24px; }
.subnav a { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 9px 12px; line-height: 1.4; }
.subnav a.on { background: var(--glass); color: #fff; border-color: var(--glass); }
@media (max-width: 700px) {
  .app-body > .panel, .app-body > .plate, .app-body .result-grid > div > .panel { padding: 22px; }
  .app-body .plate { max-width: 100%; }
  .subnav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .subnav a { margin-left: 0 !important; font-size: 14px; }
  .app-body .row2, .app-body .row3 { grid-template-columns: minmax(0,1fr); }
  .app-body .freq-row { flex-wrap: wrap; gap: 10px; }
}

/* Useful, honest empty indices link to existing material instead of a blank column. */
.empty-hub { width: 100%; max-width: 1120px; margin: 0 auto; }
.empty-hub > h2 { font: 400 clamp(26px,3vw,36px)/1.3 var(--display); color: var(--glass); margin: 10px 0 18px; }
.empty-hub > p { max-width: 72ch; }
.empty-hub .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; color: var(--muted); }
.lesson-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 28px 0; }
.lesson-cards > a { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--enamel); text-decoration: none; }
.lesson-cards > a:hover { border-color: var(--glass); }
.lesson-cards span { font-size: 13px; font-weight: 700; color: var(--muted); }
.lesson-cards h3 { color: var(--glass); line-height: 1.35; margin: 8px 0 12px; font-size: 20px; }
.lesson-cards p { color: var(--muted); font-size: 15px; margin: 0; }
.empty-map-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; margin-top: 32px; }
.hubs:has(> .empty-hub) { display: block; }
@media (max-width: 700px) { .lesson-cards, .empty-map-grid { grid-template-columns: minmax(0,1fr); } }

/* "More tools" under the app tabs (2026-11-04 customer-flow pass) */
.subnav .more-tools { position: relative; }
.subnav .more-tools summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 9px 12px; line-height: 1.4; }
.subnav .more-tools summary::-webkit-details-marker { display: none; }
.subnav .more-tools summary::after { content: " \25BE"; }
.subnav .more-tools[open] summary { border-color: var(--glass); color: var(--glass); }
.subnav .more-tools-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; display: grid; gap: 4px; min-width: 230px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shade); }
.subnav .more-tools-list a { border: 0; background: transparent; padding: 8px 10px; }
.subnav .more-tools-list a:hover { background: var(--line); }
@media (max-width: 700px) { .subnav .more-tools { grid-column: 1 / -1; } .subnav .more-tools-list { position: static; box-shadow: none; margin-top: 6px; } }
