/* Design tokens from fundingpips.com — navy #000042, primary #2e47d6 (browser-verified) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #000042;
  --bg-deep: #000033;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --text: #f7f8f8;
  --muted: rgba(247, 248, 248, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --primary: #2e47d6;
  --primary-hover: #4c64e8;
  --star: #facc15;
  --radius: 999px;
  --radius-card: 16px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: #93b4ff; text-decoration: none; }
a:hover { color: #c7d7ff; }

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

@keyframes fp-glow { 0%,100%{opacity:.55} 50%{opacity:.85} }
@keyframes reveal-up { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }
@keyframes tray-in { from{transform:translateY(100%)} to{transform:translateY(0)} }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1){transition-delay:.06s}
.reveal-stagger.is-visible > *:nth-child(2){transition-delay:.12s}
.reveal-stagger.is-visible > *:nth-child(3){transition-delay:.18s}
.reveal-stagger.is-visible > *:nth-child(n+4){transition-delay:.24s}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Header — FundingPips-style */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(0, 0, 66, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.logo { font-weight: 800; font-size: 1.125rem; color: #fff; letter-spacing: -0.03em; }
.logo:hover { color: #fff; text-decoration: none; }
.logo em { font-style: normal; color: #fff; font-weight: 700; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  color: #fff; border-radius: 8px; padding: 0.5rem 0.75rem; font-weight: 600; cursor: pointer;
}
.nav-panel { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.nav-panel a:not(.btn) {
  color: var(--text); font-weight: 500; font-size: 0.9375rem; padding: 0.5rem 0.85rem; border-radius: 8px;
}
.nav-panel a:not(.btn):hover { background: rgba(255,255,255,0.06); text-decoration: none; color: #fff; }
.nav-panel a.is-active:not(.btn) { color: #fff; }
.nav-cta { margin-left: 0.5rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 1rem;
  }
  .header-inner { position: relative; flex-wrap: wrap; }
  .nav-panel.is-open { display: flex; animation: tray-in .35s var(--ease); }
}

/* Centered hero */
.fp-hero-center {
  position: relative; text-align: center; padding: 4.5rem 0 3.5rem; overflow: hidden;
}
.fp-hero-center__glow {
  position: absolute; inset: -20% 0 auto; height: 420px;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(46, 71, 214, 0.35), transparent 70%);
  animation: fp-glow 8s ease-in-out infinite;
}
.fp-hero-center__inner { position: relative; z-index: 1; max-width: 52rem; margin-inline: auto; }
.fp-hero-center__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.04em; margin: 0 0 1.25rem; color: #fff;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35em 0.5em;
}
.fp-hero-center__arrow { color: var(--primary); font-weight: 700; }
.fp-hero-center__lead { font-size: 1.125rem; color: var(--muted); line-height: 1.65; margin: 0 0 2rem; }
.fp-hero-center__lead strong { color: #fff; font-weight: 600; }
.fp-hero-center__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.fp-eyebrow {
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55); margin: 0 0 0.5rem;
}
.fp-section-title { font-size: clamp(1.65rem, 3.5vw, 2.35rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 0.75rem; color: #fff; }
.fp-section-lead { color: var(--muted); max-width: 40rem; margin: 0 auto 2rem; font-size: 1.0625rem; line-height: 1.6; }
.fp-text-link { font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 2px; }
.fp-text-link:hover { color: #c7d7ff; text-decoration: none; }

/* Why grid */
.fp-why { padding: 3rem 0 4rem; border-top: 1px solid var(--line); }
.fp-why__heading { text-align: center; font-size: 1.5rem; font-weight: 700; margin: 0 0 2rem; color: #fff; }
.fp-why__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.fp-why__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.5rem; text-align: left; transition: border-color .3s, transform .3s var(--ease);
}
.fp-why__card:hover { border-color: rgba(46, 71, 214, 0.45); transform: translateY(-4px); }
.fp-why__card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; color: #fff; }
.fp-why__card p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

/* Steps */
.fp-journey { padding: 3rem 0 4rem; text-align: center; }
.fp-steps { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 720px; text-align: left; }
.fp-steps li {
  display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.fp-steps li:last-child { border-bottom: none; }
.fp-steps__num {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 0.9375rem;
}
.fp-steps strong { display: block; color: #fff; margin-bottom: 0.25rem; }
.fp-steps p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Stats band */
.fp-stats { border-block: 1px solid var(--line); background: rgba(0, 0, 51, 0.5); padding: 2.5rem 0; }
.fp-stats__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; text-align: center; }
.fp-stats__head strong {
  display: block; font-size: 2.5rem; font-weight: 800; color: #fff; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fp-stats__head span { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.fp-cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 2rem 2.25rem; border-radius: var(--radius-card); margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(46, 71, 214, 0.22), rgba(46, 71, 214, 0.08));
  border: 1px solid rgba(46, 71, 214, 0.35);
}
.fp-cta-band h2 { margin: 0 0 0.35rem; font-size: 1.35rem; color: #fff; }
.fp-cta-band p { margin: 0; color: var(--muted); }
.fp-market-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.35rem; font-weight: 600; font-size: 0.9375rem;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 1.65rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8125rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: var(--line); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-secondary { background: var(--surface-2); color: #fff; border-color: var(--line); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-green, .btn-visit { background: var(--primary); color: #fff; border-color: transparent; }
.btn-green:hover, .btn-visit:hover { background: var(--primary-hover); color: #fff; }

main { padding: 0 0 4rem; }
.section { margin-bottom: 3rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 0.5rem; color: #fff; }
.page-intro { color: var(--muted); margin: 0 0 2rem; max-width: 58ch; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.35rem; transition: border-color .3s;
}
.card:hover { border-color: rgba(255,255,255,0.18); }
.grid-3 { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.broker-cards { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.broker-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.25rem; transition: transform .3s var(--ease), border-color .3s;
}
.broker-card:hover { transform: translateY(-3px); border-color: rgba(46, 71, 214, 0.4); }
.broker-card__top { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.broker-card__avatar {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #2336b1, var(--primary));
  color: #fff; font-weight: 800; font-size: 0.875rem;
  display: grid; place-items: center;
}
.broker-card__title { margin: 0; font-size: 1rem; }
.broker-card__title a { color: #fff; }
.broker-card__rating { color: var(--star); font-weight: 700; font-size: 0.875rem; }
.broker-card__compare { margin-left: auto; font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.broker-card__stats { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.875rem; }
.broker-card__stats li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.broker-card__stats span { color: var(--muted); }
.broker-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.market-chip {
  padding: 0.55rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: 0.875rem; transition: all .25s;
}
.market-chip:hover { color: #fff; border-color: var(--primary); background: rgba(46, 71, 214, 0.15); text-decoration: none; }

.table-wrap { overflow: auto; border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 800px; font-size: 0.9375rem; }
table.data th, table.data td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: rgba(0,0,0,0.15); }
table.data tbody tr:hover { background: rgba(255,255,255,0.03); }
table.data .name a { color: #fff; font-weight: 600; }
.rating { color: var(--star); font-weight: 700; }
.pill { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.45rem; border-radius: 4px; background: rgba(46, 71, 214, 0.2); color: #c7d7ff; margin-right: 0.25rem; }
.filters input, .filters select { padding: 0.65rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,0.2); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.compare-picker { display: grid; gap: 1rem; grid-template-columns: 1fr auto 1fr; align-items: end; margin-bottom: 2rem; }
.compare-field label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 0.4rem; }
.compare-field select { width: 100%; padding: 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,0.2); color: #fff; }
.compare-vs-label { font-weight: 800; color: var(--muted); text-align: center; padding-bottom: 0.85rem; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 1rem; border-bottom: 1px solid var(--line); }
.compare-table .metric-name { background: rgba(0,0,0,0.15); color: var(--muted); width: 28%; }
.compare-table .better { background: rgba(46, 71, 214, 0.18); color: #c7d7ff; font-weight: 700; }
.score-badge { background: rgba(250, 204, 21, 0.15); color: var(--star); font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.8125rem; }

.broker-hero {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr auto;
  padding: 2rem; border-radius: var(--radius-card); border: 1px solid var(--line);
  background: var(--surface); margin-bottom: 2rem;
}
.broker-hero__rating { font-size: 2.5rem; font-weight: 800; color: var(--star); }
.score-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.score-bar__fill { height: 100%; width: var(--score-pct, 0%); background: linear-gradient(90deg, #2336b1, var(--primary)); transition: width 1.2s var(--ease); }
.score-bars { display: flex; flex-direction: column; gap: 1rem; }
.score-row__head { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.35rem; }

.compare-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: rgba(0, 0, 51, 0.96); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 0.85rem 0;
  animation: tray-in .45s var(--ease);
}
.compare-tray__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.compare-tray__labels { display: block; color: var(--muted); font-size: 0.875rem; }

.guide-card__cat { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; color: #93b4ff; }
.guide-card h2 { font-size: 1.0625rem; margin: 0.35rem 0; }
.guide-card h2 a { color: #fff; }
.guide-card p { color: var(--muted); margin: 0; font-size: 0.9375rem; }

.breadcrumbs { font-size: 0.875rem; color: var(--muted); padding: 1rem 0; }
.breadcrumbs a { color: var(--muted); }
.prose { color: var(--muted); max-width: 68ch; }
.prose h2, .prose h3 { color: #fff; }

.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 3rem 0 2rem; color: var(--muted); font-size: 0.875rem; }
.site-footer a { color: rgba(247, 248, 248, 0.85); }
.site-footer h3 { color: #fff; font-size: 0.9375rem; margin: 0 0 0.75rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.disclaimer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.8125rem; }
