/* ===== DESIGN TOKENS ===== */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Home Right Lending Colors */
  --color-primary: #4DB820;
  --color-primary-hover: #3DA018;
  --color-primary-active: #2D8010;
  --color-navy: #1B3A5C;
  --color-navy-dark: #0F2640;
  --color-navy-light: #264B73;

  /* Surfaces */
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-offset: #f0f2f4;
  --color-text: #1a1a2e;
  --color-text-muted: #555555;
  --color-text-light: #ffffff;
  --color-text-inverse: #ffffff;
  --color-border: #e0e0e0;

  /* Accents */
  --color-warning: #dc3545;
  --color-warning-bg: #dc3545;
  --color-gold: #d4a017;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);

  /* Content */
  --content-narrow: 640px;
  --content-default: 800px;
  --content-wide: 1100px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ===== GLOBAL LAYOUT ===== */
body {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--color-primary);
  color: var(--color-text-light);
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.top-bar svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--space-2);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
  color: var(--color-text-light);
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(77,184,32,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(77,184,32,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero__pre-headline {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-4);
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto var(--space-6);
  line-height: 1.1;
  position: relative;
}

.hero h1 .highlight {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-base);
  max-width: 680px;
  margin: 0 auto var(--space-8);
  opacity: 0.9;
  line-height: 1.7;
  position: relative;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  position: relative;
}

.countdown__block {
  text-align: center;
  min-width: 70px;
}

.countdown__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  display: block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  min-width: 64px;
  backdrop-filter: blur(4px);
}

.countdown__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-top: var(--space-1);
  display: block;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-full);
  text-decoration: none;
  position: relative;
  box-shadow: 0 4px 20px rgba(77,184,32,0.35);
  cursor: pointer;
  border: none;
}

.cta-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(77,184,32,0.45);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn__sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: var(--space-1);
  opacity: 0.85;
}

/* ===== WARNING BANNER ===== */
.warning-banner {
  background: var(--color-warning-bg);
  color: var(--color-text-light);
  text-align: center;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  font-weight: 700;
  font-style: italic;
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-6);
}

.section--white { background: var(--color-bg); }
.section--light { background: var(--color-surface); }
.section--navy { background: var(--color-navy); color: var(--color-text-light); }
.section--navy-dark { background: var(--color-navy-dark); color: var(--color-text-light); }

.section__heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-8);
  line-height: 1.15;
}

.section__heading .highlight {
  color: var(--color-primary);
}

.section--navy .section__heading .highlight,
.section--navy-dark .section__heading .highlight {
  color: var(--color-primary);
}

.section__text {
  font-size: var(--text-base);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.section--navy .section__text,
.section--navy-dark .section__text {
  color: rgba(255,255,255,0.85);
}

/* ===== PROBLEM SECTION ===== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  max-width: var(--content-wide);
  margin: 0 auto;
}

.problem-grid__text p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  line-height: 1.7;
}

.problem-grid__text .big-stat {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-warning);
  margin: var(--space-6) 0;
}

.problem-grid__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.house-graphic {
  width: 100%;
  max-width: 340px;
}

.problem-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ===== MATH SECTION ===== */
.math-card {
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.math-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--color-navy);
}

.math-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-6);
}

.math-comparison__item {
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.math-comparison__item--bad {
  background: #fff0f0;
  border: 1px solid #ffcccc;
}

.math-comparison__item--good {
  background: #f0fff0;
  border: 1px solid #ccffcc;
}

.math-comparison__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.math-comparison__item--bad .math-comparison__label { color: var(--color-warning); }
.math-comparison__item--good .math-comparison__label { color: var(--color-primary); }

.math-comparison__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
}

.math-comparison__item--bad .math-comparison__value { color: var(--color-warning); }
.math-comparison__item--good .math-comparison__value { color: var(--color-primary); }

.math-comparison__vs {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.math-card__savings {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.math-card__savings .green {
  color: var(--color-primary);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-primary);
  position: relative;
}

.section--navy .testimonial-card,
.section--navy-dark .testimonial-card {
  background: rgba(255,255,255,0.07);
  border-left-color: var(--color-primary);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--color-primary);
}

.testimonial-card__quote {
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-4);
  position: relative;
  padding-left: var(--space-6);
}

.testimonial-card__quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-primary);
  position: absolute;
  left: 0;
  top: -0.3em;
  line-height: 1;
}

.section--navy .testimonial-card__quote,
.section--navy-dark .testimonial-card__quote {
  color: rgba(255,255,255,0.9);
}

