/* ============================================================
   Astra Finance Leads — Funnel Stylesheet v4 (Auto Finance)
   - Wider layout (1200px max)
   - Alternating section colour palette
   - Dark "How It Works" with ghosted numbers
   - Floating-avatar testimonial cards
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --blue:         #2B4DFD;
  --purple:       #C500FF;
  --grad:         linear-gradient(135deg, #2B4DFD 0%, #C500FF 100%);
  --dark-bg:      #0b0d1f;
  --dark-bg2:     #0e1028;
  --black:        #0d0d0d;
  --grey:         #6b7280;
  --grey-light:   #f3f4f6;
  --border:       #e5e7eb;
  --white:        #ffffff;
  --green:        #10b981;

  /* Section palette — brand-cohesive tints of blue & purple */
  --sec-white:      #ffffff;
  --sec-offwhite:   #f9fafb;
  --sec-blue-tint:  #eef1ff;   /* very light blue tint — brand blue #2B4DFD at ~6% */
  --sec-purple-tint:#f5f0ff;   /* very light purple tint — brand purple #C500FF at ~5% */
  --sec-dark:       #0b0d1f;   /* near-black navy — dark brand background */

  --font:         "Inter", system-ui, -apple-system, sans-serif;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 2px 16px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.13);
}

/* ── Base ────────────────────────────────────────────────── */
.funnel-body {
  font-family: var(--font);
  background: var(--sec-white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Containers ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-mid {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.funnel-nav {
  position: relative;
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
}
.funnel-nav.scrolled {
  background: var(--dark-bg);
}
.funnel-nav .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.funnel-logo img { height: 72px; width: auto; }

/* ════════════════════════════════════════════════════════════
   HERO SECTION  —  white
════════════════════════════════════════════════════════════ */
.hero {
  background: var(--sec-white);
  padding: 80px 0 32px;
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audience-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(43,77,253,0.07);
  border: 1px solid rgba(43,77,253,0.18);
  border-radius: 50px;
  padding: 7px 18px;
  margin-bottom: 26px;
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 22px;
  max-width: none; /* full container width so first line stays on one line */
}
.hero-headline .highlight {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-headline-accent {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.05em;
  margin-top: 4px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--grey);
  font-weight: 400;
  margin-bottom: 0; /* no margin — hero-inner padding-bottom handles spacing */
  max-width: 620px;
  line-height: 1.7;
}

/* ── Hero Quiz CTA label ── */
.hero-quiz-cta {
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}
.hero-quiz-cta span {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Survey Embed — lives inside hero-inner, same background ── */
.hero-survey-embed {
  width: 100%;
  max-width: 780px;
  margin: 16px auto 0;
}
.hero-survey-embed iframe {
  width: 100%;
  min-height: 320px;
  border: none !important;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  padding: 15px 32px;
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(43,77,253,0.4); }

.btn-lg {
  font-size: 17px;
  padding: 18px 44px;
}
.btn-glow {
  box-shadow: 0 4px 24px rgba(43,77,253,0.32);
}
.btn-glow:hover { box-shadow: 0 10px 40px rgba(43,77,253,0.5); }

/* ════════════════════════════════════════════════════════════
   SECTION UTILITY
════════════════════════════════════════════════════════════ */
section { padding: 80px 0; }
.section-white    { background: var(--sec-white); }
.section-offwhite { background: var(--sec-offwhite); }
.section-blue     { background: var(--sec-blue-tint); }
.section-purple   { background: var(--sec-purple-tint); }
.section-dark     { background: var(--sec-dark); }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  text-align: center;
}
.section-dark .section-title { color: #fff; }

.section-sub {
  font-size: 17px;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 52px;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-sub { color: rgba(255,255,255,0.55); }

/* ════════════════════════════════════════════════════════════
   SURVEY FORM SECTION  —  (now inside hero, handled by .hero-survey-band)
════════════════════════════════════════════════════════════ */
/* Legacy selector kept for any direct #survey-form-section usage */
#survey-form-section iframe {
  width: 100%;
  min-height: 320px;
  border: none !important;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS  —  dark navy (from screenshots)
════════════════════════════════════════════════════════════ */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.hiw-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  position: relative;
  overflow: hidden;
}
.hiw-card::before {
  content: attr(data-num);
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 96px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad);
  color: #fff;
  border-radius: 50px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.hiw-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.hiw-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS CAROUSEL
════════════════════════════════════════════════════════════ */
.testimonials-carousel {
  overflow: hidden;
  position: relative;
  padding-top: 32px; /* room for floating avatars */
}
.testimonials-track {
  display: flex;
  gap: 28px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonials-track .testimonial-card {
  flex: 0 0 calc((100% - 56px) / 3); /* 3 cards, 2 gaps of 28px */
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.carousel-prev,
.carousel-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(43,77,253,0.3);
}
.carousel-prev:hover,
.carousel-next:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(43,77,253,0.45); }
.carousel-prev:disabled,
.carousel-next:disabled { opacity: 0.3; cursor: default; transform: none; box-shadow: none; }
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(43,77,253,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.35);
}
.testimonial-card {
  background: var(--sec-white);
  border: 1px solid rgba(43,77,253,0.1);
  border-radius: var(--radius);
  padding: 60px 24px 28px; /* top padding for avatar overlap */
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
}
.testimonial-avatar {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--sec-purple-tint);
  box-shadow: 0 4px 14px rgba(43,77,253,0.3);
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 12px;
}
.star { color: #fbbf24; font-size: 14px; }
.testimonial-quote {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 18px;
  font-style: italic;
}
.author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 2px;
}
.author-company {
  font-size: 12px;
  color: var(--grey);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   FAQ  —  lavender
════════════════════════════════════════════════════════════ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--sec-white);
  border: 1px solid rgba(43,77,253,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-toggle {
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
  line-height: 1.4;
}
.faq-toggle:hover { background: rgba(43,77,253,0.03); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-toggle.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  border-top: 1px solid rgba(43,77,253,0.08);
  background: rgba(43,77,253,0.02);
}
.faq-answer.open {
  max-height: 500px;
  padding: 20px 22px;
}
.faq-answer-text {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════════
   PROOF CARDS
════════════════════════════════════════════════════════════ */
.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.proof-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--sec-offwhite);
  box-shadow: var(--shadow);
}
.proof-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
}
.proof-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--grey);
  text-align: center;
  padding: 16px;
  border: 2px dashed var(--border);
  background: #fff;
  line-height: 1.5;
}
.proof-caption {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--black);
  padding: 10px 14px;
  line-height: 1.4;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ════════════════════════════════════════════════════════════
   FINAL CTA  —  centered, single button layout
