
/* Our own copies, not Google's: fetching a font from Google hands Google the
   visitor's IP address. Latin and Latin Extended only, as Google served them. */
@font-face { font-family: 'Inter'; font-weight: 300 600; font-display: swap; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 300 600; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 600; font-display: swap; src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 600; font-display: swap; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oxanium'; font-weight: 700; font-display: swap; src: url('/fonts/oxanium-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oxanium'; font-weight: 700; font-display: swap; src: url('/fonts/oxanium-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --carbon: #0a0a0a;
  --graphite: #404040;
  /* Secondary text: 7.6:1 on white. */
  --iron: #52525b;
  --mist: #f5f5f5;
  --cream: #fafaf9;
  --border: #e8e8e8;
  --field: #d4d4d4;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  /* The lime is a fill, never text: on white it is 1.1:1. Text on it is
     carbon, and text that means "lime" uses --toxic-dark (6.3:1). */
  --toxic: #d0ff00;
  --toxic-muted: #9abe25;
  --toxic-dark: #4a6b0f;
  --toxic-tint: rgba(208,255,0,0.14);
  --toxic-line: rgba(154,190,37,0.5);
  --bad: #b42318;
  --white: #ffffff;
  --chart-rules: #a1a1aa;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--carbon);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
code, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
h1, h2, h3 { font-family: 'Oxanium', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.3px; text-wrap: balance; }
h1 { font-size: 27px; }
h2 { font-size: 19px; }
.wrap { max-width: 1000px; margin: 0 auto; padding-inline: 24px; }

/* Header: the wordmark, then whose team this is and the way out. */
.top { border-bottom: 1px solid var(--border); padding-block: 16px 14px; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--carbon); }
.brand:hover { color: var(--carbon); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand .word { font-family: 'Oxanium', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.5px; line-height: 1; }
.brand .word span { color: var(--toxic-dark); }
.brand .product { font-size: 14px; color: var(--iron); border-left: 1px solid var(--border); padding-left: 12px; }
.atom-orbit { fill: none; stroke: var(--carbon); stroke-width: 1.5; }
.atom-core { fill: #3b82f6; }
.atom-electron { fill: var(--toxic); }
.who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--iron); }
.who form { display: inline; }
.switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 8px; color: var(--carbon); font-weight: 500;
}
.switch:hover { color: var(--carbon); border-color: var(--field); }
.switch .tier { color: var(--iron); font-weight: 400; }
.switch svg { width: 12px; height: 12px; fill: none; stroke: var(--iron); stroke-width: 1.5; }
.stripe { height: 4px; background: linear-gradient(90deg, var(--toxic) 0%, var(--toxic-muted) 50%, transparent 100%); }
.tabs { background: var(--mist); border-bottom: 1px solid var(--border); font-size: 14px; }
.tabs .wrap { display: flex; flex-wrap: wrap; }
.tabs a {
  display: flex; align-items: center; min-height: 44px; padding: 0 18px;
  color: var(--graphite); border-right: 1px solid var(--border);
}
.tabs a:first-child { border-left: 1px solid var(--border); }
.tabs a[aria-current="page"] {
  color: var(--carbon); font-weight: 500; background: var(--cream);
  border-bottom: 2px solid var(--blue); margin-bottom: -1px;
}

main .wrap { padding-block: 32px; display: flex; flex-direction: column; gap: 36px; }
section { display: flex; flex-direction: column; gap: 14px; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.note, .hint { font-size: 13px; color: var(--iron); }
.note code, .hint code { font-size: 12.5px; background: var(--mist); padding: 2px 6px; border-radius: 4px; }
.empty { font-size: 14px; color: var(--iron); }
.lede { color: var(--graphite); font-size: 16px; max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--toxic);
  background: var(--toxic); color: var(--carbon); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; line-height: 1.2; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { color: var(--carbon); background: #c4f000; border-color: #c4f000; }
.btn-secondary { background: var(--white); border-color: var(--border); color: var(--graphite); font-weight: 400; }
.btn-secondary:hover { background: var(--white); border-color: var(--field); color: var(--carbon); }
.btn-dark { background: var(--carbon); border-color: var(--carbon); color: var(--white); font-weight: 500; }
.btn-dark:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
/* Greyed out: a way on that is not open yet, or a button still waking. */
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
/* The second click of a two-click Revoke or Remove: filled, so the button that
   is about to do something irreversible looks like it. */
.btn.armed, .btn.armed:hover { background: var(--bad); border-color: var(--bad); color: var(--white); }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; background: var(--toxic-tint); color: var(--toxic-dark);
  border: 1px solid var(--toxic-line); vertical-align: 1px;
}

.notice {
  border: 1px solid var(--toxic-line); background: var(--toxic-tint);
  border-radius: 8px; padding: 12px 16px; font-size: 14px; color: var(--graphite);
}
.notice.bad { border-color: var(--bad); background: #fef3f2; }
.fresh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fresh .val { flex: 1 1 280px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; background: var(--white); padding: 8px 10px; border-radius: 6px; }

/* Tables scroll sideways on a phone rather than pushing the page wider. */
.scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--iron); background: var(--cream); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.act { text-align: right; width: 1%; }
td form { display: inline-flex; gap: 6px; align-items: center; }
td code { font-size: 13px; }

form.row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-size: 13px; color: var(--iron); }
input[type="text"], input[type="email"], select {
  font: inherit; font-size: 15px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--field); border-radius: 8px; background: var(--white); color: var(--carbon);
}
td select { min-height: 36px; font-size: 14px; }
fieldset { border: 0; display: flex; flex-direction: column; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--field); border-radius: 8px; font-size: 14px; color: var(--carbon); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--carbon); box-shadow: inset 0 0 0 1px var(--carbon); }
.choice .tier { margin-left: auto; color: var(--iron); font-size: 13px; }

