/* Oncalm Owl - own visual identity (warm paper, ink, signal lime). */
:root {
  --bg: #f5f4ef;
  --bg-2: #eceae2;
  --surface: #ffffff;
  --ink: #14161a;
  --ink-2: #3a3e45;
  --muted: #6c7079;
  --line: #e2dfd6;
  --line-2: #d3cfc3;
  --signal: #c8f135;
  --signal-ink: #1b2400;
  --up: #1e9a56;
  --up-soft: #e3f4ea;
  --down: #d6402b;
  --down-soft: #fbe6e2;
  --warn: #d99a12;
  --warn-soft: #fbf0d6;
  --paused: #8a8f98;
  --paused-soft: #ecedef;
  --none: #dedbd2;
  --focus: #4f6bff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(20, 22, 26, .04), 0 8px 24px -12px rgba(20, 22, 26, .12);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Cascadia Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1012; --bg-2: #15181b; --surface: #171a1e; --ink: #eceef0; --ink-2: #c4c8ce; --muted: #8b9098;
    --line: #262a30; --line-2: #333840; --up-soft: #12301f; --down-soft: #3a1914; --warn-soft: #36290b;
    --paused-soft: #24272c; --none: #2a2e34; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1012; --bg-2: #15181b; --surface: #171a1e; --ink: #eceef0; --ink-2: #c4c8ce; --muted: #8b9098;
  --line: #262a30; --line-2: #333840; --up-soft: #12301f; --down-soft: #3a1914; --warn-soft: #36290b;
  --paused-soft: #24272c; --none: #2a2e34; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, .mono, .num { font-family: var(--font-mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; text-decoration: none; letter-spacing: -.03em; line-height: 1; }
.brand-mark { width: 32px; height: 32px; display: block; flex: none; filter: drop-shadow(0 1px 1.5px rgba(20, 22, 26, .18)); }
.brand-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brand-mark .bm-line, .owl .bm-line { stroke: var(--signal); }
.brand-mark .bm-dot, .owl .bm-dot { fill: var(--signal); }
.brand-rest { font-weight: 500; color: color-mix(in srgb, currentColor 58%, transparent); }
.owl-eyes { transform-origin: 32px 40.5px; }
.brand:hover .owl-eyes { animation: owl-blink .5s ease-in-out 2; }
.owl .owl-eyes { animation: owl-idle 6s infinite; }
@keyframes owl-blink { 50% { transform: scaleY(.08); } }
@keyframes owl-idle { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.08); } }
@media (prefers-reduced-motion: reduce) { .owl .owl-eyes, .brand:hover .owl-eyes { animation: none; } }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.05rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 600 .93rem var(--font); text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.btn-danger:hover { background: var(--down-soft); }
.btn-sm { padding: .38rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field { margin-bottom: 1.05rem; }
.hint { color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.input, select.input, textarea.input { width: 100%; padding: .66rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
textarea.input { min-height: 90px; font-family: var(--font-mono); font-size: .85rem; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 55%, transparent); }
.input-error { border-color: var(--down); }
.error { color: var(--down); font-size: .84rem; margin-top: .3rem; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid var(--line); background: var(--surface); }
.alert-ok { background: var(--up-soft); border-color: transparent; }
.alert-err { background: var(--down-soft); border-color: transparent; }
.alert-warn { background: var(--warn-soft); border-color: transparent; }

.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: .55rem .85rem; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 550; background: var(--surface); }
.seg input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); }

