/* ============================================================
   Sabio Marketing Site — Shared Styles
   Brand: purple #7C3AED → pink #EC4899 gradient. Fredoka + Plus Jakarta Sans.
   ============================================================ */

:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #A78BFA;
  --pink: #EC4899;
  --pink-dark: #BE185D;
  --gold: #FBBF24;
  --gold-dark: #F59E0B;
  --green: #10B981;
  --red: #EF4444;
  --blue: #3B82F6;

  --ink: #0F172A;
  --ink-2: #1F2937;
  --text: #334155;
  --text-light: #64748B;
  --muted: #94A3B8;

  --bg: #FAF5FF;
  --card: #FFFFFF;
  --line: #E5E7EB;
  --line-soft: #F3F4F6;

  --grad-brand: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --grad-gold: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  --grad-soft: linear-gradient(180deg, #F5F3FF 0%, #FDF2F8 100%);
  --grad-mesh:
    radial-gradient(1200px 800px at 15% -10%, rgba(167, 139, 250, 0.35) 0%, transparent 55%),
    radial-gradient(900px 700px at 90% 10%, rgba(236, 72, 153, 0.20) 0%, transparent 55%),
    radial-gradient(700px 600px at 50% 100%, rgba(251, 191, 36, 0.14) 0%, transparent 60%);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(124, 58, 237, 0.20);
  --shadow-lg: 0 30px 60px -20px rgba(124, 58, 237, 0.35);
  --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.10), 0 20px 40px -12px rgba(124, 58, 237, 0.28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1200px;
  --gutter: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 700; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-light); }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.18); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; padding: 14px 22px; border-radius: 999px; transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s; font-size: 0.95rem; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: white; background: var(--grad-brand); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { color: var(--ink); background: white; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 18px 28px; font-size: 1rem; }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; }

/* ---------- Header (nav) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding: 14px 0;
  background: rgba(250, 245, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.2s, background 0.2s;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(15,23,42,0.06); background: rgba(255, 255, 255, 0.85); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fredoka'; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: white; font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(124,58,237,0.5);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 12px; background: white; border: 1.5px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle span { position: relative; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links,
  .site-header.menu-open .nav-actions {
    display: flex; flex-direction: column; gap: 12px;
    position: absolute; left: 12px; right: 12px;
    background: white; padding: 20px; border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 41;
  }
  .site-header.menu-open .nav-links { top: 68px; padding-bottom: 12px; }
  .site-header.menu-open .nav-links a { padding: 10px 8px; border-radius: 10px; text-align: left; }
  .site-header.menu-open .nav-links a:hover { background: var(--bg); }
  /* stack actions directly under the links card */
  .site-header.menu-open .nav-actions {
    top: calc(68px + var(--nav-links-h, 260px) + 10px);
    background: transparent; box-shadow: none; padding: 0 8px;
  }
  .site-header.menu-open .nav-actions .btn { width: 100%; padding: 14px 20px; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-mesh);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; } }
.hero h1 span.emoji { display: inline-block; }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-light); max-width: 32ch; }
@media (max-width: 900px) { .hero-sub { margin-inline: auto; } }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }
.hero-meta { display: flex; gap: 24px; margin-top: 28px; font-size: 0.85rem; color: var(--text-light); flex-wrap: wrap; }
@media (max-width: 900px) { .hero-meta { justify-content: center; } }
.hero-meta strong { color: var(--ink); font-weight: 700; }

