/* FamilyGame — Marketing site styles
   Brand: playful family product. Fraunces (display) + Nunito (body). */

:root {
  --purple: #7C5CFF;
  --purple-dark: #5B3FD9;
  --purple-soft: #EFEAFF;
  --coral: #FF6B6B;
  --coral-soft: #FFE5E5;
  --sun: #FFC93C;
  --sun-soft: #FFF3CC;
  --mint: #5BC893;
  --mint-soft: #DCF5E8;
  --sky: #5DA9FF;
  --sky-soft: #DDECFF;
  --heart: #FF4D6D;
  --pink: #FF8FB1;

  --bg: #FFF8F0;
  --bg-alt: #FFFFFF;
  --ink: #1A1B2E;
  --ink-soft: #5A5C7A;
  --ink-faint: #9598B5;
  --line: #EDE7DC;

  --display: "Fraunces", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;

  --shadow-card: 0 4px 16px rgba(31,28,80,0.07), 0 1px 3px rgba(31,28,80,0.05);
  --shadow-pop: 0 18px 44px rgba(31,28,80,0.16), 0 4px 10px rgba(31,28,80,0.08);
  --shadow-soft: 0 2px 8px rgba(31,28,80,0.06);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
section { position: relative; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple); background: var(--purple-soft);
  padding: 7px 14px; border-radius: 999px;
}
.section-pad { padding: 96px 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 800; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(124,92,255,.35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(124,92,255,.45); transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 20px rgba(255,201,60,.4); }
.btn-sun:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); background: rgba(255,248,240,.82);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(31,28,80,.05); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 900; font-size: 21px; }
.brand .logo-badge {
  width: 42px; height: 42px; border-radius: 13px; background: var(--purple);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(124,92,255,.3);
}
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a {
  font-weight: 700; font-size: 15px; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 10px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--purple-soft); color: var(--purple); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ── Hero ── */
