/* =================================================================
   Kory Bruce Real Estate — Hybrid Design System v12.5
   Token-driven, semantic, responsive. No !important, single cascade.
   -----------------------------------------------------------------
   1. Design tokens
   2. Base + typography
   3. Layout primitives
   4. Buttons
   5. Header + navigation
   6. Hero + agent card
   7. Guided path / cards / resources / areas
   8. Inverse sections (Why Kory, Contact)
   9. Calculator hub + calculator pages
   10. FAQ
   11. Footer
   12. Motion + reveal
   13. Responsive
   ================================================================= */

/* ============================ 1. TOKENS ========================= */
:root {
  /* --- Primitive: gold ramp (warm metallic / champagne) --- */
  --gold-50:  #f8f1e2;
  --gold-100: #efddb8;
  --gold-200: #e1c489;
  --gold-300: #d2ac61;
  --gold-400: #c8a55c;
  --gold-500: #b08a3e;
  --gold-600: #8c6c2c;
  --gold-700: #6d531c;

  /* --- Primitive: ink ramp (warm near-black + greys) --- */
  --ink-950: #141310;
  --ink-900: #1b1915;
  --ink-800: #2a2620;
  --ink-700: #3d382f;
  --ink-600: #5b5447;
  --ink-500: #837b6b;
  --ink-400: #a59d8c;

  /* --- Primitive: paper / neutrals --- */
  --paper-0:   #ffffff;
  --paper-50:  #faf8f3;
  --paper-100: #f4f1e9;
  --paper-200: #ece7db;

  /* --- Semantic: surfaces --- */
  --color-bg:             var(--paper-50);
  --color-surface:        var(--paper-0);
  --color-surface-sunken: var(--paper-100);
  --color-surface-inverse:var(--ink-950);

  /* --- Semantic: text --- */
  --color-text:            var(--ink-900);
  --color-text-muted:      var(--ink-600);
  --color-text-subtle:     var(--ink-500);
  --color-text-on-dark:    #f3efe6;
  --color-text-on-dark-muted: rgba(243, 239, 230, 0.66);

  /* --- Semantic: lines + borders --- */
  --color-border:          rgba(20, 19, 15, 0.10);
  --color-border-strong:   rgba(20, 19, 15, 0.17);
  --color-border-on-dark:  rgba(255, 255, 255, 0.13);

  /* --- Semantic: accent --- */
  --color-accent:          var(--gold-500);
  --color-accent-strong:   var(--gold-600);
  --color-accent-text:     var(--gold-700);   /* AA on light */
  --color-accent-on-dark:  #d8ba7e;           /* bright on ink */
  --color-accent-soft:     rgba(176, 138, 62, 0.12);
  --color-accent-soft-strong: rgba(176, 138, 62, 0.20);

  /* --- Semantic: roles --- */
  --color-primary:        var(--ink-900);
  --color-primary-hover:  var(--ink-800);
  --color-focus:          var(--gold-500);

  /* --- Typography --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Libre Franklin", "Aptos", "Segoe UI", -apple-system, BlinkMacSystemFont,
                  Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, "DejaVu Sans Mono", monospace;

  --text-xs:   0.78rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   clamp(1.35rem, 1.15rem + 0.9vw, 1.6rem);
  --text-2xl:  clamp(1.65rem, 1.3rem + 1.5vw, 2.05rem);
  --text-3xl:  clamp(2.05rem, 1.45rem + 2.6vw, 3rem);
  --text-4xl:  clamp(2.5rem, 1.55rem + 4.2vw, 4.4rem);

  --leading-tight:  1.06;
  --leading-snug:   1.2;
  --leading-normal: 1.62;

  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-wide:   0.16em;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-black:   800;

  /* --- Spacing scale (4px base) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 3.5vw + 44px, 116px);

  /* --- Radii --- */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* --- Shadows (soft, layered, low spread) --- */
  --shadow-xs: 0 1px 2px rgba(20, 19, 15, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 19, 15, 0.06), 0 1px 2px rgba(20, 19, 15, 0.05);
  --shadow-md: 0 14px 30px -14px rgba(20, 19, 15, 0.20), 0 2px 8px rgba(20, 19, 15, 0.05);
  --shadow-lg: 0 30px 64px -26px rgba(20, 19, 15, 0.32), 0 6px 16px rgba(20, 19, 15, 0.06);
  --shadow-inset-gold: inset 0 0 0 1px rgba(176, 138, 62, 0.16);

  /* --- Layout --- */
  --container: 1200px;
  --container-narrow: 760px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.22s;
}

/* ============================ 2. BASE =========================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(176, 138, 62, 0.10), transparent 60%),
    radial-gradient(50rem 38rem at -10% 4%, rgba(20, 19, 15, 0.05), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); letter-spacing: var(--tracking-snug); line-height: var(--leading-snug); }

p { margin: 0 0 var(--space-4); }

::selection { background: var(--gold-200); color: var(--ink-950); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* shared section scroll offset for sticky header */
section { scroll-margin-top: 96px; }

/* ====================== 3. LAYOUT PRIMITIVES ==================== */
.section {
  width: 100%;
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}

.section__inner {
  max-width: var(--container);
  margin-inline: auto;
}

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

.section-head { max-width: 64ch; }
.section-head .lead { max-width: 60ch; }

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Eyebrow: gold label preceded by a short rule — consistent section marker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

/* ============================ 4. BUTTONS ======================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85em 1.5em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button.primary {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-sm);
}
.button.primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.button.secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.button.secondary:hover {
  border-color: var(--gold-500);
  color: var(--color-accent-text);
  box-shadow: var(--shadow-sm);
}

/* ============================ 5. HEADER ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) var(--gutter);
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}
.brand span { display: grid; line-height: 1.1; }
.brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
}
.brand small {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* Warmer wordmark treatment: the KB icon remains temporary, while the name carries the brand. */
.brand strong {
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}
.brand small {
  letter-spacing: 0.20em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.site-nav > a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  transition: color var(--dur) var(--ease);
}
.site-nav > a:hover { color: var(--color-accent-text); }

.nav-cta {
  padding: 0.7em 1.25em;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--ink-950);
  box-shadow: var(--shadow-sm), var(--shadow-inset-gold);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav-cta:hover {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}



/* Brokerage logo lockup beside the personal brand */
.header-branding {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  min-width: 0;
}

.brand-divider {
  width: 1px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--color-border-strong);
}

.brokerage-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0.78;
}

.brokerage-brand img {
  width: auto;
  height: 38px;
  max-width: 150px;
  object-fit: contain;
}

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Dropdowns --- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.nav-dropdown-toggle span { font-size: 0.7em; transition: transform var(--dur) var(--ease); }
.nav-dropdown.open .nav-dropdown-toggle span { transform: rotate(180deg); }
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--color-accent-text); }

/* hover bridge so the menu doesn't close in the gap */
.nav-dropdown::after {
  content: "";
  position: absolute;
  inset: 100% -20px auto -20px;
  height: 22px;
  display: none;
}
.nav-dropdown:hover::after,
.nav-dropdown:focus-within::after,
.nav-dropdown.open::after { display: block; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(360px, calc(100vw - 32px));
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-group p {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.dropdown-group a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.dropdown-group a:hover { color: var(--color-accent-text); padding-left: var(--space-1); }
.dropdown-group a:first-of-type { padding-top: 0; }
.dropdown-group a:last-of-type { border-bottom: 0; padding-bottom: 0; }
.dropdown-group .dropdown-view-all {
  margin-bottom: var(--space-1);
  color: var(--color-accent-text);
}

/* ============================ 6. HERO ========================== */
.hero {
  position: relative;
  overflow: clip;
}
.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-content { max-width: 40rem; }
.hero-content h1 { margin-bottom: var(--space-5); }
.hero-content > p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 36rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.hero-trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
}

/* Signature element: the "agent credential" product card */
.hero-card.brand-snapshot {
  position: relative;
  isolation: isolate;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(22rem 14rem at 88% -8%, rgba(176, 138, 62, 0.30), transparent 70%),
    var(--ink-950);
  color: var(--color-text-on-dark);
  border: 1px solid var(--color-border-on-dark);
  box-shadow: var(--shadow-lg);
}
.hero-card.brand-snapshot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-200), transparent);
}
.headshot {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid rgba(216, 186, 126, 0.5);
  margin: 0 0 var(--space-5);
  background: var(--ink-800);
}
.hero-card.brand-snapshot h2 {
  font-size: 1.6rem;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-1);
}
.hero-card.brand-snapshot > p {
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
}
.hero-card.brand-snapshot > p strong { color: var(--color-accent-on-dark); font-weight: var(--weight-semibold); }
.snapshot-line {
  height: 1px;
  margin: var(--space-6) 0;
  background: linear-gradient(90deg, transparent, var(--color-border-on-dark), transparent);
}
.snapshot-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.snapshot-metrics div {
  padding: var(--space-4);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}
.snapshot-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-accent-on-dark);
}
.snapshot-metrics span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

/* ===================== 7. GUIDED PATH / CARDS ================== */
.quick-path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.quick-path-grid article {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quick-path-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}
.quick-path-grid article h3 { margin-bottom: var(--space-3); }
.quick-path-grid article p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}
.quick-path-grid article .button { align-self: flex-start; margin-top: var(--space-4); }

/* numeric step chip — numbering encodes a real guided sequence */
.quick-path-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-inset-gold);
}

