/* ============================================================
   Michigan Roof Programs — Design System
   Navy / Gold / White — Mobile First
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --navy:        #0C2340;
  --navy-mid:    #1B3A6B;
  --navy-light:  #2A4E8C;
  --gold:        #C49A2A;
  --gold-light:  #D4AA3A;
  --gold-bright: #F0C84A;
  --gold-pale:   #FDF6E3;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --gray-100:    #EEF0F4;
  --gray-200:    #D8DCE4;
  --gray-400:    #8B9CB0;
  --gray-600:    #4A5568;
  --text-dark:   #0C1929;
  --text-mid:    #3D4F63;
  --success:     #1E7E4A;
  --success-bg:  #E8F5EE;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(12,35,64,0.08), 0 1px 2px rgba(12,35,64,0.04);
  --shadow-md:   0 4px 16px rgba(12,35,64,0.10), 0 2px 6px rgba(12,35,64,0.06);
  --shadow-lg:   0 12px 40px rgba(12,35,64,0.14), 0 4px 12px rgba(12,35,64,0.08);
  --transition:  0.2s ease;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.125rem, 3vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.7; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover  { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold:active { transform: translateY(0); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover  { background: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

.btn-large { padding: 18px 36px; font-size: 1.125rem; border-radius: var(--radius-md); }
.btn-full  { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(12,35,64,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-image {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
.footer-logo-image {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin-bottom: 14px;
  object-fit: contain;
}
.nav-cta {
  display: none;
}
@media (min-width: 640px) {
  .nav-cta { display: flex; align-items: center; gap: 10px; }
  .nav-phone {
    color: var(--gray-200);
    font-size: 0.875rem;
    font-weight: 600;
  }
  .nav-phone a { color: inherit; }
  .nav-phone a:hover { color: var(--gold); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 60%, #1E4A8A 100%);
  color: var(--white);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(196,154,42,0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196,154,42,0.2);
  border: 1px solid rgba(196,154,42,0.4);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 680px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.hero-trust-item svg, .hero-trust-item .trust-icon {
  color: var(--gold);
  font-size: 1rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--gold);
  padding: 20px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item {}
.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 72px 0;
  background: var(--off-white);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 12px;
  color: var(--navy);
}
.section-sub {
  color: var(--text-mid);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 48px;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 680px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--gray-100);
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ============================================================
   QUIZ / ELIGIBILITY FORM
   ============================================================ */
.quiz-section {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gold-pale) 100%);
  border-top: 1px solid var(--gray-100);
}
.quiz-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
}
.quiz-header {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.quiz-header {
  background: var(--navy);
  color: var(--white);
  padding: 32px 36px 28px;
  text-align: center;
}
.quiz-badge {
  display: inline-block;
  background: rgba(196,154,42,0.25);
  border: 1px solid rgba(196,154,42,0.5);
  color: var(--gold-bright);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.quiz-header h2 {
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  color: var(--white);
  margin-bottom: 8px;
}
.quiz-header p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9375rem;
}

/* Progress */
.quiz-progress {
  padding: 20px 36px 0;
  background: var(--white);
}
.progress-track {
  height: 6px;
  background: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-mid), var(--gold));
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 25%;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-bottom: 4px;
}
.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.progress-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}

