/*
  Florida Probate Weekly design system
  Generic primitives: .container, .section-pad, .section-heading, .button,
  .button-primary, .button-secondary, .button-row, .card, .kicker, .sr-only.
  Page components use descriptive names and inherit the tokens below so county
  and legal pages can adopt this system without duplicating values.
*/
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-700-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-600-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-700-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --ink: #0b1f33;
  --ink-soft: #34495d;
  --navy-2: #102a43;
  --paper: #fafaf7;
  --card: #ffffff;
  --muted: #5c6875;
  --line: #dce2e4;
  --line-dark: rgba(255, 255, 255, .16);
  --accent: #087a55;
  --accent-dark: #056043;
  --accent-bright: #43d4a7;
  --accent-soft: #e2f3ed;
  --danger: #a63d3d;
  --shadow-sm: 0 1px 2px rgba(11,31,51,.05), 0 6px 18px rgba(11,31,51,.05);
  --shadow-md: 0 2px 4px rgba(11,31,51,.05), 0 18px 45px rgba(11,31,51,.09);
  --radius-sm: 12px;
  --radius: 16px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --container: 1160px;
  --font-body: Inter, "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter Tight Fallback", Inter, ui-sans-serif, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, object { display: block; max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 5.35vw, 4.45rem); line-height: .99; }
