/**
 * pro-visual-overhaul-1589907.css
 * Task #1589907 — Fortune 500-grade professional visual polish
 *
 * Goal: Apple simplicity + Stripe professionalism + Bloomberg trustworthiness.
 * This file ENFORCES the design system across all pages:
 *  1. Typography hierarchy — sharp H1→H2→H3→body→caption, consistent weights
 *  2. Color palette — emerald primary, 3 text shades, white/gray-50 backgrounds only
 *  3. Spacing rhythm — 80px section padding desktop, 48px mobile, 8px grid
 *  4. Card consistency — 12px radius, 1px border, subtle shadow, 24px padding
 *  5. Button consistency — 44px min-height, 8px radius, weight 600
 *  6. Badge/pill consistency — letter-spacing on uppercase, rounded-full
 *  7. CTA copy tone — confident, professional, no fake urgency
 *  8. Trust signals — subtly placed, clean card layout
 *  9. Section heading consistency — same size, weight, spacing everywhere
 * 10. Body text readability — 16px min, 1.6 line-height, max-width 72ch on prose
 *
 * Does NOT: change layout structure, remove features, touch mobile footer controller,
 *           override pricing amounts, or rewrite body/paragraph content.
 *
 * Loaded LAST in the cascade on all pages.
 */

/* ══════════════════════════════════════════════════════════════
   1. SITEWIDE TYPOGRAPHY ENFORCEMENT
   Reinforces the design system token values with modern scaling.
   ══════════════════════════════════════════════════════════════ */

/* --- Heading hierarchy --- */
h1, .h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #0A0A0A;
}

h2, .h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #0A0A0A;
}

h3, .h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #0A0A0A;
}

h4, h5, h6, .h4, .h5, .h6 {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  color: #1F2A37;
}

/* Body text readability */
body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1F2A37;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prose text: max readable width */
.prose,
.content-prose,
article p,
.article-body p,
.blog-content p,
.ab4 p,
.ab4-body p {
  max-width: 72ch;
  line-height: 1.7;
}

/* Section headings: sitewide consistent sizing and spacing */
.section-heading,
.section-title,
[class*="__heading"]:is(h2),
[class*="__title"]:is(h2) {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #0A0A0A;
  margin-bottom: 0.5em;
}

/* Caption / muted text */
.text-muted,
.muted,
.caption {
  color: #6B7280;
  font-size: 0.875rem;
}

