/* nocod.dev landing pages (/, /teachers/). Theme colours come from theme.css and brand.css. */
/* No caret, text highlight or tap flash where people click (house rule, see CLAUDE.md). */
html, body, div, p, span, h1, h2, h3, h4, small, label, button, svg, a, li, ul, section, header, footer, nav, article, strong, em { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; caret-color: transparent; }
* { -webkit-tap-highlight-color: transparent; }
button:focus, a:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

html { scroll-behavior: smooth; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
a { text-decoration: none; }
img { display: block; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: .93rem; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top .btn { padding: 9px 20px; font-size: .9rem; }
@media (max-width: 720px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; box-shadow: 0 8px 22px -10px rgba(58, 43, 208, .65); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(58, 43, 208, .75); }
.btn.secondary { box-shadow: none; background: var(--card); }
.btn.secondary:hover { box-shadow: 0 6px 18px -10px rgba(58, 43, 208, .35); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 380px at 88% 10%, color-mix(in srgb, var(--grad-from) 22%, transparent), transparent 70%),
              radial-gradient(560px 360px at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: var(--soft);
  color: var(--violet); font-weight: 700; font-size: .8rem; letter-spacing: .02em; border: 1px solid var(--line); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.07; letter-spacing: -0.03em; margin: 20px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .hero h1 em { background: linear-gradient(135deg, #a99cff, #7a6bff); -webkit-background-clip: text; background-clip: text; } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--violet); flex: none; }

/* hero side: a stack of app cards (icon, name, one line) */
.stack { display: grid; gap: 14px; }
.mini { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); box-shadow: 0 18px 36px -26px rgba(28, 17, 101, .45); transition: transform .18s, box-shadow .18s, border-color .18s; }
.mini:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); box-shadow: 0 22px 40px -24px rgba(58, 43, 208, .55); }
.mini img { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: 0 8px 16px -8px rgba(28, 17, 101, .6); }
.mini div { flex: 1; min-width: 0; }
.mini b { display: block; font-size: 1rem; letter-spacing: -0.01em; }
.mini small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.mini .go { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.mini .go svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .stack { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ---------- sections ---------- */
section.block { padding: 84px 0; }
.head { max-width: 640px; margin-bottom: 40px; }
.kicker { color: var(--violet); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 12px; }
.head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.group { display: flex; align-items: center; gap: 12px; margin: 38px 0 16px; color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.group:first-of-type { margin-top: 0; }

.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.apps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .apps.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .apps, .apps.three { grid-template-columns: 1fr; } }
.app { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.app:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); box-shadow: 0 24px 40px -28px rgba(58, 43, 208, .55); }
.app .row { display: flex; align-items: center; gap: 16px; }
.app .row img { width: 64px; height: 64px; border-radius: 17px; flex: none; box-shadow: 0 8px 18px -8px rgba(28, 17, 101, .55); }
.app h3 { margin: 0; font-size: 1.22rem; letter-spacing: -0.01em; }
.app .tamil { color: var(--muted); font-weight: 600; font-size: .95rem; margin-left: 4px; }
.chip { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: var(--pill); background: var(--soft); color: var(--violet); font-size: .76rem; font-weight: 700; }
.app p { margin: 0; color: var(--muted); }
.app ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .93rem; }
.app li { display: flex; gap: 10px; align-items: baseline; }
.app li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.app .open { margin-top: auto; padding-top: 4px; color: var(--violet); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.app .open svg { width: 16px; height: 16px; transition: transform .18s; }
.app:hover .open svg { transform: translateX(3px); }

/* ---------- how it works ---------- */
.how { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--violet); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- teachers ---------- */
.teachers { padding: 84px 0; }
.panel { position: relative; overflow: hidden; border-radius: 32px; background: var(--grad); color: #fff; padding: 56px; }
.panel::before { content: ''; position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; right: -160px; top: -220px; background: rgba(255,255,255,.07); }
.panel::after { content: ''; position: absolute; width: 380px; aspect-ratio: 1; border-radius: 50%; left: -140px; bottom: -240px; border: 1px solid rgba(255,255,255,.14); }
.panel > * { position: relative; z-index: 1; }
.panel .kicker { color: #cec6ff; }
.panel h2, .panel h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 14px; max-width: 700px; }
.panel > p { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 660px; margin: 0 0 36px; }
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .subjects { grid-template-columns: 1fr; } .panel { padding: 40px 24px; border-radius: 24px; } }
.subject { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16); color: #fff; transition: background .18s, transform .18s; }
.subject:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.subject img { width: 60px; height: 60px; border-radius: 16px; flex: none; box-shadow: 0 10px 20px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.2); }
.subject h3 { margin: 0 0 2px; font-size: 1.12rem; }
.subject small { color: rgba(255,255,255,.72); font-size: .85rem; line-height: 1.4; display: block; }
.access { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.access p { margin: 0; display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.9); font-weight: 600; }
.access p svg { width: 22px; height: 22px; flex: none; color: #f5b242; }
.btn.light { background: #fff; color: var(--grad-mid); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
footer .brand { font-size: 1rem; }
footer .brand img { width: 28px; height: 28px; border-radius: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--text); }
footer .legal { flex-basis: 100%; font-size: .8rem; opacity: .85; margin: 0; }

/* ---------- teachers page ---------- */
.teachers.page { padding: 56px 0 84px; }
.nav-on { color: var(--text) !important; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- kids (drawings from the stories cast, SchoolLearning/stories/public/characters) ---------- */
.hero { padding-bottom: 0; }
.parade { position: relative; margin-top: 56px; height: 190px; }
.parade .hill { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; fill: var(--soft); }
.parade .kids { position: relative; z-index: 1; height: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; display: flex; justify-content: space-between; align-items: flex-end; }
.parade .kids img { height: 150px; width: auto; margin-bottom: 18px; transform-origin: 50% 100%; transition: transform .25s; }
.parade .kids img:nth-child(odd) { height: 138px; margin-bottom: 26px; }
.parade .kids img:nth-child(3n) { margin-bottom: 12px; }
.parade .kids img:hover { transform: translateY(-8px) rotate(-3deg); }
@media (max-width: 900px) { .parade { height: 150px; margin-top: 40px; } .parade .kids img, .parade .kids img:nth-child(odd) { height: 108px; }
  .parade .kids img:nth-child(n+8) { display: none; } }
@media (max-width: 560px) { .parade .kids img:nth-child(n+6) { display: none; } .parade .kids img, .parade .kids img:nth-child(odd) { height: 96px; } }
#apps { background: var(--soft); padding-top: 64px; }
@media (prefers-color-scheme: dark) { #apps { background: var(--bg); } .parade .hill { fill: var(--bg); } }

/* little stars and dots in the hero (amber / pink accents only) */
.hero { isolation: isolate; }
.deco { position: absolute; z-index: -1; pointer-events: none; }
.deco.d1 { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); opacity: .55; left: 4%; top: 22%; }
.deco.d2 { width: 22px; height: 22px; left: 47%; top: 12%; background: #f5b242; clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); opacity: .8; }
.deco.d3 { width: 10px; height: 10px; border-radius: 50%; background: var(--violet-light); opacity: .5; left: 44%; top: 62%; }
.deco.d4 { width: 16px; height: 16px; right: 3%; top: 8%; background: var(--accent); clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); opacity: .6; }

/* a kid in the corner of each app card */
.app { position: relative; overflow: hidden; }
.app .kid { position: absolute; right: 14px; bottom: -14px; height: 118px; width: auto; transition: transform .25s; pointer-events: none; }
.app:hover .kid { transform: translateY(-6px) rotate(-3deg); }
.apps.three .app .kid { height: 104px; }

/* closing band */
.closing { padding: 84px 0; }
.band { position: relative; overflow: hidden; border-radius: 32px; background: var(--grad); color: #fff; padding: 52px 56px 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: end; }
.band::before { content: ''; position: absolute; width: 460px; aspect-ratio: 1; border-radius: 50%; right: -120px; top: -200px; background: rgba(255,255,255,.07); }
.band > * { position: relative; }
.band-text { padding-bottom: 52px; }
.band h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.band p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin: 0 0 28px; }
.band-kids { display: flex; justify-content: center; align-items: flex-end; gap: 4px; }
.band-kids img { height: 200px; width: auto; margin-bottom: -10px; }
.band-kids img:nth-child(2) { height: 230px; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 40px 24px 0; border-radius: 24px; } .band-text { padding-bottom: 8px; } .band-kids img { height: 140px; } .band-kids img:nth-child(2) { height: 160px; } }

/* ---------- featured: the two maths apps ---------- */
.mini.star { align-items: flex-start; padding: 22px; box-shadow: 0 28px 50px -28px rgba(58, 43, 208, .6), 0 2px 6px -2px rgba(28, 17, 101, .08); }
.mini.star img { width: 68px; height: 68px; border-radius: 18px; }
.mini.star b { font-size: 1.22rem; margin-top: 2px; }
.mini.star small { font-size: .93rem; margin: 4px 0 10px; }
.mini.star em { font-style: normal; margin: 0; }
.mini.star .go { width: 38px; height: 38px; background: var(--grad); color: #fff; align-self: center; }
.mini.star .go svg { width: 17px; height: 17px; }
.pick { display: inline-block; padding: 2px 10px; border-radius: var(--pill); background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.also > span { color: var(--muted); font-weight: 700; font-size: .82rem; margin-right: 2px; }
.pill-app { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .88rem; transition: border-color .18s, transform .18s; }
.pill-app:hover { border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); transform: translateY(-1px); }
.pill-app img { width: 34px; height: 34px; border-radius: 50%; }

.app { padding: 0 0 30px; box-shadow: 0 30px 60px -38px rgba(58, 43, 208, .65); }
.app > :not(.row):not(.kid) { margin-left: 30px; margin-right: 30px; }
.app .row { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 26px 30px; margin-bottom: 8px; }
.app .row::after { content: ''; position: absolute; width: 220px; aspect-ratio: 1; border-radius: 50%; right: -60px; top: -110px; background: rgba(255,255,255,.08); }
.app .row img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 0 0 3px rgba(255,255,255,.22), 0 12px 22px -10px rgba(0,0,0,.45); }
.app h3 { font-size: 1.45rem; }
.app .chip { background: rgba(255,255,255,.18); color: #fff; }
.app .kid { height: 150px; }
.app .open.btn { align-self: flex-start; color: #fff; padding: 11px 22px; margin-top: auto; }
.app .open.btn svg { width: 16px; height: 16px; }
.also > span { flex-basis: 100%; margin: 4px 0 0 4px; }

/* ---------- how it works: bento cards ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.b { position: relative; overflow: hidden; border-radius: 26px; padding: 30px; background: var(--bg); border: 1px solid var(--line); min-height: 300px; display: flex; flex-direction: column; }
.b h3 { margin: 18px 0 8px; font-size: 1.3rem; letter-spacing: -0.01em; }
.b p { margin: 0; color: var(--muted); max-width: 420px; }
.b-ic { width: 50px; height: 50px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(58, 43, 208, .7); }
.b-ic svg { width: 24px; height: 24px; }
.b-play, .b-device { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 20px; }
.b-text { flex: 1; display: flex; flex-direction: column; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .b-play, .b-device { grid-column: auto; } }

/* play: reward chips + a cheering kid */
.b-play { background: linear-gradient(135deg, color-mix(in srgb, #f5b242 16%, var(--bg)), var(--bg) 60%); }
.rewards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.r { padding: 8px 14px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: .9rem; box-shadow: 0 8px 18px -12px rgba(28, 17, 101, .5); }
.r.coin { transform: rotate(-3deg); } .r.best { transform: rotate(2deg); }
.b-kid { height: 240px; width: auto; align-self: flex-end; margin: 0 10px -40px 0; }
@media (max-width: 560px) { .b-play { flex-direction: column; } .b-kid { height: 170px; align-self: center; margin-bottom: -40px; } }

/* fresh: a sample question */
.quiz { margin-top: auto; padding-top: 22px; }
.quiz .q { background: var(--grad); color: #fff; font-weight: 800; font-size: 1.5rem; text-align: center; padding: 14px; border-radius: 16px 16px 6px 6px; letter-spacing: .02em; }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.opts span { text-align: center; padding: 10px 0; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 800; }
.opts .ok { background: #2fbf71; border-color: #2fbf71; color: #fff; box-shadow: 0 8px 16px -8px rgba(47, 191, 113, .8); }

/* hear: a letter bubble, a sound wave and a kid */
.say { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; gap: 12px; }
.bubble { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px 24px 24px 6px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 22px -14px rgba(28, 17, 101, .5); margin-bottom: 40px; }
.bubble b { font-size: 2.2rem; line-height: 1; color: var(--violet); }
.bubble small { font-weight: 700; color: var(--muted); font-size: .8rem; }
.wave { display: flex; gap: 4px; align-items: center; height: 40px; margin-bottom: 64px; }
.wave i { width: 5px; border-radius: 3px; background: var(--accent); animation: eq 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 14px; } .wave i:nth-child(2) { height: 30px; animation-delay: -.3s; } .wave i:nth-child(3) { height: 38px; animation-delay: -.6s; }
.wave i:nth-child(4) { height: 24px; animation-delay: -.2s; } .wave i:nth-child(5) { height: 12px; animation-delay: -.5s; }
@keyframes eq { 50% { transform: scaleY(.45); } }
.say img { height: 150px; width: auto; margin: 0 0 -42px auto; }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }

/* device: laptop, tablet and phone mock-ups */
.devices { position: relative; flex: 0 0 300px; height: 210px; align-self: flex-end; }
.devices .scr { position: absolute; inset: 7px; border-radius: 6px; background: linear-gradient(160deg, var(--soft), var(--card)); display: grid; place-items: center; }
.devices .scr img { width: 42%; max-width: 64px; border-radius: 22%; box-shadow: 0 8px 16px -8px rgba(28, 17, 101, .6); }
.laptop { position: absolute; left: 0; bottom: 18px; width: 230px; height: 146px; border-radius: 12px 12px 4px 4px; background: #221c33; }
.laptop::after { content: ''; position: absolute; left: -16px; right: -16px; bottom: -12px; height: 12px; border-radius: 0 0 12px 12px; background: #3a3450; }
.tablet { position: absolute; right: 52px; bottom: 0; width: 110px; height: 148px; border-radius: 14px; background: #221c33; }
.tablet .scr { inset: 6px; border-radius: 9px; }
.phone { position: absolute; right: 0; bottom: 0; width: 62px; height: 120px; border-radius: 14px; background: #221c33; }
.phone .scr { inset: 4px; border-radius: 10px; }
@media (max-width: 680px) { .b-device { flex-direction: column; } .devices { flex-basis: auto; width: 300px; align-self: center; } }
.laptop .scr { justify-items: start; padding-left: 36px; } .laptop .scr img { width: 52px; }

/* every app card has the gradient header; the three-across cards are a little tighter */
.app .tamil { color: rgba(255,255,255,.78); }
.apps.three .app { padding-bottom: 24px; }
.apps.three .app > :not(.row):not(.kid) { margin-left: 24px; margin-right: 24px; }
.apps.three .app .row { padding: 22px 24px; }
.apps.three .app .row img { width: 60px; height: 60px; border-radius: 17px; }
.apps.three .app h3 { font-size: 1.2rem; }
.apps.three .app .kid { height: 118px; }
.apps.three .app .open.btn { padding: 10px 18px; font-size: .9rem; }

/* ---------- hero preview: a tablet showing a Primary Math question ---------- */
.preview { display: flex; flex-direction: column; gap: 22px; }
.stage { position: relative; padding: 26px 40px 30px 10px; }
.tab { position: relative; background: #221c33; border-radius: 30px; padding: 12px; box-shadow: 0 50px 80px -40px rgba(28, 17, 101, .75), 0 0 0 1px rgba(255,255,255,.06) inset; transform: rotate(-2deg); }
.screen { border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #dff1ff, #f4f0ff 70%); color: #221c33; }
.s-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--grad); color: #fff; }
.s-top img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.s-title { font-weight: 800; font-size: .92rem; flex: 1; }
.s-coins { font-weight: 800; font-size: .88rem; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: var(--pill); }
.s-bar { height: 6px; background: rgba(34, 28, 51, .08); }
.s-bar i { display: block; height: 100%; width: 7%; background: #f5b242; border-radius: 0 3px 3px 0; }
.s-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; padding: 26px 20px 30px; }
.s-q { background: #fff; border-radius: 18px; padding: 18px; font-weight: 700; font-size: 1.05rem; box-shadow: 0 12px 24px -16px rgba(28, 17, 101, .5); }
.s-q small { display: block; color: #7a7390; font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.s-q b { display: block; font-size: 2rem; color: #3a2bd0; margin-top: 4px; letter-spacing: .02em; }
.s-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-ans span { display: grid; place-items: center; height: 58px; border-radius: 16px; background: #fff; font-weight: 800; font-size: 1.5rem; color: #3a2bd0;
  box-shadow: 0 5px 0 #d9d2f3, 0 10px 18px -12px rgba(28, 17, 101, .5); }
.s-ans .ok { background: #2fbf71; color: #fff; box-shadow: 0 5px 0 #23935a, 0 12px 20px -10px rgba(47, 191, 113, .8); position: relative; }
.s-ans .ok::after { content: '\2713'; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #2fbf71; font-size: .85rem; display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }

.float { position: absolute; z-index: 2; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--pill); padding: 9px 15px; font-weight: 800; font-size: .86rem;
  box-shadow: 0 18px 30px -16px rgba(28, 17, 101, .55); white-space: nowrap; animation: floaty 5s ease-in-out infinite; }
.float b { color: var(--violet); }
.f-coin { top: 0; left: 0; transform: rotate(-4deg); }
.f-best { top: 6px; right: 10px; animation-delay: -1.6s; }
.f-hint { bottom: 0; left: 30px; font-weight: 700; animation-delay: -3s; }
@keyframes floaty { 50% { translate: 0 -6px; } }
.stage-kid { position: absolute; z-index: 3; right: -18px; bottom: -14px; height: 190px; width: auto; filter: drop-shadow(0 12px 14px rgba(28, 17, 101, .25)); }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-app { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 14px 28px -22px rgba(28, 17, 101, .5); transition: transform .18s, border-color .18s; }
.quick-app:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }
.quick-app img { width: 44px; height: 44px; border-radius: 13px; flex: none; }
.quick-app span { flex: 1; min-width: 0; }
.quick-app b { display: block; font-size: .95rem; line-height: 1.2; }
.quick-app small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.quick-app i { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.quick-app i svg { width: 14px; height: 14px; }

@media (max-width: 900px) { .preview { max-width: 560px; width: 100%; margin: 0 auto; } }
@media (max-width: 520px) {
  .stage { padding: 30px 8px 34px 0; }
  .s-body { grid-template-columns: 1fr; padding: 18px 14px 20px; }
  .s-ans span { height: 46px; font-size: 1.2rem; }
  .stage-kid { height: 130px; right: -6px; }
  .f-hint { display: none; }
  .quick { grid-template-columns: 1fr; }
}
.stage-kid { right: -62px; height: 172px; }
.s-q b { white-space: nowrap; font-size: 1.8rem; }
.quick-app { gap: 10px; padding: 11px 12px; }
.quick-app img { width: 38px; height: 38px; border-radius: 11px; }
.quick-app b { white-space: nowrap; font-size: .92rem; }
@media (max-width: 1100px) { .stage-kid { right: -20px; height: 140px; } }

/* ---------- hero intro: how the maths apps work ---------- */
.hero h1 { margin: 18px 0 16px; }
.intro .lead { margin-bottom: 24px; }
.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 4px; max-width: 470px; position: relative; }
.steps::before { content: ''; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--grad-from), color-mix(in srgb, var(--grad-from) 15%, transparent)); }
.steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 5px var(--bg), 0 8px 16px -8px rgba(58, 43, 208, .7); }
.steps b { display: block; font-size: 1.02rem; line-height: 1.25; }
.steps small { display: block; color: var(--muted); font-size: .9rem; }
.stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; max-width: 470px; }
.stats span { flex: 1 1 0; min-width: 110px; padding: 0 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.35; }
.stats span:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; color: var(--text); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.hero { padding-top: 52px; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }
.steps { margin-bottom: 26px; }
.stats { margin-top: 26px; }

/* featured cards: Start button + "See all topics" link */
.app .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; position: relative; z-index: 1; }
.app .acts .open.btn { margin-top: 0; }
.app .all { color: var(--violet); font-weight: 700; font-size: .95rem; border-bottom: 2px solid color-mix(in srgb, var(--violet) 30%, transparent); padding-bottom: 1px; }
.app .all:hover { border-bottom-color: var(--violet); }