/* Phone mockup */
.phone-mock { position: relative; width: 100%; max-width: 340px; aspect-ratio: 340 / 690; margin-left: auto; }
@media (max-width: 900px) { .phone-mock { margin: 0 auto; } }
.phone-frame {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1F2937 0%, #0F172A 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 40px 80px -20px rgba(124,58,237,0.4),
    0 0 0 1px rgba(15,23,42,0.06),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  transform: rotate(-3deg);
  transition: transform 0.4s var(--ease-out);
}
.phone-mock:hover .phone-frame { transform: rotate(0deg) translateY(-6px); }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; background: linear-gradient(180deg, #FAF5FF 0%, #FDF2F8 100%); overflow: hidden; position: relative; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0F172A; border-radius: 100px; z-index: 3; }
.phone-content { position: absolute; inset: 40px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.phone-topbar { display: flex; justify-content: space-between; align-items: center; }
.phone-topbar .avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); color: white; display: grid; place-items: center; font-weight: 700; }
.phone-topbar .coins { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: white; border-radius: 999px; font-weight: 700; font-size: 0.72rem; box-shadow: var(--shadow-sm); }
.phone-hero-card {
  padding: 14px; border-radius: 18px; color: white;
  background: var(--grad-brand);
  box-shadow: 0 15px 30px -10px rgba(124,58,237,0.5);
  position: relative; overflow: hidden;
}
.phone-hero-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(251, 191, 36, 0.35); }
.phone-hero-card h5 { font-family: 'Fredoka'; font-size: 0.95rem; color: white; font-weight: 700; letter-spacing: 0; margin-bottom: 3px; }
.phone-hero-card p { font-size: 0.7rem; opacity: 0.9; }
.phone-question { padding: 12px; background: white; border-radius: 14px; box-shadow: var(--shadow-sm); }
.phone-question .q-cat { font-size: 0.6rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; }
.phone-question .q-text { font-family: 'Fredoka'; font-weight: 600; font-size: 0.85rem; margin-top: 4px; color: var(--ink); line-height: 1.2; }
.phone-options { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.phone-option { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--bg); font-size: 0.72rem; font-weight: 600; }
.phone-option .letter { width: 18px; height: 18px; border-radius: 5px; background: white; display: grid; place-items: center; font-size: 0.65rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.phone-option.correct { background: rgba(16,185,129,0.12); color: #065F46; }
.phone-option.correct .letter { background: var(--green); color: white; }

/* Floating coins around phone */
.floating-coin {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-gold); color: white;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 15px 30px -8px rgba(245,158,11,0.55);
  animation: float-y 4.5s var(--ease-out) infinite;
}
.floating-coin.c1 { top: 8%; left: -14px; animation-delay: 0s; }
.floating-coin.c2 { top: 48%; right: -22px; animation-delay: 1.2s; }
.floating-coin.c3 { bottom: 12%; left: -8px; animation-delay: 2.4s; width: 38px; height: 38px; font-size: 0.95rem; }
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%     { transform: translateY(-14px) rotate(6deg); }
}

