/* Leak Finder: dark with one orange (the chosen mock-up B), Manrope. */
:root {
  --bg: #09090b; --card: #141417; --card2: #1c1c21; --line: #26262c; --line2: #33333b;
  --ink: #fafafa; --muted: #a1a1aa; --faint: #8b8b94;
  --orange: #ff6a2b; --orange-ink: #1a0a02; --orange-soft: #2a160d;
  --good: #4ade80; --good-soft: #11251a; --bad: #ff8a65; --bad-soft: #2b1610; --warn: #fbbf24; --warn-soft: #2a2110;
  --grey-bar: #3f3f46;
  --r-card: 22px; --r-ctl: 12px; --gap: 16px;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; } h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { display: block; }
.num, .v, td, .tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 99; background: var(--card2); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }

/* brand mark: a drop (the leak) */
.mark { width: 30px; height: 30px; border-radius: 9px; flex: none; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c2.6 3.4 4.2 5.8 4.2 8a4.2 4.2 0 0 1-8.4 0c0-2.2 1.6-4.6 4.2-8z' fill='%231a0a02'/%3E%3C/svg%3E") center / 22px no-repeat; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line2); background: var(--card2); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; touch-action: manipulation; transition: background-color .15s ease, transform .12s ease; }
.btn:hover { background: #26262d; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn.primary:hover { background: #ff7d45; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--card2); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-ctl); border: 1px solid var(--line2); background: var(--card); cursor: pointer; touch-action: manipulation; }
.icon-btn:hover { background: var(--card2); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.input { height: 42px; width: 100%; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line2); background: var(--card); color: var(--ink); }
.input::placeholder { color: var(--faint); }
.field { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.field small { font-weight: 500; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-ctl); background: var(--card); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; touch-action: manipulation; }
.seg button[aria-pressed="true"] { background: var(--card2); color: var(--ink); }
.seg button:hover { color: var(--ink); }

/* shell */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid var(--line); overflow: auto; }
.side .brand { padding: 0 6px 6px; }
.side .close-menu { margin-left: auto; display: none; }
.site-pick { margin: 14px 0 12px; }
.site-pick .input { height: 38px; background: var(--card); }
.nav { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--muted); font-weight: 600; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; touch-action: manipulation; transition: background-color .15s ease, color .15s ease; }
.nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav:hover { color: var(--ink); background: var(--card); }
.nav[aria-current="page"] { color: var(--ink); background: var(--card2); }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--orange); color: var(--orange-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.nav .count:empty { display: none; }
.side-bottom { margin-top: auto; display: grid; gap: 4px; }
.main-col { min-width: 0; }
main { padding: 28px 32px 48px; max-width: 1480px; outline: none; }
.phonebar { display: none; }

/* page head */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head small { color: var(--muted); font-weight: 600; font-size: 13px; }
.head h1 { margin-top: 4px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.head .lead { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.head .lead b { color: var(--ink); font-weight: 700; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumb { color: var(--muted); font-weight: 600; font-size: 13px; display: flex; gap: 6px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.demo { margin: -6px 0 18px; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }

/* grid and cards */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid + .grid { margin-top: var(--gap); }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; min-width: 0; }
.card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card .link { color: var(--orange); font-weight: 700; font-size: 14px; white-space: nowrap; }
.card .link:hover { text-decoration: underline; text-underline-offset: 3px; }
.fill { display: flex; flex-direction: column; }
.fill .foot { margin-top: auto; padding-top: 14px; }

/* money hero */
.money { background: var(--orange); border: 0; color: var(--orange-ink); display: flex; flex-direction: column; gap: 10px; }
.money .q { font-weight: 700; opacity: .8; }
.money .v { font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.money .v small { font-size: 20px; font-weight: 700; opacity: .75; margin-left: 8px; letter-spacing: 0; }
.money p { font-weight: 600; max-width: 40ch; }
.money .chip { align-self: flex-start; margin-top: auto; background: rgba(0, 0, 0, .14); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.money .chip.cta { background: var(--orange-ink); color: var(--orange); }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.mini { display: flex; flex-direction: column; gap: 8px; }
.mini .q { color: var(--muted); font-weight: 600; font-size: 14px; }
.mini .v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mini .v small { font-size: 16px; color: var(--muted); font-weight: 700; margin-left: 2px; }
.mini .hint { color: var(--muted); font-size: 13px; margin-top: auto; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.n { background: var(--card2); color: var(--muted); }
.info { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--faint); color: var(--faint); display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; margin-left: 6px; cursor: help; vertical-align: 1px; }

/* charts */
.chart { position: relative; }
.chart svg { width: 100%; overflow: visible; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .guide { stroke: var(--line2); stroke-width: 1; }
.tip-box { position: fixed; z-index: 60; pointer-events: none; min-width: 180px; max-width: 280px; padding: 12px 14px; border-radius: 14px; background: #202026; border: 1px solid var(--line2); box-shadow: 0 12px 32px rgba(0,0,0,.45); font-size: 13px; }
.tip-box b { display: block; font-size: 14px; margin-bottom: 6px; }
.tip-box .r { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.tip-box .r span:first-child { color: var(--muted); }
.tip-box .r span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

/* fix-first list */
.fix-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.fix-item:first-of-type { border-top: 0; padding-top: 0; }
.fix-item .n1 { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--orange-soft); color: var(--orange); }
.fix-item.ok .n1 { background: var(--good-soft); color: var(--good); }
.fix-item b { display: block; font-size: 15px; line-height: 1.35; }
.fix-item p { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* sources with logos */
.src { display: grid; grid-template-columns: 40px minmax(0, 1.2fr) minmax(80px, 1fr) 84px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.src:first-of-type { border-top: 0; padding-top: 0; }
.logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.logo svg { width: 20px; height: 20px; fill: #fff; }
.logo.generic svg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.src .name b { display: block; font-size: 15px; } .src .name span { font-size: 13px; color: var(--muted); }
.track { height: 10px; border-radius: 99px; background: var(--card2); overflow: hidden; display: flex; }
.track i { display: block; height: 100%; background: var(--grey-bar); }
.track em { display: block; height: 100%; background: var(--orange); }
.src .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.src .n small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* funnel / steps */
.step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 9px 0; }
.step b { font-weight: 600; font-size: 14px; }
.step .val { font-weight: 800; font-variant-numeric: tabular-nums; }
.step .val small { color: var(--muted); font-weight: 600; margin-left: 6px; }
.step .bar { grid-column: 1 / -1; height: 26px; border-radius: 9px; background: var(--card2); overflow: hidden; }
.step .bar i { display: block; height: 100%; min-width: 4px; border-radius: 9px; background: var(--orange); }
.step.slim .bar { height: 8px; }
.step-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* lists */
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; padding-top: 0; }
.row .l { min-width: 0; }
.row .l b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .l span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.row:hover b { color: var(--orange); }
.row .r { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .r small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.live-row .l b { white-space: normal; }
.empty { padding: 20px; border: 1px dashed var(--line2); border-radius: 14px; color: var(--muted); text-align: center; font-size: 14px; }
.err { padding: 14px; border-radius: 14px; background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.err button { margin-left: 8px; background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
.skel { background: var(--card2); border-radius: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }

/* page detail: how far people read */
.read-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 64px; gap: 16px; align-items: center; padding: 9px 0; }
.read-row .h { min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.read-row .h small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.read-row .bar { height: 12px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.read-row .bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.read-row .pct { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.read-row.buy { margin: 6px 0; padding: 10px 12px; border-radius: 14px; background: var(--orange-soft); }
.read-row.buy .h { color: var(--orange); }
.read-row.top .h, .read-row.bottom .h { color: var(--muted); }
.explain { font-size: 13px; color: var(--muted); background: var(--card2); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.explain b { color: var(--ink); }

/* sign in */
.signin { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.signin-card { width: min(400px, 100%); display: grid; gap: 16px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.signin-card h1 { font-size: 24px; font-weight: 800; }
.error-text { color: var(--bad); font-size: 13px; min-height: 18px; margin: -6px 0; }

/* dialog */
dialog { width: min(540px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line2); border-radius: var(--r-card); background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.6); overscroll-behavior: contain; }
dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog-body { display: grid; gap: 18px; padding: 22px 24px 26px; }
.dialog-body header { display: flex; justify-content: space-between; align-items: center; }
.dialog-body h2 { font-size: 20px; font-weight: 800; }
.joined { display: flex; gap: 8px; }
.joined .input { font-size: 13px; min-width: 0; }
.joined .btn { height: 42px; }

/* tour */
.tour { position: fixed; inset: 0; z-index: 80; }
.tour-spot { position: fixed; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72); outline: 2px solid var(--orange); outline-offset: 4px; transition: all .3s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 32px)); padding: 20px; border-radius: 20px; background: #1f1f25; border: 1px solid var(--line2); box-shadow: 0 24px 64px rgba(0,0,0,.6); transition: top .3s cubic-bezier(.22,1,.36,1), left .3s cubic-bezier(.22,1,.36,1); }
.tour-step { font-size: 12px; font-weight: 800; color: var(--orange); }
.tour-card h2 { font-size: 19px; font-weight: 800; margin: 4px 0 6px; }
.tour-card p#tour-text { color: #d4d4d8; font-size: 14px; }
.tour-actions { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
.tour-actions .spacer { flex: 1; }
.tour-actions .btn { height: 36px; padding: 0 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* tablet */
@media (max-width: 1180px) {
  .s8, .s7, .s6, .s5, .s4 { grid-column: span 12; }
}
/* phone */
@media (max-width: 860px) {
  .app { display: block; }
  .side { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; background: var(--bg); transform: translateX(-100%); transition: transform .25s cubic-bezier(.22,1,.36,1); }
  .side.open { transform: none; }
  .side .close-menu { display: inline-grid; }
  .nav { height: 48px; }
  .phonebar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px; position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
  .brand.small { font-size: 16px; }
  .brand.small .mark { width: 26px; height: 26px; background-size: 18px; }
  main { padding: 18px 16px 40px; }
  .head h1 { font-size: 24px; }
  .head-actions { width: 100%; }
  .head-actions .seg { flex: 1; } .head-actions .seg button { flex: 1; }
  .minis { grid-template-columns: 1fr 1fr; }
  .minis .mini:last-child { grid-column: span 2; }
  .card { padding: 18px; border-radius: 18px; }
  .src { grid-template-columns: 40px minmax(0, 1fr) 72px; }
  .src .track { display: none; }
  .split { grid-template-columns: 1fr; gap: 16px; }
  .read-row { grid-template-columns: minmax(0, 1fr) 80px 48px; gap: 10px; }
}
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.stack > .card:last-child { flex: 1; }
@media (max-width: 1180px) { .stack { grid-column: span 12; } }
