:root {
  --navy: #2B2D6B;
  --red: #B22234;
  --off-white: #F7F7FA;
  --gray: #6B6C87;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(43, 45, 107, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--gray);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(178, 34, 52, 0.35);
}
.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(43, 45, 107, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(43,45,107,0.1);
  border-bottom: 1px solid #EEEEF5;
  transition: background 0.3s ease;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.logo-badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-badge img {
  height: 42px;
  width: auto;
  display: block;
}

/* Nav logo reads larger than the footer's — the footer mark is a smaller,
   secondary sign-off, while the nav is the primary brand mark on every page. */
header .logo-badge img {
  height: 66px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(43,45,107,0.72);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--navy); }

.nav-links a.active {
  color: var(--navy);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.nav-social {
  display: flex;
  align-items: center;
}
.nav-social svg { width: 20px; height: 20px; }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- HERO ---------- */
.hero {
  background-image: linear-gradient(180deg, rgba(15,17,46,0.78) 0%, rgba(43,45,107,0.62) 45%, rgba(15,17,46,0.82) 100%), url('hero-bg.jpg');
  background-size: cover;
  /* hero-bg.jpg is a tall portrait photo (1290x2127); the horizon/panels sit
     ~43-64% down the frame. On a wide hero box, cover scales the image up to
     fill the width, which crops most of its height — 55% keeps that band
     centered in the visible crop across normal, full-screen, and ultrawide
     viewports (verified: the required anchor stays ~54-56% regardless of
     viewport aspect ratio, since this image is always width-bound under cover). */
  background-position: center 55%;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 961px) {
  .hero {
    /* Ties the hero box's height to the viewport instead of only to content
       height, so wide/ultrawide/full-screen windows don't force an even
       heavier crop than a typical laptop window already needs. */
    min-height: 92vh;
  }
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178,34,52,0.22), transparent 70%);
  top: -200px;
  right: -150px;
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { text-align: left; }
.hero-content .hero-kicker-row,
.hero-content .hero-badges { justify-content: flex-start; }

.hero-stat-hero { margin: 4px 0 18px; }
.hero-stat-eyebrow {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-stat-number {
  display: block;
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin: 2px 0;
}
.hero-stat-caption {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.hero-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 32px;
}
.hero-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  font-weight: 600;
}
.hero-highlights .check {
  color: var(--red);
  font-weight: 900;
  flex-shrink: 0;
}

.hero-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.hero-card-badge {
  display: inline-block;
  background: rgba(178,34,52,0.1);
  color: var(--red);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-card h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.hero-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.hero-card form { display: flex; flex-direction: column; gap: 14px; }
.hero-card .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-card input {
  padding: 13px 14px;
  border-radius: 8px;
  border: 1.5px solid #DEDEEA;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
}
.hero-card input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(43,45,107,0.12);
}
.hero-card .btn { width: 100%; margin-top: 4px; }
.hero-card-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 14px;
  text-align: center;
}
#hero-bill-error {
  display: none;
  background: rgba(178,34,52,0.08);
  border: 1px solid rgba(178,34,52,0.3);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
}
#hero-bill-error.show { display: block; }

.hero-results { display: none; }
.hero-results.show { display: block; }
.hero-results-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.explainer-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  color: var(--navy);
  text-align: left;
  position: relative;
  z-index: 1;
}
.explainer-card .eyebrow { display: block; margin-bottom: 16px; }

.explainer-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.explainer-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.explainer-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.explainer-steps li > span:last-child {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--navy);
}

.explainer-note {
  font-size: 0.78rem;
  color: var(--gray);
  font-style: italic;
  line-height: 1.5;
  padding-top: 14px;
  margin-bottom: 18px;
  border-top: 1px solid #E9E9F2;
}

.explainer-example {
  background: var(--off-white);
  border-radius: 14px;
  padding: 16px 18px;
}
.explainer-example-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray);
  margin-bottom: 10px;
}
.explainer-example-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--navy);
  padding: 5px 0;
}
.explainer-example-row strong { font-weight: 800; white-space: nowrap; }
.explainer-example-savings {
  border-top: 1px dashed #DEDEEA;
  margin-top: 4px;
  padding-top: 10px;
  color: var(--red);
}
.explainer-example-savings strong { color: var(--red); font-size: 0.98rem; }

