  :root {
    --bg: #05070a;
    --bg-raised: #0a0e13;
    --line: #1c242c;
    --line-bright: #2a3540;
    --text: #cbd5e0;
    --text-dim: #5a6b7a;
    --brand: #4a9eff;
    --ok: #3ecf7e;
    --warn: #e8b339;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  }

  * { box-sizing: border-box; }
  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

  body {
    background: var(--bg);
    background-image:
      radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 40px 40px;
    background-position: -1px -1px;
    color: var(--text);
    font-family: var(--mono);
    margin: 0;
    line-height: 1.55;
    font-size: 15px;
    position: relative;
  }

  a { color: inherit; }
  :focus-visible { outline: 1px solid var(--brand); outline-offset: 2px; }

  .wrap { max-width: 1020px; margin: 0 auto; padding: 0 32px; }

  /* ---------- pre-launch banner ----------
     Deliberately loud. It sits above the sticky header and uses the warning
     colour, because the thing it says — not launched, not selling — is the
     first thing a visitor needs in order to read the rest of the site
     correctly. It is not dismissible: it is a statement of fact, not a notice. */
  .devbanner {
    background: rgba(232, 179, 57, 0.1);
    border-bottom: 1px solid var(--warn);
    color: var(--warn);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
  }
  .devbanner-inner {
    max-width: 1020px; margin: 0 auto; padding: 10px 32px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  }
  .devbanner-tag {
    border: 1px solid var(--warn); padding: 2px 8px; font-size: 0.66rem;
    letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  }
  @media (max-width: 560px) { .devbanner-inner { padding: 9px 20px; font-size: 0.74rem; } }

  /* The header is sticky; the banner is not. Without this the banner sticks to
     the top too and the two fight over the same space when scrolling. */
  .devbanner + .topbar { top: 0; }

  /* Header badge, between the logo and the nav. Unlike the banner above the
     header, this one is INSIDE the sticky bar, so it stays on screen as the
     page scrolls — which is the point: the fact that the site is unfinished
     should not scroll away. */
  .devbadge {
    border: 1px solid var(--warn); color: var(--warn);
    padding: 3px 9px; font-size: 0.66rem; letter-spacing: 0.06em;
    text-transform: uppercase; white-space: nowrap; line-height: 1.4;
    margin-left: 14px;
  }
  /* Below this the header has to choose between the badge and the account
     button, and the account button wins — the banner above still carries the
     same message on small screens. */
  @media (max-width: 900px) { .devbadge { display: none; } }

  /* ---------- topbar ---------- */
  .topbar {
    border-bottom: 1px solid var(--line); background: rgba(5,7,10,0.9); backdrop-filter: blur(6px);
    position: sticky; top: 0; z-index: 20; position: relative;
  }
  .topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, var(--brand) 0%, transparent 40%);
    opacity: 0.6;
  }
  /* The nav is pushed right with margin-left:auto rather than
     justify-content:space-between, so the dev badge can sit next to the brand
     instead of being spread to the middle of the bar. */
  .topbar-inner {
    display: flex; align-items: center;
    padding: 14px 32px; max-width: 1020px; margin: 0 auto;
    font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .topbar-inner .nav-links { margin-left: auto; }
  /* ---------- auth-state visibility ----------
     ONE class on <html> decides what the header shows. The signed-out items
     are the default, so a page that has not yet resolved its session shows
     "Sign in" — a brief blink for a signed-in user, rather than showing
     "Log out" to someone who is not signed in, which reads as broken.
     Nothing here toggles `hidden` per element, which is what previously let
     both states appear at once. */
  .only-in { display: none !important; }
  .only-out { display: block !important; }
  :root.is-signed-in .only-in { display: block !important; }
  :root.is-signed-in .only-out { display: none !important; }

  .brand {
    color: var(--text); font-weight: 700; display: flex; align-items: center;
    gap: 0; font-size: 0.86rem; text-decoration: none;
    transition: opacity 0.15s;
  }
  .brand:hover { opacity: 0.75; }
  .brand .logo-bar { display: inline-block; width: 3px; height: 0.85em; background: var(--brand); margin: 0 3px 0 0; vertical-align: -0.1em; }
  .brand span { color: var(--text-dim); font-weight: 400; text-transform: none; letter-spacing: normal; }
  .nav-links { display: flex; gap: 24px; align-items: center; color: var(--text-dim); }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { color: var(--text); }
  /* The status pill reflects a real /health check (see warden-ui.js), so it
     has three states rather than one hardcoded green. "Checking" is the
     starting state; a badge that says "operational" before anything has been
     asked is a claim nobody is verifying. */
  .pill {
    font-size: 0.68rem; border: 1px solid var(--line-bright); color: var(--text-dim);
    padding: 3px 8px; letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
  }
  .pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .pill.ok { border-color: var(--ok); color: var(--ok); }
  .pill.ok .dot { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
  .pill.bad { border-color: var(--warn); color: var(--warn); }
  .pill.bad .dot { background: var(--warn); }

  /* Below this the pill is the first thing worth dropping — it is diagnostic,
     not navigational, and it crowds the account button on a phone. */
  @media (max-width: 640px) { .pill { display: none; } }

  /* ---------- profile widget ---------- */
  .profile { position: relative; }
  .avatar-btn {
    width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer;
    background: var(--bg-raised); border: 1.5px solid var(--line-bright); color: var(--text-dim);
    display: flex; align-items: center; justify-content: center; position: relative;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }
  .avatar-btn:hover { border-color: var(--text-dim); color: var(--text); }
  .avatar-btn svg { fill: none; stroke: currentColor; stroke-width: 1.2; transition: fill 0.15s, stroke 0.15s; }

  /* signed out: plain hollow outline = "no identity filled in" */
  /* signed in: solid filled silhouette + accent ring + active-status dot */
  .avatar-btn.signed-in {
    border-color: var(--brand); background: rgba(74,158,255,0.12); color: var(--brand);
  }
  .avatar-btn.signed-in svg { fill: currentColor; stroke: none; }
  .avatar-btn.signed-in::after {
    content: ""; position: absolute; bottom: -1px; right: -1px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--ok); border: 2px solid var(--bg);
  }

  .profile-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    padding-top: 14px; /* invisible bridge — keeps hover active across the gap to the button */
    display: none; z-index: 30;
  }
  .profile:hover .profile-dropdown,
  .profile.open .profile-dropdown { display: block; }

  .profile-dropdown-inner {
    min-width: 190px; background: var(--bg-raised); border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    padding: 6px; display: flex; flex-direction: column; gap: 2px;
    text-transform: none; letter-spacing: normal;
  }

  .dropdown-item {
    display: block; padding: 9px 10px; font-size: 0.78rem; color: var(--text);
    text-decoration: none; transition: background 0.12s;
  }
  .dropdown-item:hover { background: var(--line); }

  .dropdown-account {
    padding: 9px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
  }
  .dropdown-account-label { font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }
  .dropdown-account-value { font-size: 0.78rem; color: var(--text); margin-top: 3px; }

  /* ---------- hero ---------- */
  .hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
  .tagline-wrap {
    display: flex; align-items: center; min-height: 1.5em;
    margin: 0 0 20px;
  }
  .tagline {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: #f0f4f8;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: pre-wrap;
  }
  .tagline .cursor {
    display: inline-block; width: 0.5em; height: 1em; background: var(--brand);
    margin-left: 4px; vertical-align: -0.15em;
    animation: blink 0.9s step-end infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  .hero p.lede { max-width: 600px; color: var(--text-dim); font-size: 0.96rem; }

  .hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }

  .cta-link {
    color: var(--text-dim); text-decoration: none; font-size: 0.82rem;
    letter-spacing: 0.01em; border-bottom: 1px solid transparent;
    padding-bottom: 1px; transition: color 0.15s, border-color 0.15s;
  }
  .cta-link:hover { color: var(--brand); border-color: var(--brand); }
  .cta-link .arrow { display: inline-block; transition: transform 0.15s; }
  .cta-link:hover .arrow { transform: translateX(3px); }

  button, .btn {
    background: transparent; color: var(--brand); border: 1px solid var(--brand);
    padding: 12px 20px; cursor: pointer; letter-spacing: 0.04em; text-transform: uppercase;
    font-family: inherit; font-size: 0.78rem; text-decoration: none; display: inline-block;
    transition: background 0.15s, color 0.15s;
  }
  button:hover, .btn:hover { background: var(--brand); color: #04070a; }
  .btn.ghost { color: var(--text-dim); border-color: var(--line-bright); }
  .btn.ghost:hover { background: var(--line); color: var(--text); }

  /* Primary action. The old page styled every button identically, so "Add to
     browser" and a secondary link competed for the same attention. */
  .btn.primary { background: var(--brand); color: #04070a; border-color: var(--brand); }
  .btn.primary:hover { background: #6bb0ff; border-color: #6bb0ff; }

  .hero-foot { margin: 18px 0 0; font-size: 0.8rem; color: var(--text-dim); }

  /* ---------- before / after examples ---------- */
  .example-sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
  .example-grid {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px;
    align-items: stretch; margin-bottom: 14px;
  }
  @media (max-width: 760px) {
    .example-grid { grid-template-columns: 1fr; gap: 10px; }
    .example-arrow { transform: rotate(90deg); }
  }
  .example {
    border: 1px solid var(--line); background: var(--bg-raised); padding: 20px 22px;
  }
  .example p { margin: 0; font-size: 0.9rem; color: var(--text); line-height: 1.6; }
  .example-head {
    font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 10px;
  }
  .example-head.before { color: var(--warn); }
  .example-head.after { color: var(--ok); }
  .example-arrow { display: flex; align-items: center; color: var(--text-dim); font-size: 1.1rem; }
  .example-note {
    font-size: 0.85rem; color: var(--text-dim); max-width: 620px; margin: 0 0 44px;
  }
  .example-note:last-child { margin-bottom: 0; }

  /* ---------- the honest section ---------- */
  .honest { padding: 72px 0; border-bottom: 1px solid var(--line); }
  .honest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 820px) { .honest-grid { grid-template-columns: 1fr; } }
  .honest-card {
    border: 1px solid var(--line); border-left: 2px solid var(--line-bright);
    background: var(--bg-raised); padding: 22px 24px;
  }
  .honest-card h4 { margin: 0 0 10px; font-size: 0.9rem; color: #f0f4f8; font-weight: 700; }
  .honest-card p { margin: 0; font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
  .honest-card a { color: var(--brand); text-decoration: none; border-bottom: 1px solid transparent; }
  .honest-card a:hover { border-color: var(--brand); }

  /* ---------- measured stats ---------- */
  .measured { padding: 72px 0; border-bottom: 1px solid var(--line); }
  .measured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 760px) { .measured-grid { grid-template-columns: 1fr; } }
  .stat { border: 1px solid var(--line); background: var(--bg-raised); padding: 24px; }
  .stat-num {
    font-size: 1.7rem; font-weight: 700; color: var(--brand);
    font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  }
  .stat-lab { font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
  .measured-note {
    font-size: 0.82rem; color: var(--text-dim); max-width: 640px; margin: 22px 0 0;
    line-height: 1.6;
  }

  /* ---------- section label ---------- */
  .section-label {
    font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-dim); margin: 0 0 26px; display: flex; align-items: center; gap: 10px;
  }
  .section-label::before { content: ""; width: 20px; height: 1px; background: var(--line-bright); }

  /* ---------- modules as panels ---------- */
  .modules { padding: 72px 0; border-bottom: 1px solid var(--line); }
  .panel-grid {
    border: 1px solid var(--line);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  }
  .panel-grid::before, .panel-grid::after,
  .panel-grid .corner-tl, .panel-grid .corner-br { content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none; }
  .panel-grid::before { top: -1px; left: -1px; border-top: 1px solid var(--brand); border-left: 1px solid var(--brand); }
  .panel-grid::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--brand); border-right: 1px solid var(--brand); }

  .panel {
    border-bottom: 1px solid var(--line); background: var(--bg-raised);
    display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 26px 28px; align-items: center;
    position: relative; transition: background 0.18s;
  }
  .panel::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: transparent; transition: background 0.18s;
  }
  .panel:hover { background: #0d1219; }
  .panel:hover::before { background: var(--brand); }
  .panel:last-child { border-bottom: none; }
  @media (max-width: 720px) { .panel { grid-template-columns: 1fr; gap: 10px; } }

  .panel-head { display: flex; flex-direction: column; gap: 8px; }
  .panel-head .id { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
  .panel-head h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #f0f4f8; letter-spacing: 0.01em; }
  .panel-head .state {
    font-size: 0.68rem; color: var(--ok); border: 1px solid var(--ok);
    padding: 2px 7px; display: inline-flex; align-items: center; gap: 5px; width: fit-content;
    letter-spacing: 0.03em; text-transform: uppercase;
  }
  .panel-head .state .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }

  .panel p { margin: 0; color: var(--text-dim); font-size: 0.9rem; max-width: 540px; }

  /* ---------- how it works ---------- */
  .how { padding: 72px 0; border-bottom: 1px solid var(--line); }
  .how-row {
    display: grid; grid-template-columns: 60px 1fr; gap: 20px;
    padding: 18px 0; border-top: 1px solid var(--line);
  }
  .how-row:last-child { border-bottom: 1px solid var(--line); }
  .how-row .idx { color: var(--brand); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
  .how-row h4 { margin: 0 0 6px; color: #f0f4f8; font-size: 0.9rem; font-weight: 700; }
  .how-row p { margin: 0; color: var(--text-dim); font-size: 0.87rem; max-width: 560px; }

  /* ---------- cta ---------- */
  .cta { padding: 72px 0 88px; }
  .cta-box {
    border: 1px solid var(--line); background: var(--bg-raised); padding: 40px;
    position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  }
  .cta-box::before, .cta-box::after { content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none; }
  .cta-box::before { top: -1px; left: -1px; border-top: 1px solid var(--brand); border-left: 1px solid var(--brand); }
  .cta-box::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--brand); border-right: 1px solid var(--brand); }
  .cta h2 { font-size: 1.5rem; font-weight: 700; color: #f0f4f8; margin: 0 0 14px; letter-spacing: 0.01em; }
  .cta p { color: var(--text-dim); max-width: 500px; margin: 0 0 26px; font-size: 0.9rem; }

  /* ---------- footer ----------
     Legal links live here rather than in the top nav. Paddle expects terms,
     privacy and a refund policy to be reachable from every page, and a footer
     is where people look for them. */
  footer { border-top: 1px solid var(--line); padding: 44px 0 22px; font-size: 0.78rem; color: var(--text-dim); }
  .footer-cols {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    padding-bottom: 30px;
  }
  @media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
  .footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
  .footer-head {
    font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text); margin-bottom: 3px;
  }
  .footer-col a {
    color: var(--text-dim); text-decoration: none; font-size: 0.8rem;
    border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s;
  }
  .footer-col a:hover { color: var(--brand); border-color: var(--brand); }
  .footer-note { font-size: 0.74rem; color: var(--text-dim); opacity: 0.8; line-height: 1.5; }
  .footer-base {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    border-top: 1px solid var(--line); padding-top: 18px;
    font-size: 0.72rem; font-variant-numeric: tabular-nums;
  }
  .footer-inner { display: block; }

/* A stray </style> used to sit here, left behind when this CSS was lifted out
   of an inline <style> block. It is not a comment and not valid CSS: the
   parser discards the malformed token AND the rule that follows it, so
   .page-header below was being dropped and the account/register headers
   rendered unstyled. */

/* ---------- shared: page header (non-hero pages) ---------- */
.page-header { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim);
  text-decoration: none; font-size: 0.78rem; margin-bottom: 22px; transition: color 0.15s;
}
.back-link:hover { color: var(--brand); }
.page-header h1 {
  font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; color: #f0f4f8;
  letter-spacing: 0.01em; margin: 0 0 10px;
}
.page-header p { color: var(--text-dim); font-size: 0.92rem; margin: 0; max-width: 520px; }

