/* margin.so — one stylesheet, no framework.
 *
 * Architecture worth knowing before editing:
 *
 *   1. Components only ever read semantic tokens (--bg, --text, --btn-fg …),
 *      never a literal colour. So a card does not know what theme it is in.
 *   2. Light is the default. Dark arrives two ways: the viewer's system
 *      setting, and an explicit [data-theme] on <html> that beats it.
 *   3. A .band-dark section re-declares the same tokens locally. That is how
 *      the dark header sits over light page sections in either theme — the
 *      components inside it recolour themselves with no variant classes.
 *
 * Palette from zeni.ai: ink #162324, sage #97c3b9 / #accfc7, deep teal
 * #366170 / #204a58, light grounds #f3f7f7 / #f5fcfc, grey #757d7e,
 * sand #eeba7d, pink #ee609c.
 */

/* ------------------------------------------------------------- light (default) --- */

:root {
  color-scheme: light;

  --bg:        #ffffff;
  --bg-2:      #f5fcfc;
  --surface:   #ffffff;
  --surface-2: #f3f7f7;
  --border:    #e3ecec;
  --border-2:  #cfdedc;

  --text:      #162324;
  --text-2:    #47595a;
  --muted:     #757d7e;

  --paper:     #ffffff;   /* the page in the mark */
  --rule:      #366170;   /* the margin rule in the mark */

  --accent:    #2a5a68;
  --accent-2:  #366170;
  --accent-dim: rgba(54, 97, 112, .08);

  --btn-a:     #275a69;   /* primary button, top of the gradient */
  --btn-b:     #17404c;
  --btn-fg:    #ffffff;
  --btn-edge:  rgba(0, 0, 0, .18);

  --live:        #5d9d8c;
  --live-bg:     #eef7f4;
  --live-border: #c7e0d8;
  --live-text:   #1d4a44;
  --code-fg:     #12403a;   /* a captured passcode */

  --warn-bg:     #fdf4e7;
  --warn-border: #eeddc2;
  --warn-text:   #85591d;

  --danger-bg:     #fdecf3;
  --danger-border: #f5ccde;
  --danger-text:   #9b3064;

  --input-bg:  #ffffff;
  --code-bg:   #f4f9f9;
  --code-text: #1d3233;
  --code-c:    #7c8f8f;   /* comment */
  --code-k:    #2a5a68;   /* keyword */
  --code-s:    #2f6d5e;   /* string  */
  --code-n:    #96601c;   /* number  */

  --glow: rgba(54, 97, 112, .05);
  --shadow: 0 1px 2px rgba(22, 35, 36, .05), 0 10px 30px -18px rgba(22, 35, 36, .22);
  --shadow-lift: 0 2px 4px rgba(22, 35, 36, .06), 0 18px 40px -22px rgba(22, 35, 36, .28);
  --ring: 0 0 0 3px rgba(54, 97, 112, .18);

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
}

/* --------------------------------------------------------------------- dark --- */
/* Night mode is opt-in, not automatic.
 *
 * The system preference is deliberately NOT honoured: this is a product people
 * pay for, and it should look the same the first time everyone sees it — white.
 * The header switch pins a choice and it persists. To follow the OS instead,
 * duplicate this block inside
 *   @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { … } }
 */

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #101a1b;
  --bg-2:      #13201f;
  --surface:   #182726;
  --surface-2: #1e2f2f;
  --border:    #263c3d;
  --border-2:  #33504f;

  --text:      #eef4f3;
  --text-2:    #b3c4c3;
  --muted:     #7f9594;

  --accent:    #97c3b9;
  --accent-2:  #accfc7;
  --accent-dim: rgba(151, 195, 185, .14);

  --btn-a:     #b5d6ce;
  --btn-b:     #93c0b5;
  --btn-fg:    #0a1918;
  --btn-edge:  rgba(255, 255, 255, .22);

  --live:        #97c3b9;
  --live-bg:     rgba(151, 195, 185, .10);
  --live-border: rgba(151, 195, 185, .30);
  --live-text:   #c3e0d9;
  --code-fg:     #eaf7f4;

  --warn-bg:     rgba(238, 186, 125, .10);
  --warn-border: rgba(238, 186, 125, .30);
  --warn-text:   #f0cda2;

  --danger-bg:     rgba(238, 96, 156, .10);
  --danger-border: rgba(238, 96, 156, .32);
  --danger-text:   #f5a6c4;

  --input-bg:  #0c1516;
  --code-bg:   #0b1516;
  --code-text: #d5e7e3;
  --code-c:    #6b8281;
  --code-k:    #9fc9c0;
  --code-s:    #accfc7;
  --code-n:    #eeba7d;

  --glow: rgba(151, 195, 185, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -18px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 20px 44px -24px rgba(0, 0, 0, .7);
  --ring: 0 0 0 3px rgba(151, 195, 185, .22);
}