.testimonial-card__author {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

/* ===== BULLET LIST ===== */
.benefit-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.benefit-list li {
  padding: var(--space-3) 0;
  padding-left: var(--space-8);
  position: relative;
  font-size: var(--text-base);
  line-height: 1.6;
}

.benefit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.section--navy .benefit-list li,
.section--navy-dark .benefit-list li {
  color: rgba(255,255,255,0.9);
}

/* ===== BIO SECTION ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-10);
  align-items: start;
  max-width: var(--content-wide);
  margin: 0 auto;
}

.bio-grid__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 3px solid var(--color-primary);
}

.bio-grid__text h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.bio-grid__text p {
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.bio-grid__text .highlight-stat {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  margin: var(--space-4) 0;
}

/* ===== AGENDA ===== */
.agenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.agenda-day {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.agenda-day__header {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.agenda-day ul {
  list-style: none;
  padding: 0;
}

.agenda-day li {
  padding: var(--space-3) 0;
  padding-left: var(--space-6);
  position: relative;
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.agenda-day li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== SUPPRESSION / WHY SECTION ===== */
.why-section__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin: var(--space-8) 0;
}

.why-section__price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  display: block;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq-item__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.faq-item.active .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-item__answer p {
  padding-bottom: var(--space-5);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}

.cta-section .section__heading {
  margin-bottom: var(--space-4);
}

.cta-section__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
}

/* ===== BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

.trust-badge svg {
  width: 40px;
  height: 40px;
  display: inline-block;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.disclaimer p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: var(--text-xs);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer p {
  font-size: var(--text-xs);
}

.footer .pplx-attr {
  margin-top: var(--space-4);
}

.footer .pplx-attr a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: var(--text-xs);
}

.footer .pplx-attr a:hover {
  color: rgba(255,255,255,0.7);
}

.footer__eho {
  margin-top: var(--space-4);
}

.footer__eho img {
  display: inline-block;
  width: 55px;
  height: 55px;
}

/* ===== NMLS STRIP ===== */
.nmls-strip {
  background: var(--color-navy);
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

.nmls-strip a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal__content video {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
  opacity: 0.8;
  z-index: 2;
}

.video-modal__close:hover {
  opacity: 1;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(77, 184, 32, 0.4);
  transition: transform 150ms, box-shadow 150ms;
  position: relative;
}

.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(77, 184, 32, 0.55);
}

.chat-bubble__icon,
.chat-bubble__close {
  width: 28px;
  height: 28px;
  color: #fff;
  position: absolute;
  transition: opacity 200ms, transform 200ms;
}

.chat-bubble__close {
  opacity: 0;
  transform: rotate(-90deg);
}

.chat-widget.open .chat-bubble__icon {
  opacity: 0;
  transform: rotate(90deg);
}

.chat-widget.open .chat-bubble__close {
  opacity: 1;
  transform: rotate(0deg);
}

.chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 370px;
  max-height: 500px;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-panel__header {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-panel__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #fff;
}

.chat-panel__status {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 250px;
  max-height: 340px;
}

.chat-msg p {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  max-width: 85%;
}

.chat-msg--bot p {
  background: var(--color-surface);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  display: flex;
  justify-content: flex-end;
}

.chat-msg--user p {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing dots */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: typingBounce 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-panel__input {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.chat-panel__input input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
}

.chat-panel__input input:focus {
  border-color: var(--color-primary);
}

.chat-panel__input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 150ms;
}

.chat-panel__input button:hover {
  background: var(--color-primary-hover);
}

.chat-panel__input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-panel__input button svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

@media (max-width: 768px) {
  .chat-widget {
    bottom: 84px;
    right: 16px;
  }

  .chat-bubble {
    width: 52px;
    height: 52px;
  }

  .chat-bubble__icon,
  .chat-bubble__close {
    width: 24px;
    height: 24px;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 64px;
    max-height: 420px;
  }

  .chat-panel__messages {
    min-height: 200px;
    max-height: 280px;
  }
}

/* ===== HERO CTA ROW ===== */
.hero__cta-row {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-btn--outline {
  background: transparent;
  border: 2px solid #fff;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.cta-btn--outline:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 6px 28px rgba(255,255,255,0.25);
}

.hero__phone {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  position: relative;
}

.hero__phone a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-base);
}

.hero__phone a:hover {
  color: var(--color-primary);
}

/* ===== CTA REASSURANCE ===== */
.cta-reassurance {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  letter-spacing: 0.02em;
}

.cta-reassurance--light {
  color: rgba(255,255,255,0.6);
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: var(--space-3) var(--space-4);
  background: var(--color-navy-dark);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  gap: var(--space-3);
  align-items: center;
  transform: translateY(100%);
  transition: transform 250ms ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta__btn {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-align: center;
}

.sticky-cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  flex-shrink: 0;
}

.sticky-cta__phone:hover {
  background: rgba(255,255,255,0.2);
}

@media (min-width: 769px) {
  .sticky-cta { display: none !important; }
}

@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}

