/* The storefront and portal stylesheet, shared by every page under `templates/pages/`, served
   by this store itself so the pages still load nothing from anywhere else.

   The site's palette, verbatim (`site/apps/landing/src/styles/global.css` — change it there
   first, then here). Dark-first identity: near-black navy and off-white as the two
   grounds, purple as *the* accent — the primary button and nothing else. The logo gradient
   stays on the logo. */
:root {
  --brand: #7c3aed;
  --brand-fill: #7c3aed;
  --brand-tint: rgba(124, 58, 237, 0.08);
  --on-brand: #ffffff;
  --page-bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  /* The terminal block is dark in both themes, as on the site. */
  --code-bg: #0f172a;
  --code-border: #0f172a;
  --code-text: #cbd5e1;
  --glow: radial-gradient(560px 300px at 50% 0%, rgba(124, 58, 237, 0.16), transparent 70%),
          radial-gradient(1000px 520px at 50% 18%, rgba(8, 145, 178, 0.08), transparent 70%);
  --cta-glow: 0 8px 22px -8px rgba(124, 58, 237, 0.55);
  --card-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.2);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a855f7;
    /* One step deeper than the text accent: white on #a855f7 is only 3.3:1. */
    --brand-fill: #9333ea;
    --brand-tint: rgba(168, 85, 247, 0.12);
    --page-bg: #080b14;
    --surface: #101522;
    --surface-2: #171d2d;
    --border: #252d40;
    --border-strong: #344060;
    --ink: #f8fafc;
    --muted: #a7b0c2;
    --faint: #6b7488;
    --code-bg: #0b0f1a;
    --code-border: #252d40;
    --code-text: #cbd5e1;
    --glow: radial-gradient(560px 300px at 50% 0%, rgba(168, 85, 247, 0.18), transparent 70%),
            radial-gradient(1000px 520px at 50% 18%, rgba(6, 182, 212, 0.08), transparent 70%);
    --cta-glow: 0 8px 24px -8px rgba(168, 85, 247, 0.5);
    --card-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--glow), var(--page-bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Inter Variable", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 32px 20px 64px; }
/* The console shows tables of purchases and tokens; it gets a wider column and nothing else. */
.wrap.wide { max-width: 1040px; }
.mast { display: flex; align-items: center; margin-bottom: 22px; }
/* The wordmark is `currentColor`; the mark keeps its gradient. */
.mast a { display: inline-flex; color: var(--ink); text-decoration: none; }
.lockup { display: block; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  box-shadow: var(--card-shadow);
}
.eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px;
           text-transform: uppercase; color: var(--brand); }
/* Headings are monospace on the site — the one typographic tell of a developer tool. */
h1, h2 { font-family: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace,
                      SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -0.02em; }
h1 { margin: 0 0 12px; font-size: 26px; line-height: 1.3; font-weight: 700; }
h2 { margin: 28px 0 12px; font-size: 16px; font-weight: 600; }
p { margin: 0 0 16px; color: var(--muted); }
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface-2);
         border: 1px solid var(--border); border-radius: 10px; margin-bottom: 24px; }
.facts th { text-align: left; padding: 10px 14px; width: 190px; vertical-align: top;
            font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase;
            font-weight: 600; color: var(--faint); }
.facts td { padding: 10px 14px; color: var(--ink); }
.mono { font-family: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace,
                     SFMono-Regular, Menlo, Consolas, monospace; }
.token {
  display: block;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  color: var(--code-text);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular,
               Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
}
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 4px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 6px; font-size: 15px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--brand-fill); color: var(--on-brand); box-shadow: var(--cta-glow); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
/* The sign-in doors: equal-width, side by side, one per line once the row is too narrow for two.
   Each carries its provider's own mark at its own colours — `pages/portal/door.html` says why the
   palette does not reach them, and why the button around them keeps the accent on hover while the
   mark does not. */
.doors { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.btn-door { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
            flex: 1 1 15em; }
.door-mark { display: block; flex: none; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 7px; }
.note { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
        padding: 14px 16px; font-size: 14px; color: var(--muted); }
.foot { margin-top: 22px; font-size: 12.5px; color: var(--faint); }
.foot a { color: var(--faint); }
a { color: var(--brand); }
code { font-family: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, Menlo, Consolas,
                    monospace; font-size: 13px; }
/* Up to six rooms and a sign-out: wider than a phone, so the row wraps rather than running out of
   the card and scrolling the page sideways. */
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 18px;
       font-size: 13.5px; }
.nav a { color: var(--muted); text-decoration: none; padding-bottom: 5px;
         border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
/* The page you are on, told three ways — the accent, the weight, and the rule beneath it — so it
   still reads as "here" while the pointer sits on another tab. */
.nav a.here { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.list { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.list th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border);
           font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 600;
           color: var(--faint); }
.list td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top;
           color: var(--ink); }
.list tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px;
         font-weight: 600; letter-spacing: 0.3px; border: 1px solid var(--border-strong);
         color: var(--muted); }
.badge-brand { border-color: var(--brand); color: var(--brand); }
.notice { border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px;
          background: var(--brand-tint); border: 1px solid var(--brand); color: var(--ink); }
.notice.refusal { background: var(--surface-2); border-color: var(--border-strong); }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input { padding: 9px 12px; border-radius: 6px; border: 1px solid var(--border-strong);
         background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
         min-width: 0; }
.input.uid { width: 22em; font-family: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace,
             Menlo, Consolas, monospace; font-size: 13px; }
.btn-small { padding: 8px 14px; font-size: 13.5px; }
details summary { cursor: pointer; color: var(--brand); font-size: 13.5px; }
details .token { margin-top: 10px; }
.list .mono, .facts .mono { font-size: 12.5px; }
@media (max-width: 560px) {
  .card { padding: 24px; }
  .facts th { display: block; width: auto; padding-bottom: 0; }
  .facts td { display: block; padding-top: 2px; }
}