/* ---------------------------------------------------------------- dark band --- */
/* A section that is dark in both themes: the header, and the landing hero.
   It redefines the tokens rather than restyling the components inside it. */

.band-dark {
  color-scheme: dark;

  --bg:        #16292b;
  --bg-2:      #13201f;
  --surface:   #1b3133;
  --surface-2: #21393a;
  --border:    #2c4547;
  --border-2:  #3b5658;

  --text:      #f2f8f7;
  --text-2:    #bdcecd;
  --muted:     #8ba3a2;

  --accent:    #97c3b9;
  --accent-2:  #accfc7;
  --accent-dim: rgba(151, 195, 185, .16);

  --btn-a:     #b5d6ce;
  --btn-b:     #93c0b5;
  --btn-fg:    #0a1918;
  --btn-edge:  rgba(255, 255, 255, .24);

  --live:        #97c3b9;
  --live-bg:     rgba(151, 195, 185, .12);
  --live-border: rgba(151, 195, 185, .32);
  --live-text:   #c9e4dd;
  --code-fg:     #eaf7f4;

  --warn-bg:     rgba(238, 186, 125, .12);
  --warn-border: rgba(238, 186, 125, .32);
  --warn-text:   #f2d2a8;

  --danger-bg:     rgba(238, 96, 156, .12);
  --danger-border: rgba(238, 96, 156, .34);
  --danger-text:   #f7b0cb;

  --input-bg:  #10222300;
  --code-bg:   #0f2122;
  --code-text: #d5e7e3;
  --code-c:    #7a9392;
  --code-k:    #9fc9c0;
  --code-s:    #accfc7;
  --code-n:    #eeba7d;

  --glow: rgba(151, 195, 185, .10);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -18px rgba(0, 0, 0, .55);
  --ring: 0 0 0 3px rgba(151, 195, 185, .26);

  background: var(--bg);
  color: var(--text);
  position: relative;
}
/* A single soft light behind the dark band, so it has depth without a texture. */
.band-dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(880px 340px at 50% -120px, var(--glow), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 55%);
  pointer-events: none;
}
.band-dark > * { position: relative; }

/* A faintly tinted light section, for alternating rhythm below the fold. */
.band-tint { background: var(--bg-2); }
.band-line { border-top: 1px solid var(--border); }

/* ------------------------------------------------------------------- base --- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* .wrap owns the horizontal axis and never touches the vertical one; .section,
   .hero and .footer own the vertical axis and never touch the horizontal. They
   get combined on the same element (`class="section wrap"`), and a `padding`
   shorthand in either would zero the other's — which is exactly how the
   landing page's "How it works" ended up running edge to edge on a phone. */
.wrap { max-width: 1060px; margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 560px; }
.wrap.mid    { max-width: 780px; }

img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ type --- */

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 640; letter-spacing: -0.025em; line-height: 1.16; color: var(--text); }
h1 { font-size: clamp(30px, 5.1vw, 45px); }
h2 { font-size: clamp(22px, 3.3vw, 28px); }
h3 { font-size: 17px; letter-spacing: -0.014em; }
p  { margin: 0 0 1em; color: var(--text-2); }
.lede { font-size: clamp(16px, 2.1vw, 18px); color: var(--text-2); max-width: 62ch; }
.small { font-size: 13px; }
.mute  { color: var(--muted); }
.mono  { font-family: var(--mono); font-size: .92em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.tight { margin-bottom: 0; }
strong { color: var(--text); font-weight: 620; }

/* ------------------------------------------------------------------- nav --- */
/* Always the dark band: it gives every page the same professional header, and
   on the landing page it runs continuously into the hero. */

.nav {
  position: sticky; top: 0; z-index: 30;
  padding: 13px 0;
  padding-top: calc(13px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--border);
  /* Its own background, not the band's. A sticky element keeps its box but
     not its ancestor's painted background, so without this the page scrolls
     visibly through the header once the band has moved away. */
  background: var(--bg);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav::before { display: none; }
.nav .wrap { display: flex; align-items: center; gap: 18px; width: 100%; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  font-weight: 650; font-size: 16px; color: var(--text);
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 1px 6px -2px rgba(0, 0, 0, .35);
  position: relative; overflow: hidden;
}
/* The margin rule: a quarter of the way in, 1/12 of the width, full height. */
.brand-mark::after {
  content: ""; position: absolute;
  left: 20.8%; top: 0; bottom: 0; width: 8.3%;
  min-width: 2px; background: var(--rule);
}
.brand-mark.lg { width: 34px; height: 34px; border-radius: 9px; }
.nav-links {
  display: flex; align-items: center; gap: 16px;
  margin-left: auto; font-size: 14px;
  min-width: 0; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current] { color: var(--text); }
/* `.nav-links a` is more specific than `.btn-primary`, so without these a
   button in the header silently loses its label colour and the text sinks
   into the fill. Match the specificity rather than reaching for !important. */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--btn-fg); }
