/* ============================================
   Jaeger Home Edge at Real Broker, LLC
   Stylesheet — Real Brokerage compliant palette
   ============================================ */

:root {
  /* Jaeger Home Edge Brand Colors */
  --cobalt: #050e3d;
  --chalk: #ffffff;
  --onyx: #1d1d1d;
  --slate: #615b56;
  --seaglass: #bfdddb;
  --coral: #B8860B;
  --legacy-blue: #05c3f9;
  --aqua: #00fbf0;

  /* Functional aliases */
  --bg: var(--chalk);
  --bg-alt: #f7f8fb;
  --bg-dark: var(--cobalt);
  --text: var(--onyx);
  --text-muted: var(--slate);
  --accent: var(--coral);
  --accent-soft: var(--seaglass);
  --border: #e6e8ef;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 6px;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(5, 14, 61, 0.04), 0 1px 3px rgba(5, 14, 61, 0.06);
  --shadow: 0 8px 24px rgba(5, 14, 61, 0.08);
  --shadow-lg: 0 24px 48px rgba(5, 14, 61, 0.12);

  /* Transitions */
  --t: 200ms ease;
}

/* ============================================
   Reset / Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--coral); }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cobalt);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--cobalt); color: var(--chalk); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--chalk); }
.section--dark .lead { color: rgba(255,255,255,0.8); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 12px;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
  /* visible window into the logo image — crops top/bottom whitespace */
  height: 174px;
}
.brand__logo {
  /* image rendered taller than the visible window so margin crops whitespace */
  height: 276px;
  width: auto;
  display: block;
  margin: -51px 0;
}
@media (max-width: 1024px) {
  .brand { height: 132px; }
  .brand__logo { height: 210px; margin: -39px 0; }
}
@media (max-width: 820px) {
  .brand { height: 100px; }
  .brand__logo { height: 160px; margin: -30px 0; }
}
@media (max-width: 480px) {
  .brand { height: 76px; }
  .brand__logo { height: 120px; margin: -22px 0; }
}
/* Stacked lockup + live tagline (mark + wordmark image, tagline as text) */
.brand.brand--stacked {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: auto;
  gap: 0;
  overflow: visible;
}
.brand__lockup {
  width: 330px;
  height: auto;
  display: block;
}
.brand__tagline {
  font-size: 19px;
  line-height: 1.1;
  color: #324360;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: 2px;
  white-space: nowrap;
}
.brand--stacked + .nav__toggle { align-self: center; }
@media (max-width: 1024px) { .brand__lockup { width: 300px; } }
@media (max-width: 820px)  { .brand__lockup { width: 260px; } .brand__tagline { font-size: 15px; } }
@media (max-width: 480px)  { .brand__lockup { width: 210px; } .brand__tagline { font-size: 12px; white-space: normal; } }
/* Legacy text mark + name (kept as visually hidden fallback) */
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--cobalt);
  color: var(--chalk);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand__name {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand__name strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cobalt);
  font-weight: 700;
}
.brand__name span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
/* Footer brand logo */
.site-footer__logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  /* Render against dark footer */
  filter: brightness(0) invert(1);
}
.nav__links {
  display: flex; align-items: center; gap: 28px;
}
.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cobalt);
}
.nav__links a:hover { color: var(--coral); }
.nav__cta {
  background: var(--coral);
  color: var(--chalk) !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--t), background var(--t);
}
.nav__cta:hover { background: #9C7008; transform: translateY(-1px); }
.nav__toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; color: var(--cobalt);
}

@media (max-width: 820px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--chalk);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: none; }
  .nav__cta { margin: 12px 24px; text-align: center; }
  .nav__toggle { display: block; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--cobalt) 0%, #0a1a5e 60%, #0a2a7a 100%);
  color: var(--chalk);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(184, 134, 11, 0.18) 0, transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(5, 195, 249, 0.14) 0, transparent 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding: clamp(64px, 10vw, 130px) 0;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.hero h1 { color: var(--chalk); }
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 0 28px;
}
.hero__ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero__trust {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
}
.hero__trust span { display: flex; align-items: center; gap: 6px; }
.hero__trust strong { color: var(--chalk); font-weight: 600; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.btn--primary {
  background: var(--coral);
  color: var(--chalk);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.35);
}
.btn--primary:hover { background: #9C7008; transform: translateY(-2px); color: var(--chalk); }
.btn--secondary {
  background: var(--chalk);
  color: var(--cobalt);
}
.btn--secondary:hover { background: var(--seaglass); color: var(--cobalt); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--chalk);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--chalk); border-color: var(--chalk); }
.btn--block { width: 100%; }

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--chalk);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--seaglass);
  color: var(--cobalt);
  border-radius: 10px;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card--feature h3 { color: var(--cobalt); margin-bottom: 8px; }
.card--feature p { color: var(--text-muted); margin-bottom: 0; }