════════════════════════════════════════════════════════════ */
.final-cta-section {
  padding: 80px 0;
}
.final-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.final-cta-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.final-cta-subtext {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Keep old CTA styles for backward compatibility if needed */
.cta-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-image {
  border-radius: var(--radius);
  overflow: hidden;
}
.cta-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.cta-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
  border: 2px dashed #c4b5fd;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7c3aed;
  text-align: center;
  gap: 8px;
  padding: 24px;
}
.cta-content h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.cta-content p {
  font-size: 16px;
  color: var(--grey);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Dark background overrides for the final CTA section */
.section-dark .cta-content h2 { color: #fff; }
.section-dark .cta-content p  { color: rgba(255,255,255,0.65); }
.section-dark .cta-image-placeholder {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.45);
}
.section-dark .cta-image-placeholder strong { color: rgba(255,255,255,0.7); }
.section-dark .cta-image-placeholder span   { color: rgba(255,255,255,0.35); }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.funnel-footer {
  background: #080810;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.55); }

/* ════════════════════════════════════════════════════════════
   THANK YOU PAGE
════════════════════════════════════════════════════════════ */
.thank-you-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(43,77,253,0.35);
}
.thank-you-headline {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.thank-you-sub {
  font-size: 18px;
  color: var(--grey);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.next-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--sec-offwhite);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content p {
  font-size: 15px;
  color: #374151;
  line-height: 1.65;
  margin: 0;
}
.step-content strong { color: var(--black); }

/* ════════════════════════════════════════════════════════════
   DISQUALIFIED PAGE
════════════════════════════════════════════════════════════ */
.disq-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #000000 0%, #0a0a1a 60%, #0d0020 100%);
}
.disq-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 80px;
}
.disq-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px);
  max-width: 640px;
  width: 100%;
  text-align: center;
}
.disq-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 30px;
}
.disq-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.disq-headline {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.disq-message p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.disq-message p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container-wide { padding: 0 32px; }
  .container-mid  { padding: 0 28px; }
  .container      { padding: 0 24px; }
  .cta-two-col    { gap: 40px; }
}

@media (max-width: 860px) {
  .hiw-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .hiw-card::before { font-size: 72px; }
  /* On mobile, stack carousel cards vertically */
  .testimonials-track { flex-direction: column; }
  .testimonials-track .testimonial-card { flex: 0 0 auto; width: 100%; max-width: 480px; margin: 0 auto; }
  .carousel-controls { display: none; } /* hide controls when stacked */
  .proof-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .cta-two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cta-image img,
  .cta-image-placeholder { aspect-ratio: 16/9; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero   { padding: 32px 0 40px; }
  .hero-survey-embed { margin-top: 18px; }
  .audience-tag { margin-bottom: 8px; }
  .hero-headline { font-size: 32px; margin-bottom: 14px; }
  .hero-quiz-cta { margin-top: 16px; }
  .hero-sub      { font-size: 15px; }
  .section-title { font-size: 26px; }
  .section-sub   { font-size: 15px; margin-bottom: 36px; }
  .btn-lg        { font-size: 15px; padding: 15px 32px; }
  .container-wide { padding: 0 20px; }
  .container-mid  { padding: 0 20px; }
  .container      { padding: 0 20px; }
  .funnel-logo img { height: 52px; }
  .logo-box { width: 110px; height: 46px; }
  .hiw-grid { max-width: 100%; }
  .faq-container { max-width: 100%; }
  .next-steps { max-width: 100%; }
  .disq-card { padding: 36px 22px; }
  .disq-content { padding: 120px 20px 60px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 400px) {
  .hero-headline { font-size: 28px; }
  .btn-primary { font-size: 14px; padding: 13px 26px; }
}