/* ---------- Trust bar (metrics) ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; padding: 26px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 720px) { .metrics { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.metric { text-align: center; }
.metric-num { font-family: 'Fredoka'; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.25rem); color: var(--ink); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.metric-lbl { display: block; font-size: 0.72rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin: 16px auto 0; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 32px; background: white; border-radius: var(--radius-lg); border: 1px solid rgba(15,23,42,0.05); position: relative; overflow: hidden; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.2s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(124,58,237,0.15); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 20px; background: rgba(124,58,237,0.10); color: var(--primary); }
.feature.gold .feature-icon { background: rgba(251,191,36,0.16); color: var(--gold-dark); }
.feature.pink .feature-icon { background: rgba(236,72,153,0.14); color: var(--pink-dark); }
.feature.green .feature-icon { background: rgba(16,185,129,0.14); color: #065F46; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 32px; background: white; border-radius: var(--radius-lg); position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.step-num { position: absolute; top: -18px; left: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: white; font-family: 'Fredoka'; font-weight: 700; font-size: 1.15rem; display: grid; place-items: center; box-shadow: 0 10px 20px -6px rgba(124,58,237,0.55); }
.step h3 { margin: 16px 0 8px; }
.step p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- Split section (Promote) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; text-align: center; } }
.split-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: var(--grad-brand);
  padding: 30px;
  color: white; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-visual::before { content: ""; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: rgba(251,191,36,0.35); border-radius: 50%; }
.split-visual::after { content: ""; position: absolute; bottom: -60px; left: -60px; width: 240px; height: 240px; background: rgba(255,255,255,0.10); border-radius: 50%; }
.pop-card { position: relative; background: white; color: var(--ink); border-radius: 18px; padding: 16px; box-shadow: 0 20px 40px -15px rgba(15,23,42,0.35); z-index: 1; }
.pop-card + .pop-card { margin-top: 14px; }
.pop-card .row { display: flex; align-items: center; gap: 12px; }
.pop-card .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-gold); display: grid; place-items: center; font-size: 1.15rem; }
.pop-card .brand-name { font-weight: 700; }
.pop-card .brand-cta { font-size: 0.75rem; color: var(--text-light); }
.pop-card .badge { margin-left: auto; font-size: 0.65rem; font-weight: 700; padding: 4px 8px; background: rgba(124,58,237,0.10); color: var(--primary); border-radius: 999px; }

/* ---------- Testimonials ---------- */
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testi-track { grid-template-columns: 1fr; } }
.testi { padding: 28px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); position: relative; }
.testi::before { content: "“"; position: absolute; top: -20px; left: 20px; font-family: 'Fredoka'; font-size: 4rem; color: var(--primary); opacity: 0.25; line-height: 1; }
.testi-body { font-size: 0.98rem; color: var(--ink-2); }
.testi-meta { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: white; font-family: 'Fredoka'; font-weight: 700; }
.testi-avatar.a1 { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.testi-avatar.a2 { background: linear-gradient(135deg, #10B981, #059669); }
.testi-avatar.a3 { background: linear-gradient(135deg, #F59E0B, #DC2626); }
.testi-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.testi-role { font-size: 0.78rem; color: var(--text-light); }

/* ---------- Download section ---------- */
.download {
  padding: clamp(3rem, 6vw, 5rem);
  border-radius: var(--radius-xl);
  background: var(--grad-brand);
  color: white;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(124,58,237,0.5);
}
.download::before, .download::after { content: ""; position: absolute; border-radius: 50%; }
.download::before { top: -80px; right: -80px; width: 260px; height: 260px; background: rgba(251,191,36,0.28); }
.download::after { bottom: -100px; left: -60px; width: 320px; height: 320px; background: rgba(255,255,255,0.08); }
.download h2 { color: white; }
.download h2 span { display: block; opacity: 0.9; font-size: 0.55em; font-weight: 500; margin-top: 12px; letter-spacing: 0; }
.download-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0F172A; color: white;
  padding: 14px 22px; border-radius: var(--radius);
  transition: transform 0.2s var(--ease-out), background 0.2s;
  min-width: 200px;
}
.store-btn:hover { transform: translateY(-3px); background: #1F2937; }
.store-btn .icon { font-size: 1.8rem; line-height: 1; }
.store-btn .lbl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-btn .lbl small { font-size: 0.65rem; opacity: 0.8; font-weight: 500; }
.store-btn .lbl b { font-family: 'Fredoka'; font-weight: 600; font-size: 1.05rem; }
.store-btn.web { background: white; color: var(--ink); }
.store-btn.web:hover { background: #F1F5F9; }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 40px; background: linear-gradient(180deg, transparent 0%, rgba(124,58,237,0.03) 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--text-light); font-size: 0.9rem; max-width: 32ch; margin-top: 12px; }
.footer-col h5 { font-family: 'Plus Jakarta Sans'; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-light); margin-bottom: 16px; font-weight: 800; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--text-light); flex-wrap: wrap; gap: 12px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; background: white; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1rem; transition: transform 0.2s, border-color 0.2s; }
.socials a:hover { transform: translateY(-2px); border-color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: white; border-radius: var(--radius); border: 1px solid var(--line-soft); overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.faq-item:hover { border-color: rgba(124,58,237,0.2); box-shadow: var(--shadow-sm); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: rgba(124,58,237,0.25); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: 'Fredoka'; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: 'Fredoka'; font-weight: 400; font-size: 1.6rem; color: var(--primary); transition: transform 0.2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text); font-size: 0.95rem; line-height: 1.7; }
.faq-item .faq-body p + p { margin-top: 12px; }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter); }
.legal-header { text-align: center; margin-bottom: 40px; }
.legal-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-updated { color: var(--text-light); font-size: 0.9rem; margin-top: 10px; }
.legal article { background: white; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-sm); }
.legal article h2 { font-family: 'Fredoka'; font-size: 1.5rem; margin: 32px 0 12px; }
.legal article h2:first-child { margin-top: 0; }
.legal article h3 { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 20px 0 8px; letter-spacing: 0; }
.legal article p, .legal article li { font-size: 0.95rem; color: var(--text); line-height: 1.75; margin-bottom: 10px; }
.legal article ul { padding-left: 24px; margin-bottom: 12px; }
.legal article strong { color: var(--ink); font-weight: 700; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px; background: rgba(124,58,237,0.05); border-radius: var(--radius); margin-bottom: 30px; }
.legal-toc a { padding: 6px 12px; background: white; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); transition: background 0.15s, color 0.15s; }
.legal-toc a:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ---------- Screens showcase (multi-phone) ---------- */
.screens-section { position: relative; overflow: hidden; padding-bottom: clamp(6rem, 10vw, 9rem); }
.screens-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 500px at 15% 40%, rgba(167, 139, 250, 0.20) 0%, transparent 55%),
    radial-gradient(700px 500px at 85% 60%, rgba(236, 72, 153, 0.15) 0%, transparent 55%);
}
.screens-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  align-items: center;
  padding-top: 20px;
}
@media (max-width: 1100px) { .screens-strip { grid-template-columns: repeat(3, 1fr); } .screens-strip .mini-screen:nth-child(n+4) { display: none; } }
@media (max-width: 720px)  { .screens-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; } .screens-strip .mini-screen:nth-child(n+3) { display: none; } }

