/* The public website: landing, pricing, security, early access and legal pages. Served under the
   same strict Content Security Policy as the app: no inline styles or scripts, no outside resources. */
:root {
  --ink: #0b0d1f; --ink-2: #151839; --ink-line: rgba(255, 255, 255, .1);
  --on-ink: #f4f5ff; --on-ink-muted: #b4b7d6;
  --text: #171a31; --muted: #5b5f7e; --faint: #8f93ad;
  --bg: #ffffff; --soft: #f5f6fc; --line: #e8e9f3;
  --accent: #5b5bf0; --accent-2: #8b5cf6; --accent-text: #4747d6; --accent-soft: #eef0ff;
  --ok: #16a34a; --ok-soft: #e7f7ed; --warn: #a35a06; --warn-soft: #fff4e2; --warn-line: #f5c983;
  --bad: #dc2626; --bad-soft: #fdecec;
  --grad: linear-gradient(135deg, #5b5bf0 0%, #8b5cf6 100%);
  --shadow: 0 1px 2px rgba(23, 26, 70, .05), 0 12px 32px rgba(23, 26, 70, .08);
  --shadow-lift: 0 2px 6px rgba(23, 26, 70, .06), 0 24px 60px rgba(23, 26, 70, .14);
  --r: 18px; --r-sm: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; }
code { font: 14px var(--mono); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(91, 91, 240, .45); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: #fff; }
.skip:focus { left: 8px; }

/* --- header ------------------------------------------------------------------------------ */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 13, 31, .86); border-bottom: 1px solid var(--ink-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-ink); font-size: 18px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  color: #fff; box-shadow: 0 6px 18px rgba(91, 91, 240, .45); }
.brand-mark svg.i { width: 20px; height: 20px; stroke-width: 2.2; }
.top-links { display: flex; align-items: center; gap: 24px; flex: 1; }
.top-links a { color: var(--on-ink-muted); font-size: 15px; font-weight: 500; }
.top-links a:hover, .top-links a[aria-current="page"] { color: #fff; text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-actions .signin { color: var(--on-ink); font-weight: 500; padding: 8px 12px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--ink-line); border-radius: 12px;
  background: transparent; color: var(--on-ink); cursor: pointer; place-items: center; }
.nav-toggle .close { display: none; }
body.nav-open .nav-toggle .open { display: none; }
body.nav-open .nav-toggle .close { display: block; }

/* --- buttons ----------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 600 15px var(--sans);
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg.i { width: 18px; height: 18px; }
.btn-primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(91, 91, 240, .35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(91, 91, 240, .45); }
.btn-ghost-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--on-ink); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* --- hero -------------------------------------------------------------------------------- */
.dark { background: var(--ink); color: var(--on-ink); }
.hero { position: relative; overflow: hidden; padding: 88px 0 96px;
  background: radial-gradient(55% 60% at 78% 8%, rgba(139, 92, 246, .38), transparent 70%),
              radial-gradient(45% 45% at 8% 0%, rgba(91, 91, 240, .35), transparent 70%), var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #dcdcff; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -.035em; }
.hero h1 .glow { background: linear-gradient(90deg, #a5a5ff, #d4b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 20px; font-size: 19px; color: var(--on-ink-muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: #9195bb; }
.hero-note span + span::before { content: "·"; margin: 0 8px; color: #5d6190; }

/* the product window in the hero: an illustration built from markup */
.mock { border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden; font-size: 14px; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbff; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e3ee; }
.mock-bar b { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mock-stat b { display: block; font-size: 20px; }
.mock-stat span { font-size: 12px; color: var(--muted); }
.finding { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 12px; }
.finding .lbl { font: 700 12px var(--mono); color: var(--accent-text); background: var(--accent-soft); padding: 3px 7px; border-radius: 7px; }
.finding .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finding .s { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--soft); color: var(--muted); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ac { background: var(--accent-soft); color: var(--accent-text); }
.mini-btn { padding: 6px 12px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.mini-btn.light { background: var(--soft); color: var(--text); }
.mock-log { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #c9cbe6; font: 12.5px/1.75 var(--mono); }
.mock-log .ok { color: #6ee7b7; }
.mock-log .ac { color: #b4b4ff; }

/* --- sections ---------------------------------------------------------------------------- */
.sec { padding: 96px 0; }
.sec.soft { background: var(--soft); }
.sec.tight { padding: 56px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.dark .eyebrow { color: #b4b4ff; }
.sec h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 42px); }
.sec-lead { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 680px; }
.center .sec-lead { margin-left: auto; margin-right: auto; }
.dark .sec-lead { color: var(--on-ink-muted); }
.sec-head { margin-bottom: 48px; }

.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.logos span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 600; color: #3d4160; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.card h3 { font-size: 19px; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.card.lift { box-shadow: var(--shadow); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text); }
.dark .card { background: var(--ink-2); border-color: var(--ink-line); }
.dark .card p { color: var(--on-ink-muted); }
.dark .ico { background: rgba(139, 92, 246, .16); color: #c4b5fd; }

.pillars .card { position: relative; }
.pillars .num { position: absolute; top: 22px; right: 24px; font: 700 13px var(--mono); color: var(--faint); }

.steps { counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  margin-bottom: 16px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; }
.step h3 { font-size: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.agent { display: flex; flex-direction: column; }
.agent .when { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }

.flow { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; counter-reset: flow; }
.flow li { list-style: none; position: relative; padding: 16px 14px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--ink-line); }
.flow li b { display: block; font-size: 15px; color: #fff; }
.flow li span { display: block; margin-top: 6px; font-size: 13px; color: var(--on-ink-muted); line-height: 1.45; }
.flow li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); display: block; margin-bottom: 8px;
  font: 700 12px var(--mono); color: #b4b4ff; }
.flow li.you { background: linear-gradient(160deg, rgba(91, 91, 240, .35), rgba(139, 92, 246, .25)); border-color: rgba(180, 180, 255, .35); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.checks li svg.i { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); stroke-width: 2.4; }
.checks li b { font-weight: 600; }
.dark .checks li svg.i { color: #6ee7b7; }

.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.provider { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.provider b { display: block; }
.provider span { font-size: 13px; color: var(--muted); }

.chat { display: grid; gap: 12px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.bubble.me { justify-self: end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { background: var(--soft); border-bottom-left-radius: 6px; }
.bubble.bot b { color: var(--accent-text); }
.chat-meta { font-size: 12px; color: var(--faint); }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.channels span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.channels svg.i { width: 18px; height: 18px; color: var(--accent-text); }

/* --- pricing ----------------------------------------------------------------------------- */
.billing { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.billing button { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font: 600 14px var(--sans);
  color: var(--muted); cursor: pointer; }
.billing button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.billing .save { margin-left: 6px; color: var(--ok); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; text-align: left; }
.plans[data-billing="monthly"] .y, .plans[data-billing="yearly"] .m { display: none; }
.plan { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.plan.featured { position: relative; border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lift); }
.plan .badge { position: absolute; top: -13px; left: 24px; padding: 3px 10px; border-radius: 99px; background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700; }
.plan h3 { font-size: 20px; }
.plan .for { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 44px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 40px; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 15px; }
.price-note { min-height: 22px; font-size: 13px; color: var(--muted); }
.plan .btn { margin-top: 20px; }
.plan ul { margin-top: 22px; display: grid; gap: 10px; }
.plan li { list-style: none; display: flex; gap: 10px; font-size: 15px; }
.plan li svg.i { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); stroke-width: 2.4; }
.plan li.head { font-weight: 600; }

.compare-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: #fafbff; }
.compare tbody th { font-weight: 500; }
.compare td { text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }
.compare tr.group th { padding-top: 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes svg.i { width: 18px; height: 18px; margin: 0 auto; color: var(--ok); stroke-width: 2.4; }
.compare .no { color: var(--faint); }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); }
.faq details p + p { margin-top: -6px; }

/* --- forms ------------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.field > span em { font-style: normal; font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--text); font: 15px var(--sans); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: #c7c9f7; box-shadow: 0 0 0 4px var(--accent-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.github-link { background: #24292f; color: #fff; border-color: #24292f; margin-bottom: 4px; }
.github-link:hover { color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.msg.ok { background: var(--ok-soft); color: #166534; }
.msg.bad { background: var(--bad-soft); color: #991b1b; }
.form-card { padding: 32px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.inline-form { display: flex; gap: 10px; margin-top: 28px; }
.inline-form input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08); color: #fff; font: 16px var(--sans); }
.inline-form input::placeholder { color: #9a9dc2; }
.inline-form input:focus { outline: 0; border-color: #a5a5ff; box-shadow: 0 0 0 4px rgba(165, 165, 255, .2); }
.cta-form { display: grid; gap: 14px; max-width: 620px; margin: 0 auto; }
.cta-form .consent { color: var(--on-ink-muted); justify-content: center; text-align: left; }
.cta-form .consent a { color: #c4c4ff; }

/* --- page hero (inner pages) and prose ------------------------------------------------------- */
.page-hero { padding: 72px 0 64px; text-align: center;
  background: radial-gradient(50% 80% at 50% 0%, rgba(139, 92, 246, .32), transparent 70%), var(--ink); color: var(--on-ink); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.03em; }
.page-hero p { margin: 16px auto 0; max-width: 640px; font-size: 18px; color: var(--on-ink-muted); }
.page-hero .billing { margin-top: 28px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.page-hero .billing button { color: var(--on-ink-muted); }
.page-hero .billing button[aria-pressed="true"] { background: #fff; color: var(--text); }
.prose { font-size: 16px; }
.prose h2 { margin: 44px 0 12px; font-size: 24px; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; }
.prose p, .prose ul, .prose ol { margin: 12px 0; color: #3a3e5c; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: #fafbff; }
.draft { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--warn-soft); border: 1px solid var(--warn-line);
  color: #6b3b04; font-size: 15px; }
.draft svg.i { color: var(--warn); margin-top: 2px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.toc a { padding: 6px 12px; border-radius: 99px; background: var(--soft); font-size: 14px; font-weight: 500; }

.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.signup-side h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.03em; }
.signup-side .sec-lead { font-size: 17px; }
.next-steps { margin-top: 32px; display: grid; gap: 18px; counter-reset: ns; }
.next-steps li { list-style: none; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.next-steps li::before { counter-increment: ns; content: counter(ns); display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px; }
.next-steps b { display: block; }
.next-steps span { color: var(--muted); font-size: 15px; }

/* --- footer -------------------------------------------------------------------------------- */
.foot { padding: 64px 0 40px; background: var(--ink); color: var(--on-ink-muted); font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin-bottom: 14px; color: #fff; font-size: 14px; letter-spacing: .02em; }
.foot ul { display: grid; gap: 10px; }
.foot li { list-style: none; }
.foot a { color: var(--on-ink-muted); }
.foot a:hover { color: #fff; }
.foot .about { margin-top: 14px; max-width: 320px; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--ink-line); font-size: 14px; }

/* --- small screens --------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .top-links, .top-actions { display: none; }
  .nav-toggle { display: grid; }
  body.nav-open .top .wrap { flex-wrap: wrap; height: auto; padding-top: 13px; padding-bottom: 16px; }
  body.nav-open .top-links, body.nav-open .top-actions { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  body.nav-open .top-links a { padding: 10px 4px; font-size: 16px; }
  body.nav-open .top-actions { margin: 8px 0 0; gap: 10px; }
  body.nav-open .top-actions .btn, body.nav-open .top-actions .signin { width: 100%; text-align: center; }
  .hero { padding: 56px 0 64px; }
  .hero .wrap, .split, .signup { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 64px 0; }
  .g2, .g3, .g4, .plans, .providers, .form .row { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .lead { font-size: 17px; }
  .inline-form { flex-direction: column; }
  .mock-stat b { font-size: 17px; }
  .finding { grid-template-columns: auto minmax(0, 1fr); }
  .finding .mini-btn { grid-column: 2; justify-self: start; }
  .form-card { padding: 22px; }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* status page */
.status-board { margin: 8px 0 18px; }
.status-head { font-size: 20px; font-weight: 600; margin: 0 0 14px; }
.status-head.status-ok { color: #15803d; }
.status-head.status-degraded { color: #b45309; }
.status-head.status-down { color: #b91c1c; }
.status-list { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(20, 22, 50, .1); border-radius: 14px; }
.status-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; border-top: 1px solid rgba(20, 22, 50, .08); }
.status-list li:first-child { border-top: 0; }
.status-list b { flex: 1; }
.status-list small { flex-basis: 100%; color: #676b85; }
.status-pill { font-size: 13px; padding: 2px 10px; border-radius: 99px; }
.status-pill.status-ok { background: #e7f7ed; color: #15803d; }
.status-pill.status-degraded { background: #fff3df; color: #b45309; }
.status-pill.status-down { background: #fdecec; color: #b91c1c; }
.status-note, .status-wait { color: #676b85; font-size: 14px; }
