/* ============================================================================
   VIATOR MS - application stylesheet

   No build step, no framework, no CDN. One file, plain CSS, served from
   public/. A buyer who wants a different look edits this file and nothing
   else, which is the whole reason it is not inlined into the layout.

   The aesthetic is a private ledger in a dark room: near-black with a green
   cast, one mint accent, hairline rules, figures in a monospaced face so the
   columns line up, and a fine grain over everything. Nothing glows for the
   sake of glowing.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
    color-scheme: dark;

    /* Ground */
    --bg: #0a0b0a;
    --bg-elev: #0e100f;
    --surface: rgba(255, 255, 255, 0.028);
    --surface-2: rgba(255, 255, 255, 0.055);
    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.17);

    /* Ink */
    --text: #eef2ef;
    --muted: #a7afa9;
    --faint: #767e79;

    /* One accent. Mint, not neon, and never used for large fills. */
    --accent: #7ee2b8;
    --accent-dim: #4fae89;
    --accent-soft: rgba(126, 226, 184, 0.10);
    --accent-ink: #05110c;

    --ok: #7ee2b8;
    --warn: #edc07a;
    --danger: #ff9382;

    --ok-soft: rgba(126, 226, 184, 0.10);
    --warn-soft: rgba(237, 192, 122, 0.10);
    --danger-soft: rgba(255, 147, 130, 0.10);

    --radius: 12px;
    --radius-sm: 8px;
    --line-w: 1px;

    --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
            "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

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

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.006em;
}