/* ===== STEPS GRID ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: var(--space-6);
}

.step-card__number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.step-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.step-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== SAVINGS TEASER ===== */
.savings-teaser__stat {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin: 0 auto var(--space-3);
  line-height: 1.3;
}

.savings-teaser__stat strong {
  color: var(--color-primary);
}

.savings-teaser__sub {
  text-align: center;
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-4);
}

/* ===== FORM STEP INDICATOR ===== */
.form-step-indicator {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 200ms;
}

.step-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(77, 184, 32, 0.2);
}

.step-dot.complete {
  background: var(--color-primary);
}

.form-back-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: var(--space-3);
  padding: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.form-back-btn:hover {
  color: var(--color-navy);
}

/* ===== RADIO CARDS ===== */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms, background 150ms;
}

.radio-card:hover {
  border-color: var(--color-primary);
  background: rgba(77, 184, 32, 0.03);
}

.radio-card.selected {
  border-color: var(--color-primary);
  background: rgba(77, 184, 32, 0.08);
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-navy);
}

.radio-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ===== SLIDERS ===== */
.slider-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.form-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.form-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.slider-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-primary);
  min-width: 80px;
  text-align: right;
  white-space: nowrap;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ===== LOW SCORE NOTICE ===== */
.low-score-notice {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: #fef3e5;
  border: 1px solid #f5c871;
  border-radius: var(--radius-md);
}

.low-score-notice p {
  font-size: var(--text-sm);
  color: #8a6200;
  line-height: 1.6;
  margin: 0 0 var(--space-3);
}

.low-score-notice p:last-child {
  margin-bottom: 0;
}

.low-score-notice a {
  color: #8a6200;
  font-weight: 700;
}

/* ===== CURRENCY INPUT ===== */
.currency-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 150ms;
}

.currency-input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(77, 184, 32, 0.15);
}

.currency-prefix {
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
}

.form-input--currency {
  border: none;
  border-radius: 0;
}

.form-input--currency:focus {
  box-shadow: none;
}

.form-section-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: calc(-1 * var(--space-2)) 0 var(--space-5);
  line-height: 1.4;
}

.form-field-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 var(--space-2);
  line-height: 1.3;
}

/* ===== BOOKING FORM MODAL ===== */
.booking-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.booking-modal.active {
  display: flex;
}

.booking-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.booking-modal__content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.booking-modal__header {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
}

.booking-modal__header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text-light);
  margin: 0;
}

.booking-modal__header p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin: var(--space-2) 0 0;
}

.booking-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 150ms;
}

.booking-modal__close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.booking-form {
  padding: var(--space-6) var(--space-8) var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.form-group label .required {
  color: var(--color-warning);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-body);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 150ms;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(77, 184, 32, 0.15);
}

.form-input::placeholder {
  color: #aaa;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

.form-section-label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

/* Date selector */
.date-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 200px;
  overflow-y: auto;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

.date-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.date-option:hover {
  background: var(--color-surface);
}

.date-option input[type="radio"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.date-option.selected {
  background: rgba(77, 184, 32, 0.08);
  font-weight: 600;
}

/* Time slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.time-slot {
  padding: var(--space-3) var(--space-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all 150ms;
}

.time-slot:hover {
  border-color: var(--color-primary);
  background: rgba(77, 184, 32, 0.04);
}

.time-slot.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.time-slot.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.time-slots-placeholder {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-3) 0;
}

/* Submit button */
.booking-submit {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(77,184,32,0.35);
  transition: background 150ms, transform 100ms;
  margin-top: var(--space-6);
}

.booking-submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(77,184,32,0.45);
}

.booking-submit:active {
  transform: translateY(0);
}

.booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.booking-submit__sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: var(--space-1);
  opacity: 0.85;
}

/* Success / Error states */
.booking-success {
  text-align: center;
  padding: var(--space-8);
}

.booking-success__icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.booking-success__icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.booking-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.booking-success p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.booking-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-warning);
  margin-top: var(--space-4);
  display: none;
}

.booking-error.visible {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .problem-grid,
  .bio-grid,
  .agenda-grid,
  .math-comparison {
    grid-template-columns: 1fr;
  }

  .math-comparison__vs {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 1rem + 3vw, 2.5rem);
  }

  .countdown {
    gap: var(--space-2);
  }

  .countdown__number {
    font-size: var(--text-lg);
    padding: var(--space-2) var(--space-3);
    min-width: 54px;
  }

  .cta-btn {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }

  .bio-grid__photo {
    max-width: 200px;
    margin: 0 auto;
  }

  .booking-modal__header {
    padding: var(--space-5) var(--space-5);
  }

  .booking-form {
    padding: var(--space-5);
  }

  .time-slots {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .step-card {
    padding: var(--space-4);
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: center;
  }
}
