/*
 * Insurance brokerage demo template by 7MDigital.
 * Brand colours below are defaults only: site.js overwrites them from SITE.colours.
 * Rules: 3-4px corners, a left accent on cards, no animations or transitions.
 */

:root {
  --brand: #0E3B43;
  --brand-strong: #082A30;
  --brand-tint: #E6EFEE;
  --accent: #E3A13F;
  --accent-strong: #D18B26;
  --accent-ink: #8A4B0F;
  --paper: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #15201F;
  --ink-2: #3E4A4C;
  --line: #D9D3C6;
  --line-strong: #A9A293;
  --field-border: #6F6A5E;
  --focus: #0B57D0;
  --error: #A3161A;
  --ok: #1D6B3B;
  --note-bg: #FFF7EA;
  --note-line: #F0D7AE;
  --radius: 4px;
  --wrap: 1160px;
  --gutter: 16px;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; }
svg.i { flex-shrink: 0; vertical-align: middle; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.45rem); }
h3, .h3 { font-size: 1.3rem; }
.h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.on-dark { --focus: #FFD58A; }
main:focus { outline: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -200px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; }

.noscript {
  margin: 0;
  padding: 12px var(--gutter);
  background: var(--note-bg);
  border-bottom: 1px solid var(--note-line);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-sm { min-height: 44px; padding: 8px 16px; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--ink); }
.btn-secondary { background: var(--brand); color: #fff; }
.btn-secondary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-strong); }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: var(--brand-strong); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-link {
  display: inline-block;
  min-height: 44px;
  padding: 10px 4px;
  line-height: 1.5;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-link:hover { color: var(--accent-ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Demo banner and header ---------- */

.demo-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.demo-banner p { margin: 0; padding-block: 10px; }
.demo-banner strong { color: var(--accent); }
.banner-short { display: none; }
@media (max-width: 719px) {
  .demo-banner { font-size: 0.8125rem; }
  .demo-banner p { padding-block: 7px; }
  .banner-long { display: none; }
  .banner-short { display: inline; }
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 72px;
  padding-block: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--accent);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-text small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--brand-tint); }

.site-nav {
  display: none;
  flex-basis: 100%;
  order: 3;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 12px;
  display: grid;
  gap: 2px;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--brand-tint); color: var(--brand-strong); }
.site-nav a[aria-current="page"] { border-left-color: var(--accent); background: var(--brand-tint); }
.site-nav .nav-extra { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

.nav-short { display: none; }
.header-actions { display: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent-ink); }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; flex-basis: auto; order: 0; }
  .site-nav ul { display: flex; padding: 0; gap: 0; }
  .site-nav a {
    min-height: 44px;
    padding: 0 9px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 0.97rem;
  }
  .site-nav a:hover { background: none; color: var(--accent-ink); }
  .site-nav a[aria-current="page"] { background: none; border-bottom-color: var(--accent); }
  .site-nav .nav-extra { display: none; }
  .nav-short { display: inline; }
  .nav-long { display: none; }
  .header-actions { display: flex; align-items: center; gap: 16px; }
  .header-phone { display: none; }
}
@media (min-width: 1380px) {
  /* Room for the phone number next to the nine menu links */
  .site-header .wrap { max-width: 1280px; }
  .header-phone { display: inline-flex; }
}

/* Sticky call and quote bar on phones and tablets */
.mobile-bar {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
}
.mobile-bar .btn { min-height: 48px; padding-inline: 10px; }
body.has-bar { padding-bottom: 78px; }
@media (min-width: 1200px) {
  .mobile-bar { display: none; }
  body.has-bar { padding-bottom: 0; }
}

/* ---------- Shared type helpers ---------- */

.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
}
.on-dark .eyebrow { color: var(--accent); }

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
}
.small { font-size: 0.9375rem; color: var(--ink-2); }
.note { font-size: 1rem; color: var(--ink-2); margin-top: 20px; max-width: 48rem; }

/* ---------- Sections ---------- */