/* Steps */
.quiz-body {
  padding: 28px 36px 36px;
}
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.quiz-step h3 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: clamp(1.0625rem, 3vw, 1.25rem);
}
.step-hint {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 24px;
  margin-top: -2px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.choice-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 400px) {
  .choice-grid.three-col { grid-template-columns: 1fr; }
}
.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--off-white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--transition);
  text-align: center;
  line-height: 1.3;
}
.choice-btn:hover {
  border-color: var(--navy-light);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.choice-btn.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.choice-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Contact Form */
.contact-form { margin-top: 8px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 420px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select {
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.12);
}
.form-group input.error,
.form-group select.error {
  border-color: #C0392B;
}
.form-group input::placeholder { color: var(--gray-400); }
.field-error {
  font-size: 0.75rem;
  color: #C0392B;
  font-weight: 500;
  display: none;
}
.field-error.visible { display: block; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B9CB0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.btn-submit {
  width: 100%;
  height: 56px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}
.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.form-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.form-disclaimer a {
  color: var(--navy-light);
  text-decoration: underline;
}

/* Confirmation Step */
.confirmation-content { text-align: center; padding: 8px 0 16px; }
.confirmation-icon {
  width: 72px;
  height: 72px;
  background: var(--success-bg);
  border: 3px solid var(--success);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 24px;
}
.confirmation-content h3 {
  color: var(--success);
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.confirmation-content p {
  color: var(--text-mid);
  margin-bottom: 12px;
  font-size: 0.9375rem;
}
.confirmation-sub strong { color: var(--navy); }
.confirmation-cta {
  margin-top: 28px;
  padding: 24px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  border: 1px solid rgba(196,154,42,0.3);
}
.confirmation-cta p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.confirmation-cta .btn-gold {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   TRUST / WHY CHOOSE
   ============================================================ */
.trust-section {
  padding: 72px 0;
  background: var(--navy);
  color: var(--white);
}
.trust-section .section-label { color: var(--gold); }
.trust-section .section-title { color: var(--white); }
.trust-section .section-sub   { color: rgba(255,255,255,0.7); }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 560px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background var(--transition);
}
.trust-card:hover { background: rgba(255,255,255,0.09); }
.trust-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(196,154,42,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.trust-card h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.0625rem;
}
.trust-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 72px 0;
  background: var(--off-white);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: background var(--transition);
  gap: 12px;
}
.faq-question:hover { background: var(--off-white); }
.faq-question.open   { background: var(--off-white); }
.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--navy);
  transition: transform 0.25s ease, background 0.2s;
}
.faq-question.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--navy);
  color: var(--white);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-answer.open {
  max-height: 400px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1.0625rem; max-width: 520px; margin-left: auto; margin-right: auto; margin-bottom: 36px; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
@media (min-width: 480px) { .cta-actions { flex-direction: row; justify-content: center; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.55);
  padding: 48px 0 100px;
}
@media (min-width: 640px) { .site-footer { padding-bottom: 48px; } }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 40px; } }
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  max-width: 900px;
}
.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  margin-top: 12px;
}

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy);
  border-top: 2px solid rgba(196,154,42,0.35);
  padding: 10px 16px 12px;
  display: flex;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(12,35,64,0.3);
}
@media (min-width: 768px) {
  .sticky-cta-bar { display: none; }
}
.sticky-cta-bar .btn {
  flex: 1;
  height: 52px;
  font-size: 0.9375rem;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  white-space: normal;
}
.sticky-btn-call {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.sticky-btn-call:hover { background: rgba(255,255,255,0.08); }
.sticky-btn-quiz {
  background: var(--gold);
  color: var(--navy);
}
.sticky-btn-quiz:hover { background: var(--gold-light); }

/* ============================================================
   INNER PAGES (privacy / terms)
   ============================================================ */
.inner-page {
  min-height: 100vh;
  padding: 56px 0 80px;
  background: var(--off-white);
}
.inner-page .page-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 40px;
  margin-bottom: 40px;
}
.inner-page .page-header h1 {
  color: var(--white);
}
.inner-page .page-header p {
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
}
.prose {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
@media (max-width: 600px) { .prose { padding: 28px 20px; } }
.prose h2 {
  font-size: 1.125rem;
  color: var(--navy);
  margin: 32px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}
.prose h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.prose p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.75;
}
.prose ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-mid);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.prose a { color: var(--navy-mid); text-decoration: underline; }
.prose strong { color: var(--text-dark); }

/* ============================================================
   UTILITY STATES
   ============================================================ */
.hidden { display: none !important; }

/* Loading spinner for submit button */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(12,35,64,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
}

/* ============================================================
   HERO VISUAL / BEFORE-AFTER COMPARISON
   ============================================================ */
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-visual {
  position: relative;
  z-index: 1;
}
.comparison-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.comparison-header {
  display: grid;
  gap: 10px;
  padding: 18px 18px 0;
}
.comparison-header strong {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.4;
}
.comparison-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(240,200,74,0.16);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.comparison-slider {
  --position: 68%;
  position: relative;
  margin: 16px 18px 18px;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  user-select: none;
}
.comparison-image,
.comparison-reveal-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.comparison-reveal-wrap {
  width: var(--position);
  overflow: hidden;
}
.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 4px;
  background: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(12,35,64,0.15);
  transform: translateX(-50%);
  z-index: 3;
}
.comparison-handle {
  position: absolute;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-md);
  font-size: 1rem;
  font-weight: 900;
  pointer-events: none;
  z-index: 4;
}
.comparison-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}
.comparison-label {
  position: absolute;
  top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12,35,64,0.72);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.comparison-label-before { left: 14px; }
