/* Simple Queens — support & marketing site
   Palette pulled from SimpleQueens/Resources/themes/default.json */

:root {
  --bg: #f4f3fa;
  --surface: #ffffff;
  --surface-alt: #f7f6fc;
  --border: #e3e1f0;
  --text: #211f33;
  --text-muted: #5c5a73;

  --hero-grad-start: #6a5acd;
  --hero-grad-end: #5b8def;
  --gold: #ffcc33;
  --gold-dark: #e6b000;

  /* region colors, from default.json regionColors[] */
  --region-1: #3399ff;
  --region-2: #ff6666;
  --region-3: #33cc66;
  --region-4: #ffcc33;
  --region-5: #cc66ff;
  --region-6: #ff9933;
  --region-7: #66cccc;
  --region-8: #ff99cc;
  --region-9: #996633;
  --region-10: #66ff99;
  --region-11: #99cc33;
  --region-12: #66cc33;
  --region-13: #33cc99;
  --region-14: #6666ff;
  --region-15: #ff66ff;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 32, 90, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131f;
    --surface: #1d1b2a;
    --surface-alt: #232032;
    --border: #322e46;
    --text: #f2f1f8;
    --text-muted: #b2aec8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --bg: #15131f;
  --surface: #1d1b2a;
  --surface-alt: #232032;
  --border: #322e46;
  --text: #f2f1f8;
  --text-muted: #b2aec8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--hero-grad-start), var(--hero-grad-end));
  color: #fff;
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-art { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 48ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: #2a2000;
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ---------- Board screenshot ---------- */

.hero-art {
  display: flex;
  justify-content: center;
}

.board-shot {
  width: min(380px, 80vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 45px rgba(0,0,0,0.35));
}

/* ---------- Sections ---------- */

section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hero-grad-end);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 10px 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* How to play */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .rules-grid { grid-template-columns: 1fr; }
}

.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.rule-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.rule-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.rule-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

.gesture-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .gesture-row { grid-template-columns: 1fr; } }

.gesture-card {
  display: flex;
  gap: 14px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 16px 18px;
  align-items: flex-start;
}

.gesture-card .emoji { font-size: 1.4rem; }
.gesture-card h4 { margin: 0 0 4px; font-size: 0.95rem; }
.gesture-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.feature-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* Difficulty strip */

.difficulty-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}

.diff-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

/* Region swatch strip (colorblind-friendly callout) */

.swatch-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* FAQ */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

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

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Support */

.support-section {
  background: var(--surface-alt);
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.support-card h3 { margin: 0 0 10px; }
.support-card p { color: var(--text-muted); margin: 0 0 24px; }

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--hero-grad-start), var(--hero-grad-end));
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}

.support-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Privacy */

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}

.privacy-card h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}
.privacy-card h3:first-child { margin-top: 0; }
.privacy-card p { color: var(--text-muted); margin: 0 0 4px; }
.privacy-card ul { color: var(--text-muted); margin: 8px 0; padding-left: 20px; }

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a { text-decoration: none; font-weight: 600; }
footer nav { display: flex; gap: 18px; }
