/* Math for Kids — mathkids.yozatapps.com */
:root {
  --ink: #2b2440;
  --ink-soft: #5f5878;
  --purple: #7c4dff;
  --purple-deep: #5b21b6;
  --purple-soft: #f1eaff;
  --cream: #fffaf3;
  --card: #ffffff;
  --yellow: #ffb020;
  --teal: #0e9e8a;
  --pink: #ff5d8f;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(60, 34, 120, 0.10);
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.15; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60, 34, 120, 0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Baloo 2", sans-serif;
  font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }
.site-nav a:hover { color: var(--purple); }
.site-nav .nav-cta {
  background: var(--purple); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--purple-deep); color: #fff; }
@media (max-width: 720px) { .site-nav a:not(.nav-cta) { display: none; } }

/* hero */
.hero { overflow: hidden; background:
  radial-gradient(1200px 500px at 80% -10%, #ede4ff 0%, transparent 60%),
  radial-gradient(900px 420px at -10% 30%, #fff0d9 0%, transparent 55%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  align-items: center; padding-top: 64px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--purple); }
.hero-copy { margin: 18px 0 26px; font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.store-badge { display: inline-flex; }
.store-badge svg { height: 56px; width: auto; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; }
.hero-phone { justify-self: center; transform: rotate(2deg); }
.hero-float { position: absolute; font-size: 2rem; filter: drop-shadow(0 6px 12px rgba(60,34,120,0.2)); }
@media (max-width: 840px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-copy { margin-inline: auto; }
  .hero-badges { justify-content: center; }
  .hero-phone { transform: none; margin-top: 10px; }
}

/* trust strip */
.trust { background: var(--purple-deep); color: #fff; }
.trust .wrap { display: flex; gap: 10px 34px; flex-wrap: wrap; justify-content: center;
  padding: 14px 20px; font-weight: 800; font-size: 0.95rem; }
.trust span { opacity: 0.95; }

/* sections */
section.block { padding: 72px 0; }
.block-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.block-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.block-head p { color: var(--ink-soft); margin-top: 10px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 8px; }

/* CSS phone frame around raw app screens */
.phone { position: relative; width: min(290px, 78vw); border-radius: 44px;
  background: #1d1530; padding: 12px; box-shadow: 0 28px 60px rgba(50, 28, 110, 0.28); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; background: #1d1530; border-radius: 999px; z-index: 2; }
.phone img { border-radius: 34px; }
.phone.sm { width: min(230px, 64vw); border-radius: 36px; padding: 9px; }
.phone.sm::before { width: 66px; height: 18px; top: 16px; }
.phone.sm img { border-radius: 28px; }

/* zigzag feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 44px 0; }
.feature-row .phone { justify-self: center; }
.feature-row:nth-child(even) .phone { order: -1; }
.feature-row h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 12px; }
.feature-row p { color: var(--ink-soft); }
.feature-row ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.feature-row li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
.feature-row li::before { content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 7px; background: var(--purple-soft);
  color: var(--purple); font-weight: 800; display: grid; place-items: center; font-size: 0.85rem; }
.feature-row .f-tag { display: inline-block; background: var(--purple-soft); color: var(--purple-deep);
  font-weight: 800; font-size: 0.82rem; padding: 5px 13px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 840px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 34px 0; }
  .feature-row:nth-child(even) .phone { order: 0; }
  .feature-row li { text-align: left; }
  .feature-row ul { display: inline-block; }
}

/* screenshots rail */
.shots-rail { display: flex; gap: 18px; overflow-x: auto; padding: 10px 20px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots-rail::-webkit-scrollbar { height: 8px; }
.shots-rail::-webkit-scrollbar-thumb { background: #ddd0f5; border-radius: 4px; }
.shots-rail figure { flex: 0 0 auto; scroll-snap-align: center; margin: 0; }
.shots-rail figcaption { text-align: center; font-size: 0.85rem; font-weight: 700;
  color: var(--ink-soft); margin-top: 10px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); }
.step .num { display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; background: var(--purple-soft); color: var(--purple);
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 840px) { .steps { grid-template-columns: 1fr; } }

/* feature chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.chips span { background: var(--card); border: 2px solid var(--purple-soft);
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 0.92rem; }

/* guides */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.guide-card { background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s ease; }
.guide-card:hover { transform: translateY(-3px); }
.guide-card .g-emoji { font-size: 1.7rem; }
.guide-card h3 { font-size: 1.12rem; }
.guide-card p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.guide-card .g-more { color: var(--purple); font-weight: 800; font-size: 0.92rem; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  margin-bottom: 12px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0;
  font-family: "Baloo 2", sans-serif; font-size: 1.05rem; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px;
  font-size: 1.5rem; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff; border-radius: 28px; padding: 52px 32px; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { opacity: 0.9; margin: 12px auto 26px; max-width: 34em; }

/* footer */
.site-footer { padding: 44px 0 60px; color: var(--ink-soft); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--purple); }

/* article / guide pages */
.article { max-width: 720px; margin: 0 auto; padding: 48px 20px 20px; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 14px; }
.article .lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 30px; }
.article h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.article p, .article li { color: #47405f; }
.article ul, .article ol { padding-left: 24px; margin: 12px 0; }
.article li { margin-bottom: 8px; }
.article .tip { background: var(--purple-soft); border-radius: 16px; padding: 18px 22px;
  margin: 22px 0; font-size: 0.98rem; }
.article .tip strong { color: var(--purple-deep); }
.article img.inline-shot { width: min(300px, 70vw); margin: 26px auto; border-radius: 24px;
  box-shadow: var(--shadow); }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); padding: 20px 20px 0; max-width: 720px; margin: 0 auto; }
.crumbs a { text-decoration: none; font-weight: 700; }
.article-cta { max-width: 720px; margin: 40px auto 60px; padding: 0 20px; }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 20px 60px; }
.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.legal p { color: #47405f; }
.support-form { display: grid; gap: 14px; margin-top: 10px; }
.support-form label { font-weight: 800; font-size: 0.95rem; display: grid; gap: 6px; }
.support-form input, .support-form textarea {
  font: inherit; padding: 12px 14px; border: 2px solid #e5dcf7; border-radius: 12px;
  background: #fff; width: 100%; }
.support-form button { justify-self: start; background: var(--purple); color: #fff; border: 0;
  font: inherit; font-weight: 800; padding: 12px 26px; border-radius: 999px; cursor: pointer; }
.support-form button:hover { background: var(--purple-deep); }
