/* ═══════════════════════════════════════════════════════════════════
   pollitix-brand.css  —  Global brand override
   Loaded AFTER per-page <style> blocks so these values win.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. FONTS ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── 2. COLOUR TOKENS — original blues ────────────────────────────── */
:root {
  --primary:        #1a3c8f;
  --primary-dark:   #2952c4;
  --primary-light:  #2952c4;
  --primary-xlight: #e8edf9;
  --accent-red:     #dc2626;
  --accent-green:   #16a34a;
  --accent-amber:   #d97706;
  --neutral-900:    #0f172a;
  --neutral-800:    #1e293b;
  --neutral-700:    #334155;
  --neutral-500:    #64748b;
  --neutral-300:    #cbd5e1;
  --neutral-200:    #e2e8f0;
  --neutral-100:    #f1f5f9;
  --neutral-50:     #f8fafc;
  --white:          #ffffff;
}

/* ── 3. BODY ──────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── 4. HEADING FONT — Lora replaces Montserrat everywhere ─────────── */
h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif !important;
  letter-spacing: -0.015em;
}
h1 { line-height: 1.1 !important; }
h2 { line-height: 1.2 !important; }
h3 { line-height: 1.3 !important; }

.section-title, .section-head > div,
.widget-title, .page-title,
.founder-name, .plan-name,
.floor-post-title, .learn-heading,
.news-headline, .disc-title,
.hero-title,
[class*="-title"], [class*="-heading"], [class*="-headline"], [class*="-name"] {
  font-family: 'Lora', Georgia, serif !important;
  letter-spacing: -0.01em;
}

/* Catch remaining inline Montserrat */
[style*="Montserrat"] {
  font-family: 'Lora', Georgia, serif !important;
}

/* ── 5. TEXT SELECTION COLOUR ─────────────────────────────────────── */
::selection {
  background: #2952c4;
  color: #fff;
}
::-moz-selection {
  background: #2952c4;
  color: #fff;
}

/* ── 6. CUSTOM SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── 7. FORM INPUTS ───────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  border-radius: 8px !important;
  border: 1.5px solid var(--neutral-200) !important;
  font-family: 'Inter', sans-serif !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 0 0 3px rgba(41,82,196,0.12) !important;
}

/* ── 8. FOCUS RINGS ───────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary-dark) !important;
  outline-offset: 3px !important;
  border-radius: 4px !important;
}

/* ── 9. EYEBROW LABELS ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  color: var(--primary-dark) !important;
  padding-left: 10px !important;
  border-left: 3px solid var(--accent-red) !important;
  margin-bottom: 12px !important;
  font-family: 'Inter', sans-serif !important;
}
.eyebrow-light {
  color: rgba(255,255,255,0.8) !important;
  border-left-color: rgba(255,255,255,0.5) !important;
}

/* ── 10. HERO NEWS CARD — replace gradient with dark + dot texture ── */
/*    The gradient was the most generic thing on the homepage.
      Solid dark navy + a subtle dot grid is intentional and editorial. */
.hero-news {
  background: #0c1d4a !important;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.055) 1.5px, transparent 1.5px) !important;
  background-size: 22px 22px !important;
  border-radius: 14px !important;
}

/* Hero title gets a notch bigger and proper Lora treatment */
.hero-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
}

/* Breaking badge — less pill, more editorial */
.hero-badge {
  border-radius: 4px !important;
  letter-spacing: 1.2px !important;
  font-size: 10px !important;
}

/* ── 11. INLINE GRADIENT BANNERS — neutralise and add texture ─────── */
/*    Targets the #0d2464→#2952c4 gradient used on modal/section headers
      as inline styles. Overrides background with !important.          */
[style*="linear-gradient(135deg,#0d2464"],
[style*="linear-gradient(135deg, #0d2464"],
[style*="linear-gradient(135deg,#1a3c8f"],
[style*="linear-gradient(135deg, #1a3c8f"] {
  background: #0c1d4a !important;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.055) 1.5px, transparent 1.5px) !important;
  background-size: 22px 22px !important;
}

/* ── 12. WIDGET / CARD POLISH ─────────────────────────────────────── */
.widget {
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06), 0 2px 12px rgba(15,23,42,0.04) !important;
  border: 1px solid var(--neutral-200) !important;
}

/* ── 13. NEWS CARDS ───────────────────────────────────────────────── */
.news-card {
  border-radius: 10px !important;
  border: 1px solid var(--neutral-200) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05) !important;
  transition: box-shadow 0.18s ease, transform 0.18s ease !important;
}
.news-card:hover {
  box-shadow: 0 6px 24px rgba(15,23,42,0.12) !important;
  transform: translateY(-2px) !important;
}

/* ── 14. PRICING CARDS — each tier gets its own colour identity ────── */
/*    Currently all 5 cards look identical except for the border highlight.
      A coloured top-bar stripe separates them visually at a glance.   */
.plan-card {
  border-top: 4px solid #e2e8f0 !important;  /* Free: neutral */
  border-radius: 12px !important;
}
.plans-grid .plan-card:nth-child(1) { border-top-color: #64748b !important; } /* Free */
.plans-grid .plan-card:nth-child(2) { border-top-color: #2952c4 !important; } /* Plus */
.plan-card.featured     { border-top-color: #1d4ed8 !important; }              /* Pro */
.plan-card.elite        { border-top-color: #7c3aed !important; }              /* Elite */
.plan-card.institutional { border-top-color: #f59e0b !important; }             /* Institutional */

/* Remove the emoji-only plan-icon — they just pad the card */
.plan-icon {
  font-size: 20px !important;
  line-height: 1 !important;
  margin-bottom: -4px !important;
  opacity: 0.85 !important;
}

/* Better price display */
.plan-price .amount {
  font-family: 'Lora', Georgia, serif !important;
  letter-spacing: -0.03em !important;
}

/* ── 15. DARK SECTION DIVIDERS ─────────────────────────────────────── */
.section-dark {
  border-top: 3px solid var(--accent-red) !important;
}

/* ── 16. WICON — strip the coloured box ──────────────────────────── */
.wicon {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: 16px !important;
  width: 22px !important;
  height: 22px !important;
}

/* ── 17. BUTTONS ──────────────────────────────────────────────────── */
.nav-btn, .btn-primary, .mob-btn-primary {
  border-radius: 7px !important;
}

/* ── 18. FOOTER ───────────────────────────────────────────────────── */
.pxf-top {
  border-top: 3px solid var(--accent-red) !important;
}