.hero { padding: 56px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); }
.hero h1 .hl { color: var(--purple); position: relative; white-space: nowrap; }
.hero h1 .hl-underline { display: inline; background: linear-gradient(transparent 62%, var(--sun-soft) 62%); }
.hero-sub { font-size: 19px; color: var(--ink-soft); margin-top: 22px; max-width: 520px; font-weight: 500; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-faint); font-weight: 600; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stats .stat .num { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--ink); }
.hero-stats .stat .lbl { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

.hero-art { position: relative; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; z-index: 0; }

/* ── Phone mock ── */
.phone {
  position: relative; z-index: 2; width: 290px; height: 590px;
  background: #1A1B2E; border-radius: 44px; padding: 11px;
  box-shadow: var(--shadow-pop); flex-shrink: 0;
}
.phone-screen { width: 100%; height: 100%; background: var(--bg); border-radius: 34px; overflow: hidden; position: relative; }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #1A1B2E; border-radius: 99px; z-index: 5; }
.ps-head { padding: 40px 20px 0; display: flex; align-items: center; gap: 11px; }
.ps-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#FFC93C,#FF9F1C); display: grid; place-items: center; font-size: 22px; border: 2px solid #fff; }
.ps-hero { margin: 16px 20px 0; border-radius: 22px; padding: 16px; background: linear-gradient(135deg,#7C5CFF,#B89CFF); color: #fff; position: relative; overflow: hidden; }
.ps-card { margin: 12px 20px 0; background: #fff; border-radius: 18px; padding: 13px; box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 11px; }
.ps-chip { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }

.floaty { position: absolute; z-index: 3; background: #fff; border-radius: 18px; box-shadow: var(--shadow-pop); padding: 13px 16px; display: flex; align-items: center; gap: 11px; }
.floaty .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.floaty .ft { font-weight: 800; font-size: 14px; }
.floaty .fs { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.floaty.f1 { top: 56px; left: -24px; animation: float 4s ease-in-out infinite; }
.floaty.f2 { bottom: 132px; right: -30px; animation: float 4s ease-in-out infinite .8s; }
.floaty.f3 { bottom: 38px; left: 0px; animation: float 4s ease-in-out infinite 1.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Trust bar ── */
.trust { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.trust-items { display: flex; gap: 36px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink-soft); font-size: 15px; }

/* ── Section heading ── */
.sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 4vw, 46px); margin-top: 16px; }
.sec-head p { font-size: 18px; color: var(--ink-soft); margin-top: 16px; font-weight: 500; }

/* ── Steps (como funciona) ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step { background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px 22px; box-shadow: var(--shadow-card); position: relative; }
.step-num { position: absolute; top: -14px; left: 24px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 18px; color: #fff; box-shadow: var(--shadow-soft); }
.step-ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; margin: 10px 0 16px; }
.step h3 { font-size: 20px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; font-weight: 500; }
.step-arrow { position: absolute; top: 50%; right: -22px; transform: translateY(-50%); color: var(--line); z-index: 1; }

/* ── Features grid ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.feature .fic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 21px; }
.feature p { font-size: 15px; color: var(--ink-soft); margin-top: 9px; font-weight: 500; }

/* big feature variant (span) */
.feature.wide { grid-column: span 2; display: flex; gap: 26px; align-items: center; }
.feature.wide .fic { margin-bottom: 0; }

/* ── Education pillars ── */
.edu { background: var(--ink); color: #fff; border-radius: 40px; padding: 64px 56px; position: relative; overflow: hidden; }
.edu-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .4; }
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; position: relative; z-index: 1; }
.pillar .pic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(255,255,255,.08); }
.pillar h3 { font-size: 19px; color: #fff; }
.pillar p { font-size: 14.5px; color: #A4A8C8; margin-top: 8px; font-weight: 500; }

/* ── Two apps ── */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card { border-radius: var(--r-xl); padding: 40px; position: relative; overflow: hidden; }
.app-card.child { background: linear-gradient(150deg, var(--sun-soft), #FFE9CC); }
.app-card.parent { background: linear-gradient(150deg, var(--purple-soft), #E3DBFF); }
.app-card .badge2 { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.7); }
.app-card h3 { font-size: 28px; margin-top: 18px; }
.app-card p { font-size: 15.5px; color: var(--ink-soft); margin-top: 12px; font-weight: 500; }
.app-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.app-list li { list-style: none; display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15px; }
.app-list .chk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }

/* ── Testimonials ── */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); }
.tcard .stars { display: flex; gap: 3px; margin-bottom: 14px; }
.tcard q { font-size: 16px; font-weight: 600; line-height: 1.55; display: block; quotes: none; }
.tcard q::before, .tcard q::after { content: ''; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tcard .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.tcard .who .nm { font-weight: 800; font-size: 14.5px; }
.tcard .who .rl { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }

/* ── Pricing ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--bg-alt); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-card); border: 2px solid transparent; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--purple); box-shadow: var(--shadow-pop); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--purple); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 14px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 22px; }
.plan .price { font-family: var(--display); font-weight: 900; font-size: 44px; margin: 14px 0 2px; }
.plan .price small { font-size: 16px; color: var(--ink-faint); font-weight: 700; font-family: var(--body); }
.plan .pdesc { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.plan ul li svg { flex-shrink: 0; margin-top: 2px; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; padding: 24px 4px; display: flex; align-items: center; gap: 16px; text-align: left; font-family: var(--body); font-weight: 800; font-size: 18px; color: var(--ink); }
.faq-q .qic { margin-left: auto; flex-shrink: 0; transition: transform .25s; color: var(--purple); }
.faq-item.open .faq-q .qic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 24px; font-size: 16px; color: var(--ink-soft); font-weight: 500; }

/* ── CTA final ── */
.cta-final { text-align: center; background: linear-gradient(140deg, var(--purple), var(--purple-dark)); border-radius: 40px; padding: 72px 40px; color: #fff; position: relative; overflow: hidden; }
.cta-final h2 { font-size: clamp(34px, 4.5vw, 52px); color: #fff; max-width: 680px; margin: 0 auto; }
.cta-final p { font-size: 19px; color: rgba(255,255,255,.85); margin: 20px auto 0; max-width: 520px; font-weight: 500; }
.cta-final .hero-cta { justify-content: center; }
.cta-spark { position: absolute; opacity: .5; }

/* ── Footer ── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { margin-bottom: 16px; }
.footer-col h4 { font-family: var(--body); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 16px; }
.footer-col a { display: block; font-weight: 600; font-size: 15px; color: var(--ink-soft); padding: 6px 0; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-faint); font-weight: 600; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; }
.footer-social a:hover { background: var(--purple-soft); }

/* ── Confetti dots ── */
.confetti-dot { position: absolute; border-radius: 2px; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floaty { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .step-arrow { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .edu-grid { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr; }
  .testi { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--bg-alt); padding: 16px; gap: 6px; box-shadow: var(--shadow-card); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { font-size: 17px; padding: 12px 14px; }
  .section-pad { padding: 64px 0; }
  .hero-stats { gap: 22px; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .edu { padding: 44px 26px; border-radius: 28px; }
  .edu-grid { grid-template-columns: 1fr; }
  .app-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-final { padding: 52px 24px; border-radius: 28px; }
}
