/* AMDelete — site, console and chart styles. Light and dark are both selected palettes (not an automatic
   flip); the OS setting applies unless the viewer's toggle stamps data-theme on <html>. Chart colors are the
   validated reference slots 1-3 and its chart furniture; brand violet is a UI accent, never a data color. */

:root {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --surface-3: #e9e8e2;
  --border: rgba(11, 11, 11, .10);
  --border-strong: rgba(11, 11, 11, .2);
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #6b6a65;
  --muted: #898781;
  --brand: #5b45f0;
  --brand-hover: #4a35d9;
  --brand-soft: rgba(91, 69, 240, .09);
  --brand-ring: rgba(91, 69, 240, .35);
  --link: #4a35d9;
  --cyan: #1fb8db;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --good-text: #006300;
  --critical-text: #b42323;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --hero-1: #ece8ff;
  --hero-2: #e3f6fb;
  --code-bg: #15131f;
  --code-text: #e9e6ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(10, 8, 30, .05), 0 10px 30px rgba(20, 16, 50, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #222220;
    --surface-3: #2c2c2a;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .2);
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #a5a49c;
    --muted: #898781;
    --brand: #6d58ff;
    --brand-hover: #7f6cff;
    --brand-soft: rgba(143, 127, 255, .14);
    --brand-ring: rgba(143, 127, 255, .45);
    --link: #ada2ff;
    --grid: #2c2c2a;
    --axis: #383835;
    --good-text: #0ca30c;
    --critical-text: #f08080;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --hero-1: #1b1636;
    --hero-2: #0d2630;
    --code-bg: #0f0d18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #222220;
  --surface-3: #2c2c2a;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .2);
  --text: #f0efec;
  --text-2: #c3c2b7;
  --text-3: #a5a49c;
  --muted: #898781;
  --brand: #6d58ff;
  --brand-hover: #7f6cff;
  --brand-soft: rgba(143, 127, 255, .14);
  --brand-ring: rgba(143, 127, 255, .45);
  --link: #ada2ff;
  --grid: #2c2c2a;
  --axis: #383835;
  --good-text: #0ca30c;
  --critical-text: #f08080;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --hero-1: #1b1636;
  --hero-2: #0d2630;
  --code-bg: #0f0d18;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
}

