/* ==========================================================
   FindMyBroker — Main Stylesheet
   Modern fintech design: clean whites, deep navy, green CTAs
   ========================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #1e3a5f;
  --primary-dark:   #122540;
  --primary-light:  #e8f0fb;
  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --cta:            #16a34a;
  --cta-hover:      #15803d;
  --cta-light:      #dcfce7;
  --gold:           #f59e0b;
  --silver:         #9ca3af;
  --bronze:         #cd7c2f;
  --warn:           #f59e0b;
  --warn-bg:        #fffbeb;
  --success:        #16a34a;
  --success-bg:     #f0fdf4;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #ffffff;

  --bg-page:        #f8fafc;
  --bg-card:        #ffffff;
  --bg-dark:        #0f172a;

  --border:         #e2e8f0;
  --border-focus:   #2563eb;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:      0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-glow:    0 0 0 3px rgba(37,99,235,.25);

  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --transition:     0.2s ease;
  --max-width:      1200px;
  --nav-height:     68px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow);
}

.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--cta {
  background: var(--cta);
  color: white;
  border-color: var(--cta);
}
.btn--cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}

.btn--sm  { padding: 8px 16px; font-size: 13px; }
.btn--lg  { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav__logo:hover { color: var(--primary); }

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--cta));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.logo-text strong { color: var(--accent); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav__link:hover, .nav__link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e4d8c 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}
.shape--1 {
  width: 600px; height: 600px;
  background: white;
  top: -200px; right: -100px;
}
.shape--2 {
  width: 300px; height: 300px;
  background: var(--accent);
  bottom: -100px; left: 5%;
}
.shape--3 {
  width: 200px; height: 200px;
  background: var(--cta);
  top: 10%; left: 30%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
}
.hero__trust svg { color: #4ade80; flex-shrink: 0; }

/* ---------- Finder Card ---------- */
.finder-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
}

.finder-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.finder-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.finder-card__step {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  margin-bottom: 28px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

/* Form steps */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeSlideIn .25s ease; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-step__icon {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.form-select:hover { border-color: var(--accent); }

.form-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Form nav buttons */
.form-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
}

.form-nav .btn--primary,
.form-nav .btn--cta { flex: 1; }

/* ---------- How It Works ---------- */
.how-it-works { background: white; }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.step-card__number {
  font-size: 52px;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.step-card__icon {
  color: var(--primary);
  margin-bottom: 14px;
}

.step-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card__desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Trust Section ---------- */
.trust-section { background: var(--bg-page); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.trust-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: white;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ---------- Results Hero ---------- */
.results-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  text-align: center;
}

.results-hero__inner { max-width: 700px; margin: 0 auto; }

.results-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.results-badge svg { color: #4ade80; }

.results-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: white;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.results-hero__sub {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  margin-bottom: 20px;
}

.profile-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.results-retry { color: rgba(255,255,255,.7) !important; border-color: rgba(255,255,255,.25) !important; }
.results-retry:hover { color: white !important; background: rgba(255,255,255,.1) !important; }

/* ---------- Results Section ---------- */
.results-section {
  padding: 48px 0 80px;
  background: var(--bg-page);
}

/* ---------- Broker Card ---------- */
.broker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  position: relative;
}

.broker-card:hover { box-shadow: var(--shadow-lg); }

.broker-card--top {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), var(--shadow-md);
}

.broker-card__rank {
  padding: 12px 24px 0;
}

.medal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}

.medal--gold {
  background: #fef3c7;
  color: #92400e;
}

.medal--silver {
  background: #f1f5f9;
  color: #374151;
}

.medal--bronze {
  background: #fef3c7;
  color: #7c3c0f;
}

.broker-card__body { padding: 20px 24px 28px; }

.broker-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.broker-card__identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.broker-card__logo {
  width: 180px;
  height: 88px;
  object-fit: contain;
  object-position: left center;
}

.broker-card__logo-placeholder {
  width: 56px; height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.broker-card__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.broker-card__tagline {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Score meter */
.score-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.score-meter__ring {
  position: relative;
  width: 56px; height: 56px;
}

.score-ring {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.score-ring__bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}

.score-ring__fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.broker-card--top .score-ring__fill { stroke: var(--gold); }

.score-meter__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.score-meter__label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* Stars (brokers page) */
.broker-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 14px;
}

.broker-stars--sm { gap: 2px; }

.star path { fill: var(--border); stroke: var(--border); }
.star--filled path { fill: var(--gold); stroke: var(--gold); }

.broker-stars__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 6px;
}