/* generic feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.cards article {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cards article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}
.cards article p { color: var(--color-text-muted); flex: 1; }
.cards article .button { align-self: flex-start; margin-top: var(--space-5); }

/* small visual icon used at the top of cards */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-soft), rgba(255,255,255,0.72));
  color: var(--color-accent-text);
  font-size: 1.05rem;
  font-weight: var(--weight-bold);
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(176, 138, 62, 0.18);
}


/* ======================= FEATURED TOOLS + TRUST ======================= */
.featured-tools {
  margin-top: calc(var(--section-y) * -0.45);
  padding-top: 0;
  position: relative;
  z-index: 2;
}
.featured-tools-panel {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}
.featured-tools-label {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.featured-tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.featured-tools-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.72em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.featured-tools-links a:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  color: var(--color-accent-text);
}
.hero-human-note {
  margin: var(--space-5) 0 0;
  color: var(--color-text-muted);
  font-weight: var(--weight-semibold);
}
.credibility-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 0.75fr));
  gap: var(--space-4);
  align-items: stretch;
}
.credibility-band .credibility-lede,
.credibility-band article {
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}
.credibility-band .credibility-lede {
  background:
    linear-gradient(135deg, rgba(20,19,15,0.94), rgba(42,38,32,0.94)),
    var(--color-surface-inverse);
  color: var(--color-text-on-dark);
}
.credibility-band .credibility-lede h2 { color: var(--color-text-on-dark); }
.credibility-band .credibility-lede p { color: var(--color-text-on-dark-muted); }
.credibility-band article strong {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}
.credibility-band article p { color: var(--color-text-muted); margin: 0; }
.credibility-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-weight: var(--weight-bold);
}

/* ============================ AREAS =========================== */
.local-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: var(--space-10);
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(28rem 18rem at 96% 10%, rgba(176, 138, 62, 0.10), transparent 70%),
    var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.local-feature h3 { font-size: var(--text-2xl); }
.local-feature p { color: var(--color-text-muted); margin: 0; }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.area-list span,
.area-list a {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.area-list span:hover,
.area-list a:hover { border-color: var(--gold-500); color: var(--color-accent-text); }

/* ==================== 8. INVERSE SECTIONS ===================== */
.section--inverse {
  background:
    radial-gradient(40rem 26rem at 10% 0%, rgba(176, 138, 62, 0.16), transparent 60%),
    var(--color-surface-inverse);
  color: var(--color-text-on-dark);
}
.section--inverse h2,
.section--inverse h3 { color: var(--color-text-on-dark); }
.section--inverse .lead,
.section--inverse > .section__inner > p { color: var(--color-text-on-dark-muted); }
.section--inverse .eyebrow { color: var(--color-accent-on-dark); }
.section--inverse .eyebrow::before { background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-10) 0;
}
.proof-strip div {
  padding: var(--space-6);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}
.proof-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent-on-dark);
  margin-bottom: var(--space-1);
}
.proof-strip span { font-size: var(--text-sm); color: var(--color-text-on-dark-muted); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.why-grid article {
  padding: var(--space-8);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.why-grid article:hover { transform: translateY(-3px); border-color: rgba(216, 186, 126, 0.4); }
.why-grid article p { color: var(--color-text-on-dark-muted); margin: 0; }
.light-icon {
  background: rgba(216, 186, 126, 0.16);
  color: var(--color-accent-on-dark);
}

/* ================== 9. CALCULATOR HUB / PAGES ================= */
.calculator-groups {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.calculator-group {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.featured-tool-group {
  background:
    radial-gradient(26rem 16rem at 100% 0%, rgba(176, 138, 62, 0.10), transparent 70%),
    var(--color-surface);
  border-color: var(--color-border-strong);
}
.group-heading {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-6);
}
.group-heading h3 { margin-bottom: var(--space-1); }
.group-heading p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.section-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
}
.tool-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.compact-tool-list { grid-template-columns: repeat(2, 1fr); }
.tool-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.tool-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}
.tool-card small { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.45; }
.tool-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: 0.66rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.priority-tool {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-inset-gold), var(--shadow-xs);
}

/* --- Calculator page building blocks (used on tool subpages) --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--dur) var(--ease);
}
.back-link:hover { color: var(--color-accent-text); }
.calculator-page .section:first-of-type { padding-top: var(--space-12); }
/* Calculator subpages put content straight in .section (no .section__inner),
   so the section itself carries the container width. */
.calculator-page .section {
  max-width: var(--container);
  margin-inline: auto;
}
.mortgage-section { position: relative; }
.estimator-intro { max-width: 64ch; margin-bottom: var(--space-8); }
.calculator-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-8);
}
.calculator-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.estimator-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: stretch;
}
.estimator-card,
.estimator-result-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
}
.estimator-card {
  padding: clamp(22px, 3vw, 34px);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.estimator-card label { display: flex; flex-direction: column; gap: var(--space-2); }
.estimator-card label span { font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.estimator-card input,
.estimator-card select {
  width: 100%;
  padding: 0.8em 0.9em;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.estimator-card input:focus,
.estimator-card select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  background: var(--color-surface);
}
.calculator-button { width: 100%; margin-top: var(--space-1); }

.estimator-result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(22rem 16rem at 90% 0%, rgba(176, 138, 62, 0.22), transparent 70%),
    var(--ink-950);
  color: var(--color-text-on-dark);
  border-color: var(--color-border-on-dark);
}
.result-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-on-dark);
  margin-bottom: var(--space-3);
}
.result-total {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
}
.result-subtext { color: var(--color-text-on-dark-muted); margin-bottom: var(--space-6); }
.result-breakdown { display: grid; gap: var(--space-1); }
.result-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border-on-dark);
}
.result-breakdown span { color: var(--color-text-on-dark-muted); }
.result-breakdown strong { color: var(--color-text-on-dark); font-variant-numeric: tabular-nums; }
.result-breakdown .refund-row strong { color: var(--color-accent-on-dark); }
.sensitivity-result-card .result-total { font-size: clamp(2.1rem, 4.2vw, 3.6rem); overflow-wrap: anywhere; }

.assumption-box {
  padding: var(--space-5);
  margin: var(--space-1) 0 var(--space-6);
  background: var(--color-surface-sunken);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.assumption-box p { margin-bottom: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.assumption-box p:first-child { color: var(--color-text); font-weight: var(--weight-semibold); }
.strong-disclaimer {
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
  background: var(--color-surface-sunken);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.advanced-options {
  margin: 0 0 var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-sunken);
  overflow: hidden;
}
.advanced-options summary {
  padding: var(--space-4) var(--space-5);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.advanced-options[open] summary { border-bottom: 1px solid var(--color-border); }
.advanced-options-intro { margin: var(--space-4) var(--space-5) 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.advanced-grid { padding: var(--space-4) var(--space-5) var(--space-5); margin: 0; }
.result-cta { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border-on-dark); }
.result-cta h3 { color: var(--color-text-on-dark); margin-bottom: var(--space-2); }
.result-cta p { color: var(--color-text-on-dark-muted); margin-bottom: var(--space-4); }

/* tooltips (JS-driven popover) */
.field-label-with-info { display: inline-flex; align-items: center; gap: var(--space-1); }
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex: 0 0 16px;
  padding: 0;
  border: 1px solid rgba(176, 138, 62, 0.5);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: 0.62rem;
  font-weight: var(--weight-bold);
  line-height: 1;
  cursor: pointer;
}
.tooltip-popover {
  position: fixed;
  left: 0; top: 0;
  max-width: min(280px, calc(100vw - 32px));
  padding: var(--space-3) var(--space-4);
  background: var(--ink-950);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  z-index: 99999;
  transition: opacity 0.14s var(--ease), transform 0.14s var(--ease), visibility 0.14s;
}
.tooltip-popover.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tooltip-popover.is-measuring { opacity: 0; visibility: hidden; display: block; }

/* ============================ 10. FAQ ========================= */
.faq-list {
  max-width: 60rem;
  margin-top: var(--space-10);
  display: grid;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--color-border-strong); }
.faq-item.active { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  border: 0;
  background: none;
  font: inherit;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}
.faq-question span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: 1.1rem;
  line-height: 1;
}
.faq-answer { display: none; padding: 0 var(--space-6) var(--space-5); color: var(--color-text-muted); }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--color-accent-text); font-weight: var(--weight-semibold); }
.faq-item.active .faq-answer { display: block; }

