/* Cuckoo: hand-written CSS, no framework. Light and dark themes via custom properties. */
:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #f0f3f2;
  --border: #e1e6e4;
  --border-strong: #c9d1ce;
  --text: #12201c;
  --muted: #5b6b66;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #e3f4f1;
  --accent-text: #ffffff;
  --amber: #b45309;
  --up: #15803d;
  --up-soft: #e6f6eb;
  --late: #b45309;
  --late-soft: #fdf3e1;
  --down: #c81e1e;
  --down-soft: #fdebeb;
  --idle: #6b7280;
  --idle-soft: #eef0f2;
  --start: #2563eb;
  --code-bg: #0f1a17;
  --code-text: #d8f3ec;
  --shadow: 0 1px 2px rgba(16, 32, 28, .05), 0 1px 3px rgba(16, 32, 28, .07);
  --shadow-lg: 0 14px 36px rgba(16, 32, 28, .14), 0 2px 6px rgba(16, 32, 28, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1210; --surface: #121b18; --surface-2: #18231f; --border: #24322d; --border-strong: #34463f;
    --text: #e4eeea; --muted: #93a59e; --accent: #2dd4bf; --accent-hover: #5eead4; --accent-soft: #11302b; --accent-text: #06201b;
    --up: #4ade80; --up-soft: #10291a; --late: #fbbf24; --late-soft: #2c2410; --down: #f87171; --down-soft: #301515;
    --idle: #9ca3af; --idle-soft: #1d2522; --start: #60a5fa; --code-bg: #070d0b; --code-text: #c9efe5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45); --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1210; --surface: #121b18; --surface-2: #18231f; --border: #24322d; --border-strong: #34463f;
  --text: #e4eeea; --muted: #93a59e; --accent: #2dd4bf; --accent-hover: #5eead4; --accent-soft: #11302b; --accent-text: #06201b;
  --up: #4ade80; --up-soft: #10291a; --late: #fbbf24; --late-soft: #2c2410; --down: #f87171; --down-soft: #301515;
  --idle: #9ca3af; --idle-soft: #1d2522; --start: #60a5fa; --code-bg: #070d0b; --code-text: #c9efe5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45); --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .05em .35em; overflow-wrap: anywhere; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.narrow { max-width: 460px; margin: 32px auto; }
.narrow-wide { max-width: 860px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt { margin-top: 20px; }
.mt-sm { margin-top: 10px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.stack > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 6px; }
.stack > * { margin-bottom: 0; }

/* top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.08rem; color: var(--text); text-decoration: none; }
.logo { width: 28px; height: 28px; }
.logo-bg { fill: var(--accent); }
.logo-face { fill: var(--surface); }
.logo-hand { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.logo-dot { fill: #f59e0b; }
.mainnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.mainnav a:hover { color: var(--text); background: var(--surface-2); }
.mainnav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { background: none; border: 1px solid transparent; color: var(--muted); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; font: inherit; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-btn { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--border); }
.menu-btn:hover { background: var(--surface-2); }
.menu-org { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: .92rem; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; }
.avatar.sm { width: 24px; height: 24px; font-size: .75rem; vertical-align: middle; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 240px; padding: 8px; z-index: 30; }
.menu-email { color: var(--muted); font-size: .85rem; padding: 6px 10px; margin: 0; border-bottom: 1px solid var(--border); margin-bottom: 6px; overflow-wrap: anywhere; }
.menu-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 10px; margin: 0; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 7px; color: var(--text); text-decoration: none; font: inherit; cursor: pointer; }
.menu-item:hover, .menu-item.active { background: var(--surface-2); color: var(--text); }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; white-space: nowrap; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, var(--border)); }
.btn-danger:hover { background: var(--down-soft); color: var(--down); }
.btn-sm { padding: 5px 11px; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 1.02rem; border-radius: 11px; }
.btn-block { width: 100%; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 4px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: baseline; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 11px; width: 100%; min-width: 0; }
input[type="radio"], input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
input.num { max-width: 110px; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.field .small { margin: 5px 0 0; }
.inline-fields { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-fields > input:not(.num) { flex: 1 1 200px; }
.inline-fields > select { width: auto; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.seg label { margin: 0; font-weight: 500; padding: 5px 12px; border-radius: 7px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.seg label:has(input:checked) { background: var(--surface); box-shadow: var(--shadow); }
.form-check:has(input[name="kind"][value="cron"]:checked) .kind-period { display: none; }
.form-check:has(input[name="kind"][value="period"]:checked) .kind-cron { display: none; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { background: var(--surface-2); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* cards, alerts, layout */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.card h2 { font-size: 1.08rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 > .card, .grid-2 > .usage { margin-bottom: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; overflow-wrap: anywhere; }
.page-head p { margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.alert { border-radius: var(--radius-sm); padding: 11px 15px; margin-bottom: 18px; border: 1px solid; }
.alert p:last-child { margin-bottom: 0; }
.alert-ok { background: var(--up-soft); border-color: color-mix(in srgb, var(--up) 35%, transparent); }
.alert-error { background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 35%, transparent); }
.banner { border-bottom: 1px solid var(--border); font-size: .92rem; }
.banner-warn { background: var(--late-soft); }
.banner-info { background: var(--accent-soft); }
.banner-inner { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); vertical-align: middle; text-transform: none; }
.danger-zone { border-color: color-mix(in srgb, var(--down) 30%, var(--border)); }
.notes p { margin: 4px 0 0; }
.empty { text-align: center; padding: 40px 24px; }
.tip h3 { margin-bottom: 4px; }

/* status */
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .84rem; padding: 2px 10px 2px 8px; border-radius: 999px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-up { color: var(--up); background: var(--up-soft); }
.status-late { color: var(--late); background: var(--late-soft); }
.status-down { color: var(--down); background: var(--down-soft); }
.status-down .status-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 25%, transparent); }
.status-new, .status-paused { color: var(--idle); background: var(--idle-soft); }
.running { font-size: .76rem; font-weight: 600; color: var(--start); margin-left: 6px; white-space: nowrap; }
.summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* check list */
.checks { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.checkrow + .checkrow { border-top: 1px solid var(--border); }
.checkrow-link { display: grid; grid-template-columns: 112px minmax(0, 1fr) 190px 150px; gap: 16px; align-items: center; padding: 13px 18px; color: var(--text); text-decoration: none; }
.checkrow-link:hover { background: var(--surface-2); color: var(--text); }
.checkrow-down { box-shadow: inset 3px 0 0 var(--down); }
.checkrow-late { box-shadow: inset 3px 0 0 var(--late); }
.checkrow-main { min-width: 0; display: flex; flex-direction: column; }
.checkrow-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkrow-meta { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkrow-last { text-align: right; font-size: .88rem; white-space: nowrap; }
.spark { width: 180px; height: 20px; display: block; }
.sp-ok { fill: var(--up); }
.sp-fail { fill: var(--down); }
.sp-start { fill: var(--start); opacity: .55; }

/* usage */
.usage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.card .usage { box-shadow: none; background: var(--surface-2); }
.usage-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.usage-grid dt { font-size: .78rem; color: var(--muted); }
.usage-grid dd { margin: 0; font-weight: 600; }

/* check page */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tile-value { font-size: 1.05rem; font-weight: 600; }
.grid-log { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.grid-log > .card { margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table.log { width: 100%; border-collapse: collapse; font-size: .9rem; }
.log th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.log td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.log tr:last-child td { border-bottom: 0; }
.kind { font-weight: 600; font-size: .82rem; padding: 1px 8px; border-radius: 6px; }
.kind-success { color: var(--up); background: var(--up-soft); }
.kind-fail { color: var(--down); background: var(--down-soft); }
.kind-start { color: var(--start); background: color-mix(in srgb, var(--start) 12%, transparent); }
.ua { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
details.body { margin-top: 6px; }
details.body summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
details.body pre { margin: 6px 0 0; background: var(--code-bg); color: var(--code-text); padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.tl-when { font-size: .8rem; color: var(--muted); width: 100%; }

pre.code { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .84rem; line-height: 1.6; margin: 0 0 10px; }
pre.code code { font-size: inherit; }
pre.code b { color: #fbbf24; font-weight: 600; }

/* CSS-only tabs */
.tabs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs > label { order: 0; margin: 0; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--muted); border: 1px solid transparent; }
.tabs > label:hover { color: var(--text); background: var(--surface-2); }
.tabs > input:checked + label { color: var(--text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.tabs > input:focus-visible + label { outline: 2px solid var(--accent); }
.tab-panel { order: 1; width: 100%; min-width: 0; display: none; margin-top: 8px; }
#t-curl:checked ~ .p-curl, #t-cron:checked ~ .p-cron, #t-systemd:checked ~ .p-systemd, #t-gha:checked ~ .p-gha, #t-py:checked ~ .p-py, #t-go:checked ~ .p-go { display: block; }

.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row form { margin: 0; }
.tag-slack { color: #7c3aed; }
.tag-discord { color: #4f46e5; }
.trial-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.seg-links { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.seg-links a { padding: 5px 12px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9rem; }
.seg-links a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1rem; }
.plan .ticks { flex: 1; }
.plan-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan-current { border-color: var(--border-strong); background: var(--surface-2); }
.plan-flag { position: absolute; top: -11px; left: 20px; background: var(--accent); color: var(--accent-text); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-current .plan-flag { background: var(--idle); color: #fff; }
.plan-price { font-size: 1.9rem; font-weight: 800; margin: 4px 0 0; letter-spacing: -.02em; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 14px 0; }
.ticks li { padding: 5px 0 5px 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 12px; height: 7px; border-left: 2.5px solid var(--up); border-bottom: 2.5px solid var(--up); transform: rotate(-45deg); }

/* landing */
.landing { padding-bottom: 40px; }
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 70%); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 14px; }
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.term { background: var(--code-bg); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.term-bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: rgba(255, 255, 255, .06); }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.term-bar code { color: #94a3b8; margin-left: 8px; background: none; border: 0; font-size: .78rem; }
.term-body { margin: 0; padding: 14px 16px; color: var(--code-text); font: .82rem/1.6 var(--mono); overflow-x: auto; }
.term-body .c { color: #6b8a80; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; margin-left: 28px; }
.mock-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.mock-name { font-weight: 600; font-size: .92rem; }
.mock-spark { display: flex; gap: 3px; }
.mock-spark i { width: 5px; height: 16px; border-radius: 1px; background: var(--up); }
.mock-spark i.r { background: var(--start); opacity: .55; height: 10px; margin-top: 6px; }
.mock-spark i.f { background: var(--down); }
.mock-alert { font-size: .84rem; padding: 10px; color: var(--muted); }
.section { padding-top: 56px; padding-bottom: 8px; }
.section h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }
.sentry-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; margin-top: 56px; box-shadow: var(--shadow); }
.sentry-band p { color: var(--muted); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin: 10px auto; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.cta-final { text-align: center; padding-top: 64px; padding-bottom: 40px; }

/* docs and legal */
.docs-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 7px; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 36px; scroll-margin-top: 80px; }
.prose h3 { margin-top: 20px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.legal .prose h2 { font-size: 1.08rem; margin-top: 26px; }
.legal-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 12px 0 0; }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
address { font-style: normal; }

/* footer, feedback, toast */
.footer { border-top: 1px solid var(--border); background: var(--surface); font-size: .86rem; color: var(--muted); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-links { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.fb-btn { position: fixed; right: 18px; bottom: 18px; display: flex; gap: 6px; align-items: center; background: var(--text); color: var(--bg); border: 0; border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 25; }
.fb-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.fb-pop { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--text);
  position: fixed; inset: auto 18px 70px auto; margin: 0; }
.fb-head { display: flex; justify-content: space-between; align-items: center; }
.fb-result { margin: 0; font-size: .9rem; }
.fb-result.ok { color: var(--up); }
.fb-result.error { color: var(--down); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 40; }
.toast-msg { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); }
.toast-msg.error { background: var(--down); color: #fff; }

/* responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 44px; gap: 32px; }
  .mock { margin-left: 0; }
  .features, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 520px; margin-left: auto; margin-right: auto; }
  .sentry-band { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .grid-log { grid-template-columns: minmax(0, 1fr); }
  .checkrow-link { grid-template-columns: 100px minmax(0, 1fr) 140px; }
  .checkrow-spark { display: none; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkrow-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main status" "last last"; gap: 4px 12px; padding: 12px 14px; }
  .checkrow-main { grid-area: main; }
  .checkrow-status { grid-area: status; }
  .checkrow-last { grid-area: last; text-align: left; color: var(--muted); }
  .menu-org { display: none; }
  .topbar-inner { gap: 6px 10px; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 6px; }
  .mainnav { order: 3; flex-basis: 100%; margin: 0 -8px; }
  h1 { font-size: 1.5rem; }
  .page { padding-top: 20px; }
  .card { padding: 16px; }
  .fb-btn span { display: none; }
  .fb-btn { padding: 11px; }
}
@media (max-width: 460px) {
  .hide-xs { display: none; }
  .wrap { padding: 0 14px; }
  .mainnav a { padding: 7px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .status-down .status-dot { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--down) 10%, transparent); } }
}

/* Guides and comparison pages */
.section-sm { margin: 28px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .88rem; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cards li { min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 6px; height: 100%; margin: 0; color: var(--text); text-decoration: none; transition: border-color .15s; }
.card-link:hover { border-color: var(--accent); }
.card-title { font-weight: 650; color: var(--accent); }
.card-desc { font-size: .9rem; color: var(--muted); }
.link-list { padding-left: 20px; }
.link-list li { margin: 4px 0; }
.article { max-width: 820px; margin: 0 auto; }
.article > h1 { margin-bottom: 4px; }
.article .prose { max-width: none; overflow-wrap: anywhere; }
.article .prose pre.code { margin: 12px 0 16px; }
.article .prose blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.article .prose blockquote p { margin: 4px 0; }
.article .prose :not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 4px; font-size: .86em; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 14px 0; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .9rem; }
.table-scroll th, .table-scroll td { overflow-wrap: normal; hyphens: auto; border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.table-scroll th { background: var(--surface-2); }
.article-cta { margin: 36px 0 12px; border-color: var(--accent); }
.article-cta h2 { margin-top: 0; font-size: 1.15rem; }
.cards + p { margin-top: 18px; }
.stats-table { margin-top: 16px; }
.stats-table .num { text-align: right; white-space: nowrap; }
