:root {
  --bg: #070b16;
  --bg-2: #0c1222;
  --card: #111a2e;
  --card-2: #16213a;
  --line: #22304f;
  --text: #e8eefc;
  --muted: #9aa8c7;
  --blue: #2f8cff;
  --blue-2: #1f6fe0;
  --green: #22c55e;
  --yellow: #facc15;
  --red: #f87171;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: #6aaeff; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.accent { color: var(--blue); }
.green { color: var(--green); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 22, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--blue); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2;
}
.btn-primary { background: linear-gradient(180deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 6px 24px rgba(47, 140, 255, .35); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--blue); }
.btn-sm { padding: 9px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Hero */
.hero { padding: 72px 0 48px; background: radial-gradient(1000px 500px at 50% -10%, rgba(47, 140, 255, .22), transparent 70%); }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: rgba(34, 197, 94, .12); color: var(--green); border: 1px solid rgba(34, 197, 94, .35); margin-bottom: 18px;
}
.hero .btn-row { margin: 28px 0 14px; }
.fine { color: var(--muted); font-size: .9rem; }
.hero-shot { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

/* Grids and cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.6rem; margin-bottom: 8px; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--muted); }
.card li { margin: .25em 0; }
.card h3 + p { color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--blue); color: #fff;
}

.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr 1.2fr; }
.split.rev { grid-template-columns: 1.2fr 1fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--card-2); font-size: .9rem; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--green); font-weight: 700; }
td.no { color: var(--red); font-weight: 700; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, rgba(47, 140, 255, .18), rgba(34, 197, 94, .12)); border: 1px solid var(--line); border-radius: 20px; padding: 40px 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 16px; }
.disclaimer { font-size: .8rem; line-height: 1.5; }

/* Prop firm matcher */
.filters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.filter label.title { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--muted); font-size: .9rem; font-weight: 600; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: rgba(47, 140, 255, .18); border-color: var(--blue); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
select {
  width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); font: inherit;
}
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 14px; }
.firm { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.firm-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.firm h3 { margin: 0 0 4px; font-size: 1.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.tag.good { color: var(--green); border-color: rgba(34, 197, 94, .4); }
.code-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; letter-spacing: .05em;
  padding: 8px 12px; border: 1px dashed var(--green); border-radius: 8px; color: var(--green); background: rgba(34, 197, 94, .08);
}
.plans { margin-top: 14px; }
.plans table { min-width: 720px; font-size: .9rem; }
.plans th, .plans td { padding: 10px 12px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.finder-hero { padding: 56px 0 8px; }
.finder-section { padding-top: 24px; }
.finder { padding: 20px; }
fieldset.filter { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter legend.title { font-weight: 700; margin-bottom: 8px; font-size: .95rem; padding: 0; }
.chip { position: relative; }
.tag.warn { color: var(--yellow); border-color: rgba(250, 204, 21, .4); }
.firm-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 380px; }
.firm-cta .fine, .firm .verified { margin: 0; }
.firm .verified { margin-top: 8px; font-size: .82rem; }
.promo-text { font-size: .85rem; }
.firm-rules { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.firm-rules summary { cursor: pointer; font-weight: 700; color: var(--text); }
.firm-rules ul { margin: 8px 0 0; padding-left: 1.1em; }
.plans s { color: var(--muted); font-weight: 400; }
.plans small { color: var(--muted); }
.plans td { vertical-align: top; }
@media (max-width: 640px) { .finder { padding: 16px; } .firm { padding: 16px; } .firm-cta { max-width: none; } }
.jump-results { display: none; margin-top: 16px; width: 100%; }
.results-head { scroll-margin-top: 72px; }
@media (max-width: 640px) { .jump-results { display: flex; } }
.nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: .98rem; gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .site-header .wrap { gap: 14px; }
  .nav { gap: 8px; }
  .nav a { font-size: .85rem; }
  .nav .btn-sm { padding: 8px 10px; }
}

/* Click-to-enlarge screenshots (lightbox.js) */
.shot img, .hero-shot img { cursor: zoom-in; }
.shot img:focus-visible, .hero-shot img:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(3, 6, 14, .92);
  overflow: auto; -webkit-overflow-scrolling: touch;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 16px 40px; box-sizing: border-box; }
.lightbox-stage img {
  max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); cursor: zoom-in;
}
.lightbox.zoomed .lightbox-stage { display: block; text-align: center; }
.lightbox.zoomed .lightbox-stage img { max-width: none; max-height: none; width: auto; display: inline-block; cursor: zoom-out; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; z-index: 101; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--blue); }
.lightbox-hint { position: fixed; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; color: var(--muted); font-size: .85rem; pointer-events: none; }

/* Keep the brand from being squeezed under the nav on narrow phones */
.brand { flex-shrink: 0; white-space: nowrap; }
.nav { min-width: 0; }
@media (max-width: 400px) {
  .brand { font-size: .95rem; gap: 6px; }
  .brand img { width: 22px; height: 22px; }
}
