/**
 * Task #1535492 — QA Batch 1 Visual Fixes
 * Owns: Pricing H1 centering at 1440px, hero social-proof star display,
 *       FAQ accordion smoothing, WCAG AA contrast enforcement on
 *       strikethrough prices and sub-notes.
 * Does NOT own: layout, typography, homepage structure, footer columns.
 *
 * Fixes:
 * 1. Pricing H1 — explicit center alignment at all viewports (1440px reported off-center)
 * 2. Hero social proof — defensive flexbox + star size to prevent single-star regression
 * 3. FAQ accordion — synchronized transition timing, prevent content jump
 * 4. Contrast — override light grays (#9ca3af, #94a3b8) on white to #6B7280 (4.54:1 WCAG AA)
 */

/* ── 1. Pricing H1 centering — belt-and-suspenders at 1440px ── */
html body .pr-hero {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
html body .pr-hero h1 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 680px !important;
  width: 100% !important;
}
html body .pr-hero-sub {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── 2. Hero social proof — all 5 stars visible ── */
html body .hp-hero__social-proof {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
html body .hp-hero__stars {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
}
html body .hp-hero__stars svg {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  flex-shrink: 0 !important;
  color: #D97706 !important;
  fill: #D97706 !important;
}
html body .hp-hero__proof-text {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
  font-size: 14px !important;
}

/* ── 3. FAQ accordion — synchronized transitions, no content jump ── */
html body .faq-answer {
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-top-width 0.15s ease !important;
}
html body .faq-answer p,
html body .faq-answer ul,
html body .faq-answer li {
  transition: opacity 0.25s ease 0.08s, transform 0.25s ease 0.08s !important;
}
html body .faq-answer.open p,
html body .faq-answer.open ul,
html body .faq-answer.open li {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── 4. Contrast enforcement — light grays to WCAG AA ── */
/* Strikethrough prices on pricing page: #9ca3af (2.79:1) -> #6B7280 (4.54:1) */
html body .pr-card span[style*="9ca3af"],
html body .pr-plans-grid span[style*="9ca3af"],
html body .pr-comparison span[style*="9ca3af"] {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}

/* Sub-notes and secondary text: enforce minimum contrast */
html body .pr-final-cta-note {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-final-cta__note {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}

/* Footer Trustpilot badge — ensure all 5 stars render */
html body .sr-ft-trust-badge svg[fill="#00b67a"],
html body a.sr-ft-trust-badge svg[fill="#00b67a"] {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

/* Mobile responsive — 375px */
@media (max-width: 480px) {
  html body .hp-hero__social-proof {
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
  }
  html body .hp-hero__proof-text {
    font-size: 13px !important;
  }
  html body .pr-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem) !important;
  }
}

/* Tablet — 768px */
@media (min-width: 481px) and (max-width: 1024px) {
  html body .hp-hero__social-proof {
    gap: 8px !important;
  }
}
