@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --pf-bg: #050b14;
  --pf-panel: #0b1220;
  --pf-panel-2: #111b2a;
  --pf-text: #f8fafc;
  --pf-muted: #aab4c0;
  --pf-line: rgba(96, 165, 250, 0.24);
  --pf-blue: #3b82f6;
  --pf-blue-dark: #2563eb;
  --pf-cyan: #22d3ee;
  --pf-green: #22c55e;
  --pf-amber: #fbbf24;
  --pf-red: #f87171;
  --pf-width: 1180px;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; background: var(--pf-bg); }
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--pf-text);
  background:
    radial-gradient(circle at 16% 0%, rgba(59, 130, 246, .18), transparent 30%),
    linear-gradient(145deg, #050b14, #070a0f 70%);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
button, input, select, a { font: inherit; }
a { color: #93c5fd; text-decoration: none; }
a:hover { color: #fff; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.pf-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--pf-blue-dark);
  transform: translateY(-160%);
}
.pf-skip:focus { transform: translateY(0); }

.pf-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--pf-line);
  background: rgba(5, 11, 20, .94);
  backdrop-filter: blur(16px);
}
.pf-header-inner,
.pf-main,
.pf-footer-inner {
  width: min(var(--pf-width), calc(100% - 32px));
  margin: 0 auto;
}
.pf-header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.pf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}
.pf-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pf-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(14, 165, 255, .3));
}
.pf-brand > span:last-child { color: #fff; }
.pf-brand > span:last-child > span { color: var(--pf-blue); }
.pf-nav { display: flex; justify-content: center; gap: 6px; }
.pf-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--pf-muted);
  font-weight: 700;
}
.pf-nav a:hover,
.pf-nav a[aria-current="page"] { color: #fff; background: rgba(59, 130, 246, .13); }
.pf-header-actions { display: flex; align-items: center; gap: 8px; }
.pf-language-switch { display: flex; gap: 5px; }
.pf-language-switch button,
.pf-menu-button {
  min-width: 40px;
  min-height: 38px;
  border: 1px solid var(--pf-line);
  border-radius: 6px;
  color: var(--pf-muted);
  background: #0b1220;
  font-weight: 800;
  cursor: pointer;
}
.pf-language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pf-language-switch img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}
.pf-language-switch button.active { color: #fff; border-color: var(--pf-blue); background: rgba(59, 130, 246, .18); }
.pf-menu-button { display: none; padding: 0 10px; }

.pf-main { min-height: 70vh; padding: 54px 0 64px; }
.pf-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(34px, 6vw, 76px) 0 58px;
}
.pf-eyebrow {
  margin: 0 0 8px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.pf-hero h1,
.pf-detail-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}
.pf-hero-copy,
.pf-detail-summary {
  max-width: 780px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 21px);
}
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pf-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--pf-blue);
  border-radius: 6px;
  color: #fff;
  background: var(--pf-blue-dark);
  font-weight: 800;
  cursor: pointer;
}
.pf-button:hover { color: #fff; background: #1d4ed8; }
.pf-button--secondary { border-color: var(--pf-line); color: #dbeafe; background: rgba(15, 23, 42, .72); }
.pf-button--secondary:hover { background: rgba(30, 41, 59, .94); }
.pf-hero-stat {
  align-self: stretch;
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--pf-line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(17, 27, 42, .9), rgba(6, 11, 20, .72));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .26);
}
.pf-hero-stat strong { font-size: 40px; line-height: 1; }
.pf-hero-stat span { color: var(--pf-muted); }
.pf-hero-stat-list { display: grid; gap: 8px; margin-top: 8px; }
.pf-hero-stat-list div { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 1px solid rgba(148, 163, 184, .16); }

.pf-section { padding: 54px 0; border-top: 1px solid rgba(148, 163, 184, .14); }
.pf-section-heading { max-width: 790px; margin-bottom: 26px; }
.pf-section-heading h2,
.pf-detail-section h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: 0;
}
.pf-section-heading p,
.pf-detail-section p { color: var(--pf-muted); }
.pf-lead { font-size: 18px; color: #d3dce7; }
.pf-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.pf-prose { max-width: 820px; }
.pf-prose p { color: #c3ceda; }

.pf-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pf-flow-step {
  min-height: 122px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--pf-line);
  border-radius: 8px;
  background: rgba(11, 18, 32, .78);
}
.pf-flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 44%;
  z-index: 2;
  color: #60a5fa;
  font-weight: 800;
}
.pf-flow-number { color: var(--pf-cyan); font-size: 12px; font-weight: 800; }
.pf-flow-step span:last-child { color: var(--pf-muted); }

