/* Education Quest website. Colours match the app. */
:root {
  --purple: #5B3FD1;
  --purple-deep: #2A1C78;
  --purple-ink: #4226C4;
  --purple-soft: #ECE8FF;
  --sky: #EEF4FF;
  --sun: #FFB347;
  --sun-ink: #3A1F00;
  --star: #FFE066;
  --ink: #16182B;
  --muted: #545B78;
  --line: #D6DDEE;
  --card: #FFFFFF;
  --good: #1E7A45;
  --maths: #2563EB;
  --verbal: #C2410C;
  --english: #15803D;
  --nvr: #9333EA;
  --radius: 22px;
  --wrap: 1120px;
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-ink); text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(238, 244, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(214, 221, 238, .7); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 12px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--purple-soft); color: var(--purple-ink); }
.nav .btn { margin-left: 6px; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--purple); color: #fff !important; font-weight: 800; text-decoration: none; border: 0; font-family: var(--body); font-size: 1rem; cursor: pointer; box-shadow: 0 6px 0 var(--purple-deep); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--purple-deep); }
.btn.sun { background: var(--sun); color: var(--sun-ink) !important; box-shadow: 0 6px 0 #C9801E; }
.btn.sun:hover { box-shadow: 0 4px 0 #C9801E; }
.btn.ghost { background: #fff; color: var(--purple-ink) !important; box-shadow: 0 6px 0 var(--line); border: 2px solid var(--line); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .95rem; box-shadow: 0 4px 0 var(--purple-deep); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 16px; background: var(--ink); color: #fff !important; text-decoration: none; line-height: 1.15; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .85; font-weight: 600; }
.store strong { font-size: 1.12rem; }
.store:hover { background: #000; }
.store.play { background: var(--purple); box-shadow: 0 6px 0 var(--purple-deep); }
.store.play:hover { background: var(--purple-ink); }
.cta .store.play { background: var(--sun); color: var(--sun-ink) !important; box-shadow: 0 6px 0 #C9801E; }
.soon { font-size: .9rem; color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 30px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .9rem; color: var(--purple-ink); margin-bottom: 18px; }
.hero h1 .hl { color: var(--purple); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: var(--star); z-index: -1; border-radius: 6px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding: 0; list-style: none; font-weight: 700; font-size: .95rem; }
.trust li::before { content: '✓'; color: var(--good); font-weight: 900; margin-right: 6px; }

.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 10px 0 30px; }
.phone { position: relative; flex: 0 0 auto; width: min(48%, 260px); border-radius: 36px; background: #fff; padding: 9px; box-shadow: 0 30px 60px -24px rgba(42, 28, 120, .45), 0 0 0 2px #E2E7F5; }
.phone img { width: 100%; height: auto; border-radius: 27px; }
.phone.one { z-index: 1; }
.phone.two { z-index: 2; margin-left: -8%; margin-top: 70px; }
.sparkle { position: absolute; width: 40px; color: var(--star); z-index: 3; }
.sparkle.a { right: 8%; top: 0; }
.sparkle.b { left: 4%; bottom: 20px; width: 28px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 420px) {
  .phone { padding: 6px; border-radius: 26px; }
  .phone img { border-radius: 20px; }
  .phone.two { margin-top: 44px; }
}

/* Sections */
section { padding: 56px 0; }
.center { text-align: center; }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 40em; margin: 0 auto 32px; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.subject { background: #fff; border-radius: var(--radius); padding: 22px; border: 2px solid var(--line); border-top: 8px solid var(--c); }
.subject .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); margin-bottom: 12px; }
.subject .ico svg { width: 26px; height: 26px; }
.subject p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .subjects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .subjects { grid-template-columns: 1fr; } }

.levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.level { background: var(--purple-soft); color: var(--purple-ink); border-radius: 999px; padding: 8px 18px; font-weight: 800; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.shot { width: 100%; height: auto; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(42, 28, 120, .45); border: 2px solid var(--line); background: #fff; max-width: 440px; margin: 0 auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan .price { font-family: var(--head); font-size: 2.4rem; font-weight: 800; line-height: 1; margin: 8px 0 0; }
.plan .per { color: var(--muted); font-weight: 700; }
.plan .note { margin-top: 10px; font-weight: 700; color: var(--good); }
.plan.best { border: 3px solid var(--purple); box-shadow: 0 20px 40px -24px rgba(91, 63, 209, .6); }
.badge { position: absolute; top: -14px; left: 22px; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.free { margin-top: 22px; background: var(--purple-soft); border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; }
.free strong { color: var(--purple-ink); }
.small-print { color: var(--muted); font-size: .9rem; margin-top: 16px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* Safety */
.safe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.safe { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 20px; }
.safe h3 { color: #fff; font-size: 1.1rem; }
.safe p { margin: 0; color: #D9D3FF; font-size: .96rem; }
.dark { background: var(--purple-deep); color: #fff; }
.dark h2 { color: #fff; }
.dark .section-lead { color: #D9D3FF; }
@media (max-width: 900px) { .safe-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .safe-grid { grid-template-columns: 1fr; } }

/* FAQ */
details { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--purple); }
details[open] summary::after { content: '–'; }
details > *:not(summary) { margin-top: 0; }
details > :last-child { padding-bottom: 16px; margin-bottom: 0; }

/* CTA */
.cta { background: linear-gradient(135deg, #7B5CFF, #4226C4); color: #fff; border-radius: 32px; padding: 44px 28px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #E4DEFF; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: var(--ink) !important; }

/* Document pages (privacy, terms, support, delete) */
.doc-hero { padding: 44px 0 10px; }
.doc-hero p { color: var(--muted); }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px clamp(20px, 4vw, 48px); margin: 18px auto 56px; max-width: 860px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.3em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--sky); font-weight: 800; }
.table-scroll { overflow-x: auto; }
.toc { background: var(--sky); border-radius: 18px; padding: 18px 22px; margin-bottom: 26px; }
.toc ol { margin: 0; columns: 2; column-gap: 30px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.callout { background: var(--purple-soft); border-radius: 18px; padding: 16px 20px; margin: 0 0 1.2em; }
.callout.warn { background: #FFF1DC; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 6px 46px; min-height: 34px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; display: grid; place-items: center; }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--sky); border-radius: 20px; padding: 20px 22px; margin-bottom: 1.4em; }
.contact-card strong { font-size: 1.15rem; }
.fill { background: #FFF3B0; border-bottom: 2px dashed #C9801E; padding: 0 3px; border-radius: 4px; }
.site-foot .fill { color: var(--ink); }
.updated { font-weight: 700; color: var(--muted); }

/* Footer */
.site-foot { background: var(--ink); color: #C9CCE0; padding: 40px 0 30px; font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.site-foot .brand { color: #fff; margin-bottom: 8px; }
.site-foot p { margin: 0 0 .4em; max-width: 34em; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