/* Trustpilot rating row */
.trustpilot-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.trustpilot-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tp-star path { fill: #DCDCE6; stroke: #DCDCE6; }
.tp-star--filled path { fill: #00B67A; stroke: #00B67A; }

.trustpilot-score {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 6px;
}

.trustpilot-row--tile {
  margin-bottom: 12px;
}

.trustpilot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.trustpilot-link:hover {
  border-color: #00B67A;
  background: #f0fdf9;
}

.trustpilot-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #191919;
}

.trustpilot-count {
  font-size: 12px;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 8px;
}

.broker-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Match reasons */
.broker-card__matches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.match-list {
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.match-list--good {
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
}

.match-list--warn {
  background: var(--warn-bg);
  border: 1px solid #fed7aa;
}

.match-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  padding: 3px 0;
}

.match-list--good li { color: #166534; }
.match-list--good svg { color: var(--cta); flex-shrink: 0; margin-top: 2px; }

.match-list--warn li { color: #92400e; }
.match-list--warn svg { color: var(--warn); flex-shrink: 0; margin-top: 2px; }

/* Feature bullets */
.broker-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.broker-features li {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid #c7d8f0;
}

/* Quick stats */
.broker-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.broker-stat {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.broker-stat:last-child { border-right: none; }

.broker-stat__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.broker-stat__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* CTA area */
.broker-card__cta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.broker-card__disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 24px;
}
.no-results svg { margin: 0 auto 20px; }
.no-results h3 { font-size: 22px; margin-bottom: 10px; }
.no-results p { color: var(--text-secondary); margin-bottom: 24px; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: white;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  margin-bottom: 24px;
}

/* ---------- About / Content prose ---------- */
.content-prose {
  max-width: 820px;
  margin: 0 auto;
}

.content-prose h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 48px 0 16px;
  color: var(--primary);
}

.content-prose p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.criteria-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.criteria-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.criteria-weight {
  background: var(--primary);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.criteria-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.about-cta {
  text-align: center;
  padding: 40px 0;
}

/* ---------- All Brokers Page ---------- */
.all-brokers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.broker-tile {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.broker-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.broker-tile__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.broker-tile__logo {
  width: 160px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.broker-tile__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.broker-tile__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.broker-tile__stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.brokers-page-cta {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.brokers-page-cta p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  padding: 60px 0 32px;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.site-footer .nav__logo { color: white; }
.site-footer .logo-text { color: rgba(255,255,255,.9); }
.site-footer .logo-text strong { color: #60a5fa; }

.footer__tagline {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__nav a:hover { color: white; }

.footer__disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}

.footer__disclaimer strong { color: rgba(255,255,255,.6); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .all-brokers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__text { text-align: center; }
  .hero__subtitle { margin: 0 auto 28px; }
  .hero__trust { justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .all-brokers-grid { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; }

  .broker-card__matches { grid-template-columns: 1fr; }
  .broker-card__cta { flex-direction: column; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .nav__toggle { display: flex; }

  .nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .nav__menu.open { display: flex; }
  .nav__link { width: 100%; padding: 12px 16px; }
  .nav__menu .btn { width: 100%; margin-top: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .finder-card { padding: 24px 20px; }
  .broker-card__body { padding: 16px 18px 22px; }
  .broker-stats { flex-direction: column; }
  .broker-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .broker-stat:last-child { border-bottom: none; }
  .profile-pills { gap: 6px; }
  .section { padding: 56px 0; }
}

/* ---------- Disclaimer Banner ---------- */
.disclaimer-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 14px 0;
}

.disclaimer-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.disclaimer-banner__icon {
  color: #92400e;
  flex-shrink: 0;
  margin-top: 1px;
}

.disclaimer-banner p {
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
  margin: 0;
}

.disclaimer-banner strong {
  color: #92400e;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }

/* ==========================================================
   Blog
   ========================================================== */

/* Blog list grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.blog-card__date {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-card__read {
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--accent);
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
}

.blog-card__link:hover {
  color: var(--accent-hover);
}

/* Blog detail layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* Article */
.blog-article__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.blog-article__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.blog-article__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.blog-article__excerpt {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-article__body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.blog-article__body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 14px;
}

.blog-article__body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.blog-article__body p {
  margin-bottom: 16px;
}

.blog-article__body ul, .blog-article__body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.blog-article__body li {
  margin-bottom: 8px;
}

.blog-article__body strong {
  font-weight: 700;
  color: var(--text-primary);
}

/* Blog in-article CTA */
.blog-cta {
  background: var(--primary-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.blog-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.blog-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.sidebar-widget--cta {
  background: var(--primary);
  border-color: var(--primary);
}

.sidebar-widget--cta h3 {
  color: white;
}

.sidebar-widget--cta p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 16px;
}

.sidebar-widget--disclaimer {
  background: var(--warn-bg);
  border-color: var(--warn);
}

.sidebar-widget--disclaimer p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.sidebar-posts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-posts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sidebar-posts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-posts a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.4;
}

.sidebar-posts a:hover {
  color: var(--accent);
}

.sidebar-posts span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 0;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb ol li::after {
  content: '/';
  margin-left: 8px;
  color: var(--border);
}

.breadcrumb ol li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}
