/* Home page sections. Loaded after site.css on the home page only. */

/* Lumi's glow: a soft circle behind the transparent cutout, fading to nothing, so it blends into
   any background. (A CSS drop-shadow on the image can be clipped to the image's rectangle on
   iPhone Safari, which shows up as a box around Lumi.) */
.lumi-glow { position: relative; display: inline-block; flex: none; z-index: 0; line-height: 0; }
.lumi-glow::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: 170%; height: 170%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 216, 107, 0.75), rgba(255, 216, 107, 0.35) 45%, rgba(255, 216, 107, 0));
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-block; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin: 0 0 8px; }
[hidden] { display: none !important; }

/* Hero */
.hero2 { position: relative; background: radial-gradient(1200px 600px at 80% 10%, #7468E8 0%, transparent 60%), linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%); color: var(--white); overflow: hidden; }
.hero2-grid { display: grid; gap: 40px; align-items: center; padding: 36px 0 96px; }
.hero2-copy { text-align: center; }
.hero2 h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
.hero2 .lead { font-size: 1.2rem; color: #ECEAFF; max-width: 46ch; margin: 0 auto 24px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; margin-bottom: 18px; }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(255, 216, 107, 0.35); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.7); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.hero-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-weight: 700; font-size: 0.95rem; color: #DCD8FF; }
.hero-facts li::before { content: "\2713"; color: var(--glow); font-weight: 900; margin-right: 6px; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--white); clip-path: ellipse(70% 100% at 50% 100%); }
@media (min-width: 900px) {
  .hero2-grid { grid-template-columns: 1.05fr 0.95fr; padding: 64px 0 120px; }
  .hero2-copy { text-align: left; }
  .hero2 .lead { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
  .hero-facts { justify-content: flex-start; }
}

/* Phone mockup of the quiz screen */
.hero2-visual { position: relative; width: min(290px, 74vw); margin: 0 auto; }
.phone { position: relative; background: #0F0D2E; border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(14, 10, 60, 0.45), inset 0 0 0 2px #2D2A55; }
.island { position: absolute; top: 20px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%); background: #000; border-radius: 14px; z-index: 2; }
.screen { background: var(--bg); border-radius: 34px; overflow: hidden; color: var(--ink); }
.quiz-screen { padding: 52px 14px 16px; font-size: 13px; line-height: 1.4; }
.qs-head { display: flex; justify-content: space-between; font-weight: 800; color: var(--muted); font-size: 11px; }
.qs-bar { height: 8px; background: var(--purple-light); border-radius: 99px; margin: 8px 0 10px; overflow: hidden; }
.qs-bar i { display: block; width: 33%; height: 100%; background: var(--purple); border-radius: 99px; }
.qs-lumi { display: flex; align-items: center; gap: 8px; }
.qs-lumi img { width: 74px; height: auto; }
.qs-bubble { background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; font-weight: 800; line-height: 1.3; }
.qs-card { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; font-weight: 900; font-size: 15px; margin: 10px 0; }
.qs-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qs-answers span { background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; font-weight: 900; }
.qs-answers .sel { border-color: var(--purple); background: var(--purple-light); color: var(--purple-dark); }
.qs-submit { margin-top: 12px; background: var(--purple); color: var(--white); text-align: center; font-weight: 900; padding: 12px; border-radius: 14px; }
.chip { position: absolute; background: var(--white); color: var(--purple-dark); font-weight: 900; font-size: 0.85rem; padding: 8px 12px; border-radius: 999px; box-shadow: 0 8px 20px rgba(14, 10, 60, 0.25); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.chip.c1 { top: 10%; left: -18%; }
.chip.c2 { top: 32%; right: -20%; animation-delay: -1.5s; }
.chip.c3 { bottom: 28%; left: -22%; animation-delay: -3s; }
.chip.c4 { bottom: 9%; right: -16%; animation-delay: -4.5s; }
.chip.c5 { top: -3%; right: 4%; animation-delay: -2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* Phones: a narrower mockup leaves room in the gutters, so the chips sit on the bezel instead of covering the quiz. */
@media (max-width: 480px) {
  .hero2-visual { width: min(250px, 66vw); }
  .chip { font-size: 0.72rem; padding: 6px 9px; }
  .chip.c1, .chip.c3 { left: -22%; }
  .chip.c2, .chip.c4 { right: -22%; }
  .chip.c4 { bottom: -3%; }
  .chip.c3 { display: none; }
}
@media (max-width: 360px) { .chip.c2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } .btn:hover { transform: none; } }

/* Proof strip */
.strip { background: var(--white); padding: 8px 0 40px; }
.strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: center; }
.strip-grid div { background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 8px; }
.strip-grid strong { display: block; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; color: var(--purple); line-height: 1.1; }
.strip-grid span { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
@media (min-width: 760px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }

/* Problem */
.pain { border-top: 5px solid #F87171; }
.pain .quote { font-weight: 900; font-size: 1.25rem; color: var(--purple-dark); margin-bottom: 8px; }
.pain p:last-child { color: var(--muted); margin: 0; }
.turn { text-align: center; font-size: 1.25rem; font-weight: 700; max-width: 40ch; margin: 32px auto 0; }
.turn strong { color: var(--purple); }

/* Steps with mini phones */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.step2 { display: grid; gap: 18px; align-items: center; background: var(--bg); border: 1.5px solid var(--line); border-radius: 24px; padding: 22px; }
.step2 h3 { margin-top: 8px; }
.step2 p { color: var(--muted); margin: 0; }
.step2 .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: var(--white); font-weight: 900; }
@media (min-width: 760px) { .step2 { grid-template-columns: 220px 1fr; padding: 26px 32px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } .step2 { grid-template-columns: 1fr; text-align: center; align-content: start; } }
.mini-phone { width: 200px; margin: 0 auto; background: #0F0D2E; border-radius: 30px; padding: 8px; box-shadow: 0 16px 34px rgba(14, 10, 60, 0.25); }
.mp-screen { border-radius: 24px; min-height: 260px; padding: 22px 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 12px; line-height: 1.4; }
.mp-screen.setup { background: var(--bg); align-items: stretch; text-align: left; justify-content: flex-start; }
.mp-title { font-weight: 900; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 6px 0; }
.mp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mp-pills span { background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 9px; font-weight: 800; color: var(--purple); }
.mp-pills .on { background: var(--purple); color: var(--white); border-color: var(--purple); }
.mp-cta { margin-top: auto; background: var(--purple); color: var(--white); font-weight: 900; text-align: center; padding: 10px; border-radius: 12px; }
.mp-screen.shield { background: linear-gradient(180deg, #2B2850, #15132B); color: var(--white); }
.mp-screen.shield img { width: 64px; height: 64px; }
.mp-screen.shield .lumi-glow { margin-bottom: 10px; }
.sh-title { font-weight: 900; font-size: 15px; margin: 0 0 6px; }
.sh-sub { color: #C9C6EE; font-size: 11px; margin: 0 0 14px; }
.sh-btn { background: rgba(255, 255, 255, 0.92); color: var(--purple-dark); border-radius: 12px; padding: 8px 32px; font-weight: 900; }
.mp-screen.reward { background: #F0FDF4; }
.mp-screen.reward img { width: 96px; height: auto; }
.rw-bubble { background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 10px; font-weight: 900; margin: 8px 0; }
.rw-badge { background: var(--white); border: 2px solid #22C55E; color: #14532D; font-weight: 900; border-radius: 12px; padding: 7px 12px; }

/* Interactive demo */
.demo2 { background: var(--white); border: 1.5px solid var(--line); border-radius: 28px; padding: 18px; max-width: 860px; margin: 0 auto; box-shadow: 0 24px 50px rgba(91, 79, 207, 0.12); overflow: hidden; }
.grade-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: 999px; padding: 5px; margin-bottom: 18px; overflow-x: auto; }
.grade-tabs button { flex: 1; font: inherit; font-weight: 800; border: 0; background: transparent; color: var(--purple); padding: 10px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.grade-tabs button[aria-pressed="true"] { background: var(--purple); color: var(--white); }
/* Small phones: four tabs do not fit on one line, so show a 2 by 2 grid instead of a hidden scroll. */
@media (max-width: 400px) { .grade-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; } }
.demo-body { display: grid; gap: 16px; }
@media (min-width: 760px) { .demo-body { grid-template-columns: 200px 1fr; align-items: start; } }
.demo-lumi { --glow: 0.3; display: flex; align-items: center; gap: 12px; }
@media (min-width: 760px) { .demo-lumi { flex-direction: column; text-align: center; padding-top: 6px; } }
.demo-lumi img { width: 88px; height: auto; }
/* Lumi glows brighter with each right answer (demo.js sets --glow on .demo-lumi). */
.lumi-glow-live::before { opacity: calc(0.35 + 0.65 * var(--glow)); transition: opacity 0.4s ease; }
@media (min-width: 760px) { .demo-lumi img { width: 140px; } }
.demo-lumi.is-celebrating img { animation: hop 0.6s ease; }
.demo-lumi.is-oops img { animation: wobble 0.5s ease; }
@keyframes hop { 30% { transform: translateY(-14px) scale(1.04); } 60% { transform: translateY(0); } }
@keyframes wobble { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.demo-bubble { background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 14px; font-weight: 900; margin: 0; }
.demo-progress { height: 10px; background: var(--purple-light); border-radius: 99px; overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), #8B7FF0); border-radius: 99px; transition: width 0.4s ease; }
.demo-meta { display: flex; justify-content: space-between; color: var(--muted); font-weight: 800; font-size: 0.92rem; margin: 10px 0 6px; }
.demo-meta span:first-child { color: var(--purple); }
.demo-q { font-weight: 900; font-size: 1.3rem; line-height: 1.3; margin: 0 0 14px; }
.demo-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-answers button { font: inherit; font-weight: 800; background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: 14px; padding: 14px 10px; min-height: 56px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.demo-answers button:hover:not(:disabled) { border-color: var(--purple); background: var(--purple-light); }
.demo-answers button:disabled { cursor: default; opacity: 1; }
.demo-answers button.right { background: #D1FAE5; border-color: #22C55E; color: #14532D; }
.demo-answers button.wrong { background: #FEE2E2; border-color: #F87171; color: #991B1B; }
.demo-why { border-radius: 14px; padding: 14px; margin-top: 14px; }
.demo-why.good { background: #F0FDF4; border: 1.5px solid #86EFAC; }
.demo-why.learn { background: #FFFBEB; border: 1.5px solid #FDE68A; }
.demo-why.good strong { color: #15803D; }
.demo-why.learn strong { color: #92400E; }
.demo-next { margin-top: 14px; width: 100%; }
.demo-reward { text-align: center; padding: 12px 6px 6px; }
.demo-reward img { width: 150px; height: auto; animation: hop 0.8s ease; }
.demo-reward-title { font-size: 1.6rem; font-weight: 900; color: var(--purple-dark); margin: 10px 0 6px; }
.demo-noscript { text-align: center; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .demo-lumi img, .demo-reward img { animation: none !important; transition: none; } }

/* Comparison table */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; }
.cmp th, .cmp td { padding: 14px 12px; border-bottom: 1px solid #EEEBFF; text-align: center; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { background: var(--bg); font-weight: 900; font-size: 0.9rem; color: var(--muted); }
.cmp thead th:last-child { background: var(--purple); color: var(--white); }
.cmp tbody th { text-align: left; font-weight: 700; }
.cmp td:last-child { background: #F7F6FF; }
.cmp .yes, .cmp .no { font-weight: 900; white-space: nowrap; }
.cmp .yes { color: var(--green); }
.cmp .yes::before { content: "\2713\00A0"; }
.cmp .no { color: #9CA3AF; }
@media (max-width: 520px) { .cmp th, .cmp td { padding: 12px 8px; font-size: 0.88rem; } }

/* Meet Lumi */
.lumi-row { display: flex; justify-content: center; align-items: flex-end; gap: 4px; padding: 20px 0; background: radial-gradient(closest-side, rgba(255, 224, 122, 0.5), transparent); }
.lumi-row img { height: clamp(80px, 30vw, 130px); width: auto; }
@media (min-width: 760px) { .lumi-row img { height: 180px; } }

/* Parent features */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg); border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; }
.feature p { color: var(--muted); margin: 0; }
.f-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line); font-size: 1.5rem; margin-bottom: 10px; }

/* Privacy promise */
.promise { background: var(--purple-dark); color: var(--white); border-radius: 28px; padding: 32px 24px; text-align: center; }
.promise ul { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 12px; }
@media (min-width: 760px) { .promise ul { grid-template-columns: repeat(4, 1fr); } }
.promise li { background: rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 14px; color: #D9D6FF; }
.promise li strong { display: block; color: var(--glow); font-size: 1.1rem; }
.promise a { color: var(--white); font-weight: 800; }

/* Final CTA */
.cta2 img { width: 130px; height: auto; }
.cta2 .lumi-glow { margin-bottom: 8px; }
/* Keep Lumi's glow inside the rounded card. */
.cta2 { overflow: hidden; }
.cta-row.center { justify-content: center; }
/* site.css sets ".cta a" to white, which would hide the white button's label */
.cta .btn { color: var(--purple-dark); }

/* See it in action: real screenshots in iPhone frames */
.see { background: radial-gradient(900px 500px at 50% 0%, #7468E8 0%, transparent 70%), linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%); color: var(--white); }
.see .eyebrow { color: var(--glow); }
.see .section-title p { color: #E3E0FF; }
.see-video { max-width: 320px; margin: 0 auto 36px; background: #0F0D2E; border-radius: 40px; padding: 10px; box-shadow: 0 30px 60px rgba(14, 10, 60, 0.45), inset 0 0 0 2px #2D2A55; }
.see-video video { display: block; width: 100%; height: auto; border-radius: 30px; background: #000; }
.shots { list-style: none; margin: 0; padding: 4px 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 240px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.shots li { scroll-snap-align: start; text-align: center; }
.shots h3 { margin: 16px 0 4px; font-size: 1.1rem; color: var(--white); }
.shots p { margin: 0; color: #DCD8FF; font-size: 0.95rem; }
.shot-phone { background: #0F0D2E; border-radius: 36px; padding: 8px; box-shadow: 0 20px 40px rgba(14, 10, 60, 0.45), inset 0 0 0 2px #2D2A55; }
.shot-phone img { display: block; width: 100%; height: auto; aspect-ratio: 590 / 1278; object-fit: cover; border-radius: 28px; background: var(--bg); }
@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 920px; margin-inline: auto; overflow: visible; }
}

/* Launch list form */
.notify { max-width: 520px; margin: 8px auto 0; }
.notify-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.notify-row input { flex: 1 1 240px; min-width: 0; min-height: 56px; padding: 0 18px; border-radius: 16px; border: 2px solid transparent; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--white); }
.notify-row input:focus-visible { border-color: var(--glow); outline: none; }
.notify-row .btn { flex: 0 0 auto; cursor: pointer; }
.notify-row .btn:disabled { opacity: 0.7; cursor: default; }
.notify-check { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-weight: 700; color: #E9E6FF; cursor: pointer; }
.notify-check span { text-align: left; }
.notify-check input { width: 22px; height: 22px; accent-color: var(--glow); flex: none; }
.notify-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 800; }
.notify-msg.ok { color: var(--glow); font-size: 1.1rem; }
.notify-msg.error { color: #FFD1D1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta .note a { text-decoration: underline; }
