:root {
  color-scheme: light;
  --ink: #0b0f12;
  --ink-2: #182026;
  --muted: #64717d;
  --paper: #f7f5f0;
  --surface: #fffdf8;
  --surface-2: #f0eee8;
  --line: rgba(16, 24, 32, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --gold: #c8a45d;
  --gold-dark: #9f7935;
  --blue: #4b8fd8;
  --teal: #2ca89a;
  --danger: #c55b31;
  --good: #367d5d;
  --shadow: 0 24px 70px rgba(11, 15, 18, 0.12);
  --shadow-soft: 0 14px 38px rgba(11, 15, 18, 0.08);
  --radius: 8px;
  --max: 1180px;
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: linear-gradient(135deg, var(--ink), #26323b 52%, var(--gold));
  box-shadow: 0 10px 26px rgba(11, 15, 18, 0.22);
  font-size: 0.78rem;
  font-weight: 820;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 620;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
  color: #333d45;
  font-size: 0.94rem;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 20px 18px;
  background: rgba(247, 245, 240, 0.98);
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 10px 0;
  color: var(--ink-2);
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 720;
  line-height: 1;
  min-height: 46px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--surface);
  background: linear-gradient(135deg, var(--ink), #28343e);
  box-shadow: 0 18px 36px rgba(11, 15, 18, 0.18);
}

.button.primary:hover {
  box-shadow: 0 22px 48px rgba(11, 15, 18, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button.gold {
  color: #17130b;
  background: linear-gradient(135deg, #e5c77e, var(--gold));
  box-shadow: 0 16px 34px rgba(159, 121, 53, 0.18);
}

.button.ghost {
  color: var(--surface);
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
}

.button.small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.hero {
  background:
    linear-gradient(145deg, rgba(11, 15, 18, 0.96), rgba(24, 32, 38, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(200, 164, 93, 0.16), transparent 34%);
  color: var(--surface);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 93, 0.7), transparent);
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 20px 46px;
  display: grid;
  gap: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #f4e3bd;
  background: rgba(200, 164, 93, 0.12);
  border: 1px solid rgba(200, 164, 93, 0.25);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.45rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 900px;
}

.lede {
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.08rem;
  max-width: 680px;
  margin: 20px 0 0;
}

.hero-copy .lede {
  font-size: 1.15rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.microcopy {
  color: rgba(255, 253, 248, 0.65);
  font-size: 0.88rem;
  margin-top: 18px;
  max-width: 680px;
}

.hero-visual {
  min-height: 380px;
  display: grid;
  align-items: end;
}

.visual-frame {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.visual-frame img {
  width: 100%;
  border-radius: 6px;
}

.trust-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 54px;
  display: grid;
  gap: 10px;
}

.trust-item {
  color: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px;
}

.trust-item strong {
  display: block;
  color: var(--surface);
  margin-bottom: 3px;
}

.section {
  padding: 68px 20px;
}

.section.compact {
  padding: 44px 20px;
}

.section.dark {
  background: var(--ink);
  color: var(--surface);
}

.section.surface {
  background: var(--surface);
}

.section-inner,
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head h2,
.section-head h1,
.article h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  font-size: 1.02rem;
}

.dark .section-head p {
  color: rgba(255, 253, 248, 0.72);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.dark .card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.dark .card p {
  color: rgba(255, 253, 248, 0.72);
}

.icon-tile {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, #f3dfad, var(--gold));
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

.process-step {
  position: relative;
  min-height: 190px;
}

.process-step .step-number {
  color: var(--gold-dark);
  font-weight: 820;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.stat-band {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  overflow: hidden;
}

.stat {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.stat:last-child {
  border-bottom: 0;
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 0.94rem;
}

.notice {
  border: 1px solid rgba(200, 164, 93, 0.35);
  background: #fff9ea;
  border-radius: 8px;
  padding: 16px;
  color: #4f4022;
}

.notice strong {
  display: block;
  color: #2c2414;
  margin-bottom: 4px;
}

.page-hero {
  background: var(--ink);
  color: var(--surface);
  padding: 58px 20px;
}

.page-hero p {
  color: rgba(255, 253, 248, 0.72);
  max-width: 760px;
  font-size: 1.08rem;
}

.breadcrumbs {
  color: rgba(255, 253, 248, 0.58);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-shell {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.progress-step {
  min-height: 7px;
  background: #dedbd2;
  border-radius: 999px;
  overflow: hidden;
}

.progress-step.is-active,
.progress-step.is-complete {
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: grid;
  gap: 22px;
}

.form-step h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.form-step .step-copy {
  margin: -10px 0 0;
  color: var(--muted);
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  font-weight: 720;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.18);
}

.field small {
  color: var(--muted);
}

.consent-row {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 0.92rem;
  gap: 0.6rem;
  line-height: 1.45;
}

.consent-row input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.choice-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.choice-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.choice-card span {
  font-weight: 680;
}

.choice-card:has(input:checked) {
  border-color: var(--gold-dark);
  background: #fff6de;
}

.yes-no-grid {
  display: grid;
  gap: 12px;
}

.upload-zone {
  border: 1px dashed rgba(16, 24, 32, 0.26);
  background: #fffefa;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.file-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.ai-status {
  color: var(--muted);
  font-weight: 700;
}

.ai-status.is-error {
  color: var(--danger);
}

.ai-status.is-success {
  color: var(--good);
}

.ai-panel {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.ai-panel[hidden] {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.form-alert {
  color: var(--danger);
  font-weight: 700;
  min-height: 24px;
}

.result-layout {
  display: grid;
  gap: 18px;
}

.result-summary {
  display: grid;
  gap: 14px;
}

.score-panel {
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.score-value {
  display: flex;
  align-items: end;
  gap: 8px;
}

.score-value strong {
  font-size: 4rem;
  line-height: 0.9;
}

.score-value span {
  color: rgba(255, 253, 248, 0.62);
  font-weight: 720;
}

.severity-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.severity-bars span {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.severity-bars span.is-filled {
  background: linear-gradient(90deg, var(--gold), var(--danger));
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-weight: 720;
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--ink);
}

.pill.gold {
  border-color: rgba(200, 164, 93, 0.42);
  background: #fff6de;
}

.pill.teal {
  border-color: rgba(44, 168, 154, 0.34);
  background: #e9fbf8;
}

.pill.danger {
  border-color: rgba(197, 91, 49, 0.34);
  background: #fff0e9;
}

.flag-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flag-list li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
}

.contractor-grid {
  display: grid;
  gap: 14px;
}

.contractor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

.contractor-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.contractor-card h3 {
  margin: 0 0 4px;
}

.contractor-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.featured-badge {
  background: #fff6de;
  border: 1px solid rgba(200, 164, 93, 0.38);
  color: #5a431a;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 720;
}

.filter-button.is-active {
  background: var(--ink);
  color: var(--surface);
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.article-card span {
  color: var(--gold-dark);
  font-weight: 820;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-card h3 {
  margin: 0;
}

.article-card p {
  color: var(--muted);
  margin: 0;
}

.article {
  max-width: 820px;
  margin: 0 auto;
}

.article p,
.article li {
  color: #3b4650;
}

.article h2 {
  margin-top: 34px;
  line-height: 1.14;
}

.article ul {
  padding-left: 20px;
}

.article .article-meta {
  color: var(--muted);
  font-weight: 680;
  margin-bottom: 20px;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-login {
  max-width: 520px;
}

.admin-grid {
  display: grid;
  gap: 16px;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.lead-item.is-active {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.15);
}

.lead-item strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lead-item span,
.detail-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-panel {
  min-height: 340px;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.detail-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detail-row strong {
  display: block;
}

.file-links {
  display: grid;
  gap: 8px;
}

.file-links a {
  color: var(--blue);
  font-weight: 720;
}

.footer {
  background: var(--ink);
  color: var(--surface);
  padding: 42px 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.footer a {
  color: rgba(255, 253, 248, 0.78);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer p {
  margin: 0;
  color: rgba(255, 253, 248, 0.62);
  max-width: 860px;
  font-size: 0.92rem;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 26px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

@media (min-width: 680px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-band {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .stat:last-child {
    border-right: 0;
  }

  .field-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yes-no-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
    align-items: center;
    padding-top: 88px;
  }

  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .result-layout {
    grid-template-columns: 0.95fr 1.25fr;
    align-items: start;
  }

  .contractor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid {
    grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.4fr);
  }
}

@media (max-width: 460px) {
  .button {
    width: 100%;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .form-card {
    padding: 18px;
  }

  .progress {
    gap: 4px;
  }

  .contractor-top {
    display: grid;
  }
}

/* Sleek readable theme: Property Claim Guide v2 */
:root {
  --ink: #0b1220;
  --ink-2: #172033;
  --muted: #56677c;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --line: rgba(15, 23, 42, 0.12);
  --line-dark: rgba(255, 255, 255, 0.18);
  --gold: #2563eb;
  --gold-dark: #1d4ed8;
  --blue: #2563eb;
  --teal: #0f766e;
  --danger: #b45309;
  --good: #047857;
  --shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 320px),
    var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.brand {
  color: var(--ink);
}

.brand small,
.nav-links,
.mobile-menu a {
  color: var(--muted);
}

.brand-mark {
  background: linear-gradient(135deg, #0b1220, #1d4ed8);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.button {
  border-radius: 7px;
  font-weight: 740;
}

.button.primary,
.button.gold {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1746a2);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.button.primary:hover,
.button.gold:hover {
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(15, 23, 42, 0.16);
}

.hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.14), transparent 34%),
    radial-gradient(circle at 14% 78%, rgba(15, 118, 110, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  color: var(--ink);
}

.hero::after {
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.42), transparent);
}

.hero h1,
.page-hero h1 {
  font-size: 2.55rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero .lede,
.page-hero p {
  color: var(--muted);
}

.hero .microcopy {
  color: #64748b;
}

.eyebrow {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.visual-frame {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.trust-item {
  color: #475569;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.1);
}

.trust-item strong {
  color: var(--ink);
}

.section.dark {
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.2), transparent 28%),
    #0b1220;
  color: #ffffff;
}

.dark .section-head p,
.dark .card p {
  color: rgba(226, 232, 240, 0.82);
}

.card,
.form-card,
.contractor-card,
.article-card,
.stat-band {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-soft);
}

.card p,
.section-head p,
.article-card p,
.contractor-meta,
.field small,
.lead-item span,
.detail-row span,
.article p,
.article li {
  color: var(--muted);
}

.icon-tile {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
}

.process-step .step-number,
.article-card span {
  color: #1d4ed8;
}

.notice {
  color: #334155;
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.22);
}

.notice strong {
  color: #0f172a;
}

.page-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(37, 99, 235, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff, #eef4fb);
  color: var(--ink);
}

.breadcrumbs {
  color: #64748b;
}

.form-card {
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.field input,
.field select,
.field textarea,
.choice-card,
.upload-zone {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.choice-card:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.progress-step {
  background: #d8e0ea;
}

.progress-step.is-active,
.progress-step.is-complete {
  background: linear-gradient(90deg, #2563eb, #0f766e);
}

.score-panel {
  background:
    radial-gradient(circle at 80% 16%, rgba(37, 99, 235, 0.32), transparent 34%),
    #0b1220;
  color: #ffffff;
}

.score-panel h2,
.score-panel p {
  color: #ffffff;
}

.score-panel .microcopy {
  color: rgba(226, 232, 240, 0.8);
}

.severity-bars span.is-filled {
  background: linear-gradient(90deg, #2563eb, #0f766e);
}

.pill {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.12);
}

.pill.gold {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.24);
}

.pill.teal {
  color: #115e59;
  background: #ecfdf5;
  border-color: rgba(15, 118, 110, 0.22);
}

.pill.danger {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(180, 83, 9, 0.22);
}

.flag-list li {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  border-left-color: #2563eb;
}

.filter-button {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.14);
}

.filter-button.is-active {
  background: #0b1220;
  color: #ffffff;
}

.footer {
  background: #0b1220;
}

.footer p,
.footer a {
  color: rgba(226, 232, 240, 0.78);
}

@media (min-width: 680px) {
  .hero h1,
  .page-hero h1 {
    font-size: 3.45rem;
  }
}

@media (min-width: 920px) {
  .hero h1,
  .page-hero h1 {
    font-size: 4.55rem;
  }
}

@media (max-width: 460px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }
}

/* Responsive viewport fit: large screens, laptops, tablets, and phones */
:root {
  --max: 1600px;
  --page-gutter: clamp(18px, 4vw, 72px);
  --hero-gap: clamp(36px, 6vw, 112px);
  --hero-vertical: clamp(44px, 6vh, 92px);
}

.nav,
.hero-grid,
.trust-strip,
.section-inner,
.page-hero-inner,
.footer-inner {
  width: auto;
  max-width: var(--max);
}

.nav {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.hero-grid {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  padding-top: var(--hero-vertical);
  padding-bottom: clamp(28px, 4vh, 54px);
}

.trust-strip {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  padding-bottom: clamp(38px, 5vh, 78px);
}

.section {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  padding-top: clamp(54px, 7vh, 96px);
  padding-bottom: clamp(54px, 7vh, 96px);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.35rem, 4vw, 5.35rem);
  line-height: 1.02;
  max-width: 15ch;
}

.hero-copy .lede {
  max-width: 68ch;
  font-size: clamp(1rem, 1vw, 1.22rem);
}

.section-head h2,
.section-head h1,
.article h1 {
  font-size: clamp(2rem, 3.35vw, 4.35rem);
  max-width: 18ch;
}

.section-head p {
  max-width: 74ch;
}

.visual-frame {
  width: min(100%, 590px);
  margin-left: auto;
}

@media (min-width: 920px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .hero-grid {
    align-content: center;
  }
}

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: minmax(520px, 0.95fr) minmax(460px, 0.8fr);
    column-gap: var(--hero-gap);
  }

  .hero-visual {
    align-items: center;
  }

  .grid.three {
    gap: 22px;
  }
}

@media (min-width: 1700px) {
  .hero-grid,
  .trust-strip,
  .section-inner,
  .page-hero-inner,
  .footer-inner,
  .nav {
    max-width: min(1680px, calc(100vw - 12vw));
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(4.4rem, 3.3vw, 5.4rem);
  }

  .visual-frame {
    width: min(100%, 620px);
  }

  .card {
    padding: 28px;
  }
}

@media (max-width: 919px) {
  .hero-grid {
    gap: 28px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 14ch;
  }

  .visual-frame {
    width: min(100%, 520px);
    margin-right: auto;
  }
}

@media (max-width: 679px) {
  :root {
    --page-gutter: 18px;
    --header-height: 64px;
    --hero-vertical: 40px;
  }

  body {
    font-size: 16px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 32px;
    font-size: 0.72rem;
    flex: 0 0 auto;
  }

  .brand > span:last-child {
    min-width: 0;
    white-space: nowrap;
    line-height: 1.05;
  }

  .brand small {
    font-size: 0.62rem;
    margin-top: 2px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .hero-grid {
    padding-top: var(--hero-vertical);
    padding-bottom: 28px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 8.6vw, 2.7rem);
    line-height: 1.08;
    max-width: 100%;
  }

  .hero-copy .lede,
  .section-head p,
  .card p {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .cta-row {
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
  }

  .visual-frame {
    padding: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  }

  .trust-strip {
    padding-bottom: 38px;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head h2,
  .section-head h1,
  .article h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.6rem);
    line-height: 1.08;
    max-width: 12ch;
  }

  .card,
  .trust-item,
  .form-card,
  .contractor-card,
  .article-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 16px;
  }

  .nav {
    gap: 10px;
  }

  .brand {
    max-width: calc(100vw - 82px);
  }

  .brand > span:last-child {
    font-size: 0.92rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    max-width: 100%;
    white-space: normal;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 8.2vw, 2.42rem);
  }

  .hero-copy .lede,
  .section-head p,
  .card p {
    font-size: 0.94rem;
  }
}

@media (max-width: 380px) {
  .hero h1,
  .page-hero h1 {
    font-size: 1.92rem;
  }

  .section-head h2,
  .section-head h1,
  .article h1 {
    font-size: 1.75rem;
  }

  .brand > span:last-child {
    font-size: 0.84rem;
  }

  .brand small {
    font-size: 0.56rem;
  }
}
