:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --good: #0ca30c; --good-ink: #006300; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --critical-ink: #b42828;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781; --grid: #2c2c2a; --axis: #383835;
    --border: rgba(255, 255, 255, 0.10); --accent: #3987e5;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --good-ink: #0ca30c; --critical-ink: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781; --grid: #2c2c2a; --axis: #383835;
  --border: rgba(255, 255, 255, 0.10); --accent: #3987e5;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --good-ink: #0ca30c; --critical-ink: #e66767;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.sub { color: var(--ink-2); margin: 0 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }

/* ---- layout */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { font-weight: 700; font-size: 15px; padding: 0 10px 18px; display: flex; gap: 8px; align-items: center; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--surface-2); color: var(--ink); }
.side-foot { margin-top: auto; padding: 10px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--border); }
.side-foot .who { font-weight: 600; color: var(--ink); word-break: break-all; }
.main { padding: 24px 32px 48px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 20; left: 0; top: 0; width: 240px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .main { padding: 16px; }
  .menu-btn { display: inline-flex; }
}

/* ---- controls */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 5px 12px; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.btn { border: 1px solid var(--border); background: var(--surface); color: var(--ink); padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; font-weight: 500; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.danger { color: var(--critical-ink); }
.btn.sm { padding: 3px 10px; font-size: 12px; }
input:not([type]), input[type=text], input[type=email], input[type=search], select {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; min-width: 0;
}
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- cards / grid */
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
@media (max-width: 480px) { .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.tile .label { color: var(--ink-2); font-size: 13px; }
.tile .value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin: 2px 0; }
.tile .note { font-size: 12px; color: var(--muted); }
.meter { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.good::before { background: var(--good); }
.status.warning::before { background: var(--warning); }
.status.serious::before { background: var(--serious); }
.status.critical::before { background: var(--critical); }
.strip { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.strip .k { color: var(--ink-2); font-size: 12px; display: block; }

.banner { border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.banner.warn { border-left: 4px solid var(--warning); }
.banner.err { border-left: 4px solid var(--critical); }
.banner.info { border-left: 4px solid var(--accent); }

/* ---- charts */
.chart-box { position: relative; height: 260px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: currentColor; }
.legend i.dash { background: none; border-top: 2px dashed currentColor; height: 0; }
.legend .sw-s1 { color: var(--s1); } .legend .sw-s2 { color: var(--s2); } .legend .sw-s3 { color: var(--s3); } .legend .sw-s4 { color: var(--s4); }
.legend .sw-warning { color: var(--warning); } .legend .sw-critical { color: var(--critical); }
.legend .lbl { color: var(--ink-2); }

/* ---- tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; font-size: 12px; white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
td.wrap { max-width: 380px; overflow-wrap: anywhere; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---- recipient timeline */
.msg { border-top: 1px solid var(--grid); padding: 12px 0; }
.msg:first-child { border-top: 0; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 12px; background: var(--surface-2); border-radius: 6px; padding: 2px 8px; color: var(--ink-2); }
.chip b { color: var(--ink); font-weight: 600; }

/* ---- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 380px; padding: 28px; text-align: center; }
.login .btn { width: 100%; padding: 11px; margin-top: 10px; font-size: 14px; display: block; }
.login .err { color: var(--critical-ink); font-size: 13px; margin-top: 12px; }
.loading { color: var(--muted); padding: 40px 0; }
.scroll .table-wrap { max-height: 460px; overflow-y: auto; }
.scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* ================= shared additions (customer portal, site) ================= */
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.block { width: 100%; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .m0 { margin: 0; }
.grow { flex: 1 1 220px; min-width: 0; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--surface-2); padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: 0; line-height: 1.5; }
.copy { cursor: pointer; }
textarea { border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; width: 100%; resize: vertical; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; min-height: 420px; line-height: 1.45; }
input[type=password], input[type=number], input[type=tel], input[type=url], input[type=datetime-local], input[type=file] {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; min-width: 0;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { margin-top: 3px; }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1 1 70px; min-width: 60px; }
.input-group select { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; flex: 1 1 auto; min-width: 0; max-width: 75%; }
.err-text { color: var(--critical-ink); font-size: 13px; }
.ok-text { color: var(--good-ink); font-size: 13px; }

#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: var(--page); padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 6px 24px rgba(0,0,0,.18); max-width: 420px; }
.toast.err { background: var(--critical); color: #fff; }
.toast.ok { background: var(--good-ink); color: #fff; }

dialog { border: 1px solid var(--border); border-radius: 14px; padding: 0; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog .dlg-body { padding: 20px 22px; }
dialog .dlg-foot { padding: 12px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font: inherit; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.checklist .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--axis); flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.checklist li.done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.checklist li.done .t { color: var(--ink-2); text-decoration: line-through; }
.checklist .t { flex: 1; }

.credits-chip { display: inline-flex; gap: 6px; align-items: baseline; background: var(--surface-2); padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.credits-chip b { color: var(--ink); font-size: 13px; }

/* heatmap */
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(10px, 1fr)); gap: 2px; font-size: 10.5px; color: var(--muted); }
.heat .cell { aspect-ratio: 1.2; border-radius: 3px; background: var(--surface-2); min-height: 12px; }
.heat .cell:hover, .heat .cell:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.heat .hl { text-align: center; }
.heat .dl { display: flex; align-items: center; }
.heat-scale { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.heat-scale .ramp { height: 8px; width: 120px; border-radius: 4px; }
.tip { position: fixed; pointer-events: none; z-index: 60; background: var(--surface); color: var(--ink); border: 1px solid var(--grid); border-radius: 8px; padding: 6px 10px; font-size: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }

/* funnel */
.funnel { display: grid; gap: 10px; }
.funnel .frow { display: grid; grid-template-columns: 120px 1fr 120px; gap: 12px; align-items: center; font-size: 13px; }
.funnel .fbar { height: 22px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.funnel .fbar > span { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.funnel .fval { text-align: right; font-variant-numeric: tabular-nums; }
.funnel .fval small { color: var(--muted); margin-left: 6px; }
@media (max-width: 520px) { .funnel .frow { grid-template-columns: 90px 1fr 90px; } }

/* DNS / domain cards */
.domain-card { border-top: 1px solid var(--grid); padding: 14px 0; }
.domain-card:first-of-type { border-top: 0; }
.rec-val { max-width: 360px; }

/* campaign editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } }
.preview-frame { width: 100%; height: 620px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.taglist button { border: 1px dashed var(--axis); background: transparent; color: var(--ink-2); border-radius: 6px; padding: 2px 8px; font: 12px ui-monospace, Menlo, monospace; cursor: pointer; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--accent); }

/* packages */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pack { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.pack .pname { font-weight: 650; }
.pack .pprice { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pack .pper { font-size: 12px; color: var(--muted); }

/* ================= marketing site ================= */
.site { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 12px; }
.site-nav .links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 28px; } }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 14px; }
.hero p.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 22px; max-width: 560px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .cta .btn { padding: 11px 18px; font-size: 15px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0 48px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14px; }
.section-title { font-size: 26px; letter-spacing: -.015em; margin: 0 0 6px; }
.site-foot { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 28px; }
.prose li { margin-bottom: 6px; }
.hero > * { min-width: 0; }
.hero-card pre { white-space: pre; max-width: 100%; }
@media (max-width: 560px) { .site-nav { flex-wrap: wrap; } .site-nav .links .ghost { display: none; } .hero-card pre { font-size: 11px; } }
.brand-mark { background: var(--accent) url("/favicon.svg") center / cover no-repeat; }

/* ---------- marketing site: channels */
.ch-email { --ch: #2a78d6; } .ch-sms { --ch: #1a9b6c; } .ch-whatsapp { --ch: #128c7e; } .ch-voice { --ch: #6e56cf; }
.ch-ussd { --ch: #d4572a; } .ch-push { --ch: #b8326a; } .ch-telegram { --ch: #1d8fcf; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.ch-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.ch-chip.live { color: var(--good-ink); }
.ch-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.channels { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0 48px; }
/* 7 cards: the live Email card spans two columns, so every row is full (2 cols: 1+2+2+2, 4 cols: 3+4) */
@media (min-width: 640px) { .channels { grid-template-columns: repeat(2, 1fr); } .channels .ch-email { grid-column: span 2; } }
@media (min-width: 1040px) { .channels { grid-template-columns: repeat(4, 1fr); } }
.channel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ch-art { display: block; width: 100%; height: 168px; background: var(--surface-2); background: color-mix(in srgb, var(--ch) 9%, var(--surface-2)); border-bottom: 1px solid var(--border); }
.ch-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ch-body p { margin: 0 0 4px; color: var(--ink-2); font-size: 14px; flex: 1; }
.ch-body .btn { align-self: flex-start; }
.ch-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ch-head h3 { margin: 0; font-size: 16px; }
/* illustration parts (inline SVG, coloured from the theme so they follow light/dark mode) */
.a-panel { fill: var(--surface); stroke: var(--border); }
.a-soft { fill: var(--surface-2); }
.a-mute { fill: var(--axis); }
.a-line { fill: var(--grid); }
.a-hl { fill: var(--surface-2); fill: color-mix(in srgb, var(--ch) 16%, var(--surface)); }
.a-ch, .a-wave rect { fill: var(--ch); }
.a-on-ch { stroke: #fff; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.a-on-ch-fill { fill: #fff; }
.a-dim { opacity: .85; }
.a-keys rect { fill: var(--surface-2); stroke: var(--border); }
.ch-art text { font-family: var(--font); }
.a-txt { fill: var(--ink); font-size: 8px; }
.a-txt.b { font-weight: 600; font-size: 9px; }
.a-txt.s { fill: var(--ink-2); font-size: 7.5px; }
.a-txt.big { font-size: 14px; font-weight: 700; }
.a-txt.c, .a-on-ch-txt.c { text-anchor: middle; }
.a-on-ch-txt { fill: #fff; font-size: 9px; font-weight: 600; }
.a-on-ch-txt.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 7.5px; font-weight: 500; }
.a-tick { fill: var(--ch); font-size: 8px; font-weight: 700; }

/* ---------- marketing site: early-access form */
.ea { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-top: 48px; }
.ea .section-title { margin-top: 0; }
.ea-form { display: flex; flex-direction: column; gap: 16px; }
.ea-channels { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ea-channels legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.ea-channels label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); cursor: pointer; }
.ea-channels input { accent-color: var(--accent); margin: 0; }
.ea-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ea-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.ea-fields .wide { grid-column: 1 / -1; }
.ea-fields input, .ea-fields textarea { width: 100%; box-sizing: border-box; }
.ea-fields textarea { border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; resize: vertical; }
.ea-fields textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ea-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#ea-msg.ok { color: var(--good-ink); } #ea-msg.err { color: var(--critical-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .ea { padding: 18px; } }

/* ---------- marketing site: background (only on signally.cloud, not the portals) */
body.marketing {
  --glow-1: rgba(42, 120, 214, .16); --glow-2: rgba(26, 155, 108, .12); --glow-3: rgba(110, 86, 207, .12); --dots: rgba(11, 11, 11, .05);
  background-color: #f6f7fb;
  background-image:
    radial-gradient(900px 520px at 12% -6%, var(--glow-1), transparent 70%),
    radial-gradient(700px 480px at 92% 4%, var(--glow-3), transparent 70%),
    radial-gradient(800px 600px at 50% 62%, var(--glow-2), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  min-height: 100vh;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.marketing {
    --surface: #131a2b; --surface-2: #1b2438; --border: rgba(255, 255, 255, .09); --grid: #26304a; --axis: #3a4562;
    --glow-1: rgba(57, 135, 229, .38); --glow-2: rgba(26, 155, 108, .18); --glow-3: rgba(124, 92, 255, .30); --dots: rgba(255, 255, 255, .055);
    background-color: #0a0f1c;
  }
}
:root[data-theme="dark"] body.marketing {
  --surface: #131a2b; --surface-2: #1b2438; --border: rgba(255, 255, 255, .09); --grid: #26304a; --axis: #3a4562;
  --glow-1: rgba(57, 135, 229, .38); --glow-2: rgba(26, 155, 108, .18); --glow-3: rgba(124, 92, 255, .30); --dots: rgba(255, 255, 255, .055);
  background-color: #0a0f1c;
}
body.marketing .hero h1 { background: linear-gradient(100deg, var(--ink) 30%, var(--accent) 75%, #6e56cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.marketing .channel, body.marketing .feature, body.marketing .pack, body.marketing .ea, body.marketing .hero-card { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(10, 20, 40, .06); }
