/* cronly.net: marketing homepage. Tokens follow the Cronly design system (OKLCH, hue 350). */

:root {
  --bg: oklch(.972 .008 350);
  --surface: oklch(.997 .003 350);
  --surface-2: oklch(.948 .008 350);
  --line: oklch(.905 .01 350);
  --ink: oklch(.2 .016 350);
  --muted: oklch(.5 .013 350);
  --primary: oklch(.55 .2 350);
  --primary-hover: oklch(.49 .2 350);
  --primary-text: oklch(.5 .2 350);
  --primary-soft: oklch(.55 .2 350 / .08);
  --primary-line: oklch(.55 .2 350 / .35);
  --on-primary: #fff;

  --ok: oklch(.54 .16 150); --ok-text: oklch(.47 .16 150); --ok-soft: oklch(.54 .16 150 / .1); --ok-line: oklch(.54 .16 150 / .38); --on-ok: #fff;
  --warn: oklch(.85 .15 82); --warn-text: oklch(.5 .15 72); --warn-soft: oklch(.74 .15 72 / .1); --warn-line: oklch(.74 .15 72 / .38); --on-warn: oklch(.3 .07 70);
  --down: oklch(.56 .2 27); --down-text: oklch(.5 .2 27); --down-soft: oklch(.56 .2 27 / .1); --down-line: oklch(.56 .2 27 / .38); --on-down: #fff;
  --degraded: oklch(.8 .13 60); --degraded-text: oklch(.5 .16 55); --degraded-soft: oklch(.64 .16 55 / .1); --degraded-line: oklch(.64 .16 55 / .38); --on-degraded: oklch(.3 .09 45);

  --hdr-bg: oklch(.972 .008 350 / .86);
  --shadow: oklch(.3 .05 350 / .4);
  --shadow-soft: oklch(.3 .05 350 / .3);

  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1240px;
  --pad: 40px;
  --hero-pad: 72px;
  --sec-pad: 104px;
  --h1: 82px;
  --h2: 62px;
  --h2-xl: 96px;
  --lead: 19px;
  --word: 86px;
  --quote: 24px;
  --cron: 40px;
  --code: 15.5px;
  --pal: 18px;
  --ok-pill: 23px;

  color-scheme: light;
}

/* Dark tokens: the dark bands of the light page, and the whole page in dark mode */
.sec-dark, :root[data-theme="dark"] {
  --bg: oklch(.155 .011 350);
  --surface: oklch(.2 .011 350);
  --surface-2: oklch(.26 .011 350);
  --line: oklch(.3 .011 350);
  --ink: oklch(.96 .005 350);
  --muted: oklch(.74 .01 350);
  --primary: oklch(.74 .17 350);
  --primary-hover: oklch(.8 .14 350);
  --primary-text: oklch(.8 .14 350);
  --primary-soft: oklch(.74 .17 350 / .12);
  --primary-line: oklch(.74 .17 350 / .4);
  --on-primary: oklch(.18 .03 350);

  --ok: oklch(.78 .16 150); --ok-text: oklch(.82 .16 150); --ok-soft: oklch(.78 .16 150 / .15); --ok-line: oklch(.78 .16 150 / .38); --on-ok: oklch(.18 .03 150);
  --warn: oklch(.82 .15 72); --warn-text: oklch(.85 .15 72); --warn-soft: oklch(.82 .15 72 / .15); --warn-line: oklch(.82 .15 72 / .38); --on-warn: oklch(.18 .03 72);
  --down: oklch(.7 .2 27); --down-text: oklch(.76 .2 27); --down-soft: oklch(.7 .2 27 / .15); --down-line: oklch(.7 .2 27 / .38); --on-down: oklch(.18 .03 27);
  --degraded: oklch(.8 .16 55); --degraded-text: oklch(.83 .16 55); --degraded-soft: oklch(.8 .16 55 / .15); --degraded-line: oklch(.8 .16 55 / .38); --on-degraded: oklch(.18 .03 55);

  --hdr-bg: oklch(.155 .011 350 / .86);
  --shadow: oklch(0 0 0 / .55);
  --shadow-soft: oklch(0 0 0 / .45);
  color-scheme: dark;
}
:root[data-theme="dark"] .sec-dark { --bg: oklch(.115 .01 350); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(.155 .011 350);
    --surface: oklch(.2 .011 350);
    --surface-2: oklch(.26 .011 350);
    --line: oklch(.3 .011 350);
    --ink: oklch(.96 .005 350);
    --muted: oklch(.74 .01 350);
    --primary: oklch(.74 .17 350);
    --primary-hover: oklch(.8 .14 350);
    --primary-text: oklch(.8 .14 350);
    --primary-soft: oklch(.74 .17 350 / .12);
    --primary-line: oklch(.74 .17 350 / .4);
    --on-primary: oklch(.18 .03 350);

    --ok: oklch(.78 .16 150); --ok-text: oklch(.82 .16 150); --ok-soft: oklch(.78 .16 150 / .15); --ok-line: oklch(.78 .16 150 / .38); --on-ok: oklch(.18 .03 150);
    --warn: oklch(.82 .15 72); --warn-text: oklch(.85 .15 72); --warn-soft: oklch(.82 .15 72 / .15); --warn-line: oklch(.82 .15 72 / .38); --on-warn: oklch(.18 .03 72);
    --down: oklch(.7 .2 27); --down-text: oklch(.76 .2 27); --down-soft: oklch(.7 .2 27 / .15); --down-line: oklch(.7 .2 27 / .38); --on-down: oklch(.18 .03 27);
    --degraded: oklch(.8 .16 55); --degraded-text: oklch(.83 .16 55); --degraded-soft: oklch(.8 .16 55 / .15); --degraded-line: oklch(.8 .16 55 / .38); --on-degraded: oklch(.18 .03 55);

    --hdr-bg: oklch(.155 .011 350 / .86);
    --shadow: oklch(0 0 0 / .55);
    --shadow-soft: oklch(0 0 0 / .45);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .sec-dark { --bg: oklch(.115 .01 350); }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-text); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