/* ---------- form panel (register / account) ---------- */
.page-main { padding: 56px 0 88px; }
.form-panel {
  border: 1px solid var(--line); background: var(--bg-raised); padding: 36px 40px;
  position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  max-width: 460px;
}
.form-panel::before, .form-panel::after { content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none; }
.form-panel::before { top: -1px; left: -1px; border-top: 1px solid var(--brand); border-left: 1px solid var(--brand); }
.form-panel::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--brand); border-right: 1px solid var(--brand); }

.form-panel .panel-title {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
  margin: 0 0 24px; display: flex; align-items: center; gap: 10px;
}
.form-panel .panel-title::before { content: ""; width: 18px; height: 1px; background: var(--line-bright); }

.field { margin-bottom: 4px; }
.field-label {
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 8px;
}
.field-control {
  display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line);
  padding: 10px 0; transition: border-color 0.15s;
}
.field-control:focus-within { border-color: var(--brand); }

.field-display {
  flex: 1; font-size: 0.92rem; color: var(--text); letter-spacing: 0.01em;
}
.field-input {
  flex: 1; background: transparent; border: none; color: var(--text);
  font-family: inherit; font-size: 0.92rem; padding: 0; outline: none; letter-spacing: 0.01em;
}
.field-input::placeholder { color: var(--text-dim); }