/* All-caps labels: always letter-spaced */
.text-uppercase,
.eyebrow,
[class*="eyebrow"],
[class*="__eyebrow"],
[class*="-eyebrow"],
.label-caps,
.overline {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   2. COLOR PALETTE ENFORCEMENT
   Three text shades. Two backgrounds. One primary. Keep it clean.
   ══════════════════════════════════════════════════════════════ */

/* Anchor link color consistency */
a:not([class]),
a.text-link {
  color: #00875A;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:not([class]):hover,
a.text-link:hover {
  color: #006B4D;
}

/* ══════════════════════════════════════════════════════════════
   3. SECTION SPACING RHYTHM
   80px desktop, 48px mobile — breathe equally
   ══════════════════════════════════════════════════════════════ */

.hp-hero,
.hp-stats,
.hp-feed,
.hp-trending,
.hp-cats,
.hp-testimonials,
.hp-pricing,
.hp-payouts,
.hp-library,
.hp-email-capture,
.hp-final-cta {
  scroll-margin-top: 80px;
}

/* Consistent section inner spacing */
section.hp-stats,
section.hp-testimonials,
section.hp-pricing,
section.hp-cats,
section.hp-steps,
section.hp-library,
section.hp-email-capture {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* ══════════════════════════════════════════════════════════════
   4. CARD CONSISTENCY
   border-radius: 12px, shadow: 0 1px 3px rgba(0,0,0,0.1), padding: 24px
   ══════════════════════════════════════════════════════════════ */

/* Universal card base — normalized */
.card,
.sr-card,
.hp-card,
.settlement-card,
.sr-settlement-card,
.sp-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.sr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* Testimonial cards */
.hp-testimonial-card,
.testimonial-card,
[class*="testimonial-card"] {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Stars in testimonials: inline, no stacking */
.testimonial-stars,
[class*="stars"],
.review-stars {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  flex-direction: row !important;
}

/* ══════════════════════════════════════════════════════════════
   5. BUTTON CONSISTENCY
   44px min-height mobile, 40px desktop, border-radius 8px, weight 600
   ══════════════════════════════════════════════════════════════ */

/* Base button resets — apply to all .btn-* variants */
.btn,
[class*="btn-"],
button.btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

/* Primary button — emerald, white text */
.btn-primary,
.btn-cta {
  background-color: #00875A !important;
  color: #FFFFFF !important;
  border: none !important;
}

.btn-primary:hover,
.btn-cta:hover {
  background-color: #006B4D !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 135, 90, 0.25);
}

/* Secondary button — white bg, emerald border + text */
.btn-secondary {
  background-color: #FFFFFF !important;
  color: #00875A !important;
  border: 1.5px solid #00875A !important;
}

.btn-secondary:hover {
  background-color: #F0FBF6 !important;
  color: #006B4D !important;
  border-color: #006B4D !important;
}

/* Mobile: 44px touch targets */
@media (max-width: 768px) {
  .btn,
  [class*="btn-"] {
    min-height: 44px;
  }
}

/* ══════════════════════════════════════════════════════════════
   6. BADGE / PILL CONSISTENCY
   Rounded-full, small text, proper padding, WCAG-safe colors
   ══════════════════════════════════════════════════════════════ */

.badge,
.pill,
.tag,
[class*="badge-"],
[class*="pill-"] {
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.75em;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* All-caps badge labels get wider tracking */
.badge[class*="caps"],
[class*="badge-label"],
[class*="pill-label"] {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* ══════════════════════════════════════════════════════════════
   7. SITEWIDE SECTION HEADING SPACING
   Same gap from heading to content below — no page feels different
   ══════════════════════════════════════════════════════════════ */

.section-heading + *,
.section-title + *,
h2.hp-products__heading + *,
h2[id$="-heading"] + * {
  margin-top: 0;
}

/* Standard heading + subheading combo */
.section-heading,
.section-title {
  margin-bottom: 0.4em;
}
.section-heading + .section-subheading,
.section-heading + p,
.section-title + p {
  margin-top: 0;
  margin-bottom: 2rem;
  color: #4B5563;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   8. STATS / COUNTER COMPONENTS
   Clean, properly formatted numbers — no color overflow
   ══════════════════════════════════════════════════════════════ */

.stat-value,
.counter-value,
[class*="__stat-value"],
[class*="stat-number"],
[class*="stats__value"],
[class*="-count"] {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label,
.counter-label,
[class*="__stat-label"],
[class*="stats__label"] {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   9. SITEWIDE FORM CONSISTENCY
   Inputs: clean borders, focus ring, proper typography
   ══════════════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: #1F2A37;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #00875A;
  box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.15);
  outline: none;
}

/* ══════════════════════════════════════════════════════════════
   10. TRUST SIGNALS — CLEAN PLACEMENT
   SSL/security badges: subtle, not garish. Stats: formatted.
   ══════════════════════════════════════════════════════════════ */

/* Trust bar / social proof bar */
.trust-bar,
.sr-trust-bar,
[class*="trust-bar"] {
  background: #FAFAFA;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
  padding: 0.75rem 0;
}

/* Trust badges: inline, clean */
.trust-badges,
.security-badges,
[class*="trust-badges"] {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   11. SIDEBAR IMPROVEMENTS (settlement detail)
   Clock icon styling for deadline countdowns
   ══════════════════════════════════════════════════════════════ */

.suc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.suc-icon svg {
  width: 14px;
  height: 14px;
}

.sidebar-urgency--urgent .suc-icon svg,
.sidebar-urgency--soon .suc-icon svg {
  stroke: currentColor;
}

/* Sidebar urgency states — professional, not aggressive */
.sidebar-urgency-countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  margin-bottom: 0.75rem;
}

.sidebar-urgency--urgent {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

.sidebar-urgency--soon {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

/* Filing closes notice — professional, not screaming */
.sidebar-urgency-warn {
  font-size: 0.8125rem;
  color: #92400E;
  font-weight: 500;
  margin: -0.25rem 0 0.75rem;
  padding: 0;
}

/* ══════════════════════════════════════════════════════════════
   12. CONTENT MAX-WIDTH — READABILITY
   Long-form content shouldn't span 100% of wide screens
   ══════════════════════════════════════════════════════════════ */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ══════════════════════════════════════════════════════════════
   13. SITEWIDE PAGE BACKGROUND
   Always white content, gray-50 for section alternation
   ══════════════════════════════════════════════════════════════ */

body {
  background-color: #FFFFFF;
}

/* Even sections: subtle off-white break */
.hp-stats,
.hp-testimonials,
.hp-steps,
.hp-pricing {
  background-color: #F9FAFB;
}

/* Ensure sections on white don't accidentally pick up grays */
.hp-hero,
.hp-feed,
.hp-trending,
.hp-payouts,
.hp-email-capture,
.hp-for-business {
  background-color: #FFFFFF;
}

/* ══════════════════════════════════════════════════════════════
   14. ABOUT PAGE — PROFESSIONAL TONE POLISH
   ══════════════════════════════════════════════════════════════ */

/* Stats section on about page */
.ab4-stats-grid .ab4-stat-value {
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════
   15. CLOSING SOON SECTION — PROFESSIONAL HEADING
   The 🚨 emoji was removed from the heading. Reinforce the style.
   ══════════════════════════════════════════════════════════════ */

#sr-closing-soon-carousel h2,
#sr-closing-soon-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0A0A0A;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* ══════════════════════════════════════════════════════════════
   16. PRODUCTS HEADING — EMOJI REMOVED, REINFORCE STYLE
   ══════════════════════════════════════════════════════════════ */

.hp-products__heading {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 700 !important;
  color: #0A0A0A !important;
  letter-spacing: -0.015em !important;
}

/* ══════════════════════════════════════════════════════════════
   17. FILING INTENT MODAL — PROFESSIONAL ICON
   The clipboard emoji was replaced with SVG.
   ══════════════════════════════════════════════════════════════ */

#sr-fi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #E6F9F3;
  margin: 0 auto 1rem;
  color: #00875A;
}

#sr-fi-icon svg {
  stroke: #00875A;
}

/* ══════════════════════════════════════════════════════════════
   18. SECTION ALTERNATION — VISUAL RHYTHM
   Alternating sections with subtle bg change create rhythm.
   ══════════════════════════════════════════════════════════════ */

/* Products section: green-tinted surface */
.hp-products {
  background: #F8FFFE !important;
  border-top: 1px solid #E2EEE8;
  border-bottom: 1px solid #E2EEE8;
}

/* ══════════════════════════════════════════════════════════════
   19. FOOTER PROFESSIONAL CONSISTENCY
   Clear nav links, proper typographic hierarchy
   ══════════════════════════════════════════════════════════════ */

/* Footer text hierarchy */
.sr-footer-title,
.site-footer h3,
.footer-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════
   20. PRINT + REDUCED MOTION PRESERVATION
   Don't interfere with accessibility or print
   ══════════════════════════════════════════════════════════════ */

@media print {
  .btn,
  [class*="btn-"] {
    box-shadow: none !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  [class*="btn-"],
  .card,
  .settlement-card {
    transition: none !important;
    transform: none !important;
  }
}