.nav-links a.btn-ghost,   .nav-links a.btn-ghost:hover   { color: var(--text); }
.nav-links a.btn-quiet:hover { color: var(--text); }

/* Day/night toggle. Shows the icon of the mode it switches to. */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: 99px;
  cursor: pointer; transition: color .14s, border-color .14s, background .14s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-2); }
.theme-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.theme-toggle svg { width: 15px; height: 15px; display: block; }
.theme-toggle .i-sun  { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
/* Inside a dark band the control still means "go dark", because a band does
   not change the document's theme — so the moon stays correct there. */

/* ---------------------------------------------------------------- button --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-sm);
  font: inherit; font-weight: 620; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .14s, border-color .14s, transform .08s, box-shadow .14s, color .14s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary {
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  color: var(--btn-fg); border-color: var(--btn-edge);
  box-shadow: var(--shadow);
}
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text-2); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--text-2); border-color: var(--border-2); }
.btn-quiet:hover { color: var(--text); border-color: var(--text-2); text-decoration: none; }
/* Deliberately not a filled colour: a filled button always means the primary
   action, so destructive ones are quiet until hovered. */
.btn-danger { background: transparent; color: var(--muted); border-color: var(--border-2); }
.btn-danger:hover {
  color: var(--danger-text); border-color: var(--danger-border);
  background: var(--danger-bg); text-decoration: none;
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ------------------------------------------------------------------ card --- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
/* Stacked cards space themselves, but the adjacent-sibling rule also fires
   inside a grid, where the gap already handles it — and there it knocks the
   second column 16px out of alignment with the first. */
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -2px 0 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer { margin-left: auto; }
.card-sub { color: var(--muted); font-size: 13.5px; margin: -8px 0 16px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The dashboard: a wide main column and a narrower sidebar. A class, not an
   inline style — an inline grid-template-columns cannot be undone by a media
   query, which is exactly how the dashboard came to scroll sideways on a
   phone. */
.grid-app { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }

/* ----------------------------------------------------------------- forms --- */

.field { margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 560; color: var(--text-2); margin-bottom: 7px; }
.hint  { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px;
  background: var(--input-bg); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  font: inherit; transition: border-color .14s, box-shadow .14s;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--accent-2); box-shadow: var(--ring); }
.input-phone { font-family: var(--mono); font-size: 17px; letter-spacing: .04em; }
select.input { appearance: none; background-image: none; }

.otp { display: flex; gap: 8px; justify-content: space-between; max-width: 340px; margin: 0 auto; }
.otp input {
  flex: 1 1 0; min-width: 0; aspect-ratio: 3 / 4;
  text-align: center; font-family: var(--mono); font-size: 22px; font-weight: 600;
  background: var(--input-bg); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 10px;
  transition: border-color .14s, box-shadow .14s;
}
.otp input:focus { outline: none; border-color: var(--accent-2); box-shadow: var(--ring); }
.otp input.filled { border-color: var(--accent-2); }

/* ------------------------------------------------------------ code chips --- */
/* The signature component: a captured passcode. */

.code-chip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--live-bg);
  border: 1px solid var(--live-border); border-radius: var(--r);
  position: relative; overflow: hidden;
}
.code-value {
  font-family: var(--mono); font-size: clamp(26px, 6vw, 34px); font-weight: 640;
  letter-spacing: .14em; color: var(--code-fg);
}
.code-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.code-service { font-weight: 600; font-size: 14.5px; color: var(--text); }
.code-text { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; max-width: 46ch; }
.code-chip .spacer { margin-left: auto; }