/* Base ------------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 760; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); font-weight: 720; }
h3, .h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* Brand -------------------------------------------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand .wordmark { font-size: 1.32rem; font-weight: 760; letter-spacing: -.03em; }
.brand .wordmark span { font-weight: 560; }
.gradient-text {
  background: linear-gradient(100deg, #7b61ff 10%, #1fb8db 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons & forms ---------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: transparent; color: var(--critical-text); border-color: color-mix(in srgb, var(--critical) 45%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--critical) 10%, transparent); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

form.inline { display: inline; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .83rem; color: var(--text-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); margin-bottom: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.otp { letter-spacing: .4em; font-family: var(--mono); font-size: 1.4rem !important; text-align: center; }

/* Cards, badges, flash ------------------------------------------------------------------------------------ */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2 { font-size: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 650; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.good::before { background: var(--good); }
.badge.warning::before { background: var(--warning); }
.badge.serious::before { background: var(--serious); }
.badge.critical::before { background: var(--critical); }
.badge.brand { background: var(--brand-soft); color: var(--link); border-color: transparent; }
.badge.brand::before { background: var(--brand); }
.badge.plain::before { display: none; }
.flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--border); background: var(--surface); display: flex; gap: 10px; align-items: flex-start; }
.flash::before { content: "i"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--font); color: #fff; background: var(--s1); }
.flash.success::before { content: "✓"; background: var(--good); }
.flash.error::before { content: "!"; background: var(--critical); }
.flash.warning::before { content: "!"; background: var(--warning); color: #0b0b0b; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--text-2); }
.callout strong { color: var(--text); }

/* Tables ------------------------------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.compare th[scope=row] { font-size: .92rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-2); background: none; }
.empty { padding: 36px 20px; text-align: center; color: var(--text-3); }

/* Code ---------------------------------------------------------------------------------------------------- */

pre.code, .code-block {
  position: relative; background: var(--code-bg); color: var(--code-text); border-radius: 12px; padding: 16px 18px;
  overflow-x: auto; font-size: .86rem; line-height: 1.6; margin: 0 0 16px;
}
.code-block pre { margin: 0; white-space: pre-wrap; word-break: break-all; padding-right: 72px; }
.code-block .copy { position: absolute; top: 10px; right: 10px; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.card .actions form { margin: 0; }
.code-block .copy.btn { background: rgba(255, 255, 255, .08); color: #e9e6ff; border-color: rgba(255, 255, 255, .15); }
:not(pre) > code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); }

/* Site chrome --------------------------------------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.navlink { color: var(--text-2); text-decoration: none; font-weight: 560; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.site-nav a.navlink:hover, .site-nav a.navlink[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.theme-toggle svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.nav-extra { display: none; }
.site-footer { border-top: 1px solid var(--border); margin-top: 96px; padding: 48px 0 40px; color: var(--text-3); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-grid .footer-title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-3); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
  .site-nav .nav-extra { display: grid; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
  .site-actions .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .site-actions .btn-primary { display: none; } }

/* Marketing ----------------------------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 720px; z-index: -1;
  background: radial-gradient(40% 50% at 22% 30%, var(--hero-1), transparent 70%), radial-gradient(38% 45% at 80% 20%, var(--hero-2), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; font-size: .85rem; color: var(--link); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--text-2); max-width: 38em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--text-3); }
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--link); margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--text-2); margin: 0; }
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--text-2); margin: 0; }
.cta-band { border-radius: 22px; padding: 48px; background: linear-gradient(120deg, #2a1f7a, #3a2bd1 45%, #127a9a); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta-band .btn-secondary { background: #fff; color: #1d1650; border-color: #fff; }
.prose { max-width: 760px; }
/* Long-form pages line up with their page head instead of centering a narrow column. */
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 760px; }
.prose h2[id] { scroll-margin-top: 92px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 760px) 220px; justify-content: space-between; gap: 48px; align-items: start; padding-bottom: 72px; }
.doc-layout .prose { grid-column: 1; grid-row: 1; }
.doc-layout .prose > h2:first-child { margin-top: 0; }
.toc { grid-column: 2; grid-row: 1; position: sticky; top: 92px; border-left: 1px solid var(--border); padding-left: 18px; font-size: .92rem; }
.toc-title { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc a { color: var(--text-3); text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--text); }
.toc a[aria-current="true"] { font-weight: 620; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { grid-column: 1; position: static; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
  .doc-layout .prose { grid-row: 2; }
}
.code-wrap { position: relative; margin: 0 0 16px; }
.code-wrap pre.code { margin: 0; padding-right: 76px; }
.code-wrap .copy-code { position: absolute; top: 9px; right: 9px; background: rgba(255, 255, 255, .08); color: #e9e6ff; border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.code-wrap .copy-code:hover { background: rgba(255, 255, 255, .16); }
.code-wrap .copy-code:focus-visible { outline: 2px solid var(--brand-ring); outline-offset: 2px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose li + li { margin-top: 6px; }
.page-head { padding: 64px 0 28px; }
.page-head p { color: var(--text-2); font-size: 1.1rem; max-width: 46em; }

/* Hero visual: two calls, one deleted. */
.call-demo { display: grid; gap: 14px; }
.call { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.call-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .9rem; }
.call-top strong { font-size: .95rem; }
.wave { display: flex; gap: 3px; align-items: center; height: 46px; }
.wave i { flex: 1; border-radius: 3px; background: var(--s1); opacity: .85; animation: pulse 1.6s ease-in-out infinite; }
.call.machine .wave i { background: var(--s2); }
.call.machine .wave i:nth-child(n+19) { opacity: .15; animation: none; }
.call-route { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text-2); }
.call-route .arrow { flex: 1; height: 1px; background: var(--border-strong); }
@keyframes pulse { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }
.section.product { padding-top: 0; }
.product-shot { margin: 0; }
.product-shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.product-shot .shot-dark { display: none; }
.product-shot figcaption { margin-top: 12px; text-align: center; color: var(--text-3); font-size: .88rem; }
:root[data-theme="dark"] .product-shot .shot-light { display: none; }
:root[data-theme="dark"] .product-shot .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product-shot .shot-light { display: none; }
  :root:not([data-theme="light"]) .product-shot .shot-dark { display: block; }
}
.timeline-section { padding-bottom: 40px; }
.timeline { margin: 0; padding: 24px 24px 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.timeline-scroll { overflow-x: auto; }
.timeline svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--font); }
.timeline figcaption { margin-top: 10px; color: var(--text-3); font-size: .88rem; }
.tl-label { fill: var(--text); font-size: 15px; font-weight: 650; }
.tl-said, .tl-tick { fill: var(--text-3); font-size: 13px; }
.tl-result { fill: var(--text-2); font-size: 13px; font-weight: 600; }
.tl-check { fill: var(--brand); opacity: .8; }
.tl-grid, .tl-lane { stroke: var(--border); stroke-width: 1; }
.tl-lane { stroke-dasharray: 2 5; }
.tl-axis { stroke: var(--border-strong); stroke-width: 1; }
.tl-window { stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 5 5; }
.tl-floor { stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .75; }
.tl-speech.human, .tl-decision.human { fill: var(--s1); }
.tl-speech.machine, .tl-decision.machine { fill: var(--s2); }
.tl-speech.after { opacity: .22; }
.tl-decision { stroke: var(--surface); stroke-width: 3; }
.tl-decision.unsure, .tl-speech.unsure { fill: var(--text-3); }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(3n+1) { height: 40%; } .wave i:nth-child(3n+2) { height: 95%; }
.wave i:nth-child(5n) { height: 55%; animation-delay: -.4s; } .wave i:nth-child(7n) { height: 85%; animation-delay: -.8s; }