/* At full-screen desktop widths there's enough room to show the explainer
   and the savings form side by side instead of stacked. Widening
   .hero-grid itself (beyond the site's normal 1160px .container cap) and
   shifting more of its share to the right column is what actually makes
   room for two comfortably-readable ~420px cards — without it, splitting
   .hero-side into two columns inside the normal-width container would
   crush each card down to ~215px, which is too narrow to read cleanly. */
@media (min-width: 1400px) {
  .hero-grid {
    max-width: 1520px;
    grid-template-columns: 1fr 1.35fr;
  }
  .hero-side {
    flex-direction: row;
    align-items: stretch;
  }
  .hero-side > .explainer-card,
  .hero-side > .hero-card {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { text-align: center; }
  .hero-content .hero-kicker-row,
  .hero-content .hero-badges { justify-content: center; }
  .hero-highlights li { justify-content: center; }
  .hero-side { max-width: 480px; margin: 0 auto; }
  .hero-card { max-width: 480px; margin: 0 auto; }
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-kicker {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.flag-icon {
  height: 16px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(178,34,52,0.18);
  border: 1px solid rgba(178,34,52,0.4);
  padding: 8px 18px;
  border-radius: 999px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(178,34,52,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(178,34,52,0); }
  100% { box-shadow: 0 0 0 0 rgba(178,34,52,0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--red); }

.hero p.sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.zip-check {
  max-width: 460px;
  margin: 0 auto 46px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: left;
}

.zip-check label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.zip-check-row {
  display: flex;
  gap: 10px;
}

.zip-check-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-size: 0.98rem;
  font-family: inherit;
}

.zip-check-row input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(178,34,52,0.35);
}

.zip-check-row .btn {
  padding: 12px 22px;
  white-space: nowrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 36px;
}

.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  color: var(--white);
}
.hero-stats span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- STAT BANNER ---------- */
section.stat-banner {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  margin-top: -60px;
}

.stat-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(178,34,52,0.1);
  color: var(--red);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card p {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.stat-card p strong { color: var(--red); }

/* ---------- PARTNERS ---------- */
.partners {
  background: var(--off-white);
  padding: 60px 0;
}

.partners-heading {
  text-align: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.partner-badge {
  background: var(--white);
  border: 1px solid #E4E4F0;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(43,45,107,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.partner-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid #E4E4F0;
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 2px 10px rgba(43,45,107,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.partner-logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* ---------- HOW IT WORKS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

/* Step photo, with the numbered badge overlapping its bottom edge. The badge
   lives in .step-media-wrap (no overflow clipping) rather than inside
   .step-media itself, so the part of the circle that overlaps past the
   photo's edge never gets clipped by .step-media's overflow:hidden (which
   is only there to crop the image to its rounded corners). A subtle navy
   gradient sits over every photo so four different stock photos (each shot
   in different light) still read as one consistent, on-brand set. */
.step-media-wrap {
  position: relative;
  margin-bottom: 34px;
}
.step-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(43,45,107,0.18);
}
.step-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}
.step-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,45,107,0.10) 0%, rgba(43,45,107,0.45) 100%);
  pointer-events: none;
}
.step-media-wrap .step-num {
  position: absolute;
  z-index: 1;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  border: 3px solid var(--off-white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.step-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-card p { color: var(--gray); font-size: 0.98rem; }

.step-connector {
  display: none;
}

/* ---------- WHY AEG ---------- */
.why {
  background: var(--off-white);
  color: var(--navy);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border: 1px solid #E9E9F2;
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(43,45,107,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(178,34,52,0.1);
  color: var(--red);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.why-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid #E9E9F2;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 18px rgba(43,45,107,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stars {
  color: var(--red);
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card p.quote {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-person strong { display: block; font-size: 0.95rem; color: var(--navy); }
.testimonial-person span { font-size: 0.85rem; color: var(--gray); }

.testimonials-empty {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--off-white);
  border: 2px dashed #D6D6E6;
  border-radius: 16px;
  padding: 52px 36px;
}

.testimonials-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(178,34,52,0.1);
  color: var(--red);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.testimonials-empty h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.testimonials-empty p {
  color: var(--gray);
  font-size: 0.98rem;
}

/* ---------- LEADERBOARD ---------- */
.leaderboard {
  background: var(--off-white);
}

.leaderboard-image {
  max-width: 480px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.leaderboard-image img {
  width: 100%;
  display: block;
}

/* ---------- CAREERS ---------- */
.careers {
  background: var(--off-white);
  border: 1px solid #E9E9F2;
  color: var(--navy);
  border-radius: 24px;
  margin: 0 24px;
  padding: 72px 40px;
  max-width: 1112px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.careers::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(178,34,52,0.1), transparent 70%);
  bottom: -180px;
  left: -100px;
}

.careers-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

.careers h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.careers p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.careers-perks {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.careers-perks span {
  background: rgba(178,34,52,0.08);
  color: var(--red);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- LIFE AT AEG (RECRUITING) ---------- */
.life-at-aeg {
  background: var(--off-white);
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Used when only one photo remains in the grid, so it reads as a single
   featured image instead of stretching full-width or leaving empty columns. */
.life-grid-single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}

.life-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(43,45,107,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.life-photo:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.life-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.life-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .life-grid { grid-template-columns: 1fr; }
}

/* ---------- CONTACT ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(178,34,52,0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail strong { display: block; color: var(--navy); font-size: 0.95rem; }
.contact-detail span { color: var(--gray); font-size: 0.9rem; }

form.lead-form {
  background: var(--off-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-row .form-group,
.form-row-3 .form-group { margin-bottom: 0; }

label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

input,
select {
  padding: 13px 16px;
  border-radius: 8px;
  border: 1.5px solid #DEDEEA;
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(43,45,107,0.12);
}

.form-submit {
  width: 100%;
  border: none;
  margin-top: 6px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 14px;
  text-align: center;
}

#form-success {
  display: none;
  background: #E9F7EF;
  border: 1px solid #B7E4C7;
  color: #1E7A45;
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
#form-success.show { display: block; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--off-white);
  border: 1px solid #E4E4F0;
  border-radius: 12px;
  padding: 4px 24px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-item p {
  color: var(--gray);
  font-size: 0.96rem;
  padding-bottom: 22px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; max-width: 280px; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--white); }

.social-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.social-follow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-icon svg {
  width: 22px;
  height: 22px;
}

.follow-text { transition: color 0.2s ease; }

.social-follow:hover .social-icon {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}
.social-follow:hover .follow-text { color: var(--white); }

.insider-line {
  text-align: center;
  padding: 26px 0;
  margin-top: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.insider-line strong { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}


/* ---------- PAGE (SUBPAGE) SPACING ---------- */
/* Non-home pages don't have the tall .hero, so their first section needs
   extra top padding to clear the fixed header. */
.page-section-first {
  padding-top: 160px;
}

/* ---------- BOOK APPOINTMENT (Microsoft Bookings embed) ---------- */
.booking-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--off-white);
  border: 1px solid #E9E9F2;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

.booking-iframe-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(43,45,107,0.08);
  margin-bottom: 28px;
}

.booking-iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

.booking-fallback {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .booking-card { padding: 20px; }
  .booking-iframe { height: 640px; }
}

/* ---------- SIGN UP ---------- */
.signup-form {
  max-width: 640px;
  margin: 0 auto;
}

.field-error {
  display: none;
  background: rgba(178,34,52,0.08);
  border: 1px solid rgba(178,34,52,0.3);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: -6px;
  margin-bottom: 18px;
}
.field-error.show { display: block; }

.signup-auth {
  background: var(--off-white);
  border: 1px solid #E4E4F0;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.signup-auth-heading {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.signup-auth-intro {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 18px;
}

.signup-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.signup-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.signup-checkbox-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  cursor: pointer;
}

.signup-signature {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #DEDEEA;
}
.signup-signature-note {
  font-size: 0.78rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 8px;
}

#signup-form-success {
  display: none;
  max-width: 640px;
  margin: 0 auto 18px;
  background: #E9F7EF;
  border: 1px solid #B7E4C7;
  color: #1E7A45;
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
#signup-form-success.show { display: block; }

#rep-credit-success {
  display: none;
  max-width: 640px;
  margin: 0 auto 18px;
  background: #E9F7EF;
  border: 1px solid #B7E4C7;
  color: #1E7A45;
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
#rep-credit-success.show { display: block; }

.rep-credit-form {
  max-width: 640px;
  margin: 0 auto 28px;
  background: var(--off-white);
  border: 1px solid #E4E4F0;
  border-radius: 14px;
  padding: 24px 28px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .steps, .why-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 107px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 12px 24px rgba(43,45,107,0.15);
    border-bottom: 1px solid #EEEEF5;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .hero { padding: 140px 0 80px; }
  .page-section-first { padding-top: 130px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .careers { margin: 0 16px; padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 28px; }
  .zip-check-row { flex-direction: column; }
  .zip-check-row .btn { width: 100%; }
}
