/* Redbrain Merchant Risk View — editorial financial-intel aesthetic
   Cream paper, ink, single red accent, teal for internal-data emphasis. */

:root {
    --paper: #f4efe6; --paper-deep: #ebe4d4;
    --ink: #1a1714; --ink-soft: #4a443c; --ink-faded: #8a8377;
    --rule: #d6cdb8; --rule-soft: #e3dcc8;
    --accent: #b8341f; --accent-deep: #7a1d10;
    --teal: #2d5e5a; --teal-soft: #dbe5e3;
    --green: #4a7a1c; --green-soft: #ddead0;
    --amber: #aa7c2a; --amber-soft: #f4e0c8;
    --serif: "Fraunces", "Times New Roman", serif;
    --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--paper); color: var(--ink);
    font-family: var(--sans); font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; transition: color 0.15s ease; }
a:hover { color: var(--accent-deep); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(46px, 6.5vw, 86px); }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 19px; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-faded); }
.lede { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; color: var(--ink-soft); letter-spacing: -0.01em; }
p { margin-bottom: 1em; } p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
em.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--paper-deep); padding: 1px 6px; border-radius: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); background: rgba(244, 239, 230, 0.92); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--ink); border: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.brand .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; }
.brand small { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-faded); font-style: normal; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--rule); white-space: nowrap; }
@media (max-width: 1180px) { .brand small { display: none; } }
.site-nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-left: 32px; flex-wrap: nowrap; align-items: center; }
.site-nav > * { white-space: nowrap; }
.site-nav a { color: var(--ink-soft); border: 0; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

/* Hero */
.hero { padding: 90px 0 100px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 60px; align-items: end; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 .teal { font-style: italic; color: var(--teal); }
.hero-meta { border-left: 2px solid var(--ink); padding-left: 22px; font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--ink-soft); }
.hero-meta strong { color: var(--ink); display: block; }
.byline { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-faded); }
.byline span strong { color: var(--ink); font-weight: 500; }
.byline .built { color: var(--green); }
.byline .pending { color: var(--amber); }

/* Section */
section.section { padding: 100px 0; border-bottom: 1px solid var(--rule); }
.section-header { display: grid; grid-template-columns: 180px 1fr; gap: 48px; margin-bottom: 56px; align-items: start; }
.section-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); padding-top: 12px; border-top: 2px solid var(--accent); width: fit-content; white-space: nowrap; }
.section-num.teal { color: var(--teal); border-top-color: var(--teal); }
.section-title { max-width: 820px; }
.section-title h2 { margin-bottom: 20px; }
.section-title h2 em { font-style: italic; color: var(--accent); }
.section-title h2 .teal { font-style: italic; color: var(--teal); }
.section-title .lede { max-width: 720px; }

/* Pullquote */
.pullquote { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-style: italic; line-height: 1.25; letter-spacing: -0.015em; padding: 50px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 60px 0; position: relative; }
.pullquote::before { content: "\201C"; font-family: var(--serif); font-size: 140px; line-height: 0.8; position: absolute; top: 40px; left: -60px; color: var(--accent); }
@media (max-width: 900px) { .pullquote::before { display: none; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid > .card { background: var(--paper); padding: 32px 28px; }
.card-grid > .card.teal-card { background: var(--teal-soft); }
.card .eyebrow { margin-bottom: 16px; display: block; }
.card .eyebrow.teal { color: var(--teal); }
.card h4 { margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .card-grid.three { grid-template-columns: 1fr; } }

/* Decisions row */
.decisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin: 40px 0; }
.decision { background: var(--paper); padding: 36px 28px; }
.decision .num { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 14px; }
.decision h3 { font-size: 26px; margin-bottom: 12px; }
.decision p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .decisions { grid-template-columns: 1fr; } }