.comparison-label-after { right: 14px; }
.comparison-footer {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
}
.comparison-footer strong {
  color: var(--gold-bright);
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 44px;
  }
}

@media (max-width: 979px) {
  .comparison-slider {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .comparison-header,
  .comparison-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .comparison-slider {
    margin: 14px;
    min-height: 260px;
  }
  .comparison-handle {
    width: 42px;
    height: 42px;
  }
}

/* ============================================================
   QUIZ V2 + LARGE HERO OVERRIDES
   ============================================================ */
.hero {
  overflow: hidden;
}
.hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(540px, 1.04fr);
  gap: 40px;
  align-items: center;
}
.hero-visual,
.hero-visual-full {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.comparison-slider {
  position: relative;
  flex: 1;
  min-height: 520px;
}
.comparison-slider-hero {
  min-height: 0;
  height: clamp(420px, 52vw, 600px);
  width: min(100%, 620px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.06);
}
.comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.comparison-image-base {
  z-index: 1;
}
.comparison-reveal-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--position)) 0 0);
  z-index: 2;
}
.comparison-image-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.quiz-steps-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
}
.quiz-top-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: .9rem;
  font-weight: 700;
}
.quiz-top-step span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E9EEF6;
  color: var(--gray-400);
  font-weight: 800;
}
.quiz-top-step.active,
.quiz-top-step.complete {
  color: var(--navy);
}
.quiz-top-step.active span,
.quiz-top-step.complete span {
  background: var(--navy);
  color: var(--white);
}
.quiz-top-line {
  flex: 1;
  max-width: 66px;
  height: 2px;
  background: #D6DEE8;
}
.progress-meta-center {
  justify-content: center;
  gap: 12px;
}
.quiz-progress-alt {
  margin-bottom: 12px;
}
.quiz-step h3 {
  text-align: center;
}
.quiz-step .step-hint {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.stacked-choice-grid {
  display: grid;
  gap: 14px;
}
.choice-btn-row {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 18px 18px;
  border-radius: 16px;
}
.choice-copy {
  display: grid;
  gap: 4px;
}
.choice-copy strong {
  color: var(--navy);
  font-size: 1rem;
}
.choice-copy small {
  color: var(--gray-400);
  font-size: .9rem;
}
.zip-success-box[hidden] {
  display: none !important;
}
.zip-success-box {
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 10px 0 14px;
  border-radius: 14px;
  background: #E9F9EE;
  border: 1px solid #B6E8C2;
  color: #1D6B38;
}
.zip-success-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2DBA66;
  color: white;
  font-weight: 800;
}
.quiz-footnote {
  text-align: center;
  margin-top: 12px;
  color: var(--gray-400);
  font-size: .92rem;
}
.form-group-consent {
  margin-top: 4px;
  min-height: 44px;
}
.consent-check {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--text-mid);
  font-size: .92rem;
  cursor: pointer;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  padding: 4px 0;
}
.consent-checkbox-visual {
  display: inline-block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  background: var(--white);
  margin-top: 1px;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.consent-check[aria-checked="true"] .consent-checkbox-visual {
  background: var(--navy);
  border-color: var(--navy);
}
.consent-check[aria-checked="true"] .consent-checkbox-visual::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 7px;
  height: 11px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.consent-check:focus {
  outline: 2px solid var(--navy-mid);
  outline-offset: 2px;
  border-radius: 4px;
}
#contactForm .btn-submit,
#zipForm .btn-submit,
#step3Next {
  width: 100%;
}
#step3Next {
  margin-top: 18px;
}
#step3Next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
@media (max-width: 1320px) {
  .hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(500px, 1fr);
  }
}
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual,
  .hero-visual-full {
    justify-content: center;
  }
  .comparison-slider-hero {
    height: min(72vw, 560px);
    width: min(100%, 760px);
  }
  .comparison-slider {
    min-height: 420px;
  }
}
@media (max-width: 760px) {
  .quiz-steps-top {
    gap: 8px;
  }
  .quiz-top-step strong {
    font-size: .78rem;
  }
  .quiz-top-step span {
    width: 28px;
    height: 28px;
  }
  .quiz-top-line {
    max-width: 28px;
  }
  .comparison-slider-hero {
    min-height: 440px;
  }
  .comparison-slider {
    min-height: 340px;
  }
}

