/* Date Roll — public website stylesheet.
   Visual identity carried over from the mobile app's design tokens
   (src/theme.js): dark charcoal/plum foundation, warm rose/amber/cream
   accents, generous rounding, cream-on-dark body text for contrast.
   No external fonts, no external requests of any kind — the whole site is
   self-contained static files. */

:root {
  --bg-base: #15111A;
  --bg-raised: #1F1A24;
  --bg-overlay: #0D0A10;
  --plum-500: #3B2A45;
  --plum-300: #5B4468;
  --rose-500: #E0527A;
  --rose-300: #F4A6BE;
  --amber-500: #E8A94A;
  --amber-300: #F4CD8C;
  --cream-100: #F7EFE6;
  --cream-300: #E4D6C8;
  --cream-500: #B8A896;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;
  --space-huge: 40px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-width: 1040px;
  --prose-width: 700px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--cream-100);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Body copy stays cream (high contrast on the dark background) — rose/amber
   are reserved for headings, large text, and UI elements, never small
   paragraph text. Mirrors the same discipline documented in the mobile
   app's theme.js. */
p { color: var(--cream-300); margin: 0 0 var(--space-lg); }

h1, h2, h3 { color: var(--cream-100); font-weight: 800; letter-spacing: -0.5px; margin: 0 0 var(--space-md); }
h1 { font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.15rem; }

a {
  color: var(--rose-300);
  text-decoration-color: rgba(244, 166, 190, 0.5);
  text-underline-offset: 3px;
}
a:hover { color: var(--amber-300); }

/* Visible keyboard focus everywhere — never suppressed. */
a:focus-visible,
button:focus-visible,
.pill:focus-visible {
  outline: 3px solid var(--amber-300);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

img { max-width: 100%; display: block; }

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

.prose {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- Site header / nav ---------- */

.site-header {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--plum-500);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--cream-100);
}
.wordmark:hover { color: var(--cream-100); }
.wordmark .eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--rose-300);
}
.wordmark .name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--cream-300);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--amber-300); }

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

.hero {
  padding: clamp(var(--space-xxxl), 8vw, 80px) 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-huge);
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 380px; min-width: 0; }
.hero-copy .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--rose-300);
  margin-bottom: var(--space-md);
}
.hero-copy h1 { margin-bottom: var(--space-lg); }
.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--cream-300);
  max-width: 46ch;
  margin-bottom: var(--space-xxl);
}

.hero-visual {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Decorative die — echoes (not clones) the mobile app's Die component:
   a cream rounded-square die with dark pips, resting on a soft rose/amber
   glow. Purely decorative; hidden from assistive tech. */
.die-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--rose-500);
  opacity: 0.35;
  filter: blur(2px);
}
.die-glow.inner {
  width: 170px;
  height: 170px;
  background: var(--amber-500);
  opacity: 0.4;
}
.die-face {
  position: relative;
  width: 140px;
  height: 140px;
  background: var(--cream-100);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: var(--space-lg);
  gap: 2px;
}
.die-face span { border-radius: 50%; }
.die-face span.dot { background: var(--bg-base); width: 20px; height: 20px; justify-self: center; align-self: center; }

@media (prefers-reduced-motion: no-preference) {
  .die-glow { animation: die-pulse 3.2s ease-in-out infinite; }
  .die-glow.inner { animation-delay: 0.4s; }
}
@keyframes die-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.06); }
}

/* ---------- Coming soon badges ---------- */

.coming-soon {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}
.coming-soon .label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cream-500);
  text-transform: uppercase;
  width: 100%;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--plum-300);
  background: var(--bg-raised);
  color: var(--cream-300);
  border-radius: var(--radius-lg);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
}
.platform-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
}

/* ---------- How it works ---------- */

.how-it-works { padding: var(--space-huge) 0 clamp(var(--space-xxxl), 8vw, 80px); }
.how-it-works h2 { text-align: center; margin-bottom: var(--space-sm); }
.how-it-works .section-sub {
  text-align: center;
  color: var(--cream-500);
  max-width: 52ch;
  margin: 0 auto var(--space-xxxl);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.step {
  background: var(--bg-raised);
  border: 1px solid var(--plum-500);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: var(--plum-500);
  color: var(--amber-300);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: var(--space-lg);
}
.step h3 { color: var(--rose-300); margin-bottom: var(--space-sm); }
.step p { margin: 0; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Reassurance strip ---------- */

.reassurance {
  border-top: 1px solid var(--plum-500);
  border-bottom: 1px solid var(--plum-500);
  padding: var(--space-xxl) 0;
  text-align: center;
}
.reassurance p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--cream-300);
  font-size: 1.05rem;
}
.reassurance strong { color: var(--amber-300); }

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--space-xxxl) 0 var(--space-huge);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}
.footer-links a { color: var(--cream-300); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--amber-300); }

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--plum-300);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--cream-500);
}

.copyright { color: var(--cream-500); font-size: 0.85rem; }

/* ---------- Legal / support pages ---------- */

.page-header {
  padding: var(--space-xxxl) 0 var(--space-lg);
  text-align: center;
}
.page-header .eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--rose-300);
  margin-bottom: var(--space-sm);
}
.page-header .dates {
  color: var(--cream-500);
  font-size: 0.9rem;
}
.back-link {
  display: inline-block;
  margin: var(--space-lg) 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-content {
  padding: var(--space-xl) 0 var(--space-huge);
}
.legal-content h2 {
  margin-top: var(--space-xxxl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--plum-500);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content h3 { color: var(--rose-300); margin-top: var(--space-xl); }
.legal-content ul { color: var(--cream-300); padding-left: 1.3em; margin: 0 0 var(--space-lg); }
.legal-content li { margin-bottom: var(--space-xs); }
.legal-content strong { color: var(--cream-100); }
.legal-content hr { border: none; border-top: 1px solid var(--plum-500); margin: var(--space-xxxl) 0; }

/* Publication placeholders: visually distinct so an internal reviewer can
   spot every unresolved field before deployment. Never hidden, never
   auto-filled. Detectable both visually and programmatically
   (class + data-blocker attribute — see docs/launch/stage-6.1a-website-build.md). */
.placeholder {
  display: inline-block;
  color: var(--amber-300);
  background: rgba(232, 169, 74, 0.14);
  border: 1px dashed var(--amber-500);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 700;
}

.support-card {
  background: var(--bg-raised);
  border: 1px solid var(--plum-500);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  margin: var(--space-xl) 0;
}
.support-card h3 { color: var(--rose-300); margin-top: 0; }

@media (max-width: 640px) {
  .site-nav { gap: var(--space-md); }
  .hero .container { gap: var(--space-xxl); }
  .hero-visual { width: 160px; height: 160px; }
  .die-glow { width: 160px; height: 160px; }
  .die-glow.inner { width: 124px; height: 124px; }
  .die-face { width: 100px; height: 100px; padding: var(--space-md); }
  .die-face span.dot { width: 14px; height: 14px; }
}
