@import url('https://fonts.googleapis.com/css2?family=Yellowtail&display=swap');

/* ==========================================================================
   OverassessedMA — unified design system
   Light, clear, trustworthy. One stylesheet for every page:
   homepage, free check, intake, sample report, town pages, contact, privacy.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;       /* section bands */
  --bg-tint: #eef3fb;       /* subtle hero / accent wash */
  --bg-mint: #eaf5ee;       /* positive wash */

  /* Brand */
  --brand: #2563eb;         /* trust blue — primary actions/links */
  --brand-strong: #1d4ed8;  /* hover */
  --brand-deep: #10243e;    /* deep navy — headings, footer, marks */
  --accent: #15803d;        /* muted green = favorable / positive */
  --accent-strong: #166534;

  /* Text */
  --ink: #10243e;           /* headings (navy) */
  --text: #334155;          /* body (slate) */
  --muted: #64748b;         /* secondary */

  /* Lines */
  --line: #d9e1ea;
  --soft-line: #e8edf3;

  /* Status */
  --good-bg: #ecf6ef; --good-ink: #15803d;
  --warn-bg: #fbf1e3; --warn-ink: #b45309;
  --info-bg: #eef3fb; --info-ink: #1d4ed8;
  --danger: #b91c1c;

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,36,62,.05);
  --shadow-md: 0 4px 16px rgba(16,36,62,.07);
  --shadow-lg: 0 12px 36px rgba(16,36,62,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.022em; line-height: 1.12; }
h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
p { line-height: 1.6; }
strong { color: var(--ink); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 0; }
.section-pad { padding: 72px 28px; }
.section-pad > .narrow, .section-pad > .wrap { padding-left: 0; padding-right: 0; }
.muted-section { background: var(--bg-soft); border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.section-heading { max-width: 720px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading p { color: var(--text); font-size: 17px; margin-bottom: 0; }
.hidden { display: none !important; }

.eyebrow, .step-label {
  display: inline-block;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--text); margin-bottom: 28px; }
.hero-subtitle { font-size: 18px; color: var(--text); margin-bottom: 24px; max-width: 640px; }
.muted { color: var(--muted); font-weight: 500; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 28px;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--soft-line);
}
.brand { display: inline-flex; align-items: center; gap: 0; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -.015em; }
.brand:hover { color: var(--ink); }
.brand-mark { display: none; } /* restrained wordmark only — no decorative badge */
.brand-text span { /* ornate cursive "MA" — bolder script, sized to sit with the wordmark */
  font-family: "Yellowtail", cursive;
  font-weight: 400;
  font-size: 1.45em;
  line-height: 1;
  color: var(--brand);
  margin-left: 6px;
  letter-spacing: .01em;
  position: relative;
  top: .05em;
}
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--text); }
.site-nav a:not(.nav-cta):hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 10px 18px; border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--brand-strong); }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--ink); font-size: 26px; line-height: 1; }

