/* RollSpawn - shared web styles
   Dark theme tokens from Decision #15: #1a1a2e bg, #e94560 accent */

:root {
  --bg:           #1a1a2e;
  --bg-elevated:  #22223c;
  --bg-soft:      #2a2a48;
  --border:       #33335a;
  --text:         #f0f0f5;
  --text-muted:   #a8a8c0;
  --text-dim:     #7a7a95;
  --accent:       #e94560;
  --accent-hover: #ff5570;
  --success:      #4ade80;
  --max-width:    860px;
  --radius:       12px;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head:    "Cinzel", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(233, 69, 96, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(100, 60, 200, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.site-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Typography */
h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-weight: 800;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 40px 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
  margin: 32px 0 12px;
  font-weight: 600;
  color: var(--text);
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 640px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

strong { color: var(--text); font-weight: 600; }

ul, ol {
  margin: 16px 0 20px 24px;
  color: var(--text-muted);
}

li { margin-bottom: 8px; }

code {
  font-family: "SF Mono", "Monaco", "Menlo", monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 40px;
}

.hero .tagline {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #e94560 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: 22px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
}

.badge.coming-soon { opacity: 0.7; cursor: default; }
.badge.coming-soon:hover { transform: none; border-color: var(--border); }

.badge .label-small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Legal page layout */
.legal {
  max-width: 720px;
  margin: 0 auto;
}

.legal .meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal h2 { font-size: 22px; }
.legal h3 { font-size: 17px; }

/* Callout box */
.callout {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: var(--accent); }

.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "-";
  transform: rotate(0);
}

.faq .answer {
  padding: 0 22px 22px;
  color: var(--text-muted);
}

.faq .answer p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  color: var(--text-dim);
  font-size: 14px;
}

.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer .links { display: flex; gap: 20px; }

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--text); border: none; }

.attribution {
  max-width: var(--max-width);
  margin: 20px auto 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  padding: 0 24px;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .hero { padding: 48px 0 24px; }
  .container { padding: 24px 20px 80px; }
  .site-header { padding: 16px 20px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .store-badges { flex-direction: column; align-items: center; }
  .badge { width: 100%; max-width: 280px; justify-content: center; }
  .site-footer .inner { flex-direction: column; text-align: center; }
}
