/* PropFirmHub — Public site styles */
:root {
  --bg-0: #08101c;
  --bg-1: #0f1524;
  --bg-2: #141d33;
  --line: rgba(255,255,255,0.08);
  --text: #e6edf7;
  --dim: #94a3b8;
  --mute: #64748b;
  --brand: #22d3ee;
  --accent: #f97316;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background: var(--bg-0); color: var(--text); font-family:'Space Grotesk',system-ui,-apple-system,sans-serif; font-size:16px; line-height:1.6; }
a { color: var(--brand); text-decoration: none; transition: color 0.15s; }
a:hover { color: #67e8f9; }
h1,h2,h3,h4 { line-height:1.15; letter-spacing:-0.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3vw, 32px); margin: 40px 0 16px; }
h3 { font-size: 20px; margin: 20px 0 10px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.dim { color: var(--dim); }
.mono { font-family: 'JetBrains Mono', monospace; }
.mt-2 { margin-top: 8px; }
.hl { color: var(--brand); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.badge.accent { background: var(--accent); color: #1a0e00; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(8,16,28,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #0891b2); color: #001018; font-weight: 700; font-size: 12px; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--dim); font-size: 14px; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { background: transparent; border: 1px solid var(--line); color: var(--dim); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); border-color: var(--brand); }
.btn-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; background: var(--brand); color: #001018 !important; font-weight: 700; cursor: pointer; border: 0; transition: 0.15s; }
.btn-cta:hover { background: #67e8f9; transform: translateY(-1px); }
.btn-cta.xl { padding: 14px 22px; font-size: 15px; }
.btn-ghost { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-mini { display: inline-block; padding: 6px 12px; border-radius: 8px; background: rgba(34,211,238,0.10); color: var(--brand); font-size: 13px; font-weight: 600; }
.btn-mini:hover { background: var(--brand); color: #001018; }

/* Hero */
.hero { padding: 80px 0 60px; background: radial-gradient(ellipse at 20% 20%, rgba(34,211,238,0.10), transparent 55%), radial-gradient(ellipse at 80% 80%, rgba(249,115,22,0.08), transparent 55%); }
.hero-copy { max-width: 780px; }
.eyebrow { display: inline-block; padding: 6px 14px; background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.3); color: var(--brand); border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; }
.hero .lead { font-size: 18px; color: var(--dim); max-width: 640px; margin: 12px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 28px; color: var(--brand); }
.hero-stats span { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.6px; }

/* Sections */
.section { padding: 56px 0; }
.section.band { background: linear-gradient(to bottom, transparent, var(--bg-1), transparent); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.section-head h2 { margin: 0; }
.see-all { font-size: 14px; color: var(--brand); }

/* Firm cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.firm-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--text); transition: 0.2s; display: block; }
.firm-card:hover { border-color: var(--brand); transform: translateY(-3px); color: var(--text); }
.fc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fc-head img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.fc-logo-blank { width: 48px; height: 48px; border-radius: 10px; background: var(--bg-2); }
.fc-name { font-weight: 600; font-size: 16px; }
.fc-tagline { font-size: 12px; color: var(--dim); }
.fc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-metrics > div { display: flex; flex-direction: column; }
.fc-metrics span { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.5px; }
.fc-metrics b { font-size: 16px; margin-top: 2px; }

/* Tables */
.table-lb { width: 100%; border-collapse: collapse; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-lb th { text-align: left; padding: 12px 16px; background: var(--bg-2); font-size: 11px; text-transform: uppercase; color: var(--mute); letter-spacing: 0.5px; font-weight: 500; border-bottom: 1px solid var(--line); }
.table-lb td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table-lb tr:last-child td { border-bottom: 0; }
.table-lb td.num, .table-lb th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-lb .rank { color: var(--mute); font-weight: 600; }
.table-lb.kv th { width: 220px; }

/* Compare table */
.compare-wrap { overflow-x: auto; margin-top: 20px; }
.table-compare { min-width: 600px; width: 100%; border-collapse: collapse; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); }
.table-compare th, .table-compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; }
.table-compare thead th { background: var(--bg-2); font-size: 14px; }
.table-compare tbody th { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.compare-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* Firm page */
.firm-cover { height: 240px; background-size: cover; background-position: center; opacity: 0.35; margin-bottom: -60px; }
.firm-page .crumbs { padding-top: 20px; }
.firm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 30px; padding: 32px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); }
.firm-brand { display: flex; gap: 16px; align-items: flex-start; }
.firm-brand img { width: 80px; height: 80px; border-radius: 12px; }
.badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 24px 0; gap: 20px; }
.stat-strip > div { display: flex; flex-direction: column; }
.stat-strip span { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-strip b { font-size: 22px; color: var(--brand); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } .firm-head { flex-direction: column; } }
.pros li, .cons li { padding: 6px 0; }
.pros li { color: #6ee7b7; }
.cons li { color: #fca5a5; }
.prose { font-size: 16px; line-height: 1.75; color: #d1d5db; }
.prose h2, .prose h3 { color: var(--text); }
.prose p { margin: 14px 0; }
.prose a { color: var(--brand); }
.prose ul, .prose ol { padding-left: 24px; }
.prose img { border-radius: 10px; margin: 20px 0; }
.prose blockquote { border-left: 4px solid var(--brand); padding-left: 16px; color: var(--dim); margin: 20px 0; }

/* FAQ */
.faq details { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 8px; cursor: pointer; }
.faq summary { font-weight: 600; list-style: none; }
.faq summary::marker { display: none; }
.faq summary::before { content: '+ '; color: var(--brand); font-weight: 700; }
.faq details[open] summary::before { content: '- '; }

/* Coupons */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.coupon { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.coupon.inline { text-align: left; display: flex; align-items: center; gap: 16px; }
.coupon-firm { font-size: 13px; color: var(--dim); }
.coupon-code { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: var(--brand); padding: 8px 12px; border: 1px dashed var(--brand); border-radius: 8px; display: inline-block; margin: 8px 0; }
.coupon-desc { font-size: 13px; color: var(--dim); margin-bottom: 10px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--text); transition: 0.15s; display: block; }
.post-card:hover { border-color: var(--brand); color: var(--text); }
.post-card h3 { margin: 8px 0; font-size: 18px; }
.post-meta, .mini-meta { color: var(--mute); font-size: 12px; margin: 8px 0; }
.blog-post .hero-img { border-radius: 12px; margin: 24px 0; }
.mini-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 8px; display: block; color: var(--text); }
.mini-card:hover { border-color: var(--brand); color: var(--text); }
.mini-title { font-weight: 600; margin-bottom: 4px; }
.tags { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.tag { padding: 4px 12px; background: var(--bg-2); border-radius: 999px; font-size: 12px; color: var(--dim); }

/* Review */
.review-badge { display: inline-block; padding: 6px 14px; background: rgba(34,211,238,0.10); color: var(--brand); border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.review-badge b { font-size: 20px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 20px 0; }
.screenshot-grid figure { margin: 0; }
.screenshot-grid img { border-radius: 8px; }
.screenshot-grid figcaption { font-size: 12px; color: var(--mute); margin-top: 6px; }
.update-log { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; color: var(--dim); font-size: 13px; }
.update-log ul { list-style: none; padding: 0; }
.update-log time { color: var(--brand); margin-right: 8px; }

/* CTA box */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(249,115,22,0.05)); border: 1px solid var(--brand); border-radius: 14px; padding: 24px 28px; margin: 32px 0; }
@media (max-width: 700px) { .cta-box { flex-direction: column; text-align: center; } }

/* Newsletter */
.newsletter { text-align: center; padding: 60px 20px; background: linear-gradient(to bottom, transparent, var(--bg-1)); }
.newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 24px auto 8px; }
.newsletter-form input { flex: 1; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; }
.newsletter-msg { color: #6ee7b7; font-size: 13px; margin-top: 8px; min-height: 20px; }

/* Search overlay */
[hidden] { display: none !important; }
.search-overlay { position: fixed; inset: 0; background: rgba(8,16,28,0.9); backdrop-filter: blur(10px); z-index: 100; display: grid; place-items: start center; padding: 80px 20px; }
.search-box { width: 100%; max-width: 640px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.search-box input { width: 100%; padding: 16px 20px; border: 0; background: transparent; color: var(--text); font-size: 18px; outline: none; }
.search-results, .search-results-page { display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; padding: 8px; }
.hit { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px; border-radius: 8px; align-items: center; color: var(--text); }
.hit:hover { background: var(--bg-2); color: var(--text); }
.hit b { grid-column: 2; font-weight: 600; }
.hit em { grid-column: 2; font-style: normal; color: var(--dim); font-size: 13px; }
.kind { grid-row: 1 / span 2; text-align: center; padding: 4px 8px; border-radius: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-2); color: var(--brand); font-weight: 700; }
.search-input { width: 100%; padding: 14px 18px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line); color: var(--text); font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 0; background: var(--bg-1); }
.foot-list { list-style: none; padding: 0; margin: 12px 0 0; }
.foot-list li { padding: 4px 0; }
.foot-list a { color: var(--dim); font-size: 14px; }
.foot-list a:hover { color: var(--brand); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding: 0 0 60px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 20px 0; color: var(--mute); font-size: 13px; text-align: center; }

.crumbs { color: var(--mute); font-size: 13px; margin: 20px 0 10px; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--brand); }
