/* ── Tokens ── */
:root {
  --gold: #C5912B;
  --gold-light: #E7C170;
  --gold-pale: #F5E6C8;
  --ivory: #FBF8F2;
  --surface: #F4EFE4;
  --border: #E8DFC8;
  --text: #231A06;
  --text-sec: #6E6A60;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(35,26,6,.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ── Layout ── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.logo img { width: 32px; height: 32px; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  transition: color .2s;
}

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

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 80px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-sec);
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--text-sec);
  opacity: .7;
}

/* ── Hero (index) ── */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 17px;
  color: var(--text-sec);
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ── Store badges ── */
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: opacity .2s;
  text-decoration: none;
}

.badge-btn:hover { opacity: .85; text-decoration: none; }

.badge-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.badge-btn .badge-label { line-height: 1.2; }
.badge-btn .badge-label small { display: block; font-size: 10px; opacity: .7; font-weight: 400; }

/* ── Features ── */
.features {
  padding: 56px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-hero h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-sec);
  font-size: 15px;
}

/* ── Prose (privacy, terms) ── */
.prose {
  padding-bottom: 64px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 40px 0 12px;
}

.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.prose p {
  font-size: 15px;
  color: var(--text-sec);
  margin-bottom: 14px;
  line-height: 1.7;
}

.prose ul {
  margin: 0 0 14px 20px;
}

.prose ul li {
  font-size: 15px;
  color: var(--text-sec);
  margin-bottom: 6px;
  line-height: 1.6;
}

.prose a { color: var(--gold); }

.info-box {
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  margin: 24px 0;
}

/* ── Support page ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question .chevron {
  font-size: 18px;
  transition: transform .25s;
  flex-shrink: 0;
  color: var(--gold);
}

.faq-item.open .faq-question .chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-sec);
  font-size: 15px;
  margin-bottom: 20px;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity .2s;
}

.btn-gold:hover { opacity: .88; text-decoration: none; }

/* ── Join page ── */
.join-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.join-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(35,26,6,.1);
}

.join-logo { margin-bottom: 24px; }
.join-logo img { width: 56px; height: 56px; }

.join-card h1 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.join-card .subtitle {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 32px;
}

.code-display {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}

.code-digit {
  width: 42px;
  height: 52px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  font-family: 'SF Mono', 'Fira Mono', monospace;
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  display: block;
  background: var(--gold);
  color: white;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity .2s;
  cursor: pointer;
}

.btn-primary:hover { opacity: .88; text-decoration: none; }

.btn-secondary {
  display: block;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background .2s;
  cursor: pointer;
}

.btn-secondary:hover { background: var(--border); text-decoration: none; }

.redirect-hint {
  font-size: 12px;
  color: var(--text-sec);
  margin-top: 20px;
  opacity: .7;
}

.no-code-card {
  text-align: center;
  padding: 40px;
}

.no-code-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.no-code-card p { color: var(--text-sec); font-size: 15px; margin-bottom: 24px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .join-card { padding: 36px 24px; }
  .code-digit { width: 36px; height: 46px; font-size: 20px; }
}
