:root {
  --bg: #f5f7f9; --surface: #ffffff; --ink: #14212b; --muted: #5b6b78; --line: #dde3e8;
  --brand: #0b6b6f; --brand-ink: #ffffff; --brand-soft: #e3f1f1; --nav: #10262f; --nav-ink: #c9d6dc;
  --ok: #17703f; --ok-soft: #e2f3e9; --err: #b3261e; --err-soft: #fbe9e7; --warn: #8a5a00; --warn-soft: #fdf1d8;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 38, 47, .06), 0 4px 16px rgba(16, 38, 47, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e171c; --surface: #16232a; --ink: #e6edf1; --muted: #9aabb6; --line: #26363f;
    --brand: #3fb5b0; --brand-ink: #062426; --brand-soft: #173438; --nav: #0a1216; --nav-ink: #b4c3cb;
    --ok: #6fd39a; --ok-soft: #14301f; --err: #ff8a80; --err-soft: #3a1917; --warn: #f0c060; --warn-soft: #33290f;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
h1 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 .35rem; letter-spacing: -.01em; }
h2 { font-size: 1.08rem; margin: 0 0 .75rem; }
p { margin: 0 0 .9rem; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; word-break: break-all; }

/* public shell */
.topbar { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.25rem; max-width: 1100px; margin: 0 auto; }
.logo { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: inline-block; position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 7px 6px; border: 2px solid var(--brand-ink); border-radius: 2px; border-top-width: 5px; }
.topbar nav { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.narrow { max-width: 460px; margin: 2.5rem auto; padding: 0 1rem 3rem; }
.hero { padding: 3.2rem 0 2.2rem; max-width: 720px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.1; margin-bottom: 1rem; text-wrap: balance; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.section { padding: 2rem 0 .5rem; }
.price { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; } .price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
ul.ticks { list-style: none; padding: 0; margin: .5rem 0 1rem; } ul.ticks li { padding: .2rem 0 .2rem 1.4rem; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
footer.site { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0; color: var(--muted); font-size: .88rem; }

/* app shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--nav); color: var(--nav-ink); padding: 1.1rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.side .logo { color: #fff; padding: 0 .55rem .9rem; }
.side a.item { color: var(--nav-ink); text-decoration: none; padding: .5rem .7rem; border-radius: 7px; display: flex; justify-content: space-between; align-items: center; }
.side a.item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side a.item.on { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.side .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; padding: .9rem .7rem .3rem; }
.side .who { margin-top: auto; padding: .9rem .7rem 0; font-size: .86rem; border-top: 1px solid rgba(255, 255, 255, .1); overflow-wrap: anywhere; }
.side .who form { margin-top: .5rem; }
.main { padding: 1.6rem clamp(1rem, 3vw, 2.2rem) 3rem; min-width: 0; }
.head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.2rem; }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .6rem; }
  .side .logo { padding: 0 .5rem 0 .2rem; } .side .group { display: none; }
  .side .who { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; gap: .5rem; } .side .who span { display: none; } .side .who form { margin: 0; }
}

/* components */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card > :last-child { margin-bottom: 0; }
.stat { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn.sm { padding: .28rem .6rem; font-size: .84rem; font-weight: 500; }
.side .btn.ghost { color: var(--nav-ink); border-color: rgba(255, 255, 255, .25); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .3rem; }
.field { margin-bottom: .95rem; } .hint { font-size: .84rem; color: var(--muted); font-weight: 400; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; }
textarea { min-height: 6rem; resize: vertical; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; } .check input { margin-top: .3rem; flex: none; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; } .row > .grow { flex: 1 1 180px; }
.inline { display: inline; }
.note { border-radius: 8px; padding: .7rem .9rem; margin-bottom: 1rem; border: 1px solid transparent; }
.note.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.note.err { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.note.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.note.info { background: var(--brand-soft); color: var(--ink); }
.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: .12rem .5rem; border-radius: 99px; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge.delivered, .badge.received, .badge.good { background: var(--ok-soft); color: var(--ok); }
.badge.failed, .badge.bad { background: var(--err-soft); color: var(--err); }
.badge.sending, .badge.queued { background: var(--warn-soft); color: var(--warn); }
.badge.new { background: var(--brand); color: var(--brand-ink); }
.tablewrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: .45rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.unread td { font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .5rem 0 .35rem; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}
.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; }
.tabs a { padding: .4rem .9rem; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a.on { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.viewer { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .9rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.02rem; margin: 1rem 0; }
.qr { display: block; margin: .5rem auto 1rem; border-radius: 8px; background: #fff; padding: 6px; }
.copybox { display: flex; gap: .5rem; } .copybox input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
pre.code { background: var(--nav); color: #e6edf1; padding: .9rem 1rem; border-radius: 8px; overflow-x: auto; font-size: .84rem; margin: 0 0 1rem; }
.legal h2 { margin-top: 1.5rem; } .legal { max-width: 75ch; }

/* pricing */
.navlink { color: var(--ink); text-decoration: none; font-weight: 600; padding: .5rem .6rem; }
.hero.center { text-align: center; margin: 0 auto; padding-bottom: 1.4rem; } .hero.center p { margin-left: auto; margin-right: auto; }
.plans { align-items: stretch; margin-bottom: 1rem; }
.plan { position: relative; margin-bottom: 0; display: flex; flex-direction: column; gap: .2rem; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan .ribbon { position: absolute; top: -11px; left: 1.1rem; background: var(--brand); color: var(--brand-ink); font-size: .72rem; font-weight: 700; padding: .12rem .6rem; border-radius: 99px; }
.plan .btn { align-self: stretch; margin: .6rem 0 .4rem; } .plan form { display: flex; flex-direction: column; }
.plan .lead { font-weight: 600; font-size: .88rem; margin-top: .5rem; }
ul.facts { list-style: none; padding: .7rem 0; margin: .3rem 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } ul.facts li { padding: .16rem 0; }
.split { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; } .split > div { flex: 1 1 320px; } .split p { margin: 0; }
table.compare td, table.compare thead th { text-align: center; } table.compare th[scope=row] { text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--ink); font-weight: 400; white-space: normal; min-width: 190px; border-bottom: 1px solid var(--line); padding: .6rem; }
table.compare thead th { font-size: .82rem; color: var(--ink); }
table.compare tr.group td { text-align: left; font-weight: 700; background: var(--bg); padding-top: .8rem; }
.yes { color: var(--brand); font-weight: 700; } .no { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
