/* ==========================================================================
   EDITORIAL DESIGN SYSTEM — shared across the three Insure Car Fast LPs
   (fast-quote, get-quote, renewal-quote).
   Scoped to .page-editorial body class so it doesn't bleed into other LPs
   sharing style.css. Page-specific overrides go in each page's inline <style>.
   ========================================================================== */

/* --- Typography: Inter Tight headlines, Inter body --- */
.page-editorial {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.page-editorial .hero-copy h1,
.page-editorial .section h2,
.page-editorial .section h3,
.page-editorial .final-cta h2,
.page-editorial .mid-cta-text h2 {
  font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.025em;
  font-feature-settings: "ss01" on, "cv11" on;
}
.page-editorial .hero-copy h1 {
  font-size: clamp(34px, 6.5vw, 56px);
  line-height: 1.04;
  font-weight: 700;
  margin-bottom: 18px;
}
.page-editorial .hero-copy h1 strong {
  font-weight: 800;
  font-style: normal;
  color: var(--primary);
}
.page-editorial .section h2 {
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  max-width: 22ch;
}
/* Inside prose blocks, cap H2 width to roughly the paragraph measure so the
   headline doesn't stretch wider than the body it introduces. */
.page-editorial .section .prose h2 {
  max-width: 24ch;
}

/* --- Section kicker --- */
.page-editorial .section-kicker {
  display: inline-block;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-editorial .section-kicker::before {
  content: "— ";
  letter-spacing: 0;
}

/* --- Form panel: gradient stripe top, tighter top padding --- */
.page-editorial .form-panel {
  position: relative;
  overflow: hidden;
  padding-top: 18px;
}
.page-editorial .form-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary) 100%);
}

/* Desktop only: tighter hero top padding + aggressive form lift so the form's
   *visible content* (the LeadsHook heading like "Start with your car") aligns
   close to the H1's first line — not just the panel's top edge.
   The lift compensates for the LeadsHook embed's internal top padding (step
   indicator + progress bar + heading takes ~70-80px before the first input).
   Fast-quote overrides with its own page-specific values. */
@media (min-width: 900px) {
  .page-editorial .hero {
    padding-top: 32px;
  }
  .page-editorial .form-panel {
    margin-top: -56px;
  }
}

/* Mobile only: reorder hero so bullets sit below the form (less above-form
   clutter, form gets seen sooner). H1 + subhead anchor the value prop above.
   Excludes fast-quote, which has its own .hero-form-first-mobile reorder. */
@media (max-width: 899px) {
  .page-editorial .hero:not(.hero-form-first-mobile) .hero-inner {
    display: flex;
    flex-direction: column;
  }
  .page-editorial .hero:not(.hero-form-first-mobile) .hero-copy {
    display: contents;
  }
  .page-editorial .hero:not(.hero-form-first-mobile) .hero-copy > h1 { order: 1; }
  .page-editorial .hero:not(.hero-form-first-mobile) .hero-copy > .subhead { order: 2; }
  .page-editorial .hero:not(.hero-form-first-mobile) .form-panel {
    order: 3;
    margin-top: 16px;
    margin-bottom: 24px;
  }
  .page-editorial .hero:not(.hero-form-first-mobile) .hero-copy > .hero-bullets {
    order: 4;
  }
}

/* --- Trust strip: tighter type --- */
.page-editorial .trust-strip {
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* --- Trust pillars: stripped of card chrome, larger primary-color icons --- */
.page-editorial .trust-pillars {
  grid-template-columns: 1fr;
  gap: 28px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
  margin-top: 8px;
}
@media (min-width: 800px) {
  .page-editorial .trust-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.page-editorial .trust-pillar {
  grid-template-columns: 44px 1fr;
  gap: 16px;
}
.page-editorial .trust-pillar-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--primary);
}
.page-editorial .trust-pillar-icon svg { width: 28px; height: 28px; }
.page-editorial .trust-pillar h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

/* --- Editorial step cards — borderless, hairline-divided columns, decorative numerals --- */
.page-editorial .step-grid-editorial { gap: 8px; }
.page-editorial .step-grid-editorial .step-card {
  position: relative;
  overflow: hidden;
  padding: 32px 28px 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .page-editorial .step-grid-editorial {
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
  }
  .page-editorial .step-grid-editorial .step-card {
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .page-editorial .step-grid-editorial .step-card:last-child { border-right: 0; }
}
.page-editorial .step-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  margin-bottom: 14px;
  border: 1.5px solid var(--primary);
}
.page-editorial .step-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.page-editorial .step-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  letter-spacing: 0;
}
.page-editorial .step-num-decorative {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.10;
  letter-spacing: -0.05em;
  line-height: 1;
  font-feature-settings: "tnum" on;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 640px) {
  .page-editorial .step-num-decorative { font-size: 76px; }
}