/* Pricing: one rate card (plans as rows, the estimator under them) beside what every account gets. */
.rate-card { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rate-main { display: grid; gap: 16px; }
.rate-side { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.rate-trial { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.rate-trial strong { font-size: 1.45rem; letter-spacing: -.02em; }
.rate-trial span { color: var(--text-2); }
.rate-trial .btn { justify-self: start; margin-top: 4px; }
.ladder { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.ladder-row { display: grid; grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 18px 20px; }
.ladder-row + .ladder-row { border-top: 1px solid var(--border); }
.ladder-row > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.ladder-row small { display: block; color: var(--text-3); font-size: .82rem; margin-top: 2px; }
.ladder-head { padding-block: 10px; background: var(--surface-2); color: var(--text-3); font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.ladder-fee { font-size: 1.6rem; font-weight: 760; letter-spacing: -.03em; }
.ladder-row.quoted { color: var(--text-3); }
.ladder-row.quoted strong, .ladder-row.quoted .ladder-fee { color: var(--text-2); }
@media (max-width: 860px) { .rate-card { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ladder-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; }
  .ladder-row > span:first-child { grid-column: 1 / -1; }
  .ladder-row > span:not(:first-child) { text-align: left; }
  .ladder-head > span:first-child { display: none; }
  .ladder-fee { font-size: 1.25rem; }
}
.estimator { margin-bottom: 20px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; }
.estimator label { font-weight: 650; }
.estimator-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 14px; align-items: center; }
.estimator-inputs input[type=number] { text-align: right; font-variant-numeric: tabular-nums; }
.estimator-inputs input[type=range] { width: 100%; accent-color: var(--brand); }
.estimator-inputs input[type=range][hidden] + input { grid-column: 1 / -1; }
.estimator-out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.estimator-out.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .estimator-out.three { grid-template-columns: 1fr; } }
.estimator-out div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.estimator-out strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--good-text); font-weight: 800; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 12px 0 0; color: var(--text-2); }

@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 56px; } .cta-band { padding: 32px 24px; } }

/* Auth ------------------------------------------------------------------------------------------------------ */

.auth { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: min(460px, 100%); }
.auth-card .card { padding: 32px; }
.auth-card h1 { font-size: 1.7rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-2); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--text-3); font-size: .92rem; }

/* Console shell --------------------------------------------------------------------------------------------- */