/* Ledger */
.ledger { border-top: 2px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: 60px 1fr 180px 130px; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; font-size: 15px; }
.ledger-row .num { font-family: var(--mono); font-size: 12px; color: var(--ink-faded); }
.ledger-row .name { font-weight: 500; }
.ledger-row .name small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.ledger-row .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.ledger-row.tier-0 { background: rgba(45, 94, 90, 0.06); padding-left: 16px; padding-right: 16px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 2px; background: var(--paper-deep); white-space: nowrap; width: fit-content; }
.pill::before { content: ""; width: 6px; height: 6px; background: var(--ink-faded); border-radius: 50%; }
.pill.built { background: var(--green-soft); color: #2a4a14; }
.pill.built::before { background: var(--green); }
.pill.partial { background: var(--amber-soft); color: #6a4a14; }
.pill.partial::before { background: var(--amber); }
.pill.next { background: var(--amber-soft); color: #6a4a14; }
.pill.next::before { background: var(--amber); }
.pill.later { background: var(--paper-deep); color: var(--ink-soft); }
.pill.later::before { background: var(--ink-faded); }
.pill.internal { background: var(--teal-soft); color: var(--teal); }
.pill.internal::before { background: var(--teal); }

/* Architecture diagram */
.arch { background: var(--paper); border: 1px solid var(--rule); padding: 32px; margin: 40px 0; overflow-x: auto; }
.arch svg { width: 100%; height: auto; min-width: 780px; }
.arch text { font-family: var(--sans); }
.arch .label { font-size: 13px; font-weight: 500; fill: var(--ink); }
.arch .sublabel { font-size: 11px; fill: var(--ink-soft); font-family: var(--mono); letter-spacing: 0.04em; }
.arch .group-label { font-size: 11px; font-family: var(--mono); fill: var(--ink-faded); text-transform: uppercase; letter-spacing: 0.15em; }
.arch .box-fill { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.arch .box-accent { fill: #f9e8e3; stroke: var(--accent); stroke-width: 1.2; }
.arch .box-teal { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.4; }
.arch .arrow { stroke: var(--ink-soft); stroke-width: 1; fill: none; }
.arch .group-box { fill: none; stroke: var(--rule); stroke-dasharray: 3 4; stroke-width: 1; }
.arch .group-box.teal { stroke: var(--teal); stroke-dasharray: 4 3; }

/* Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--ink); }
.timeline-item { position: relative; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -47px; top: 8px; width: 14px; height: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.timeline-item.critical::before { background: var(--accent); border-color: var(--accent); }
.timeline-item.teal::before { background: var(--teal); border-color: var(--teal); }
.timeline-item .when { font-family: var(--mono); font-size: 12px; color: var(--ink-faded); letter-spacing: 0.08em; margin-bottom: 6px; }
.timeline-item h4 { margin-bottom: 8px; font-family: var(--sans); font-weight: 500; }
.timeline-item p { color: var(--ink-soft); font-size: 15px; }

/* Demo dashboards — credit control table */
.demo-window { background: #fff; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 30px 80px -30px rgba(26, 23, 20, 0.25); overflow: hidden; margin: 30px 0; }
.demo-chrome { background: var(--paper-deep); padding: 10px 14px; border-bottom: 1px solid var(--rule); display: flex; gap: 6px; align-items: center; }
.demo-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.demo-chrome .url { margin-left: 16px; font-family: var(--mono); font-size: 11px; color: var(--ink-faded); background: var(--paper); padding: 4px 12px; border-radius: 12px; flex: 1; max-width: 420px; }

.demo-view-tabs { display: flex; border-bottom: 1px solid var(--rule); background: var(--paper); }
.demo-view-tabs .tab { padding: 12px 22px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faded); border-bottom: 2px solid transparent; cursor: default; }
.demo-view-tabs .tab.active { color: var(--ink); border-bottom-color: var(--accent); }

.demo-body { padding: 28px; font-size: 14px; color: var(--ink); }
.demo-table { display: grid; grid-template-columns: 1.6fr 0.9fr 0.8fr 1fr 0.9fr 1.4fr; gap: 16px; align-items: center; }
.demo-table .header { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faded); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.demo-table .cell { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; }
.demo-table .cell.last-row { border-bottom: 0; }
.demo-table .name { font-weight: 500; }
.demo-table .name small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-faded); margin-top: 3px; font-weight: 400; }
.demo-table .exposure { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.demo-table .dso { font-family: var(--mono); font-size: 13px; }
.demo-table .dso.bad { color: var(--accent); }
.demo-table .dso.ok { color: var(--ink-soft); }
.demo-table .trend { font-family: var(--mono); font-size: 11px; }
.demo-table .trend.bad { color: var(--accent); }
.demo-table .trend.warn { color: var(--amber); }
.demo-table .trend.good { color: var(--green); }
.demo-table .score { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.demo-table .score.high { color: var(--accent); }
.demo-table .score.med { color: var(--amber); }
.demo-table .score.low { color: var(--teal); }
.demo-table .action { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 2px; width: fit-content; }
.demo-table .action.critical { background: rgba(184,52,31,0.1); color: var(--accent); }
.demo-table .action.tighten { background: var(--amber-soft); color: #6a4a14; }
.demo-table .action.watch { background: var(--paper-deep); color: var(--ink-soft); }
.demo-table .action.continue { background: var(--green-soft); color: #2a4a14; }
@media (max-width: 900px) { .demo-table { grid-template-columns: 1.5fr 0.8fr 0.9fr; }
    .demo-table .dso-h, .demo-table .trend-h, .demo-table .action-h,
    .demo-table .dso-c, .demo-table .trend-c, .demo-table .action-c { display: none; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 30px 0; }
.stat { padding: 28px 24px 28px 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat .figure { font-family: var(--serif); font-size: 48px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat .figure em { font-style: italic; color: var(--accent); }
.stat .figure .teal { color: var(--teal); font-style: italic; }
.stat .figure .unit { font-size: 22px; color: var(--ink-faded); }
.stat .caption { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }

/* User-role swimlanes */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 40px 0; }
.role { background: var(--paper); padding: 36px 28px; }
.role .who { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 14px; }
.role h3 { font-size: 24px; margin-bottom: 12px; }
.role p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.role ul { list-style: none; padding: 0; }
.role ul li { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); padding: 6px 0 6px 18px; position: relative; line-height: 1.5; }
.role ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 80px 0 40px; }
.footer h2 { color: var(--paper); margin-bottom: 24px; }
.footer h2 em { color: var(--accent); font-style: italic; }
.footer .lede { color: var(--paper-deep); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-nav { font-family: var(--mono); font-size: 13px; }
.footer-nav h5 { color: var(--ink-faded); font-weight: 400; margin-bottom: 18px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; }
.footer-nav a { color: var(--paper); border: 0; display: block; padding: 4px 0; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #3a342c; padding-top: 28px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faded); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Status badge for hero */
.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
    padding: 6px 12px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper);
    color: var(--ink-soft);
}
.status-badge::before { content: ""; width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }
.status-badge.live::before { background: var(--green); }

@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.15s; }
.fade-in-3 { animation-delay: 0.25s; }
.fade-in-4 { animation-delay: 0.35s; }

@media (max-width: 900px) {
    .hero { padding: 50px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
    section.section { padding: 60px 0; }
    .ledger-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
    .ledger-row .num { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    h1 { font-size: 42px; }
}

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

/* APIs page */
.api-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0;
    margin-top: 36px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 24px rgba(60,40,20,0.04);
    display: grid;
    grid-template-columns: 5fr 7fr;
}
.api-card.teal-card { border-left: 4px solid var(--teal); }
.api-card.accent-card { border-left: 4px solid var(--accent); }
.api-meta {
    padding: 36px 36px 36px 40px;
    background: var(--paper);
    border-right: 1px solid var(--rule);
    display: grid;
    gap: 18px;
    align-content: start;
}
.api-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}
.api-row .api-k {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faded);
}
.api-row .api-v {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
}
.api-row .api-v a { font-weight: 500; }
.api-row code, .api-card code {
    font-family: var(--mono);
    background: var(--paper-deep);
    padding: 2px 7px;
    border-radius: 2px;
    font-size: 12px;
    color: var(--accent-deep);
}
.api-body {
    padding: 36px 40px;
    background: #fff;
}
.api-card h4 {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-faded);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule-soft);
}
.api-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
}
.api-steps li {
    counter-increment: step;
    padding: 14px 0 14px 48px;
    font-size: 15px;
    line-height: 1.55;
    position: relative;
    color: var(--ink);
}
.api-steps li + li { border-top: 1px solid var(--rule-soft); }
.api-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    color: var(--accent);
    width: 32px;
    text-align: center;
    line-height: 1;
}
@media (max-width: 900px) {
    .api-card { grid-template-columns: 1fr; }
    .api-meta { border-right: 0; border-bottom: 1px solid var(--rule); padding: 28px 24px; }
    .api-body { padding: 28px 24px; }
}

/* Cheat-sheet table */
.key-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 24px;
}
.key-table thead th {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faded);
    padding: 16px 20px;
    text-align: left;
    background: var(--paper-deep);
    border-bottom: 1px solid var(--rule);
    font-weight: 500;
}
.key-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 14px;
    vertical-align: top;
    line-height: 1.55;
}
.key-table tbody tr:last-child td { border-bottom: 0; }
.key-table td code {
    font-family: var(--mono);
    background: var(--paper-deep);
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 12px;
    white-space: nowrap;
}

