/* fancast-website/styles.css
 *
 * Shared base layer pulled out of the four HTML pages in W3. Before this,
 * the reset, design tokens, nav, and footer rules were duplicated ~80%
 * across index.html, privacy.html, terms.html, and support.html (≈600 lines
 * of copy-paste). Anything page-specific (hero, features, FAQ accordion,
 * legal-page content layout) still lives in each page's <style> block —
 * we want to keep one file per page rather than fan out into many.
 */

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --coral:  #FF4F5E;
  --gold:   #FFD166;
  --teal:   #06D6A0;
  --navy:   #0D0F1A;
  --navy2:  #13162A;
  --card:   #1A1D30;
  --border: rgba(255,255,255,0.08);
  --text:   #F0F0F5;
  --muted:  rgba(240,240,245,0.55);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── Document ───────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Respect users who've asked the OS to reduce motion. Disables the
   `scroll-behavior: smooth` jump-to-anchor animation and all transitions
   that we layer on top of cards / buttons. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Skip-to-content (a11y) ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--coral);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  background: rgba(13,15,26,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--coral); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); }

.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.nav-back:hover,
.nav-back:focus-visible { color: var(--text); }

/* Hamburger toggle — hidden on desktop, becomes the only nav control
   on viewports below 600px. The .nav-links list is the menu panel that
   slides in via the `.open` class set by JS. */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.05); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    display: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(255,255,255,0.05);
    color: var(--text);
  }
}

/* ── Links ──────────────────────────────────────────────────────────────── */
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Focus ring for keyboard users — visible everywhere a default browser
   ring used to be. Mouse clicks won't trigger it (focus-visible). */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Footer (base — legal pages use this verbatim; index extends it) ───── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}
footer p {
  color: var(--muted);
  font-size: 0.8rem;
}