/* ========================== CONTACT ========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  margin-top: var(--space-10);
}
.contact-card-mini {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-lg);
}
.contact-mini-label {
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-on-dark);
}
.contact-details p { margin-bottom: var(--space-2); color: var(--color-text-on-dark-muted); }
.contact-details strong { color: var(--color-text-on-dark); font-weight: var(--weight-semibold); }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.contact-actions .button.primary { background: var(--gold-500); color: var(--ink-950); }
.contact-actions .button.primary:hover { background: var(--gold-400); }
.contact-actions .button.secondary {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: var(--color-border-on-dark);
}
.contact-actions .button.secondary:hover { border-color: var(--color-accent-on-dark); color: var(--color-accent-on-dark); }
.contact-note { margin-top: var(--space-5); color: var(--color-text-on-dark-muted); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  padding: clamp(24px, 3vw, 34px);
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}
.contact-form label { display: flex; flex-direction: column; gap: var(--space-2); font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--color-text); }
.contact-form label span em { font-style: normal; font-weight: var(--weight-regular); color: var(--color-text-subtle); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.78em 0.9em;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  background: var(--color-surface);
}
.contact-message-field,
.contact-form .button,
.contact-form .form-status { grid-column: 1 / -1; }
.contact-form .button { width: fit-content; }
.form-status { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.form-status[data-state="success"] { color: #1f7a3d; font-weight: var(--weight-semibold); }
.form-status[data-state="error"]   { color: #b3261e; font-weight: var(--weight-semibold); }
.form-status[data-state="pending"] { color: var(--color-text); }
.form-status[data-state="info"]    { color: var(--color-text-muted); }

.fine-print { font-size: var(--text-sm); color: var(--color-text-subtle); }

.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;
}

/* ============================ 11. FOOTER ====================== */
.site-footer {
  padding: var(--space-16) var(--gutter) var(--space-12);
  background: var(--ink-950);
  color: var(--color-text-on-dark);
  text-align: center;
}
.site-footer p { margin-bottom: var(--space-1); color: var(--color-text-on-dark-muted); }
.site-footer p:first-child strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-text-on-dark); }
.site-footer .fine-print { max-width: 60ch; margin: var(--space-5) auto 0; color: rgba(243, 239, 230, 0.5); }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); }
.social-links a { font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; color: var(--color-text-on-dark-muted); transition: color var(--dur) var(--ease); }
.social-links a:hover { color: var(--color-accent-on-dark); }

/* ========================== 12. MOTION ======================= */
.reveal { opacity: 1; }
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}


@media (max-width: 980px) {
  .brokerage-brand,
  .brand-divider {
    display: none;
  }
}

/* ========================= 13. RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero-card.brand-snapshot { max-width: 480px; }
  .quick-path-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .local-feature { grid-template-columns: 1fr; }
  .tool-list,
  .compact-tool-list { grid-template-columns: 1fr; }
  .estimator-shell { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-5) var(--gutter) var(--space-6);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav > a { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
  .nav-cta { text-align: center; border-bottom: 0; margin-top: var(--space-2); }

  /* dropdowns become inline accordions inside the mobile panel */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-dropdown::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    transform: none;
    padding: var(--space-3) 0 var(--space-4);
    border: 0;
    box-shadow: none;
    display: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .quick-path-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr; }
  .calculator-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .group-heading { flex-direction: column; }
}


@media (max-width: 850px) {
  .featured-tools { margin-top: 0; padding-top: var(--space-8); }
  .featured-tools-panel { grid-template-columns: 1fr; }
  .credibility-band { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .featured-tools-links { flex-direction: column; }
  .featured-tools-links a { justify-content: center; }
}


/* ====================== 14. VISUAL POLISH PASS v12.4 ======================
   Focus: calmer branding, stronger hero, consistent badges, less repetition. */

/* Calmer desktop header: Kory stays primary, brokerage becomes supporting proof. */
.brokerage-brand { opacity: 0.64; }
.brokerage-brand img { height: 31px; max-width: 132px; }
.brand-divider { height: 30px; background: rgba(20, 19, 15, 0.13); }
.nav-cta {
  background: var(--ink-950);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover {
  background: var(--ink-800);
  color: var(--color-accent-on-dark);
}

/* Homepage hero gets a more custom, branded editorial panel. */
.home-hero { padding-top: clamp(38px, 5vw, 72px); }
.home-hero .hero__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(244, 241, 233, 0.86)),
    var(--color-surface);
  box-shadow: var(--shadow-md);
}
.home-hero .hero__inner::before {
  content: "KB";
  position: absolute;
  right: clamp(240px, 30vw, 380px);
  top: 50%;
  z-index: -1;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 18rem);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(20, 19, 15, 0.035);
  pointer-events: none;
}
.home-hero .hero__inner::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% 45%;
  z-index: -1;
  height: 72%;
  background:
    repeating-linear-gradient(115deg, rgba(176, 138, 62, 0.10) 0 2px, transparent 2px 22px);
  transform: rotate(-6deg);
  pointer-events: none;
}
.home-hero .hero-card.brand-snapshot {
  transform: translateY(0);
}

/* Resource pages stay lighter, but gain a subtle branded panel treatment. */
.resource-hero .hero__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(34rem 22rem at 96% 4%, rgba(176, 138, 62, 0.10), transparent 68%),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-sm);
}

/* Featured tools: make the strip feel deliberate instead of another row of pills. */
.featured-tools-panel {
  border-color: rgba(216, 186, 126, 0.18);
  background:
    radial-gradient(32rem 20rem at 98% 0%, rgba(176, 138, 62, 0.16), transparent 70%),
    var(--ink-950);
  color: var(--color-text-on-dark);
}
.featured-tools-label { color: var(--color-accent-on-dark); }
.featured-tools-links a {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--color-border-on-dark);
  color: var(--color-text-on-dark);
}
.featured-tools-links a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(216, 186, 126, 0.15);
  color: var(--color-accent-on-dark);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.featured-tools-links a:hover {
  border-color: rgba(216, 186, 126, 0.55);
  color: var(--color-accent-on-dark);
}

/* Split resource panels replace repeated card grids on the homepage. */
.split-resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.split-resource-copy {
  position: sticky;
  top: 104px;
}
.resource-panels {
  display: grid;
  gap: var(--space-5);
}
.resource-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.resource-panel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ink-950);
}
.resource-panel--seller::after { background: var(--gold-500); }
.panel-label {
  display: inline-flex;
  margin-bottom: var(--space-4);
  padding: 0.38em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.resource-panel p { color: var(--color-text-muted); }
.panel-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-5) 0 var(--space-6);
  padding: 0;
  list-style: none;
}
.panel-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}
.resource-panel .button { margin-top: 0; }

/* Consistent badge system across cards and calculator hubs. */
.card-icon,
.tool-icon,
.credibility-mark,
.quick-path-icon {
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  box-shadow: var(--shadow-inset-gold);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
}
.tool-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
}
.card-icon.light-icon {
  background: rgba(216, 186, 126, 0.13);
  color: var(--color-accent-on-dark);
  border: 1px solid rgba(216, 186, 126, 0.20);
  box-shadow: none;
}
.cards article,
.quick-path-grid article,
.tool-card,
.faq-item {
  box-shadow: none;
}
.cards article,
.quick-path-grid article,
.tool-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.64));
}
.tool-card {
  min-height: 142px;
  align-items: flex-start;
}
.tool-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.25vw, 1.22rem);
}
.tool-card:hover { border-color: var(--color-border-strong); }
.priority-tool {
  border-color: rgba(176, 138, 62, 0.48);
  background:
    radial-gradient(20rem 12rem at 100% 0%, rgba(176, 138, 62, 0.10), transparent 72%),
    var(--color-surface);
}

/* Less gold-on-everything: secondary buttons stay quieter until hover. */
.button.secondary:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.resource-panel .button.secondary:hover,
.tool-card:hover .tool-icon {
  color: var(--color-accent-on-dark);
}

/* Local visual cue without using generic stock photos. */
.local-feature--map {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}
.local-feature--map::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -22%;
  width: 58%;
  height: 150%;
  background:
    repeating-linear-gradient(118deg, rgba(20, 19, 15, 0.045) 0 1px, transparent 1px 18px),
    radial-gradient(18rem 14rem at 50% 50%, rgba(176, 138, 62, 0.13), transparent 72%);
  transform: rotate(-5deg);
  pointer-events: none;
}
.local-feature--map::after {
  content: "Windsor · LaSalle · Tecumseh · Essex County";
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(16px, 3vw, 34px);
  color: rgba(20, 19, 15, 0.30);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.local-feature--map > * { position: relative; z-index: 1; }

/* Stronger final CTA section. */
#contact {
  position: relative;
  overflow: hidden;
}
#contact::after {
  content: "KB";
  position: absolute;
  right: -0.12em;
  bottom: -0.22em;
  font-family: var(--font-display);
  font-size: clamp(12rem, 24vw, 28rem);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}
#contact .section__inner { position: relative; z-index: 1; }
.contact-card-mini {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(216, 186, 126, 0.16);
}
.contact-form {
  border: 1px solid rgba(216, 186, 126, 0.18);
}

@media (max-width: 1000px) {
  .home-hero .hero__inner::before { right: -1rem; opacity: 0.5; }
  .split-resource-layout { grid-template-columns: 1fr; }
  .split-resource-copy { position: static; }
}

@media (max-width: 760px) {
  .home-hero .hero__inner,
  .resource-hero .hero__inner {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }
  .home-hero .hero__inner::before { font-size: 10rem; right: -3.5rem; top: 5.5rem; opacity: 0.65; }
  .featured-tools-panel { border-radius: var(--radius-xl); }
  .featured-tools-links a { justify-content: flex-start; }
  .local-feature--map::after { display: none; }
}


/* ====================== 15. HEADER POLISH PASS v12.5 ======================
   Focus: stronger personal logo, clearer brokerage logo, visible Contact CTA. */

.header-branding {
  gap: clamp(12px, 1.7vw, 20px);
}

