/* BrokerPulse black: night-trading-floor fintech. One accent (signal blue), one alarm (leak orange). */
:root {
  --bg: #050506;
  --bg-alt: #0B0B0E;
  --surface: #111115;
  --surface-sunk: #0B0B0E;
  --ink: #F4F5F7;
  --ink-2: #C4C9D2;
  --ink-3: #8E96A3;
  --line: #1F2128;
  --line-strong: #353843;
  --accent: #7C9CFF;
  --accent-ink: #A9BEFF;
  --accent-soft: #141B33;
  --leak: #FF7A50;
  --leak-bright: #FF6A3D;
  --leak-soft: #1D100A;
  --leak-line: #5A2A18;
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius: 18px;
  --radius-lg: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section--flush { border-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > .side { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 280px), 1fr)); }

.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.eyebrow--leak { color: var(--leak); }
.tag { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--leak); border: 1px solid var(--leak-line); background: var(--leak-soft); padding: 7px 12px; border-radius: 999px; }
.h1 { font-size: clamp(40px, 6.4vw, 74px); line-height: 1.01; letter-spacing: -0.035em; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.h3 { font-size: 26px; letter-spacing: -0.01em; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.leak { color: var(--leak); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #FFFFFF; color: var(--bg); box-shadow: 0 0 0 4px rgba(124,156,255,0.18); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card--sunk { background: var(--surface-sunk); }
.card--featured { background: linear-gradient(160deg, #16204A, #111115 70%); border-color: rgba(124, 156, 255, 0.45); }
.badge { font-size: 12px; font-weight: 700; background: var(--accent); color: var(--bg); padding: 3px 9px; border-radius: 999px; }

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 16px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__body { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px 104px; }
.hero__copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__cards { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.float { background: rgba(17, 17, 21, 0.72); border: 1px solid #2A2D36; border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.float--offset { margin-left: 28px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.bar-row__label { flex: 0 0 72px; }
.bar { height: 9px; border-radius: 4px; }
.bar--leak { background: var(--leak-bright); }
.bar--ok { background: #6F93FF; }

@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(170px); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.drip { animation: drip 2.8s ease-in infinite; }
.d2 { animation-delay: .9s; } .d3 { animation-delay: 1.8s; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
.floaty { animation: floaty 6s ease-in-out infinite; }
.f2 { animation-delay: 1.5s; } .f3 { animation-delay: 3s; }
@media (prefers-reduced-motion: reduce) { .drip, .pulse, .floaty { animation: none; } html { scroll-behavior: auto; } }

/* Rows list */
.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; gap: 18px; padding-block: 22px; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows .when { font-family: var(--font-mono); color: var(--leak); flex: 0 0 92px; }
.rows .stacked { flex-direction: column; gap: 4px; }
.rows strong { font-size: 21px; }

/* Steps */
.step { border-top: 1px solid var(--line-strong); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step--last { border-top: 2px solid var(--leak-bright); padding-top: 21px; }
.step__n { font-family: var(--font-mono); font-size: 40px; color: #3A3E49; }
.step--last .step__n { color: var(--leak); }
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 21px; }

/* AI + insider */
.duo { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.duo ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }

/* Pricing */
.price { font-family: var(--font-mono); font-size: 38px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 16px; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.price-group { display: flex; flex-direction: column; gap: 14px; }
.price-group__label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.extra { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.extra__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.offer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--leak-line); background: var(--leak-soft); border-radius: var(--radius); padding: 22px 26px; }

/* Sample preview */
.preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.finding { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }

/* Bio */
.bio { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.bio__photo { width: 120px; height: 120px; border-radius: 50%; background: #1F2128; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 13px; flex: 0 0 120px; }
.bio__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Closing */
.closing { position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); }
.closing .wrap { position: relative; padding-block: 110px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-3); }

/* Estimate page */
.picker { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.picker__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.picker__aside { flex: 1 1 340px; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
.choice { display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 22px; border-radius: var(--radius); text-align: left; color: var(--ink); font-size: 17px; font-family: inherit; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.choice[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.choice__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.choice__name { font-weight: 700; font-size: 18px; }
.choice__desc { color: var(--ink-3); font-size: 15px; }
.choice__price { font-family: var(--font-mono); font-size: 21px; margin-top: auto; }
.radio { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #4A4F5C; }
.choice[aria-pressed="true"] .radio { border: 6px solid var(--accent); }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; font-family: inherit; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 18px; border-radius: var(--radius); font-size: 17px; font-family: inherit; color: var(--ink); text-align: left; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.check[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.check[aria-disabled="true"] { cursor: default; opacity: 0.75; }
.check__box { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; border: 1.5px solid #4A4F5C; display: flex; align-items: center; justify-content: center; }
.check[aria-pressed="true"] .check__box, .check[aria-disabled="true"] .check__box { background: var(--accent); border-color: var(--accent); }
.check__box svg { display: none; }
.check[aria-pressed="true"] .check__box svg, .check[aria-disabled="true"] .check__box svg { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input { min-height: 46px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; font-size: 16px; font-family: inherit; color: var(--ink); width: 100%; }
.line-item { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.notice { border-radius: 12px; padding: 14px 16px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.error { color: var(--leak); font-size: 14px; }

/* Report page */
.report { background: var(--bg-alt); }
.report .wrap { max-width: 1100px; }
.warning { background: var(--leak-soft); border: 1px solid var(--leak-line); color: #FFB199; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.panel--dark { background: #0B0B0E; border-color: var(--leak-line); color: var(--ink); }
.panel--dark .soft { color: #C9D3E0; }
.panel--dark .gain { font-family: var(--font-mono); color: #9DB7FF; }
.panel--dark .label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px; color: #A9B6C8; text-transform: uppercase; }
.panel--dark ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 14px; }
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .mono { font-size: 28px; }
.leak-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 12px; }
.leak-head span:last-child { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.div-bars { display: flex; flex-direction: column; gap: 10px; }
.div-bar { display: flex; align-items: center; gap: 14px; }
.div-bar__id { flex: 0 0 90px; font-family: var(--font-mono); font-size: 14px; }
.div-bar__track { flex: 1; min-width: 0; display: flex; align-items: center; height: 24px; }
.div-bar__half { flex: 1; display: flex; height: 100%; align-items: center; }
.div-bar__half--neg { justify-content: flex-end; }
.div-bar__axis { width: 1.5px; height: 32px; background: #9AA4B2; }
.div-bar__val { flex: 0 0 70px; text-align: right; font-family: var(--font-mono); font-size: 14px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
th { text-align: left; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.6px; background: var(--surface-sunk); padding: 14px 16px; font-weight: 600; }
td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
td.bad { color: var(--leak); font-weight: 600; }
td.good { color: var(--accent); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--ink-2); }
.legend span { display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; }
.funnel-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.funnel-row__label { flex: 0 0 180px; display: flex; flex-direction: column; }
.funnel-row__bars { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.funnel-row__bars div { display: flex; align-items: center; gap: 10px; }
.funnel-row__bars .bar { height: 16px; }

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .float--offset { margin-left: 0; }
  .picker__aside { position: static; }
  .rows .when { flex-basis: 76px; }
}
.total .mono, .line-item .mono { white-space: nowrap; }
.line-item span:first-child { min-width: 0; }

/* ---------- Black edition extras ---------- */
::selection { background: rgba(124,156,255,0.35); }
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(124,156,255,0.7), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: -1; }
.glow:hover::before { opacity: 1; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124,156,255,0.07), transparent 55%); opacity: 0; transition: opacity .25s; pointer-events: none; z-index: -1; }
.glow:hover::after { opacity: 1; }
.draw { stroke-dasharray: 900; stroke-dashoffset: 0; }
.js .draw { animation: draw 2.4s ease-out .2s both; }
@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js .draw { animation: none; } }

/* Calculator */
.calc { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.calc__inputs { display: flex; flex-direction: column; gap: 26px; }
.calc__group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.calc__group h3 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.slider { display: flex; flex-direction: column; gap: 10px; }
.slider__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider__top label { font-weight: 600; }
.slider__val { font-family: var(--font-mono); font-size: 18px; color: var(--ink); white-space: nowrap; }
.slider__hint { font-size: 13px; color: var(--ink-3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), #23262E var(--fill, 50%)); outline: none; margin: 6px 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--accent); cursor: pointer; box-shadow: 0 0 0 6px rgba(124,156,255,0.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 4px solid var(--accent); cursor: pointer; }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.calc__out { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); background: radial-gradient(120% 90% at 100% 0%, #24120A 0%, #111115 55%); border: 1px solid var(--leak-line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.calc__big { font-family: var(--font-mono); font-size: clamp(44px, 6vw, 64px); letter-spacing: -0.04em; color: var(--leak); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #23262E; }
.calc__split span { display: block; height: 100%; transition: width .4s ease; }
.calc__legend { display: grid; gap: 10px; }
.calc__legend div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 24px; font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 26px; color: var(--accent); transition: transform .25s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--ink-2); max-width: 70ch; }

/* Ticker strip */
.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; background: #08080A; }
.ticker__track { display: inline-flex; gap: 48px; padding-block: 16px; animation: tick 40s linear infinite; }
.ticker__track span { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); }
.ticker__track b { color: var(--leak); font-weight: 500; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Finding labels */
.flag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid; margin-right: 4px; white-space: nowrap; align-self: flex-start; }
.flag--conf { color: var(--leak); border-color: var(--leak-line); background: var(--leak-soft); }
.flag--susp { color: #FFD27A; border-color: rgba(255, 210, 122, 0.35); background: rgba(255, 210, 122, 0.08); }
.flag--opp { color: var(--accent); border-color: rgba(124, 156, 255, 0.35); background: rgba(124, 156, 255, 0.08); }

/* Primary buttons inside the nav keep dark text */
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--bg); }

/* Footer */
.site-footer .foot-left { display: flex; flex-direction: column; gap: 4px; }
.site-footer .social { display: flex; gap: 10px; align-items: center; }
.site-footer .social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); transition: color .15s, border-color .15s; }
.site-footer .social a:hover { color: var(--accent); border-color: var(--accent); }