/* Cost grid */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 32px;
}
.cost-item {
    background: #fff;
    padding: 32px 24px;
}
.cost-item .cost-name {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-faded);
    margin-bottom: 16px;
}
.cost-item .cost-figure {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}
.cost-item .cost-figure small {
    font-size: 14px;
    color: var(--ink-faded);
    font-weight: 400;
    margin-left: 2px;
}
.cost-item .cost-note {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 12px;
    line-height: 1.4;
}

/* Big numbered steps */
.big-steps {
    list-style: none;
    padding: 0;
    margin-top: 32px;
}
.big-steps li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}
.big-steps li:last-child { border-bottom: 0; }
.big-step-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
}
.big-steps li h4 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--ink);
    text-transform: none;
    letter-spacing: -0.01em;
}
.big-steps li p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}
.big-steps li code {
    font-family: var(--mono);
    background: var(--paper-deep);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .api-row { grid-template-columns: 1fr; gap: 4px; }
    .api-card { padding: 28px 24px; }
    .cost-grid { grid-template-columns: repeat(2, 1fr); }
    .big-steps li { grid-template-columns: 60px 1fr; gap: 16px; }
    .big-step-num { font-size: 42px; }
    .api-steps li { padding-left: 44px; }
    .api-steps li::before { font-size: 20px; width: 28px; }
}

