/* Body Soda — landing site shared styles
   Matches the in-app medieval royal theme: gold + deep purple + parchment.
   Mobile-first, no external dependencies. */

:root {
  --deep-purple: #2D0A31;
  --darker-purple: #1A0520;
  --royal-purple: #4A0E4E;
  --gold: #D4AF37;
  --bright-gold: #FFD700;
  --crimson: #DC143C;
  --parchment: #F5E6C8;
  --ivory: #FFFFF0;
  --forest-green: #228B22;
  --font-heading: 'MedievalSharp', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --max-content: 960px;
}

/* Load MedievalSharp for headings — fallback to Georgia if Google Fonts blocked. */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--parchment);
  background: linear-gradient(180deg, var(--deep-purple) 0%, var(--darker-purple) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--bright-gold);
  letter-spacing: 0.5px;
  margin-top: 0;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; color: var(--gold); }

p, li {
  color: var(--parchment);
}

a {
  color: var(--bright-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 215, 0, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: var(--ivory);
  border-bottom-color: var(--ivory);
}

code {
  background: rgba(255, 215, 0, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: var(--bright-gold);
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 20px 0;
  background: rgba(26, 5, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--bright-gold);
  font-weight: bold;
  border-bottom: none;
}

.site-header .logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--parchment);
  border-bottom: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--bright-gold);
}

.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 32px 0 40px;
  margin-top: 60px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 230, 200, 0.6);
}

.site-footer a {
  margin: 0 10px;
  color: rgba(245, 230, 200, 0.8);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero .app-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  margin-bottom: 24px;
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--gold);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--parchment);
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--deep-purple);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  background: var(--bright-gold);
  color: var(--deep-purple);
  border-color: var(--bright-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--bright-gold);
}

/* ── Feature grid ───────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.feature-card {
  background: rgba(74, 14, 78, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--bright-gold);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Content sections (for policy/terms/support) ────────────────────── */

.content {
  padding: 40px 0 20px;
}

.content h2 {
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 8px;
  margin-top: 48px;
}

.content ul, .content ol {
  padding-left: 20px;
}

.content li {
  margin-bottom: 8px;
}

.meta {
  font-size: 0.85rem;
  color: rgba(245, 230, 200, 0.7);
  font-style: italic;
  margin: -8px 0 32px;
}

/* ── FAQ (support page) ─────────────────────────────────────────────── */

.faq-item {
  background: rgba(74, 14, 78, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-heading);
  color: var(--bright-gold);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '▸';
  color: var(--gold);
  transition: transform 0.2s;
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
}

.faq-item .faq-body {
  padding: 0 20px 16px;
  color: var(--parchment);
}

/* ── Steps list (landing "how to play") ─────────────────────────────── */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 64px;
  background: rgba(74, 14, 78, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  margin-bottom: 12px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--deep-purple);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Contact block ──────────────────────────────────────────────────── */

.contact-box {
  background: linear-gradient(135deg,
    rgba(74, 14, 78, 0.8),
    rgba(45, 10, 49, 0.8));
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 32px 0;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15);
}

.contact-box h3 {
  margin-top: 0;
  color: var(--bright-gold);
  font-size: 1.4rem;
}

.contact-box a {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: bold;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 50px 0 40px; }
  .hero .app-icon { width: 110px; height: 110px; }
  .site-header .container { justify-content: center; }
  .site-nav { justify-content: center; width: 100%; }
  .btn { padding: 12px 22px; font-size: 1rem; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
