/* Suave Player — trial signup page. Self-contained: no external fonts or
   CDNs, same design tokens as the marketing site (assets/style.css) and the
   admin console, and the same strict-CSP posture: no inline style attributes,
   no inline scripts. */

:root {
  --bg: #0b0d14;
  --bg-alt: #101322;
  --panel: #151a2c;
  --panel-2: #1b2138;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf2;
  --muted: #9aa2b8;
  --accent: #8b6dff;
  --accent-2: #4fa8ff;
  --green: #3ddc84;
  --red: #ff5d73;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Class rules outrank the UA's `display:none` for [hidden]; pin it so the
   view-switching below can never be overridden by a display rule. */
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: 100%; max-width: 640px; margin: 0 auto; padding: 28px 24px; flex: 1; }

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

code { font-family: var(--mono); font-size: 0.92em; background: var(--panel-2);
       padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line);
       overflow-wrap: anywhere; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(79, 168, 255, 0.18), transparent 70%),
    radial-gradient(700px 500px at 10% 10%, rgba(139, 109, 255, 0.10), transparent 70%);
}

/* ---------- header bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 13, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text);
         font-weight: 700; font-size: 1.05rem; letter-spacing: 0.2px; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--accent); }
.brand-mark { width: 26px; height: 26px; fill: var(--accent); }

/* ---------- panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 36px 0 24px;
}
.panel h1 { font-size: 1.5rem; margin-bottom: 12px; }
.panel h2 { font-size: 1.1rem; margin: 20px 0 10px; }
.panel p { margin-bottom: 14px; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.field input[type="email"] {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--accent); }

/* The Turnstile widget (an iframe Cloudflare sizes itself). The slot is
   empty — and collapses to nothing — when the widget is unconfigured or its
   script is blocked; the form must look complete either way. */
.turnstile-slot { margin-bottom: 14px; }
.turnstile-slot iframe { max-width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; border: none;
  font-weight: 600; font-size: 0.95rem; font-family: inherit; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.btn-primary {
  color: #141021;
  background: linear-gradient(135deg, var(--accent), #c4b5ff);
}
.btn-primary:hover { box-shadow: 0 4px 18px rgba(139, 109, 255, 0.35); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ---------- the minted key reveal ---------- */
.minted {
  margin: 6px 0 20px; padding: 16px;
  border: 1px solid rgba(139, 109, 255, 0.45);
  border-radius: 10px;
  background: rgba(139, 109, 255, 0.07);
}
.minted p { margin-bottom: 4px; }
.minted-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.minted-row code { font-size: 1.05rem; padding: 10px 14px; letter-spacing: 0.4px; }

.steps { margin: 0 0 16px 22px; }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--text); }

/* ---------- errors / footer ---------- */
.error {
  color: var(--red);
  background: rgba(255, 93, 115, 0.08);
  border: 1px solid rgba(255, 93, 115, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.92rem;
  /* Multi-paragraph explanations are set with textContent; keep their breaks. */
  white-space: pre-line;
}
.footer { text-align: center; padding: 20px 24px 32px; font-size: 0.85rem;
          border-top: 1px solid var(--line); }

@media (max-width: 480px) {
  .panel { padding: 20px; }
  .minted-row code { font-size: 0.9rem; }
}
