:root {
  --accent: #FF6B35;
  --accent-light: #FFB07A;
  --bg: #FBFBFB;
  --surface: #FFFFFF;
  --border: #ECECEC;
  --ink: #0A0A0A;
  --muted: #737373;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 100px;
  --grad: linear-gradient(90deg, #FFB07A 0%, #FF6B35 100%);
  --shadow-soft: 0 12px 32px rgba(255,107,53,0.18);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --surface: #171717;
    --border: #262626;
    --ink: #FAFAFA;
    --muted: #A3A3A3;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Nunito",
        "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Visibility toggle driven by the PHP-set data-mode on <body>. */
body[data-mode="invite"]    .marketing  { display: none; }
body[data-mode="marketing"] .invite-card { display: none; }

/* ---------- BRAND ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(255,107,53,0.25);
}
.brand__name {
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* ---------- HERO ---------- */
.hero h1, .invite-card h1 {
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 14px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.lede {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 38ch;
}

/* ---------- HERO DISC ---------- */
.hero-disc {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin: 8px auto 28px;
  box-shadow: var(--shadow-soft);
  font-size: 64px;
  line-height: 1;
  animation: pulse 2.6s ease-in-out infinite;
}
.hero-disc--big {
  width: 160px; height: 160px;
  font-size: 78px;
  margin-top: 24px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-disc { animation: none; }
}

/* ---------- INVITE CARD ---------- */
.invite-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.code-chip {
  background: linear-gradient(135deg,
    rgba(255,176,122,0.18) 0%,
    rgba(255,107,53,0.05) 100%);
  border: 1.2px solid rgba(255,107,53,0.30);
  border-radius: 22px;
  padding: 20px 28px;
  margin: 0 0 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.code-chip__label {
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--muted);
}
.code-chip__value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 4px;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  font-variant-numeric: tabular-nums;
}

.invite-tail {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
  max-width: 36ch;
}
.invite-tail strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 1.2px;
}

/* ---------- CTA + STORE BUTTONS ---------- */
.cta-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.cta {
  height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.cta--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.cta--primary:active { transform: scale(0.98); }

.store-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-row--center { margin-top: 24px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 120ms ease-out;
}
.store:active { transform: scale(0.97); }
.store svg { display: block; }

/* ---------- FEATURE GRID (marketing) ---------- */
.feature-grid {
  margin-top: 48px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.feature__emoji {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  font-size: 22px;
  margin-bottom: 10px;
}
.feature-grid h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 4px;
}
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
@media (min-width: 560px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- FOOTER ---------- */
footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