.mini-screen {
  position: relative;
  aspect-ratio: 200 / 420;
  border-radius: 32px;
  background: linear-gradient(180deg, #1F2937 0%, #0F172A 100%);
  padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(15,23,42,0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.mini-screen:hover { transform: translateY(-8px) rotate(0deg) !important; box-shadow: 0 40px 70px -20px rgba(124, 58, 237, 0.55); }
.mini-screen:nth-child(1) { transform: rotate(-4deg); }
.mini-screen:nth-child(2) { transform: rotate(2deg) translateY(-14px); }
.mini-screen:nth-child(3) { transform: rotate(-2deg); }
.mini-screen:nth-child(4) { transform: rotate(3deg) translateY(-14px); }
.mini-screen:nth-child(5) { transform: rotate(-3deg); }

.mini-screen-inner {
  height: 100%; border-radius: 24px; background: linear-gradient(180deg, #FAF5FF 0%, #FDF2F8 100%);
  padding: 14px 10px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.mini-screen-inner::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 16px; background: #0F172A; border-radius: 100px;
}

.mini-label {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 14px; text-align: center;
  font-family: 'Fredoka'; font-weight: 600; font-size: 0.9rem; color: var(--ink);
  pointer-events: none;
}
.mini-label small { display: block; font-family: 'Plus Jakarta Sans'; font-weight: 500; font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
/* Make sure the labels don't get clipped by the strip padding */
.screens-strip { padding-bottom: 70px; }

/* Mini-screen content patterns */
.ms-topbar { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.ms-avatar { width: 22px; height: 22px; border-radius: 7px; background: var(--grad-brand); color: white; display: grid; place-items: center; font-size: 0.55rem; font-weight: 700; }
.ms-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; background: white; border-radius: 999px; font-weight: 700; font-size: 0.55rem; box-shadow: var(--shadow-sm); }
.ms-card { padding: 10px; border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.ms-card-grad { background: var(--grad-brand); color: white; }
.ms-card-gold { background: var(--grad-gold); color: white; }
.ms-title { font-family: 'Fredoka'; font-size: 0.72rem; font-weight: 600; }
.ms-sub { font-size: 0.52rem; opacity: 0.85; margin-top: 2px; }
.ms-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: white; box-shadow: var(--shadow-sm); }
.ms-row + .ms-row { margin-top: 4px; }
.ms-row .rank { font-family: 'Fredoka'; font-size: 0.65rem; font-weight: 700; color: var(--primary); width: 12px; }
.ms-row .who { font-size: 0.55rem; font-weight: 700; color: var(--ink); flex: 1; }
.ms-row .amt { font-size: 0.55rem; font-weight: 700; color: var(--gold-dark); }
.ms-cat { display: inline-block; padding: 2px 6px; background: rgba(124,58,237,0.10); color: var(--primary); border-radius: 999px; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.ms-q { font-family: 'Fredoka'; font-weight: 600; font-size: 0.65rem; color: var(--ink); line-height: 1.15; margin-top: 4px; }
.ms-opt { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; background: var(--bg); font-size: 0.5rem; font-weight: 600; margin-top: 3px; }
.ms-opt.ok { background: rgba(16,185,129,0.14); color: #065F46; }
.ms-big-num { font-family: 'Fredoka'; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--ink); text-align: center; margin: 4px 0; }
.ms-mini-lbl { text-align: center; font-size: 0.5rem; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }
.ms-code {
  padding: 8px 10px; background: white; border-radius: 10px; box-shadow: var(--shadow-sm);
  text-align: center;
}
.ms-code .code {
  font-family: 'Fredoka'; font-weight: 700; font-size: 0.9rem; color: var(--primary); letter-spacing: 0.08em;
}
.ms-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ms-share {
  aspect-ratio: 1;
  background: white; border-radius: 8px; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-size: 0.7rem;
}

/* ---------- User dashboard visual ---------- */
.dash {
  background: white;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 60px -25px rgba(124,58,237,0.35);
  border: 1px solid rgba(124,58,237,0.06);
  position: relative;
  overflow: hidden;
}
.dash::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.20) 0%, transparent 70%);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.dash-head .who { display: flex; align-items: center; gap: 12px; }
.dash-head .who .avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-brand); color: white; display: grid; place-items: center; font-family: 'Fredoka'; font-weight: 700; font-size: 1.15rem; }
.dash-head .who h4 { font-family: 'Fredoka'; font-size: 1.1rem; }
.dash-head .who p { font-size: 0.75rem; color: var(--text-light); }
.dash-head .streak {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.15));
  color: var(--gold-dark); font-weight: 800; font-size: 0.85rem;
}
.dash-head .streak span { font-size: 1.2rem; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 720px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-stat { padding: 16px; border-radius: var(--radius); background: var(--bg); position: relative; overflow: hidden; }
.dash-stat.gold { background: linear-gradient(135deg, rgba(251,191,36,0.14), rgba(245,158,11,0.10)); }
.dash-stat.pink { background: linear-gradient(135deg, rgba(236,72,153,0.14), rgba(190,24,93,0.10)); }
.dash-stat.green { background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(5,150,105,0.10)); }
.dash-stat-lbl { font-size: 0.68rem; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.dash-stat-num { font-family: 'Fredoka'; font-weight: 700; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.dash-stat-num .delta { font-family: 'Plus Jakarta Sans'; font-size: 0.72rem; font-weight: 700; color: var(--green); margin-left: 6px; letter-spacing: -0.02em; }

.dash-chart-wrap { padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #FAFAFF 0%, #FFFFFF 100%); border: 1px solid var(--line-soft); margin-bottom: 24px; }
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-chart-head h5 { font-family: 'Fredoka'; font-size: 1rem; }
.dash-chart-head .legend { display: flex; gap: 12px; font-size: 0.72rem; color: var(--text-light); }
.dash-chart-head .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); margin-right: 6px; vertical-align: -1px; }
.dash-chart-head .legend .b::before { background: var(--gold); }
.dash-chart {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end;
  height: 160px;
}
.dash-bar { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.dash-bar .bar {
  width: 100%; max-width: 32px;
  background: var(--grad-brand);
  border-radius: 8px 8px 4px 4px;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out);
}
.dash-bar.in .bar { transform: scaleY(1); }
.dash-bar .day { font-size: 0.7rem; color: var(--text-light); font-weight: 700; }
.dash-bar .val { position: absolute; top: -22px; font-family: 'Fredoka'; font-weight: 700; font-size: 0.72rem; color: var(--primary); background: white; padding: 2px 6px; border-radius: 6px; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity 0.4s var(--ease-out) 0.5s; white-space: nowrap; }
.dash-bar.in .val { opacity: 1; }

.dash-feed { padding: 20px; border-radius: var(--radius-lg); background: var(--bg); }
.dash-feed h5 { font-family: 'Fredoka'; font-size: 1rem; margin-bottom: 12px; }
.dash-feed .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.dash-feed .item:last-child { border: 0; }
.dash-feed .item .ico { width: 32px; height: 32px; border-radius: 10px; background: white; display: grid; place-items: center; box-shadow: var(--shadow-sm); font-size: 0.9rem; }
.dash-feed .item .txt { flex: 1; font-size: 0.85rem; color: var(--ink-2); }
.dash-feed .item .txt small { display: block; color: var(--text-light); font-size: 0.72rem; margin-top: 2px; }
.dash-feed .item .amt { font-family: 'Fredoka'; font-weight: 700; font-size: 0.9rem; color: var(--gold-dark); }
.dash-feed .item .amt.neg { color: var(--pink-dark); }

/* ---------- Campaign analytics visual ---------- */
.camp-dash {
  background: white;
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 25px 50px -20px rgba(124,58,237,0.32);
  border: 1px solid rgba(124,58,237,0.06);
  position: relative;
}
.camp-dash-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; }
.camp-dash-head .brand-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-gold); display: grid; place-items: center; font-size: 1.15rem; }
.camp-dash-head h5 { font-family: 'Fredoka'; font-size: 1rem; }
.camp-dash-head p { font-size: 0.75rem; color: var(--text-light); }
.camp-dash-head .status { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(16,185,129,0.14); color: #065F46; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }

.camp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .camp-stats { grid-template-columns: repeat(2, 1fr); } }
.camp-stat { padding: 14px; border-radius: var(--radius); background: var(--bg); }
.camp-stat .lbl { font-size: 0.62rem; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.camp-stat .num { font-family: 'Fredoka'; font-weight: 700; font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.camp-stat .delta { font-size: 0.7rem; font-weight: 700; color: var(--green); }
.camp-stat .delta.neg { color: var(--pink-dark); }

.camp-chart { margin-top: 20px; padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #FAFAFF 0%, #FFFFFF 100%); border: 1px solid var(--line-soft); }
.camp-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.camp-chart-head h6 { font-family: 'Fredoka'; font-size: 0.85rem; }
.camp-chart-head span { font-size: 0.7rem; color: var(--text-light); }
.camp-chart svg { display: block; width: 100%; height: 120px; }
.camp-chart svg path.line { fill: none; stroke: url(#lineGrad); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw-line 1.6s var(--ease-out) 0.3s forwards; }
.camp-chart svg path.area { fill: url(#areaGrad); opacity: 0; animation: fade-in 1s var(--ease-out) 1.2s forwards; }
.camp-chart svg circle.marker { fill: var(--primary); r: 4; opacity: 0; animation: fade-in 0.6s var(--ease-out) 1.6s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* Scoped in-view kickers for dash sections */
.dash.in .dash-bar .bar { transform: scaleY(1); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .floating-coin { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.hidden-mobile { display: initial; }
@media (max-width: 720px) { .hidden-mobile { display: none; } }

/* ---------- Embedded mode (in-app WebView) ----------
   When the page is opened with ?embed=1, hide the marketing chrome
   so only the legal article renders inside the mobile app. */
html.embed .site-header,
html.embed .site-footer,
html.embed .nav-toggle { display: none !important; }
html.embed body { background: #FAF5FF; }
html.embed .legal { padding-top: 16px; padding-bottom: 24px; }
html.embed .legal-header { margin-bottom: 12px; }
html.embed .legal-header .eyebrow { display: none; }
html.embed .legal-header h1 { margin-top: 0; }
html.embed .legal-toc { display: none; }
html.embed .legal article { padding: 16px 18px; }
