:root {
  --bg: #0d1830;
  --surface: #243b56;
  --surface-2: #314f6e;
  --gold: #d4af37;
  --gold-muted: #c09a2e;
  --text: #f7f9fc;
  --text-secondary: #c5ceda;
  --muted: #9aabbf;
  --border: #4a6a8c;
  --on-gold: #0d1830;
}

* {
  box-sizing: border-box;
}

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

body {
  padding: 28px 16px 56px;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
}

.brand {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 4vw, 2rem);
  line-height: 1.2;
  color: #fff;
  font-weight: 800;
}

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

.card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.card ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.card li {
  margin-bottom: 8px;
}

.card li:last-child {
  margin-bottom: 0;
}

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

a:hover,
a:focus {
  color: #e6c65a;
}

.email {
  font-weight: 700;
  word-break: break-all;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  font-size: 0.95rem;
}

.placeholder-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.store-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.store-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.store-btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  white-space: nowrap;
}

.store-apple-mark {
  width: 0.95em;
  height: 1.15em;
  flex-shrink: 0;
}

.store-btn-sub {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.store-btn-apple {
  background: var(--gold);
  color: var(--on-gold);
}

.store-btn-apple:hover,
.store-btn-apple:focus {
  background: #e6c65a;
  color: var(--on-gold);
}

.store-btn-play {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
}

.store-btn-status {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.store-apple-group,
.store-play-group {
  display: flex;
  flex-direction: column;
}

.store-qr {
  display: none;
}

@media (min-width: 640px) {
  body {
    padding: 40px 24px 72px;
  }

  .card {
    padding: 28px 28px;
  }

  .store-actions {
    flex-direction: row;
    align-items: flex-start;
  }

  .store-apple-group,
  .store-play-group {
    flex: 1;
  }

  .store-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }

  .store-qr img {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: 8px;
    background: #f7f9fc;
  }

  .store-qr p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
  }
}

/* Homepage-only. Privacy and data deletion pages omit .page-home. */
body.page-home {
  padding: 32px 16px 64px;
}

.page-home .shell {
  max-width: 960px;
}

.page-home .hero {
  margin-bottom: 40px;
}

.page-home h1 {
  margin: 0 0 14px;
  max-width: 20ch;
  font-size: clamp(1.9rem, 5.4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-home .hero-lead {
  margin: 0 0 24px;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-home .hero .store-actions {
  margin-bottom: 0;
}

.page-home h2 {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}

.page-home .feature-section,
.page-home .community-section {
  margin-bottom: 40px;
}

.page-home .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 18px 20px;
}

.page-home .feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 800;
  color: #fff;
}

.page-home .feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-home .community-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}

.page-home .community-panel p {
  margin: 0;
  max-width: 42rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.page-home .footer {
  margin-top: 8px;
}

@media (min-width: 640px) {
  body.page-home {
    padding: 52px 24px 80px;
  }

  .page-home .hero {
    margin-bottom: 48px;
  }

  .page-home .hero .store-actions {
    max-width: 36rem;
  }

  .page-home .feature-section,
  .page-home .community-section {
    margin-bottom: 48px;
  }

  .page-home .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .page-home .feature-card {
    padding: 20px 20px 22px;
  }

  .page-home .community-panel {
    padding: 26px 28px;
  }
}

@media (min-width: 900px) {
  .page-home .feature-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