.field-edit-btn {
  background: transparent; border: none; padding: 4px; margin: -4px; cursor: pointer;
  color: var(--text-dim); display: flex; align-items: center; transition: color 0.15s;
  flex: 0 0 auto;
}
.field-edit-btn:hover { color: var(--brand); }
.field-edit-btn svg { display: block; }

.field-saved-tag {
  font-size: 0.66rem; color: var(--ok); letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.2s; flex: 0 0 auto;
}
.field-saved-tag.show { opacity: 1; }

.form-row { margin-bottom: 22px; }

.form-actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; }

/* ---------- closed sign-ups notice ---------- */
.closed-head {
  font-size: 0.95rem; font-weight: 700; color: var(--warn); margin: 0 0 12px;
}
#closedNotice p { font-size: 0.86rem; color: var(--text-dim); line-height: 1.7; margin: 0 0 12px; }
#closedNotice a { color: var(--brand); text-decoration: none; border-bottom: 1px solid transparent; }
#closedNotice a:hover { border-color: var(--brand); }
#closedNotice .notice-actions { margin-top: 20px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 {
  font-size: 0.95rem; font-weight: 700; color: #f0f4f8; margin: 42px 0 14px;
  letter-spacing: 0.01em;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 0.88rem; color: var(--text-dim); line-height: 1.72; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 18px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal a { color: var(--brand); text-decoration: none; border-bottom: 1px solid transparent; }