.section { padding-block: 56px; }
@media (min-width: 960px) { .section { padding-block: 88px; } }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.section-head p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.grid > * { min-width: 0; }
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Line tiles: 3 across, a short last row shares the width evenly */
  .grid-lines { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-lines > * { grid-column: span 2; }
  .grid-lines > :nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .grid-lines > :nth-child(3n+1):nth-last-child(1) { grid-column: 3 / span 2; }
  .grid-lines > :first-child:nth-last-child(4),
  .grid-lines > :first-child:nth-last-child(4) ~ * { grid-column: span 3; }
}

.two-col { display: grid; gap: 32px; }
.two-col > * { min-width: 0; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.card > :last-child { margin-bottom: 0; }
.card-brand { border-left-color: var(--brand); }
.card h3 { margin-bottom: 8px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
}
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile h3 a:focus-visible { outline: none; }
.tile:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile:hover { border-color: var(--line-strong); border-left-color: var(--brand); }
.tile:hover h3 a { color: var(--brand); }
.tile p { color: var(--ink-2); }
.tile-range {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.tile-range strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.tile-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--brand);
}

/* ---------- Home hero ---------- */

.hero { padding-block: 40px 56px; }
@media (min-width: 960px) { .hero { padding-block: 72px 88px; } }
.hero-grid { display: grid; gap: 32px; }
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "copy card" "meta card";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 0;
  }
  .hero-copy { grid-area: copy; }
  .hero-card { grid-area: card; align-self: center; }
  .hero-meta { grid-area: meta; }
}
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .actions { margin-top: 28px; }
.hero-meta > :first-child { margin-top: 0; }
@media (min-width: 960px) { .hero-meta > :first-child { margin-top: 24px; } }

.licence-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.licence-line .i { color: var(--brand); margin-top: 1px; }

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 10px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.stars { display: inline-flex; gap: 1px; color: var(--accent-ink); }
.rating strong { color: var(--ink); }

.hero-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .hero-facts { gap: 20px; margin-top: 32px; padding-top: 24px; } }
.hero-facts strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 0.85rem + 1vw, 1.5rem);
  line-height: 1.2;
  color: var(--brand);
}
.hero-facts li > span { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 720px) { .hero-facts li > span { font-size: 0.9375rem; } }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 1px 2px rgba(21, 32, 31, 0.06), 0 18px 40px -22px rgba(14, 59, 67, 0.45);
}
@media (min-width: 720px) { .hero-card { padding: 32px 28px; } }
.hero-card h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }

/* Hero picture band at the top of the estimate card (drawn by site.js) */
.hero-art {
  margin: -24px -20px 20px;
  padding: 14px 16px 0;
  background: var(--brand-tint);
  border-bottom: 1px solid var(--line);
  border-radius: 0 var(--radius) 0 0;
  overflow: hidden;
}
@media (min-width: 720px) { .hero-art { margin: -32px -28px 24px; padding: 18px 24px 0; } }
.hero-art svg { display: block; width: 100%; height: auto; }
.ha-o { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.ha-w { fill: var(--brand-tint); stroke: var(--brand); stroke-width: 1.5; }
.ha-a { fill: var(--accent); stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.ha-b { fill: var(--brand); stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.ha-l { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }
.ha-thin { stroke-width: 1.5; }
.ha-hub { fill: var(--surface); }
.ha-sun { fill: var(--accent); }
.ha-trail { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 4 6; stroke-linecap: round; }
.ha-road { fill: var(--brand); }
.ha-dash { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 12 10; }

.quick-lines {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
}
@media (min-width: 340px) { .quick-lines { grid-template-columns: 1fr 1fr; } }
.quick-lines a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.quick-lines a:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--ink); }
.quick-lines .i { color: var(--brand); }

/* ---------- Inner page hero ---------- */

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 28px 48px;
}
@media (min-width: 960px) { .page-hero { padding-block: 40px 72px; } }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
.page-hero-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; }
}
.page-hero .actions { margin-top: 24px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.hero-kicker .eyebrow { margin: 0; }
.hero-kicker .eyebrow::before { display: none; }
.hero-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--accent);
  box-shadow: inset 0 -4px 0 var(--accent);
}
@media (min-width: 960px) { .hero-mark { width: 60px; height: 60px; } }
@media (max-width: 479px) {
  .hero .actions .btn, .page-hero .actions .btn { width: 100%; }
  .hero .actions .btn-link { padding-block: 6px; }
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-2); }