/* ---------- status pills / dots ---------- */
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--paused); }
.dot.up { background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.dot.down { background: var(--down); box-shadow: 0 0 0 4px var(--down-soft); animation: pulse 1.6s infinite; }
.dot.degraded, .dot.minor { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.dot.paused, .dot.pending { background: var(--paused); box-shadow: 0 0 0 4px var(--paused-soft); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .dot.down { animation: none; } .btn { transition: none; } }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--paused-soft); color: var(--ink-2); white-space: nowrap; }
.pill.up { background: var(--up-soft); color: var(--up); }
.pill.down { background: var(--down-soft); color: var(--down); }
.pill.degraded, .pill.minor { background: var(--warn-soft); color: #9a6a00; }
:root[data-theme="dark"] .pill.degraded { color: var(--warn); }
.tag { display: inline-block; padding: .05rem .45rem; border-radius: 6px; background: var(--bg-2); font-size: .76rem; color: var(--ink-2); margin-right: .25rem; }

/* ---------- marketing ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 0; }
.site-nav nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 550; }
.hero { padding: 56px 0 40px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.hero > * { min-width: 0; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--signal) 62%); }
:root[data-theme="dark"] .hero h1 em { background: none; color: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { background: none; color: var(--signal); } }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 .8rem; }
.eyebrow { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; font: 600 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.mock-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .7rem .4rem; border-bottom: 1px dashed var(--line); }
.mock-row:last-child { border-bottom: 0; }
.mock-bars { display: flex; gap: 2px; margin-top: .35rem; }
.mock-bars i { flex: 1; height: 18px; border-radius: 3px; background: var(--up); opacity: .85; }
.mock-bars i.m { background: var(--warn); } .mock-bars i.x { background: var(--down); }
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; justify-content: space-between; padding: 18px 20px; font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); }
.features { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); padding: 56px 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico, .feat-card .ico { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(#272b32, #0f1114); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 1px 2px rgba(20,22,26,.18); display: grid; place-items: center; margin-bottom: .9rem; }
.feature .ico svg { width: 20px; height: 20px; stroke: var(--signal); }
.section-title { text-align: center; margin: 0 auto 1.6rem; max-width: 40rem; }
.pricing { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); padding: 8px 0 56px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 20px; background: var(--signal); color: var(--signal-ink); font: 700 .72rem var(--font-mono); padding: .2rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.plan .price { font: 700 2.3rem var(--font-display); letter-spacing: -.03em; margin: .4rem 0 .1rem; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; flex: 1; }
.plan li { padding: .32rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.plan li::before { content: "+ "; font-family: var(--font-mono); color: var(--up); font-weight: 700; }
.cta-band { background: radial-gradient(120% 140% at 100% 0%, #23282f 0%, #121417 55%); color: #eceef0; border-radius: 28px; padding: 48px; display: flex; justify-content: space-between; gap: 1.5rem 2rem; align-items: flex-end; flex-wrap: wrap; margin: 88px 0 64px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: .2rem 0 .5rem; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.04em; max-width: 18ch; }
.cta-band p { margin: 0; color: rgba(236, 238, 240, .7); max-width: 34em; }
.cta-band .kicker { color: var(--signal); }
.cta-art { position: absolute !important; top: 18px; right: -3%; width: 62%; opacity: .45; pointer-events: none; }
.cta-art .ekg { height: 110px; }
.cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-on-dark:hover { border-color: #fff; }
.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .88rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: var(--bg); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand-mark { background: #000; }
.auth-side h2 { color: var(--bg); font-size: 2rem; max-width: 14em; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.ekg { width: 100%; height: 80px; display: block; }
.ekg path { stroke: var(--signal); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.6s cubic-bezier(.6, 0, .3, 1) forwards; }
.ekg circle { fill: var(--signal); opacity: 0; animation: dot-on .3s 3.3s forwards, dot-live 2.4s 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot-on { to { opacity: 1; } }
@keyframes dot-live { 50% { transform: scale(.7); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .ekg path { animation: none; stroke-dashoffset: 0; } .ekg circle { animation: none; opacity: 1; } }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.2rem; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 550; }
.side nav a svg { width: 18px; height: 18px; stroke: currentColor; flex: none; }
.side nav a:hover { background: var(--surface); color: var(--ink); }
.side nav a.active { background: var(--ink); color: var(--bg); }
.side nav a .count { margin-left: auto; font: 600 .75rem var(--font-mono); background: var(--down); color: #fff; border-radius: 999px; padding: 0 .45rem; }
.side .org { margin-top: auto; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .86rem; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 1.35rem; margin: 0; }
.topbar .actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.content { padding: 24px 28px 60px; max-width: 1280px; }
.mobile-nav { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.card:has(> table.list) { overflow-x: auto; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.card-head h2, .card-head h3 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font: 700 1.9rem var(--font-display); letter-spacing: -.03em; margin-top: .2rem; }
.stat .v.up { color: var(--up); } .stat .v.down { color: var(--down); }

.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.list td { padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list tr.link { cursor: pointer; }
.list tr.link:hover td { background: var(--bg); }
.mon-name { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.mon-name a { font-weight: 650; text-decoration: none; }
.mon-name .sub { color: var(--muted); font-size: .82rem; font-family: var(--font-mono); }
.right { text-align: right; }

.empty { text-align: center; padding: 48px 20px; }
.empty .ekg { max-width: 360px; margin: 0 auto 1rem; display: block; }
.empty .ekg path { stroke: var(--line-2); animation: none; stroke-dashoffset: 0; }
.empty .ekg circle { fill: var(--line-2); animation: none; opacity: 1; }

.bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.bars span { flex: 1; border-radius: 3px; background: var(--none); min-width: 2px; position: relative; }
.bars span.up { background: var(--up); }
.bars span.minor { background: var(--warn); }
.bars span.major { background: var(--down); }
.bars-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: .4rem; font-family: var(--font-mono); }

.chart { width: 100%; height: 170px; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart .area { fill: color-mix(in srgb, var(--signal) 45%, transparent); }
.chart .fail { fill: var(--down); }
.chart { color: var(--ink); }
.chart text { fill: var(--muted); font: 11px var(--font-mono); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .86rem; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: .4rem; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.danger-zone { border-color: color-mix(in srgb, var(--down) 35%, var(--line)); }

/* ---------- public status page ---------- */
.status-wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.banner { border-radius: 18px; padding: 22px 24px; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; font: 650 1.2rem var(--font-display); }
.banner.up { background: var(--up); color: #fff; }
.banner.minor { background: var(--warn); color: #241800; }
.banner.major { background: var(--down); color: #fff; }
.banner.none { background: var(--bg-2); }
.svc { padding: 18px 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; align-items: center; }
.powered { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .site-nav nav { gap: .8rem; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .mobile-nav { display: flex; gap: .3rem; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
  .mobile-nav a { padding: .4rem .75rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
  .mobile-nav a.active { background: var(--ink); color: var(--bg); }
  .topbar { padding: 12px 16px; position: static; }
  .content { padding: 16px 16px 48px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .site-nav nav a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .features, .pricing { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .cta-band { padding: 26px; }
  .list .hide-xs { display: none; }
}

/* ---------- portal v2 ---------- */
.tabs { display: flex; gap: .25rem; padding: 10px 28px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--ink); }
.summary { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid var(--line); background: var(--surface); font-size: 1.02rem; }
.summary.up { background: var(--up-soft); border-color: transparent; }
.summary.minor { background: var(--warn-soft); border-color: transparent; }
.summary.major { background: var(--down-soft); border-color: transparent; }
.summary .summary-meta { margin-left: auto; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; margin-right: auto; }
.chip { display: inline-flex; gap: .4rem; align-items: center; padding: .38rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: .86rem; color: var(--ink-2); background: var(--surface); }
.chip span { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on span { color: inherit; opacity: .75; }
.row-notes { margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .2rem; }
.row-notes a.tag { text-decoration: none; }
.tag-warn { background: var(--warn-soft); color: #8a5d00; }
.tag-maint { background: var(--bg-2); color: var(--ink-2); border: 1px dashed var(--line-2); }
.checklist .card-head h3 { display: flex; gap: .6rem; align-items: baseline; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px dashed var(--line); }
.steps li:first-child { border-top: 0; }
.steps li.done .step-text strong { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
.step-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
.steps li.done .step-mark { background: var(--up); border-color: var(--up); color: #fff; }
.step-mark svg { width: 14px; height: 14px; }
.quick-inline { display: flex; gap: .5rem; max-width: 560px; margin: 1rem auto 0; }
.quick-label { font: 650 1.15rem var(--font-display); letter-spacing: -.02em; display: block; margin-bottom: .6rem; }
.quick-row { display: flex; gap: .6rem; }
.quick-row .input { flex: 1; min-width: 0; }
.input-lg { font-size: 1.05rem; padding: .8rem .95rem; }
.input-sm { padding: .3rem .5rem; font-size: .85rem; width: auto; }
details.advanced > summary { cursor: pointer; list-style: none; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::before { content: "+"; font-family: var(--font-mono); font-weight: 700; width: 1rem; }
details.advanced[open] > summary::before { content: "-"; }
details.advanced[open] > summary { margin-bottom: .6rem; }
.adv-section { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.adv-section h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--font); margin-bottom: .7rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 400; }
.check input { margin-top: .25rem; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.check-grid { display: grid; gap: .4rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
fieldset.channels { border: 0; padding: 0; margin: .4rem 0 0; }
fieldset.channels legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }
.head-card { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.copy-row code { overflow-wrap: anywhere; background: var(--bg-2); padding: .35rem .55rem; border-radius: 7px; }
.codeblock { background: var(--bg-2); padding: .8rem; border-radius: 9px; overflow: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.codeblock.preview { max-height: 180px; }
.inline-icon { width: 16px; height: 16px; vertical-align: -3px; }
.timeline li:has(> form) { grid-template-columns: 90px minmax(0, 1fr) auto; align-items: start; }
.org-switch select { font-weight: 650; padding: .35rem .5rem; margin-bottom: .2rem; }
.maint-note { border-left: 4px solid var(--warn); }
.channel-help p { margin: 0; }
@media (max-width: 820px) {
  .tabs { padding: 8px 16px 0; }
  .quick-row { flex-direction: column; }
  .summary .summary-meta { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .steps li { grid-template-columns: 28px 1fr; }
  .steps li .btn { grid-column: 2; justify-self: start; }
  .quick-inline { flex-direction: column; }
}
/* ops: entitlement editor */
.ent-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1rem; padding: .6rem 0; border-top: 1px dashed var(--line); align-items: start; }
.ent-row:first-of-type { border-top: 0; }
.ent-label code { margin-left: .3rem; }
.check.small { font-size: .85rem; }
@media (max-width: 820px) { .ent-row { grid-template-columns: 1fr; gap: .4rem; } }
/* pricing page */
.price-toggles { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: -0.4rem 0 1.6rem; }
.seg-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); gap: 2px; }
.seg-toggle button { border: 0; background: transparent; color: var(--ink-2); font: 600 .9rem var(--font); padding: .45rem .95rem; border-radius: 999px; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.seg-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg-toggle .save { font: 700 .7rem var(--font-mono); background: var(--signal); color: var(--signal-ink); padding: .1rem .4rem; border-radius: 999px; text-transform: uppercase; }
.compare-wrap { padding: 0; overflow-x: auto; margin-bottom: 56px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
.compare th, .compare td { padding: .6rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare thead th { font: 700 1.05rem var(--font-display); position: sticky; top: 0; background: var(--surface); }
.compare thead th.hl { box-shadow: inset 0 -3px 0 var(--signal); }
.compare tr.grp th { background: var(--bg-2); font: 600 .75rem var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; }
.compare td.yes { color: var(--up); font-weight: 700; }
.compare td.no { color: var(--muted); }
.promise { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 36px; margin-bottom: 56px; }
.promise h2 { font-size: 1.9rem; }
.promise p { color: var(--ink-2); margin: 0; }
.promise-facts { display: grid; gap: .8rem; }
.promise-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; display: flex; flex-direction: column; }
.promise-facts span { color: var(--muted); font-size: .88rem; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; padding: 24px; } }
/* footer v2 */
.site-foot .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.6rem; align-items: start; }
.site-foot nav { display: flex; flex-direction: column; gap: .35rem; }
.site-foot nav strong { color: var(--ink); font-weight: 650; margin-bottom: .2rem; }
.site-foot nav a { text-decoration: none; color: var(--muted); }
.site-foot nav a:hover { color: var(--ink); }
.site-foot .foot-bottom { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 820px) { .site-foot .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-foot .foot-grid { grid-template-columns: 1fr; } }
/* legal documents */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 32px 20px 64px; }
.legal-nav { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: .2rem; font-size: .92rem; }
.legal-nav a { padding: .4rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.legal-nav a.on { background: var(--ink); color: var(--bg); }
.legal-doc { max-width: 780px; }
.legal-doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.legal-doc h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-doc h3 { font-size: 1.02rem; margin-top: 1.2rem; }
.legal-doc p, .legal-doc li { color: var(--ink-2); line-height: 1.65; }
.legal-doc ol, .legal-doc ul { padding-left: 1.3rem; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .92rem; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.legal-doc th { background: var(--bg-2); }
.legal-meta { color: var(--muted); font-size: .88rem; margin-bottom: 1.6rem; }
.legal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 1.2rem; }
.legal-cards a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.legal-cards a strong { display: block; margin-bottom: .3rem; }
.legal-cards a span { color: var(--muted); font-size: .88rem; }
@media (max-width: 820px) { .legal { grid-template-columns: 1fr; gap: 16px; } .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
/* features page */
.hero-cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.feat-toc { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .4rem 0 2.4rem; }
.feat-toc a { padding: .4rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.feat-block { padding: 28px 0 40px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.feat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: end; margin-bottom: 1.4rem; }
.feat-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.feat-head p { margin: 0; }
.feat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat-card .ico svg { width: 20px; height: 20px; stroke: var(--signal); }
.feat-card ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.feat-card li { padding: .28rem 0; font-size: .92rem; color: var(--ink-2); border-top: 1px dashed var(--line); }
.feat-card li:first-child { border-top: 0; }
.feat-rows { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.feat-rows > div { padding: 18px; border-left: 3px solid var(--signal); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.feat-rows h3 { margin-bottom: .35rem; }
.feat-rows p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.chan-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.chan-list span { font: 600 .82rem var(--font-mono); padding: .35rem .7rem; border-radius: 999px; background: var(--ink); color: var(--bg); }
@media (max-width: 820px) { .feat-head { grid-template-columns: 1fr; gap: .5rem; } }

/* public pages: same distance between the header and the first heading */
.page-top { padding-top: 32px; }

/* sign-in options, 2FA, billing */
.oauth-btn { display: inline-flex; gap: .6rem; align-items: center; justify-content: center; }
.oauth-btn svg { flex: none; }
.or-line { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: 1rem 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.inline-code { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.setup-steps { padding-left: 1.2rem; display: grid; gap: 1rem; }
.qr { margin: .8rem 0 .4rem; padding: 10px; background: #fff; border-radius: 12px; display: inline-block; border: 1px solid var(--line); }
.qr img { display: block; }
.recovery { border: 2px solid var(--signal); }
.code-list { columns: 2; padding-left: 1.4rem; font-family: var(--font-mono); }
.code-list li { padding: .15rem 0; }
.billing-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-bottom: .8rem; }
.billing-plans[inert] { opacity: .55; }
.billing-plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: .6rem; background: var(--surface); }
.billing-plan.is-current { border: 2px solid var(--ink); }
.billing-plan h4 { margin: 0; font-size: 1.05rem; font-family: var(--font-display); }

/* ---------- homepage v3: brand detail ---------- */
.btn-lg { padding: .8rem 1.3rem; font-size: 1rem; }
.kicker { display: inline-block; font: 600 .76rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .7rem; }
.hero-art { position: absolute; left: 0; right: 0; top: 170px; height: 160px; overflow: hidden; pointer-events: none; z-index: 0; opacity: .12; }
.hero-art .ekg { height: 160px; width: 130%; margin-left: -15%; }
.hero { position: relative; z-index: 1; padding: 64px 20px 64px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.045em; line-height: 1.04; }
.hero-note { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; }
.hero-note span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-note svg { width: 15px; height: 15px; color: var(--up); stroke-width: 2.4; }
.hero-visual { position: relative; padding-bottom: 52px; }
.console { padding-bottom: 6px; }
.console { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 0 rgba(20,22,26,.04), 0 30px 60px -30px rgba(20,22,26,.35); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: .8rem; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: .8rem; color: var(--muted); }
.console-bar .lights { display: inline-flex; gap: 6px; }
.console-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.console-bar .live { margin-left: auto; display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; color: var(--ink-2); }
.console-bar .live .dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px var(--up-soft); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px transparent; } }
.console-sum { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; padding: 16px 20px 4px; font-size: .88rem; }
.console-sum strong { font: 700 1.05rem var(--font-display); letter-spacing: -.02em; }
.console .mock-row { padding: .75rem 20px; }
.toast { position: absolute; left: -32px; bottom: 0; display: flex; gap: .8rem; align-items: center; padding: 12px 16px 12px 12px; border-radius: 16px; background: #14161a; color: #eceef0; box-shadow: 0 24px 44px -18px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); max-width: 92%; font-size: .86rem; }
.toast strong { display: block; font-weight: 650; }
.toast div span { color: rgba(236,238,240,.65); font-size: .78rem; }
.toast-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--down); display: grid; place-items: center; flex: none; }
.toast-ico svg { width: 18px; height: 18px; color: #fff; }
.toast-time { margin-left: .4rem; color: rgba(236,238,240,.5); font-size: .78rem; align-self: flex-start; }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 28px 22px; display: flex; flex-direction: column; gap: .2rem; border-left: 1px solid var(--line); }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts-grid strong { font: 700 2.1rem var(--font-display); letter-spacing: -.045em; line-height: 1.1; }
.facts-grid span { color: var(--muted); font-size: .9rem; }

.block { padding: 88px 20px 0; }
.block-head { max-width: 42rem; margin-bottom: 2rem; }
.block-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.04em; line-height: 1.1; }
.block-head p { font-size: 1.05rem; margin: 0; }
.block .features { padding: 0; }
.block-more { margin: 1.6rem 0 0; }
.feature { transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.how-n { font: 600 .8rem var(--font-mono); color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.how-n::after { content: ""; flex: 1; border-top: 1px dashed var(--line-2); }
.how p { flex: 1; }
.how-art { margin-top: .4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: .55rem; min-height: 116px; align-content: center; font-size: .84rem; }
.fake-input { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: .45rem .45rem .45rem .7rem; }
.fake-input .mono { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fake-btn { background: var(--signal); color: var(--signal-ink); font-weight: 700; border-radius: 6px; padding: .2rem .6rem; font-size: .78rem; }
.fake-opts { display: flex; gap: .35rem; }
.fake-opts span { padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line-2); font: 500 .74rem var(--font-mono); color: var(--muted); }
.fake-opts span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.probe { display: grid; grid-template-columns: 58px 1fr auto; gap: .6rem; align-items: center; }
.probe .mono { font-size: .74rem; color: var(--muted); }
.probe-line { display: flex; gap: 3px; }
.probe-line i { flex: 1; height: 14px; border-radius: 3px; background: var(--up); opacity: .85; }
.probe-line i.x { background: var(--down); opacity: 1; }
.probe-ok { display: flex; align-items: center; gap: .5rem; font-weight: 650; border-top: 1px dashed var(--line); padding-top: .55rem; }
.probe-ok .dot, .msg .dot { width: 8px; height: 8px; box-shadow: none; animation: none; }
.msg { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: .5rem .7rem; }

.dark-band { margin-top: 96px; padding: 88px 0; background: radial-gradient(90% 120% at 0% 0%, #1f2329 0%, #0f1114 60%); color: #eceef0; }
.dark-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.04em; line-height: 1.1; }
.dark-band p { color: rgba(236,238,240,.72); font-size: 1.05rem; }
.dark-band .kicker { color: var(--signal); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .6rem; align-items: center; color: #eceef0; }
.ticks svg { width: 18px; height: 18px; color: var(--signal); stroke-width: 2.4; flex: none; }
.sp-mock { background: #f7f7f4; color: #14161a; border-radius: 20px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.sp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #6c7079; }
.sp-logo { font: 700 1.1rem var(--font-display); letter-spacing: -.03em; color: #14161a; }
.sp-banner { display: flex; align-items: center; gap: .6rem; background: var(--up); color: #fff; border-radius: 12px; padding: 12px 14px; font: 650 1rem var(--font-display); margin-bottom: 8px; }
.sp-banner svg { width: 20px; height: 20px; stroke-width: 2.6; }
.sp-svc { padding: 12px 2px; border-bottom: 1px solid #e2dfd6; }
.sp-svc:last-child { border-bottom: 0; padding-bottom: 0; }
.sp-top { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .45rem; }
.sp-top .num { color: #6c7079; }
.sp-bars { display: flex; gap: 2px; }
.sp-bars i { flex: 1; height: 22px; border-radius: 2px; background: var(--up); opacity: .85; }
.sp-bars i.m { background: var(--warn); opacity: 1; }

.chan-cloud { display: flex; flex-wrap: wrap; gap: .55rem; }
.chan-cloud span { padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .95rem; }

.site-foot .foot-claim { font: 600 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-top: 1rem; display: block; }

@media (max-width: 1000px) {
  .how { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { padding-bottom: 0; }
  .toast { position: relative; left: auto; bottom: auto; margin: -22px 12px 0; max-width: none; }
  .hero-art { display: none; }
  .block { padding-top: 56px; }
  .dark-band { margin-top: 56px; padding: 56px 0; }
  .cta-band { margin-top: 56px; }
}
@media (max-width: 560px) {
  .cta-band { padding: 28px; }
  .cta-art { width: 100%; right: -20%; opacity: .25; }
  .facts-grid > div { padding: 18px 12px 18px 0; }
  .facts-grid > div:nth-child(even) { padding-left: 12px; }
  .facts-grid strong { font-size: 1.7rem; }
}
@media (max-width: 820px) { .hero { padding-top: 32px; padding-bottom: 40px; } }
@media (max-width: 560px) { .hero, .block { padding-left: 16px; padding-right: 16px; } }

/* ---------- oncalm owl: night hero ---------- */
.night-hero { background: radial-gradient(80% 120% at 85% 20%, #1c2026 0%, #0e1012 60%); color: #eceef0; border-bottom: 1px solid #262a30; margin-top: 4px; }
.night-hero .hero { padding-top: 72px; padding-bottom: 80px; }
.night-hero .hero h1 { color: #fff; }
.night-hero .hero h1 em { background: none; color: var(--signal); font-style: normal; }
.night-hero .hero .lead { color: rgba(236, 238, 240, .78); }
.night-hero .eyebrow, .night-hero .hero-note { color: rgba(236, 238, 240, .6); }
.night-hero .hero-note svg { color: var(--signal); }
.night-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.night-hero .btn-ghost:hover { border-color: #fff; }
.owl-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.owl-stage .owl { width: min(280px, 68%); height: auto; aspect-ratio: 1; filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .55)); }
.nightlog { width: 100%; max-width: 380px; background: #181b20; border: 1px solid #2a2e34; border-radius: 14px; padding: 12px 16px; font: 400 .82rem var(--font-mono); display: grid; gap: 6px; color: #c4c8ce; }
.nightlog div { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; }
.nightlog b { font-weight: 500; color: var(--signal); }
.see { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.see > * { min-width: 0; }
.see h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.04em; line-height: 1.1; }
.see p { font-size: 1.05rem; }
.auth-side .owl { width: 120px; height: 120px; margin-bottom: 1.6rem; display: block; }
.empty .owl { width: 84px; height: 84px; margin: 0 auto 1rem; display: block; }
@media (max-width: 820px) {
  .see { grid-template-columns: 1fr; gap: 28px; }
  .night-hero .hero { padding-top: 40px; padding-bottom: 48px; }
  .owl-stage .owl { width: 180px; }
}
.night-hero .eyebrow { flex-wrap: nowrap; align-items: flex-start; }
.night-hero .eyebrow .dot { margin-top: .2em; box-shadow: 0 0 0 4px rgba(30, 154, 86, .25); }

/* header on the night hero (homepage): the hero slides up under the transparent header */
.site-nav.on-night { position: relative; z-index: 2; color: #eceef0; }
.site-nav.on-night nav a:not(.btn) { color: rgba(236, 238, 240, .82); }
.site-nav.on-night nav a:not(.btn):hover { color: #fff; }
.site-nav.on-night + main > .night-hero:first-child { margin-top: -68px; padding-top: 68px; }

/* small labels above headings: Sora, sentence case, signal ink (was DM Mono uppercase) */
:root { --kicker: #4c6300; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --kicker: #c8f135; } }
:root[data-theme="dark"] { --kicker: #c8f135; }
.kicker, .eyebrow { font: 600 .95rem var(--font-display); text-transform: none; letter-spacing: -.01em; color: var(--kicker); }
.kicker { margin-bottom: .6rem; }
.site-foot .foot-claim { font: 600 .95rem var(--font-display); text-transform: none; letter-spacing: -.01em; color: var(--kicker); }

/* footer theme switch: a quiet sun / moon pill */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.theme-switch button { width: 30px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.theme-switch button svg { width: 15px; height: 15px; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 0 0 1px var(--line); }
.theme-switch button[aria-pressed="true"] svg { color: var(--kicker); }
.theme-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- confirmation dialog (HTML popover, no JavaScript) ---------- */
.confirm-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); padding: 26px 26px 22px; text-align: left;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 90px -30px rgba(0,0,0,.6); }
.confirm-dialog::backdrop { background: rgba(10, 11, 13, .58); backdrop-filter: blur(5px); }
.confirm-dialog:popover-open { animation: cd-in .18s ease-out; }
@keyframes cd-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .confirm-dialog:popover-open { animation: none; } }
.confirm-dialog form { margin: 0; display: contents; }
.cd-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--bg-2); color: var(--kicker); }
.confirm-dialog.is-danger .cd-mark { background: var(--down-soft); color: var(--down); }
.cd-mark svg { width: 22px; height: 22px; }
.confirm-dialog h3 { font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.025em; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.cd-body { color: var(--muted); margin: 0 0 1.1rem; line-height: 1.5; }
.cd-extra { margin-bottom: 1rem; }
.cd-type { margin-bottom: 1.2rem; }
.cd-type label { font-weight: 500; font-size: .9rem; color: var(--ink-2); margin-bottom: .45rem; }
.cd-type code { font-family: var(--font-mono); font-size: .86rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; color: var(--ink); overflow-wrap: anywhere; }
.cd-type .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 35%, transparent); border-color: var(--down); }
.confirm-dialog:not(.is-danger) .cd-type .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 45%, transparent); border-color: var(--ink); }
.cd-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.btn-danger-solid { background: var(--down); border-color: var(--down); color: #fff; }
.btn-danger-solid:hover { background: color-mix(in srgb, var(--down) 88%, #000); }
.confirm-dialog:has(.cd-type input:invalid) .btn-danger-solid { opacity: .45; }

/* monitor list: site icon with the status dot as a badge; numeric column headers aligned with their values */
.list th.right, .list td.right { text-align: right; }
.mon-ico { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #f7f7f4; border: 1px solid var(--line); }
.mon-ico img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.mon-ico .dot { position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; outline: 2.5px solid var(--surface); }
.list tr.link:hover .mon-ico .dot { outline-color: var(--bg); }

/* billing: period tiles + currency switch (radios, no JavaScript; prices follow the currency via :has) */
.billing-plan .muted.small { margin: 0; }
.bp-period { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.bp-opt { margin: 0; cursor: pointer; font-weight: 400; }
.bp-opt input, .bp-cur input { position: absolute; opacity: 0; pointer-events: none; }
.bp-card { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .75rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.bp-opt:hover .bp-card { border-color: var(--ink-2); }
.bp-opt input:checked + .bp-card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.bp-opt input:focus-visible + .bp-card { outline: 2px solid var(--focus); outline-offset: 2px; }
.bp-iv { font-size: .78rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.bp-iv em { font-style: normal; font: 600 .68rem var(--font-mono); color: var(--signal-ink); background: var(--signal); border-radius: 999px; padding: .05rem .4rem; }
.bp-amt { font: 700 1.15rem var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.bp-amt small { font: 500 .78rem var(--font); color: var(--muted); margin-left: .15rem; letter-spacing: 0; }
.bp-amt .c-EUR { display: none; }
.billing-plan:has(.bp-cur input[value="EUR"]:checked) .bp-amt .c-EUR { display: inline; }
.billing-plan:has(.bp-cur input[value="EUR"]:checked) .bp-amt .c-USD { display: none; }
.bp-cur { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.bp-cur label { margin: 0; cursor: pointer; }
.bp-cur span { display: block; padding: .2rem .65rem; border-radius: 999px; font: 600 .74rem var(--font-mono); color: var(--muted); }
.bp-cur input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.15), inset 0 0 0 1px var(--line); }
.bp-cur input:focus-visible + span { outline: 2px solid var(--focus); }
.billing-plan .btn { margin-top: auto; }

/* cookie consent (shown by analytics.js only when analytics is on and no choice was made) */
.consent { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 32px)); padding: 16px 18px; border-radius: 16px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); display: grid; gap: 12px; font-size: .9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.consent p strong { color: var(--ink); display: block; font: 700 1rem var(--font-display); letter-spacing: -.02em; margin-bottom: .2rem; }
.consent-actions { display: flex; gap: .5rem; justify-content: flex-end; }

/* /bot */
.bot-doc .bot-ua { font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bot-table { overflow-x: auto; }
.bot-table code { white-space: nowrap; }
.bot-doc { margin: 0 auto; padding-bottom: 64px; }

/* status page admin: full public address */
.public-url { display: flex; flex-direction: column; gap: 4px; }
.public-url a { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 600; word-break: break-all; text-decoration: none; }
.public-url a svg { width: 15px; height: 15px; flex: none; }
.public-url a:hover { text-decoration: underline; }

/* history range switch (monitors, monitor detail, status pages) */
.range-pick { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.range-pick a, .range-pick span { padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; }
.range-pick a:hover { color: var(--ink); }
.range-pick a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.range-pick span.off { opacity: .45; cursor: not-allowed; }
.range-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