h2 { margin-bottom: var(--space-2); font-size: clamp(2.25rem, 4vw, 3.55rem); line-height: 1.03; }
h3 { font-size: 1.25rem; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 960px; }
.section-pad { padding-block: var(--space-12); }
.section-heading { max-width: 650px; }
.section-heading.centered { margin: 0 auto var(--space-6); text-align: center; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.kicker { margin-bottom: 12px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.kicker.light { color: var(--accent-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0; clip: rect(0,0,0,0); white-space: nowrap; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; line-height: 1; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(11,31,51,.12); }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.button-secondary { border-color: #aeb9c1; background: #fff; color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); background: #f7f9f8; color: var(--ink); }
.button-small { min-height: 40px; padding-inline: 16px; font-size: .84rem; }
.button-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.test-banner { height: 28px; padding: 5px 16px; overflow: hidden; background: var(--ink); color: #fff; font-size: .69rem; font-weight: 700; letter-spacing: .12em; line-height: 18px; text-align: center; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(11,31,51,.08); background: rgba(250,250,247,.94); backdrop-filter: blur(14px); }
.nav-shell { display: flex; width: min(calc(100% - 48px), var(--container)); height: 72px; align-items: center; gap: var(--space-3); margin-inline: auto; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-size: .98rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; }
.desktop-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.desktop-nav a { color: var(--ink-soft); font-size: .86rem; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover { color: var(--accent); }
.nav-cta { flex: none; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mobile-menu nav { position: absolute; top: 48px; right: 0; display: grid; width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); }
.mobile-menu nav a { padding: 10px 12px; border-radius: 7px; color: var(--ink); font-weight: 600; text-decoration: none; }

.hero { position: relative; overflow: hidden; padding-block: 28px; background: radial-gradient(circle at 78% 23%, rgba(8,122,85,.085), transparent 34%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(410px,5fr); align-items: center; gap: 48px; }
.hero-copy h1 { font-size: clamp(3.25rem,4.45vw,3.75rem); line-height: 1; }
.hero-copy h1 { max-width: 700px; margin-bottom: var(--space-3); }
.hero-subhead { max-width: 625px; margin-bottom: var(--space-4); color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; color: var(--muted); font-size: .77rem; font-weight: 600; }
.trust-line span { position: relative; padding-left: 15px; }
.trust-line span::before { position: absolute; top: .58em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }

.product-visual { position: relative; min-width: 0; padding: 16px 16px 20px; border: 1px solid rgba(11,31,51,.14); border-radius: 18px; background: #f1f4f3; box-shadow: var(--shadow-md); transform: perspective(1100px) rotateY(-2deg) rotateX(1deg); }
.visual-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-soft); font-size: .74rem; font-weight: 700; }
.visual-brand { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: .67rem; }
.visual-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); font-size: .64rem; }
.visual-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.lead-stack { display: grid; gap: 9px; }
.mini-lead { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.mini-lead-two { margin-left: 18px; }
.mini-lead-three { margin-left: 36px; }
.mini-lead-head, .mini-sources { display: flex; align-items: center; gap: 8px; }
.mini-lead-head > span:first-child { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.confidence { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 8px; border-radius: 99px; font-size: .64rem; font-style: normal; font-weight: 700; line-height: 1; }
.confidence.high { background: var(--accent-soft); color: var(--accent-dark); }
.confidence.likely { background: #eef0f2; color: var(--ink-soft); }
.mini-address { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0; }
.mini-address strong { font-family: var(--font-display); font-size: .95rem; }
.mini-address small { color: var(--muted); font-size: .72rem; }
.mini-lead dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; padding-block: 9px; border-block: 1px solid #edf0f1; }
.mini-lead dl div + div { padding-left: 10px; border-left: 1px solid #edf0f1; }
.mini-lead dt { color: var(--muted); font-size: .66rem; font-weight: 600; text-transform: uppercase; }
.mini-lead dd { margin: 2px 0 0; font-size: .8rem; font-weight: 700; }
.mini-sources { margin-top: 10px; font-size: .7rem; }
.mini-sources > span { color: var(--muted); }
.mini-sources a + a::before { content: "· "; color: var(--muted); font-weight: 400; }
.hero-lee { margin: -8px 0 24px; color: var(--ink, #0b1f33); font-weight: 600; font-size: .95rem; }
.mini-sources a { font-weight: 700; text-decoration: none; }
.visual-caption { display: flex; justify-content: space-between; margin: 13px 4px 0; color: var(--muted); font-size: .63rem; font-weight: 600; }

.numbers { padding-block: 34px; background: var(--ink); color: #fff; }
.stat-grid { display: grid; grid-template-columns: .8fr .8fr 1fr 1.25fr; }
.stat { display: grid; gap: 1px; min-height: 76px; align-content: center; padding-inline: 28px; border-left: 1px solid var(--line-dark); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong { color: var(--accent-bright); font-family: var(--font-display); font-size: 1.68rem; letter-spacing: -.025em; line-height: 1.2; }
.stat > span { font-size: .82rem; font-weight: 600; }
.stat small { display: block; margin-top: 3px; color: #aebcca; font-size: .63rem; font-weight: 400; line-height: 1.35; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; min-height: 250px; padding: 30px 32px; border: 1px solid var(--line); background: var(--card); }
.steps li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.steps li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.steps li + li { margin-left: -1px; }
.steps svg { width: 42px; height: 42px; margin: 28px 0 22px; fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.step-number { position: absolute; top: 24px; right: 24px; color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .1em; }
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }

.anatomy-section { background: #f1f4f3; }
.anatomy-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 28px 42px; }
.anatomy-heading { grid-column: 1 / -1; }
.anatomy-card { align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); }
.anatomy-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.anatomy-card-head > div { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; }
.anatomy-card-head .field-label { grid-column: 2; }
.anatomy-card-head strong { grid-column: 2; font-size: .87rem; }
.marker, .anatomy-legend i { display: inline-grid; flex: none; width: 20px; height: 20px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; background: #fff; color: var(--accent-dark); font: 700 .62rem/1 var(--font-body); }
.confidence .marker { width: 18px; height: 18px; margin: -3px 0; background: transparent; font-size: .55rem; }
.field-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .63rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field-label .marker { width: 18px; height: 18px; font-size: .55rem; }
.anatomy-primary { display: flex; align-items: center; gap: 14px; padding: 26px 24px; background: #fbfcfb; }
.anatomy-primary h3 { margin: 4px 0 1px; font-size: 1.75rem; }
.anatomy-primary p { margin: 0; color: var(--muted); font-size: .71rem; }
.anatomy-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.anatomy-grid > div { min-width: 0; padding: 18px 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.anatomy-grid > div:nth-child(4n) { border-right: 0; }
.anatomy-grid strong { display: block; margin-top: 8px; font-size: .8rem; }
.anatomy-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 24px; border-top: 1px solid var(--line); background: var(--ink); color: #fff; font-size: .75rem; }
.anatomy-sources .marker { border-color: var(--accent-bright); background: transparent; color: var(--accent-bright); }
.anatomy-sources span:nth-child(2) { margin-right: auto; color: #bdc8d1; }
.anatomy-sources a { color: var(--accent-bright); font-weight: 700; text-decoration: none; }
.anatomy-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-content: start; margin: 0; padding: 0; list-style: none; }
.anatomy-legend li { display: flex; gap: 9px; min-width: 0; color: var(--muted); font-size: .67rem; line-height: 1.35; }
.anatomy-legend strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .72rem; }

.comparison-section { background: #fff; }
.comparison-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .86rem; }
.comparison-table th, .comparison-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table thead th { background: #f3f5f4; color: var(--muted); font-size: .72rem; letter-spacing: .035em; text-transform: uppercase; }
.comparison-table thead th:first-child { width: 25%; }
.comparison-table thead th:nth-child(2) { width: 34%; background: var(--ink); color: #fff; }
.comparison-table tbody th { font-size: .78rem; }
.comparison-table tbody td:nth-child(2) { background: #f1f9f6; color: var(--ink); font-weight: 600; }
.yes { margin-right: 8px; color: var(--accent); font-weight: 800; }
.evidence-note { margin: 14px auto 0; color: var(--muted); font-size: .68rem; text-align: center; }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.price-card { position: relative; display: grid; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.price-card.recommended { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.recommended-label { position: absolute; top: 0; right: 24px; margin: 0; padding: 7px 12px; border-radius: 0 0 8px 8px; background: var(--accent); color: #fff; font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.price-name { margin-bottom: 8px; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.price { display: inline; margin: 0; font-family: var(--font-display); font-size: 3.8rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.price span { margin-right: 2px; font-size: 1.5rem; vertical-align: top; }
.price-term { display: inline; margin-left: 8px; color: var(--muted); font-size: .75rem; }
.feature-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 25px; color: var(--ink-soft); font-size: .86rem; }
.feature-list li::before { position: absolute; top: 3px; left: 0; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); content: "✓"; font-size: .65rem; font-weight: 800; }
.statement-note, .county-request-note { text-align: center; }
.statement-note { margin: 22px 0 0; color: var(--muted); font-size: .72rem; }
.county-request-note { margin: 10px 0 0; font-size: .85rem; }

.coverage-section { overflow: hidden; background: #edf2f0; }
.coverage-grid { display: grid; grid-template-columns: minmax(300px,5fr) minmax(0,7fr); align-items: center; gap: 42px; }
.coverage-copy h2 { max-width: 400px; }
.coverage-copy > p:not(.kicker) { max-width: 410px; color: var(--muted); }
.map-legend { display: flex; gap: 22px; margin-top: 26px; color: var(--ink-soft); font-size: .75rem; font-weight: 600; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 15px; height: 15px; border: 1px solid #c7cecb; }
.legend-live { border-color: var(--accent) !important; background: var(--accent); }
.legend-request { background: #e7ebe9; }
.map-frame { display: grid; min-width: 0; place-items: center; }
.map-frame object { width: min(100%,590px); height: auto; aspect-ratio: 550 / 520; }
.county-fallback { display: none; margin-top: 28px; }
.county-fallback label { display: block; margin-bottom: 7px; font-size: .75rem; font-weight: 700; }
.county-fallback > div { display: flex; gap: 8px; }
.county-fallback select { min-width: 0; flex: 1; }

.sample-section { background: var(--ink); color: #fff; }
.sample-grid { display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: center; }
.sample-copy h2 { color: #fff; }
.sample-copy > p:not(.kicker) { max-width: 560px; color: #c0cbd4; font-size: 1.05rem; }
.sample-copy ul { display: grid; gap: 9px; margin: 26px 0 0; padding: 0; color: #d7dfe5; font-size: .85rem; list-style: none; }
.sample-copy li { position: relative; padding-left: 23px; }
.sample-copy li::before { position: absolute; left: 0; color: var(--accent-bright); content: "✓"; font-weight: 800; }
.sample-form { display: grid; gap: 15px; padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
label { color: var(--ink); font-size: .76rem; font-weight: 700; }
label > span { color: var(--muted); font-weight: 500; }
input, select { width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 12px; border: 1px solid #b7c1c8; border-radius: 9px; background: #fff; color: var(--ink); }
input::placeholder { color: #7b8792; }
input:focus, select:focus { border-color: var(--accent); outline: 3px solid rgba(67,212,167,.35); outline-offset: 1px; }
.trap { position: absolute; left: -10000px; }
.form-note, .fallback, #form-status { margin: 0; font-size: .67rem; line-height: 1.45; }
.form-note { color: var(--muted); text-align: center; }
#form-status { min-height: 1.2em; color: var(--accent-dark); font-weight: 700; text-align: center; }
#form-status[data-error="true"] { color: var(--danger); }
.fallback { color: var(--muted); text-align: center; }

/* Home-only vertical rhythm. Keep shared section primitives unchanged. */
#how, .anatomy-section, .comparison-section, #pricing, .coverage-section, .sample-section, #faq { padding-block: 80px; }

.faq-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: 80px; align-items: start; }
.faq-layout .section-heading { position: sticky; top: 116px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 42px 22px 0; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: absolute; top: 50%; right: 8px; width: 16px; height: 16px; transform: translateY(-50%); }
.faq-list summary span::before, .faq-list summary span::after { position: absolute; top: 7px; left: 1px; width: 14px; height: 1.5px; background: var(--accent); content: ""; }
.faq-list summary span::after { transform: rotate(90deg); transition: transform .15s ease; }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { margin: -4px 46px 22px 0; color: var(--muted); font-size: .88rem; }

.site-footer { padding: 70px 0 24px; background: #071827; color: #c7d1d9; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .65fr 1.1fr; gap: 48px; padding-bottom: 52px; }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.footer-brand p { max-width: 310px; margin: 16px 0 0; color: #9eacb8; font-size: .82rem; }
.footer-label { margin-bottom: 13px; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid a { color: #bdc9d2; font-size: .76rem; text-decoration: none; }
.footer-grid a:hover { color: var(--accent-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line-dark); color: #8293a1; font-size: .66rem; }

/* Shared support for existing county, legal, and private-access pages. */
.legal, .private-page { width: min(calc(100% - 48px), 780px); margin-inline: auto; padding-block: var(--space-8); }
.legal h1, .private-page h1 { margin: 24px 0; font-size: clamp(2.7rem, 7vw, 4.7rem); line-height: 1; }
.legal h2, .private-page h2 { margin-top: 36px; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.private-card, .empty-state { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

@media (max-width: 1020px) {
  .desktop-nav { gap: 18px; }
  .hero { padding-block: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 760px; }
  .product-visual { width: min(100%, 680px); margin-inline: auto; transform: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 18px 26px; border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .anatomy-layout { grid-template-columns: 1fr; }
  .anatomy-card { max-width: 760px; }
  .anatomy-legend { grid-template-columns: repeat(3,1fr); }
  .coverage-grid { grid-template-columns: minmax(230px,.78fr) minmax(0,1.22fr); gap: 30px; }
  .coverage-copy { max-width: 650px; }
  .map-frame { width: 100%; margin-inline: auto; }
  .sample-grid { grid-template-columns: 1fr 420px; gap: 42px; }
  .faq-layout { gap: 46px; }
  .footer-grid { grid-template-columns: 1.3fr .7fr .7fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --space-12: 64px; }
  .container, .nav-shell { width: min(calc(100% - 32px), var(--container)); }
  .desktop-nav { display: none; }
  .nav-shell { height: 64px; gap: 10px; }
  .nav-cta { margin-left: auto; min-height: 38px; padding-inline: 12px; font-size: .76rem; }
  .mobile-menu { display: block; }
  .hero { padding-block: 54px; }
  .hero-grid { gap: 38px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); }
  .mini-lead-two, .mini-lead-three { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 230px; }
  .steps li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .steps li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .steps li + li { margin: -1px 0 0; }
  .steps svg { margin: 28px 0 22px; }
  .anatomy-grid { grid-template-columns: 1fr 1fr; }
  .anatomy-grid > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .anatomy-grid > div:nth-child(2n) { border-right: 0; }
  .anatomy-legend { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; gap: 24px; }
  .coverage-copy { max-width: 100%; }
  .county-fallback { display: block; }
  .sample-grid { grid-template-columns: 1fr; gap: 38px; }
  .sample-form { max-width: 560px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-heading { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  #how, .anatomy-section, .comparison-section, #pricing, .coverage-section, .sample-section, #faq { padding-block: 44px; }
  .section-heading { margin-bottom: 24px; }
}

@media (max-width: 520px) {
  .brand > span { max-width: 8.5em; font-size: .8rem; line-height: 1.15; }
  .hero { padding-block: 42px 46px; }
  .hero-grid { gap: 30px; }
  .hero-copy h1 { font-size: 2.3rem; line-height: 1.02; }
  .hero-subhead { margin-bottom: 24px; font-size: .98rem; }
  .trust-line { margin-top: 18px; }
  .button-row { display: grid; }
  .button-row .button { width: 100%; }
  .product-visual { padding: 10px; border-radius: 14px; }
  .mini-lead { padding: 13px; }
  .mini-address { display: grid; gap: 2px; }
  .mini-lead dl div + div { padding-left: 7px; }
  .mini-sources { flex-wrap: wrap; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 104px; padding: 14px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat strong { font-size: 1.35rem; }
  .stat > span { font-size: .7rem; }
  .anatomy-card-head { padding: 16px; }
  .anatomy-primary { padding: 22px 16px; }
  .anatomy-primary h3 { font-size: 1.35rem; }
  .anatomy-grid > div { padding: 14px 10px; }
  .anatomy-grid strong { font-size: .7rem; }
  .anatomy-sources { padding: 16px; }
  .anatomy-sources span:nth-child(2) { width: calc(100% - 34px); margin-right: 0; }
  .anatomy-legend { grid-template-columns: 1fr; }
  .comparison-wrap { overflow: hidden; }
  .comparison-table, .comparison-table thead, .comparison-table tbody { display: block; width: 100%; }
  .comparison-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .comparison-table tbody tr:last-child { border-bottom: 0; }
  .comparison-table th, .comparison-table td { width: auto !important; border-bottom: 0; overflow-wrap: anywhere; }
  .comparison-table thead th:first-child { display: none; }
  .comparison-table thead th { padding: 10px 12px; font-size: .66rem; }
  .comparison-table tbody th { grid-column: 1 / -1; padding: 10px 12px 2px; color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
  .comparison-table tbody td { padding: 2px 12px 11px; font-size: .8rem; line-height: 1.35; }
  .comparison-table tbody td:nth-child(2) { background: transparent; }
  .yes { margin-right: 7px; }
  .price-card { padding: 26px 22px; }
  .map-frame { width: min(100%,360px); margin: -2px auto 0; }
  .sample-form { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
  .footer-grid a { overflow-wrap: anywhere; }
  .footer-bottom { display: grid; justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .button:hover { transform: none; }
}

/* Product visual: no text under 12px (reviewer check). */
.product-visual .visual-topbar, .product-visual .visual-topbar span, .product-visual .mini-lead-head > span, .product-visual .confidence,
.product-visual .mini-address small, .product-visual .mini-lead dt, .product-visual .mini-sources, .product-visual .visual-caption span { font-size: .75rem; }
.product-visual .mini-lead dd { font-size: .85rem; }

/* Phones: shorter page. Icon beside each step, two hero cards, legend replaced by the card's own labels. */
@media (max-width: 520px) {
  .steps li { min-height: 0; padding: 20px 20px 20px 76px; }
  .steps svg { position: absolute; top: 22px; left: 20px; width: 36px; height: 36px; margin: 0; }
  .steps .step-number { top: 20px; }
  .product-visual .mini-lead-three { display: none; }
  .anatomy-legend { display: none; }
}

/* Plain sample-lead card: heading beside the card, no numbered badges or legend. */

/* Map tooltip */
.map-frame { position: relative; }
.map-frame > svg { width: min(100%, 590px); height: auto; aspect-ratio: 550 / 520; }
.map-frame > svg .county { fill: #cbd6d1; stroke: #718078; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .16s ease, stroke .16s ease; }
.map-frame > svg a:hover .county, .map-frame > svg a:focus-visible .county { fill: #ddf3ea; stroke: #087a55; stroke-width: 3; }
.map-frame > svg a:focus { outline: none; }
.map-frame > svg .county.live { fill: #087a55; stroke: #064d38; }
.map-frame > svg a:hover .county.live, .map-frame > svg a:focus-visible .county.live { fill: #bfead9; stroke: #43d4a7; }
.map-frame > svg .live-callout { pointer-events: none; }
.map-frame > svg .live-callout .leader { fill: none; stroke: #0b1f33; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map-frame > svg .live-callout .pin { fill: #fff; stroke: #0b1f33; stroke-width: 2; vector-effect: non-scaling-stroke; }
.map-frame > svg .live-callout rect { fill: #fff; stroke: #a6b5ae; stroke-width: 1; filter: drop-shadow(0 2px 3px rgba(11,31,51,.14)); }
.map-frame > svg .live-callout text { fill: #0b1f33; font: 700 13px Inter,Arial,sans-serif; }
.map-frame > svg .live-callout tspan { fill: #087a55; font-size: 10px; }
.map-tooltip { position: absolute; z-index: 2; display: flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #a6b5ae; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(11,31,51,.14); color: #0b1f33; font-size: .75rem; font-weight: 700; line-height: 1.2; pointer-events: none; white-space: nowrap; }
.map-tooltip[hidden] { display: none; }
.map-tooltip.is-interactive { gap: 10px; max-width: calc(100% - 16px); padding: 7px 8px 7px 12px; pointer-events: auto; white-space: normal; }
.map-tooltip-action { display: none; flex: none; }
.map-tooltip.is-interactive .map-tooltip-action { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .map-frame > svg .county { transition: none; } }
@media (max-width: 520px) {
  .map-frame > svg .live-callout { opacity: 0; }
  .map-tooltip.is-interactive { align-items: stretch; flex-direction: column; gap: 8px; }
  .map-tooltip.is-interactive .map-tooltip-action { width: 100%; }
}
.anatomy-plain { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; }
.anatomy-plain .anatomy-heading { grid-column: auto; }
.anatomy-plain .anatomy-grid strong { font-size: .95rem; }

/* Free week signup. */
.free-week-section { background: var(--accent-soft); }
.free-week-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; }
.free-week-inner .sample-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
@media (max-width: 1020px) { .anatomy-plain { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .free-week-inner { grid-template-columns: 1fr; gap: 20px; } }

/* Final logo */
.brand { gap: 10px; }
.brand > span { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.visual-brand { display: inline-grid; place-items: center; background: transparent !important; }

/* Who to contact + work-first score on the sample lead. */
.contact-block, .score-block { padding: 16px 20px; border-top: 1px solid var(--line); }
.contact-title, .score-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.contact-title span { color: var(--muted); font: 600 .75rem/1.3 var(--font-body); }
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.contact-list li { display: grid; grid-template-columns: 52px 1.3fr 1.2fr auto; gap: 10px; align-items: baseline; font-size: .85rem; }
.contact-list li span { color: var(--muted); }
.contact-list li b { color: var(--accent-dark); font-weight: 700; text-align: right; }
.contact-note, .score-note { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.score-title strong { color: var(--accent-dark); font-size: 1.4rem; margin-left: auto; }
.score-title span { color: var(--muted); font-size: .8rem; }
.score-parts { margin: 0; font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 520px) { .contact-list li { grid-template-columns: 44px 1fr auto; } .contact-list li span:nth-of-type(1) { display: none; } }
.pricing-grid.single { grid-template-columns: minmax(0, 440px); justify-content: center; }

/* Pricing card system: same price size, suffix on the baseline, one note line, CTA pinned to the bottom. */
.price-card { display: flex; flex-direction: column; gap: 0; }
.price-card > div { margin-bottom: 20px; }
.price-name { margin-bottom: 12px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 0; font-family: var(--font-display); font-size: inherit; letter-spacing: normal; line-height: 1; }
.price span { margin: 0; font-size: inherit; vertical-align: baseline; }
.price .price-amount { font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.price .price-suffix { font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.price-card .feature-list { flex: 1; align-content: start; margin-bottom: 24px; }
.price-card .button { margin-top: auto; }
.price-card .button + .button { margin-top: 0.625rem; }
.price-term { display: none; }
@media (max-width: 520px) { .price .price-amount { font-size: 40px; } }

/* Plan card layout: one hero plan, one small side card. */
.pricing-grid.plan-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; }
.plan-side { background: var(--paper); box-shadow: none; }
.plan-business { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .pricing-grid.plan-grid { grid-template-columns: 1fr; } }
.table-wrap-spaced { margin-top: 24px; }