.brand-wordmark {
  gap: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-wordmark-img {
  display: block;
  width: auto;
  height: 52px;
  max-width: clamp(230px, 23vw, 292px);
  object-fit: contain;
}

.brand-divider {
  height: 36px;
  background: rgba(20, 19, 15, 0.20);
}

.header-branding .brokerage-brand {
  opacity: 1;
}

.header-branding .brokerage-brand img {
  height: 36px;
  max-width: 168px;
  filter: none;
}

.site-nav {
  gap: clamp(18px, 2.1vw, 32px);
}

.site-nav > a.nav-cta {
  padding: 0.72em 1.3em;
  border: 1px solid rgba(20, 19, 15, 0.18);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--ink-950);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.site-nav > a.nav-cta:hover,
.site-nav > a.nav-cta:focus-visible {
  background: var(--ink-950);
  color: var(--gold-100);
  border-color: var(--ink-950);
  box-shadow: var(--shadow-md);
}


/* ================== HOMEPAGE CHECKLIST SHOWCASE v12.9 ================= */
.checklist-showcase-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(36rem 20rem at 0% 0%, rgba(176, 138, 62, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(250,247,240,0.96));
}
.checklist-showcase-section::before {
  content: "Checklist";
  position: absolute;
  right: max(24px, 6vw);
  top: 28px;
  color: rgba(31, 29, 24, 0.035);
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 12rem);
  line-height: 1;
  pointer-events: none;
}
.checklist-showcase-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.checklist-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.checklist-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
}
.checklist-kicker {
  width: fit-content;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.checklist-showcase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: var(--space-5) 0 var(--space-4);
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-inset-gold);
}
.checklist-showcase-card h3 { margin-bottom: var(--space-3); }
.checklist-showcase-card p {
  flex: 1;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.checklist-card-link {
  margin-top: var(--space-4);
  color: var(--color-accent-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}
.checklist-showcase-actions,
.panel-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.panel-button-row { margin-top: auto; }
.button.ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.button.ghost:hover {
  border-color: var(--gold-400);
  color: var(--color-accent-text);
}

@media (max-width: 1100px) {
  .brokerage-brand,
  .brand-divider {
    display: none;
  }
}

@media (max-width: 760px) {
  .brand-wordmark-img {
    height: 46px;
    max-width: 238px;
  }

  .site-nav > a.nav-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-3);
    border-bottom: 1px solid rgba(20, 19, 15, 0.18);
  }
}

@media (max-width: 420px) {
  .brand-wordmark-img {
    height: 42px;
    max-width: 215px;
  }
}

/* =================================================================
   Design polish v12.7 — premium homepage, local identity, resource hubs
   ================================================================= */
.site-header {
  background: rgba(250, 248, 243, 0.9);
}
.brokerage-brand { opacity: 1; }
.brokerage-brand img { filter: contrast(1.08) saturate(1.05); }
.nav-dropdown-toggle.active { color: var(--color-accent-text); }

.home-hero,
.resource-hero {
  position: relative;
  background:
    radial-gradient(44rem 28rem at 80% 8%, rgba(176, 138, 62, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(244,241,233,0.55));
}
.home-hero::before,
.resource-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(176, 138, 62, 0.08) 1px, transparent 1px),
    linear-gradient(25deg, rgba(20, 19, 15, 0.045) 1px, transparent 1px);
  background-size: 74px 74px, 118px 118px;
  mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 90%, transparent 100%);
  pointer-events: none;
}
.home-hero .hero__inner,
.resource-hero .hero__inner { position: relative; z-index: 1; }
.hero-lede { max-width: 34rem; }
.hero-local-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-subtle);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
}
.hero-card.brand-snapshot.agent-feature {
  padding: clamp(24px, 3vw, 38px);
  min-height: 100%;
}
.agent-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: center;
}
.agent-photo-wrap {
  padding: 5px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(216, 186, 126, 0.75), rgba(255,255,255,0.12));
}
.agent-feature .headshot {
  width: clamp(120px, 13vw, 156px);
  height: clamp(120px, 13vw, 156px);
  margin: 0;
  border-radius: calc(var(--radius-xl) - 5px);
  border: 0;
}
.agent-status {
  display: inline-flex;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(216, 186, 126, 0.16);
  color: var(--color-accent-on-dark);
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.agent-feature blockquote {
  margin: var(--space-6) 0 0;
  padding: var(--space-5);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.045);
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.32rem);
  line-height: 1.35;
}
.agent-card-link {
  display: inline-flex;
  margin-top: var(--space-5);
  color: var(--color-accent-on-dark);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.agent-card-link:hover { text-decoration: underline; }

.decision-hub {
  padding-top: clamp(56px, 4vw, 82px);
  background:
    radial-gradient(32rem 20rem at 0% 0%, rgba(176, 138, 62, 0.10), transparent 68%),
    var(--color-surface-sunken);
}
.decision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.decision-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--space-6);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.decision-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-accent-soft);
}
.decision-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
}
.decision-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-inset-gold);
}
.decision-label {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.decision-card h3 { margin-bottom: var(--space-3); }
.decision-card p {
  flex: 1;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.decision-links {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.decision-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.decision-links a::after { content: "→"; color: var(--color-accent-text); }
.decision-links a:hover { color: var(--color-accent-text); }

.text-icon {
  width: auto;
  min-width: 54px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tool-icon {
  min-width: 58px;
  justify-content: center;
}
.priority-tool::before {
  content: "Recommended first";
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  font-size: 0.62rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tool-card { position: relative; }
.priority-tool { padding-top: calc(var(--space-5) + 16px); }

.split-resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.resource-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.resource-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(22rem 14rem at 96% 0%, rgba(176, 138, 62, 0.10), transparent 72%),
    var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.resource-panel p { color: var(--color-text-muted); }
.panel-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.panel-list {
  margin: var(--space-2) 0 var(--space-6);
  padding-left: 1.15rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.resource-panel .button { margin-top: auto; align-self: flex-start; }

.local-identity-section {
  background:
    linear-gradient(180deg, rgba(250,248,243,0), rgba(255,255,255,0.46));
}
.local-feature--map {
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
}
.local-feature-copy .area-list { margin-top: var(--space-6); }
.local-map-visual {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 22% 62%, rgba(176, 138, 62, 0.22), transparent 18%),
    radial-gradient(circle at 62% 38%, rgba(176, 138, 62, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(20,19,15,0.94), rgba(42,38,32,0.94));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.local-map-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(216, 186, 126, 0.22);
  border-radius: calc(var(--radius-2xl) - 8px);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 38px 38px;
}
.map-line {
  position: absolute;
  left: 14%;
  right: 12%;
  top: 52%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(216,186,126,0.65), transparent);
  transform: rotate(-10deg);
}
.map-pin {
  position: absolute;
  z-index: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(216, 186, 126, 0.36);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  color: var(--color-text-on-dark);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.map-pin::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--space-2);
  border-radius: 50%;
  background: var(--color-accent-on-dark);
}
.pin-windsor { left: 18%; top: 52%; }
.pin-lasalle { left: 10%; top: 68%; }
.pin-tecumseh { right: 16%; top: 42%; }
.pin-lakeshore { right: 8%; top: 25%; }
.pin-amherstburg { left: 30%; bottom: 18%; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-copy p:not(.eyebrow):not(.lead) { color: var(--color-text-muted); }
.about-quote-card {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.quote-mark {
  position: absolute;
  top: -18px;
  left: var(--space-6);
  margin: 0;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
}
.about-quote-card blockquote {
  margin: var(--space-8) 0 var(--space-6);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.35;
}
.about-mini-list {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.about-mini-list div {
  display: grid;
  gap: var(--space-1);
}
.about-mini-list strong { color: var(--color-text); }
.about-mini-list span { color: var(--color-text-muted); font-size: var(--text-sm); }

.contact-note { max-width: 34rem; }
.contact-form .button.primary { background: var(--ink-950); color: var(--color-text-on-dark); }
.contact-form .button.primary:hover { background: var(--ink-800); }

.site-footer {
  text-align: left;
  background:
    radial-gradient(34rem 20rem at 12% 0%, rgba(176, 138, 62, 0.18), transparent 62%),
    var(--ink-950);
}
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
}
.footer-brand-block {
  display: grid;
  gap: var(--space-4);
  max-width: 38rem;
  margin-bottom: var(--space-10);
}
.footer-wordmark-img {
  width: min(360px, 100%);
  height: auto;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.92);
}
.footer-brand-block p,
.footer-grid p,
.footer-grid a { color: var(--color-text-on-dark-muted); }
.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.15fr;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border-on-dark);
  border-bottom: 1px solid var(--color-border-on-dark);
}
.footer-grid div { display: grid; align-content: start; gap: var(--space-2); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--color-accent-on-dark); }
.footer-heading {
  margin-bottom: var(--space-2);
  color: var(--color-accent-on-dark) !important;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-6);
}
.site-footer .fine-print {
  max-width: 66ch;
  margin: 0;
  color: rgba(243, 239, 230, 0.52);
}
.footer-bottom .social-links { margin-top: 0; }

@media (max-width: 1000px) {
  .decision-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .split-resource-layout,
  .about-layout { grid-template-columns: 1fr; }
  .resource-panels { grid-template-columns: 1fr; }
  .local-feature--map { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .agent-card-top { grid-template-columns: 1fr; }
  .agent-feature .headshot { width: 132px; height: 132px; }
  .decision-grid { grid-template-columns: 1fr; }
  .checklist-showcase-grid { grid-template-columns: 1fr; }
  .checklist-showcase-actions,
  .panel-button-row { flex-direction: column; }
  .checklist-showcase-actions .button,
  .panel-button-row .button { width: 100%; justify-content: center; }
  .local-map-visual { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .decision-card { padding: var(--space-5); }
  .map-pin { font-size: 0.66rem; }
  .pin-lakeshore { right: 4%; }
  .pin-amherstburg { left: 18%; }
}


/* Final header contrast fix v12.7.1 */
.nav-cta {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--ink-950);
  box-shadow: var(--shadow-sm), var(--shadow-inset-gold);
}
.nav-cta:hover {
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  box-shadow: var(--shadow-md);
}
.brokerage-brand { opacity: 1; }
.brokerage-brand img {
  height: 38px;
  max-width: 150px;
  filter: contrast(1.12) saturate(1.08);
}


/* ================== CHECKLISTS v12.9 ================= */
.checklist-preview-section {
  background:
    radial-gradient(34rem 18rem at 100% 0%, rgba(176, 138, 62, 0.08), transparent 66%),
    var(--color-bg);
}
.checklist-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.checklist-preview-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.checklist-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.checklist-preview-card p { margin: 0; color: var(--color-text-muted); }
.resource-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.checklist-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: var(--space-8);
  align-items: start;
}
.checklist-page .estimator-intro { margin-bottom: 0; }
.checklist-progress-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(18rem 12rem at 100% 0%, rgba(176, 138, 62, 0.14), transparent 72%),
    var(--color-surface);
  box-shadow: var(--shadow-md);
}
.checklist-progress-number {
  display: block;
  margin: var(--space-2) 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw, 2.7rem);
  line-height: 1;
  color: var(--color-text);
}
.checklist-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 19, 15, 0.10);
  margin-bottom: var(--space-4);
}
.checklist-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: width var(--dur-slow) var(--ease);
}
.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.checklist-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.checklist-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.checklist-panel-head {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
}
.checklist-panel-head > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  font-weight: var(--weight-bold);
}
.checklist-panel h2 { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.checklist-panel p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.checklist-items { display: grid; gap: var(--space-3); }
.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  border: 1px solid rgba(20, 19, 15, 0.08);
  border-radius: var(--radius-md);
  background: rgba(250, 248, 243, 0.68);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.checklist-item:hover {
  transform: translateY(-1px);
  border-color: var(--color-border-strong);
  background: var(--paper-50);
}
.checklist-item input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--gold-600);
}
.checklist-item span { line-height: 1.45; }
.checklist-item:has(input:checked) {
  border-color: rgba(176, 138, 62, 0.34);
  background: rgba(176, 138, 62, 0.10);
}
.checklist-item:has(input:checked) span {
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.checklist-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-2xl);
  background: var(--ink-950);
  color: var(--color-text-on-dark);
}
.checklist-next-step h2 { color: var(--color-text-on-dark); font-size: var(--text-xl); margin-bottom: var(--space-2); }
.checklist-next-step p { max-width: 64ch; margin: 0; color: var(--color-text-on-dark-muted); }
.checklist-next-step .button.primary {
  flex: 0 0 auto;
  background: var(--color-accent-on-dark);
  color: var(--ink-950);
}