pre { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
section[id], main[id] { scroll-margin-top: 68px; }

.i { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--17 { font-size: 17px; }
.mono { font-family: var(--mono); }
.ink { color: var(--ink); }
.muted { color: var(--muted); }
.pink { color: var(--primary); }
.pink-text { color: var(--primary-text); }
.ok-text { color: var(--ok-text); }
.down-text { color: var(--down-text); }
.tc { text-align: center; }
.grow { flex: 1; }
.minw0 { min-width: 0; }
.maxw-760 { max-width: 760px; }
.maxw-780 { max-width: 780px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap--900 { max-width: 900px; }
.sec { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.stack { display: grid; align-content: start; }
.stack--12 { gap: 12px; } .stack--18 { gap: 18px; } .stack--22 { gap: 22px; } .stack--24 { gap: 24px; }
.stack--28 { gap: 28px; } .stack--30 { gap: 30px; } .stack--32 { gap: 32px; } .stack--36 { gap: 36px; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--r { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.split--end { align-items: end; gap: 20px 56px; }
.split--16 { gap: 16px; align-items: stretch; }
#webcron.split, #webhooks .split, #api .split { gap: 48px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.band { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--top { border-bottom: 0; }
.sec-dark { background: var(--bg); color: var(--ink); }
.card-shadow { box-shadow: 0 40px 80px -40px var(--shadow); }

/* ---------- type ---------- */
.h1 { font-size: var(--h1); line-height: .98; font-weight: 800; letter-spacing: -.05em; text-wrap: balance; }
.h2 { font-size: var(--h2); line-height: 1; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
.h2--wrap { text-wrap: wrap; }
.h2xl { font-size: var(--h2-xl); line-height: .95; font-weight: 900; letter-spacing: -.055em; text-wrap: balance; }
.h2xl--800 { font-weight: 800; }
.lead { font-size: var(--lead); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lead--540 { max-width: 540px; }
.lead--620 { max-width: 620px; }
.lead--640 { max-width: 640px; }
.fine { font-size: 13.5px; color: var(--muted); }
.kicker { font-size: 14px; font-weight: 600; color: var(--primary-text); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--primary-text); letter-spacing: .06em; text-transform: uppercase; justify-self: start; }
.eyebrow .i { font-size: 17px; }
.center-head { display: grid; justify-items: center; text-align: center; gap: 18px; }
.center-head--16 { gap: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { color: var(--ink); border-color: color-mix(in oklch, var(--line), var(--ink) 25%); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700; }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn--lg .i { font-size: 18px; }
.btn--ghost.btn--lg { padding: 0 24px; }
.btn--xl { height: 56px; padding: 0 30px; font-size: 17px; }
.btn--xl .i { font-size: 19px; }
.btn--outline { justify-self: start; height: 50px; padding: 0 22px; font-size: 16px; background: transparent; }
.btn--block { height: 48px; font-size: 15px; width: 100%; }
.btn--block.btn--primary { font-weight: 700; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn .i { font-size: 20px; }
.icon-btn:hover { border-color: color-mix(in oklch, var(--line), var(--ink) 25%); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row--center { justify-content: center; }
.cta-row .fine { font-size: 14px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--hdr-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr__in { height: 68px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { display: flex; align-items: center; gap: 2px; height: 22px; }
.logo__mark span { width: 4px; border-radius: 2px; background: var(--primary); }
.logo__mark span:nth-child(1) { height: 8px; }
.logo__mark span:nth-child(2) { height: 21px; }
.logo__mark span:nth-child(3) { height: 12px; }
.logo__mark span:nth-child(4) { height: 5px; }
.logo__word { font-size: 22px; font-weight: 800; letter-spacing: -.045em; }
.hdr__nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.hdr__actions { display: flex; align-items: center; gap: 20px; }
.hdr__signin { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.mnav { border-top: 1px solid var(--line); background: var(--surface); padding: 12px var(--pad) 20px; display: grid; gap: 2px; }
.mnav[hidden] { display: none; }
.mnav a { padding: 13px 4px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mnav a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding-top: var(--hero-pad); padding-bottom: 40px; }
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); flex-shrink: 0; }

.board { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-width: 0; }
.board__alert { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--down-soft); border-bottom: 1px solid var(--down-line); }
.board__alert-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--down); color: var(--on-down); display: grid; place-items: center; flex-shrink: 0; }
.board__alert-icon .i { font-size: 21px; }
.board__alert-text { display: grid; gap: 2px; min-width: 0; }
.board__alert-title { font-size: 17px; font-weight: 800; }
.board__alert-sub { font-size: 12.5px; color: var(--muted); }
.brow { display: grid; grid-template-columns: 92px minmax(0, 1fr) 140px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.brow__name { display: grid; gap: 2px; min-width: 0; }
.brow__name .mono { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow__name span:last-child { font-size: 12px; color: var(--muted); }
.board__foot { display: flex; justify-content: space-between; padding: 12px 18px; font-size: 11.5px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--ok); color: var(--on-ok); font-size: 12px; font-weight: 700; white-space: nowrap; justify-self: start; }
.pill .i { font-size: 14px; }
.pill--down { background: var(--down); color: var(--on-down); }
.pill--warn { background: var(--warn); color: var(--on-warn); }
.pill--lg { gap: 6px; height: 34px; padding: 0 14px 0 11px; font-size: 15px; }
.pill--lg .i { font-size: 16px; }

.strip { display: flex; gap: 2px; height: 20px; }
.strip > i { flex: 1; min-width: 2px; height: 100%; border-radius: 2px; background: var(--ok); }
.strip > i.b-down { background: var(--down); }
.strip > i.b-degraded { background: var(--degraded); }

.works { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; color: var(--muted); }
.works__label { font-size: 13px; font-weight: 600; }
.works__item { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink); }
.works__item .i { font-size: 20px; color: var(--muted); }

/* ---------- problem / timeline ---------- */
.checks { display: grid; gap: 10px; font-size: 15.5px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { color: var(--primary-text); font-size: 19px; margin-top: 1px; }
.checks--pink li { align-items: center; }
.checks--pink .i { color: var(--primary); margin-top: 0; }
.timeline { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 8px; box-shadow: 0 30px 60px -30px var(--shadow-soft); }
.timeline li { display: flex; gap: 16px; }
.timeline__rail { display: flex; flex-direction: column; align-items: center; }
.timeline__rail::after { content: ""; width: 2px; flex: 1; min-height: 14px; background: var(--line); margin: 4px 0; }
.timeline li:last-child .timeline__rail::after { display: none; }
.tdot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.tdot .i { font-size: 17px; }
.tdot--ok { background: var(--ok-soft); color: var(--ok-text); }
.tdot--warn { background: var(--warn-soft); color: var(--warn-text); }
.tdot--down { background: var(--down-soft); color: var(--down-text); }
.tdot--brand { background: var(--primary); color: var(--on-primary); }
.timeline__body { display: grid; gap: 3px; padding: 6px 0 20px; min-width: 0; align-content: start; }
.timeline__body .mono { font-size: 13px; color: var(--muted); }
.timeline__body strong { font-size: 16px; font-weight: 700; }
.timeline__body span:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- seven words ---------- */
.seven__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 28px; }
.seven__head .h2 { max-width: 700px; text-wrap: initial; }
.seven__note { font-size: 15px; color: var(--muted); max-width: 340px; line-height: 1.5; }
.words { display: grid; border-top: 2px solid var(--ink); }
.word { display: grid; grid-template-columns: auto auto minmax(0, 1fr) 30px; gap: 10px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: background-color .15s; }
.word:hover { background: var(--surface); color: var(--ink); }
.word__w { font-size: var(--word); line-height: 1; font-weight: 900; letter-spacing: -.055em; white-space: nowrap; }
.dotc { color: var(--primary); }
.word__d { font-size: 15px; color: var(--muted); line-height: 1.45; }
.word__arrow { font-size: 22px; color: var(--muted); justify-self: end; transition: transform .15s; }
.word:hover .word__arrow { transform: translateX(3px); color: var(--primary-text); }

/* ---------- heartbeats ---------- */
.codecard { width: 100%; max-width: 1000px; justify-self: center; border-radius: 18px; background: #0b0d12; border: 1px solid oklch(.32 .02 350); overflow: hidden; box-shadow: 0 40px 90px -40px oklch(.6 .2 350 / .55); }
.codecard__tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid oklch(.26 .01 350); overflow-x: auto; scrollbar-width: none; }
.codecard__tabs::-webkit-scrollbar { display: none; }
.codecard__tabs button { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; background: transparent; color: #94a3b8; }
.codecard__tabs button:hover { color: #e2e8f0; }
.codecard__tabs button[aria-selected="true"] { background: oklch(.74 .17 350 / .18); color: oklch(.85 .12 350); }
.codecard__code { padding: 22px 24px; font-family: var(--mono); font-size: var(--code); line-height: 1.85; color: #e2e8f0; white-space: pre; overflow-x: auto; min-height: calc(var(--code) * 1.85 * 3 + 44px); }
.fcard { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.fcard .i { font-size: 24px; color: var(--primary); }
.fcard strong { font-size: 17px; font-weight: 800; }
.fcard span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- uptime ---------- */
.bigstrip { position: relative; padding-top: 64px; }
.bigstrip__callout { position: absolute; top: 0; right: calc((100 - var(--pos)) * 1% - 40px); max-width: 100%; display: flex; justify-content: flex-end; }
.callout-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--down-line); font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px -10px var(--shadow-soft); }
.callout-pill .i { font-size: 16px; color: var(--down-text); }
.bigstrip__tick { position: absolute; top: 42px; left: calc(var(--pos) * 1%); width: 2px; height: 16px; margin-left: -1px; background: var(--down); }
.strip--big { gap: 4px; height: 120px; }
.strip--big > i { border-radius: 3px; }
.bigstrip__axis { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--muted); }
.ucard { display: grid; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); align-content: start; }
.ucard strong { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; }
.ucard strong .i { font-size: 20px; color: var(--primary-text); }
.ucard span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- ssl / domains ---------- */
.xcard { padding: 24px; border-radius: 22px; display: grid; gap: 14px; align-content: start; }
.xcard--down { background: var(--down-soft); border: 1px solid var(--down-line); --x-text: var(--down-text); }
.xcard--warn { background: var(--warn-soft); border: 1px solid var(--warn-line); --x-text: var(--warn-text); }
.xcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.xcard__kind { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.xcard__kind .i { font-size: 20px; }
.xcard .pill .i { font-size: 15px; }
.xcard__days { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.xcard__days span:last-child { font-size: 20px; font-weight: 800; }
.xcard__num { font-size: 88px; font-weight: 900; letter-spacing: -.055em; line-height: .9; color: var(--x-text); }
.xcard__name { font-size: 14px; font-weight: 600; }
.xcard__th { display: flex; flex-wrap: wrap; gap: 8px; }
.th { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.th .i { font-size: 14px; }
.th--sent { color: var(--ink); }

/* ---------- webhooks ---------- */
.inbox { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-width: 0; }
.inbox__list { border-right: 1px solid var(--line); padding: 8px; display: grid; align-content: start; gap: 2px; }
.req { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; min-width: 0; }
.req--on { background: var(--primary-soft); border-color: var(--primary-line); }
.req span:first-child { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req span:last-child { font-size: 11px; color: var(--muted); }
.inbox__detail { padding: 18px; display: grid; align-content: start; gap: 14px; min-width: 0; }
.inbox__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.inbox__title .mono:last-child { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.method { height: 22px; padding: 0 7px; border-radius: 7px; background: var(--surface-2); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; flex-shrink: 0; }
.ai-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--primary-soft); border: 1px solid var(--primary-line); }
.ai-box__label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-text); }
.ai-box__label .i { font-size: 15px; }
.ai-box > span:last-child { font-size: 14.5px; line-height: 1.55; }
.payload { padding: 14px 16px; border-radius: 14px; background: #0b0d12; color: #e2e8f0; font-size: 12.5px; line-height: 1.75; overflow-x: auto; }
.payload div { white-space: pre; }
.payload .k { color: #f9a8d4; }
.payload .p { color: #94a3b8; }
.payload .s { color: #86efac; }
.payload .n { color: #fcd34d; }

/* ---------- schedules ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .15s, background-color .15s; }
.presets button:hover { border-color: var(--primary-line); }
.presets button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.describe { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 30px 60px -30px var(--shadow-soft); }
.describe__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.describe__text { font-size: var(--quote); font-weight: 600; line-height: 1.3; }
.describe__badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); border: 1px solid var(--primary-line); font-size: 13.5px; font-weight: 700; }
.describe__badge .i { font-size: 16px; }
.down-arrow { display: flex; justify-content: center; color: var(--primary); }
.down-arrow .i { font-size: 24px; }
.croncard { background: #1e293b; color: #e2e8f0; border-radius: 22px; padding: 22px; display: grid; gap: 12px; }
.croncard__expr { font-size: var(--cron); font-weight: 600; letter-spacing: -.02em; color: #f9a8d4; word-spacing: .2em; }
.croncard__runs { display: grid; gap: 6px; font-size: 14px; }
.croncard__runs div { display: flex; justify-content: space-between; gap: 12px; }
.croncard__runs span:last-child { color: #94a3b8; }

/* ---------- alerts ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.ccard { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.ccard .i { font-size: 26px; }
.ccard strong { font-size: 15px; font-weight: 800; }
.ccard span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.auto { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.auto__label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.auto__rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.auto__rule .kw { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.auto__rule .tag { padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary-text); font-size: 14px; font-weight: 700; }
.auto__log { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.auto__log div { display: grid; grid-template-columns: 64px auto 1fr; gap: 10px; align-items: center; font-size: 13.5px; }
.auto__log .mono { font-size: 12.5px; color: var(--muted); }
.auto__log .i { font-size: 17px; }

/* ---------- setup palette ---------- */
.setup { display: grid; justify-items: center; text-align: center; gap: 22px; }
.palette { width: 100%; max-width: 760px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-align: left; overflow: hidden; }
.palette__input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.palette__input .i { font-size: 22px; color: var(--muted); }
.palette__input .mono { flex: 1; min-width: 0; font-size: var(--pal); font-weight: 500; overflow: hidden; white-space: nowrap; }
.caret { display: inline-block; width: 2px; height: 20px; background: var(--primary); vertical-align: -3px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.palette__item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.palette__item:last-child { border-bottom: 0; }
.palette__item--on { background: var(--primary-soft); }
.palette__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.palette__icon .i { font-size: 19px; }
.palette__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.palette__text strong { font-size: 15px; font-weight: 700; }
.palette__text span { font-size: 13px; color: var(--muted); }

/* ---------- api ---------- */
.apicard { border-radius: 20px; background: #0b0d12; border: 1px solid oklch(.3 .01 350); overflow: hidden; min-width: 0; }
.apicard__head { padding: 12px 18px; border-bottom: 1px solid oklch(.26 .01 350); font-size: 12px; color: #94a3b8; }
.apicard__code { padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #e2e8f0; white-space: pre; overflow-x: auto; }
.apicard__code--res { padding: 6px 20px 20px; }
.apicard__status { padding: 8px 20px; font-size: 11.5px; color: #86efac; border-top: 1px solid oklch(.26 .01 350); }

/* ---------- pricing ---------- */
.grid3--stretch { align-items: stretch; }
.plan { display: grid; gap: 16px; align-content: start; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.plan--hot { background: var(--primary-soft); border: 2px solid var(--primary); padding: 25px; }
.plan__top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.plan__top h3 { font-size: 20px; font-weight: 800; }
.badge { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price span:first-child { font-size: 54px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.plan__price span:last-child { font-size: 14px; color: var(--muted); }
.plan__for { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.plan__feats { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan__feats li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.plan__feats .i { font-size: 17px; color: var(--primary-text); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary-text); }
.faq summary .i { margin-left: auto; font-size: 20px; color: var(--muted); }
.faq details .i-minus { display: none; }
.faq details[open] .i-minus { display: block; }
.faq details[open] .i-plus { display: none; }
.faq p { padding: 0 20px 20px; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- final ---------- */
.final { display: grid; justify-items: center; text-align: center; gap: 28px; }
.okpill { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 26px 8px 18px; border-radius: 999px; background: var(--ok); color: var(--on-ok); font-size: var(--ok-pill); font-weight: 800; }
.okpill .i { font-size: 28px; }

/* ---------- footer ---------- */
.foot__in { padding-top: 56px; padding-bottom: 40px; display: grid; gap: 40px; }
.foot__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot__brand { display: grid; gap: 14px; align-content: start; }
.foot__brand > span:last-child { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 260px; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot__col a { font-size: 14.5px; color: var(--ink); justify-self: start; }
.foot__col a:hover { color: var(--primary-text); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- video modal ---------- */
.vmodal { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.vmodal::backdrop { background: oklch(.1 .01 350 / .82); }
.vmodal__video { display: block; width: min(1100px, 92vw); aspect-ratio: 16 / 9; max-height: 86vh; border-radius: 16px; background: #000; }
.vmodal--vertical .vmodal__video { width: auto; height: min(86vh, calc(92vw * 16 / 9)); aspect-ratio: 9 / 16; }
.vmodal__close { position: absolute; top: -52px; right: 0; background: oklch(.2 .011 350); border-color: oklch(.3 .011 350); color: #fff; }
.vmodal__close:hover { border-color: oklch(.5 .011 350); }
@media (max-height: 560px) { .vmodal__close { top: 8px; right: 8px; z-index: 1; } }

/* ---------- tablet < 1040 ---------- */
@media (max-width: 1039px) {
  :root { --h1: 64px; --h2: 48px; --h2-xl: 72px; --word: 64px; }
  .split, .split--r { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr__nav, .hdr__signin { display: none; }
  .hdr__actions { gap: 10px; }
  .menu-btn { display: inline-grid; }
}

/* ---------- mobile < 720 ---------- */
@media (max-width: 719px) {
  :root { --pad: 20px; --hero-pad: 36px; --sec-pad: 64px; --h1: 46px; --h2: 36px; --h2-xl: 48px; --lead: 17px; --word: 44px; --quote: 20px; --cron: 30px; --code: 13px; --pal: 15px; --ok-pill: 18px; }
  .hdr__in { gap: 12px; }
  .hdr__actions { gap: 8px; }
  .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); }
  .brow { grid-template-columns: 84px minmax(0, 1fr); }
  .brow .strip { display: none; }
  .word { grid-template-columns: 1fr; gap: 10px; }
  .word__d, .word__arrow { display: none; }
  .word .pill--lg { gap: 4px; height: 24px; padding: 0 9px 0 7px; font-size: 12px; }
  .word .pill--lg .i { font-size: 14px; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox__list { display: none; }
  .bigstrip { padding-top: 86px; }
  .bigstrip__callout { right: 0; left: 0; justify-content: flex-end; }
  .callout-pill { font-size: 12.5px; border-radius: 18px; }
  .bigstrip__tick { top: 64px; height: 18px; }
  .strip--big { gap: 2px; height: 70px; }
  .strip--big > i { border-radius: 2px; }
  .xcard__num { font-size: 64px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