.id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--iron); }
.id code { color: var(--carbon); font-size: 13px; }
.legend-roles { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--iron); }

/* Plans: three across at full width. */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.tier { border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tier.current { border: 2px solid var(--carbon); padding: 19px; }
.tier .title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier .price { font-family: 'Oxanium', sans-serif; font-size: 27px; font-weight: 700; line-height: 1.1; }
.tier .price-unknown { color: var(--iron); }
.tier .price .per { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400; color: var(--iron); }
.tier .quota { font-weight: 600; font-size: 14px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--graphite); }
.tier .support { font-size: 13px; color: var(--iron); }
.tier .act { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.tier .act .said { font-size: 14px; color: var(--iron); min-height: 36px; display: flex; align-items: center; }
.tier .act form { display: flex; }
.tier .act .btn { width: 100%; }
details.invoice summary { cursor: pointer; font-size: 14px; color: var(--blue); min-height: 36px; display: flex; align-items: center; }
details.invoice form { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.billing { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 24px; }

/* Teams */
.teams { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px; }
.teams li { list-style: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.teams li:last-child { border-bottom: none; }
.teams .name { font-weight: 500; }
.teams .meta { font-size: 13px; color: var(--iron); }
.teams form { margin-left: auto; }

/* Usage */
.usage-line { font-size: 15px; }
.usage-line strong { font-family: 'Oxanium', sans-serif; font-size: 22px; }
.meter { display: block; width: 100%; height: 8px; }
.meter .track { fill: var(--mist); }
.meter .fill { fill: var(--toxic-muted); }
.meter .fill.hot { fill: var(--bad); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--graphite); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend .lookup { background: var(--blue); }
.legend .analyze { background: var(--toxic-muted); }
.legend .rules { background: var(--chart-rules); }
.ranges { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 13px; }
.ranges a { display: flex; align-items: center; min-height: 36px; padding: 0 14px; color: var(--iron); }
.ranges a + a { border-left: 1px solid var(--border); }
.ranges a.on { background: var(--carbon); color: var(--white); font-weight: 500; }
/* Sized here, not by a viewBox: see chartSvg. */
.chart { display: grid; grid-template-columns: 36px minmax(0, 1fr); height: 240px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .hit { fill: transparent; }
.chart .bar { cursor: pointer; }
.chart .bar.on .hit { fill: var(--mist); }
.chart text {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; fill: var(--iron);
  /* A halo, so an axis label stays legible where a bar runs behind it. */
  paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round;
}
.chart text.limit { fill: var(--carbon); font-weight: 600; }
.chart-foot { font-size: 13px; color: var(--iron); }

/* The signed-out front door: the pitch and the buttons on the left, what is
   behind them on the right. Stacks on a phone, pitch first, so the buttons
   are never below the fold. */
.welcome { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.welcome h1 { font-size: 38px; margin-bottom: 14px; }
.welcome .choices, .single .choices { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.welcome .fine { font-size: 13px; color: var(--iron); margin-top: 18px; max-width: 46ch; }
.inside { border: 1px solid var(--border); border-radius: 8px; background: var(--cream); padding: 24px 24px 4px; }
.inside h2 { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--iron); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.features { list-style: none; }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-block: 2px 20px; }
.features svg {
  width: 40px; height: 40px; padding: 8px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--border);
  fill: none; stroke: var(--carbon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.features svg .limit { stroke-dasharray: 2 2.5; }
.features h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; }
.features p { font-size: 14px; color: var(--graphite); }

/* One-message pages: device codes, invites, errors. */
.single { max-width: 560px; display: flex; flex-direction: column; gap: 16px; padding-block: 24px; }
.single form { display: flex; flex-direction: column; gap: 16px; }
.code { font-family: 'JetBrains Mono', monospace; font-size: 36px; font-weight: 600; letter-spacing: 4px; }
.code-input {
  font-family: 'JetBrains Mono', monospace; font-size: 26px; letter-spacing: 4px; text-transform: uppercase;
  text-align: center; width: 11ch; min-height: 56px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--field); background: var(--white); color: var(--carbon);
}

footer { border-top: 1px solid var(--border); margin-top: 16px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; font-size: 13px; color: var(--iron); }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

.skip {
  position: absolute; left: -9999px; background: var(--white); color: var(--carbon);
  padding: 12px 18px; border: 2px solid var(--blue); border-radius: 8px; font-size: 14px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The party popper's canvas. Fixed and click-through: it covers the page for a
   few seconds, and must never be the thing that swallows a Copy button. */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9; }

@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .chart { height: 200px; grid-template-columns: 32px minmax(0, 1fr); }
  .chart .minor { display: none; }
  .welcome h1 { font-size: 30px; }
  .welcome .choices .btn { flex: 1 1 100%; }
  .brand .product { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  /* Belt as well as the check in /s.js: if the script ever draws anyway, it
     draws somewhere nobody has to watch. */
  .confetti { display: none; }
}