/* Hero price ledger (APIs page) */
.price-ledger {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 28px 32px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 32px rgba(60,40,20,0.05);
}
.price-ledger-head {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-faded);
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--rule);
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-soft);
}
.price-row:last-child { border-bottom: 0; }
.price-row.total {
    margin-top: 6px;
    border-top: 2px solid var(--ink);
    border-bottom: 0;
    padding-top: 18px;
}
.pr-name {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
}
.price-row.total .pr-name strong { font-weight: 500; }
.pr-cost {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
    font-weight: 400;
}
.price-row.total .pr-cost strong { color: var(--accent); font-style: italic; font-weight: 400; font-size: 22px; }
.pr-cost.free {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green);
}

/* Hero-side companion (architecture / sources / roadmap) */
.hero-side {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 28px 32px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 32px rgba(60,40,20,0.05);
    align-self: end;
}
.hs-head {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-faded);
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--rule);
}
.hs-list { list-style: none; padding: 0; margin: 0; }
.hs-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule-soft);
    gap: 16px;
}
.hs-list li:last-child { border-bottom: 0; }
.hs-k {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faded);
    white-space: nowrap;
}
.hs-k.teal { color: var(--teal); }
.hs-v {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink);
    text-align: right;
}
.hs-foot {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--ink);
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--accent);
    text-align: right;
}

/* Controls page */
.dials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 32px;
}
.dial-card {
    background: #fff;
    padding: 28px 24px;
}
.dial-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
}
.dial-default {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    margin-bottom: 4px;
}
.dial-default em {
    color: var(--accent);
    font-style: italic;
    font-family: var(--serif);
    font-size: 14px;
    margin-left: 4px;
}
.dial-range {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faded);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule-soft);
}
.dial-card p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
}
@media (max-width: 900px) { .dials-grid { grid-template-columns: 1fr; } }

/* Tag showcase */
.tag-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.tag-show-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-left-width: 4px;
    border-radius: 3px;
    padding: 24px 22px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 6px 18px rgba(60,40,20,0.04);
    position: relative;
}
.tag-show-card.accent { border-left-color: var(--accent); }
.tag-show-card.amber  { border-left-color: var(--amber); }
.tag-show-card.teal   { border-left-color: var(--teal); }
.tag-show-card.green  { border-left-color: var(--green); }
.tag-show-card.ink    { border-left-color: var(--ink); }
.ts-name {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 8px;
}
.ts-extra {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    background: var(--teal-soft);
    border: 1px solid var(--teal);
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 12px;
}
.tag-show-card p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* Inline pill in tables */
.key-pill {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 9px;
    border-radius: 2px;
    background: var(--paper-deep);
    color: var(--ink-soft);
    border: 1px solid var(--rule);
}
.key-pill.accent {
    background: rgba(184,52,31,0.12);
    color: var(--accent);
    border-color: var(--accent);
}

/* Channel grid */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 32px;
}
.ch-card {
    background: #fff;
    padding: 28px;
}
.ch-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1;
}
.ch-card h4 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
}
.ch-card p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 14px;
}
.ch-meta {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faded);
    padding-top: 12px;
    border-top: 1px solid var(--rule-soft);
}
@media (max-width: 900px) { .channel-grid { grid-template-columns: 1fr; } }

/* Marker for the dashboard-deploy note in nav — looks like a nav link but is not clickable */
.site-nav .nav-note {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faded);
    border-left: 1px solid var(--rule);
    padding-left: 22px;
    cursor: help;
}