.legal a:hover { border-color: var(--brand); }
.legal-date { font-size: 0.78rem; color: var(--text-dim); margin-top: 14px; }

/* The summary at the top of a policy. People do not read these documents; they
   skim for the part that affects them. Putting the honest summary first is
   better than burying it in clause 3. */
.legal-callout {
  border: 1px solid var(--line-bright); border-left: 2px solid var(--brand);
  background: var(--bg-raised); padding: 20px 24px; margin-bottom: 40px;
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.7;
}
.legal-callout strong { color: var(--text); }

.legal-table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px;
  font-size: 0.82rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left;
  vertical-align: top; line-height: 1.55;
}
.legal-table th {
  background: var(--bg-raised); color: var(--text); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.legal-table td { color: var(--text-dim); }
/* Tables are the one thing here that cannot reflow on a phone; let them scroll
   rather than forcing the page body to. */
@media (max-width: 700px) {
  .legal-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  border: 1px solid var(--line); background: var(--bg-raised); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 18px; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.price-card.featured { border-color: var(--line-bright); }
.price-card.featured::before, .price-card.featured::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
}
.price-card.featured::before { top: -1px; left: -1px; border-top: 1px solid var(--brand); border-left: 1px solid var(--brand); }
.price-card.featured::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--brand); border-right: 1px solid var(--brand); }
.price-card.current { border-color: var(--ok); }