/* ============================================================
   HERO IMAGE (replaces comparison slider)
   ============================================================ */
.hero-image-wrap {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.04);
}
.hero-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 451 / 508;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(12, 35, 64, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-img-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--success);
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* Fix hero grid for new image layout */
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual,
  .hero-visual-full {
    justify-content: center;
  }
  .hero-image-wrap {
    width: min(100%, 460px);
  }
  .hero-main-img {
    height: auto;
    aspect-ratio: 451 / 508;
  }
}

/* Fix selected state text colors for choice buttons */
.choice-btn.selected .choice-copy strong { color: var(--white); }
.choice-btn.selected .choice-copy small  { color: rgba(255,255,255,0.72); }

@media (max-width: 640px) {
  /* ---- body ---- */
  body {
    padding-bottom: 88px;
  }

  /* ---- header ---- */
  .site-header {
    position: sticky;
  }
  .nav-inner {
    height: 56px;
    padding: 0 16px;
  }
  .nav-logo-image { height: 38px; }

  /* ---- HERO: image-first on mobile ---- */
  .hero {
    padding: 16px 0 32px;
  }
  .hero-grid {
    gap: 16px;
  }
  /* Mobile-first: lead with copy and CTA */
  .hero-visual-full {
    order: 0;
  }
  .hero-image-wrap {
    border-radius: 16px;
    width: min(100%, 420px);
    margin-inline: auto;
  }
  .hero-main-img {
    height: auto;
    aspect-ratio: 451 / 508;
    object-position: center;
  }
  .hero-img-badge {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 12px;
    font-size: 0.75rem;
    line-height: 1.35;
    border-radius: 10px;
  }

  /* ---- hero copy ---- */
  .hero-badge {
    font-size: 0.5625rem;
    letter-spacing: 0.07em;
    padding: 5px 10px;
    margin-bottom: 10px;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.65rem, 7.5vw, 2.1rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .hero-actions {
    margin-bottom: 22px;
    gap: 10px;
  }
  .hero-actions .btn,
  .hero-actions .btn-large {
    width: 100%;
    padding: 15px 18px;
    font-size: 0.9375rem;
  }
  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-trust-item {
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  /* ---- proof bar ---- */
  .proof-bar {
    padding: 12px 0;
  }
  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }
  .proof-item {
    font-size: 0.75rem;
    justify-content: flex-start;
    text-align: left;
  }

  /* ---- sections ---- */
  .quiz-section,
  .how-it-works,
  .who-its-for,
  .trust-section,
  .faq-section {
    padding: 48px 0;
  }
  .cta-banner {
    padding: 52px 0;
  }

  /* ---- how it works ---- */
  .steps-grid {
    gap: 16px;
  }
  .step-card {
    padding: 24px 20px;
  }
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
    margin-bottom: 14px;
  }

  /* ---- who its for ---- */
  .wif-inner {
    gap: 28px;
  }
  .wif-cta-box {
    padding: 24px 20px;
  }
  .wif-list li {
    font-size: 0.9375rem;
  }

  /* ---- quiz wrapper ---- */
  .quiz-wrapper {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }
  .quiz-steps-top {
    gap: 6px;
    padding: 0 14px;
  }
  .quiz-top-step strong {
    font-size: 0.7rem;
  }
  .quiz-top-step span {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  .quiz-top-line {
    max-width: 20px;
  }
  .quiz-progress {
    padding: 16px 18px 0;
  }
  .quiz-body {
    padding: 20px 16px 110px;
  }
  .quiz-step h3 {
    font-size: 1.0625rem;
    margin-bottom: 4px;
  }
  .step-hint {
    font-size: 0.8125rem;
    margin-bottom: 16px;
  }
  .stacked-choice-grid {
    gap: 10px;
  }
  .choice-btn-row {
    padding: 13px 14px;
    border-radius: 12px;
  }
  .choice-icon {
    font-size: 1.25rem;
  }
  .choice-copy strong {
    font-size: 0.9375rem;
  }
  .choice-copy small {
    font-size: 0.8125rem;
  }

  /* ---- Step 3 continue button ---- */
  .step3-next {
    margin-top: 14px;
  }
  .step3-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
  }

  /* ---- contact form ---- */
  .form-group input {
    height: 52px;
    font-size: 1rem;
  }
  .urgency-bar {
    font-size: 0.8125rem;
  }
  .form-disclaimer {
    font-size: 0.6875rem;
  }
  .consent-check {
    font-size: 0.8125rem;
  }
  .btn-submit {
    height: 54px;
    font-size: 1rem;
  }

  /* ---- confirmation ---- */
  .confirmation-content {
    padding: 4px 0 8px;
  }
  .confirmation-icon {
    width: 60px;
    height: 60px;
    font-size: 1.625rem;
  }
  .confirmation-content h3 {
    font-size: 1.375rem;
  }
  .confirmation-cta {
    padding: 18px 16px;
  }

  /* ---- trust cards ---- */
  .trust-grid {
    gap: 14px;
  }
  .trust-card {
    padding: 20px 18px;
  }
  .trust-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  /* ---- FAQ ---- */
  .faq-question {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }
  .faq-answer-inner {
    padding: 0 18px 18px;
    padding-top: 14px;
    font-size: 0.875rem;
  }

  /* ---- CTA banner ---- */
  .cta-banner h2 {
    font-size: 1.375rem;
    margin-bottom: 12px;
  }
  .cta-banner p {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }
  .cta-actions {
    gap: 10px;
  }
  .cta-actions .btn {
    width: 100%;
  }

  /* ---- sticky CTA ---- */
  .sticky-cta-bar {
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .sticky-cta-bar .btn {
    min-height: 50px;
    height: auto;
    padding: 10px 10px;
    font-size: 0.875rem;
    line-height: 1.25;
  }
  .sticky-btn-call {
    flex: 0 0 auto;
    min-width: 140px;
  }
}

/* ============================================================
   VISUAL PROOF BAR
   ============================================================ */
.proof-bar {
  background: var(--navy);
  border-top: 1px solid rgba(196, 154, 42, 0.25);
  border-bottom: 3px solid var(--gold);
  padding: 16px 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  text-align: center;
}
@media (min-width: 640px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}
.proof-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}
.proof-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   QUIZ SECTION HEADER (above quiz card)
   ============================================================ */
