/* ==========================================================================
   2ofUs — shared website styles
   Palette mirrored from the app (constants/theme.ts + Paywall.tsx):
   cream #F4F1DE · terracotta #E07A5F · sage #81B29A · accent #F2CC8F
   indigo #3D405B · text-secondary #6B6E7B
   ========================================================================== */

:root {
  --bg: #F4F1DE;
  --primary: #E07A5F;
  --primary-dark: #c9634a;
  --secondary: #81B29A;
  --accent: #F2CC8F;
  --text: #3D405B;
  --text-soft: #6B6E7B;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --maxw: 1040px;
  --reading: 760px;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(61, 64, 91, 0.08);
}

* { 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, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 222, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.nav a { color: var(--text-soft); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--primary); text-decoration: none; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: #fff; border-color: var(--primary); }

/* ----- Store badges (official Apple/Google assets) ----- */
.store-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; margin-top: 12px; }
.store-badge-link { display: inline-block; line-height: 0; transition: opacity .15s ease; }
.store-badge-link:hover { opacity: .85; }
.store-badge-link:active { opacity: .7; }
.store-badge-img { height: 50px; width: auto; display: block; }
.store-badge-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 0; }
.store-badge-img.soon { filter: grayscale(1); opacity: 0.45; }
.soon-label { font-size: 11px; color: var(--text-soft); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; line-height: 1; }

/* ----- Hero ----- */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.12;
  margin: 14px 0 12px;
  letter-spacing: -0.5px;
}
.hero .sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-soft); max-width: 560px; margin: 0 auto 26px; }
.hero-logo { width: 88px; height: 88px; margin: 0 auto; }
.hero .cta-note { margin-top: 12px; color: var(--text-soft); font-size: 14px; }

/* ----- Sections ----- */
section { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.section-head p { color: var(--text-soft); margin: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

/* ----- Game cards ----- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--secondary);
}
.card .emoji { font-size: 30px; }
.card .card-icon { width: 40px; height: 40px; margin-bottom: 4px; color: var(--primary); }
.card.teaser { border-style: dashed; border-top-color: var(--accent); background: rgba(255, 255, 255, 0.55); }
.card.teaser h3 { color: var(--text-soft); }
.card.teaser .card-icon { color: var(--text-soft); opacity: 0.85; }
.card h3 { margin: 8px 0 4px; font-size: 19px; }
.card .tag { color: var(--primary); font-style: italic; font-size: 14px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ----- Feature / value bands ----- */
.band {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band.sage { background: var(--secondary); color: #fff; }
.band.sage .section-head p,
.band.sage .eyebrow { color: rgba(255, 255, 255, 0.9); }
.band.sage .eyebrow { color: #fff; }
.center { text-align: center; }
.lead { font-size: clamp(17px, 2.6vw, 21px); max-width: 640px; margin: 0 auto; }

.checklist { list-style: none; padding: 0; margin: 22px auto 0; max-width: 560px; text-align: left; }
.checklist li { padding: 6px 0 6px 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--secondary); font-weight: 800; }
.band.sage .checklist li::before { color: #fff; }

/* ----- Footer ----- */
.site-footer {
  background: var(--text);
  color: #c7c9d4;
  padding: 36px 0;
  margin-top: 0;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .copyright { font-size: 14px; opacity: 0.85; }

/* ----- Legal / support reading layout ----- */
.prose { max-width: var(--reading); margin: 0 auto; }
.prose h1 { font-size: clamp(26px, 4.5vw, 34px); margin: 8px 0 4px; }
.prose h2 { font-size: 21px; margin: 30px 0 8px; }
.prose h3 { font-size: 17px; margin: 20px 0 6px; }
.prose p, .prose li { color: var(--text); font-size: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose .updated { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.page-pad { padding: 48px 0; }
.note { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 10px; margin: 18px 0; }
.placeholder { background: var(--accent); color: var(--text); padding: 1px 4px; border-radius: 4px; font-weight: 700; }

/* ----- Support FAQ ----- */
.faq { max-width: var(--reading); margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--primary); }
.faq details[open] summary::before { content: "– "; }
.faq details p { margin: 10px 0 0; color: var(--text-soft); }
.contact-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto 28px;
}
.contact-card .big { font-size: 20px; font-weight: 800; margin: 8px 0; }

@media (max-width: 560px) {
  .site-header .container { flex-direction: column; min-height: auto; }
  .nav { justify-content: center; }
  .hero { padding-top: 40px; }
}