/* ---------- Buttons ---------- */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 13px 22px; min-height: 48px;
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
  white-space: nowrap;
}
.btn.primary, .button.primary { background: var(--brand); color: #fff; }
.btn.primary:hover, .button.primary:hover { background: var(--brand-strong); color: #fff; }
.btn.secondary, .button.secondary { background: #fff; color: var(--brand-deep); border-color: var(--line); }
.btn.secondary:hover, .button.secondary:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn.tertiary, .button.tertiary { background: var(--bg-tint); color: var(--brand-strong); }
.btn.tertiary:hover, .button.tertiary:hover { background: #dde9fb; }
.btn.full, .button.full { width: 100%; }
.btn.lg, .button.lg { padding: 16px 28px; min-height: 54px; font-size: 16.5px; }
.btn:disabled, .button:disabled { opacity: .6; cursor: default; transform: none; }

.plain-link { font-weight: 700; color: var(--brand); }
.plain-link:hover { color: var(--brand-strong); }
.plain-link::after { content: " →"; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }

/* small print */
.security-line, .small-note, .micro-disclaimer, .cta-urgency, .field-help {
  color: var(--muted); font-size: 13.5px;
}
.security-line { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.security-line::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(18,160,95,.18);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden; /* clip decorative shapes; */
  overflow: clip;   /* clip (not a scroll container) where supported, so the hero can never be scrolled internally */
  background: linear-gradient(180deg, #e6eefb 0%, var(--bg-tint) 42%, #fff 74%);
  border-bottom: 1px solid var(--soft-line);
}
/* Friendly, soft background shapes (TurboTax-style warmth — subtle, not loud) */
.hero::before {
  content: ""; position: absolute; right: -130px; top: -140px;
  width: 470px; height: 470px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(37,99,235,.15), rgba(37,99,235,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -160px; bottom: -180px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(21,128,61,.13), rgba(21,128,61,0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

/* Friendly illustration band (TurboTax-style spot illustration) */
.illo-band { background: var(--bg-soft); border-bottom: 1px solid var(--soft-line); }
.illo-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.illo-copy h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; max-width: 16ch; }
.illo-copy p { color: var(--text); font-size: 17px; margin: 0; max-width: 40ch; }
.hero-illo { width: 100%; max-width: 420px; height: auto; justify-self: center; }

/* Free-check card: friendly house emblem + centered lead */
.check-emblem { display: flex; justify-content: center; margin: 2px 0 14px; }
.check-emblem svg { filter: drop-shadow(0 4px 10px rgba(16,36,62,.10)); }
.check-lead { text-align: center; color: var(--text); font-size: 16px; margin: 0 auto 18px; max-width: 34ch; }
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 72px 28px 80px;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: start;
}
.hero-copy { padding-top: 8px; }
.hero-copy h1 { margin-bottom: 20px; max-width: 16ch; }
.hero-copy .hero-subtitle { font-size: 19px; max-width: 50ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 4px 0 16px; }
.reassure-line { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.deadline-alert {
  border-left: 4px solid #c0241c;
  padding: 2px 0 2px 16px;
  margin: 6px 0 18px;
  max-width: 54ch;
  font-size: 15.5px; line-height: 1.5; color: var(--ink);
}
.deadline-alert strong { color: #c0241c; }

/* Free-check Terms acceptance */
.consent-check { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent-check input { margin-top: 2px; accent-color: var(--brand); flex: none; width: 16px; height: 16px; }
.consent-check a { font-weight: 700; }
.consent-check.invalid { color: var(--danger); }
.consent-check.invalid input { outline: 2px solid var(--danger); outline-offset: 1px; border-radius: 3px; }

/* ---------- "What the free check tells you" — text columns, no cards ---------- */
.feature-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-cols .col { border-top: 2px solid var(--brand); padding-top: 18px; }
.feature-cols h3 { font-size: 19px; margin-bottom: 8px; }
.feature-cols p { color: var(--text); font-size: 16px; margin: 0; }

/* ---------- Two-step flow — typographic, no big cards ---------- */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 880px; margin: 0 auto; }
.flow .step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.flow .num {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: var(--brand-deep); color: #fff;
}
.flow h3 { font-size: 19px; margin-bottom: 6px; }
.flow p { margin: 0; color: var(--text); font-size: 16px; }
.flow-connector { text-align: center; color: var(--muted); font-size: 15px; margin: 26px auto 0; max-width: 640px; }

/* ---------- Packet "what you get" — copy + Form 128 illustration ---------- */
.packet { max-width: 820px; margin: 0 auto; }
.packet-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.packet-grid .packet-list { grid-template-columns: 1fr; gap: 10px 0; }
.packet-illo { display: flex; justify-content: center; }
.doc-illo { width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 10px 26px rgba(16,36,62,.12)); }
.packet-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.packet-list li { position: relative; padding-left: 26px; color: var(--text); }
.packet-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px;
  border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}

/* ---------- Pricing — clean, two restrained options ---------- */
.pricing-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.price-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: #fff; display: flex; flex-direction: column; }
.price-block.feature { border-color: var(--brand-deep); }
.price-block .plan-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.price-block .amount { font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price-block .amount small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-block p { color: var(--text); font-size: 16px; margin: 14px 0 22px; }
.price-block .button { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 22px auto 0; max-width: 620px; }

/* ---------- Trust — factual 2x2 ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; max-width: 880px; margin: 0 auto; }
.trust-grid .item { border-top: 1px solid var(--line); padding-top: 16px; }
.trust-grid h3 { font-size: 18px; margin-bottom: 6px; }
.trust-grid p { margin: 0; color: var(--text); font-size: 15.5px; }

/* ---------- Compliance line ---------- */
.compliance-note { max-width: 820px; margin: 0 auto; color: var(--muted); font-size: 14.5px; text-align: center; }

/* ---------- Hero free -> paid value ladder ---------- */
.ladder { display: grid; gap: 8px; margin: 4px 0 22px; }
.ladder-step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.ladder-badge { flex: none; display: inline-grid; place-items: center; min-width: 52px; height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.ladder-badge.free { background: var(--bg-mint); color: var(--accent-strong); }
.ladder-badge.paid { background: var(--brand); color: #fff; }
.ladder-step strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 3px; }
.ladder-step p { margin: 0; font-size: 14px; color: var(--text); }
.ladder-link { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--brand-strong); text-transform: uppercase; }

/* ---------- Trust strip ---------- */
.value-strip {
  max-width: var(--max); margin: 0 auto; padding: 26px 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.value-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.value-item strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.value-item span { display: block; color: var(--muted); font-size: 14.5px; }

/* ---------- Checker card (free check) ---------- */
.checker-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-lg);
}
.checker-card h2 { font-size: 24px; margin-bottom: 8px; }
.checker-card > .wiz-step > p { color: var(--text); margin-bottom: 18px; }
.field-group { margin-bottom: 15px; }
.field-group label, .snap-grid label, .form-grid label, .block-label, .form-step label:not(.checkbox-grid label):not(.consent-box label) {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.field-group input, .snap-grid input, .snap-grid select, .snap-grid textarea,
.form-grid input, .form-grid select, .form-step textarea, .form-step input[type="text"],
.form-step input[type="number"], .form-step input[type="email"], .form-step input[type="tel"],
.form-step select, .comp-card input, .comp-card textarea {
  width: 100%; border: 1px solid #cdd6e2; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); padding: 12px 13px; outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field-group input:focus, .snap-grid input:focus, .snap-grid select:focus, .snap-grid textarea:focus,
.form-grid input:focus, .form-grid select:focus, .form-step textarea:focus, .form-step input:focus,
.form-step select:focus, .comp-card input:focus, .comp-card textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,224,.14);
}
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(195,59,52,.12) !important; }
.form-message { min-height: 20px; margin: 2px 0 12px; font-size: 13.5px; color: var(--muted); }
.wiz-step { display: none; }
.wiz-step.active { display: block; }
.checker-card .small-note { display: block; margin-top: 12px; text-align: center; }

/* ---------- Snapshot result ---------- */
.snap-result { display: none; }
.snap-result.show { display: block; }
.result-cat {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
  background: var(--info-bg); color: var(--info-ink);
}
.result-cat.high { background: var(--warn-bg); color: var(--warn-ink); }
.result-cat.low { background: var(--good-bg); color: var(--good-ink); }
.result-verdict { font-size: 23px; line-height: 1.25; margin-bottom: 10px; color: var(--ink); }
.result-verdict .hl-red { color: #c0241c; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.result-metric { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px; }
.m-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.m-value { color: var(--ink); font-weight: 800; margin-top: 3px; font-size: 16px; }
.flag-list, .check-list, .ev-list { padding-left: 0; list-style: none; color: var(--text); }
.flag-list li, .check-list li, .ev-list li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.flag-list li::before, .check-list li::before, .ev-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--brand); transform: rotate(45deg);
}
.check-list a { font-weight: 700; }

.stake-card { border: 1px solid #f1d9b0; background: var(--warn-bg); border-radius: var(--radius-sm); padding: 18px; margin: 16px 0; }
.rs-label { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; color: var(--warn-ink); margin-bottom: 6px; }
.rs-big { color: var(--ink); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.rs-tax { display: flex; align-items: baseline; gap: 8px; }
.rs-tax .amt { color: var(--accent-strong); font-size: 28px; font-weight: 800; }
.rs-tax .per { color: var(--muted); font-size: 13.5px; }
.rs-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.comps-teaser, .report-bridge { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px; margin: 16px 0; }
.rs-heading, .stake-card h4, .comps-teaser h4, .report-bridge h4 { color: var(--ink); font-size: 16px; margin: 0 0 8px; }
.comps-cap { color: var(--muted); font-size: 13px; }
.comp-row { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 11px 0; }
.comp-row:first-of-type { border-top: 0; }
.c-addr { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.c-val { font-weight: 800; color: var(--ink); display: block; text-align: right; }
.c-meta, .c-ppsf, .c-tag { color: var(--muted); font-size: 12.5px; }
.c-ppsf { display: block; text-align: right; }
.c-lock { color: var(--muted); }
.c-bar { display: inline-block; width: 64px; height: 8px; background: #cdd6e2; border-radius: 999px; }
.result-actions { display: grid; gap: 10px; margin-top: 18px; }
.cta-urgency { margin-top: 12px; }

/* ---------- Process / steps ---------- */
.process h2, .model h2 { text-align: center; margin-bottom: 12px; }
.process .section-heading, .model .section-heading { margin: 0 auto 44px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.steps span {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-tint); color: var(--brand-strong); font-weight: 800; font-size: 20px;
  margin-bottom: 16px;
}
.steps h3 { font-size: 18px; margin-bottom: 7px; }
.steps p { color: var(--text); font-size: 15px; margin-bottom: 0; }

/* ---------- Pricing / two-step model ---------- */
.model { background: var(--bg-soft); border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.model-inner { text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; text-align: left; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 12px 34px rgba(31,111,224,.16); position: relative; }
.price-tag { position: absolute; top: -13px; left: 30px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.price-card h3 { font-size: 19px; margin-bottom: 6px; }
.price-amount { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-amount small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .check-list { margin: 18px 0 24px; }
.price-card .button { margin-top: auto; }
.model-note { margin: 26px auto 0; color: var(--muted); max-width: 620px; }

/* legacy two-column model row (kept for safety) */
.model-row { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr 60px 1fr; gap: 22px; align-items: center; text-align: left; }
.model-num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.arrow { color: var(--brand); font-size: 34px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--brand); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--text); margin: 0 0 16px; }

/* ---------- Limits ---------- */
.limits { padding: 40px 0; }
.limits-box { max-width: 860px; margin: 0 auto; text-align: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.limits-box strong { display: block; color: var(--ink); margin-bottom: 6px; }
.limits-box p { color: var(--text); margin: 0; font-size: 15px; }

/* ---------- Notes / resources / town links ---------- */
.note-box { background: var(--info-bg); border: 1px solid #cfe0fb; border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text); font-size: 14.5px; margin: 22px 0; }
.resource-list { list-style: none; padding: 0; margin: 0 0 4px; }
.resource-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 13px 0; border-bottom: 1px solid var(--line); }
.resource-list .label { font-weight: 700; color: var(--ink); }
.resource-list .placeholder { color: var(--muted); font-style: italic; }
.town-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.town-links a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--brand-deep); box-shadow: var(--shadow-sm); }
.town-links a:hover { border-color: var(--brand); color: var(--brand-strong); }

.town-hero { background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); border-bottom: 1px solid var(--soft-line); }
.final-cta { background: var(--bg-soft); border-top: 1px solid var(--soft-line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #c9d6e8; padding: 52px 28px 30px; }
.footer-top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer p { color: #aebcd2; font-size: 14px; max-width: 360px; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #c9d6e8; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-disclaimer { max-width: var(--max); margin: 32px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #93a4be; font-size: 12.5px; line-height: 1.7; }
/* legacy plain footer */
.site-footer > strong { font-size: 20px; color: #fff; }
.site-footer > nav { display: flex; gap: 24px; margin-top: 10px; }

/* ==========================================================================
   Sample report document
   ========================================================================== */
.report-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); max-width: 880px; margin: 0 auto; }
.doc-band { height: 6px; background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%); }
.doc-inner { padding: 40px; }
.doc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--soft-line); padding-bottom: 22px; margin-bottom: 8px; }
.doc-header h1 { font-size: 26px; }
.sample-tag { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.cat-badge { background: var(--bg-tint); color: var(--brand-strong); font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.doc-section { padding: 22px 0; border-bottom: 1px solid var(--soft-line); }
.doc-section:last-child { border-bottom: 0; }
.doc-section h2 { font-size: 19px; margin-bottom: 10px; }
.doc-section h3 { font-size: 13.5px; font-weight: 800; color: var(--brand-strong); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.doc-section p { font-size: 15px; }
.card-score { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--soft-line); padding-top: 16px; margin-top: 8px; }
.card-score .dot { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-tint); color: var(--brand-strong); font-weight: 800; font-size: 22px; flex: none; }
.sc-copy { font-size: 14px; color: var(--text); }
.kv-table, .issue-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kv-table td { padding: 10px 12px; border-bottom: 1px solid var(--soft-line); }
.kv-table td:first-child { color: var(--muted); }
.kv-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.issue-table th { text-align: left; background: var(--bg-soft); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.issue-table td { padding: 10px 12px; border-bottom: 1px solid var(--soft-line); color: var(--text); }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status.ok { background: var(--good-bg); color: var(--good-ink); }
.status.check { background: var(--info-bg); color: var(--info-ink); }
.status.flag { background: var(--warn-bg); color: var(--warn-ink); }
.calc-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 18px; }
.calc-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--soft-line); font-size: 15px; }
.calc-line:last-child { border-bottom: 0; }
.calc-line.total { font-weight: 800; color: var(--ink); border-top: 2px solid var(--line); }
.ask-list { padding-left: 20px; }
.ask-list li { margin-bottom: 9px; }
.doc-disclaimer { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   Intake form
   ========================================================================== */
.intake-value { max-width: 860px; margin: 0 auto 26px; background: var(--bg-mint); border: 1px solid #bfe6d2; border-radius: var(--radius); padding: 24px 28px; }
.intake-value h4 { color: var(--accent-strong); margin-bottom: 12px; font-size: 16px; }
.intake-why { margin: 14px 0 0; font-size: 14.5px; color: var(--text); }
.form-shell { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.progress { margin-bottom: 24px; }
.progress-bar { height: 8px; background: var(--soft-line); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 11%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; transition: width .25s ease; }
#progressText { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.form-step { display: none; border: 0; padding: 0; margin: 0; }
.form-step.active { display: block; }
.form-step legend { font-size: 22px; font-weight: 800; color: var(--ink); padding: 0; margin-bottom: 6px; }
.step-intro { color: var(--muted); margin-bottom: 20px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-step textarea, .comp-card textarea { width: 100%; }
.block-label { margin-top: 14px; }
.opt { color: var(--muted); font-weight: 500; font-size: 12px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkbox-grid label { display: flex; align-items: flex-start; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; cursor: pointer; }
.checkbox-grid label:hover { border-color: var(--brand); }
.checkbox-grid input { margin-top: 3px; accent-color: var(--brand); }
.comps-container { display: grid; gap: 16px; margin-bottom: 16px; }
.comp-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; background: var(--bg-soft); }
.comp-card h4 { font-size: 15px; margin-bottom: 12px; }
.consent-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.consent-box label { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); cursor: pointer; }
.consent-box input { margin-top: 3px; accent-color: var(--brand); }
.upload-note, .form128-notice { background: var(--info-bg); border: 1px solid #cfe0fb; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: var(--text); margin-top: 16px; }
.summary-box dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.summary-box dt { background: var(--bg-soft); padding: 10px 14px; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--soft-line); }
.summary-box dd { margin: 0; padding: 10px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--soft-line); }
.payment-placeholder { margin-top: 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.payment-placeholder .plan { font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.payment-placeholder .price-line { font-size: 36px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.pay-recap { text-align: left; max-width: 460px; margin: 0 auto 16px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form-actions .button { min-width: 120px; }
.intake-section .section-heading { margin-bottom: 28px; }

/* ==========================================================================
   Completed Form 128 (printable)
   ========================================================================== */
.form128-doc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px; background: #fff; font-size: 14px; color: var(--ink); }
.form128-header { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 16px; }
.form128-label { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.form128-main-title { font-size: 16px; font-weight: 800; margin: 0; }
.form128-sub { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.form128-note { font-size: 11px; color: var(--muted); font-style: italic; margin: 6px 0 0; }
.form128-fy-block p { margin: 0 0 4px; font-size: 13px; }
.form128-section { padding: 14px 0; border-bottom: 1px solid var(--soft-line); }
.form128-section-label { font-weight: 800; font-size: 13px; letter-spacing: .03em; margin: 0 0 10px; color: var(--brand-deep); }
.form128-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.form128-field-label { color: var(--muted); font-size: 13px; }
.form128-field-value { font-weight: 700; border-bottom: 1px solid var(--line); min-width: 140px; }
.form128-checkrow { font-size: 13.5px; line-height: 2; }
.form128-explanation-label { font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.form128-explanation-box { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-height: 60px; font-size: 13.5px; }
.form128-sig-instruction, .form128-sig-line { font-size: 13px; margin: 8px 0; }
.form128-notice-small { font-size: 11px; color: var(--muted); background: var(--bg-soft); padding: 8px 10px; border-radius: 6px; margin-top: 10px; }
.form128-filing-block { margin-top: 16px; }
.form128-filing-list { padding-left: 18px; font-size: 13.5px; }
.form128-filing-list li { margin-bottom: 7px; }
.form128-actions { display: flex; flex-direction: column; gap: 6px; }
.pv-blank { display: inline-block; min-width: 150px; border-bottom: 1px solid #9aa0a6; }

/* Print: hide site chrome, show only the prepared documents cleanly */
@media print {
  .site-header, .site-footer, .form-actions, .payment-placeholder, .hero-actions,
  .form128-actions, .nav-toggle, .progress { display: none !important; }
  body { background: #fff; }
  .form128-doc { border-color: #000; page-break-inside: avoid; }
}

/* ---------- Contact ---------- */
.snapshot-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.snap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.snap-grid .wide { grid-column: 1 / -1; }
.snap-actions { margin-top: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 44px 24px 52px; }
  .value-strip, .steps, .pricing-grid, .model-row { grid-template-columns: 1fr; }
  .feature-cols, .flow, .packet-list, .trust-grid, .pricing-row { grid-template-columns: 1fr; }
  .packet-grid { grid-template-columns: 1fr; gap: 32px; }
  .packet-illo { order: -1; }
  .illo-wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .illo-copy h2, .illo-copy p { max-width: none; }
  .hero-illo { max-width: 360px; }
  .model-row { gap: 12px; }
  .arrow { transform: rotate(90deg); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .doc-inner { padding: 26px 20px; }
}
@media (max-width: 720px) {
  .section, .section-pad { padding: 52px 0; }
  .section-pad { padding: 52px 22px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 14px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 20px 24px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .form-grid, .checkbox-grid, .snap-grid, .metrics-grid, .summary-box dl { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .doc-header { flex-direction: column; }
}