/* Pricing/Offer comparison cards */
.offer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 32px;
}
.offer-card {
  background: var(--chalk);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.offer-card--highlight {
  border-color: var(--coral);
  box-shadow: 0 18px 40px rgba(184, 134, 11, 0.18);
}
.offer-card__tag {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--coral);
  color: var(--chalk);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.offer-card h3 { margin-bottom: 8px; }
.offer-card__big {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin: 12px 0 4px;
}
.offer-card__small { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }
.offer-card ul {
  list-style: none; padding: 0; margin: 0;
}
.offer-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
}
.offer-card li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 8px;
  width: 20px; height: 20px;
  background: var(--seaglass);
  color: var(--cobalt);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ============================================
   Process / Steps
   ============================================ */
.steps {
  counter-reset: step;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 40px;
}
.step {
  position: relative;
  padding: 24px;
  background: var(--chalk);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -16px; left: 24px;
  width: 36px; height: 36px;
  background: var(--cobalt);
  color: var(--chalk);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.step h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.step p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ============================================
   Calculator
   ============================================ */
.calc {
  background: var(--chalk);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.calc__label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--cobalt);
}
.calc__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--coral);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.calc input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--border);
  outline: none;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
  border: 3px solid var(--chalk);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
  border: 3px solid var(--chalk);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
}
.calc__results {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.calc__result {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.calc__result--win {
  background: linear-gradient(135deg, var(--cobalt), #0a1a5e);
  color: var(--chalk);
  border-color: var(--cobalt);
}
.calc__result h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; opacity: 0.7; color: inherit; font-weight: 600; }
.calc__result strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; display: block; }
.calc__result--win h4 { color: rgba(255,255,255,0.85); }
.calc__result--win strong { color: var(--chalk); }
.calc__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* Credit tier selector (buyers) */
.tiers {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}
.tier {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--chalk);
  transition: all var(--t);
  cursor: pointer;
}
.tier:hover { border-color: var(--coral); transform: translateY(-2px); }
.tier.is-selected {
  border-color: var(--coral);
  background: linear-gradient(135deg, rgba(184, 134, 11,0.06), rgba(191,221,219,0.12));
  box-shadow: var(--shadow);
}
.tier__price { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.tier__amt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral);
  margin: 6px 0 4px;
  line-height: 1;
}
.tier__note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ============================================
   FAQ
   ============================================ */
.faq { max-width: 800px; margin: 32px auto 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  background: var(--chalk);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--t);
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--cobalt);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--coral);
  transition: transform var(--t);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div, .faq details > p {
  padding: 0 24px 22px;
  color: var(--text-muted);
}

/* ============================================
   Lead form
   ============================================ */
.lead-form-section {
  background: var(--cobalt);
  color: var(--chalk);
  position: relative;
  overflow: hidden;
}
.lead-form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 50%, rgba(184, 134, 11,0.16) 0, transparent 50%),
    radial-gradient(circle at 10% 10%, rgba(5,195,249,0.12) 0, transparent 50%);
  pointer-events: none;
}
.lead-form-section .container { position: relative; }
.lead-form-section h2, .lead-form-section h3 { color: var(--chalk); }
.lead-form-section .lead { color: rgba(255,255,255,0.85); }
.lead-form {
  background: var(--chalk);
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}
.lead-form__row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cobalt);
}
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--chalk);
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.lead-form__privacy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}
.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(46, 125, 50, 0.1); color: #2e7d32; border: 1px solid rgba(46, 125, 50, 0.3); }
.form-status.is-error { background: rgba(211, 47, 47, 0.1); color: #c62828; border: 1px solid rgba(211, 47, 47, 0.3); }

/* ============================================
   Footer (Compliance-critical)
   ============================================ */
.site-footer {
  background: var(--cobalt);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 32px;
}
.site-footer h4 {
  color: var(--chalk);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.site-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand strong {
  font-family: var(--font-display);
  color: var(--chalk);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 6px;
}
.site-footer__brand p { font-size: 0.92rem; color: rgba(255,255,255,0.7); margin: 0 0 12px; max-width: 320px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--coral); }

.compliance-bar {
  margin-top: 40px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}
.compliance-bar p { margin: 0; line-height: 1.6; }
.eho {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--chalk);
}
.eho__icon {
  width: 22px; height: 22px;
  border: 2px solid var(--chalk);
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ============================================
   Utility / Misc
   ============================================ */
.tag {
  display: inline-block;
  background: var(--seaglass);
  color: var(--cobalt);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.callout {
  background: linear-gradient(135deg, rgba(191,221,219,0.4), rgba(5,195,249,0.08));
  border-left: 4px solid var(--coral);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.callout strong { color: var(--cobalt); }

.savings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--chalk);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.savings-table th, .savings-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.savings-table th {
  background: var(--cobalt);
  color: var(--chalk);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.savings-table tr:last-child td { border-bottom: none; }
.savings-table td.win { color: var(--coral); font-weight: 700; }
.savings-table td.muted { color: var(--text