@media (max-width: 900px) {
  .checklist-hero-grid,
  .checklist-shell { grid-template-columns: 1fr; }
  .checklist-preview-grid { grid-template-columns: 1fr; }
  .checklist-next-step { align-items: flex-start; flex-direction: column; }
}

@media print {
  .site-header,
  .site-footer,
  .back-link,
  .checklist-actions,
  .checklist-next-step,
  .calculator-meta { display: none; }
  body { background: #fff; color: #000; }
  .calculator-page .section { max-width: none; padding: 0; }
  .checklist-hero-grid,
  .checklist-shell { display: block; }
  .checklist-progress-card,
  .checklist-panel { box-shadow: none; break-inside: avoid; margin-bottom: 18px; }
  .checklist-item { break-inside: avoid; }
}

/* v13.3: Print-friendly checklist worksheets */
.print-checklist-fields,
.print-notes {
  display: none;
}

@media print {
  @page {
    size: letter;
    margin: 0.55in;
  }

  html {
    font-size: 11pt;
  }

  body.checklist-page {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }

  body.checklist-page::before {
    content: "Kory Bruce Real Estate | Windsor-Essex REALTOR® | korybruce@outlook.com | 519-551-4297";
    display: block;
    padding-bottom: 8pt;
    margin-bottom: 12pt;
    border-bottom: 1pt solid #000;
    font-size: 8.5pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000;
  }

  .checklist-page .site-header,
  .checklist-page .site-footer,
  .checklist-page .back-link,
  .checklist-page .checklist-actions,
  .checklist-page .checklist-next-step,
  .checklist-page .calculator-meta,
  .checklist-page .checklist-progress-card,
  .checklist-page .reveal::before,
  .checklist-page .reveal::after {
    display: none !important;
  }

  .checklist-page *,
  .checklist-page *::before,
  .checklist-page *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
  }

  html.js .checklist-page .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .checklist-page a {
    color: #000 !important;
    text-decoration: none !important;
  }

  .checklist-page .section,
  .calculator-page.checklist-page .section,
  .checklist-page .checklist-hero-section {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .checklist-page .checklist-hero-grid,
  .checklist-page .checklist-shell {
    display: block !important;
    margin: 0 !important;
  }

  .checklist-page .estimator-intro {
    margin: 0 0 10pt !important;
  }

  .checklist-page .estimator-intro .eyebrow {
    margin-bottom: 4pt !important;
    color: #000 !important;
    font-size: 8pt !important;
    letter-spacing: 0.08em !important;
  }

  .checklist-page .estimator-intro h1 {
    max-width: none !important;
    margin: 0 0 5pt !important;
    color: #000 !important;
    font-size: 22pt !important;
    line-height: 1.05 !important;
  }

  .checklist-page .estimator-intro p {
    max-width: none !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
  }

  .print-checklist-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 7pt 16pt;
    padding: 8pt 0 10pt;
    margin: 0 0 12pt;
    border-bottom: 1pt solid #999;
    color: #000;
    font-size: 9.5pt;
  }

  .print-checklist-fields span:last-child {
    grid-column: 1 / -1;
  }

  .checklist-page .checklist-panel {
    display: block !important;
    margin: 0 0 10pt !important;
    padding: 8pt 9pt !important;
    border: 1pt solid #777 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid-page !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    overflow: visible !important;
  }


  .checklist-page .checklist-panel-head,
  .checklist-page .checklist-items,
  .checklist-page .print-notes,
  .checklist-page .strong-disclaimer {
    break-inside: avoid-page !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .checklist-page .checklist-panel h2,
  .checklist-page .checklist-panel p,
  .checklist-page .checklist-item span {
    orphans: 3;
    widows: 3;
  }

  .checklist-page .checklist-panel-head {
    display: block !important;
    margin: 0 0 6pt !important;
    padding: 0 0 5pt !important;
    border-bottom: 1pt solid #bbb !important;
  }

  .checklist-page .checklist-panel-head > span {
    display: none !important;
  }

  .checklist-page .checklist-panel h2 {
    margin: 0 0 2pt !important;
    color: #000 !important;
    font-size: 13pt !important;
    line-height: 1.15 !important;
  }

  .checklist-page .checklist-panel p {
    margin: 0 !important;
    color: #222 !important;
    font-size: 8.5pt !important;
    line-height: 1.3 !important;
  }

  .checklist-page .checklist-items {
    display: block !important;
  }

  .checklist-page .checklist-item {
    display: grid !important;
    grid-template-columns: 18pt 1fr !important;
    align-items: start !important;
    gap: 6pt !important;
    margin: 0 !important;
    padding: 5pt 0 !important;
    border: 0 !important;
    border-bottom: 0.7pt solid #d0d0d0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #000 !important;
    cursor: default !important;
    transform: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .checklist-page .checklist-item:last-child {
    border-bottom: 0 !important;
  }

  .checklist-page .checklist-item input {
    width: 12pt !important;
    height: 12pt !important;
    margin: 1pt 0 0 0 !important;
    accent-color: #000 !important;
  }

  .checklist-page .checklist-item span {
    color: #000 !important;
    font-size: 9.3pt !important;
    line-height: 1.24 !important;
    text-decoration: none !important;
  }

  .checklist-page .checklist-item:has(input:checked),
  .checklist-page .checklist-item:has(input:checked) span {
    background: #fff !important;
    color: #000 !important;
    text-decoration: none !important;
  }

  .print-notes {
    display: block !important;
    margin-top: 12pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-notes h2 {
    margin: 0 0 7pt !important;
    color: #000 !important;
    font-size: 12pt !important;
  }

  .print-notes div {
    height: 18pt;
    border-bottom: 0.7pt solid #bbb;
  }

  .checklist-page .strong-disclaimer {
    margin-top: 10pt !important;
    padding-top: 7pt !important;
    border-top: 1pt solid #999 !important;
    color: #000 !important;
    font-size: 7.5pt !important;
    line-height: 1.3 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}



/* ================== ONLINE GUIDES v13.3 ================= */
.guide-showcase-section,
.online-guide-preview-section {
  background:
    radial-gradient(32rem 18rem at 0% 12%, rgba(176, 138, 62, 0.07), transparent 68%),
    var(--color-bg);
}
.guide-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.guide-showcase-card,
.online-guide-feature,
.guide-section-card,
.guide-related-tools,
.guide-toc-card,
.guide-sticky-note {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.guide-showcase-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-height: 100%;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-2xl);
  color: var(--color-text);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.guide-showcase-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -3rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: rgba(176, 138, 62, 0.10);
}
.guide-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.guide-kicker {
  justify-self: start;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guide-showcase-card h3,
.guide-showcase-card p,
.guide-showcase-card .checklist-card-link { position: relative; z-index: 1; }
.guide-showcase-card p { color: var(--color-text-muted); margin: 0; }
.online-guide-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-10);
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-2xl);
}
.online-guide-feature h3 {
  margin: var(--space-4) 0 var(--space-3);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.online-guide-feature p { color: var(--color-text-muted); max-width: 70ch; }
.guide-card-actions,
.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.button.ghost {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}
.button.ghost:hover {
  background: var(--ink-950);
  border-color: var(--ink-950);
  color: var(--color-accent-on-dark);
}
.online-guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.online-guide-steps span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--paper-100);
  border: 1px solid rgba(20, 19, 15, 0.07);
  color: var(--color-text);
  font-weight: var(--weight-bold);
}
.compact-resource-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-6);
}
.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: var(--space-8);
  align-items: start;
}
.guide-toc-card {
  position: sticky;
  top: calc(var(--header-height, 84px) + 20px);
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
}
.guide-toc {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.guide-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(250, 248, 243, 0.72);
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--weight-bold);
}
.guide-toc a:hover { background: var(--color-accent-soft); color: var(--color-accent-text); }
.guide-page-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}
.guide-sticky-note {
  position: sticky;
  top: calc(var(--header-height, 84px) + 20px);
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(16rem 10rem at 100% 0%, rgba(176, 138, 62, 0.12), transparent 72%),
    var(--color-surface);
}
.guide-sticky-note p:last-child { color: var(--color-text-muted); margin-bottom: 0; }
.guide-main { display: grid; gap: var(--space-6); }
.guide-section-card {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-2xl);
  scroll-margin-top: calc(var(--header-height, 84px) + 24px);
}
.guide-section-kicker {
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.guide-section-card h2,
.guide-related-tools h2,
.guide-callout h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.guide-section-card p,
.guide-related-tools p,
.guide-callout li { color: var(--color-text-muted); }
.guide-section-card ul,
.guide-callout ul {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}
.guide-section-card li,
.guide-callout li {
  position: relative;
  padding-left: 1.6rem;
}
.guide-section-card li::before,
.guide-callout li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-600);
  font-weight: var(--weight-bold);
}
.guide-callout {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-2xl);
  background: var(--ink-950);
  color: var(--color-text-on-dark);
}
.guide-callout h2 { color: var(--color-text-on-dark); }
.guide-callout li { color: var(--color-text-on-dark-muted); }
.guide-related-tools {
  display: grid;
  gap: var(--space-6);
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-2xl);
}
.guide-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.guide-tool-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--paper-50);
  color: var(--color-text);
  text-decoration: none;
}
.guide-tool-card:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.guide-tool-card span {
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guide-tool-card p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.guide-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-2xl);
  background: var(--ink-950);
  color: var(--color-text-on-dark);
}
.guide-next-step h2 { color: var(--color-text-on-dark); font-size: var(--text-xl); margin-bottom: var(--space-2); }
.guide-next-step p { max-width: 64ch; margin: 0; color: var(--color-text-on-dark-muted); }
.guide-next-step .button.primary { flex: 0 0 auto; background: var(--color-accent-on-dark); color: var(--ink-950); }
@media (max-width: 940px) {
  .guide-showcase-grid,
  .online-guide-feature,
  .guide-hero-grid,
  .guide-page-layout,
  .compact-resource-cards,
  .guide-tool-grid { grid-template-columns: 1fr; }
  .guide-toc-card,
  .guide-sticky-note { position: static; }
  .guide-next-step { align-items: flex-start; flex-direction: column; }
}
@media print {
  @page { size: letter; margin: 0.58in; }
  body.guide-page {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }
  body.guide-page::before {
    content: "Kory Bruce Real Estate | Windsor-Essex REALTOR® | korybruce@outlook.com | 519-551-4297";
    display: block;
    padding-bottom: 8pt;
    margin-bottom: 12pt;
    border-bottom: 1pt solid #000;
    font-size: 8.5pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000;
  }
  .guide-page .site-header,
  .guide-page .site-footer,
  .guide-page .back-link,
  .guide-page .guide-hero-actions,
  .guide-page .calculator-meta,
  .guide-page .guide-toc-card,
  .guide-page .guide-sticky-note,
  .guide-page .guide-next-step,
  .guide-page .reveal::before,
  .guide-page .reveal::after { display: none !important; }
  .guide-page *,
  .guide-page *::before,
  .guide-page *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
  }
  html.js .guide-page .reveal { opacity: 1 !important; transform: none !important; }
  .guide-page .section,
  .calculator-page.guide-page .section,
  .guide-page .guide-hero-section,
  .guide-page .guide-content-section {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .guide-page .guide-hero-grid,
  .guide-page .guide-page-layout,
  .guide-page .guide-main,
  .guide-page .guide-related-tools,
  .guide-page .guide-tool-grid { display: block !important; }
  .guide-page .estimator-intro { margin: 0 0 12pt !important; }
  .guide-page .estimator-intro .eyebrow {
    margin-bottom: 4pt !important;
    color: #000 !important;
    font-size: 8pt !important;
    letter-spacing: 0.08em !important;
  }
  .guide-page .estimator-intro h1 {
    max-width: none !important;
    margin: 0 0 6pt !important;
    color: #000 !important;
    font-size: 23pt !important;
    line-height: 1.05 !important;
  }
  .guide-page .estimator-intro p {
    max-width: none !important;
    color: #111 !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
  }
  .guide-page .guide-section-card,
  .guide-page .guide-related-tools,
  .guide-page .guide-callout {
    margin: 0 0 12pt !important;
    padding: 9pt 10pt !important;
    border: 1pt solid #777 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid-page !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .guide-page .guide-section-kicker,
  .guide-page .guide-related-tools .eyebrow { color: #000 !important; font-size: 8pt !important; }
  .guide-page .guide-section-card h2,
  .guide-page .guide-related-tools h2,
  .guide-page .guide-callout h2 {
    color: #000 !important;
    font-size: 14pt !important;
    margin: 0 0 4pt !important;
  }
  .guide-page .guide-section-card p,
  .guide-page .guide-related-tools p,
  .guide-page .guide-callout li,
  .guide-page .guide-section-card li,
  .guide-page .guide-tool-card p {
    color: #000 !important;
    font-size: 9.1pt !important;
    line-height: 1.28 !important;
  }
  .guide-page .guide-section-card ul,
  .guide-page .guide-callout ul { gap: 4pt !important; margin-top: 7pt !important; }
  .guide-page .guide-section-card li,
  .guide-page .guide-callout li { break-inside: avoid; page-break-inside: avoid; }
  .guide-page .guide-tool-card {
    display: block !important;
    margin: 0 0 6pt !important;
    padding: 6pt 0 !important;
    border: 0 !important;
    border-bottom: 0.7pt solid #ccc !important;
    background: #fff !important;
    color: #000 !important;
    text-decoration: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .guide-page .guide-tool-card span,
  .guide-page .guide-tool-card strong { color: #000 !important; }
  .guide-page .strong-disclaimer {
    margin-top: 10pt !important;
    padding-top: 7pt !important;
    border-top: 1pt solid #999 !important;
    color: #000 !important;
    font-size: 7.5pt !important;
    line-height: 1.3 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}


/* ================== LOCAL AREA VISUAL CLARITY v13.4 ==================
   Replaces the abstract map graphic with a clearer neighbourhood-fit card. */
.local-fit-visual {
  position: relative;
  min-height: 320px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(216, 186, 126, 0.28);
  background:
    radial-gradient(28rem 20rem at 92% 8%, rgba(216, 186, 126, 0.18), transparent 66%),
    linear-gradient(135deg, rgba(20, 19, 15, 0.96), rgba(48, 43, 35, 0.96));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--color-text-on-dark);
}
.local-fit-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(216, 186, 126, 0.18);
  border-radius: calc(var(--radius-2xl) - 8px);
  pointer-events: none;
}
.local-fit-visual::after {
  content: "";
  position: absolute;
  inset: auto -15% -30% 28%;
  height: 46%;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 20px);
  transform: rotate(-4deg);
  pointer-events: none;
}
.local-fit-visual > * { position: relative; z-index: 1; }
.fit-summary-card {
  max-width: 35rem;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(216, 186, 126, 0.24);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(10px);
}
.fit-kicker {
  display: inline-flex;
  margin-bottom: var(--space-3);
  color: var(--color-accent-on-dark);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fit-summary-card h4 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.fit-summary-card p {
  margin: 0;
  color: rgba(243, 239, 230, 0.76);
  font-size: var(--text-sm);
}
.fit-factor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.fit-factor {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 186, 126, 0.16);
  background: rgba(255, 255, 255, 0.055);
}
.fit-factor span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  color: var(--color-text-on-dark);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}
.fit-factor span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-on-dark);
  box-shadow: 0 0 0 4px rgba(216, 186, 126, 0.12);
}
.fit-factor small {
  display: block;
  color: rgba(243, 239, 230, 0.64);
  font-size: 0.78rem;
  line-height: 1.45;
}
.fit-area-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.fit-area-strip span {
  padding: 0.48rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 186, 126, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(243, 239, 230, 0.8);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

@media (max-width: 760px) {
  .local-fit-visual { min-height: 0; }
  .fit-factor-grid { grid-template-columns: 1fr; }
}


/* ================== WINDSOR-ESSEX MAP VISUAL v13.5 ==================
   Replaces the abstract/fit comparison graphic with a clearer local map card. */
.local-map-visual {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(171, 149, 91, 0.18);
  background: linear-gradient(180deg, #f8f4eb 0%, #f2eadc 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.local-map-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(24rem 16rem at 95% 0%, rgba(171, 149, 91, 0.12), transparent 60%);
  pointer-events: none;
}
.local-map-visual > * { position: relative; z-index: 1; }
.map-card-header h4 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.map-card-header p {
  margin: 0;
  max-width: 40rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.map-image-shell {
  margin-top: var(--space-5);
  padding: clamp(10px, 1.4vw, 14px);
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid rgba(171, 149, 91, 0.16);
  background: rgba(255, 255, 255, 0.7);
}
.map-image-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.map-note {
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
@media (max-width: 760px) {
  .local-map-visual { padding: 18px; }
  .map-image-shell { margin-top: var(--space-4); }
}


/* ================== AREAS SECTION CLEANUP v13.6 ==================
   Removes the unsuccessful map graphic and uses a cleaner editorial area card. */
.local-area-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(171, 149, 91, 0.18);
  background: linear-gradient(180deg, #fbf8f2 0%, #f5efe4 100%);
  box-shadow: var(--shadow-lg);
}
.area-card-header h4 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.area-card-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.area-cluster-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.area-cluster {
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(171, 149, 91, 0.16);
  background: rgba(255, 255, 255, 0.75);
}
.area-cluster-title {
  display: inline-flex;
  margin-bottom: var(--space-2);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.area-cluster p {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.area-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.area-chip-row span {
  padding: 0.48rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(171, 149, 91, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}
@media (max-width: 760px) {
  .local-area-card { padding: 18px; }
}


/* ================== AREAS SECTION FLOW v13.9 ==================
   Lighter homepage Areas Served section: no oversized image/card. */
.local-areas-flow {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(171, 149, 91, 0.16);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 246, 237, 0.8));
  box-shadow: var(--shadow-sm);
}
.local-areas-copy {
  display: grid;
  gap: var(--space-3);
}
.local-areas-copy h3 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.local-areas-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-muted);
}
.area-flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.area-flow-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.42rem 0.74rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(171, 149, 91, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.03em;
}
.area-flow-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(171, 149, 91, 0.16);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.area-flow-note strong {
  flex: 0 0 auto;
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .local-areas-flow { padding: 20px; }
  .area-flow-note { display: grid; gap: var(--space-2); }
}


/* ================== AREAS MINIMAL FLOW v13.9 ==================
   Final simpler Areas Served treatment: no map, no oversized card, no feature graphic. */
.areas-simple-section {
  background: linear-gradient(180deg, rgba(250, 248, 243, 0), rgba(255, 255, 255, 0.42));
}
.areas-simple {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
  padding-block: clamp(6px, 1.5vw, 16px);
}
.areas-simple__copy {
  max-width: 760px;
}
.areas-simple__copy h2 {
  margin-bottom: var(--space-4);
}
.areas-simple__copy p:not(.eyebrow):not(.lead) {
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
}
.areas-simple__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(171, 149, 91, 0.22);
}
.areas-simple__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(171, 149, 91, 0.22);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-decoration: none;
}
.areas-simple__list a::after {
  content: "→";
  color: var(--color-accent-text);
  font-weight: var(--weight-bold);
  transform: translateX(-4px);
  transition: transform 160ms ease;
}
.areas-simple__list a:hover {
  color: var(--color-accent-text);
}
.areas-simple__list a:hover::after {
  transform: translateX(0);
}
@media (max-width: 900px) {
  .areas-simple {
    grid-template-columns: 1fr;
  }
  .areas-simple__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
}
@media (max-width: 560px) {
  .areas-simple__list {
    grid-template-columns: 1fr;
  }
}


/* ================== AREAS PLAIN LIST v13.9 ==================
   Area names are informational only, not fake links. */
.areas-simple__list span {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(171, 149, 91, 0.22);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}
.areas-simple__list a {
  pointer-events: none;
}
.areas-simple__list span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: var(--space-3);
  border-radius: 999px;
  background: var(--color-accent-text);
  opacity: 0.85;
}