.ttl { height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 10px; }
.ttl > i { display: block; height: 100%; background: var(--live); transition: width 1s linear; }
.ttl.low > i { background: #d99b45; }
.ttl.out > i { background: #d4548d; }

/* ----------------------------------------------------------------- meter --- */

.meter-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.meter-n { font-family: var(--mono); font-size: 30px; font-weight: 650; letter-spacing: -0.02em; color: var(--text); }
.meter { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; margin: 12px 0 8px; }
.meter > i { display: block; height: 100%; background: var(--accent-2); }
.meter.warn > i  { background: #d99b45; }
.meter.empty > i { background: #d4548d; }

/* ----------------------------------------------------------------- badge --- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 560;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2);
}
.badge-live   { color: var(--live-text);   background: var(--live-bg);   border-color: var(--live-border); }
.badge-warn   { color: var(--warn-text);   background: var(--warn-bg);   border-color: var(--warn-border); }
.badge-danger { color: var(--danger-text); background: var(--danger-bg); border-color: var(--danger-border); }
.badge-accent { color: var(--accent);      background: var(--accent-dim); border-color: var(--border-2); }
.dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex: none; }
.dot-pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ----------------------------------------------------------------- table --- */

.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th {
  text-align: left; font-weight: 560; font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  padding: 0 12px 9px 0; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.t td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
table.t tr:last-child td { border-bottom: none; }
table.t td.right, table.t th.right { text-align: right; padding-right: 0; }

/* ------------------------------------------------------------------ code --- */

pre.code, .codeblock {
  margin: 0; padding: 14px 16px;
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  color: var(--code-text); overflow-x: auto;
}
pre.code .c { color: var(--code-c); }
pre.code .k { color: var(--code-k); }
pre.code .s { color: var(--code-s); }
pre.code .n { color: var(--code-n); }

.copy-wrap { position: relative; }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  padding: 5px 10px; font-size: 11.5px; font-weight: 560;
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: 6px; cursor: pointer;
  opacity: 0; transition: opacity .14s, color .14s;
}
.copy-wrap:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--text); }
.copy-btn.done { color: var(--live-text); border-color: var(--live-border); opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }

.value-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--code-bg);
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
}
.value-row code {
  font-family: var(--mono); font-size: 12.5px; color: var(--code-text);
  overflow-wrap: anywhere; flex: 1 1 auto; min-width: 0;
}

/* ----------------------------------------------------------------- steps --- */

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 22px 44px; border-left: 1px solid var(--border); margin-left: 13px;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(s);
  position: absolute; left: -13px; top: -2px;
  width: 26px; height: 26px; border-radius: 99px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  background: var(--surface); color: var(--accent); border: 1px solid var(--border-2);
}
ol.steps > li.done::before {
  content: "✓"; background: var(--live-bg); color: var(--live-text); border-color: var(--live-border);
}
ol.steps h3 { margin: 1px 0 6px; }
ol.steps p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- details --- */
/* Detail that only some readers want. This is a consumer page; the people who
   need the API call or the carrier-policy reasoning will look for it, and
   everyone else should not have to scroll past it. */

