/* ridu – one stylesheet, no framework. Tokens first, then layout, then components. */
@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Cool slate neutrals around one brand blue; status colors stay semantic. */
  --accent: #2546ff;
  --accent-strong: #1a35d6;
  --accent-fg: #fff;
  --accent-soft: #eaeeff;
  --bg: #f7f8fa;
  --panel: #fff;
  --sunken: #f1f3f7;
  --line: #e4e8ef;
  --line-strong: #d0d6e0;
  --text: #0b1020;
  --muted: #586174;
  --faint: #8a93a6;
  --ok: #0f7a3d;
  --ok-bg: #e3f7ea;
  --wait: #9a5b00;
  --wait-bg: #fff3d6;
  --bad: #c0262d;
  --bad-bg: #fde8e8;
  --vio: #6d28d9;
  --vio-bg: #f1eaff;
  --info: #2546ff;
  --info-bg: #eaeeff;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 0 0 1px rgb(16 24 40 / .02);
  --shadow-md: 0 1px 2px rgb(16 24 40 / .04), 0 8px 24px -6px rgb(16 24 40 / .10);
  --shadow-lg: 0 24px 64px -16px rgb(16 24 40 / .28), 0 0 0 1px rgb(16 24 40 / .04);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --ink: #0b0c0e; --ink-fg: #fff;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #7b93ff; --accent-strong: #9aaeff; --accent-fg: #070a14; --accent-soft: #19214a;
    --bg: #08090a; --panel: #0f1012; --sunken: #16171a; --line: #232428; --line-strong: #34353b;
    --text: #f3f3f1; --muted: #9b9ca3; --faint: #6c6d75;
    --ok: #4ade80; --ok-bg: #0b2a1a; --wait: #fbbf24; --wait-bg: #2e2208; --bad: #f87171; --bad-bg: #321112;
    --vio: #c4a5ff; --vio-bg: #251845; --info: #93b4ff; --info-bg: #162045;
    --shadow: 0 0 0 1px rgb(255 255 255 / .02); --shadow-md: 0 8px 24px -8px rgb(0 0 0 / .6); --ink: #f3f3f1; --ink-fg: #08090a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --accent: #7b93ff; --accent-strong: #9aaeff; --accent-fg: #070a14; --accent-soft: #19214a;
    --bg: #08090a; --panel: #0f1012; --sunken: #16171a; --line: #232428; --line-strong: #34353b;
    --text: #f3f3f1; --muted: #9b9ca3; --faint: #6c6d75;
    --ok: #4ade80; --ok-bg: #0b2a1a; --wait: #fbbf24; --wait-bg: #2e2208; --bad: #f87171; --bad-bg: #321112;
    --vio: #c4a5ff; --vio-bg: #251845; --info: #93b4ff; --info-bg: #162045;
    --shadow: 0 0 0 1px rgb(255 255 255 / .02); --shadow-md: 0 8px 24px -8px rgb(0 0 0 / .6); --ink: #f3f3f1; --ink-fg: #08090a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.5 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 20px 0 4px; }
p { margin: 0 0 8px; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 10px 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--panel); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.trunc { max-width: 1px; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h1.trunc { max-width: 100%; }
.r { text-align: right; }
.wrap { white-space: pre-wrap; word-break: break-word; }
[hidden] { display: none !important; }

/* Layout */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 12px;
  padding: 16px 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, var(--bg)); overflow-y: auto;
}
.nav-group { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.brand { display: inline-flex; padding: 2px 8px 8px; text-decoration: none; color: var(--text); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.logo-mark { flex: none; }
.logo-word { font-weight: 700; font-size: 19px; letter-spacing: -.045em; }
.brand.big .logo-mark { width: 26px; height: 29px; }
.brand.big .logo-word { font-size: 26px; }
.orgs select { width: 100%; font-weight: 600; background-color: var(--panel); box-shadow: var(--shadow); }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.nav {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 500; transition: background .12s, color .12s;
}
.nav:hover { background: var(--sunken); color: var(--text); }
.nav.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.nav.on .i { color: var(--accent); }
.nav.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.i { flex: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid var(--line); }
.who-mail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--text); font-weight: 600; text-transform: uppercase; font-size: 12px;
}
.frame { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px;
  padding: 10px 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top .menu { display: none; }
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 32px 48px; outline: none; }
.is-test .top { border-bottom-color: var(--info); }
.test-note { margin: 0; color: var(--info); font-size: 12.5px; font-weight: 500; }