/* ================== SITE FLOW CLEANUP v14.0 ==================
   Information architecture cleanup: homepage is a pathway, resource hubs hold the library. */

.resources-overview-section {
  background: linear-gradient(180deg, rgba(250, 248, 243, 0), rgba(255, 255, 255, 0.5));
}
.resource-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.resource-overview-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(171, 149, 91, 0.18);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.resource-overview-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--space-4);
  padding: 0.38rem 0.64rem;
  border-radius: var(--radius-pill);
  background: rgba(171, 149, 91, 0.12);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.resource-overview-card h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.resource-overview-card p {
  margin: 0 0 var(--space-5);
  color: var(--color-text-muted);
}
.resource-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
}
.resource-hub-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.areas-compact-section {
  padding-block: clamp(42px, 7vw, 76px);
  background: rgba(250, 248, 243, 0.35);
}
.areas-compact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}
.areas-compact h2 {
  margin-bottom: var(--space-3);
}
.areas-compact p:not(.eyebrow) {
  margin: 0;
  color: var(--color-text-muted);
}
.areas-compact-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: 0.15rem;
}
.areas-compact-list span {
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(171, 149, 91, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.about-proof-section {
  overflow: hidden;
}
.about-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-proof-copy p:not(.eyebrow):not(.lead) {
  color: var(--color-text-on-dark-muted);
}
.about-proof-strip {
  margin: 0;
  align-self: stretch;
}
.about-proof-grid {
  margin-top: var(--space-8);
}
.about-proof-grid article {
  min-height: 100%;
}

.resource-journey-section {
  position: relative;
}
.journey-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  max-width: 880px;
  margin-bottom: var(--space-7);
}
.journey-number {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 149, 91, 0.22);
  background: rgba(171, 149, 91, 0.1);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
}
.journey-step h2 {
  margin-bottom: var(--space-3);
}
.resource-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.single-resource-card {
  max-width: 760px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(171, 149, 91, 0.18);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.single-resource-card h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
}
.single-resource-card p {
  margin: 0 0 var(--space-5);
  color: var(--color-text-muted);
}
.nav-dropdown-menu {
  min-width: min(18rem, calc(100vw - 2rem));
}