.console { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--border); background: var(--surface); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar .navgroup { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 14px 10px 6px; }
.sidebar a.side { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-weight: 560; font-size: .94rem; }
.sidebar a.side svg { width: 18px; height: 18px; flex: none; }
.sidebar a.side:hover { background: var(--surface-2); color: var(--text); }
.sidebar a.side[aria-current="page"] { background: var(--brand-soft); color: var(--link); }
.sidebar .tenant { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: .88rem; }
.sidebar .tenant strong { display: block; color: var(--text); }
.main { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 32px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 90%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.topbar h1 { font-size: 1.3rem; margin: 0; }
.content { padding: 28px 32px 64px; max-width: 1280px; }
@media (max-width: 980px) {
  .console { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar .navgroup, .sidebar .tenant { display: none; }
  .content, .topbar { padding-inline: 16px; }
  .topbar .muted { display: none; }
  .chart-card { padding: 16px 12px 12px; }
}

/* Figures: stat tiles, hero number, meters --------------------------------------------------------------- */

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.tile .label { font-size: .85rem; color: var(--text-2); font-weight: 560; }
.tile .value { font-size: 1.9rem; font-weight: 680; letter-spacing: -.02em; margin-top: 4px; }
.tile .sub { font-size: .83rem; color: var(--text-3); margin-top: 2px; }
.tile.hero .value { font-size: 3rem; }
.delta-good { color: var(--good-text); }
.delta-bad { color: var(--critical-text); }
.meter-svg { width: 100%; height: 8px; margin-top: 10px; }
.meter-track { fill: color-mix(in srgb, var(--s1) 18%, var(--surface-2)); }
.meter-fill { fill: var(--s1); }

/* Charts --------------------------------------------------------------------------------------------------- */

.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h2 { font-size: 1.05rem; margin: 0; }
.chart-head p { margin: 2px 0 0; font-size: .86rem; color: var(--text-3); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--text-2); margin: 6px 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 2px; width: 16px; border-radius: 2px; }
.sw-1 { background: var(--s1); } .sw-2 { background: var(--s2); } .sw-3 { background: var(--s3); }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .base-line { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.chart .s1 { fill: var(--s1); } .chart .s2 { fill: var(--s2); } .chart .s3 { fill: var(--s3); }
.chart .line-s1 { stroke: var(--s1); } .chart .line-s2 { stroke: var(--s2); } .chart .line-s3 { stroke: var(--s3); }
.chart .area-s1 { fill: var(--s1); opacity: .1; }
.chart .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; }
.chart .bar:hover, .chart .bar.active { filter: brightness(1.12); }
.chart .end-label { fill: var(--text-2); font: 600 11.5px var(--font); }
.chart-empty { display: grid; place-items: center; min-height: 220px; color: var(--text-3); font-size: .92rem; text-align: center; padding: 20px; }
.chart.loading { opacity: .5; transition: opacity .2s; }
.tooltip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px; font-size: .82rem; }
.tooltip .t-title { color: var(--text-3); margin-bottom: 6px; }
.tooltip .t-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .t-row span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.tooltip .t-row b { font-variant-numeric: tabular-nums; }
.tooltip .t-key { width: 12px; height: 2px; border-radius: 2px; display: inline-block; }
.table-toggle { font-size: .82rem; }
.chart-table { margin-top: 10px; }
.chart-table[hidden] { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters select { width: auto; min-width: 220px; min-height: 38px; padding: 6px 10px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg a { padding: 8px 14px; font-size: .88rem; font-weight: 600; color: var(--text-2); text-decoration: none; border-right: 1px solid var(--border); }
.seg a:last-child { border-right: 0; }
.seg a[aria-current="true"] { background: var(--brand-soft); color: var(--link); }
.seg a[aria-current="true"]::before { content: "✓ "; font-weight: 800; }

/* Console bits ------------------------------------------------------------------------------------------------ */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.checklist .state { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; border: 2px solid var(--border-strong); color: var(--text-3); }
.checklist li.done .state { background: var(--good); border-color: var(--good); color: #fff; }
.checklist li.fail .state { background: var(--critical); border-color: var(--critical); color: #fff; }
.checklist li.warn .state { background: var(--warning); border-color: var(--warning); color: #0b0b0b; }
.checklist li p { margin: 2px 0 0; color: var(--text-3); font-size: .88rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-word; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand); }
.pack-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.pack { position: relative; display: block; cursor: pointer; }
.pack input { position: absolute; opacity: 0; }
.pack span { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.pack strong { font-size: 1.4rem; letter-spacing: -.02em; }
.pack small { color: var(--text-3); }
.pack input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pack input:focus-visible + span { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 20px; }
.banner.warning { border-color: color-mix(in srgb, var(--warning) 55%, transparent); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
.banner.critical { border-color: color-mix(in srgb, var(--critical) 50%, transparent); background: color-mix(in srgb, var(--critical) 7%, var(--surface)); }
.qr { width: 180px; height: 180px; background: #fff; padding: 10px; border-radius: 12px; }
.secret { font-family: var(--mono); font-size: .95rem; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--border-strong); word-break: break-all; }

@media print { .site-header, .sidebar, .topbar, .site-footer { display: none; } .console { display: block; } }
.footer-about { margin-top: 12px; max-width: 30em; }
.mb { margin-bottom: 20px; }
.mt { margin-top: 20px; }
.btn svg { width: 16px; height: 16px; }
.eyebrow svg { width: 15px; height: 15px; }