.range-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.range-inline { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.card.stack { display: flex; flex-direction: column; }
.card.stack > p { color: var(--ink-2); }
.range-card .est-label, .range-inline .est-label { margin: 0 0 6px; font-weight: 700; }
.range-card .amount, .range-inline .amount {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand);
}
.range-card .amount span, .range-inline .amount span { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.range-card .typical, .range-inline .typical { margin: 8px 0 16px; font-size: 0.9375rem; color: var(--ink-2); }
.range-card h2, .range-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

/* ---------- Lists ---------- */

.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 34px; }
.ticks li::before, .crosses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(0.2em + 5px);
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.crosses li::before { background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand); }
.crosses li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.2em + 10px);
  width: 10px;
  height: 2px;
  background: var(--brand);
}
.ticks strong, .crosses strong { display: block; }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin: 0;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.steps > li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-ink);
}
.steps h3 { margin-bottom: 8px; }

/* Numbered timeline (home page "How it works"): down the page on phones, across on desktop */
.timeline { list-style: none; counter-reset: step; display: grid; margin: 0; padding: 0; max-width: 64rem; }
.timeline > li { position: relative; counter-increment: step; padding: 0 0 32px 68px; min-width: 0; }
.timeline > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--brand-tint);
}
.timeline > li::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 58px;
  bottom: 8px;
  width: 2px;
  background: var(--line-strong);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::after { display: none; }