@media (max-width: 1000px) {
  .resource-overview-grid,
  .areas-compact,
  .about-proof-layout {
    grid-template-columns: 1fr;
  }
  .resource-tool-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .resource-overview-actions,
  .resource-hub-row {
    flex-direction: column;
  }
  .resource-overview-actions .button,
  .resource-hub-row .button {
    width: 100%;
    justify-content: center;
  }
  .journey-step {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .journey-number {
    width: 2.6rem;
    height: 2.6rem;
  }
}


/* ================== FINAL FLOW POLISH v14.1 ==================
   Homepage order, shorter FAQ, cleaner resources dropdown, and resource-hub jump menus. */

#resource-guides,
#resource-calculators,
#resource-checklists {
  scroll-margin-top: 110px;
}

.resource-jump-nav {
  position: sticky;
  top: var(--header-offset, 76px);
  z-index: 20;
  padding: 0;
  border-bottom: 1px solid rgba(171, 149, 91, 0.14);
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(14px);
}
.jump-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-3);
}
.jump-pill-row a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(171, 149, 91, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-decoration: none;
}
.jump-pill-row a:hover {
  border-color: rgba(171, 149, 91, 0.42);
  color: var(--color-accent-text);
}
.about-proof-section + .areas-compact-section {
  border-top: 1px solid rgba(171, 149, 91, 0.12);
}
#faq .lead {
  max-width: 760px;
}
@media (max-width: 760px) {
  .resource-jump-nav {
    position: static;
  }
  .jump-pill-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-4);
    scrollbar-width: thin;
  }
  .jump-pill-row a {
    white-space: nowrap;
  }
}


/* ================== ALL CALCULATORS PAGE v14.2 ==================
   Dedicated buyer/seller calculator index. */
.calculators-hero .hero-trust-row {
  max-width: 40rem;
}
.calculator-index-section {
  scroll-margin-top: 110px;
}
.calculator-index-group {
  margin-top: var(--space-8);
}
.calculator-index-group + .calculator-index-group {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(171, 149, 91, 0.14);
}
.calculator-index-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  max-width: 840px;
  margin-bottom: var(--space-5);
}
.calculator-index-heading > span {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 149, 91, 0.22);
  background: rgba(171, 149, 91, 0.1);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
}
.calculator-index-heading h3 {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.calculator-index-heading p {
  margin: 0;
  color: var(--color-text-muted);
}
.calculator-note-section .single-resource-card {
  max-width: 900px;
}
.calculator-note-section .single-resource-card h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}
.calculator-note-section .resource-hub-row {
  justify-content: flex-start;
  margin-top: var(--space-6);
}
.nav-link.active {
  color: var(--color-accent-text);
}
@media (max-width: 720px) {
  .calculator-index-heading {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .calculator-index-heading > span {
    width: 2.45rem;
    height: 2.45rem;
  }
}


/* ================== REDUNDANCY CLEANUP v14.3 ==================
   Fewer gateways: buyer/seller paths are primary; calculators page is supporting. */
.decision-grid--simple .decision-card {
  min-height: 100%;
}
.decision-grid--simple .decision-links {
  margin-top: auto;
}
.section-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.resource-tool-grid--featured {
  align-items: stretch;
}
@media (min-width: 1001px) {
  .resource-tool-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #seller-calculator-menu .resource-tool-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .section-action-row .button {
    width: 100%;
    justify-content: center;
  }
}


