/* Selector Go — site.css
   Custom styles layered on top of the Tailwind CDN utility set.
   Design tokens sourced from design/DESIGN.md (dark slate + metallic gold). */

:root {
  --deepest: #191D25;
  --surface: #20242D;
  --elevated: #272D39;
  --raised: #2D3340;
  --high: #3D4656;
  --edge: #2E3542;
  --edge-strong: #373E4C;

  --gold: #F5A623;
  --gold-bright: #FFC531;
  --gold-pale: #FFDD77;
  --gold-deep: #C77F0A;

  --blue: #2E9BFF;
  --blue-deep: #047CFC;
  --emerald: #2DC53A;
  --violet: #6C5CE7;
  --coral: #FF7A45;

  --ink-primary: #FFFFFF;
  --ink-secondary: #B1BAD3;
  --ink-muted: #828F9A;
  --ink-dim: #5E6A7F;
  --ongold: #20242D;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--deepest);
  color: var(--ink-primary);
  font-family: 'Rubik', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Tabular numerals everywhere a value counts, ticks, or rolls */
.tabnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Safe areas ---------- */
.pt-safe { padding-top: env(safe-area-inset-top); }
.pb-safe { padding-bottom: env(safe-area-inset-bottom); }
.pl-safe { padding-left: env(safe-area-inset-left); }
.pr-safe { padding-right: env(safe-area-inset-right); }

/* ---------- Nav ---------- */
.site-nav {
  background: rgba(25, 29, 37, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}

#mobile-drawer {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
#mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
body.drawer-open {
  overflow: hidden;
}

/* ---------- Backgrounds ---------- */
.bg-hero-wash {
  background:
    radial-gradient(circle at 50% -10%, rgba(245, 166, 35, 0.22), rgba(245, 166, 35, 0) 55%),
    radial-gradient(circle at 85% 10%, rgba(46, 155, 255, 0.10), rgba(46, 155, 255, 0) 45%),
    var(--deepest);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #FFCE45 0%, #F5A623 55%, #C77F0A 100%);
}

.bg-coin-sheen {
  background: linear-gradient(180deg, #FFE59E 0%, #FFC531 45%, #D98A00 100%);
}

.bg-cta-band {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), rgba(255,255,255,0) 40%),
    linear-gradient(135deg, #FFCE45 0%, #F5A623 55%, #C77F0A 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.375rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, #FFCE45 0%, #F5A623 55%, #C77F0A 100%);
  color: var(--ongold);
  box-shadow: 0 8px 24px -6px rgba(245, 166, 35, 0.55);
}
.btn-gold:hover { box-shadow: 0 10px 28px -4px rgba(245, 166, 35, 0.65); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--edge-strong);
  color: var(--ink-primary);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-pale); }

.btn-dark {
  background: var(--ongold);
  color: var(--gold-pale);
}
.btn-dark:hover { background: #14171d; }

/* ---------- Cards ---------- */
.card {
  background: var(--elevated);
  border: 1px solid var(--edge);
  border-radius: 16px;
}

.card-accent {
  border-color: color-mix(in srgb, var(--accent, var(--gold)) 40%, transparent);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent, var(--gold)) 45%, transparent);
}

/* ---------- Odometer / countdown tiles ---------- */
.odo-tile {
  background: var(--raised);
  border: 1px solid var(--edge);
  border-radius: 12px;
  min-width: 3.25rem;
}

.odo-digit {
  font-weight: 700;
  color: var(--ink-primary);
}

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.375rem 0.75rem;
}

/* ---------- Mascot idle motion ---------- */
@keyframes mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.mascot-idle {
  animation: mascot-bob 4.5s ease-in-out infinite;
}

/* ---------- Screenshot carousel ---------- */
.snap-row {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.snap-row::-webkit-scrollbar { display: none; }
.snap-item {
  scroll-snap-align: center;
}

/* ---------- Progress ring ---------- */
.ring-track { stroke: var(--edge); }
.ring-fill {
  stroke-linecap: round;
  transition: stroke-dashoffset 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- FAQ (native details/summary) ---------- */
.faq-item summary {
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron {
  transition: transform 200ms ease;
}
.faq-item[open] .chevron {
  transform: rotate(180deg);
}
.faq-item[open] .faq-answer {
  animation: faq-in 220ms ease;
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Legal page prose ---------- */
.legal-prose h2 {
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.legal-prose h2:first-of-type { margin-top: 0.5rem; }
.legal-prose p { color: var(--ink-secondary); line-height: 1.7; margin-bottom: 1rem; }
.legal-prose ul { color: var(--ink-secondary); line-height: 1.7; margin: 0 0 1rem 1.25rem; list-style: disc; }
.legal-prose li { margin-bottom: 0.4rem; }
.legal-prose strong { color: var(--ink-primary); }
.legal-prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
