/* Roadmap page (feature 006). Shares tokens, the top bar, buttons and the WhatsApp button with styles.css. */

/* Still stars: what reduced motion, phones without WebGL and the first paint show. The 3D canvas covers it. */
body.road-page {
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(242, 239, 233, 0.7), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(242, 239, 233, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(169, 200, 240, 0.6), transparent 60%),
    radial-gradient(1px 1px at 86% 48%, rgba(242, 239, 233, 0.5), transparent 60%),
    radial-gradient(1px 1px at 22% 86%, rgba(242, 239, 233, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 32%, rgba(242, 239, 233, 0.55), transparent 60%),
    radial-gradient(60% 50% at 50% 0%, rgba(123, 108, 196, 0.16), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
/* `hidden` wins over the display rules below (sections before a gate is chosen, buttons that need the script). */
.road-page [hidden] { display: none !important; }
#road { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.road-hud { grid-template-columns: auto 1fr auto; }
.road-now { justify-self: center; font-size: 13px; color: var(--muted); }
.road-now b { color: var(--ink); font-family: var(--f-latin); font-weight: 500; margin-inline-start: 8px; }

/* ---------- Hero + gates ---------- */
.road-hero {
  min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px;
  padding: 120px var(--gutter) 80px;
}
.road-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 5.6vw, 84px); line-height: 1.25; }
.road-lead { color: var(--muted); max-width: 50ch; font-size: clamp(18px, 1.6vw, 21px); }
.gates-hint { color: var(--muted); font-size: 15.5px; margin-top: 70px; }
.gates { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: clamp(16px, 8vw, 160px); margin-top: 56px; }
.gate {
  display: grid; justify-items: center; gap: 6px; padding: 26px 22px; border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, rgba(4, 4, 7, 0.55));
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.gate b { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); }
.gate small { color: var(--muted); font-size: 15.5px; }
.gate em { font-style: normal; font-family: var(--f-latin); font-size: 14.5px; color: var(--c); }
.gate:hover, .gate[aria-current="true"] { transform: translateY(-4px); border-color: var(--c); background: color-mix(in srgb, var(--c) 20%, rgba(4, 4, 7, 0.55)); }

/* ---------- Tracks ---------- */
/* After a gate is chosen the content sits in the middle on the still stars; the 3D scene fades out (road-scene.js). */
.track { position: relative; padding: 80px var(--gutter) 0; }
.track-head {
  display: grid; gap: 16px; width: min(820px, 100%); margin-inline: auto; padding: clamp(28px, 3.4vw, 48px); border-radius: 28px;
  background: rgba(8, 10, 20, 0.84); border: 1px solid var(--faint);
}
.track-head .eyebrow { color: var(--c); }
.track-head h2 { font-family: var(--f-display); font-size: clamp(38px, 4.6vw, 64px); line-height: 1.3; }
.track-for { color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.8; }
.track-progress { display: grid; gap: 10px; font-size: 16px; color: var(--muted); }
.tp-count { font-family: var(--f-latin); color: var(--ink); margin-inline-end: 6px; }
.tp-bar { display: block; height: 4px; border-radius: 4px; background: var(--faint); overflow: hidden; }
.tp-bar i { display: block; height: 100%; width: 0; background: var(--c); transition: width 0.6s var(--ease); }
.track-switch { justify-self: start; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--faint); }
.track-switch:hover { color: var(--ink); text-decoration-color: var(--c); }

.steps { list-style: none; }
.step { display: grid; justify-items: center; padding-block: 48px; }
.step-card {
  display: grid; gap: 28px; width: min(820px, 100%); padding: clamp(28px, 3.6vw, 52px); border-radius: 30px;
  background: rgba(8, 10, 20, 0.84); border: 1px solid var(--faint);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transition: border-color 0.4s;
}
.step.is-done .step-card { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.step-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.step-num { font-family: var(--f-latin); letter-spacing: 0.16em; font-size: 15px; color: var(--c); }
.step-time { font-size: 15.5px; color: var(--muted); padding: 5px 14px; border-radius: 999px; border: 1px solid var(--faint); }
.step-card h3 { font-family: var(--f-display); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.35; }
.step-body { display: grid; gap: 8px; }
.step-body dt { font-size: 16px; color: var(--c); font-weight: 600; margin-top: 18px; }
.step-body dt:first-child { margin-top: 0; }
.step-body dd { color: var(--ink); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.9; }
.step-task { padding: 16px 20px; border-radius: 16px; background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); }
.step-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.step-ask, .step-done {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-size: 17px; font-weight: 600;
  border: 1px solid rgba(242, 239, 233, 0.3); background: transparent; cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.step-ask:hover, .step-done:hover { border-color: var(--ink); transform: translateY(-2px); }
/* Done is shown by a tick and the filled button, not by colour alone. */
.step-done::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; }
.step-done[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #04120f; }
.step-done[aria-pressed="true"]::before { content: "✓"; display: grid; place-items: center; border: 0; font-size: 14px; line-height: 1; }

/* ---------- Ending ---------- */
.road-send {
  min-height: 80svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px;
  padding: 120px var(--gutter) 100px;
}
.road-send h2 { font-family: var(--f-display); font-size: clamp(44px, 7vw, 110px); line-height: 1.2; }

@media (max-width: 900px) {
  .road-now { display: none; }
  .road-hud { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 760px) {
  .gates { grid-template-columns: 1fr; width: min(340px, 100%); }
  .track { padding: 56px 16px 0; }
  .step { min-height: 0; padding-block: 28px; }
  .steps { padding-bottom: 12svh; }
  .step-card { width: 100%; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate, .step-ask, .step-done, .tp-bar i { transition: none; }
  .gate:hover, .step-ask:hover, .step-done:hover { transform: none; }
}