/* ================== LANGUAGE + NAV DECLUTTER v14.6 ==================
   Less hand-holding language, simpler dropdowns, and a leaner calculator page. */
.calculators-hero .hero__inner {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}
.calculators-hero .hero-content {
  max-width: 860px;
}
.calculators-hero .hero-buttons,
.calculators-hero .hero-trust-row {
  max-width: 860px;
}
.site-nav .dropdown-group a {
  white-space: nowrap;
}


/* ================== HEADER / LOGO POLISH v14.7 ==================
   Tighter logo spacing and return to the older KB monogram as the primary brand mark. */
.header-branding {
  gap: clamp(8px, 1.2vw, 14px);
}
.brand-divider {
  height: 28px;
  opacity: 0.75;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark-img {
  width: 46px;
  height: 46px;
  max-width: none;
  border-radius: 12px;
  flex: 0 0 auto;
}
.brand-mark-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.brand-mark-title,
.brand-mark-subtitle {
  display: block;
  line-height: 1;
}
.brand-mark-title {
  color: var(--color-text);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  font-weight: var(--weight-black);
  letter-spacing: 0.02em;
}
.brand-mark-subtitle {
  color: var(--color-accent-text);
  font-size: 0.74rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brokerage-brand img {
  height: 34px;
  max-width: 142px;
}
.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-mark-img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex: 0 0 auto;
}
.footer-mark-text {
  display: grid;
  gap: 2px;
}
.footer-mark-text strong {
  color: var(--color-text-on-dark);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.footer-mark-text span {
  color: var(--color-accent-on-dark);
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-brand-block p {
  margin-top: var(--space-4);
}
@media (max-width: 680px) {
  .brand-mark {
    gap: 8px;
  }
  .brand-mark-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .brand-mark-title {
    font-size: 0.98rem;
  }
  .brand-mark-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }
  .brokerage-brand img {
    height: 30px;
    max-width: 128px;
  }
  .brand-divider {
    height: 24px;
  }
}


/* ================== RESULTS REALTY LOGO BACKGROUND FIX v14.8.2 ==================
   Use a readable light-background logo treatment instead of a black logo field. */
.header-branding .brokerage-brand img {
  height: 34px;
  max-width: 142px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}
@media (max-width: 680px) {
  .header-branding .brokerage-brand img {
    height: 30px;
    max-width: 128px;
  }
}


/* ================== RESULTS REALTY LOGO COLOUR FIX v14.8.3 ==================
   Preserve original Results Realty artwork/colours; only the black image field was removed. */
.header-branding .brokerage-brand img {
  height: 34px;
  max-width: 142px;
  border-radius: 0;
  background: transparent;
}
@media (max-width: 680px) {
  .header-branding .brokerage-brand img {
    height: 30px;
    max-width: 128px;
  }
}


/* ================== EXACT RESULTS REALTY LOGO RESTORE v14.8.4 ==================
   Restore the known-good v14.7 Results Realty logo asset/treatment. Do not recolour or manipulate. */
.header-branding .brokerage-brand {
  opacity: 1;
}
.header-branding .brokerage-brand img {
  height: 34px;
  max-width: 142px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter: none;
}
@media (max-width: 680px) {
  .header-branding .brokerage-brand img {
    height: 30px;
    max-width: 128px;
  }
}

/* =================================================================
   v14.9 — Editorial refinement layer (palette unchanged)
   Mono section labels + auto-numbered decision paths on the homepage.
   Additive + scoped; preserves all existing brokerage colours.
   ================================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
}

/* Numbered editorial index for the homepage "Start Here" paths */
.decision-hub .decision-grid--simple { counter-reset: pathnum; }
.decision-hub .decision-grid--simple .decision-card { counter-increment: pathnum; }
.decision-hub .decision-grid--simple .decision-card::before {
  content: counter(pathnum, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 0;
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.15;
  pointer-events: none;
}
.decision-hub .decision-grid--simple .decision-card > * { position: relative; z-index: 1; }
.decision-hub .decision-grid--simple .decision-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-soft-strong);
}

/* =================================================================
   v14.9.1 — Editorial "numbers" + label consistency (palette unchanged)
   Applies the monospaced ledger treatment to all calculator results
   and aligns hub tags/chips with the new mono section labels.
   ================================================================= */
.result-label {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.18em;
}
.result-total {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.result-breakdown div strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.tool-icon  { font-family: var(--font-mono); letter-spacing: 0.08em; }
.resource-tag { font-family: var(--font-mono); letter-spacing: 0.12em; }

/* Consistent, gentle lift on resource tool cards (matches decision paths) */
.tool-card {
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent-soft-strong);
}

/* =================================================================
   v14.9.2 — Guide reading experience (palette unchanged)
   Numbered editorial sections + mono kickers + comfortable measure.
   ================================================================= */
.guide-page .guide-main { counter-reset: gsec; }
.guide-page .guide-section-card { counter-increment: gsec; position: relative; }
.guide-page .guide-section-card::before {
  content: counter(gsec, decimal-leading-zero);
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  z-index: 0;
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.12;
  pointer-events: none;
}
.guide-page .guide-section-card > * { position: relative; z-index: 1; }
.guide-page .guide-section-kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
}
.guide-page .guide-main p,
.guide-page .guide-main li { max-width: 68ch; }

/* =================================================================
   v14.9.3 — Hub icons, result states, section rhythm, mobile polish
   (palette unchanged)
   ================================================================= */

/* Cohesive icon tiles on hub tool cards (matches homepage decision icons) */
.tool-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: var(--color-accent-on-dark);
  text-transform: none;
  letter-spacing: normal;
}
.tool-icon svg { width: 21px; height: 21px; display: block; }

/* Calculator result: clearer "awaiting input" vs "resolved" states */
.estimator-result-card .result-total { transition: color 0.25s var(--ease); }
.estimator-result-card:not(.is-resolved) .result-total { color: var(--color-text-on-dark-muted); }
.estimator-result-card.is-resolved .result-total {
  color: var(--color-text-on-dark);
  animation: resultPop 0.35s var(--ease);
}
.estimator-result-card:not(.is-resolved) .result-subtext::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--color-accent-on-dark);
  animation: awaitPulse 1.6s ease-in-out infinite;
}
@keyframes resultPop { from { opacity: 0.3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes awaitPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.85; } }

/* Hub section rhythm: a touch more air between tool cards */
.resource-tool-grid { gap: var(--space-5); }

@media (prefers-reduced-motion: reduce) {
  .estimator-result-card.is-resolved .result-total { animation: none; }
  .estimator-result-card:not(.is-resolved) .result-subtext::after { animation: none; }
}

/* Mobile polish */
@media (max-width: 760px) {
  .tool-icon { width: 40px; height: 40px; min-width: 40px; }
  .tool-icon svg { width: 19px; height: 19px; }
}
@media (max-width: 520px) {
  .decision-hub .decision-grid--simple .decision-card::before { font-size: 2rem; top: 8px; right: 12px; }
  .guide-page .guide-section-card::before { font-size: 2rem; }
  .result-total { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-buttons .button { width: 100%; justify-content: center; }
}

/* =================================================================
   v14.9.4 — Fix dark "Why Kory" section: proof-strip boxes + card icons
   ================================================================= */
/* Stat boxes were stretching to the copy column height (4 cols / 3 items,
   align-self: stretch). Make them a clean, compact vertical stack. */
.about-proof-strip {
  margin: 0;
  align-self: center;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.about-proof-strip > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
}
.about-proof-strip strong { margin-bottom: 0; }

/* SVG icons in the why-cards (replaces ? ⌂ ✓ glyphs) */
.card-icon svg { width: 20px; height: 20px; display: block; }

/* v14.9.5 — Balance the "Why Kory" cards: 3 across instead of 2+1 orphan */
.about-proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .about-proof-grid { grid-template-columns: 1fr; } }

/* v14.9.6 — SVG nav chevrons that rotate on open */
.nav-caret { display: inline-flex; align-items: center; margin-left: 5px; transition: transform 0.2s var(--ease); }
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .nav-caret { transition: none; } }

/* v14.9.7 — Remove repetitive "Recommended first" badges (clutter).
   Section heading + card order already convey priority. */
.priority-tool::before { content: none; }
.priority-tool { padding-top: var(--space-5); }

/* v14.9.13 — Show brokerage logo on mobile & tablet (brand + RECO identification) */
@media (max-width: 1100px) {
  .brokerage-brand { display: flex; }
  .brand-divider { display: block; }
}
@media (max-width: 600px) {
  .brokerage-brand img { height: 30px; max-width: 112px; }
  .brand-divider { height: 26px; }
  .header-branding { gap: var(--space-3); }
}
@media (max-width: 380px) {
  .brokerage-brand img { height: 26px; max-width: 96px; }
}

/* v14.9.14 — Brokerage logo badge in footer (legible on dark, colours kept) */
.footer-brokerage-logo {
  display: inline-flex;
  margin-top: var(--space-4);
}
.footer-brokerage-logo img { height: 42px; width: auto; display: block; opacity: 0.92; }