.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.head > div:first-child { min-width: 0; }
.head p { margin-top: 6px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between, .between { justify-content: space-between; }
.wrap-row { margin-bottom: 16px; }
.top-gap { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2.wide-left { grid-template-columns: 3fr 2fr; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.grid-form .span2 { grid-column: 1 / -1; }
.grid-form label { display: block; margin-bottom: 6px; }

/* Cards */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card.flush { padding: 0; overflow: hidden; }
.card.flush .table-wrap { margin: 0; border-top: 1px solid var(--line); }
.pad { padding: 18px 22px; }
.pad h2 { margin: 0; }
.nowrap { white-space: nowrap; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; }
.big-num { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.big-num .muted { font-size: 15px; font-weight: 500; }
.card.highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card.hint { background: var(--sunken); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-title { font-weight: 600; font-size: 15px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 14px; }

/* Forms */
label { font-weight: 500; font-size: 13px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 8px 10px; min-height: 36px; width: 100%;
}
.inline input, .inline select, .filters input, .filters select { width: auto; flex: 1 1 200px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0; }
legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.warnbox { border-color: color-mix(in srgb, var(--wait) 40%, var(--line)); background: color-mix(in srgb, var(--wait-bg) 40%, transparent); }
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px;
  font: 500 13.5px/1 var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--sunken); }
.btn { box-shadow: 0 1px 1px rgb(16 24 40 / .04); }
/* Primary actions are ink, like the public site; blue stays for focus, links and data. */
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-fg); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.ghost { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; display: inline-flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.ghost:hover { background: var(--sunken); color: var(--text); }
.cmdk-open { width: 100%; justify-content: flex-start; }
.cmdk-open kbd { margin-left: auto; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--sunken); color: var(--text); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link.on { color: var(--text); font-weight: 600; text-decoration: none; }
kbd { font: 500 11px var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }

.mode { display: inline-flex; background: var(--sunken); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.mode button, .seg button { font: 500 12.5px var(--sans); border: 0; background: none; color: var(--muted); padding: 5px 12px; border-radius: 7px; cursor: pointer; }
.mode button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.is-test .mode button.on { color: var(--info); }
.seg { background: var(--sunken); border-radius: 9px; padding: 2px; }
.seg button.on { background: var(--panel); color: var(--text); }

/* Feedback */
.toast, .alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-weight: 500; }
.toast { background: var(--ok-bg); color: var(--ok); animation: fade 4s forwards 2s; }
.alert { background: var(--bad-bg); color: var(--bad); }
@keyframes fade { to { opacity: 0; } }
.tip { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px;
  font-size: 12px; font-weight: 550; white-space: nowrap; background: var(--info-bg); color: var(--info);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.wait { background: var(--wait-bg); color: var(--wait); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.complaint { background: var(--vio-bg); color: var(--vio); }
.badge.muted { background: var(--sunken); color: var(--muted); }
.tag { font: 12px var(--mono); background: var(--sunken); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* Tables */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-bottom: 16px; box-shadow: var(--shadow); }
.card .table-wrap { border: 0; box-shadow: none; margin: 0 -20px; border-radius: 0; }
.table { width: 100%; border-collapse: collapse; }
.table.fixed { table-layout: fixed; }
.table.fixed .trunc { max-width: none; width: auto; }
.table .c-to { width: 34%; }
.table .c-status { width: 150px; }
.table .c-time { width: 130px; }
.table th { text-align: left; font-size: 12px; font-weight: 550; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table.rows tbody tr { cursor: pointer; }
.table.rows tbody tr:hover, .table.rows tbody tr.sel { background: var(--sunken); }
.table.rows td a { text-decoration: none; }
.table.dns td { vertical-align: middle; }
.pager { display: flex; justify-content: space-between; gap: 8px; }
.pager a[rel="next"] { margin-left: auto; }

/* Code & secrets */
.code { position: relative; background: var(--sunken); border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
.code pre { margin: 0; padding: 14px 44px 14px 16px; overflow-x: auto; line-height: 1.6; }
.code .copy { position: absolute; top: 8px; right: 8px; }
.copy { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; vertical-align: middle; }
.copy:hover { color: var(--text); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.secret { display: flex; align-items: center; gap: 8px; background: var(--sunken); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.secret code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 13px; }
[data-reveal]:not(.shown) [data-secret] { filter: blur(5px); user-select: none; }
.copyable { display: flex; align-items: center; gap: 6px; }
.copyable code { background: var(--sunken); border-radius: 5px; padding: 3px 6px; }
code.long { display: block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
pre.plain { white-space: pre-wrap; background: var(--sunken); padding: 14px; border-radius: 8px; max-height: 560px; overflow: auto; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; }
.tabs button { font: 500 13px var(--sans); color: var(--muted); background: none; border: 0; padding: 8px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.subnav { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.subnav a { padding: 6px 12px; border-radius: 99px; background: var(--sunken); text-decoration: none; color: var(--muted); font-weight: 500; font-size: 13px; }
.subnav a:hover { color: var(--text); }

/* Overview */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); overflow: hidden; }
.spark { position: absolute; right: 16px; bottom: 18px; width: 38%; height: 30px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .9; }
.stat.good .spark polyline { stroke: var(--ok); }
.stat.warn .spark polyline { stroke: var(--wait); }
.stat.bad .spark polyline { stroke: var(--bad); }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-main > .card { margin-bottom: 0; display: flex; flex-direction: column; }
.grid-main .chart { margin-top: auto; padding-top: 12px; }
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.side-stack > .card { margin: 0; flex: 1; }
.chart { width: 100%; height: auto; display: block; margin-top: 12px; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .ylab { fill: var(--faint); font-size: 15px; text-anchor: end; dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.chart .xlab { fill: var(--faint); font-size: 15px; text-anchor: middle; }
.chart .sent { fill: var(--accent); opacity: .82; }
.chart .bounced { fill: var(--bad); }
.chart .hit { fill: transparent; }
.chart .b:hover .sent { opacity: 1; }
.chart .b:hover .hit { fill: color-mix(in srgb, var(--accent) 6%, transparent); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.legend .key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 10px; }
.legend .key.sent { background: var(--accent); }
.legend .key.bounced { background: var(--bad); }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--faint); font-size: 12px; }
.stat.warn .value { color: var(--wait); }
.stat.bad .value { color: var(--bad); }
.bars { width: 100%; height: 140px; display: block; }
.bars .sent { fill: var(--accent); opacity: .85; }
.bars .bounced { fill: var(--bad); }
.bars g:hover .sent { opacity: 1; }
.meter { width: 100%; height: 10px; margin: 6px 0 8px; }
.checklist ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 500; }
.checklist li a { text-decoration: none; }
.checklist .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; flex: none; }
.checklist li.ok { color: var(--muted); }
.checklist li.ok .num { background: var(--ok); color: #fff; font-size: 0; }
.checklist li.ok .num::after { content: "✓"; font-size: 13px; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini li:last-child { border-bottom: 0; }
.mini a { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.mini .trunc { max-width: 100%; }
.list { list-style: none; padding: 0; margin: 0 0 12px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list li > span:first-child { display: inline-flex; gap: 8px; align-items: center; }

/* Detail pages */
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--info); margin-top: 4px; flex: none; box-shadow: 0 0 0 3px var(--panel); }
.timeline .ok .dot { background: var(--ok); }
.timeline .wait .dot { background: var(--wait); }
.timeline .bad .dot { background: var(--bad); }
.timeline .complaint .dot { background: var(--vio); }
.timeline .muted .dot { background: var(--faint); }
.timeline div { display: flex; flex-direction: column; }
.timeline time { color: var(--muted); font-size: 12.5px; }
.live-timeline { margin-top: 18px; }
.live-timeline li { animation: pop .3s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
.done { margin-top: 18px; padding: 16px; border-radius: 8px; background: var(--ok-bg); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.done-title { margin: 0; font-weight: 600; color: var(--ok); display: inline-flex; gap: 8px; align-items: center; }
.preview { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 12px; transition: max-width .2s; }
.preview.mobile { max-width: 390px; display: block; margin-left: auto; margin-right: auto; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.step { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.facts li { display: flex; gap: 8px; align-items: center; }
.facts .i { color: var(--accent); }

/* Bare pages (login, onboarding) */
.bare { display: flex; flex-direction: column; min-height: 100vh; }
.bare-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; gap: 24px; max-width: none; }
.auth-card { width: 100%; max-width: 420px; padding: 32px; }
.auth-card h1 { margin-bottom: 8px; font: 400 36px/1.05 var(--serif); letter-spacing: -.01em; }
.auth-card .stack { margin-top: 20px; }
.center { text-align: center; }
.big-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.bare-foot { display: flex; justify-content: center; gap: 12px; padding: 20px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.bare-foot a { color: var(--muted); }

/* Command palette */
.cmdk { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(560px, 92vw); background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); margin-top: 14vh; }
.cmdk::backdrop { background: rgb(0 0 0 / .35); backdrop-filter: blur(2px); }
.cmdk input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 18px; font-size: 15px; box-shadow: none; }
.cmdk ul { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; }
.cmdk a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.cmdk li.sel a, .cmdk a:hover { background: var(--sunken); }
.cmdk-hint { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-main, .checklist ol { grid-template-columns: 1fr; }
  .grid2, .grid2.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .top .menu { display: inline-grid; }
  .top { padding: 10px 16px; }
  .test-note { display: none; }
  main { padding: 20px 16px; }
  .head { flex-direction: column; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  code.long { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Template editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.editor-preview { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 8px; }
.editor-preview .preview { height: calc(100vh - 190px); min-height: 420px; margin-top: 0; }
.editor-preview [data-preview-submit] { align-self: flex-start; }
.code-area { font: 12.5px/1.6 var(--mono); resize: vertical; tab-size: 2; margin-top: 6px; }
.vars input, .vars select { min-height: 30px; padding: 4px 8px; }
.vars select { min-width: 96px; }
details summary { cursor: pointer; font-weight: 500; font-size: 13px; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .editor-preview { position: static; } }
.subnav a.on { background: var(--accent-soft); color: var(--text); }
fieldset.plain { border: 0; padding: 0; margin: 0; }
details.card > summary { font-weight: 600; }

/* Billing */
.usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.usage > div { display: flex; flex-direction: column; gap: 4px; }
.usage .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.usage meter { width: 100%; height: 8px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 8px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan h3 { margin: 0; font-size: 15px; }
.plan .price { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin: 4px 0 0; }
.plan .price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); flex: 1; }
.plan li::before { content: "✓ "; color: var(--accent); }
.plan .badge { align-self: flex-start; }

/* Printable invoice */
.invoice-page { background: #fff; color: #18181b; }
.invoice { max-width: 760px; margin: 40px auto; padding: 48px; background: #fff; }
.invoice address { font-style: normal; margin: 8px 0 40px; line-height: 1.6; }
.invoice .sender-line { margin-top: 48px; border-bottom: 1px solid #e4e4e7; display: inline-block; }
.invoice h1 { margin-bottom: 16px; }
.invoice .kv { margin-bottom: 24px; }
.invoice table { margin-bottom: 24px; }
.invoice tfoot td { border-bottom: 0; padding-top: 6px; padding-bottom: 6px; }
.invoice footer { margin-top: 48px; border-top: 1px solid #e4e4e7; padding-top: 12px; }
@media print { .invoice { margin: 0; padding: 0; } @page { margin: 18mm; } }

/* Public site: one dark, monochrome theme. Type does the work; colour only means status. */
@font-face { font-family: "Instrument Serif"; src: url("serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

.site {
  --bg: #08090a; --panel: #0e0f11; --sunken: #141518; --line: rgb(255 255 255 / .08); --line-strong: rgb(255 255 255 / .14);
  --text: #f3f3f1; --muted: #9b9ca3; --faint: #6c6d75; --accent: #6f86ff; --accent-strong: #8fa0ff; --accent-fg: #08090a; --accent-soft: rgb(111 134 255 / .12);
  --ok: #4fd18b; --ok-bg: rgb(79 209 139 / .10); --wait: #f2b63c; --wait-bg: rgb(242 182 60 / .10); --bad: #ff6b6b; --bad-bg: rgb(255 107 107 / .10);
  --vio: #b79cff; --vio-bg: rgb(183 156 255 / .10); --info: #8fa0ff; --info-bg: rgb(143 160 255 / .10);
  --shadow: none; --shadow-md: none;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
  display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.6; font-optical-sizing: auto;
}
.site main { max-width: none; padding: 0; flex: 1; }
.site ::selection { background: rgb(111 134 255 / .35); }
.site a { text-decoration-color: rgb(255 255 255 / .25); }
.site a:hover { text-decoration-color: currentColor; }
.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.site-wrap.narrow { max-width: 720px; padding-top: 64px; padding-bottom: 96px; }
.center { text-align: center; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgb(8 9 10 / .72); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.site-head-inner { height: 60px; display: flex; align-items: center; gap: 36px; }
.site .brand { padding: 0; }
.site .logo-word { font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.site-nav { display: flex; gap: 2px; }
.site-nav a, .site-login { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 8px; transition: color .15s; }
.site-nav a:hover, .site-login:hover, .site-nav a[aria-current] { color: var(--text); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* Buttons on the site: white primary, hairline secondary, no gradients */
.site .btn { min-height: 38px; padding: 0 16px; border-radius: 9px; font-size: 14px; font-weight: 500; background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.site .btn:hover { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .22); }
.site .btn.primary, .site .btn.light { background: #f3f3f1; color: #08090a; border-color: #f3f3f1; box-shadow: none; }
.site .btn.primary:hover, .site .btn.light:hover { background: #fff; border-color: #fff; }
.site .btn.small { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.site .btn.big { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.site .btn .i { opacity: .7; }

/* Type */
.display, .site h1.display { font: 400 clamp(46px, 7.4vw, 92px)/.98 var(--serif); letter-spacing: -.02em; margin: 0; }
.display em { font-style: italic; color: #b9bac0; }
.h2 { font: 400 clamp(36px, 4.6vw, 58px)/1.02 var(--serif); letter-spacing: -.015em; margin: 0 0 18px; }
.h2 em { font-style: italic; color: #b9bac0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 600px; margin: 0; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; }
.more { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform .15s; }
.more:hover::after { transform: translateX(3px); }

/* Sections */
.sec { padding: 140px 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 56px; }
.sec-head .lead { justify-self: end; }
.sec-head.stack { display: block; max-width: 760px; }
.sec-head.stack .lead { margin-top: 4px; }

/* Hero */
.hero { position: relative; padding: 148px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 900px; background: url("hero.webp") right top / auto 100% no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero > * { position: relative; }
.hero .lead { margin-top: 28px; font-size: 19px; max-width: 580px; }
.hero-cta { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.hero-fine { margin: 18px 0 0; font: 12.5px var(--mono); color: var(--faint); }
.shot { margin: 96px auto 0; max-width: 1264px; padding: 0 32px; }
.shot-frame { position: relative; border-radius: 14px; border: 1px solid var(--line-strong); background: #0b0c0e; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .6), 0 40px 120px -40px rgb(0 0 0 / .9);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%); mask-image: linear-gradient(180deg, #000 62%, transparent 98%); }
.shot-frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent); z-index: 1; }
.shot-frame img { display: block; width: 100%; height: auto; }

/* Proof: four facts as plain text columns */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; }
.proof div { padding: 28px 28px 30px 0; }
.proof div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.proof strong { display: block; font-weight: 550; font-size: 15px; margin-bottom: 6px; }
.proof p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Code window */
.site .code { border: 1px solid var(--line-strong); border-radius: 14px; background: #0b0c0e; overflow: hidden; }
.site .code-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.site .code-tabs button { font: 500 13px var(--sans); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 7px; padding: 5px 11px; cursor: pointer; white-space: nowrap; }
.site .code-tabs button:hover { color: var(--text); }
.site .code-tabs button[aria-selected="true"] { color: var(--text); background: rgb(255 255 255 / .05); border-color: var(--line); }
.site .code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 13px/1.75 var(--mono); color: #d6d6d9; counter-reset: ln; tab-size: 2; }
.site .code pre code { font: inherit; }
.site .code .ln { counter-increment: ln; }
.site .code .ln::before { content: counter(ln); display: inline-block; width: 2.2em; margin-right: 14px; text-align: right; color: #45464d; user-select: none; }
.site .code .c { color: #6f7078; } .site .code .s { color: #9fdcc0; } .site .code .k { color: #a6b3ff; }
.site .code-foot { display: flex; align-items: center; gap: 22px; padding: 14px 22px; border-top: 1px solid var(--line); font: 12.5px var(--mono); color: var(--muted); flex-wrap: wrap; }
.site .code-foot .ev { display: inline-flex; align-items: center; gap: 8px; }
.site .code-foot time { color: var(--faint); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgb(79 209 139 / .15); }
.dot.wait { background: var(--wait); }
.dot.bad { background: var(--bad); }
.dot.vio { background: var(--vio); }
.site .code-foot .resp { margin-left: auto; color: var(--ok); }
.dev { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.dev .lead { margin-bottom: 28px; }

/* Feature cards: a real UI fragment on top, words below */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #0d0e10, #0a0b0c); overflow: hidden; display: flex; flex-direction: column; }
.feat-vis { position: relative; height: 236px; padding: 28px 28px 0; overflow: hidden; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.feat-body { padding: 24px 28px 28px; }
.feat h3 { font-size: 16px; font-weight: 550; margin: 0 0 6px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 460px; }
/* fragments */
.ui { font-size: 13px; }
.ui-panel { border: 1px solid var(--line-strong); border-radius: 12px; background: #111215; }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.ui-row:first-child { border-top: 0; }
.ui-row code { font: 12.5px var(--mono); color: #d6d6d9; }
.ui-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-row time, .ui-meta { font: 12px var(--mono); color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: rgb(255 255 255 / .06); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.vio { background: var(--vio-bg); color: var(--vio); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.ui-send { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; }
.ui-send .grow { flex: 1; font: 13px var(--mono); color: var(--text); }
.ui-btn { font: 500 12.5px var(--sans); padding: 5px 12px; border-radius: 7px; background: #f3f3f1; color: #08090a; }
.ui-lines { margin: 18px 4px 0; font: 12.5px/2 var(--mono); color: var(--muted); }
.ui-lines span { color: #9fdcc0; }
.ui-lines div:nth-child(2) { opacity: .7; } .ui-lines div:nth-child(3) { opacity: .45; } .ui-lines div:nth-child(4) { opacity: .25; }
.ui-tl { position: relative; display: grid; gap: 14px; }
.ui-tl .ui-row { border: 1px solid var(--line); border-radius: 10px; background: #111215; }
.ui-two { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ui-two strong { font-weight: 500; font-size: 13px; }
.ui-two .ui-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-kv { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.ui-kv dt, .ui-kv dd { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.ui-kv dt { color: var(--muted); }
.ui-kv dd { font: 12.5px var(--mono); text-align: right; color: #d6d6d9; }
.ui-kv dt:first-of-type, .ui-kv dt:first-of-type + dd { border-top: 0; }
.ui-shot { margin: -28px -28px 0 28px; height: calc(100% + 28px); border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); border-radius: 12px 0 0 0; overflow: hidden; }
.ui-shot img { display: block; width: 760px; max-width: none; height: auto; }
.feat-vis.flush { padding-right: 0; }

/* Privacy: a spec sheet */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 14px; }
.spec dd { margin: 0; font-size: 14.5px; }
.doclinks { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }

/* Deliverability */
.deliver { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.points { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.points li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.points strong { font-weight: 550; font-size: 14.5px; }
.points span { color: var(--muted); font-size: 14.5px; }
.hdrs { font: 12.5px/1.9 var(--mono); color: #b8b9be; padding: 22px 24px; white-space: pre-wrap; word-break: break-word; }
.hdrs b { font-weight: 400; color: var(--faint); }
.hdrs .p { color: var(--ok); }
.hdrs-cap { padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* Migration diff */
.diff .del { display: block; background: rgb(255 107 107 / .08); color: #ffb1b1; margin: 0 -22px; padding: 0 22px; }
.diff .add { display: block; background: rgb(79 209 139 / .08); color: #a8f0c9; margin: 0 -22px; padding: 0 22px; }
.mig { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 14.5px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: "✓"; color: var(--ok); font-size: 13px; }

/* Pricing: one bordered strip, columns split by hairlines */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; }
.tier { padding: 28px 26px 30px; display: flex; flex-direction: column; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier.pop { background: rgb(255 255 255 / .025); }
.tier-name { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 550; margin: 0 0 18px; }
.tier-name span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 2px 8px; }
.tier-price { font: 400 46px/1 var(--serif); margin: 0; }
.tier-price small { font: 14px var(--sans); color: var(--muted); margin-left: 6px; }
.tier-note { color: var(--faint); font-size: 13px; margin: 8px 0 24px; }
.tier ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 9px; font-size: 14px; color: #c9cace; }
.tier li .muted { color: var(--faint); }
.tiers-fine { margin: 20px 0 0; color: var(--faint); font-size: 13px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 16px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 20px; color: var(--muted); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: -6px 0 22px; color: var(--muted); max-width: 640px; }

/* Closing call */
.final { position: relative; margin-top: 160px; padding: 140px 0 150px; border-top: 1px solid var(--line); overflow: hidden; text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; background: url("hero.webp") center 30% / cover no-repeat; opacity: .8; transform: scaleX(-1); pointer-events: none; }
.final > * { position: relative; }
.final .hero-cta { justify-content: center; }
.final .lead { margin: 22px auto 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 13.5px; }
.final + .site-foot, main:has(.final) + .site-foot { border-top: 0; padding-top: 24px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 24px; }
.foot-cols strong { display: block; font-weight: 500; margin-bottom: 14px; color: var(--text); }
.foot-cols a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot-cols a:hover { color: var(--text); }
.foot-brand p { color: var(--muted); margin: 14px 0 0; max-width: 240px; }
.foot-made { display: flex; gap: 8px; align-items: center; font: 12px var(--mono); color: var(--faint) !important; }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a.on { color: var(--text); }

/* Long-form pages: articles, guides, docs, legal, status */
.page-head { padding: 112px 0 56px; border-bottom: 1px solid var(--line); }
.page-head .crumbs { margin-bottom: 28px; font: 12.5px var(--mono); color: var(--faint); }
.page-head .crumbs a { color: var(--muted); text-decoration: none; }
.page-head h1 { font: 400 clamp(38px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -.015em; margin: 0 0 20px; max-width: 900px; }
.page-head .lead { max-width: 680px; }
.page-head .kicker { margin-bottom: 22px; }
.prose { font-size: 16.5px; line-height: 1.75; color: #c9cace; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font: 400 46px/1.05 var(--serif); color: var(--text); margin: 0 0 24px; letter-spacing: -.01em; }
.prose h2 { font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -.015em; margin: 56px 0 14px; line-height: 1.3; }
.prose h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 32px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration-color: rgb(255 255 255 / .3); }
.prose code { font: .86em var(--mono); background: rgb(255 255 255 / .06); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: #e4e4e7; }
.prose pre, .prose pre.code { margin: 22px 0; padding: 18px 20px; border-radius: 12px; background: #0b0c0e; border: 1px solid var(--line-strong); font: 13px/1.75 var(--mono); color: #d6d6d9; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.prose .compare, .prose .table-wrap { margin: 22px 0; border: 1px solid var(--line-strong); border-radius: 12px; overflow-x: auto; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; table-layout: auto; }
.prose th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose .callout { margin: 32px 0; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgb(255 255 255 / .025); }
.prose .alert { background: var(--wait-bg); color: var(--wait); border-radius: 10px; font-size: 14px; }
.prose .muted { color: var(--muted); }
.prose .small { font-size: 13.5px; }

.art-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; padding-top: 64px; padding-bottom: 40px; }
.art-prose { max-width: 720px; }
.art-prose > p:first-child { font-size: 19px; line-height: 1.65; color: var(--text); }
.art-aside { position: relative; }
.art-cta { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgb(255 255 255 / .02); }
.art-cta-title { font: 400 26px/1.1 var(--serif); margin: 0 0 16px; }
.art-cta ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.art-cta li { display: flex; gap: 8px; }
.art-cta li::before { content: "✓"; color: var(--ok); }
.art-cta .fine { color: var(--faint); font-size: 12.5px; margin-top: 12px; }
.art-related { padding-top: 64px; }
.art-related h2 { font: 400 32px/1.1 var(--serif); margin: 0 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card-link { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: linear-gradient(180deg, #0d0e10, #0a0b0c); transition: border-color .15s; min-height: 200px; }
.card-link:hover { border-color: var(--line-strong); }
.card-link .kicker { margin: 0; }
.card-link strong { font: 400 25px/1.15 var(--serif); letter-spacing: -.005em; color: var(--text); }
.card-link p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card-link .more { margin-top: auto; padding-top: 6px; font-size: 13.5px; }
.card-link.cta { background: #f3f3f1; color: #08090a; border-color: #f3f3f1; }
.card-link.cta strong { color: #08090a; }
.card-link.cta p { color: #55565c; }
.card-link.cta .more { color: #08090a; }
.guide-list { padding-top: 56px; padding-bottom: 40px; }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.docs-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 7px; }
.docs-nav a:hover { color: var(--text); }
.docs-nav a[aria-current] { color: var(--text); background: rgb(255 255 255 / .05); }
.docs .prose { max-width: 800px; }
.site .copy { position: absolute; top: 10px; right: 10px; }
.site .badge { background: rgb(255 255 255 / .06); }
.site .badge.ok { background: var(--ok-bg); }

@media (max-width: 1020px) {
  .site-nav { display: none; }
  .sec { padding-top: 104px; }
  .sec-head, .dev, .deliver, .mig, .faq { grid-template-columns: 1fr; gap: 32px; }
  .sec-head .lead { justify-self: start; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier:nth-child(3) { border-left: 0; }
  .tier:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .art-body { grid-template-columns: 1fr; gap: 40px; }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .site-wrap { padding-left: 20px; padding-right: 20px; }
  .site-login { display: none; }
  .hero { padding-top: 96px; }
  .hero::before { background-size: auto 70%; opacity: .8; }
  .shot { padding: 0 20px; margin-top: 64px; }
  .sec { padding-top: 88px; }
  .feats, .tiers, .proof { grid-template-columns: 1fr; }
  .proof div, .proof div + div { padding: 20px 0; border-left: 0; }
  .proof div + div { border-top: 1px solid var(--line); }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--line); }
  .spec div, .points li { grid-template-columns: 1fr; gap: 4px; }
  .feat-vis { padding: 20px 20px 0; }
  .feat-body { padding: 20px; }
  .code-foot .resp { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .final { margin-top: 112px; padding: 96px 0 104px; }
}
.site figure.code { margin: 0; }
.prose .code { position: relative; margin: 22px 0; }
.prose .code pre { margin: 0; border: 0; border-radius: 0; background: none; padding: 18px 48px 18px 20px; }
.status-list { margin: 0; border-top: 1px solid var(--line); }
.status-list div { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.status-list dt { font-size: 15px; }
.status-list dd { margin: 0; }
.pill .dot { width: 6px; height: 6px; box-shadow: none; }
.status-wrap { padding-top: 48px; padding-bottom: 96px; }
.status-wrap .status-list { max-width: 760px; }
.ui-lines div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 680px) {
  .ui-send .pill, .ui-tl .ui-meta.grow { display: none; }
  .ui-tl code { flex: 1; }
  .ui-send .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .final .hero-cta .btn { min-width: 220px; }
}
