/* Saver visual system.
   Concept: a clipping. The page is paper and ink; the one accent is a highlighter mark,
   the same mark you drag across text before you send it. Display type is an editorial
   serif (what you clip), body is IBM Plex Sans, and the email's own vernacular
   (From / To / Subject, the API key) is set in Plex Mono. Rules, not cards, separate
   content; cards are reserved for the two objects that are objects: an email and a key.
   Layout: left-aligned, asymmetric two-column rhythm on a 1120px measure. */
:root {
  --paper: #f7f7f3;
  --paper-2: #eeeee8;
  --paper-3: #e4e4dc;
  --white: #fffffd;
  --ink: #15171b;
  --ink-2: #4b4f58;
  --ink-3: #7f848e;
  --rule: #d5d6ce;
  --rule-soft: #e6e7df;
  --hi: #ffe14d;
  --hi-soft: #fff4b3;
  --hi-ink: #3a3100;
  --ok: #2c7a3e;
  --ok-bg: #e7f4ea;
  --warn: #8a5a00;
  --warn-bg: #fff3d1;
  --bad: #b3261e;
  --bad-bg: #fbeae8;
  --display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
  --shadow: 0 1px 0 rgba(21, 23, 27, .04), 0 12px 32px -16px rgba(21, 23, 27, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1, h2 { font-family: var(--display); }
h3, h4 { font-family: var(--body); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; background: var(--white); font-size: .8em; color: var(--ink-2); }
::selection { background: var(--hi); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The highlighter mark: the brand device. */
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.08em; right: -.1em; top: 14%; bottom: 8%;
  background: var(--hi); border-radius: 2px; transform: rotate(-1.1deg); transform-origin: left center;
}
.hl-anim::before { animation: swipe .55s cubic-bezier(.2, .7, .2, 1) .25s both; }
@keyframes swipe { from { transform: rotate(-1.1deg) scaleX(0); } to { transform: rotate(-1.1deg) scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hl-anim::before { animation: none; } }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }

/* ---- Header -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled, .app-body .site-header { border-bottom-color: var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 26px; height: 18px; position: relative; display: block; }
.brand-mark::before { content: ""; position: absolute; inset: 0; background: var(--hi); border-radius: 2px; transform: rotate(-4deg); }
.brand-mark svg { position: absolute; inset: 0; width: 26px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-block; padding: 8px 12px; color: var(--ink-2); text-decoration: none; font-size: 15px; border-radius: var(--r); }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-user { font-family: var(--mono); font-size: 13px; color: var(--ink-3); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) { .nav-links.public, .nav-user { display: none; } }

/* ---- Buttons ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; min-height: 42px; border-radius: var(--r); border: 1px solid var(--ink);
  font: inherit; font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: 0;
  cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink); background: var(--white);
  transition: background .15s, color .15s, border-color .15s, transform .08s;
}
.btn:hover { background: var(--paper-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-secondary { border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--ink); background: var(--white); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-danger { border-color: var(--rule); color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); background: var(--bad-bg); }
.btn-hi { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.btn-hi:hover { background: #ffd81f; border-color: #ffd81f; }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: 14px; }
.btn-lg { padding: 13px 22px; min-height: 50px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---- Forms --------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field + .field { margin-top: 16px; }
label, .label { font-weight: 500; font-size: 14px; }
.hint { font-size: 13px; color: var(--ink-3); }
input[type="email"], input[type="password"], input[type="text"], textarea, select {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.5; font-family: var(--mono); font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--hi-soft); }
input::placeholder, textarea::placeholder { color: #a3a7af; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; }

/* ---- Flash messages ------------------------------------------------------------------ */
.flashes { width: min(100% - 2 * var(--gutter), var(--max)); margin: 16px auto 0; display: grid; gap: 8px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r); font-size: 14.5px; border: 1px solid var(--rule); background: var(--white); }
.flash svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.flash-success { border-left: 3px solid var(--ok); } .flash-success svg { color: var(--ok); }
.flash-error { border-left: 3px solid var(--bad); } .flash-error svg { color: var(--bad); }
.flash-info { border-left: 3px solid var(--hi); } .flash-info svg { color: var(--warn); }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; opacity: .5; }
.flash button:hover { opacity: 1; }

