/* Truecount, in svpn.com's own look: near-black surfaces, Geist, hairline borders, hacker-green accent. One narrow reading column: a form,
   then a ledger that reconciles Bluesky's number to the live-account number, then the growth chart. Chart series keep the data-viz
   palette's dark-mode steps (blue, orange, aqua), validated as a set against dark surfaces. */
@font-face { font-family: "Geist Sans"; src: url("/fonts/geist-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050807;
  --surface: #0b0f0c;
  --surface-2: #101710;
  --ink: #ffffff;
  --ink-2: #cdd8d2;
  --muted: #a0aca7;
  --grid: rgba(255, 255, 255, 0.07);
  --axis: rgba(255, 255, 255, 0.22);
  --border: rgba(255, 255, 255, 0.10);
  --accent: #00ff66;
  --on-accent: #06090b;
  --s1: #3987e5;   /* still-live followers */
  --s2: #d95926;   /* direct blocks */
  --s3: #199e70;   /* blocks through modlists */
  --bad: #ff6b78;
  --font: "Geist Sans", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); padding-inline: 16px; padding-block: 0 56px; }
.site { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.site a { color: var(--ink-2); text-decoration: none; font-family: var(--mono); font-size: 13px; }
.site a:hover { color: var(--accent); }
.site .mark { color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
main { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; min-width: 0; padding-top: 12px; }
h1 { font-size: 30px; line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; font-weight: 650; }
h2 { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-2); margin: 0 0 10px; font-weight: 600; }
p { margin: 0; }
.lede { color: var(--ink-2); max-width: 62ch; margin-top: 10px; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

form { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input[type=text] { flex: 1 1 240px; min-width: 0; font: inherit; padding: 11px 12px; border: 1px solid var(--axis); border-radius: 8px; background: var(--surface); color: var(--ink); }
input[type=text]::placeholder { color: var(--muted); }
input[type=text]:focus-visible { border-color: var(--accent); outline-offset: 0; }
button { font: inherit; font-weight: 600; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(1.08); }
button.ghost { background: transparent; color: var(--ink); border-color: var(--axis); }
button.ghost:hover:not(:disabled) { border-color: var(--ink-2); filter: none; }
button:disabled { cursor: default; background: var(--surface-2); border-color: var(--border); color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
label.opt { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
label.opt input { margin-top: 4px; accent-color: var(--accent); }
label.opt b { color: var(--ink); font-weight: 600; }
label.opt small { display: block; color: var(--muted); }
select { font: inherit; padding: 5px 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--axis); border-radius: 8px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; min-width: 0; }
.panel + .panel, .panel.stack { margin-top: 20px; }
.confirm { display: flex; flex-direction: column; gap: 12px; border-color: var(--axis); }
.confirm .row { gap: 10px; }
.working { display: flex; align-items: center; }
.dots { display: inline-flex; gap: 4px; margin-left: 8px; }
.dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .dots i { animation: tc-dot 1.2s ease-in-out infinite; }
  .dots i:nth-child(2) { animation-delay: .15s; }
  .dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes tc-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
}
#progress { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
#progress div { display: flex; justify-content: space-between; gap: 12px; }
#progress .done { color: var(--ink); }
#progress .num { font-family: var(--mono); font-size: 13px; }
#err { color: var(--bad); }

.hero { display: flex; flex-wrap: wrap; gap: 6px 36px; align-items: baseline; }
.hero .big { font-size: 54px; line-height: 1; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.hero .cap { color: var(--ink-2); font-size: 13px; display: block; margin-bottom: 6px; }
.hero .alt { font-size: 24px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.delta { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); margin-top: 12px; }
.delta strong { color: var(--bad); }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-2); }
.who img { width: 36px; height: 36px; border-radius: 50%; background: var(--grid); }

.ledger-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--grid); font-weight: 400; vertical-align: top; }
td.n, th.n { text-align: right; font-family: var(--mono); font-size: 14px; padding-left: 14px; white-space: nowrap; }
td small { display: block; color: var(--muted); font-size: 12.5px; max-width: 52ch; }
tr.total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; padding-top: 10px; }
tr.total td small { font-weight: 400; }
tr.minus td.n { color: var(--ink); }
tr.sub td { color: var(--ink-2); }
tr.sub td:first-child { padding-left: 16px; }
tr.gap td { border-bottom: 0; padding: 6px 0; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font-size: 13.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
#chartbox { position: relative; width: 100%; }
svg text { font-family: var(--font); fill: var(--muted); font-size: 11.5px; }
svg .lbl { fill: var(--ink); font-size: 12px; }
#tip { position: absolute; pointer-events: none; background: var(--surface-2); border: 1px solid var(--axis); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; color: var(--ink); min-width: 160px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
#tip .d { color: var(--ink-2); margin-bottom: 2px; }
#tip .r { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
#tip .r i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
details { margin-top: 12px; color: var(--ink-2); }
details summary { cursor: pointer; font-size: 13.5px; }
.method { color: var(--ink-2); font-size: 14px; display: flex; flex-direction: column; gap: 8px; max-width: 66ch; }
.method li { margin-left: 18px; }
.method ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.note { font-size: 13px; color: var(--muted); max-width: 66ch; }
.note.tight { margin-top: 10px; }
footer { max-width: 760px; margin: 40px auto 0; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
[hidden] { display: none !important; }
@media (max-width: 480px) { .hero .big { font-size: 42px; } h1 { font-size: 26px; } }
@media (prefers-reduced-motion: no-preference) { button { transition: filter .15s, border-color .15s; } }
