@font-face { font-family: "Bricolage Grotesque"; font-weight: 500 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url(/fonts/onest-latin.woff2) format("woff2"); }

:root {
  --ground: #05060B;
  --band: #0A0B15;
  --panel: #10121F;
  --raise: #12142A;
  --ink: #F3F5FB;
  --ink-2: #B0B7CA;
  --ink-3: #979EB3;
  --acc: #7FEBFF;
  --on-acc: #070812;
  --good: #7BE8B0;
  --busy: #FFC56A;
  --bad: #FF9B9B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --well: rgba(255, 255, 255, .055);
  --pri: linear-gradient(115deg, #7FEBFF 0%, #9CB8FF 50%, #C3A3FF 100%);
  --display: "Bricolage Grotesque", Onest, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; background: var(--ground); }
body { color: var(--ink); font: 400 15px/1.45 Onest, system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
h1, h2, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.page { min-height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }
.content { flex: 1; padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 18px var(--display); }
.brand img { width: 26px; height: 26px; display: block; }
h1 { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; }
h2 { font: 600 15px/1.3 Onest, sans-serif; }
.sub { color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 76px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--well); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn.primary { border: 0; background: var(--pri); color: var(--on-acc); font-weight: 700; }
.btn.wide { width: 100%; min-height: 52px; font-size: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--raise); font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.dot.on { background: var(--good); }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--panel); border: 1px solid var(--line); }
.thumb { width: 52px; height: 72px; flex: none; background: #0B0C15; }
.thumb.on { background: linear-gradient(160deg, #27305C, #11162E); }
.who { flex: 1; min-width: 0; }
.who b { display: block; font: 650 17px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.running { color: var(--good); }
.state.starting { color: var(--busy); }

.empty { padding: 40px 20px; background: var(--panel); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.tabs { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 8px calc(env(safe-area-inset-bottom, 0px) + 8px); background: var(--band); }
.tabs a { display: flex; align-items: center; justify-content: center; min-height: 48px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--acc); font-weight: 600; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tier { min-height: 76px; padding: 8px 4px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tier b { font: 700 22px var(--display); }
.tier span { font-size: 14px; color: var(--ink-2); }
.tier[aria-pressed="true"] { border-color: var(--acc); background: rgba(127, 235, 255, .12); }
.tier[aria-pressed="true"] b { color: var(--acc); }
.summary { margin-top: auto; padding: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.price b { font: 700 34px var(--display); color: var(--ink); }

.form { margin: auto 0; padding: 8px 0; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.input { height: 52px; width: 100%; padding: 0 14px; border: 1px solid var(--line-2); background: var(--band); font-size: 18px; font-weight: 400; }
.input.code { text-align: center; letter-spacing: .14em; text-transform: uppercase; }
.link { min-height: 44px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; text-decoration: underline; }
.error { color: var(--bad); font-size: 14px; }
.note { color: var(--ink-2); font-size: 14px; }
.card { padding: 4px 14px; background: var(--panel); border: 1px solid var(--line); }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line b { display: block; font-weight: 600; }