.quiz-section-header {
  margin-bottom: 28px;
}
.quiz-section-sub {
  margin-bottom: 0;
}

/* ============================================================
   URGENCY BAR (inside quiz step 4)
   ============================================================ */
.urgency-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF8E1;
  border: 1px solid #F9A825;
  border-left: 4px solid #F9A825;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #7B5E00;
  line-height: 1.45;
}
.urgency-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ============================================================
   WHO THIS IS FOR
   ============================================================ */
.who-its-for {
  padding: 72px 0;
  background: var(--navy);
  color: var(--white);
}
.wif-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 760px) {
  .wif-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
  }
}
.wif-title {
  color: var(--white);
  margin-bottom: 24px;
}
.wif-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.wif-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}
.wif-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gold);
  border-radius: 50%;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.wif-disclaimer {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  margin-top: 8px;
}
.wif-disclaimer strong {
  color: rgba(255,255,255,0.7);
}
.wif-cta-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,154,42,0.35);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}
.wif-cta-label {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.wif-cta-btn {
  margin-bottom: 12px;
}
.wif-cta-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  margin-top: 0;
}
.wif-phone-link {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.wif-phone-link:hover {
  color: var(--gold);
}
.wif-phone-link strong {
  color: var(--gold-bright);
}

/* ============================================================
   BEFORE / AFTER HERO SLIDER
   ============================================================ */
.ba-slider {
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 451 / 508;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.04);
}

.ba-after,
.ba-before {
  position: absolute;
  inset: 0;
}

