/* Terminal look for the public landing page and the login page. */
:root {
  --t-bg: #f6f8fa;
  --t-grid: rgba(31, 35, 40, 0.06);
  --t-panel: #ffffff;
  --t-border: #d0d7de;
  --t-text: #1f2328;
  --t-muted: #59636e;
  --t-accent: #0969da;
  --t-accent-ink: #ffffff;
  --t-ok: #1a7f37;
  --t-err: #cf222e;
  --t-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --t-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-bg: #0d1117; --t-grid: rgba(240, 246, 252, 0.05); --t-panel: #161b22;
    --t-border: #30363d; --t-text: #e6edf3; --t-muted: #8d96a0;
    --t-accent: #58a6ff; --t-accent-ink: #0d1117; --t-ok: #3fb950; --t-err: #ff7b72;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --t-bg: #0d1117; --t-grid: rgba(240, 246, 252, 0.05); --t-panel: #161b22;
  --t-border: #30363d; --t-text: #e6edf3; --t-muted: #8d96a0;
  --t-accent: #58a6ff; --t-accent-ink: #0d1117; --t-ok: #3fb950; --t-err: #ff7b72;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body.terminal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background-color: var(--t-bg);
  background-image:
    linear-gradient(var(--t-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--t-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--t-text);
  font: 16px/1.5 var(--t-sans);
}
.t-window {
  width: 100%;
  max-width: 560px;
  background: var(--t-panel);
  border: 1px solid var(--t-border);
  border-radius: 10px;
  overflow: hidden;
}
.t-window.narrow { max-width: 420px; }
.t-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--t-border);
  font: 13px/1.4 var(--t-mono);
  color: var(--t-muted);
}
.t-who { color: var(--t-accent); font-weight: 600; }
.t-bar span { margin-left: auto; }
.t-content { padding: 28px 24px 24px; }
.t-prompt { margin: 0 0 20px; font: 14px/1.5 var(--t-mono); color: var(--t-muted); }
.t-prompt b { color: var(--t-accent); font-weight: 600; }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--t-accent);
  animation: t-blink 1.1s steps(1) infinite;
}
@keyframes t-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .t-cursor { animation: none; } }
.t-title {
  margin: 0 0 8px;
  font: 700 clamp(28px, 8vw, 40px)/1.15 var(--t-mono);
  letter-spacing: -0.02em;
}
.t-title span { color: var(--t-accent); }
.t-lead { margin: 0 0 24px; color: var(--t-muted); }
.t-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--t-border);
  font: 14px/1.5 var(--t-mono);
}
.t-facts dt { color: var(--t-muted); }
.t-facts dd { margin: 0; }
.t-ok::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--t-ok);
}
.t-h2 { margin: 24px 0 8px; font: 600 14px/1.5 var(--t-mono); color: var(--t-muted); }
.t-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--t-border); }
.t-list li { padding: 12px 0; border-bottom: 1px solid var(--t-border); }
.t-list strong { display: block; font: 600 15px/1.4 var(--t-mono); }
.t-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.t-pill { flex: none; padding: 1px 8px; border: 1px solid var(--t-border); border-radius: 999px; font: 12px/1.6 var(--t-mono); color: var(--t-muted); }
.t-pill-paid { color: var(--t-accent); border-color: var(--t-accent); }
.t-divider { border: 0; border-top: 2px solid var(--t-border); margin: 16px 0 0; }
.t-list p { white-space: pre-line; margin: 4px 0 0; font: 14px/1.5 var(--t-sans); color: var(--t-muted); }
.t-link { display: block; margin-top: 6px; text-align: right; font: 600 14px/1.4 var(--t-mono); color: var(--t-accent); text-decoration: none; }
a.t-link:hover { text-decoration: underline; }
.t-soon { color: var(--t-muted); font-weight: 400; }
.t-actions { margin-top: 24px; }
.t-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--t-accent);
  border-radius: 6px;
  background: var(--t-accent);
  color: var(--t-accent-ink);
  font: 600 15px/1.2 var(--t-mono);
  text-decoration: none;
  cursor: pointer;
}
.t-btn:hover { filter: brightness(1.08); }
.t-btn:focus-visible, .t-input:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.t-label { display: block; margin: 0 0 6px; font: 13px/1.4 var(--t-mono); color: var(--t-muted); }
.t-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--t-border);
  border-radius: 6px;
  background: var(--t-bg);
  color: var(--t-text);
  font: 16px/1.4 var(--t-mono);
}
.t-form .t-btn { margin-top: 16px; }
.t-err { margin: 10px 0 0; font: 14px/1.4 var(--t-mono); color: var(--t-err); }
.t-foot { margin-top: 20px; font: 12px/1.4 var(--t-mono); color: var(--t-muted); }
