/* Public website: home, product pages, docs, status and legal pages. ("Phosphor": ink, light and one bright line.)
   No inline styles anywhere (the CSP allows only this stylesheet), so every look has a class here. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a0b0f; --ink-2: #0d0f14; --surface: #12141b; --surface-2: #161922; --line: #232733; --line-soft: #1a1d26; --line-strong: #2e3340;
  --text: #eceef3; --text-2: #c3c9d6; --muted: #9aa1b2; --dim: #7b8396;
  --lime: #b8f35b; --lime-hover: #cdff7e; --lime-ink: #1f2a0a; --lime-soft: rgba(184, 243, 91, .12);
  --lav: #c4b5fd; --amber: #fdba74; --amber-soft: rgba(253, 186, 116, .14); --red: #ff8a80; --red-soft: rgba(255, 138, 128, .14);
  --display: "Bricolage Grotesque", system-ui, sans-serif; --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 20px; --header-h: 72px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-hover); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
/* Decorative glows may reach past the edge; never let them scroll the page sideways. */
main { overflow-x: clip; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.accent { color: var(--lime); }
.fade { color: #6b7385; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.eyebrow.lav { color: var(--lav); }
.eyebrow.plain { color: var(--muted); }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 680px; }
.k { color: var(--lav); } .s { color: var(--lime); } .n { color: var(--amber); } .p { color: #6b7385; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px var(--sans); white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-hover); color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #566075; color: #fff; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: #1c2029; color: #fff; }
.btn-outline-dark { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: rgba(10, 11, 15, .08); color: var(--ink); }
.link-arrow { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }

/* ---------------------------------------------------------------- header + burger menu */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 11, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.site-header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 22px var(--display); letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand svg { flex: 0 0 auto; }
.site-menu { display: flex; align-items: center; gap: 32px; flex: 1 1 auto; }
.site-nav { display: flex; gap: 28px; flex: 1 1 auto; }
.site-nav a { color: var(--text-2); font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-actions { display: flex; gap: 10px; }
.site-actions .btn { min-height: 44px; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .site-header-inner { gap: 16px; }
  /* Without JavaScript the menu stays open (stacked) so it's always reachable. */
  .site-menu { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 20px; }
  .site-header-inner { flex-wrap: wrap; }
  .site-nav { flex-direction: column; gap: 0; }
  .site-nav a { display: flex; align-items: center; min-height: 56px; font: 600 22px var(--display); letter-spacing: -.02em; color: var(--text); border-bottom: 1px solid var(--line-soft); }
  .site-nav a[aria-current="page"] { color: var(--lime); }
  .site-actions { flex-direction: column; margin-top: auto; }
  .site-actions .btn { min-height: 52px; }
  .js .burger { display: inline-block; }
  .js .site-menu { display: none; }
  .js .site-header.open .site-menu { display: flex; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; overflow-y: auto; padding: 8px 24px 32px; background: var(--ink); animation: menu-in .18s ease-out; }
  .js .site-header-inner { flex-wrap: nowrap; }
  /* A backdrop filter would make the fixed menu panel size itself to the header instead of the screen. */
  .js .site-header.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 72px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-brand p.footer-place { color: var(--text-2); font-size: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col strong { font-size: 13px; color: var(--text); font-weight: 600; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.footer-bottom strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- generic layout */
.section { padding: 120px 0; }
.section.tight { padding: 72px 0; }
.section.flush-top { padding-top: 0; }
.band { background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 780px; margin-bottom: 48px; }
.section-head.row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; max-width: none; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.h1 { font-size: clamp(48px, 7.4vw, 112px); }
.h1-xl { font-size: clamp(52px, 8.4vw, 124px); }
.h1.in-split { font-size: clamp(44px, 5.4vw, 84px); }
.h2 { font-size: clamp(36px, 4.6vw, 64px); }
.h2-sm { font-size: clamp(30px, 3.6vw, 48px); }
.h3 { font-size: 26px; letter-spacing: -.025em; }
.h3-lg { font-size: 32px; letter-spacing: -.03em; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px; align-items: center; }
.split.top { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
/* A card across the whole grid: the newest feature, under the rest. */
.grid > .card.wide { grid-column: 1 / -1; }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card.tight { padding: 24px; gap: 10px; }
.card p { color: var(--muted); }
.card h3 { font-size: 22px; letter-spacing: -.025em; }
.card .push { margin-top: auto; }
.card.glow, .stage.glow { border-color: #3b4a1e; }
.panel { border-radius: 16px; background: var(--ink-2); border: 1px solid #1e222c; }
pre.block { margin: 0; padding: 22px; border-radius: 16px; background: var(--ink-2); border: 1px solid #1e222c; font-size: 13px; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
pre.block.deep { background: #07080b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font: 12.5px var(--mono); color: var(--text-2); }
.chip.ok { border-color: transparent; background: var(--lime-soft); color: var(--lime); }
.chip.warn { border-color: transparent; background: var(--amber-soft); color: var(--amber); }
.chip.code { border-radius: 10px; min-height: 36px; background: #1a1730; border-color: #2e2850; }
.chip-link { min-height: 36px; font: 14px var(--sans); }
.chip-link:hover { border-color: #566075; color: #fff; }

/* segmented switches (site.js: [data-switch] / [data-show] / [data-when]) */
.switch { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.switch button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font: 500 13px var(--mono); cursor: pointer; }
.switch button:hover { color: #fff; border-color: #566075; }
.switch button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.switch.pill { padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); gap: 4px; }
.switch.pill button { min-height: 44px; padding: 0 20px; border: 0; font: 600 14px var(--sans); }
html:not(.js) .switch { display: none; }

/* motion (all off with reduced motion) */
.travel { position: relative; height: 1px; background: var(--line); margin: 6px 0 10px; }
.travel::after { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); animation: travel 2.6s linear infinite; }
.blink { animation: blink 1.1s steps(1) infinite; }
.float { animation: floaty 6s ease-in-out infinite; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(184, 243, 91, .5); } 50% { box-shadow: 0 0 0 10px rgba(184, 243, 91, 0); } }
@media (prefers-reduced-motion: reduce) {
  .travel::after, .blink, .float, .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 96px 0 40px; }
.hero::before { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 243, 91, .16), rgba(184, 243, 91, 0) 70%); pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero-inner.left { align-items: flex-start; text-align: left; }
.hero h1 { max-width: 1100px; }
.hero .lead { max-width: 680px; }
.hero-fine { font: 13px var(--mono); color: var(--muted); }
.announce { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2); font-size: 14px; }
.announce:hover { border-color: #566075; color: #fff; }
.announce .eyebrow { font-size: 11px; }
.announce .arrow { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1c2029; color: var(--text); }
.page-hero { padding: 104px 0 64px; }
.page-hero .h1 { max-width: 1080px; }

/* pipeline window */
.window { width: 100%; margin-top: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 50px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(184, 243, 91, .06); text-align: left; }
.window-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #0f1117; }
.window-dots { display: flex; gap: 7px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.window-title { flex: 1 1 auto; font: 13px var(--mono); color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--lime); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: blink 1.1s steps(1) infinite; }
.window-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pane { padding: 24px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line-soft); min-width: 0; }
.pane:last-child { border-right: 0; background: var(--ink-2); }
.pane-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.raw { margin: 0; font: 12.5px/1.75 var(--mono); color: var(--dim); white-space: pre-wrap; word-break: break-word; }
.raw b { font-weight: 400; color: var(--text-2); }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #0f1117; border: 1px solid #1e222c; font-size: 15px; }
.check > span:first-child { display: flex; align-items: center; gap: 10px; }
.check .mono { font-size: 12px; color: var(--muted); }
.out { margin: 0; font: 12.5px/1.75 var(--mono); color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.chat { border-radius: 14px; background: #f7f7f8; color: #1d1c1d; padding: 16px; display: flex; gap: 12px; font-size: 14px; line-height: 1.5; }
.chat-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.chat-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chat small { font-size: 12px; color: #5e5d5f; }
.chat-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.sheet { border-radius: 14px; overflow-x: auto; border: 1px solid var(--line); }
.sheet table { width: 100%; border-collapse: collapse; font: 12.5px var(--mono); min-width: 420px; }
.sheet th { background: var(--surface-2); color: var(--muted); text-align: left; font-weight: 500; padding: 10px 12px; }
.sheet td { padding: 10px 12px; border-top: 1px solid #1e222c; color: var(--muted); }
.sheet tr.new td { background: rgba(184, 243, 91, .08); color: var(--text); }
.delivery-bar { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 16px 20px; border-top: 1px solid var(--line); background: #0f1117; font: 12.5px var(--mono); color: var(--muted); }
.delivery-bar strong { font-weight: 400; color: var(--text-2); }

/* logo strip */
.logo-strip { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.logo-strip p { font: 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logo-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font: 700 19px var(--display); letter-spacing: -.02em; color: #6b7385; }

/* what we keep */
.keep { width: 100%; max-width: 460px; margin: 0 auto; padding: 28px; border-radius: 26px; gap: 18px; }
.keep-head { display: flex; justify-content: space-between; align-items: center; font: 13px var(--mono); color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.kv div { background: var(--surface); padding: 14px; min-width: 0; }
.kv small { display: block; font: 11px var(--mono); color: var(--muted); }
.kv span { font: 13px var(--mono); word-break: break-all; }
.not-kept { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); }
.not-kept span:last-child { font-family: var(--mono); color: var(--dim); }

/* bento */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); grid-auto-flow: dense; }
.bento .card { min-height: 300px; }
.bento .card.span2 { grid-column: span 2; }
@media (max-width: 720px) { .bento .card.span2 { grid-column: auto; } }
.replies { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.replies span { padding: 10px 12px; border-radius: 10px; }
.replies .keep-line { background: #0f1117; color: var(--text); }
.replies .cut { color: #4a5163; text-decoration: line-through; }
.rule-lines { display: flex; flex-direction: column; gap: 8px; font: 12.5px var(--mono); color: var(--text-2); }
.rule-lines div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.rule-lines i { font-style: normal; color: var(--muted); }
.terminal { margin: 0; padding: 20px; border-radius: 14px; background: #07080b; border: 1px solid #1e222c; font: 12.5px/1.8 var(--mono); color: var(--text-2); white-space: pre-wrap; word-break: break-word; }

/* code section */
.code-card { border-radius: 22px; overflow: hidden; padding: 0; gap: 0; }
.code-card .switch { padding: 14px; border-bottom: 1px solid var(--line); display: flex; }
.code-card pre { margin: 0; padding: 24px; font: 13.5px/1.85 var(--mono); color: var(--text-2); white-space: pre-wrap; word-break: break-word; }

/* numbered steps */
.steps3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps3 > div { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.big-num { font: 700 72px/1 var(--display); color: var(--lime); letter-spacing: -.04em; }

/* plans teaser */
.plan-mini { color: var(--text); gap: 10px; }
.plan-mini:hover { border-color: #566075; color: var(--text); }
.plan-mini .price-sm { font: 700 44px/1 var(--display); letter-spacing: -.04em; }
.plan-mini .price-sm small { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.plan-mini.featured, .plan.featured { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; }

/* lime CTA */
.cta-lime { position: relative; overflow: hidden; border-radius: 32px; background: var(--lime); color: var(--ink); padding: clamp(40px, 7vw, 96px); display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.cta-lime > * { position: relative; }
.cta-lime h2 { font-size: clamp(44px, 6.4vw, 96px); max-width: 900px; }
.cta-lime p { font-size: 19px; max-width: 560px; color: var(--lime-ink); }
.cta-lime .ghost-big { position: absolute; right: -60px; bottom: -110px; width: 420px; height: 420px; opacity: .16; }
.cta-card { padding: clamp(36px, 6vw, 72px); flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; border-radius: 28px; }
.cta-card h2 { font-size: clamp(32px, 4vw, 54px); max-width: 640px; }

/* ---------------------------------------------------------------- platform */
.stage-strip { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stage-strip li { padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stage-strip li:last-child { border-right: 0; background: rgba(184, 243, 91, .06); }
.stage-strip span { font: 12px var(--mono); color: var(--lime); }
.stage-strip a { color: var(--text); font-weight: 600; }
.stages { display: flex; flex-direction: column; gap: 24px; }
.stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: center; padding: clamp(28px, 4vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stage p { color: var(--muted); font-size: 17px; }
.stage-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 500 13px var(--mono); }
.rows { overflow: hidden; font-family: var(--mono); }
.rows-head { padding: 12px 16px; font-size: 12px; color: var(--muted); }
.rows div.r { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid #1e222c; font-size: 13.5px; }
.rows div.r span:last-child { color: var(--lime); text-align: right; }
.rows div.r.off, .rows div.r.off span:last-child { color: var(--dim); }
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.verdicts div { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.verdicts small { font: 12px var(--mono); color: var(--muted); }
.verdicts strong { font: 700 26px var(--display); color: var(--lime); }
.verdicts span { font: 11px var(--mono); color: var(--muted); word-break: break-all; }
.meter-box { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.meter-label { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--muted); }
.meter { height: 10px; border-radius: 999px; background: #1e222c; overflow: hidden; }
.meter span { display: block; width: 7%; height: 100%; border-radius: 999px; background: var(--lime); }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; font-family: var(--mono); }
.fields div { background: var(--ink-2); padding: 12px 14px; font-size: 13px; min-width: 0; word-break: break-word; }
.fields div.h { background: var(--surface-2); font-size: 11px; color: var(--muted); padding: 10px 14px; }
.timeline { list-style: none; margin: 0; padding: 0; font: 13px var(--mono); }
.timeline li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #1e222c; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { color: var(--muted); width: 72px; flex: 0 0 auto; }
.timeline .v { margin-left: auto; }
.timeline .v.bad { color: var(--amber); } .timeline .v.ok { color: var(--lime); } .timeline .v.mid { color: var(--muted); }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.specs dd.yes { color: var(--lime); }

/* ---------------------------------------------------------------- integrations */
.hub { margin-top: 64px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hub-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-height: 120px; }
.hub-tile small { font: 12px var(--mono); color: var(--muted); letter-spacing: .06em; }
.hub-tile strong { font: 700 24px var(--display); letter-spacing: -.03em; }
.hub-tile.lit { border-color: var(--lime); background: #151a0e; box-shadow: 0 0 0 1px var(--lime) inset, 0 0 40px rgba(184, 243, 91, .18); }
.demo { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.demo-col { display: flex; flex-direction: column; gap: 10px; }
.demo-col > small { font: 12px var(--mono); color: var(--muted); }
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #0f1117; color: var(--text); font: inherit; cursor: pointer; }
.pick:hover { border-color: #566075; }
.pick[aria-pressed="true"] { border-color: var(--text); background: #1a1d26; }
.pick small { font: 12px var(--mono); color: var(--muted); }
.pick strong { font-weight: 600; }
.rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font: 12.5px var(--mono); color: var(--muted); transition: border-color .15s, color .15s, background .15s; }
.rule.hit { border-color: var(--lime); color: var(--text); background: rgba(184, 243, 91, .06); }
.rule.dashed { border-style: dashed; }
.result .target { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 13px var(--mono); }
.mini-msg { padding: 14px; border-radius: 12px; background: #0f1117; border: 1px solid #1e222c; font-size: 14px; }
.mini-msg span { display: block; font-size: 13px; color: var(--muted); }
.mini-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; font: 12px var(--mono); }
.mini-sheet div { background: #0f1117; padding: 8px 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-sheet div.h { background: var(--surface-2); }
.code-line { display: block; padding: 12px 14px; border-radius: 10px; background: #0f1117; border: 1px solid #1e222c; font: 13px var(--mono); color: var(--text-2); word-break: break-word; }
ol.zap { margin: 0; padding-left: 20px; font: 13px var(--mono); color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.plan.featured { box-shadow: 0 0 0 1px var(--lime) inset, 0 30px 80px rgba(184, 243, 91, .10); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-top h2, .plan-top h3 { font-size: 24px; letter-spacing: -.025em; }
.plan-top small { font: 11px var(--mono); color: var(--lime); letter-spacing: .08em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font: 700 58px/1 var(--display); letter-spacing: -.04em; }
.price span { font: 400 15px var(--sans); letter-spacing: 0; color: var(--muted); }
.plan p { color: var(--muted); font-size: 14px; min-height: 44px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 4px; background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23b8f35b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price-note { margin-top: 20px; text-align: center; font: 13px var(--mono); color: var(--muted); }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid #1e222c; font-size: 15px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare th { font-weight: 500; color: var(--muted); }
.compare thead th { color: var(--text); font: 700 20px var(--display); letter-spacing: -.02em; }
.compare thead th.hl { color: var(--lime); }
.compare td.no { color: var(--dim); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; color: var(--muted); }
.free-card { max-width: 640px; margin: 0 auto; align-items: center; text-align: center; padding: 48px 32px; border-radius: 28px; }
.free-card .price { justify-content: center; font-size: 88px; }
.free-card .ticks { text-align: left; }

/* allowed / not allowed */
.yesno { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.yesno ul { margin: 0; padding-left: 1.2rem; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.yesno h3.yes { color: var(--lime); }
.yesno h3.no { color: var(--red); }

/* ---------------------------------------------------------------- developers hub */
.search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.search input { flex: 1 1 320px; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 16px var(--sans); }
.search input::placeholder { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sdk { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.sdk:hover { border-color: #566075; color: var(--text); }
.sdk strong { font: 700 22px var(--display); letter-spacing: -.02em; }
.sdk code { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.ep { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #1e222c; font: 13px var(--mono); }
.ep:last-child { border-bottom: 0; }
.m { display: inline-block; min-width: 52px; font: 500 11px var(--mono); color: var(--ink); background: var(--lav); border-radius: 6px; padding: 2px 6px; text-align: center; }
.m.post { background: var(--lime); } .m.del { background: var(--amber); }
.anatomy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.anatomy li { display: flex; gap: 14px; }
.anatomy .num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px; background: var(--lime); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 12px var(--mono); }

/* ---------------------------------------------------------------- trust */
.lifecycle { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; }
.lifecycle li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-left: 1px solid var(--line); }
.lifecycle li:first-child { border-left: 0; }
.lifecycle li:last-child { background: rgba(184, 243, 91, .06); border-radius: 0 20px 20px 0; }
.lifecycle small { font: 12px var(--mono); color: var(--lime); }
.lifecycle strong { font-size: 18px; }
.lifecycle span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 720px) { .lifecycle li { border-left: 0; border-top: 1px solid var(--line); } .lifecycle li:first-child { border-top: 0; } .lifecycle li:last-child { border-radius: 0 0 20px 20px; } }

/* ---------------------------------------------------------------- legal pages */
.legal { max-width: 820px; padding: 72px 24px 100px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 12px; }
.legal .updated { color: var(--muted); font: 13px var(--mono); margin: 0 0 40px; }
.legal h2 { font-size: 26px; letter-spacing: -.02em; margin: 48px 0 12px; }
.legal h3 { font-size: 19px; letter-spacing: -.01em; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 1.3rem; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.legal th { color: var(--text); font-weight: 600; }
.legal .summary { background: var(--surface); border: 1px solid #3b4a1e; border-radius: 18px; padding: 20px 24px; margin-bottom: 32px; }
.legal .summary p { margin: 0; }
.table-wrap { overflow-x: auto; }
.legal code, .legal kbd { font-size: .9em; background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; }

/* ---------------------------------------------------------------- API docs (docs.html + docs.js) */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; font-size: 14px; padding-right: 8px; }
.docs-nav a { display: block; padding: 4px 0; color: var(--muted); }
.docs-nav a:hover { color: #fff; }
.docs-nav-title { font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 22px 0 6px; }
.docs-nav-title:first-child { margin-top: 0; }
.docs-body { min-width: 0; }
.docs-body h1 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 12px; }
.docs-body .lead { margin: 0 0 16px; }
.docs-body p { margin: 0 0 14px; color: var(--text-2); }
.docs-body li { color: var(--text-2); }
.docs-body ul, .docs-body ol { padding-left: 1.3rem; }
.docs-body section { padding: 0; margin: 56px 0 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.docs-body h2 { font-size: 32px; letter-spacing: -.03em; margin: 0 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.docs-body h3 { font-size: 21px; letter-spacing: -.02em; margin: 28px 0 10px; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14.5px; }
.docs-body th, .docs-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.docs-body th { font-weight: 600; color: var(--text); }
.docs-body code { background: var(--surface-2); color: var(--text); padding: .1rem .35rem; border-radius: 5px; font-size: .86em; word-break: break-word; }
.docs-body td:first-child code { white-space: nowrap; }
.docs-body pre.code code, .docs-body pre code { background: none; padding: 0; color: inherit; }
.docs-body .note { background: var(--surface); border: 1px solid #3b4a1e; border-radius: 14px; padding: 14px 18px; margin: 14px 0; }
.docs-body .note p:last-child { margin: 0; }
.docs-body .steps li { margin: 6px 0; }
pre.code { background: #07080b; color: var(--text-2); border: 1px solid #1e222c; border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 12px 0 18px; }
.endpoint { font-size: 16px; }
.method { display: inline-block; font: 600 12px var(--mono); color: var(--ink); background: var(--lime); padding: 3px 8px; border-radius: 6px; margin-right: 6px; }
.req { font: 600 11px var(--mono); color: var(--amber); margin-left: 4px; }
.code-wrap { position: relative; margin: 12px 0 18px; }
.code-wrap pre.code { margin: 0; }
.code-wrap .copy { position: absolute; top: 10px; right: 10px; font: 12px var(--mono); min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); cursor: pointer; }
.code-wrap .copy:hover { color: #fff; border-color: #566075; }
.tabs { margin: 12px 0 18px; }
.tab-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tab-list [role="tab"] { font: 500 13px var(--mono); min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer; }
.tab-list [role="tab"]:hover { color: #fff; }
.tab-list [role="tab"][aria-selected="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.tabs .code-wrap { margin-top: 0; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-nav { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .docs-nav-title { width: 100%; }
}

/* ---------------------------------------------------------------- status page (status.js) */
.status-page { max-width: 1000px; padding: 64px 24px 100px; }
.status-page h1 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 24px; }
.status-page h2 { font-size: 28px; letter-spacing: -.02em; margin: 48px 0 16px; }
.status-banner { display: flex; align-items: center; gap: 18px; border-radius: 24px; padding: 26px 30px; font: 700 clamp(22px, 3vw, 32px) var(--display); letter-spacing: -.02em; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.status-banner::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.status-banner.operational { background: #151a0e; border-color: #3b4a1e; }
.status-banner.operational::before { background: var(--lime); animation: pulse 2s ease-in-out infinite; }
.status-banner.degraded, .status-banner.maintenance { background: #1d160d; border-color: #4a3518; }
.status-banner.degraded::before, .status-banner.maintenance::before { background: var(--amber); }
.status-banner.outage { background: #200f0e; border-color: #4a1f1c; }
.status-banner.outage::before { background: var(--red); }
.status-components { display: flex; flex-direction: column; gap: 14px; }
.component { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.component .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.component .state { font: 13px var(--mono); }
.component .state.operational { color: var(--lime); }
.component .state.degraded, .component .state.maintenance { color: var(--amber); }
.component .state.outage { color: var(--red); }
.bars { display: flex; gap: 2px; height: 34px; margin: 14px 0 6px; }
.bars span { flex: 1; min-width: 0; border-radius: 2px; background: var(--line); }
.bars .ok { background: var(--lime); }
@media (max-width: 600px) { .bars { gap: 1px; } }
.bars .warn { background: var(--amber); }
.bars .bad { background: var(--red); }
.component .small { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--muted); margin: 0; }
.incident { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 14px; }
.incident h3 { font-size: 19px; margin: 0 0 6px; }
.incident p { margin: 6px 0; color: var(--text-2); }
.incident .tag { display: inline-block; font: 12px var(--mono); padding: 3px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); vertical-align: middle; }
.incident.major .tag { background: var(--red-soft); color: var(--red); }
.incident.maintenance .tag { background: var(--lime-soft); color: var(--lime); }
.status-foot { margin-top: 40px; font-size: 14px; }

/* Parsers page: the ready-made library */
.parser-group { margin: 40px 0 16px; }
.parser-card h4 { margin: 0 0 8px; }
.parser-card p { color: var(--muted); margin: 0 0 14px; }
.parser-card .chip { min-height: 24px; padding: 0 9px; font-size: 11.5px; }
/* comparison pages */
.gap-top { margin-top: 48px; }
.note-top { margin-top: 16px; }

/* Tutorials: one readable column, with the docs' code blocks and tabs. */
.tutorial { max-width: 880px; padding-top: 56px; padding-bottom: 100px; }
.tutorial .crumbs { font: 13px var(--mono); color: var(--muted); margin: 0 0 18px; }
.tutorial .crumbs a { color: var(--text-2); }
.tutorial h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -.035em; margin: 10px 0 16px; }
.tutorial-video { margin: 4px 0 0; }
.flow { list-style: none; padding: 0 !important; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: flow; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; counter-increment: flow; }
.flow li::before { content: counter(flow, decimal-leading-zero); font: 600 11px var(--mono); color: var(--lime); }
.flow strong { color: var(--text); font-size: 14.5px; line-height: 1.3; }
.flow span { color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.tutorial .grid .card { gap: 10px; padding: 24px; }
.tutorial .grid .card h3 { font-size: 19px; }
.tutorial .shot, .tutorial .shots { margin: 18px 0 24px; }
.tutorial .shots { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tutorial .shots .shot { margin: 0; }
.tutorial .shot.narrow { max-width: 560px; }
.tutorial .terminal { margin: 12px 0 18px; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr 1fr; } }

/* An embedded YouTube video (src/videos.ts): 16:9, full width up to a readable size. */
.video-embed { margin: 8px 0 24px; max-width: 960px; }
.wrap > .video-embed { margin-inline: auto; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Tables that stack on phones (the migration tutorials' mapping tables): each row becomes a small card. */
@media (max-width: 640px) {
  .docs-body table.stack-sm tr:first-child { display: none; }
  .docs-body table.stack-sm, .docs-body table.stack-sm tbody, .docs-body table.stack-sm tr, .docs-body table.stack-sm td { display: block; width: 100%; }
  .docs-body table.stack-sm tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .docs-body table.stack-sm td { border: 0; padding: 4px 0; }
  .docs-body table.stack-sm td:first-child { color: var(--text); }
  .docs-body table.stack-sm td + td::before { content: "→ "; color: var(--dim); }
  .docs-body table.stack-sm td:first-child code { white-space: normal; }
}

/* Webmail page: screenshots and the install guide */
.download-meta { font: 13px var(--mono); margin: 0; }
.shot { margin: 0; border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 14px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.shots { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.phones { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 200px)) 1fr; align-items: center; margin-top: 20px; }
.shot.phone { border-radius: 28px; }
.phones-text { padding: 0 8px; max-width: 420px; }
@media (max-width: 720px) {
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .phones-text { grid-column: 1 / -1; padding: 0; }
}
.install-guide { max-width: 820px; }
.install-guide h3 { margin-top: 32px; }
.install-guide h3:first-child { margin-top: 0; }
.install-callout { margin: 24px 0 8px; gap: 8px; }
.install-callout h3 { margin-top: 0; }

/* ---------------------------------------------------------------- depth: 3D, light and motion
   Calm on purpose: slow, weighty movement, nothing that jumps. Everything here is transform and opacity (cheap for the
   GPU), and people who ask for less motion get a still version. */

/* The hero: a floor of light receding to the horizon, and the product window tilting up into place as you scroll. */
.hero { isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: -1; left: -40%; right: -40%; bottom: -120px; height: 1300px; pointer-events: none;
  background-image: linear-gradient(rgba(184, 243, 91, .17) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 243, 91, .17) 1px, transparent 1px);
  background-size: 72px 72px; transform: perspective(900px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 20%, rgba(0, 0, 0, .45) 55%, transparent 80%); mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 20%, rgba(0, 0, 0, .45) 55%, transparent 80%);
  animation: floor-flow 7s linear infinite; }
@keyframes floor-flow { to { background-position: 0 72px, 0 0; } }
.hero-inner { perspective: 2200px; }
html.js .hero .window { transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) rotateY(var(--turn, 0deg)); will-change: transform;
  box-shadow: 0 60px 160px rgba(0, 0, 0, .65), 0 0 0 1px rgba(184, 243, 91, .07), 0 -1px 0 rgba(255, 255, 255, .06) inset; }

/* Four layers, in 3D: glass slabs an email rises through, each lighting up as it passes. */
.layers-section { position: relative; }
.layers-section::before { content: ""; position: absolute; right: 8%; top: 50%; width: 680px; height: 680px; margin-top: -340px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(184, 243, 91, .10), rgba(196, 181, 253, .05) 55%, transparent 75%); }
.layer-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.layer-list li { display: grid; gap: 2px; padding: 14px 18px; border-left: 2px solid var(--line); border-radius: 0 14px 14px 0; transition: border-color .5s, background .5s; }
.layer-list small { font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .5s; }
.layer-list strong { font: 600 18px/1.3 var(--display); letter-spacing: -.02em; }
.layer-list span { color: var(--muted); font-size: 15px; }
.layer-list li.on { border-left-color: var(--lime); background: linear-gradient(90deg, rgba(184, 243, 91, .07), transparent 70%); }
.layer-list li.on small { color: var(--lime); }

.vault { --size: min(330px, 56vw); position: relative; height: calc(var(--size) * 1.62); display: grid; place-items: center; perspective: 1400px; }
.vault-stage { position: relative; width: var(--size); height: var(--size); transform-style: preserve-3d; margin-top: calc(var(--size) * .42);
  transform: rotateX(calc(58deg - var(--py, 0) * 5deg)) rotateZ(calc(-42deg + var(--px, 0) * 9deg)); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.vault-stage::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; transform: translateZ(-30px);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.slab { position: absolute; inset: 0; border-radius: 30px; border: 1px solid rgba(184, 243, 91, .26);
  background: linear-gradient(135deg, rgba(184, 243, 91, .12), rgba(196, 181, 253, .05) 55%, rgba(255, 255, 255, .02)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 33px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 33px), rgba(13, 15, 20, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 0 50px rgba(184, 243, 91, .05); animation: slab-pulse 7s infinite both; }
.slab-1 { transform: translateZ(0); animation-delay: 1s; }
.slab-2 { transform: translateZ(calc(var(--size) * .27)); animation-delay: 2.45s; }
.slab-3 { transform: translateZ(calc(var(--size) * .54)); animation-delay: 3.9s; }
.slab-4 { transform: translateZ(calc(var(--size) * .81)); animation-delay: 5.35s; }
@keyframes slab-pulse {
  0% { border-color: rgba(184, 243, 91, .95); box-shadow: inset 0 0 50px rgba(184, 243, 91, .22), 0 0 70px rgba(184, 243, 91, .32); }
  22%, 100% { border-color: rgba(184, 243, 91, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 0 50px rgba(184, 243, 91, .05); }
}
.slab-label { position: absolute; left: 22px; bottom: 18px; font: 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.slab-label b { color: var(--lime); font-weight: 500; margin-right: 6px; }
/* The light column the email rises along, standing up from the bottom slab. */
.beam { position: absolute; left: calc(50% - 1px); top: calc(50% - var(--size) * .95); width: 2px; height: calc(var(--size) * .95); transform-origin: 50% 100%; transform: rotateX(-90deg);
  background: linear-gradient(to top, rgba(184, 243, 91, .0), rgba(184, 243, 91, .55) 30%, rgba(184, 243, 91, .55) 75%, rgba(184, 243, 91, 0)); box-shadow: 0 0 18px rgba(184, 243, 91, .45); }
.packet { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lime-hover), var(--lime)); box-shadow: 0 0 40px rgba(184, 243, 91, .7), 0 0 0 6px rgba(184, 243, 91, .12);
  animation: packet-rise 7s cubic-bezier(.45, 0, .55, 1) infinite; }
.packet svg { transform: rotateZ(42deg); }
@keyframes packet-rise {
  0% { transform: translateZ(calc(var(--size) * -.2)) scale(.9); opacity: 0; }
  8% { opacity: 1; }
  84% { transform: translateZ(calc(var(--size) * .92)) scale(1); opacity: 1; }
  /* Forgotten: it fades away above the last layer. */
  94%, 100% { transform: translateZ(calc(var(--size) * 1.05)) scale(.6); opacity: 0; }
}

/* Screenshots catch the light and lean gently towards the pointer. */
.shot { position: relative; transition: transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .7s; }
.shot.tilting { transition: transform .12s linear, box-shadow .4s; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(184, 243, 91, .08); }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(700px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .09), transparent 42%); }
.shot.tilting::after { opacity: 1; }

/* Content eases up into place the first time it scrolls into view. */
html.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
html.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .hero::after, .slab, .packet { animation: none; }
  .packet { transform: translateZ(calc(var(--size) * .92)); }
  .slab-4 { border-color: rgba(184, 243, 91, .8); }
  html.js .hero .window { transform: none; }
  html.js .reveal { opacity: 1; translate: none; transition: none; }
}

/* Webmail page: host-ready plugins (cPanel & WHM, Softaculous, Installatron) and their install commands. */
.host-banner { border: 1px solid #3b4a1e; border-radius: 26px; padding: 40px; background: linear-gradient(160deg, rgba(190, 242, 100, .07), transparent 55%), var(--surface); }
.host-banner .section-head { margin-bottom: 32px; }
.host-card { background: var(--ink, #0a0b0f); }
.host-badge { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; color: var(--lime); }
.host-badge .host-name { font-size: 20px; font-weight: 650; letter-spacing: -.02em; color: var(--text); }
.host-badge .chip { grid-column: 1 / -1; justify-self: start; }
.host-install { margin-top: 40px; }
.host-install ol { padding-left: 20px; color: var(--text-2); }
.host-install ol li + li { margin-top: 8px; }
@media (max-width: 600px) { .host-banner { padding: 24px 18px; border-radius: 20px; } }

/* Partner directory (/partners). */
.partner-directory .partner-head { display: flex; align-items: center; gap: 12px; }
.partner-directory .partner-head img { max-width: 140px; max-height: 32px; object-fit: contain; }
/* Partners: what hosts deal with today, and what changes. */
.why .why-was { border-left: 2px solid var(--line-strong); padding-left: 12px; }
.why .why-now { border-left: 2px solid var(--lime); padding-left: 12px; color: var(--text-2); }
.straight { margin-top: 40px; }
.grid.why-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }

/* ---------------------------------------------------------------- licence interest (partners) */
.interest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; }
.interest-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; color: var(--text-2); }
.interest-points li { padding-left: 22px; position: relative; line-height: 1.55; }
.interest-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.interest-form label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.interest-form input, .interest-form select, .interest-form textarea { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--ink-2); color: var(--text); font: 15px var(--sans); }
.interest-form textarea { resize: vertical; }
.interest-form input:focus-visible, .interest-form select:focus-visible, .interest-form textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.interest-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.interest-form button { justify-self: start; }
.interest-status:empty, .interest-form [hidden] { display: none; }
.interest-status.ok { color: var(--lime); }
.interest-status.bad { color: var(--red); }
@media (max-width: 860px) { .interest { grid-template-columns: 1fr; gap: 28px; } }

/* ------------------------------------------------------------------ the webmail suite (home page and /webmail) */
.suite-apps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.suite-app { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.suite-app strong { font-weight: 600; font-size: 15px; color: var(--text); }
.suite-app span:last-child { grid-column: 2; font-size: 13px; color: var(--muted); line-height: 1.35; }
.suite-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lime-soft); color: var(--lime); }
.suite-icon svg { width: 22px; height: 22px; }
.showcase-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.showcase-tabs [role="tab"] { font: 600 14px var(--sans); min-height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer; }
.showcase-tabs [role="tab"]:hover { color: #fff; border-color: var(--muted); }
.showcase-tabs [role="tab"][aria-selected="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.showcase-tabs [role="tab"]:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.showcase-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.showcase-panel[hidden] { display: none; }
.showcase-text .ticks { margin-top: 14px; }
@media (max-width: 900px) { .showcase-panel { grid-template-columns: 1fr; gap: 20px; } .showcase-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .showcase-tabs [role="tab"] { flex: none; } }
.value-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 48px; }
@media (max-width: 600px) {
  .suite-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
  .suite-app:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .suite-app { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 8px; padding: 12px; }
  .suite-icon { grid-row: auto; width: 34px; height: 34px; border-radius: 10px; }
  .suite-icon svg { width: 19px; height: 19px; }
  .suite-app span:last-child { grid-column: 1; }
  .value-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .value-strip div { padding: 14px 4px; }
  .value-strip strong { font-size: 18px; }
  .value-strip span { font-size: 14px; }
}
.value-strip div { padding: 20px 22px; border-top: 1px solid var(--line-strong); }
.value-strip strong { display: block; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; color: var(--text); line-height: 1.15; margin-bottom: 6px; }
.value-strip span { color: var(--muted); font-size: 15px; }
.suite-section .section-head { max-width: 860px; }

/* Click-to-call: screenshots side by side, the savings calculator, two phones. */
.call-shots { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.call-shots figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.savings { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.calc-field { display: grid; gap: 6px; margin-top: 16px; color: var(--text-2); font-size: 15px; }
.calc-field input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink-2); color: var(--text);
  font: 600 18px var(--sans); }
.calc-field input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.savings-result { padding: 28px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); text-align: center; }
.savings-result p { margin: 4px 0; }
.savings-now { font: 700 40px/1.1 var(--display); color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.savings-ours { font: 700 40px/1.1 var(--display); color: var(--lime); }
.savings-total { margin: 18px 0 12px !important; font-size: 20px; }
.savings-total strong { color: var(--lime); font: 700 28px var(--display); }
.call-phones { display: flex; gap: 20px; justify-content: center; }
.call-phones .shot.phone { max-width: 260px; }
.call-band { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
