:root {
  --ink: #0f1e2b; --muted: #5b6b78; --paper: #f4f6f7; --surface: #fff; --line: #d7dee3;
  --accent: #0a6c74; --accent-soft: #d9ecec; --good: #1c7548; --warn: #9a5b08; --warn-soft: #fbf0dc;
  --bad: #a3302a; --bad-soft: #f8e4e2; --radius: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .25rem; font-weight: 700; }
h2 { font-size: 1.125rem; margin: 2.25rem 0 .75rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 68ch; }
.lede { color: var(--muted); margin-bottom: 1.5rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }

.top { background: var(--ink); color: #fff; }
.top .inner { max-width: 1080px; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; gap: 1.5rem; }
.mark { font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; padding: .9rem 0; white-space: nowrap; color: #fff; text-decoration: none; }
.mark span { font-weight: 500; opacity: .7; }
.top nav { display: flex; gap: .25rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: #c3cdd5; text-decoration: none; padding: .9rem .7rem; white-space: nowrap; font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.top nav a:hover { color: #fff; }
.top nav a.on { color: #fff; border-bottom-color: #5ec4c4; }
.top form button { background: none; border: 0; color: #c3cdd5; font: inherit; font-size: .9rem; cursor: pointer; padding: .5rem 0; white-space: nowrap; }
.sim { background: var(--warn-soft); color: var(--warn); font-size: .9rem; font-weight: 600; padding: .5rem 1rem; text-align: center; }
main { max-width: 1080px; margin: 0 auto; padding: 1.75rem 1rem 4rem; }
.narrow { max-width: 520px; }

.flash { padding: .7rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600; border-left: 4px solid; }
.flash.ok { background: var(--accent-soft); border-color: var(--accent); }
.flash.bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.note { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: .7rem .9rem; border-radius: var(--radius); margin: 0 0 1rem; max-width: 72ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.panel > :last-child { margin-bottom: 0; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.cols { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cols { grid-template-columns: 1fr 1fr; } .cols.wide-left { grid-template-columns: 3fr 2fr; } }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem; padding: .6rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .6rem .75rem; border-bottom: 1px solid #e9edf0; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
td a.row { font-weight: 600; text-decoration: none; }
.empty { padding: 1.5rem; color: var(--muted); }

.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .12rem .5rem; border-radius: 99px; background: #e6ebee; color: var(--muted); white-space: nowrap; }
.pill.opted_in, .pill.delivered, .pill.c-sent { background: var(--accent-soft); color: var(--accent); }
.pill.invited, .pill.sending, .pill.queued, .pill.sent, .pill.pending, .pill.c-sending, .pill.c-paused { background: var(--warn-soft); color: var(--warn); }
.pill.opted_out, .pill.failed, .pill.undelivered, .pill.skipped { background: var(--bad-soft); color: var(--bad); }

/* consent bar: the one graphic. width of each part = share of the audience */
.consent-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: #e6ebee; margin: .6rem 0 .5rem; }
.consent-bar i { display: block; height: 100%; }
.consent-bar .in { background: var(--accent); } .consent-bar .inv { background: #7dbfc0; }
.consent-bar .out { background: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .88rem; color: var(--muted); }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.legend .k::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .35rem; background: #cfd7dc; }
.legend .k.in::before { background: var(--accent); } .legend .k.inv::before { background: #7dbfc0; } .legend .k.out::before { background: var(--bad); }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
@media (min-width: 700px) { .figures { grid-template-columns: repeat(6, 1fr); } }
.figures div { padding: .8rem .9rem; border-right: 1px solid #e9edf0; border-bottom: 1px solid #e9edf0; }
.figures b { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.figures span { font-size: .82rem; color: var(--muted); }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .3rem; }
input[type=text], input[type=tel], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #b9c4cc; border-radius: var(--radius); background: #fff; color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #5ec4c4; outline-offset: 1px; }
.field { margin-bottom: 1rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; margin-bottom: .6rem; }
.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; flex: none; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: .6rem 1rem; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; }
.btn.quiet { background: #fff; color: var(--accent); }
.btn.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.row .field { margin: 0; flex: 1 1 10rem; }
.head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.head h1 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.chips button { font: inherit; font-size: .82rem; padding: .15rem .5rem; border-radius: 99px; border: 1px solid #b9c4cc; background: #fff; color: var(--ink); cursor: pointer; }

.bubble { background: #e4e9ed; border-radius: 16px 16px 16px 4px; padding: .6rem .8rem; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 22rem; margin: .25rem 0 .9rem; font-size: .95rem; }
.bubble.out { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; margin-left: auto; }
.to { font-size: .82rem; color: var(--muted); }
code, .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .86rem; background: #e9edf0; padding: .1rem .35rem; border-radius: 4px; overflow-wrap: anywhere; }
.steps { padding-left: 1.2rem; margin: 0 0 1rem; max-width: 68ch; } .steps li { margin-bottom: .5rem; }
.public { max-width: 480px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.public .mark { color: var(--ink); display: block; padding: 0 0 1.25rem; font-size: 1.15rem; }
.fine { font-size: .82rem; color: var(--muted); }

@media (max-width: 720px) {
  .top .inner { flex-wrap: wrap; gap: 0 1rem; justify-content: space-between; }
  .mark { padding: .7rem 0 .2rem; }
  .top nav { order: 3; flex: 1 0 100%; flex-wrap: wrap; overflow: visible; margin: 0 -.45rem; }
  .top nav a { padding: .45rem .45rem .5rem; font-size: .9rem; }
}
