/* ============================================================
   PolicyMatcher homepage — design-system reskin
   Loads AFTER /buy/styles.css and ONLY on app.policymatcher.com.
   Re-skins the existing buy/index.php DOM in the same visual
   language as /buy/final-expense/ (Open Sans + JetBrains Mono,
   navy palette, pill buttons, mono eyebrows, hairline cards).
   No structural / block changes — layout & grids inherited.
   ============================================================ */

:root {
  /* Navy professional palette (mirrors final-expense tokens, hex-mapped) */
  --blue-primary: #2d5bd0;
  --blue-50:  #eef3fc;
  --blue-100: #d6e2f8;
  --blue-500: #5a82e2;
  --blue-600: #21408f;

  --gray-50:  #f6f8fc;
  --gray-100: #eef2f8;
  --gray-200: #e2e8f1;
  --gray-300: #cbd4e1;
  --gray-400: #9aa3b5;
  --gray-500: #6b7689;
  --gray-600: #515c72;
  --gray-700: #38445e;
  --gray-800: #243049;
  --gray-900: #161f37;

  --accent-ink: #21408f;

  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(22,31,55,.05);
  --shadow:    0 6px 18px rgba(22,31,55,.07);
  --shadow-md: 0 14px 36px rgba(22,31,55,.09);
  --shadow-lg: 0 24px 60px rgba(22,31,55,.12);
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  letter-spacing: -0.003em;
}

/* ---------- Typography: lighter weight, tighter tracking ---------- */
.hero-text h1,
.section-header h2 {
  font-weight: 600;
  letter-spacing: -0.028em;
}
.prop-card h3,
.service-large-card h3,
.step-card h3,
.pricing-card h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ---------- Eyebrow labels (mono + dot, like final-expense) ---------- */
.section-header .label {
  background: transparent;
  color: var(--gray-500);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  margin-bottom: 18px;
}
.section-header .label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue-primary);
  margin-right: 10px;
  vertical-align: 1px;
}

/* ---------- Buttons → pill, ink-primary (sizes mirror final-expense) ---------- */
.btn {
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border-width: 1px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 999px; }
.btn-lg { padding: 18px 28px; font-size: 16.5px; border-radius: 999px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-300);
}
.btn-secondary:hover {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: #fff;
}
.btn-outline {
  border-color: var(--gray-300);
  color: var(--gray-900);
}
.btn-outline:hover {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gray-50);
}
.hero::before {
  background: radial-gradient(ellipse 70% 60% at 60% 30%, rgba(45,91,208,.07) 0%, transparent 70%);
}
.hero-badge {
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue-primary);
  margin-right: 2px;
}
.hero-text h1 span {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent-ink);
}
.hero-services .service-card {
  border-radius: 999px;
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.hero-services .service-card .icon {
  background: var(--blue-50);
  border-radius: 999px;
}

/* ---------- Cards: hairline, soft, larger radius ---------- */
.prop-card,
.service-large-card,
.pricing-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: none;
  background: #fff;
}
.prop-card:hover,
.service-large-card:hover,
.pricing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.prop-icon,
.svc-icon,
.pricing-icon {
  background: var(--blue-50);
  color: var(--blue-primary);
  border-radius: 12px;
}
.svc-stats .stat .value { color: var(--blue-primary); }

/* ---------- Section tint rhythm ---------- */
.services-section,
.pricing,
.faq-section {
  background: var(--gray-50);
}
.value-props,
.how-it-works {
  background: #fff;
}

/* ---------- How it works ---------- */
.step-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.step-card:hover { box-shadow: var(--shadow-md); }
.step-number {
  background: var(--gray-900);
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
}

/* ---------- Pricing ---------- */
.pricing-card { border-width: 1px; }
.pricing-card.featured {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 1px var(--blue-primary), var(--shadow-md);
}
.pricing-card.featured::before {
  background: var(--blue-primary);
  letter-spacing: 0.08em;
}
.price { font-weight: 700; letter-spacing: -0.03em; }
.pricing-features li::before {
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='%232d5bd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
}
.faq-item.open {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.faq-question:hover,
.faq-item.open .faq-question { color: var(--accent-ink); }
.faq-item.open .faq-question { background: var(--blue-50); }
.faq-icon { border-radius: 999px; }
.faq-item.open .faq-icon { background: var(--blue-primary); }

/* ---------- CTA banner → ink, not blue gradient ---------- */
.cta-banner {
  background: var(--gray-900);
}
.cta-banner::before {
  background: radial-gradient(ellipse 60% 70% at 80% 20%, rgba(90,130,226,.18) 0%, transparent 60%),
              radial-gradient(ellipse 50% 60% at 10% 90%, rgba(45,91,208,.14) 0%, transparent 55%);
}
.cta-banner h2 { font-weight: 600; letter-spacing: -0.028em; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--gray-900);
  border-color: #fff;
}
.cta-banner .btn-primary:hover {
  background: var(--gray-50);
  border-color: var(--gray-50);
}

/* ---------- Footer ---------- */
.footer { background: var(--gray-900); }
.footer h4 {
  font-family: var(--mono);
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- Navbar ---------- */
.navbar-wrap {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.navbar-links a::after { background: var(--blue-primary); }