.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pf-glossary-card,
.pf-firm-card,
.pf-summary-card,
.pf-mobile-comparison-card {
  min-width: 0;
  border: 1px solid var(--pf-line);
  border-radius: 8px;
  background: rgba(11, 18, 32, .8);
}
.pf-glossary-card { padding: 18px; }
.pf-glossary-card h3 { margin: 0 0 8px; font-size: 15px; }
.pf-glossary-card p { margin: 0; color: var(--pf-muted); font-size: 14px; }
.pf-firm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-firm-card { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 22px; }
.pf-firm-card-head { display: flex; align-items: flex-start; gap: 14px; }
.pf-firm-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 7px;
  color: #cffafe;
  background: rgba(8, 145, 178, .12);
  font-size: 12px;
  font-weight: 800;
}
.pf-firm-card h3 { margin: 0; font-size: 20px; }
.pf-card-summary { margin: 6px 0 0; color: var(--pf-muted); font-size: 14px; }
.pf-comparison-cta {
  margin-top: 22px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(37, 99, 235, .38);
  border-radius: 8px;
  background: rgba(15, 23, 42, .8);
}
.pf-comparison-cta h3 { margin: 0; color: #fff; font-size: 21px; }
.pf-comparison-cta p { max-width: 760px; margin: 7px 0 0; color: var(--pf-muted); }
.pf-comparison-cta .pf-button { flex: 0 0 auto; }
.pf-card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-card-fact span { display: block; color: var(--pf-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.pf-card-fact strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 14px; }
.pf-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-tag,
.pf-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(34, 197, 94, .32);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, .1);
  font-size: 12px;
  font-weight: 800;
}
.pf-status--amber { color: #fde68a; border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .09); }

.pf-notice,
.pf-risk-notice,
.pf-reviewed {
  padding: 18px 20px;
  border: 1px solid var(--pf-line);
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(37, 99, 235, .09);
}
.pf-risk-notice { border-color: rgba(248, 113, 113, .28); color: #fecaca; background: rgba(127, 29, 29, .12); }
.pf-reviewed { margin-top: 24px; color: #d9e4ef; background: rgba(15, 23, 42, .7); }
.pf-reviewed strong { color: #fff; }

.pf-detail-hero { padding: 38px 0 48px; }
.pf-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; color: var(--pf-muted); font-size: 13px; }
.pf-breadcrumbs a { color: #93c5fd; }
.pf-detail-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.pf-detail-title-row .pf-firm-mark { width: 62px; height: 62px; font-size: 15px; }
.pf-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pf-key-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.pf-key-fact { padding: 15px; border-top: 2px solid var(--pf-blue); background: rgba(15, 23, 42, .54); }
.pf-key-fact span { display: block; color: var(--pf-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.pf-key-fact strong { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.pf-detail-section { padding: 42px 0; border-top: 1px solid rgba(148, 163, 184, .14); }
.pf-detail-section h2 { margin-bottom: 16px; font-size: clamp(23px, 3vw, 31px); }
.pf-detail-list { margin: 0; padding-left: 20px; color: #cbd5e1; }
.pf-detail-list li + li { margin-top: 8px; }
.pf-program-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-program-list span { padding: 7px 10px; border: 1px solid var(--pf-line); border-radius: 6px; color: #dbeafe; background: rgba(59, 130, 246, .08); font-weight: 700; }
.pf-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pf-detail-block { padding-left: 18px; border-left: 2px solid rgba(59, 130, 246, .48); }
.pf-detail-block h3 { margin: 0 0 5px; }
.pf-detail-block p { margin: 0; }

.pf-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--pf-line); border-radius: 8px; }
.pf-table { width: 100%; min-width: 920px; border-collapse: collapse; background: rgba(8, 17, 31, .9); }
.pf-table th,
.pf-table td { padding: 12px 13px; border-bottom: 1px solid rgba(148, 163, 184, .14); text-align: left; vertical-align: top; font-size: 13px; }
.pf-table th { position: sticky; top: 0; z-index: 1; color: #dbeafe; background: #0d1727; font-size: 11px; text-transform: uppercase; }
.pf-table tr:last-child td { border-bottom: 0; }
.pf-table a { font-weight: 700; }
.pf-table-note { color: var(--pf-muted); font-size: 13px; }
.pf-comparison-desktop { position: relative; }
.pf-table-drag-hint { margin: 0 0 8px; color: var(--pf-muted); font-size: 12px; }
.pf-table-scrollbar-top {
  width: 100%;
  height: 15px;
  margin-bottom: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(96, 165, 250, .55) rgba(15, 23, 42, .86);
  scrollbar-width: thin;
}
.pf-table-scrollbar-top > div { height: 1px; }
.pf-table-scrollbar-top::-webkit-scrollbar,
.pf-table-wrap--comparison::-webkit-scrollbar { width: 11px; height: 11px; }
.pf-table-scrollbar-top::-webkit-scrollbar-track,
.pf-table-wrap--comparison::-webkit-scrollbar-track { background: rgba(15, 23, 42, .86); }
.pf-table-scrollbar-top::-webkit-scrollbar-thumb,
.pf-table-wrap--comparison::-webkit-scrollbar-thumb { border: 2px solid rgba(15, 23, 42, .86); border-radius: 999px; background: rgba(96, 165, 250, .55); }
.pf-comparison-scroll-frame { position: relative; min-width: 0; }
.pf-comparison-scroll-frame::before,
.pf-comparison-scroll-frame::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  z-index: 8;
  width: 20px;
  opacity: 1;
  pointer-events: none;
  transition: opacity .16s ease;
}
.pf-comparison-scroll-frame::before { left: 1px; background: linear-gradient(90deg, rgba(5, 11, 20, .7), transparent); }
.pf-comparison-scroll-frame::after { right: 1px; background: linear-gradient(270deg, rgba(5, 11, 20, .72), transparent); }
.pf-comparison-scroll-frame.is-at-start::before,
.pf-comparison-scroll-frame.is-at-end::after { opacity: 0; }
.pf-table-wrap--comparison {
  max-height: min(72vh, 760px);
  overflow: auto;
  scrollbar-color: rgba(96, 165, 250, .55) rgba(15, 23, 42, .86);
  scrollbar-width: thin;
}
.has-horizontal-overflow .pf-table-wrap--comparison { cursor: grab; }
.has-horizontal-overflow .pf-table-wrap--comparison.is-dragging { cursor: grabbing; user-select: none; }
.pf-table-wrap--comparison .pf-table { min-width: 2200px; }
.pf-table-wrap--comparison .pf-table th { top: 0; z-index: 4; background: #0d1727; }
.pf-table-wrap--comparison .pf-table th:first-child,
.pf-table-wrap--comparison .pf-table td:first-child {
  position: sticky;
  left: 0;
  min-width: 190px;
  border-right: 1px solid rgba(96, 165, 250, .3);
  box-shadow: 8px 0 14px -14px rgba(147, 197, 253, .9);
}
.pf-table-wrap--comparison .pf-table th:first-child { top: 0; z-index: 7; background: #0d1727; }
.pf-table-wrap--comparison .pf-table td:first-child { z-index: 3; background: #08111f; }
.pf-table-wrap--comparison .pf-table a { cursor: pointer; }

.pf-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pf-summary-card { padding: 18px; }
.pf-summary-card h3 { margin: 0 0 7px; font-size: 16px; }
.pf-summary-card p { margin: 0; color: var(--pf-muted); font-size: 14px; }
.pf-mobile-comparison { display: none; }
.pf-mobile-comparison-card { padding: 18px; }
.pf-mobile-comparison-card h3 { margin: 0 0 12px; }
.pf-mobile-facts { display: grid; gap: 8px; }
.pf-mobile-facts div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding-top: 8px; border-top: 1px solid rgba(148, 163, 184, .14); }
.pf-mobile-facts dt { color: var(--pf-muted); }
.pf-mobile-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }

.pf-source-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-source-list a { padding: 8px 10px; border: 1px solid var(--pf-line); border-radius: 6px; background: rgba(15, 23, 42, .7); }
.pf-affiliate { border-color: rgba(34, 197, 94, .35); background: rgba(20, 83, 45, .16); }
.pf-error { max-width: 720px; margin: 60px auto; padding: 24px; border: 1px solid rgba(248, 113, 113, .35); border-radius: 8px; background: rgba(127, 29, 29, .12); }

.pf-site-footer { border-top: 1px solid var(--pf-line); background: rgba(4, 8, 15, .88); }
.pf-footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 32px 0 42px; }
.pf-footer-copy { max-width: 720px; color: var(--pf-muted); font-size: 13px; }
.pf-footer-copy strong { display: block; margin-bottom: 4px; color: #fff; }
.pf-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 12px; font-size: 13px; }

@media (max-width: 960px) {
  .pf-header-inner { grid-template-columns: 1fr auto; }
  .pf-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .pf-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: stretch;
    padding: 0 0 14px;
  }
  .pf-nav.is-open { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-nav a { justify-content: center; }
  .pf-hero { grid-template-columns: 1fr; }
  .pf-hero-stat { min-height: auto; }
  .pf-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-flow-step:nth-child(2)::after { display: none; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .pf-header-inner,
  .pf-main,
  .pf-footer-inner { width: min(100% - 22px, var(--pf-width)); }
  .pf-header-inner { gap: 12px; }
  .pf-brand { font-size: 17px; }
  .pf-brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .pf-language-switch button { min-width: 36px; }
  .pf-nav.is-open { grid-template-columns: 1fr; }
  .pf-main { padding-top: 28px; }
  .pf-hero { padding: 24px 0 42px; }
  .pf-hero h1,
  .pf-detail-hero h1 { font-size: clamp(36px, 12vw, 54px); overflow-wrap: anywhere; }
  .pf-two-column,
  .pf-firm-grid,
  .pf-detail-columns,
  .pf-summary-grid { grid-template-columns: 1fr; }
  .pf-flow { grid-template-columns: 1fr; }
  .pf-flow-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -20px; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card-facts { grid-template-columns: 1fr; }
  .pf-comparison-cta { align-items: stretch; flex-direction: column; }
  .pf-comparison-cta .pf-button { width: 100%; }
  .pf-detail-title-row { grid-template-columns: 1fr; align-items: start; }
  .pf-key-facts { grid-template-columns: 1fr; }
  .pf-comparison-desktop { display: none; }
  .pf-mobile-comparison { display: grid; gap: 12px; }
  .pf-footer-inner { grid-template-columns: 1fr; }
  .pf-footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