/* --- Single pull-quote testimonial: dramatic, no card --- */
.page-editorial .testimonial {
  background: transparent;
  border: 0;
  padding: 0;
}
.page-editorial .testimonial-pullquote {
  position: relative;
  padding: 56px 32px 32px;
  text-align: center;
}
.page-editorial .testimonial-pullquote blockquote {
  font-family: 'Inter Tight', 'Inter', sans-serif !important;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  line-height: 1.4 !important;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--dark);
  max-width: 28ch;
  margin: 0 auto 18px;
}
.page-editorial .testimonial-pullquote .pull-quote-mark {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 160px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.16;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-editorial .testimonial-pullquote .stars {
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.page-editorial .testimonial-pullquote cite {
  font-family: -apple-system, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gray);
}

/* --- Testimonial GRID (multiple testimonials): stripped chrome, hairline columns --- */
.page-editorial .testimonial-grid {
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
@media (min-width: 640px) {
  .page-editorial .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.page-editorial .testimonial-grid .testimonial {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 8px;
}
@media (min-width: 640px) {
  .page-editorial .testimonial-grid .testimonial {
    border-bottom: 0;
    border-right: 1px solid var(--border);
    padding: 8px 28px 4px;
  }
  .page-editorial .testimonial-grid .testimonial:last-child {
    border-right: 0;
  }
  .page-editorial .testimonial-grid .testimonial:first-child {
    padding-left: 0;
  }
}
.page-editorial .testimonial-grid .testimonial blockquote {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin: 0 0 14px;
}
.page-editorial .testimonial-grid .testimonial cite {
  font-family: -apple-system, sans-serif;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--gray);
  font-weight: 600;
}
.page-editorial .testimonial-grid .testimonial .stars {
  letter-spacing: 4px;
  margin-bottom: 12px;
  font-size: 13px;
}

/* --- Mid-page CTA: type-led, no gradient band --- */
.page-editorial .mid-cta {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 20px;
}
.page-editorial .mid-cta-inner { gap: 32px; }
.page-editorial .mid-cta-text h2 {
  color: var(--dark);
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: 12px;
}
.page-editorial .mid-cta-text p {
  color: var(--muted);
  font-size: 16px;
}
.page-editorial .mid-cta .btn {
  background: var(--dark);
  color: var(--white);
  border: 0;
}
.page-editorial .mid-cta .btn:hover { background: var(--primary); }

/* --- FAQ: stripped of box chrome, just rule-divided rows --- */
.page-editorial .faq-list {
  gap: 0;
  border-top: 1px solid var(--border);
}
.page-editorial .faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
}
.page-editorial .faq-item summary {
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
}
.page-editorial .faq-item summary::after {
  font-size: 22px;
  color: var(--gray);
}
.page-editorial .faq-item[open] summary::after { color: var(--primary); }
.page-editorial .faq-item .answer {
  padding: 0 4px 22px;
  font-size: 16px;
  max-width: 64ch;
}

/* --- Final CTA: tighter type --- */
.page-editorial .final-cta { padding: 88px 20px; }
.page-editorial .final-cta h2 {
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 auto 14px;
}

/* --- Editorial pull-paragraph (used by renewal-quote mini-explainer):
       a left-rule treated paragraph with larger Inter Tight type. */
.page-editorial .pull-paragraph {
  position: relative;
  padding: 12px 0 12px 28px;
  border-left: 3px solid var(--primary);
  max-width: 60ch;
  margin: 0 auto;
}
.page-editorial .pull-paragraph p {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 0 0 14px;
}
.page-editorial .pull-paragraph p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* --- Inline CTA (used by renewal-quote): less boxy, more deliberate --- */
.page-editorial .inline-cta {
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 24px 0;
}
.page-editorial .inline-cta p {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  color: var(--dark);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.page-editorial .inline-cta .btn {
  background: var(--dark);
  color: var(--white);
}
.page-editorial .inline-cta .btn:hover { background: var(--primary); }

/* --- About-section split: text left, illustrative graphic right (desktop).
       Stacks with the figure hidden on small screens to keep above-the-fold
       text density high. --- */
.page-editorial .about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.page-editorial .about-figure {
  display: none;
}
.page-editorial .about-figure img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .page-editorial .about-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 56px;
  }
  .page-editorial .about-figure {
    display: block;
  }
}