.ba-after img,
.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

/* Full-width overlay, clipped by viewport divider */
.ba-before {
  width: 100%;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  background: rgba(12, 35, 64, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  pointer-events: none;
}

.ba-label-before {
  left: 12px;
}

.ba-label-after {
  right: 12px;
}

/* Drag handle */
.ba-handle {
  position: absolute;
  top: 0;
  left: var(--ba-pos);
  height: 100%;
  width: 44px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: col-resize;
}

.ba-line {
  flex: 1;
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.ba-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ba-handle:focus .ba-circle,
.ba-handle:hover .ba-circle {
  transform: scale(1.1);
  background: var(--gold, #c5a258);
}

/* Mobile */
@media (max-width: 640px) {
  .ba-slider {
    height: auto;
    aspect-ratio: 451 / 508;
    border-radius: 16px;
  }
}

/* ============================================================
   HERO IMAGE WRAP — wider for real photos
   ============================================================ */
.hero-image-wrap {
  width: min(100%, 580px) !important;
}

/* BA Labels — clear BEFORE/AFTER badges */
.ba-label {
  position: absolute;
  bottom: 14px;
  background: rgba(12,35,64,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 5;
}
.ba-label-before { left: 12px; }
.ba-label-after  { right: 12px; }

/* Wiggle hint on slider handle — uses margin-left so it doesn't clobber translateX(-50%) */
@keyframes ba-wiggle {
  0%   { margin-left: 0; }
  20%  { margin-left: -10px; }
  40%  { margin-left: 10px; }
  60%  { margin-left: -6px; }
  80%  { margin-left: 6px; }
  100% { margin-left: 0; }
}
.ba-handle {
  animation: ba-wiggle 1.2s ease 1.5s 1 both;
}

/* ============================================================
   MRP POPUP MODAL
   ============================================================ */
.mrp-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}
.mrp-popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.mrp-popup-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}
.mrp-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}
.mrp-popup-close:hover { background: rgba(255,255,255,0.38); }
.mrp-popup-header {
  background: linear-gradient(145deg, #0c2340 0%, #0e2d4e 100%);
  color: #fff;
  padding: 32px 32px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mrp-popup-badge {
  display: block;
  width: fit-content;
  background: rgba(212,168,67,0.18);
  border: 1px solid rgba(212,168,67,0.4);
  color: #d4a843;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.mrp-popup-header h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.3;
}
.mrp-popup-header p {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}
.mrp-popup-body {
  padding: 28px 32px 32px;
}
.mrp-popup-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mrp-popup-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #1a2e44;
}
.mrp-popup-checklist li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}
.mrp-popup-cta {
  display: block;
  background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 24px;
  border-radius: 10px;
  transition: filter 0.15s, transform 0.15s;
}
.mrp-popup-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.mrp-popup-trust {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin: 14px 0 0;
}
.mrp-popup-trust strong { color: #d4a843; }
@media (max-width: 540px) {
  .mrp-popup-header { padding: 24px 20px 20px; }
  .mrp-popup-body { padding: 20px 20px 24px; }
  .mrp-popup-header h2 { font-size: 1.2rem; }
}

/* ============================================================
   STORM ALERT BANNER
   ============================================================ */
.storm-alert-banner {
  background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
  border-bottom: 2px solid rgba(255,255,255,0.2);
  border-top: 2px solid rgba(0,0,0,0.2);
  position: relative;
  z-index: 300;
  width: 100%;
}
.storm-alert-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 52px 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.storm-alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  opacity: 1;
  color: #fff;
  filter: none;
}
.storm-alert-text {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.storm-alert-text strong {
  color: #ffffff;
  font-weight: 700;
}
.storm-alert-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  opacity: 0.9;
}
.storm-alert-link:hover {
  opacity: 1;
}
.storm-alert-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.storm-alert-close:hover { background: rgba(0,0,0,0.3); color: #fff; }
.storm-alert-banner.hidden {
  display: none;
}
@media (max-width: 640px) {
  .storm-alert-inner {
    padding: 12px 44px 12px 14px;
    gap: 10px;
  }
  .storm-alert-text {
    font-size: 0.825rem;
  }
  .storm-alert-icon {
    font-size: 1.3rem;
  }
}
