/* RaceRigControl download page — matches the app's dark look
   (near-black blue, red accents, uppercase headings). */

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

:root {
  --bg: #0a0f1e;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --red: #dc2626;
  --red-hover: #b91c1c;
  --amber: #fbbf24;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --faint: #6b7280;
}

body {
  background: radial-gradient(1200px 600px at 70% -10%, #14213f 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Titillium Web", system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.55;
}

main { max-width: 640px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }

header .brand { display: flex; align-items: center; gap: 0.75rem; }
.tick { display: inline-block; width: 6px; height: 34px; background: var(--red); border-radius: 2px; }
h1 { font-size: 2rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.tagline {
  margin: 0.35rem 0 0 1.15rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.75rem; font-weight: 700;
}

.hero { margin: 2rem 0; color: #d1d5db; }
.hero strong { color: #fff; }

.card {
  background: var(--panel);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.card h2 { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.5rem; }
.card p { color: #d1d5db; }

form { display: flex; gap: 0.5rem; margin-top: 1rem; }
input {
  flex: 1; min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  padding: 0.65rem 0.9rem;
  font: inherit;
}
input:focus { outline: none; border-color: var(--red); }
#code { flex: 0 0 9.5rem; font-family: ui-monospace, monospace; font-size: 1.15rem; letter-spacing: 0.35em; }

button {
  background: var(--red); color: #fff; border: 0; border-radius: 6px;
  padding: 0.65rem 1.3rem; font: inherit; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
  white-space: nowrap;
}
button:hover { background: var(--red-hover); }
button:disabled { opacity: 0.5; cursor: default; }

.fine { margin-top: 0.85rem; font-size: 0.8rem; color: var(--faint); }
.fine a { color: var(--red); font-weight: 600; text-decoration: none; }
.fine a:hover { text-decoration: underline; }
.fine a.disabled { color: var(--faint); pointer-events: none; }
#resend-wait { color: var(--faint); }

.downloads { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.dl {
  flex: 1; min-width: 14rem; text-align: center;
  background: var(--red); color: #fff; text-decoration: none;
  border-radius: 6px; padding: 0.9rem 1rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.dl:hover { background: var(--red-hover); }
.dl.disabled { background: rgba(255,255,255,0.08); color: var(--faint); pointer-events: none; }

.activate {
  margin-top: 1.25rem; padding: 0.9rem 1rem;
  border: 1px dashed var(--border); border-radius: 6px;
  font-size: 0.9rem; color: var(--muted);
}
.activate strong, .activate em { color: var(--text); font-style: normal; }

.error {
  margin-top: 1rem; padding: 0.6rem 0.9rem; border-radius: 6px;
  background: rgba(153, 27, 27, 0.35); border: 1px solid #b91c1c; color: #fecaca;
  font-size: 0.9rem;
}

.soon {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  border: 1px dashed var(--border); border-radius: 8px;
}
.soon h3 { color: var(--amber); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.85rem; }
.soon p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }

footer { margin-top: 3rem; font-size: 0.8rem; color: var(--faint); }
footer a { color: var(--muted); }
