/* ===== Rad Force shared design tokens =====
 * Canonical source. To propagate changes, run `ops/scripts/sync-tokens.sh`
 * which replaces the `:root { ... }` block at the top of each site's style.css.
 * Do NOT edit `:root` blocks in site stylesheets directly.
 */
:root {
  --pink: #ff2a8e;
  --cyan: #18e8ff;
  --orange: #ff6b3d;
  --bg: #0a0014;
  --fg: #f0e9ff;
  --fg-dim: #b9b0d9;

  --glow-pink: 0 0 6px rgba(255, 42, 142, 0.85),
               0 0 18px rgba(255, 42, 142, 0.55),
               0 0 36px rgba(255, 42, 142, 0.3);
  --glow-cyan: 0 0 6px rgba(24, 232, 255, 0.85),
               0 0 18px rgba(24, 232, 255, 0.55),
               0 0 36px rgba(24, 232, 255, 0.3);
  --glow-orange: 0 0 6px rgba(255, 107, 61, 0.85),
                 0 0 18px rgba(255, 107, 61, 0.55),
                 0 0 36px rgba(255, 107, 61, 0.3);

  --ff-display: "Monoton", system-ui, sans-serif;
  --ff-mono: "Space Mono", ui-monospace, monospace;
  --ff-body: "Space Grotesk", system-ui, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Page ---------- */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.blurb {
  font-family: var(--ff-mono);
  color: var(--fg-dim);
  text-align: center;
  font-size: 0.95rem;
  margin: 8px auto 40px;
  max-width: 36ch;
}

@media (min-width: 720px) {
  body { font-size: 18px; }
  .page { padding: 64px 24px 96px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-bottom: 56px;
  margin-bottom: 16px;
}

.logo {
  margin: 0 auto;
  width: min(420px, 85%);
  border-radius: 28px;
  filter: drop-shadow(0 0 12px rgba(255, 42, 142, 0.5))
          drop-shadow(0 0 28px rgba(255, 42, 142, 0.3))
          drop-shadow(0 0 48px rgba(24, 232, 255, 0.25));
}

.subtitle {
  font-family: var(--ff-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin: 24px 0 0;
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .subtitle { font-size: 1rem; }
}

/* ---------- Grid horizon ---------- */
.grid-horizon {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200vw;
  height: 120px;
  transform: translateX(-50%) perspective(240px) rotateX(58deg);
  transform-origin: bottom center;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  pointer-events: none;
}

.grid-horizon::before {
  content: "";
  position: absolute;
  inset: -20px 0 0;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0 calc(5% - 1px),
      rgba(24, 232, 255, 0.55) calc(5% - 1px) 5%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 calc(20px - 1px),
      rgba(24, 232, 255, 0.55) calc(20px - 1px) 20px
    );
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .grid-horizon::before {
    animation: gridScroll 3.2s linear infinite;
  }
  @keyframes gridScroll {
    from { transform: translateY(0); }
    to   { transform: translateY(20px); }
  }
}

/* ---------- Section headings ---------- */
.section-heading {
  font-family: var(--ff-mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  font-size: 0.95rem;
  margin: 56px 0 12px;
}
.section-heading.pink   { color: var(--pink);   text-shadow: var(--glow-pink); }
.section-heading.cyan   { color: var(--cyan);   text-shadow: var(--glow-cyan); }
.section-heading.orange { color: var(--orange); text-shadow: var(--glow-orange); }

@media (min-width: 720px) {
  .section-heading { font-size: 1.05rem; }
}

/* ---------- Counter ---------- */
.counter {
  font-family: var(--ff-mono);
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
}
.counter.qualified {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ---------- Rules list (checkbox cards) ---------- */
.rules { display: flex; flex-direction: column; gap: 10px; }

.rules label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 42, 142, 0.45);
  border-radius: 6px;
  background: rgba(255, 42, 142, 0.04);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.rules label:hover {
  border-color: var(--pink);
  background: rgba(255, 42, 142, 0.08);
  box-shadow: 0 0 12px rgba(255, 42, 142, 0.25);
}

/* Hide the native input but keep it accessible */
.rules input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.rules .box {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border: 2px solid var(--pink);
  border-radius: 3px;
  position: relative;
  margin-top: 2px;
  box-shadow: var(--glow-pink);
}

.rules .box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  border-radius: 1px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 120ms ease, transform 120ms ease;
}

.rules input:checked + .box::after {
  opacity: 1;
  transform: scale(1);
}

.rules input:focus-visible + .box {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.rules .text {
  flex: 1;
  color: var(--fg);
}

.rules input:checked ~ .text {
  color: var(--fg-dim);
}

/* ---------- Lifetime variant: orange ---------- */
.checklist.lifetime .rules label {
  border-color: rgba(255, 107, 61, 0.5);
  background: rgba(255, 107, 61, 0.05);
}
.checklist.lifetime .rules label:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 61, 0.1);
  box-shadow: 0 0 12px rgba(255, 107, 61, 0.3);
}
.checklist.lifetime .rules .box {
  border-color: var(--orange);
  box-shadow: var(--glow-orange);
}
.checklist.lifetime .rules .box::after {
  background: var(--orange);
  box-shadow: var(--glow-orange);
}

/* ---------- Closer ---------- */
.closer {
  text-align: center;
  margin: 72px 0 24px;
}

.welcome {
  font-family: var(--ff-display);
  font-weight: 400;
  color: var(--pink);
  text-shadow: var(--glow-pink);
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.15;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px;
  text-align: center;
  color: var(--fg-dim);
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* ---------- Scanlines overlay ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

/* ---------- Reveal (7/10 unlock) ---------- */
.reveal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}

@media (min-width: 640px) {
  .reveal { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.reveal-card {
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.share-card { color: var(--pink); box-shadow: 0 0 12px rgba(255, 42, 142, 0.25); }
.join-card  { color: var(--cyan); box-shadow: 0 0 12px rgba(24, 232, 255, 0.25); }

.reveal-tag {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  opacity: 0.85;
  text-shadow: 0 0 8px currentColor;
}

.reveal-text {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--fg);
}

.reveal-action {
  align-self: flex-start;
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.reveal-action:hover,
.reveal-action:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 14px currentColor;
  outline: none;
  transform: translateY(-1px);
}

.reveal-toast {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(24, 232, 255, 0.7);
}

.reveal-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.reveal-form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  border: 1px solid rgba(24, 232, 255, 0.5);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--ff-body);
  font-size: 0.95rem;
}

.reveal-form input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(24, 232, 255, 0.3);
}

.reveal-status {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.reveal-status.success { color: var(--cyan); text-shadow: 0 0 8px rgba(24, 232, 255, 0.7); }
.reveal-status.error   { color: #ff6b3d; }

/* ---------- Shop card (3rd reveal slot) ---------- */
.shop-card {
  color: var(--orange);
  box-shadow: 0 0 12px rgba(255, 107, 61, 0.25);
  text-decoration: none;
}

.shop-card:hover,
.shop-card:focus-visible {
  background: rgba(255, 107, 61, 0.08);
  box-shadow: 0 0 18px rgba(255, 107, 61, 0.45);
  outline: none;
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .reveal { grid-template-columns: 1fr 1fr 1fr; }
}
