/* 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: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --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: #090b12; --panel: #10131c; --sunken: #161a25; --line: #222838; --line-strong: #333b50;
    --text: #eef1f7; --muted: #9aa3b5; --faint: #6b7387;
    --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); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --accent: #7b93ff; --accent-strong: #9aaeff; --accent-fg: #070a14; --accent-soft: #19214a;
    --bg: #090b12; --panel: #10131c; --sunken: #161a25; --line: #222838; --line-strong: #333b50;
    --text: #eef1f7; --muted: #9aa3b5; --faint: #6b7387;
    --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); 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: 9px; color: var(--text); }
.logo-mark { flex: none; border-radius: 8px; box-shadow: 0 1px 2px rgb(37 70 255 / .25), 0 4px 12px -4px rgb(37 70 255 / .45); }
.logo-word { font-weight: 700; font-size: 19px; letter-spacing: -.045em; }
.brand.big .logo-mark { width: 36px; height: 36px; }
.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); }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white), var(--accent)); border-color: var(--accent-strong); color: var(--accent-fg);
  box-shadow: 0 1px 2px rgb(37 70 255 / .3), inset 0 1px 0 rgb(255 255 255 / .16); }
.btn.primary:hover { background: var(--accent-strong); }
.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; }
.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 */
.site { display: flex; flex-direction: column; min-height: 100vh; background: var(--panel); }
.site main { max-width: none; padding: 0; flex: 1; }
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.site-wrap.narrow { max-width: 680px; padding-top: 56px; padding-bottom: 56px; }
.center { text-align: center; }
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-head-inner { height: 64px; display: flex; align-items: center; gap: 32px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-login { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; padding: 6px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.site-nav a:hover, .site-login:hover { color: var(--text); background: var(--sunken); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-actions .btn.small { min-height: 34px; padding: 0 14px; font-size: 13.5px; }

/* The landing page starts on a dark hero; the header floats on it until you scroll. */
.on-dark .site-head { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: rgb(255 255 255 / .07); backdrop-filter: none; }
.on-dark .site-head .logo-word, .on-dark .site-nav a:hover, .on-dark .site-login:hover { color: #fff; }
.on-dark .site-nav a, .on-dark .site-login { color: rgb(226 232 255 / .72); }
.on-dark .site-nav a:hover, .on-dark .site-login:hover { background: rgb(255 255 255 / .08); }
.dark { background: #0a0d18; color: #eef1f8; }
.dark .lp-sub, .dark .lp-lead { color: rgb(214 222 245 / .72); }
.dark .eyebrow { color: #8fb0ff; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 12px; }
.lp-section { padding-top: 112px; padding-bottom: 8px; }
.lp-head { max-width: 720px; margin-bottom: 44px; }
.lp-head.center { margin-left: auto; margin-right: auto; }
.lp-section h2, .lp-band h2, .lp-migrate h2, .lp-final h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 680; margin: 0 0 16px; }
.lp-sub { font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 640px; margin: 0; }
.lp-head.center .lp-sub { margin: 0 auto; }
.big-btn { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn.light { background: #fff; color: #0a0d18; border-color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -6px rgb(37 70 255 / .55); }
.btn.light:hover { background: #e9edff; }
.btn.ghost-light { background: rgb(255 255 255 / .06); color: #eef1f8; border-color: rgb(255 255 255 / .16); box-shadow: none; }
.btn.ghost-light:hover { background: rgb(255 255 255 / .12); }

.lp-hero { position: relative; overflow: hidden; padding-top: 152px; background: #0a0d18 url("hero.webp") center top / cover no-repeat; }
.lp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(to bottom, transparent, var(--panel)); pointer-events: none; }
.lp-hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; color: #dbe4ff;
  text-decoration: none; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(6px); transition: background .15s; }
.lp-pill:hover { background: rgb(255 255 255 / .1); }
.lp-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgb(52 211 153 / .2); }
.lp-pill .arrow { color: #8fb0ff; }
.lp-hero h1 { font-size: clamp(42px, 6.6vw, 82px); line-height: 1.02; letter-spacing: -.05em; font-weight: 700; margin: 28px 0 22px; color: #fff; }
.grad { background: linear-gradient(92deg, #a9bcff 0%, #6f8dff 38%, #38d4f0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 19px; line-height: 1.6; max-width: 680px; margin: 0 0 34px; color: rgb(214 222 245 / .78); }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta.center { justify-content: center; }
.lp-fine { margin-top: 18px; font-size: 13.5px; color: rgb(214 222 245 / .55); }
.lp-shot-wrap { position: relative; z-index: 1; margin-top: 72px; }
.lp-shot-wrap::before { content: ""; position: absolute; inset: 8% 10% auto; height: 60%; background: radial-gradient(ellipse at center, rgb(56 110 255 / .55), transparent 70%); filter: blur(60px); z-index: -1; }
.window { margin: 0; border-radius: 16px; overflow: hidden; background: #0f121c; border: 1px solid rgb(255 255 255 / .1);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .4), 0 40px 120px -30px rgb(0 0 0 / .8), 0 0 80px -20px rgb(37 70 255 / .35); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #131725; border-bottom: 1px solid rgb(255 255 255 / .06); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3044; }
.window-bar p { margin: 0 auto; font: 500 12px var(--mono); color: #7a839b; padding: 3px 14px; border-radius: 6px; background: rgb(255 255 255 / .04); }
.window img { display: block; width: 100%; height: auto; }

.lp-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0; width: calc(100% - 56px); max-width: 1124px; margin-top: 56px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lp-facts div { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-size: 13.5px; font-weight: 550; color: var(--text); border-right: 1px solid var(--line); }
.lp-facts div:last-child { border-right: 0; }
.lp-facts .i { color: var(--accent); }

.lp-dev { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.lp-steps { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 22px; }
.lp-steps li { display: flex; gap: 16px; }
.lp-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); }
.lp-steps p { margin: 4px 0 0; color: var(--muted); }
.codewin { background: #0c0f1a; border-radius: 16px; border: 1px solid #1d2335; box-shadow: var(--shadow-lg); overflow: hidden; color: #d7def3; }
.dark-tabs { border-bottom: 1px solid #1d2335; padding: 0 12px; margin: 0; background: #0f1320; }
.dark-tabs button { color: #7f89a5; padding: 13px 12px; }
.dark-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #6f8dff; }
.codewin pre { margin: 0; padding: 22px 24px; font: 13px/1.75 var(--mono); overflow-x: auto; min-height: 290px; }
.codewin-events { border-top: 1px solid #1d2335; padding: 16px 24px 18px; background: #0f1320; }
.codewin-events p { margin: 0 0 10px; color: #7f89a5; }
.codewin-events ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.codewin-events li { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.codewin-events code { color: #fff; }
.codewin-events time { color: #7f89a5; font: 12px var(--mono); }
.codewin-events .resp { margin-left: auto; color: #6ee7b7; font: 12px var(--mono); }
.ev { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ev.ok { background: #34d399; box-shadow: 0 0 0 4px rgb(52 211 153 / .15); }
.ev.wait { background: #6f8dff; box-shadow: 0 0 0 4px rgb(111 141 255 / .18); }
.ev.muted { background: #8a93a6; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--bg), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 28px; overflow: hidden; min-height: 340px; }
.tile.wide { grid-column: span 2; }
.tile h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.015em; }
.tile p { color: var(--muted); margin: 0; line-height: 1.55; }
.tile-text { max-width: 440px; margin-bottom: 24px; }
.tile-shot { margin: auto -28px -28px 0; height: 250px; overflow: hidden; border-radius: 12px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: var(--shadow-md); background: var(--panel); }
.tile-shot img { display: block; width: 900px; max-width: none; height: auto; }
.tile-shot .dk { display: none; }
:root[data-theme="dark"] .tile-shot .lt { display: none; }
:root[data-theme="dark"] .tile-shot .dk { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile-shot .lt { display: none; }
  :root:not([data-theme="light"]) .tile-shot .dk { display: block; }
}
.mini-sim { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-sim li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); font-size: 12.5px; }
.mini-dns { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.mini-dns div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); font-size: 12.5px; }
.mini-dns code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-code { margin: auto 0 0; padding: 16px 18px; border-radius: 12px; border: 1px solid #1d2335; background: #0c0f1a; color: #c9d2ec; font: 12px/1.7 var(--mono); overflow: hidden; }
.mini-code .k { color: #8fb0ff; } .mini-code .s { color: #6ee7b7; } .mini-code .c { color: #69728c; }
.mini-editor { position: relative; margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 150px; }
.ed-code, .ed-preview { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow); }
.ed-code { background: #0c0f1a; border-color: #1d2335; }
.ed-code i { display: block; height: 7px; border-radius: 4px; background: #2a3150; width: 90%; }
.ed-code i.a { background: #4058d6; }
.ed-preview b { display: block; height: 12px; width: 70%; border-radius: 4px; background: var(--text); opacity: .85; }
.ed-preview i { display: block; height: 7px; border-radius: 4px; background: var(--line-strong); width: 92%; }
.ed-btn { display: block; margin-top: auto; height: 22px; width: 54%; border-radius: 6px; background: var(--accent); }
.w40 { width: 40% !important; } .w60 { width: 60% !important; } .w70 { width: 70% !important; } .w80 { width: 80% !important; }
.ed-v { position: absolute; right: 10px; top: -14px; box-shadow: var(--shadow-md); background: var(--panel); }
.mini-consent { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-consent li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.mini-consent div { flex: 1; }
.mini-consent strong { font-size: 13.5px; }
.mini-consent p { font-size: 12.5px; }
.mini-consent time { font: 12px var(--mono); color: var(--faint); }
.mini-smtp { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.mini-smtp dt, .mini-smtp dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini-smtp dt { color: var(--muted); }
.mini-smtp dd { font-family: var(--mono); font-size: 12.5px; text-align: right; }
.mini-smtp dt:nth-last-of-type(1), .mini-smtp dd:last-of-type { border-bottom: 0; }

.lp-band { margin-top: 120px; padding: 104px 0; background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--accent-soft) 45%, var(--bg))); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-point { padding: 26px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-point h3 { font-size: 16px; margin: 16px 0 6px; }
.lp-point p { margin: 0; color: var(--muted); line-height: 1.55; }
.lp-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.lp-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.lp-docs a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--line-strong); text-decoration: none; transition: border-color .15s, background .15s; }
.lp-docs a:hover { border-color: var(--accent); background: var(--panel); }
.lp-docs .i { color: var(--accent); }
.lp-docs span { display: flex; flex-direction: column; }
.lp-docs em { font-style: normal; color: var(--muted); font-size: 13px; }

.lp-deliver { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding-bottom: 112px; }
.lp-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 14px; }
.lp-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; color: var(--muted); }
.lp-list strong { color: var(--text); }
.lp-list .i { color: var(--ok); margin-top: 2px; }
.lp-list.light li { color: rgb(214 222 245 / .8); }
.lp-list.light .i { color: #6ee7b7; }
.auth-card-mock { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-lg); padding: 26px; }
.mock-title { font-weight: 600; margin: 0 0 18px; }
.auth-card-mock dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.auth-card-mock dt, .auth-card-mock dd { margin: 0; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.auth-card-mock dt { color: var(--muted); padding-right: 24px; font-weight: 500; }
.auth-card-mock dd { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pass { display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); font: 700 11px var(--sans); letter-spacing: .04em; }

.lp-migrate { padding: 104px 0; background: #0a0d18 radial-gradient(ellipse 60% 80% at 85% 0%, rgb(37 70 255 / .32), transparent 60%); }
.lp-migrate-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.diff { margin: 0; padding: 26px 28px; border-radius: 16px; background: #0f1320; border: 1px solid #1d2335; font: 13.5px/1.85 var(--mono); color: #c9d2ec; overflow-x: auto; box-shadow: 0 30px 80px -30px rgb(0 0 0 / .7); }
.diff .del, .diff .add { display: block; margin: 0 -28px; padding: 0 28px; }
.diff .del { color: #fca5a5; background: rgb(248 113 113 / .1); }
.diff .add { color: #86efac; background: rgb(52 211 153 / .1); }
.diff .c { color: #69728c; }

.lp-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.lp-plan.featured { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(140deg, #2546ff, #38d4f0) border-box; border: 1.5px solid transparent; box-shadow: 0 24px 60px -24px rgb(37 70 255 / .45); }
.lp-plan-tag { position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #2546ff, #38a0f0); }
.lp-plan h3 { margin: 0; font-size: 15px; }
.lp-plan .price { font-size: 38px; font-weight: 700; letter-spacing: -.035em; margin: 14px 0 2px; }
.lp-plan .price span { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.lp-plan .btn { margin: 20px 0 22px; min-height: 40px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.lp-plan li { padding-left: 24px; position: relative; }
.lp-plan li::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%232546ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.lp-section .fine.center { margin-top: 24px; }

.lp-faq { padding-bottom: 112px; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq-cols details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-cols summary { font-size: 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; }
.faq-cols summary::-webkit-details-marker { display: none; }
.faq-cols summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq-cols details[open] summary::after { transform: rotate(45deg); }
.faq-cols p { color: var(--muted); line-height: 1.65; margin: 12px 0 0; }

.lp-final { padding: 120px 0 128px; background: #0a0d18 url("hero.webp") center 20% / cover no-repeat; }
.lp-final .lp-lead { margin: 0 auto 32px; }

.site-foot { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--panel); }
.on-dark .site-foot { margin-top: 0; }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 28px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.foot-cols strong { font-size: 13px; margin-bottom: 4px; }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--text); }
.foot-brand p { color: var(--muted); max-width: 300px; margin: 6px 0 0; }
.foot-made { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.lang-switch { margin: 0; font-size: 12.5px; color: var(--muted); }
.lang-switch a { color: var(--muted); }
.lang-switch a.on { color: var(--text); font-weight: 600; text-decoration: none; }

.docs { display: grid; grid-template-columns: 210px 1fr; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
.docs-nav { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.docs-nav a:hover, .docs-nav a[aria-current] { background: var(--sunken); color: var(--text); }
.prose { min-width: 0; max-width: 780px; }
.prose h1 { font-size: 38px; letter-spacing: -.035em; margin-bottom: 10px; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; scroll-margin-top: 90px; letter-spacing: -.02em; }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 20px; }
.prose code { background: var(--sunken); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.prose .code code, .prose pre code { background: none; padding: 0; }
.prose .code { background: #0c0f1a; border-color: #1d2335; color: #d7def3; }
.prose .code .copy { background: #161b2b; border-color: #232a40; color: #9aa3b5; }
.status-ok { animation: none; }

/* Articles: solutions and guides */
.art-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, var(--panel)), var(--panel)); }
.art-hero-inner > * { max-width: 860px; }
.art-hero .crumbs { margin-bottom: 22px; }
.art-hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.04em; margin: 0 0 18px; }
.art-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 48px; padding-bottom: 72px; }
.art-prose { max-width: 720px; font-size: 16.5px; }
.art-prose > p:first-child { font-size: 18px; color: var(--text); }
.art-prose p, .art-prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.art-prose h2 { font-size: 24px; margin-top: 48px; }
.art-prose li { margin-bottom: 6px; }
.art-prose pre.code { margin: 18px 0; padding: 16px 18px; border-radius: 12px; background: #0c0f1a; color: #d7def3; font: 13px/1.7 var(--mono); overflow-x: auto; border: 1px solid #1d2335; }
.art-prose pre.code code { background: none; padding: 0; color: inherit; }
.art-prose .compare { margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.art-prose .compare .table td, .art-prose .compare .table th { font-size: 14.5px; }
.art-prose .compare .table { table-layout: auto; }
.art-prose .compare .table td:first-child { color: var(--muted); }
.callout { margin: 36px 0 0; padding: 20px 22px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); line-height: 1.65; }
.art-aside { position: relative; }
.art-cta { position: sticky; top: 96px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-md); }
.art-cta-title { font-weight: 650; font-size: 16px; margin: 0 0 14px; }
.art-cta ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.art-cta li { display: flex; gap: 8px; align-items: flex-start; }
.art-cta .i { color: var(--ok); flex: none; margin-top: 1px; }
.art-related { padding-bottom: 96px; }
.art-related h2 { font-size: 24px; margin-bottom: 18px; }
.art-cards, .guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.art-cards a, .guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
.art-cards a:hover, .guide-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.art-cards .eyebrow { margin: 0; }
.art-cards strong, .guide-card strong { font-size: 16.5px; line-height: 1.35; letter-spacing: -.01em; }
.guide-card p { color: var(--muted); margin: 0; line-height: 1.55; }
.art-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.guide-list { padding-top: 48px; padding-bottom: 96px; }
.guide-card .eyebrow { margin: 0; }
.guide-card .art-more { padding-top: 10px; }
.guide-cta { background: radial-gradient(120% 140% at 100% 0%, #2546ff 0%, #10153a 55%, #0a0d18 100%); border-color: #1d2335; color: #fff; }
.guide-cta p { color: #b9c3e6; }
.guide-cta .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 1020px) {
  .art-body { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .lp-dev, .lp-deliver, .lp-migrate-inner { grid-template-columns: 1fr; gap: 40px; }
  .bento, .lp-grid3, .lp-docs { grid-template-columns: 1fr 1fr; }
  .lp-plans { grid-template-columns: 1fr 1fr; }
  .lp-facts { grid-template-columns: 1fr 1fr; }
  .lp-facts div { border-bottom: 1px solid var(--line); }
  .site-nav { display: none; }
}
@media (max-width: 680px) {
  .site-wrap { padding-left: 18px; padding-right: 18px; }
  .lp-section { padding-top: 80px; }
  .lp-facts { width: calc(100% - 36px); }
  .lp-hero .lp-cta .btn { flex: 1 1 100%; justify-content: center; }
  .resp { display: none; }
  .lp-hero { padding-top: 120px; }
  .bento, .lp-grid3, .lp-docs, .lp-plans, .faq-cols, .lp-facts { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .site-login { display: none; }
}