.price-tier {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
.price-amount { font-size: 1.6rem; font-weight: 700; color: #f0f4f8; letter-spacing: 0.01em; }
.price-amount span { font-size: 0.8rem; font-weight: 400; color: var(--text-dim); letter-spacing: normal; }

.price-list { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.price-list li { font-size: 0.86rem; color: var(--text-dim); display: flex; gap: 9px; align-items: baseline; }
.price-list li::before { content: ""; width: 5px; height: 5px; background: var(--brand); flex: 0 0 auto; }

.price-card button, .price-card .btn { width: 100%; text-align: center; }
.price-card button:disabled { opacity: 0.55; cursor: default; }
.price-card button:disabled:hover { background: transparent; color: var(--text-dim); }

/* ---------- plan + usage (account page) ---------- */
.plan-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.plan-name { font-size: 1.15rem; font-weight: 700; color: #f0f4f8; letter-spacing: 0.01em; }
.plan-sub { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }

.usage { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.usage-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.usage-count { font-size: 0.85rem; color: var(--text); font-variant-numeric: tabular-nums; }

.usage-bar {
  height: 6px; background: var(--line); position: relative; overflow: hidden;
}
.usage-fill {
  height: 100%; width: 0; background: var(--brand);
  transition: width 0.35s ease;
}
/* Out of quota is a state the user must be able to read at a glance, not a
   full blue bar that looks identical to "plenty left". */
.usage-fill.full { background: var(--warn); }

.usage-note { font-size: 0.78rem; color: var(--text-dim); margin: 10px 0 0; }

/* ---------- inline form feedback ---------- */
.form-message {
  font-size: 0.82rem; margin: 18px 0 0; padding: 10px 12px;
  border-left: 2px solid var(--line-bright); background: rgba(255,255,255,0.02);
  color: var(--text-dim);
}
.form-message.error { border-left-color: var(--warn); color: var(--warn); }
.form-message.ok { border-left-color: var(--ok); color: var(--ok); }

.form-note { font-size: 0.8rem; color: var(--text-dim); margin: 20px 0 0; max-width: 460px; }
.form-note a { color: var(--brand); text-decoration: none; border-bottom: 1px solid transparent; }
.form-note a:hover { border-color: var(--brand); }

/* ---------- signed-out notice (account page) ---------- */
.notice-panel {
  border: 1px solid var(--line); background: var(--bg-raised); padding: 32px 36px;
  max-width: 460px; font-size: 0.9rem; color: var(--text-dim);
}
.notice-panel strong { color: var(--text); }
.notice-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