/* ---- Landing: hero ------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(42px, 6.2vw, 74px); line-height: .98; letter-spacing: -0.02em; margin-top: 18px; font-weight: 400; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lede { margin-top: 22px; }
.signup-card { margin-top: 28px; padding: 20px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); max-width: 520px; }
.signup-card .btn { margin-top: 12px; }
.fineprint { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-3); }
.fineprint span { display: inline-flex; align-items: center; gap: 6px; }
.fineprint svg { width: 14px; height: 14px; color: var(--ok); }
.hero-aside { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 520px; }

/* Hero figure: a passage with a highlight, a cut line, and the email it becomes. */
.clip { position: relative; max-width: 480px; justify-self: end; width: 100%; }
@media (max-width: 920px) { .clip { justify-self: start; max-width: 560px; } }
.clip-source { padding: 22px 24px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px 8px 0 0; font-family: var(--display); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.clip-source .src { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.clip-source .src span:last-child { white-space: nowrap; }
.clip-source mark { background: var(--hi); color: var(--ink); padding: .02em 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.clip-cut { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.clip-cut::before, .clip-cut::after { content: ""; flex: 1; border-top: 1px dashed var(--rule); }
.clip-cut svg { width: 14px; height: 14px; }
.clip-cut { margin: -1px 0; padding: 10px 24px; background: var(--white); border-inline: 1px solid var(--rule); }
.mail { background: var(--white); border: 1px solid var(--rule); border-radius: 0 0 8px 8px; box-shadow: var(--shadow); overflow: hidden; }
.mail-head { padding: 14px 20px; border-bottom: 1px solid var(--rule-soft); display: grid; gap: 4px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.mail-head div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; min-width: 0; }
.mail-head span { color: var(--ink-3); }
.mail-head b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-body { padding: 16px 20px 18px; font-size: 14px; line-height: 1.55; }
.mail-body a { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.mail-body .sep { height: 1px; background: var(--rule-soft); margin: 10px 0; }
.mail-body blockquote { margin: 0; font-family: var(--display); font-size: 16px; color: var(--ink); }
.mail-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: var(--paper); border-top: 1px solid var(--rule-soft); font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.mail-foot b { color: var(--ok); font-weight: 500; }

/* ---- Landing: sections --------------------------------------------------------------- */
.section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: start; margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.015em; }
.section-head p { color: var(--ink-2); font-size: 17px; max-width: 34em; }

.strip { padding-block: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; }
.strip .eyebrow { margin-right: 8px; }
.strip span:not(.eyebrow) { font-family: var(--display); font-size: 19px; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px 28px 30px 0; border-top: 0; }
.step + .step { border-left: 1px solid var(--rule); padding-left: 28px; }
@media (max-width: 820px) { .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }
.step .num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
.step h3 { margin-top: 14px; font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 1px solid var(--rule); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.feature .icon { width: 28px; height: 28px; color: var(--ink); }
.feature .icon svg { width: 22px; height: 22px; margin-top: 2px; }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .usecases { grid-template-columns: 1fr; gap: 0; } }
.usecase { padding-top: 20px; border-top: 2px solid var(--ink); }
@media (max-width: 820px) { .usecase { padding-block: 24px; border-top-width: 1px; } .usecase:first-child { border-top-width: 2px; } }
.usecase .who { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.usecase h3 { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; }
.usecase p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.usecase ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.usecase li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.usecase li svg { width: 16px; height: 16px; color: var(--ink); flex: none; margin-top: 3px; }

/* ---- Pricing ------------------------------------------------------------------------- */
.pricing-toggle-wrap { display: flex; justify-content: flex-start; margin-bottom: 28px; }
.pricing-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--white); }
.pricing-toggle button { padding: 7px 14px; border-radius: 4px; border: 0; background: transparent; font: inherit; font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.pricing-toggle button.on { background: var(--ink); color: var(--paper); }
.pricing-toggle .save { margin-left: 6px; font-family: var(--mono); font-size: 11px; color: inherit; opacity: .8; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; border-bottom: 0; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 28px 28px 0; }
.plan + .plan { border-left: 1px solid var(--rule); padding-left: 28px; }
@media (max-width: 920px) { .plan { padding: 28px 0; border-bottom: 1px solid var(--rule); } .plan + .plan { border-left: 0; padding-left: 0; } }
.plan h3 { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; display: inline-block; }
.plan.featured h3 .hl::before { transform: rotate(-1.4deg); }
.plan .badge-top { position: absolute; top: 30px; right: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 920px) { .plan .badge-top { right: 0; } }
.plan .tagline { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; min-height: 44px; }
.plan .price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.plan .price .amt { font-family: var(--display); font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.plan .price .per { font-family: var(--mono); color: var(--ink-3); font-size: 13px; }
.plan .price-note { font-size: 13px; color: var(--ink-3); margin-top: 8px; min-height: 18px; }
.plan ul { margin: 22px 0 26px; padding: 0; list-style: none; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan li svg { width: 16px; height: 16px; color: var(--ink); flex: none; margin-top: 3px; }
.plan .btn { width: 100%; }

/* ---- FAQ ----------------------------------------------------------------------------- */
.faq { display: grid; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display); font-size: 21px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--ink-3); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 15.5px; max-width: 42em; }

.cta { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; }
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; } }
.cta h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.02em; font-weight: 400; }
.cta p { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 30em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .cta-actions { justify-content: flex-start; } }

.site-footer { border-top: 1px solid var(--rule); padding-block: 28px; color: var(--ink-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---- Auth pages ---------------------------------------------------------------------- */
.auth { padding-block: clamp(40px, 7vw, 80px) 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; gap: 24px; } }
.auth-intro h1 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.02em; font-weight: 400; }
.auth-intro .sub { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 30em; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); padding: 28px; justify-self: end; }
@media (max-width: 820px) { .auth-card { justify-self: start; } }
.auth-card .alt { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.auth-card .btn { width: 100%; }
.auth-card .hint a, .auth-card .alt a { color: var(--ink); }

/* ---- App shell ----------------------------------------------------------------------- */
.app-main { padding-block: 24px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 500; }
.page-head p { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.page-head .small a { color: var(--ink-3); text-decoration: none; }
.subnav { display: flex; gap: 0; margin: 0 0 24px; padding: 0; list-style: none; overflow-x: auto; border-bottom: 1px solid var(--rule); }
.subnav a { display: inline-block; padding: 10px 14px; margin-bottom: -1px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; min-width: 0; }
.card-pad { padding: 22px 24px; }
.card h2 { font-family: var(--body); font-weight: 600; font-size: 16px; letter-spacing: 0; }
.card h2 + p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 920px) { .grid-2, .grid-3-1 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; min-width: 0; }

.banner { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--white); margin-bottom: 20px; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.banner-warn { border-left: 3px solid var(--hi); } .banner-warn svg { color: var(--warn); }
.banner-info { border-left: 3px solid var(--ink); }
.banner-success { border-left: 3px solid var(--ok); } .banner-success svg { color: var(--ok); }
.banner h3 { font-size: 15px; }
.banner p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.banner form { margin-top: 10px; display: inline-flex; gap: 8px; flex-wrap: wrap; }

.meter { height: 8px; border-radius: 2px; background: var(--paper-2); overflow: hidden; margin-top: 12px; }
.meter > span { display: block; height: 100%; background: var(--ink); transition: width .4s ease; }
.meter.warn > span { background: var(--bad); }
.usage-num { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.usage-num small { font-family: var(--body); font-size: 14px; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 3px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.badge svg { width: 12px; height: 12px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-blocked { background: var(--bad-bg); color: var(--bad); }
.badge-plan { background: var(--hi); color: var(--ink); }
.badge-muted { background: var(--paper-2); color: var(--ink-2); }
.badge-field { background: transparent; border-color: var(--rule); color: var(--ink-3); text-transform: uppercase; font-size: 10.5px; }

.keys { display: grid; gap: 16px; }
.key-card { padding: 20px 22px; }
.key-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.key-card h3 { font-family: var(--display); font-weight: 500; font-size: 22px; }
.key-card .meta { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.keybox { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 12px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule); min-width: 0; }
.keybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.keybox code:not(.masked) { background: linear-gradient(transparent 20%, var(--hi) 20%, var(--hi) 85%, transparent 85%); }
.keybox code.masked { color: var(--ink-3); }
.recips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.recip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 5px; border-radius: 3px; background: var(--white); border: 1px solid var(--rule); font-size: 13px; }
.recip.pending { border-style: dashed; color: var(--ink-3); }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.bm { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r); background: var(--ink); color: var(--paper) !important; font-weight: 500; font-size: 14px; cursor: grab; text-decoration: none; }
.bm:hover { background: #000; }
.bm svg { width: 15px; height: 15px; }
.bm-hint { font-size: 13px; color: var(--ink-3); }

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.empty { padding: 36px 24px; text-align: center; color: var(--ink-3); }
.empty h3 { color: var(--ink); font-size: 17px; }
.empty p { margin-top: 6px; font-size: 14.5px; }

.steps-list { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 8px; }
.steps-list b { color: var(--ink); font-weight: 600; }
.steps-list a { color: var(--ink); }
.ih { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--ink); }
.danger-zone { border-color: #e9c9c6; }
.danger-zone h2 { color: var(--bad); }
.inline-form { display: inline; }
.copied { color: var(--ok) !important; }

/* ---- Relay page ---------------------------------------------------------------------- */
.relay { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.relay .status { font-family: var(--display); font-size: 24px; }
.relay .detail { margin-top: 10px; color: var(--ink-2); max-width: 420px; }
.relay .spinner { width: 34px; height: 34px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Legal --------------------------------------------------------------------------- */
.prose { padding-block: 48px 96px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 400; }
.prose .updated { color: var(--ink-3); margin-top: 10px; font-size: 14px; font-family: var(--mono); }
.prose h2 { font-size: 24px; margin-top: 36px; font-weight: 500; }
.prose p, .prose li { color: var(--ink-2); margin-top: 12px; font-size: 16px; max-width: 42em; }
.prose ul { padding-left: 22px; }
.section-head > .eyebrow { padding-top: .9em; }
