/* Prop Firm Rules — shared stylesheet. Dark theme matching the FuturesEdge
   apps: #0b1220 background, #f8fafc text, #818cf8 accent. */

:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --border: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #818cf8;
  --accent-ink: #0b1220;
  --win: #4ade80;
  --loss: #f87171;
  --cta-green: #34d399;
  --cta-green-ink: #062b1f;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.site-header .wrap {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
}
.site-nav a { color: var(--muted); font-weight: 600; }
.site-nav a:hover { color: var(--text); }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 10px; }
h2 { font-size: 20px; margin: 34px 0 12px; border-top: 1px solid var(--border); padding-top: 24px; }
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 16px; margin: 22px 0 8px; color: var(--text); }
p { color: var(--muted); margin: 0 0 14px; }
.lede { font-size: 16px; color: var(--text); }
ul, ol { color: var(--muted); padding-left: 20px; }
li { margin-bottom: 6px; }
strong { color: var(--text); }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 0.9em; }

/* ── Verified badge ─────────────────────────────────────────────────────── */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--win);
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  padding: 6px 14px;
  margin: 6px 0 20px;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th:last-child, td:last-child { white-space: normal; }
thead th { background: var(--surface); color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(129, 140, 248, 0.06); }
td.num, th.num { text-align: right; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.card h3 { margin-top: 0; }

/* ── Firm-page CTA cards (affiliate + app cross-promo) ─────────────────── */
.cta-card {
  border-radius: 16px;
  border-width: 1px;
  border-style: solid;
  padding: 24px 26px;
  margin: 26px 0;
}
.cta-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--text);
}
.cta-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.cta-note {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.cta-card--affiliate {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.16), rgba(129, 140, 248, 0.04));
  border-color: rgba(129, 140, 248, 0.45);
}
.cta-card--app {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.04));
  border-color: rgba(52, 211, 153, 0.45);
}

.cta-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 16px 30px;
  text-align: center;
}
.cta-btn:hover { text-decoration: none; }

.cta-card--affiliate .cta-btn {
  background: var(--accent);
  color: var(--accent-ink);
}
.cta-card--affiliate .cta-btn:hover { background: #949ffb; }

.cta-card--app .cta-btn {
  background: var(--cta-green);
  color: var(--cta-green-ink);
}
.cta-card--app .cta-btn:hover { background: #55dcaa; }

@media (max-width: 480px) {
  .cta-btn { display: block; width: 100%; }
}

/* ── Firm directory (index) ────────────────────────────────────────────── */
.firm-grid { display: grid; gap: 10px; margin-bottom: 24px; }
.firm-link-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px;
}
.firm-link-row .market-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--muted); border: 1px solid var(--border); border-radius: 20px;
  padding: 2px 10px; margin-left: 8px;
}

/* ── Compare "which suits which" ───────────────────────────────────────── */
.suits-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 640px) {
  .suits-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 32px 0 50px;
}
.disclosure { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 720px; }

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.footer-brand { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.footer-tagline { font-size: 13px; color: var(--muted); margin: 0; max-width: 220px; }
.footer-col h4 {
  margin: 0 0 10px; font-size: 11px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-col a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }

.notes-list li { font-size: 13.5px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 13px; font-weight: 600; }

/* ── Home hero ──────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 20px 0 36px; }
.hero h1 { font-size: 30px; line-height: 1.25; margin: 0 0 16px; }
.hero .lede { max-width: 560px; margin: 0 auto 26px; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 0 auto; }
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; max-width: none; justify-content: center; }
}
.btn-primary, .btn-secondary {
  display: inline-block; font-weight: 700; font-size: 14.5px;
  border-radius: 10px; padding: 13px 22px; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #949ffb; text-decoration: none; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }

/* ── Product / link grids (home product cards, guides, section indexes) ── */
.product-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column;
}
.product-card h3 { margin: 0 0 6px; font-size: 16px; }
.product-card p { flex: 1; font-size: 13.5px; margin-bottom: 16px; }
.product-card .tag {
  display: inline-block; align-self: flex-start; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; margin-bottom: 12px;
}
.product-card .tag.soon { color: var(--muted); }
.product-card a.card-link { font-size: 13.5px; font-weight: 700; color: var(--accent); }

.link-grid, .link-grid.firm-grid { display: grid; gap: 10px; margin-bottom: 24px; }
.link-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px;
}
.link-row .link-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.link-row strong { font-size: 14.5px; }

/* ── Why / feature triptych (home) ─────────────────────────────────────── */
.why-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 640px) {
  .why-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.why-grid h4 { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.why-grid p { font-size: 13.5px; margin: 0; }

/* ── App pages: feature list + screenshots + stat pills ────────────────── */
.feature-list { list-style: none; padding: 0; margin: 0 0 20px; }
.feature-list li {
  padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--win); font-weight: 700; }
.feature-list li span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.screenshot-row { display: flex; gap: 12px; overflow-x: auto; margin: 8px 0 24px; padding-bottom: 4px; }
.screenshot-placeholder {
  flex: 0 0 150px; height: 300px; background: var(--surface);
  border: 1px dashed var(--border); border-radius: 18px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 12px; padding: 14px;
}

.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 24px; }
.stat-pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; font-size: 12.5px; color: var(--muted); min-width: 110px;
}
.stat-pill b { display: block; font-size: 17px; color: var(--accent); font-weight: 800; margin-bottom: 2px; }

.cta-card--soon { background: linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.03));
  border-color: var(--border); }
.cta-card--soon .cta-btn { background: var(--border); color: var(--muted); pointer-events: none; }
