/* =====================================================================
   Spyndell — Ride. Post. Win!  |  Terms & Conditions
   Premium dark, minimal, sports-performance aesthetic
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #0B0B0B;
  --bg-elevated:   #121212;
  --primary:       #FFFFFF;
  --accent:        #F5C542;
  --accent-muted:  rgba(245, 197, 66, 0.12);
  --secondary:     #9A9A9A;
  --text:          #E8E8E8;
  --text-muted:    #B8B8B8;
  --border:        rgba(255, 255, 255, 0.09);
  --border-accent: rgba(245, 197, 66, 0.28);

  --radius-card:   16px;
  --radius-sm:     12px;
  --radius-pill:   999px;

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  --maxw:         820px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 480px at 50% -5%, rgba(245, 197, 66, 0.09), transparent 65%),
    linear-gradient(180deg, #0d0d0d 0%, var(--bg) 50%, #080808 100%);
}

a { color: var(--accent); text-underline-offset: 3px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  text-align: center;
  padding: clamp(56px, 10vw, 104px) 24px clamp(36px, 6vw, 56px);
  border-bottom: 1px solid var(--border);
}

.hero__logo {
  display: block;
  width: clamp(180px, 38vw, 260px);
  height: auto;
  margin: 0 auto clamp(28px, 4vw, 40px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 auto;
  max-width: 14ch;
  color: var(--primary);
}

.hero__title .accent {
  color: var(--accent);
}

.hero__subtitle {
  display: inline-block;
  margin-top: clamp(18px, 3vw, 26px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 22px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  background: var(--accent-muted);
}

.hero__rule {
  width: 48px;
  height: 3px;
  margin: clamp(36px, 5vw, 48px) auto 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* =====================================================================
   TERMS CARD
   ===================================================================== */
.content {
  padding: clamp(32px, 5vw, 56px) 24px clamp(64px, 8vw, 96px);
}

.card {
  max-width: var(--maxw);
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.card::before {
  content: "";
  display: block;
  height: 3px;
  margin: calc(-1 * clamp(28px, 5vw, 52px)) calc(-1 * clamp(28px, 5vw, 52px)) clamp(28px, 4vw, 40px);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
}

.card__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--primary);
}

.card__divider {
  height: 1px;
  margin: clamp(24px, 4vw, 32px) 0 0;
  border: 0;
  background: var(--border);
}

/* ---------- Ordered term list ---------- */
.terms {
  counter-reset: term;
  list-style: none;
  margin: 0;
  padding: 0;
}

.term {
  counter-increment: term;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: clamp(14px, 2.5vw, 20px);
  padding: clamp(22px, 3.5vw, 28px) 0;
  border-bottom: 1px solid var(--border);
}

.term:last-child { border-bottom: 0; padding-bottom: 0; }

.term__badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.term__badge::before { content: counter(term); }

.term__content { min-width: 0; }

.term__text {
  margin: 0;
  color: var(--text);
  padding-top: 6px;
}

.term__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.term__list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
}

.term__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.hl {
  color: var(--accent);
  font-weight: 600;
}

/* =====================================================================
   ENTRY INFO CARDS (section 3)
   ===================================================================== */
.entries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.entry__emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.entry__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--primary);
}

.entry__label .hl { display: inline; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--secondary);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 560px) {
  body { font-size: 1rem; }

  .entries { grid-template-columns: 1fr; }

  .term { grid-template-columns: 36px 1fr; gap: 12px; }

  .term__badge { width: 36px; height: 36px; font-size: 0.88rem; border-radius: 8px; }

  .hero__subtitle { letter-spacing: 0.28em; font-size: 0.68rem; padding-inline: 16px; }
}

/* Visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =====================================================================
   USABILITY LAYER  (skip link, progress, sticky bar, back-to-top)
   ===================================================================== */

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #111;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus-visible {
  clip-path: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 55;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid var(--border);
}
.topbar.is-visible { display: block; }

.topbar__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
}
.topbar__logo { height: 22px; width: auto; }
.topbar__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 50;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
  background: var(--bg-elevated);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.to-top.is-visible { display: grid; }
.to-top:hover {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

@media (max-width: 560px) {
  .topbar__logo { height: 18px; }
  .topbar__label { letter-spacing: 0.16em; }
  .to-top { width: 42px; height: 42px; }
}

/* =====================================================================
   PRINT — clean, ink-friendly T&C on white paper
   ===================================================================== */
@media print {
  :root { --border: rgba(0, 0, 0, 0.18); }

  body { background: #fff !important; color: #111; }
  body::before { display: none !important; }

  .progress, .topbar, .to-top, .skip-link,
  .hero__rule { display: none !important; }

  .hero { padding: 0 0 12px; border: 0; }
  .hero__logo {
    filter: brightness(0);
    width: 200px;
    margin-bottom: 14px;
  }
  .hero__title { color: #111 !important; }
  .hero__title .accent { color: #111 !important; }
  .hero__subtitle {
    color: #111;
    border-color: #999;
    background: transparent;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px 4px;
  }
  .card::before { display: none; }
  .card__eyebrow, .card__title { color: #111; }

  .term { break-inside: avoid; border-color: #ddd; }
  .term__text, .term__list li { color: #111; }
  .term__badge {
    background: #fff;
    color: #111;
    border-color: #111;
  }
  .term__list li::before { background: #111; }
  .hl { color: #111; text-decoration: underline; text-decoration-color: #999; }

  .entry { background: #fff; border-color: #ccc; break-inside: avoid; }
  .entry__label, .entry__label .hl { color: #111; }

  .footer { color: #555; border-color: #ccc; }
}
