/* beltergate — "Bold" design system
   Heavy Archivo Black display type, JetBrains Mono labels, dark high-contrast
   surfaces, tight blocky radii, SoundCloud-orange brand accent. */

:root {
  --bg: #08090b;
  --surface: #101114;
  --surface-2: #17191e;
  --line: #2b2f39;
  --line-strong: #3b414e;
  --text: #f6f7f9;
  --muted: #9aa3b2;
  --faint: #6b7280;
  --accent: #ff5500;
  --accent-press: #e64d00;
  --accent-ink: #1a0a00;
  --ok: #16a34a;
  --ok-ink: #04230f;
  --err: #ff5d5d;

  --r-sm: 4px;
  --r-md: 8px;

  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 85, 0, 0.12), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(255, 85, 0, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }

/* Focus visibility (accessibility baseline) */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.brand-name { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; text-transform: lowercase; }
.brand-name .lite { color: var(--accent); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 90px 0 48px; }
.hero h1 {
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
  margin: 16px auto 20px;
  text-transform: uppercase;
  max-width: 16ch;
}
.hero h1 .hl { color: var(--accent); }
.hero p { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 auto 30px; }
.hero .cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.section { padding: 56px 0; }
.section h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; text-align: center; text-transform: uppercase; }
.section .lead { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 520px; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step3 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.step3 .n { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: 18px; margin-bottom: 14px; }
.step3 h3 { margin: 6px 0; font-size: 19px; text-transform: uppercase; }
.step3 p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; }
.card.narrow { width: 100%; max-width: 460px; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.tier.pro { border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(255, 85, 0, 0.08); }
.tier h3 { margin: 0 0 6px; font-size: 22px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.tier .price { font-family: var(--display); font-size: 46px; line-height: 1; margin: 10px 0 6px; }
.tier .price small { font-size: 15px; color: var(--muted); font-family: var(--body); font-weight: 700; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; }
.tier li { color: var(--text); font-size: 14px; padding-left: 26px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.tier li.no { color: var(--faint); }
.tier li.no::before { content: "✕"; color: var(--faint); }

/* ---------- buttons ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font-family: var(--body); font-size: 15px; font-weight: 800; letter-spacing: 0.01em;
  padding: 13px 20px; min-height: 46px; border-radius: var(--r-md);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; text-transform: uppercase;
  transition: transform 0.04s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { border-color: var(--text); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-press); border-color: var(--accent-press); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-download { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); width: 100%; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--err); border-color: #3a2630; background: transparent; padding: 8px 12px; min-height: 0; font-size: 12px; }

.step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--accent-ink); color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 700; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"] {
  width: 100%; padding: 13px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: #0c0d10; color: var(--text); font-size: 15px; font-family: var(--body);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.22); }
.field select {
  width: 100%; padding: 13px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: #0c0d10; color: var(--text); font-size: 15px; font-family: var(--body);
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.22); }
.field-file input { color: var(--muted); font-size: 14px; }
.hint { font-size: 12px; color: var(--faint); }

.checks { display: grid; gap: 10px; margin: 4px 0 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.check.disabled { color: var(--faint); }
.tag-pro { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; background: var(--accent); color: var(--accent-ink); padding: 2px 7px; border-radius: var(--r-sm); }

.form-title { font-size: 26px; margin: 0 0 6px; text-transform: uppercase; }
.form-sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

/* ---------- messages ---------- */
.message { font-size: 14px; padding: 12px 14px; border-radius: var(--r-md); margin: 8px 0; border: 1px solid #3a2630; background: rgba(255, 93, 93, 0.1); color: #ffd7d7; }
.message.is-ok { background: rgba(22, 163, 74, 0.12); color: #b6f0d2; border-color: #1f4d39; }
.message.is-info { background: rgba(154, 163, 178, 0.1); color: var(--muted); border-color: var(--line); }
.hidden, [hidden] { display: none !important; }

/* ---------- gate page ---------- */
.player { margin: 0 0 22px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.player iframe { display: block; width: 100%; border: 0; }
.actions { display: grid; gap: 10px; margin-bottom: 22px; }
.success { margin-top: 16px; text-align: center; display: grid; gap: 12px; }
.success-text { margin: 0; color: var(--ok); font-weight: 800; text-transform: uppercase; }
.badge { margin-top: 20px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.fineprint { margin: 24px 0 0; font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- dashboard ---------- */
.dash-head { padding: 28px 0 8px; }
.account-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.account-row .field { margin: 0; flex: 1; min-width: 220px; }
.dash-grid { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; padding: 16px 0 40px; }
.gate-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin-bottom: 14px; }
.gate-row h4 { margin: 0 0 8px; font-size: 17px; text-transform: uppercase; }
.gate-row .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.gate-row .share { display: flex; gap: 8px; align-items: center; }
.gate-row .share input { flex: 1; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #0c0d10; color: var(--text); font-size: 12px; font-family: var(--mono); }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--muted); margin-right: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.empty { color: var(--muted); text-align: center; padding: 44px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--faint); font-size: 13px; text-align: center; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.footer a { color: var(--muted); margin: 0 8px; }

/* ---------- legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.prose h1 { font-family: var(--body); font-weight: 800; text-transform: none; letter-spacing: -0.01em; font-size: 30px; color: var(--text); margin: 12px 0 4px; }
.prose h2 { font-family: var(--body); font-weight: 800; text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--text); margin: 28px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text); }
.prose .updated { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.prose .tmpl { border: 1px solid var(--accent); background: rgba(255,85,0,0.08); border-radius: var(--r-md); padding: 12px 14px; font-size: 13px; color: #ffd9c2; margin: 14px 0; }

/* ---------- spinner ---------- */
.busy { position: relative; color: transparent !important; }
.busy::after { content: ""; position: absolute; width: 18px; height: 18px; top: 50%; left: 50%; margin: -9px 0 0 -9px; border: 2px solid rgba(26, 10, 0, 0.45); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .steps3 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