.timeline h3 { margin: 8px 0 6px; }
.timeline p { margin: 0; color: var(--ink-2); }
@media (min-width: 860px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .timeline > li { padding: 72px 0 0; }
  .timeline > li::after { left: 62px; right: -30px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .timeline h3 { margin-top: 0; }
}
.steps p { margin: 0; color: var(--ink-2); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chips li {
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 0.875rem;
  color: var(--ink);
}

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 3px;
  background: #FFF1D9;
  color: #6B3A0A;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sample-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--ink);
}
.sample-note .i { color: var(--accent-ink); margin-top: 2px; }
.sample-note p { margin: 0; }

/* ---------- Why a broker + sample comparison ---------- */

.why-grid { display: grid; gap: 40px; align-items: center; }
.why-grid > * { min-width: 0; }
@media (min-width: 960px) { .why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.why-list { list-style: none; display: grid; gap: 22px; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.why-list .card-icon { margin: 0; }
.why-list h3 { font-size: 1.15rem; margin: 0 0 4px; }
.why-list p { margin: 0; color: var(--ink-2); }

.compare {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: 0 18px 40px -26px rgba(14, 59, 67, 0.45);
}
@media (min-width: 720px) { .compare { padding: 28px; } }
.compare-head { margin-bottom: 14px; }
.compare-head .small { margin: 0; }
.compare-title { margin: 8px 0 2px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.9375rem; }
.compare-table th, .compare-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare-table thead th { font-family: var(--font-body); font-weight: 700; font-size: 0.875rem; line-height: 1.25; vertical-align: bottom; }
.compare-table tbody th { padding-left: 0; text-align: left; font-weight: 600; line-height: 1.3; }
.compare-table thead td { width: 34%; }
.compare-table tbody tr:first-child td { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.compare-table .is-pick { background: var(--brand-tint); }
.compare-table thead .is-pick { box-shadow: inset 0 4px 0 var(--accent); }
.pick-tag {
  display: block;
  width: max-content;
  margin: 4px auto 0;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.cmp-yes { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; }
.cmp-no { color: var(--ink-2); }
.compare-why { margin: 14px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.compare-why strong { color: var(--ink); }

/* ---------- Reviews, team ---------- */

.review { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.0625rem; }
.review figcaption { margin-top: auto; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); }

.person { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; }
.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.person h3 { margin: 0 0 2px; font-size: 1.2rem; }
.person .role { margin: 0 0 8px; color: var(--ink-2); font-weight: 600; }
.person .meta { margin: 0 0 10px; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Trust strip and CTA band ---------- */

.trust-strip {
  background: var(--brand-tint);
  border-block: 1px solid var(--line);
  padding-block: 48px;
}
.trust-strip h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); }
.trust-list {
  list-style: none;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 24px 0 0;
  padding: 0;
}
.trust-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  font-size: 0.975rem;
}
.trust-list li > div { min-width: 0; }
.trust-list .i { color: var(--brand); margin-top: 2px; }
.trust-list strong { display: block; margin-bottom: 2px; }

.cta-band { background: var(--brand); color: #fff; padding-block: 56px; }
@media (min-width: 960px) { .cta-band { padding-block: 72px; } }
.cta-band h2 { color: #fff; max-width: 40rem; }
.cta-band p { color: #E3ECEB; max-width: 40rem; }
.cta-band a:not(.btn) { color: #fff; }
.cta-grid { display: grid; gap: 32px; align-items: center; }
.cta-grid > * { min-width: 0; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } }
.cta-copy > :last-child { margin-bottom: 0; }
.cta-card {
  padding: 22px 20px;
  background: var(--brand-strong);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.cta-card-h { margin: 0 0 4px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cta-band .cta-card .cta-card-h { color: var(--accent); }
.cta-band .cta-card a.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}
.cta-band .cta-card a.cta-phone:hover { text-decoration: underline; }
.cta-band .cta-card a.cta-email { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; word-break: break-word; }
.cta-card .hours-list { margin: 12px 0; padding: 12px 0; border-block: 1px solid rgba(255, 255, 255, 0.16); }
.cta-card .hours-list dt { color: #fff; }
.cta-card .hours-list dd { color: #D6E0DE; }
.cta-band .cta-card .cta-addr { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.9375rem; color: #D6E0DE; }
.cta-card .cta-addr .i { margin-top: 2px; color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-strong);
  color: #D6E0DE;
  padding-block: 48px 28px;
  font-size: 0.975rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}
.footer-grid > * { min-width: 0; }
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
}
.footer-brand .logo { color: #fff; margin: 0 0 14px; }
.footer-brand .logo-text small { color: #C5D2CF; }
.footer-brand .logo-mark { background: var(--surface); color: var(--brand); }
.footer-brand p { margin: 0 0 6px; }
.footer-h {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.footer-hours { margin: 0; }
.footer-hours div { margin-bottom: 8px; }
.footer-hours dt { font-weight: 700; color: #fff; }
.footer-hours dd { margin: 0; }
.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #2E5157;
  font-size: 0.9375rem;
}
.footer-legal p { margin: 0 0 10px; max-width: 62rem; }
.made-by { font-size: 0.875rem; color: #C5D2CF; }

/* ---------- Prose pages ---------- */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.toc { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.toc a:hover { background: var(--brand-tint); }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; }
.faq details {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
}
.faq summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 16px 52px 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--brand); }
.faq details > div { padding: 0 18px 16px; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
}
@media (min-width: 720px) { .form-card { padding: 32px; } }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field label, .field-group > legend, .label { font-weight: 700; }
.field-group { margin-bottom: 20px; }
.field-group > legend { margin-bottom: 10px; }
.field-group .field { margin-bottom: 12px; }
.field-group .field label { font-weight: 600; }
.req { font-weight: 400; font-size: 0.9375rem; color: var(--ink-2); }
.hint { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: auto; }
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
[aria-invalid="true"] { border: 2px solid var(--error) !important; }

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.check label { cursor: pointer; }
.check-extra { margin: -6px 0 16px 36px; font-size: 0.9375rem; }

.field-error { margin: 0; color: var(--error); font-weight: 700; font-size: 0.9375rem; }
.field-error:empty { display: none; }

.error-summary {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: #FFF5F5;
  border: 2px solid var(--error);
  border-left-width: 6px;
  border-radius: var(--radius);
}
.error-summary h3 { margin: 0 0 8px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }

.demo-sent {
  padding: 24px 20px;
  background: #EEF7F1;
  border: 1px solid #B9DCC5;
  border-left: 4px solid var(--ok);
  border-radius: var(--radius);
}
.demo-sent h3 { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.form-card .demo-sent { padding: 0; background: none; border: 0; }

/* Choice tiles: estimator answers and call-back slots */
.choices { display: grid; gap: 10px; margin: 0; }
@media (min-width: 640px) { .choices-2 { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.choice .i { color: var(--brand); }
.choice:hover { border-color: var(--brand); background: var(--brand-tint); }
.choice.is-checked { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 4px 0 0 var(--brand); }
@supports selector(:has(*)) {
  .choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 4px 0 0 var(--brand); }
  .choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .choice input:focus-visible { outline: none; }
}

.slots { display: grid; gap: 14px; }
.slot-day > p { margin: 0 0 6px; font-weight: 600; font-size: 0.9375rem; }
.slot-times { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-times .choice { min-height: 48px; padding: 8px 14px; font-weight: 600; }

/* ---------- Estimator ---------- */

.est-layout { display: grid; gap: 32px; align-items: start; }
.est-layout > * { min-width: 0; }
@media (min-width: 960px) {
  .est-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; }
}
.est-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
}
@media (min-width: 720px) { .est-card { padding: 32px; } }
.est-aside { display: grid; gap: 16px; }
.est-aside ol { padding-left: 1.2em; margin: 0; }
.est-aside li { margin-bottom: 6px; }

.est-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-2);
}
.est-progress span { white-space: nowrap; }
progress {
  flex: 1;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: var(--radius);
  background: var(--line);
  color: var(--brand);
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--line); border-radius: var(--radius); }
progress::-webkit-progress-value { background: var(--brand); border-radius: var(--radius); }
progress::-moz-progress-bar { background: var(--brand); border-radius: var(--radius); }

.q-title { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin: 0 0 8px; }
.q-title:focus { outline: none; }
.q-hint { margin: 0 0 18px; color: var(--ink-2); }
.est-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; }
@media (max-width: 959px) {
  /* Keep Back and Next in view while scrolling a long list of answers */
  .est-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-inline: -20px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .est-nav .btn { flex: 1 1 0; min-width: 0; }
}
@media (min-width: 720px) and (max-width: 959px) {
  .est-nav { margin-inline: -32px; padding-inline: 32px; }
}
.est-nav .btn { min-width: 120px; }
#est-error { margin-top: 14px; }

.est-result h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.est-result h2:focus { outline: none; }
.est-result h3 { font-size: 1.15rem; margin-top: 28px; }
.est-result .est-label { margin: 0 0 4px; font-weight: 700; color: var(--accent-ink); }
.result-disclaimer { margin: 10px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.result-range {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
}
.result-range span, .amount span { white-space: nowrap; }
.result-range span { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; color: var(--ink-2); }
.result-year { margin: 6px 0 0; color: var(--ink-2); font-weight: 600; }
.result-cap { margin: 14px 0 0; }
.factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.factors li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
}
.factors .f-effect { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.factors .f-up { color: var(--error); }
.factors .f-down { color: var(--ok); }
.est-result .actions { margin-top: 20px; }
@media (max-width: 479px) { .est-result .actions .btn { width: 100%; } }

/* ---------- Contact ---------- */

.contact-cards .card a.big { display: inline-block; padding: 8px 0; font-size: 1.2rem; font-weight: 700; }
.hours-list { margin: 0; display: grid; gap: 8px; }
.hours-list dt { font-weight: 700; line-height: 1.35; }
.hours-list dd { margin: 0; color: var(--ink-2); line-height: 1.35; }
.contact-cards .hours-list > div { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.contact-cards .hours-list > div:last-child { padding-bottom: 0; border-bottom: 0; }

/* ---------- 404 ---------- */

.not-found { max-width: 40rem; }
.link-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.link-list a:hover { background: var(--brand-tint); }

@media print {
  .mobile-bar, .nav-toggle, .site-nav, .header-actions, .skip-link { display: none !important; }
  body.has-bar { padding-bottom: 0; }
  .hero-card { box-shadow: none; }
}

/* ---------- Small page-specific helpers ---------- */

.steps-tight { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.steps-tight > li { padding: 18px 18px; }
.steps-tight > li::before { font-size: 1.5rem; margin-bottom: 8px; }
.steps h4 { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 6px; }
.chips-lg li { padding: 8px 14px; font-size: 1rem; border-left: 4px solid var(--accent); border-radius: var(--radius); }
.contact-cards { margin-top: 32px; }
.contact-cards .card p { margin-bottom: 8px; }
.lang-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.lang-row .label { margin: 0; }
.form-actions { margin-top: 24px; }
.check-error { margin: -6px 0 14px 36px; }
.page-hero-short { padding-bottom: 36px; }
