/* KitchenScope — local service design system (preview) */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --soft: #eeeae2;
  --ink: #15202b;
  --ink-2: #364350;
  --muted: #5f6a76;
  --line: #e2ddd2;
  --call: #c2410c;
  --call-hover: #9a3412;
  --data: #0f5e57;
  --data-2: #3f8f86;
  --data-3: #8fc3bb;
  --data-soft: #e3efec;
  --warn: #8a5a00;
  --warn-soft: #fbf0d6;
  --dark: #15202b;
  --dark-2: #22303d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 32, 43, .06), 0 8px 24px -12px rgba(21, 32, 43, .18);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); }
img, svg { max-width: 100%; display: block; }
a { color: var(--data); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--call); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 760; }
h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 720; }
h3 { font-size: 19px; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
.kicker { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--data); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* preview strip */
.preview-strip { background: var(--warn-soft); color: var(--warn); font-size: 14px; border-bottom: 1px solid #eedbb0; }
.preview-strip .wrap { padding: 7px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.preview-strip b { font-weight: 650; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 20px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.btn-call { display: inline-flex; align-items: center; gap: 10px; background: var(--call); color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 20px; font-size: 17px; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(194, 65, 12, .7); }
.btn-call:hover { background: var(--call-hover); color: #fff; }
.btn-call svg { width: 18px; height: 18px; flex: none; }
.btn-call .lbl { font-weight: 500; opacity: .9; white-space: nowrap; }
.btn-call .num { white-space: nowrap; }
.site-header .btn-call { padding: 10px 16px; font-size: 16px; }
@media (max-width: 860px) { .nav { display: none; } .site-header .btn-call .lbl { display: none; } .site-header .btn-call { margin-left: auto; } }

/* breadcrumb */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #b5ada0; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { padding: 26px 0 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 520px) { .cta-row .btn-call { width: 100%; justify-content: center; flex-wrap: wrap; gap: 2px 8px; font-size: 17px; padding: 14px 18px; } .zipcheck { width: 100%; } .zipcheck input { flex: 1; width: auto; min-width: 0; } h1 { font-size: 31px; } }
.hero .place { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--ink-2); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 22px 0 14px; }
.cta-row .btn-call { font-size: 19px; padding: 15px 26px; }
.reassure { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--muted); }
.reassure li { display: flex; gap: 6px; align-items: center; }
.reassure li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--data-2); }

/* zip check */
.zipcheck { display: flex; gap: 8px; align-items: stretch; }
.zipcheck label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zipcheck input { width: 9.5em; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid #cfc8ba; border-radius: 999px; background: var(--surface); color: var(--ink); }
.zipcheck button { font: inherit; font-weight: 650; font-size: 16px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.zipcheck button:hover { background: var(--ink); color: #fff; }
.zip-result { min-height: 1.6em; font-size: 15px; margin-top: 6px; }
.zip-result.ok { color: var(--data); font-weight: 600; }
.zip-result.no { color: var(--warn); font-weight: 600; }

/* town panel */
.town-panel { background: var(--dark); color: #e9eef2; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.town-panel h2 { font-size: 18px; color: #fff; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.town-panel h2 span { font-size: 13px; font-weight: 500; color: #9fb0bf; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 20px; }
.stat { background: var(--dark-2); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 26px; font-weight: 720; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: #a9b7c4; line-height: 1.35; display: block; }
.agebar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--dark-2); }
.agebar i { display: block; height: 100%; }
.age-legend { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 16px; margin-top: 10px; font-size: 13px; color: #b9c6d2; }
.age-legend span { display: inline-flex; gap: 6px; align-items: center; }
.age-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.panel-src { font-size: 12.5px; color: #8fa1b1; margin: 14px 0 0; }
.panel-src a { color: #b9d7d2; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } .stat:last-child { grid-column: span 2; } .age-legend { grid-template-columns: repeat(2, auto); } }

/* sections */
.section { padding: 52px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head p { color: var(--ink-2); }

/* insight cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 4px; }
.card .ctx { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.card p { font-size: 16px; }
.card blockquote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--data-3); background: var(--data-soft); font-size: 15px; color: var(--ink-2); border-radius: 0 8px 8px 0; }
.src { margin-top: auto; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); }
.src a { color: var(--muted); }
.tag-partial { font-size: 12px; background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }

/* match block */
.match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .match { grid-template-columns: minmax(0, 1fr); } }
.match-box { border-radius: var(--radius); padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.match-box.primary { border: 2px solid var(--data); }
.match-box.pending { border: 2px dashed #d6b46a; background: #fffbf1; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--data); border-bottom: 2.5px solid var(--data); transform: rotate(-45deg); }
.zips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.zip { font-variant-numeric: tabular-nums; font-weight: 650; padding: 6px 12px; border-radius: 8px; font-size: 15px; }
.zip small { font-weight: 500; opacity: .8; margin-left: 4px; }
.zip.on { background: var(--data-soft); color: var(--data); border: 1px solid #bcd9d3; }
.zip.off { background: transparent; color: var(--muted); border: 1px dashed #c9c1b2; }

/* options */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.opt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section.alt .opt { background: var(--bg); }
.opt dl { margin: 10px 0 0; font-size: 15.5px; }
.opt dt { font-weight: 650; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 10px; }
.opt dd { margin: 2px 0 0; }

/* permit card */
.permit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (max-width: 860px) { .permit { grid-template-columns: minmax(0, 1fr); } }
.permit-main { padding: 26px; }
.permit-side { background: var(--soft); padding: 26px; font-size: 16px; }
.permit-side dt { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; margin-top: 14px; }
.permit-side dt:first-child { margin-top: 0; }
.permit-side dd { margin: 2px 0 0; overflow-wrap: anywhere; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 15.5px; }
.section.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.steps b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.factors { columns: 2; column-gap: 24px; padding-left: 18px; margin: 0; }
@media (max-width: 560px) { .factors { columns: 1; } }
.factors li { margin-bottom: 6px; break-inside: avoid; }
.ask li { margin-bottom: 8px; }

/* faq */
.faq { max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: var(--ink-2); }

/* hub */
.matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mcell { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
a.mcell:hover { border-color: var(--ink); }
.mcell b { font-size: 17px; }
.mcell span { font-size: 15px; color: var(--muted); }
.status { align-self: flex-start; font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 2px 10px; margin-top: 6px; }
.status.covered { background: var(--data-soft); color: var(--data); }
.status.onboarding { background: var(--warn-soft); color: var(--warn); }
.decide { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.decide li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.decide a { font-weight: 650; white-space: nowrap; }
@media (max-width: 560px) { .decide li { grid-template-columns: minmax(0, 1fr); } }

/* links */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.linkgrid ul { list-style: none; padding: 0; margin: 0; }
.linkgrid li { border-top: 1px solid var(--line); padding: 9px 0; font-size: 16px; }
.linkgrid li small { color: var(--muted); }

/* CTA band */
.band { background: var(--dark); color: #e9eef2; padding: 46px 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { margin: 0; color: #b8c5d1; }

/* footer */
footer { background: #0f171f; color: #9aa8b5; font-size: 14px; padding: 36px 0 90px; }
footer a { color: #c7d3dd; }
footer .cols { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 18px; }
.disclaimer { max-width: 900px; line-height: 1.55; }

/* sticky mobile call */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); display: none; gap: 10px; align-items: center; }
.callbar .btn-call { flex: 1; justify-content: center; }
.callbar > span { font-size: 13px; color: var(--muted); max-width: 9em; line-height: 1.25; }
@media (max-width: 760px) { .callbar { display: flex; } footer { padding-bottom: 110px; } }

/* preview index */
.pv-scroll { overflow-x: auto; }
.pv-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 15.5px; }
.pv-table th, .pv-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pv-table th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bar { height: 8px; background: var(--soft); border-radius: 4px; min-width: 120px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--data-2); }
.bar.hot i { background: var(--call); }
@media (max-width: 520px) { .match-box .btn-call { flex-wrap: wrap; gap: 2px 8px; width: 100%; justify-content: center; } }
@media (max-width: 380px) { .site-header .wrap { gap: 10px; } .brand small { display: none; } .brand { font-size: 18px; } .site-header .btn-call { padding: 9px 12px; font-size: 15px; } .site-header .btn-call svg { display: none; } }