/* Ambient light: one soft pool at the top, no second colour. */
body::before {
    content: "";
    position: fixed;
    inset: -30vh 0 auto 0;
    height: 90vh;
    background:
        radial-gradient(60% 55% at 50% 0%, rgba(126, 226, 184, 0.10), transparent 70%),
        radial-gradient(40% 40% at 85% 8%, rgba(126, 226, 184, 0.045), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Film grain. This is the detail that separates "dark theme" from "expensive". */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.038;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---- top bar ------------------------------------------------------------ */

header.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(10, 11, 10, 0.72);
    backdrop-filter: blur(14px) saturate(120%);
    border-bottom: var(--line-w) solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }

.brand {
    font-size: 17px; font-weight: 640; letter-spacing: -0.03em;
    color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.brand:hover { text-decoration: none; }
.brand span {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    color: var(--accent); border: 1px solid rgba(126, 226, 184, 0.28);
    border-radius: 4px; padding: 2px 5px; transform: translateY(-1px);
}

nav.main { display: flex; gap: 2px; }
nav.main a {
    padding: 7px 12px; border-radius: var(--radius-sm);
    color: var(--muted); font-size: 13.5px; font-weight: 500;
    transition: color 140ms var(--ease), background 140ms var(--ease);
}
nav.main a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
nav.main a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

.spacer { flex: 1; }
.who { font-size: 13px; color: var(--muted); }
.who b { color: var(--text); font-weight: 560; }
.logout { margin: 0; }

/* On a phone the bar becomes two rows: mark and account actions, then a
   scrollable strip of sections. Squeezing five links into one row pushes the
   last one off the screen, which is what it did before this rule existed. */
@media (max-width: 880px) {
    .topbar .wrap {
        gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 9px;
        flex-wrap: wrap; row-gap: 8px;
    }
    .brand { order: 1; }
    .spacer { order: 2; }
    .logout { order: 3; flex: none; }
    .logout .link { white-space: nowrap; }
    .who { order: 3; font-size: 12px; }
    nav.main {
        order: 4; flex-basis: 100%; margin-left: -9px;
        overflow-x: auto; scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    nav.main::-webkit-scrollbar { display: none; }
    nav.main a { white-space: nowrap; padding: 7px 9px; }
}

/* ---- page -------------------------------------------------------------- */

main { padding: 56px 0 88px; }

h1 {
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.02; letter-spacing: -0.04em;
    margin: 0 0 10px; font-weight: 620;
    text-wrap: balance;
}
h2 {
    font-size: 18px; line-height: 1.3; letter-spacing: -0.02em;
    margin: 0 0 12px; font-weight: 600;
}
h3 { font-size: 14.5px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 34px; font-size: 15.5px; max-width: 62ch; line-height: 1.65; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: ""; width: 26px; height: 1px; background: var(--line-strong);
}

/* ---- surfaces ---------------------------------------------------------- */

.card {
    position: relative;
    background: var(--surface);
    border: var(--line-w) solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transition: border-color 200ms var(--ease), transform 200ms var(--ease), background 200ms var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card > h2:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.plain { background: transparent; border: 0; padding: 0; box-shadow: none; }
.card.tint {
    background: linear-gradient(180deg, rgba(126, 226, 184, 0.055), transparent 70%), var(--surface);
    border-color: rgba(126, 226, 184, 0.16);
}

.section { border-top: var(--line-w) solid var(--line); padding-top: 34px; margin-top: 46px; }
.section > h2 { margin-bottom: 4px; }
.section > .sub { margin-bottom: 22px; }

.grid { display: grid; gap: 16px; align-items: start; }
.grid + .grid { margin-top: 16px; }
.grid > .card { margin-bottom: 0; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }

/* ---- figures ----------------------------------------------------------- */

.stat .n, .money, .mono, td.n, th.n {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.stat .n {
    font-size: 26px; font-weight: 500; letter-spacing: -0.045em;
    line-height: 1.15; margin-top: 6px;
}
.stat .l {
    font-family: var(--mono);
    font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--faint); font-weight: 500;
}
.stat .meta { font-size: 12.5px; color: var(--faint); margin-top: 7px; letter-spacing: 0; }

/* Four figures read as one instrument panel, divided by hairlines, not as
   four floating boxes. */
.grid.c4 > .stat {
    background: transparent; border: 0; border-left: var(--line-w) solid var(--line);
    border-radius: 0; padding: 2px 0 2px 20px; margin: 0; box-shadow: none;
}
.grid.c4 > .stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 900px) {
    .grid.c4 > .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .grid.c4 > .stat:nth-child(-n+2) { padding-bottom: 18px; border-bottom: var(--line-w) solid var(--line); }
}
@media (max-width: 720px) {
    .grid.c4 > .stat { border-left: 0; padding-left: 0; border-top: var(--line-w) solid var(--line); padding-top: 16px; }
    .grid.c4 > .stat:first-child { border-top: 0; padding-top: 2px; }
    .grid.c4 > .stat:nth-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}

/* ---- pills ------------------------------------------------------------- */

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 8px; border-radius: 999px;
    font-family: var(--mono); font-size: 10px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.9;
    border: 1px solid transparent;
}
.pill::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: currentColor; flex: none;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(126, 226, 184, 0.22); }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(237, 192, 122, 0.22); }
.pill.bad { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 147, 130, 0.22); }
.pill.mute { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.pill.info { background: var(--accent-soft); color: var(--accent); border-color: rgba(126, 226, 184, 0.22); }
.pill.plain::before { display: none; }

/* ---- forms ------------------------------------------------------------- */

label {
    display: block; font-size: 11.5px; font-weight: 560; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.hint { font-weight: 400; color: var(--faint); text-transform: none; letter-spacing: 0; }

/* A checkbox label is a sentence, not a field caption. Without this it picks
   up the uppercase treatment above and reads like a section heading. */
label:has(input[type=checkbox]) {
    text-transform: none; letter-spacing: 0;
    font-size: 13.5px; font-weight: 450; color: var(--muted);
    display: flex; align-items: center; gap: 8px; margin-bottom: 0;
}
input[type=checkbox] {
    appearance: none; width: 16px; height: 16px; flex: none;
    border: 1px solid var(--line-strong); border-radius: 4px;
    background: rgba(0, 0, 0, 0.3); cursor: pointer;
    transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
input[type=checkbox]:checked {
    background: var(--accent); border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-5' fill='none' stroke='%2305110c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 12px; background-position: center; background-repeat: no-repeat;
}

input[type=text], input[type=email], input[type=password],
input[type=number], input[type=search], select, textarea {
    width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
    border: var(--line-w) solid var(--line); border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.28); color: var(--text);
    transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
input[type=number] { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
textarea { resize: vertical; min-height: 84px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(126, 226, 184, 0.12);
    background: rgba(0, 0, 0, 0.36);
}
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.err { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* ---- buttons ----------------------------------------------------------- */

button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 17px; font-size: 13.5px; font-weight: 580; letter-spacing: -0.005em;
    font-family: inherit; border-radius: var(--radius-sm);
    border: 1px solid rgba(126, 226, 184, 0.55);
    background: var(--accent); color: var(--accent-ink);
    cursor: pointer; line-height: 1.3; white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 140ms var(--ease), filter 140ms var(--ease),
                background 140ms var(--ease), border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
button:hover, .btn:hover { filter: brightness(1.06); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 6px 20px -8px rgba(126, 226, 184, 0.55); }
button:active, .btn:active { transform: scale(0.985); }

.btn.ghost {
    background: var(--surface-2); color: var(--text);
    border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); filter: none; box-shadow: none; }
.btn.small, button.small { padding: 7px 12px; font-size: 12.5px; }

button.link {
    background: none; border: 0; box-shadow: none; color: var(--muted);
    padding: 0; font-size: 12.5px; font-weight: 500; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
button.link:hover { color: var(--text); filter: none; box-shadow: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- tables ------------------------------------------------------------ */

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
    text-align: left; font-family: var(--mono);
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--faint); font-weight: 500;
    padding: 0 12px 10px; border-bottom: var(--line-w) solid var(--line-strong);
    white-space: nowrap;
}
td { padding: 13px 12px; border-bottom: var(--line-w) solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 120ms var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, 0.022); }

@media (max-width: 720px) {
    .card { overflow-x: auto; }
    table { min-width: 520px; font-size: 13px; }
    th, td { padding: 11px 8px; }
}

/* A list that still reads at 390px. A three-column table has to scroll on a
   phone, and the column that scrolls out of view is the last one: the result.
   This stacks instead, so the pass or fail is never the thing you have to go
   looking for. */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
    display: flex; align-items: baseline; gap: 12px;
    padding: 10px 0; border-bottom: var(--line-w) solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist .ck { flex: 1 1 auto; min-width: 0; }
.checklist .ckv { flex: none; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.checklist .pill { flex: none; }

@media (max-width: 620px) {
    .checklist li { flex-wrap: wrap; row-gap: 3px; }
    .checklist .ck { flex-basis: 100%; }
    .checklist .ckv { flex: 1 1 auto; overflow-wrap: anywhere; }
}

code, .mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.01em; }
code { background: var(--surface-2); border: var(--line-w) solid var(--line); padding: 1px 6px; border-radius: 4px; }

.codebox {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0, 0, 0, 0.34);
    border: var(--line-w) solid var(--line);
    border-radius: var(--radius-sm); padding: 11px 13px;
}
.codebox .mono { flex: 1; overflow-wrap: anywhere; color: var(--text); }

/* ---- alerts ------------------------------------------------------------ */

.alert {
    position: relative;
    border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; font-size: 14px;
    border: var(--line-w) solid var(--line);
    border-left-width: 2px;
    background: var(--surface);
}
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(126, 226, 184, 0.22); }
.alert.bad { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 147, 130, 0.26); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(237, 192, 122, 0.24); }
.alert.info { color: var(--text); border-left-color: var(--accent-dim); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert b { color: inherit; }

/* ---- matrix tree ------------------------------------------------------- */

.tree { font-size: 13px; }
.tree ul { list-style: none; margin: 0; padding-left: 22px; position: relative; }
.tree > ul { padding-left: 0; }
.tree li { position: relative; padding: 3px 0; }
.tree ul ul li::before {
    content: ""; position: absolute; left: -14px; top: 0; bottom: 0;
    border-left: var(--line-w) solid var(--line);
}
.tree ul ul li:last-child::before { bottom: auto; height: 18px; }
.node {
    display: inline-flex; align-items: baseline; gap: 8px;
    padding: 5px 10px; border: var(--line-w) solid var(--line);
    border-radius: 6px; background: var(--surface);
}
.node .pos {
    font-family: var(--mono); font-size: 10px; color: var(--faint);
    background: var(--surface-2); border-radius: 3px; padding: 1px 5px;
}
.node.me { border-color: rgba(126, 226, 184, 0.45); background: var(--accent-soft); color: var(--accent); }
.node.root { border-color: var(--line-strong); background: var(--surface-2); }

.empty {
    border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
    padding: 30px 24px; text-align: center; color: var(--faint); font-size: 13.5px;
}
.empty b { color: var(--text); display: block; margin-bottom: 4px; font-weight: 560; }

.pager { margin-top: 20px; font-size: 12.5px; }
.pager nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pager a, .pager span {
    padding: 5px 10px; border: var(--line-w) solid var(--line); border-radius: 6px;
    color: var(--muted); font-family: var(--mono); font-size: 12px;
}
.pager a:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.pager span[aria-current] { background: var(--accent-soft); color: var(--accent); border-color: rgba(126, 226, 184, 0.3); }

/* ---- admin tabs -------------------------------------------------------- */

.tabs {
    border-bottom: var(--line-w) solid var(--line);
    margin-bottom: 24px;
}
.tabs nav.main { gap: 0; }
.tabs nav.main a {
    border-radius: 0; padding: 9px 14px;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    font-size: 13px;
}
.tabs nav.main a:hover { background: none; color: var(--text); }
.tabs nav.main a.active {
    background: none; box-shadow: none; color: var(--text);
    border-bottom-color: var(--accent);
}

/* ---- footer ------------------------------------------------------------ */

.credit {
    padding: 26px 0 44px; font-size: 11.5px; color: var(--faint);
    border-top: var(--line-w) solid var(--line);
    position: relative; z-index: 1;
}
.credit a { color: var(--faint); }
.credit a:hover { color: var(--accent); text-decoration: none; }

/* ---- hero -------------------------------------------------------------- */

.hero { position: relative; padding: 8px 0 0; }
.hero-grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
    font-size: clamp(38px, 6.4vw, 68px);
    line-height: 0.98; letter-spacing: -0.05em;
    margin-bottom: 22px; font-weight: 620;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede {
    font-size: 16.5px; line-height: 1.6; color: var(--muted);
    max-width: 46ch; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* A ledger card: the product's claim, drawn rather than described. */
.ledger-card {
    position: relative;
    border: var(--line-w) solid var(--line);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012) 55%), var(--bg-elev);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 40px 80px -40px rgba(0, 0, 0, 0.9),
        0 0 100px -30px rgba(126, 226, 184, 0.20);
    padding: 20px 22px 16px;
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transform-origin: left center;
}@media (max-width: 940px) { .ledger-card { transform: none; } }
.ledger-card::after {
    content: "";
    position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
    background: radial-gradient(120% 80% at 100% 0%, rgba(126,226,184,0.10), transparent 60%);
}
.ledger-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px; border-bottom: var(--line-w) solid var(--line);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--faint);
}
.ledger-row {
    display: grid; grid-template-columns: 1fr auto; gap: 12px;
    padding: 11px 0; border-bottom: var(--line-w) solid var(--line);
    font-size: 12.5px;
}
.ledger-row:last-of-type { border-bottom: 0; }
.ledger-row .what { color: var(--muted); }
.ledger-row .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ledger-row .amt.in { color: var(--accent); }
.ledger-total {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-top: 12px; padding-top: 14px; border-top: var(--line-w) solid var(--line-strong);
}
.ledger-total .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.ledger-total .n { font-family: var(--mono); font-size: 22px; letter-spacing: -0.04em; }

/* ---- terminal ----------------------------------------------------------- */

/* Real command output, set as one. This is the most persuasive thing on the
   page precisely because it is not a marketing claim. */
.terminal {
    border: var(--line-w) solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
    padding: 18px 20px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.9;
    overflow-x: auto;
}
.terminal .prompt { color: var(--faint); user-select: none; }
.terminal .ok { color: var(--accent); }
.terminal .dim { color: var(--faint); }
.terminal .cursor {
    display: inline-block; width: 7px; height: 13px; vertical-align: -2px;
    background: var(--accent); margin-left: 3px;
    animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ---- reveal ------------------------------------------------------------ */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 760ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }

@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.82); }
}
.dot-live {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); animation: breathe 2.8s var(--ease) infinite;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
