:root {
  --bg: #0a0c0b;
  --ink: #eef2ee;
  --muted: #7d887f;
  --line: #1f2621;
  --pcb: #407048;
  --signal: #8fdc9f;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(420px 280px at 100% 0%, rgb(64 112 72 / .16), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 16px/1.45 Geist, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.01em;
}

.wrap { max-width: 40rem; margin: 0 auto; padding: 28px 20px 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand img { height: 28px; width: auto; display: block; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; margin: 0; }
h1 { margin-top: 28px; font-size: 34px; line-height: 1.05; }
h1 em { font-style: normal; color: var(--signal); }
h2 { font-size: 22px; letter-spacing: -.03em; }
h3 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }

.hero .sub:first-of-type { margin-top: 16px; }
.sub { margin: 10px 0 0; color: var(--muted); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
.word { font-weight: 500; color: var(--ink); font-family: 'Geist Mono', ui-monospace, monospace; }

.card {
  margin-top: 28px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / .02);
}

.field { display: block; margin-top: 14px; }

input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.4 'Geist Mono', ui-monospace, monospace;
}

.note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.remember input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--pcb); flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

button {
  min-height: 44px;
  padding: 12px 18px;
  border: 1.5px solid var(--pcb);
  border-radius: 999px;
  background: transparent;
  color: var(--signal);
  font: 500 14px/1 'Geist Mono', ui-monospace, monospace;
  cursor: pointer;
}
button.ghost { border-color: var(--line); color: var(--muted); }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.balance { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.msg { margin: 0; }
.msg[data-kind="idle"] { color: var(--muted); }
.kicker { margin: 0; font: 400 13px/1 'Geist Mono', ui-monospace, monospace; color: var(--muted); }
.remain {
  margin: 6px 0 14px;
  font: 500 44px/1 'Geist Mono', ui-monospace, monospace;
  color: var(--signal);
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.meta { margin: 0; }
.meta div, .mrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.meta dt { color: var(--muted); }
.meta dd, .mrow span:last-child { margin: 0; font: 500 15px/1.3 'Geist Mono', ui-monospace, monospace; }
.models-title { margin: 18px 0 0; font: 400 13px/1 'Geist Mono', ui-monospace, monospace; color: var(--muted); }

.hero { margin-top: 0; }
section { margin-top: 40px; }
.card + section, .hero + .card { margin-top: 28px; }
section.card { margin-top: 28px; }

.snip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
pre {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: rgb(0 0 0 / .25);
  color: var(--ink);
  font: 400 13px/1.55 'Geist Mono', ui-monospace, monospace;
  white-space: pre;
}

table { width: 100%; margin-top: 16px; border-collapse: collapse; }
caption { caption-side: top; text-align: left; color: var(--muted); margin-bottom: 8px; }
th {
  padding: 0 0 8px;
  font: 400 13px/1 'Geist Mono', ui-monospace, monospace;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
}
th:first-child { text-align: left; }
td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.num { text-align: right; font: 500 15px/1 'Geist Mono', ui-monospace, monospace; white-space: nowrap; padding-left: 12px; }
.mid { display: block; margin-top: 2px; font: 400 12px/1.3 'Geist Mono', ui-monospace, monospace; color: var(--muted); }

.fine {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.fine p { margin: 0 0 10px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

::selection { background: var(--pcb); color: var(--ink); }

@media (min-width: 800px) {
  body {
    background:
      radial-gradient(720px 420px at 100% 0%, rgb(64 112 72 / .16), transparent 70%),
      var(--bg);
    background-repeat: no-repeat;
  }
  .wrap { padding: 56px 32px 96px; }
  h1 { margin-top: 56px; font-size: 48px; }
  .card { padding: 24px; }
}