details.more { margin-top: 14px; }
details.more > summary {
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 560; color: var(--accent);
  padding: 6px 0;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .15s;
}
details.more[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.more > summary:hover { color: var(--accent-2); }
details.more > summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
details.more > .more-body { padding-top: 10px; }
details.more > .more-body > :last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- notes --- */

.note {
  padding: 13px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13.5px; color: var(--text-2);
}
.note + .note { margin-top: 10px; }
.note-warn   { background: var(--warn-bg);   border-color: var(--warn-border); }
.note-danger { background: var(--danger-bg); border-color: var(--danger-border); }
.note-live   { background: var(--live-bg);   border-color: var(--live-border); }
.note-accent { background: var(--accent-dim); border-color: var(--border-2); }

/* ------------------------------------------------------------------ hero --- */

.hero { padding-block: 62px 58px; text-align: center; }
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero .lede { margin-top: 18px; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 560; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
/* The line you say to your agent. The product's whole pitch is that this
   sentence is the entire integration, so it is set as something spoken rather
   than as code — quotation marks, not a terminal prompt. */
.say {
  display: inline-flex; align-items: flex-start; gap: 12px;
  max-width: 44rem; margin: 26px auto 0;
  padding: 15px 20px; text-align: left;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.say-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none; margin-top: 2px;
  background: var(--paper); position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.say-mark::after {
  content: ""; position: absolute;
  left: 20.8%; top: 0; bottom: 0; width: 8.3%;
  min-width: 2px; background: var(--rule);
}
.say-label {
  display: block; font-size: 11.5px; font-weight: 560; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.say-quote {
  font-size: clamp(15px, 2.2vw, 17.5px); font-weight: 560; color: var(--text);
  line-height: 1.45; letter-spacing: -0.01em;
}
/* A phone number split across two lines reads as two numbers. */
.say-quote .num { font-family: var(--mono); font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.say-after { display: block; margin-top: 7px; font-size: 13px; color: var(--text-2); }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  justify-content: center; margin-top: 30px;
}

/* A card pulled up over the dark band above it, straddling the boundary. The
   band leaves room for it with .hero-overlap's deeper bottom padding.
 *
 * The z-index is load-bearing, not decoration: .band-dark is position:relative,
 * so in CSS painting order it sits above a following static sibling and would
 * cover the top of this card. Positioning the card puts it in the same layer,
 * later in the document, and therefore on top. */
.hero-overlap { padding-block-end: 132px; }
.overlap { position: relative; z-index: 2; margin-top: -96px; margin-bottom: 8px; }
.overlap .card { box-shadow: var(--shadow-lift); }

.flow { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-step {
  padding: 15px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.flow-step b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 4px; font-weight: 620; }
.flow-step .n {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  display: block; margin-bottom: 8px; letter-spacing: .08em;
}

.divider { height: 1px; background: var(--border); margin: 40px 0; border: 0; }
.section { padding-block: 46px; }
.section-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------------------------------------------------------------- footer --- */

.footer {
  margin-top: 0; padding-block: 28px 40px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--text-2); }
.footer .spacer { margin-left: auto; }

/* ----------------------------------------------------------------- toast --- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
  padding: 11px 18px; border-radius: 99px;
  background: var(--text); color: var(--bg);
  font-size: 13.5px; box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  z-index: 60; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------------ misc --- */

.empty {
  padding: 34px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--border-2); border-radius: var(--r); font-size: 13.5px;
}
.spin {
  width: 14px; height: 14px; flex: none;
  border: 2px solid var(--border-2); border-top-color: var(--accent);
  border-radius: 99px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text-2); }

/* ------------------------------------------------------------- responsive --- */

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-app { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .hero { padding-block: 40px 44px; }
  .card { padding: 18px; border-radius: var(--r); }
  .nav-links { gap: 13px; font-size: 13.5px; }
  .section { padding-block: 34px; }
  .hero-overlap { padding-block-end: 104px; }
  .overlap { margin-top: -76px; }
}
@media (max-width: 560px) {
  /* The step rail eats 57px of a 390px screen before any text is drawn. */
  ol.steps > li { padding-left: 34px; margin-left: 11px; }
  ol.steps > li::before { width: 22px; height: 22px; left: -11px; font-size: 11px; }

  .wrap { padding-inline: 16px; }
  .card { padding: 16px; }
  .card-head { gap: 8px; }
  .meter-n { font-size: 26px; }

  /* A long token or URL must wrap rather than widen its row. */
  .value-row { flex-wrap: wrap; }
  .value-row code { flex-basis: 100%; }

  /* Keep a copy button reachable without a hover. */
  .copy-btn { opacity: 1; }
}

@media (max-width: 430px) {
  .flow { grid-template-columns: 1fr; }
  .say { padding: 13px 15px; gap: 10px; border-radius: var(--r); }
  .say-mark { width: 18px; height: 18px; border-radius: 5px; }
  .nav-links .hide-xs { display: none; }
  .nav-links { gap: 11px; font-size: 13px; }
  .code-value { font-size: 25px; letter-spacing: .1em; }
  .otp { gap: 5px; }
  .otp input { font-size: 19px; border-radius: 8px; }
  .btn-lg { padding: 12px 18px; font-size: 15px; }
  h1 { font-size: 27px; }
  .section { padding-block: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}
@media print {
  .nav, .footer, .copy-btn, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}
