/* LearnThenPlay marketing site. No frameworks, no scripts, no web fonts. */
:root {
  --purple: #5B4FCF;
  --purple-dark: #1E1B4B;
  --purple-deep: #4338B8;
  --purple-light: #E0E7FF;
  --bg: #F6F5FF;
  --ink: #1A1A2E;
  --muted: #55607A;
  --line: #DDDAFF;
  --glow: #FFD86B;
  --green: #15803D;
  --white: #FFFFFF;
  --radius: 20px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--purple); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 520px) { .nav .wide-only { display: none; } .brand { font-size: 1.1rem; } }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); color: var(--white); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; gap: 12px; align-items: center; padding: 28px 0 56px; text-align: center; }
.hero p.lead { font-size: 1.2rem; color: #E9E6FF; max-width: 34ch; margin-inline: auto; }
.hero-art { position: relative; width: min(210px, 56vw); margin: 20px auto 0; }
.hero-art::before {
  content: ""; position: absolute; left: 42%; top: 29%; width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side, rgba(255, 244, 190, 0.95) 0%, rgba(255, 224, 122, 0.55) 38%, rgba(255, 216, 107, 0.18) 68%, rgba(255, 216, 107, 0) 100%);
  border-radius: 50%;
}
.hero-art img { position: relative; animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; text-align: left; padding: 56px 0 72px; }
  .hero p.lead { margin-inline: 0; }
  .hero-art { width: 340px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px; border-radius: 16px;
  font: inherit; font-weight: 900; font-size: 1.05rem; text-decoration: none;
  background: var(--white); color: var(--purple-dark); border: 0;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}
.btn.soon { cursor: default; }
.btn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(255, 216, 107, 0.35); }
.btn.purple { background: var(--purple); color: var(--white); }
.note { font-size: 0.92rem; color: #D9D5FF; margin-top: 14px; }

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.cards { display: grid; gap: 18px; }
@media (min-width: 820px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step { text-align: center; }
.step img { height: 150px; width: auto; margin: 0 auto 12px; }
.step .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--purple); color: var(--white); font-weight: 900; margin-bottom: 10px;
}
.step p { color: var(--muted); margin: 0; }

.alt { background: var(--white); border-block: 1.5px solid var(--line); }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #DCFCE7; color: var(--green); font-weight: 900; display: grid; place-items: center; font-size: 0.9rem;
}

/* Quiz demo card */
.demo { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 420px; margin-inline: auto; }
.demo .q { background: var(--white); border-radius: 14px; padding: 16px; font-weight: 800; font-size: 1.15rem; border: 1.5px solid var(--line); }
.demo .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.demo .a { background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; font-weight: 800; }
.demo .a.wrong { background: #FEE2E2; border-color: #F87171; color: #991B1B; }
.demo .a.right { background: #D1FAE5; border-color: #4ADE80; color: #14532D; }
.demo .lumi-says { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.demo .lumi-says img { height: 86px; width: auto; flex: none; }
.demo .bubble { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 800; }
.demo .why { background: #FFFBEB; border: 1.5px solid #FDE68A; border-radius: 14px; padding: 14px; margin-top: 12px; }
.demo .why strong { color: #92400E; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 900; color: var(--purple); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

/* CTA band */
.cta { background: var(--purple); color: var(--white); text-align: center; border-radius: 28px; padding: 40px 24px; }
.cta p { color: #E9E6FF; }
.cta a { color: var(--white); }

/* Legal and support pages */
.page { padding: 40px 0 64px; }
.page h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.page h2 { font-size: 1.45rem; margin-top: 1.8em; }
.page h3 { margin-top: 1.4em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.draft {
  background: #FFFBEB; border: 2px solid #F59E0B; border-radius: 16px; padding: 16px 20px; margin: 0 0 28px; color: #78350F;
}
.draft strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.todo { background: #FEF3C7; border-radius: 6px; padding: 1px 6px; color: #78350F; font-weight: 700; }
.updated { color: var(--muted); font-size: 0.95rem; }
.contact-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.contact-card a { font-weight: 900; font-size: 1.2rem; word-break: break-word; }

/* Footer */
.site-footer { background: var(--purple-dark); color: #C7C3F5; padding: 32px 0; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 14px; text-align: center; }
.site-footer nav { display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: var(--white); padding: 8px 2px; display: inline-block; }
.site-footer small { color: #A5A0E0; }

/* 404 */
.lost { height: 180px; width: auto; margin: 0 auto 12px; }
.contact-card .btn { font-size: 1.05rem; margin-top: 8px; }
