/* SnapyPlay — shared stylesheet */
:root {
  --purple: #7C3AED;
  --purple-light: #A855F7;
  --purple-dark: #4C1D95;
  --bg: #0D0B1E;
  --bg2: #1A0836;
  --text: #F3F0FF;
  --muted: #9CA3AF;
  --yellow: #FBBF24;
  --green: #22C55E;
  --pink: #EC4899;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(13, 11, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.25);
}
.nav-logo { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.nav-logo span { color: var(--purple-light); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--purple); color: #fff !important;
  padding: 9px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--purple-light) !important; text-decoration: none; }

/* ── HERO ── */
.hero {
  min-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.35) 0%, transparent 70%);
  position: relative; overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.5);
  border-radius: 999px; padding: 6px 16px;
  font-size: 13px; font-weight: 700; color: var(--purple-light);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 900; letter-spacing: -2px; line-height: 1.05;
  background: linear-gradient(135deg, #fff 40%, var(--purple-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--muted); max-width: 580px;
  margin: 0 auto 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.store-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.store-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; padding: 16px 36px;
  border-radius: 999px; font-weight: 800; font-size: 17px;
  border: none; cursor: pointer;
  box-shadow: 0 0 40px rgba(124,58,237,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(124,58,237,0.7); text-decoration: none; color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text); padding: 16px 36px;
  border-radius: 999px; font-weight: 700; font-size: 17px;
  cursor: pointer; transition: background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); text-decoration: none; color: var(--text); }

.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none; top: 50%; left: 50%; transform: translate(-50%,-50%);
}

.hero-shot {
  margin-top: 56px;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(168,85,247,0.35);
  box-shadow: 0 0 50px rgba(124,58,237,0.4), 0 24px 60px rgba(0,0,0,0.55);
  position: relative;
}

/* ── FEATURES ── */
.section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: var(--purple-light); text-transform: uppercase; margin-bottom: 16px;
  text-align: center;
}
.section-title {
  font-size: clamp(28px, 5vw, 48px); font-weight: 900;
  text-align: center; margin-bottom: 16px; letter-spacing: -1px;
}
.section-sub { text-align: center; color: var(--muted); max-width: 520px; margin: 0 auto 56px; font-size: 17px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius); padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.6); transform: translateY(-4px); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.feature-card-buddy {
  border-color: rgba(251,191,36,0.5);
  background: linear-gradient(145deg, rgba(124,58,237,0.18), rgba(251,191,36,0.08));
}

/* ── SAFETY ── */
.safety-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(13,11,30,0) 100%);
}
.safety-inner { max-width: 1100px; margin: 0 auto; }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 48px; }
.safety-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(34, 197, 94, 0.06); border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius); padding: 24px;
}
.safety-item .s-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.safety-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.safety-item p { font-size: 13px; color: var(--muted); }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius); padding: 36px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(124,58,237,0.25);
}
.plan-card.featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(168,85,247,0.1));
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(124,58,237,0.25);
}
.plan-badge { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.plan-name { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.plan-price { font-size: 42px; font-weight: 900; color: var(--purple-light); line-height: 1; margin-bottom: 6px; }
.plan-price span { font-size: 18px; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.plan-features li { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.plan-card .btn-primary,
.plan-card .btn-secondary {
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.buddy-preview {
  margin: 36px auto 0;
  max-width: 840px;
  background: linear-gradient(165deg, rgba(23,16,50,0.9), rgba(11,9,28,0.95));
  border: 1px solid rgba(124,58,237,0.45);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 18px 60px rgba(124,58,237,0.25);
}
.buddy-preview h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}
.buddy-preview-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 18px;
}
.buddy-preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.buddy-camera-mock {
  background:
    radial-gradient(circle at 18% 18%, rgba(168,85,247,0.25), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(59,130,246,0.2), transparent 40%),
    linear-gradient(160deg, rgba(8,7,22,0.98), rgba(28,14,59,0.92));
  border: 1px solid rgba(124,58,237,0.55);
  border-radius: 18px;
  padding: 14px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 14px 44px rgba(124,58,237,0.28);
}
.buddy-camera-top,
.buddy-camera-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.buddy-camera-top {
  margin-bottom: 10px;
}
.buddy-camera-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  background: rgba(239,68,68,0.16);
  border: 1px solid rgba(239,68,68,0.5);
  border-radius: 999px;
  padding: 4px 9px;
}
.buddy-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,0.9);
}
.buddy-camera-status {
  font-size: 12px;
  color: #d1d5db;
  font-weight: 700;
}
.buddy-bubble {
  background: rgba(8, 8, 22, 0.9);
  border: 1px solid rgba(124,58,237,0.5);
  border-radius: 14px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.buddy-chip {
  display: inline-block;
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.6);
  color: var(--purple-light);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.buddy-line-main {
  color: #fff;
  font-weight: 800;
  line-height: 1.42;
  margin-bottom: 10px;
  font-size: 15px;
}
.buddy-line-science {
  color: #34D399;
  margin-bottom: 6px;
  font-weight: 600;
}
.buddy-line-math {
  color: #FBBF24;
  font-weight: 600;
}
.buddy-react-btn {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.8px;
  padding: 9px 22px;
  box-shadow: 0 6px 18px rgba(124,58,237,0.45);
}
.buddy-char {
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
}
.buddy-stop-pill {
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.16);
  border-radius: 999px;
  padding: 4px 9px;
}
.buddy-parent-notes {
  background: linear-gradient(165deg, rgba(28,26,53,0.95), rgba(17,15,38,0.92));
  border: 1px solid rgba(93,72,163,0.55);
  border-radius: 12px;
  padding: 16px;
  color: #C4B5FD;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.buddy-parent-notes p { margin: 4px 0; }
.buddy-disclosure-title {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 9px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(124,58,237,0.2);
  padding: 40px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--muted); font-size: 14px;
}
.footer-links { display: flex; gap: 24px; }

/* ── PROSE (terms / privacy) ── */
.prose-page { max-width: 780px; margin: 60px auto; padding: 0 24px 80px; }
.prose-page h1 { font-size: 38px; font-weight: 900; margin-bottom: 8px; }
.prose-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 48px; }
.prose-page h2 { font-size: 22px; font-weight: 800; margin: 40px 0 12px; color: var(--purple-light); }
.prose-page p { color: #C4B5FD; margin-bottom: 16px; font-size: 16px; }
.prose-page ul { margin: 12px 0 20px 24px; color: #C4B5FD; }
.prose-page ul li { margin-bottom: 8px; font-size: 16px; }
.prose-page a { color: var(--purple-light); }
.coppa-box {
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.4);
  border-radius: var(--radius); padding: 20px 24px; margin: 32px 0;
}
.coppa-box strong { color: var(--yellow); }
.coppa-box p { margin: 0; color: #FDE68A; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--purple-light);
  font-weight: 900;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: #C4B5FD; font-size: 15px; margin-top: 12px; }

@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  footer { flex-direction: column; padding: 32px 20px; }
  .buddy-preview-grid { grid-template-columns: 1fr; }
  .buddy-camera-mock { min-height: 280px; }
  .buddy-preview { padding: 22px; }
}
