/* The Open Math site: the home page and the worksheet pages. Mobile first; colours as tokens, redefined for dark mode. */
@font-face { font-family: "Baloo 2"; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/baloo2.woff2") format("woff2") }

:root {
  --bg: #fdf8f0; --card: #ffffff; --ink: #2b2140; --muted: #6b6280; --line: #ece4f5;
  --accent: #6a3fc8; --accent-2: #8a5cf0; --on-accent: #ffffff; --soft: #f1ebfd;
  --green: #7ccb5b; --green-deep: #4f9c3a; --sun: #ffc94a; --pink: #ff8fa3; --sky: #6cc4ff;
  --hero-1: #5b34b8; --hero-2: #8a5cf0; --shadow: 0 10px 30px rgba(43, 33, 64, .12);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15111d; --card: #211b2d; --ink: #f0ebf9; --muted: #aaa0bf; --line: #332a45;
    --accent: #b49aef; --accent-2: #9a7ae8; --on-accent: #15111d; --soft: #2a2240;
    --green-deep: #8fd873; --hero-1: #2c1c58; --hero-2: #4a2f8f; --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --bg: #15111d; --card: #211b2d; --ink: #f0ebf9; --muted: #aaa0bf; --line: #332a45;
  --accent: #b49aef; --accent-2: #9a7ae8; --on-accent: #15111d; --soft: #2a2240;
  --green-deep: #8fd873; --hero-1: #2c1c58; --hero-2: #4a2f8f; --shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Baloo 2", -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden }
img, svg { max-width: 100% }
button { font-family: inherit }
a { color: var(--accent) }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 800 }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem) }
h3 { font-size: 1.2rem }
p { margin: 0 0 1em }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px }
.narrow { max-width: 760px }
.center { text-align: center }

/* header and footer */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem }
.brand img { transition: transform .3s }
.brand:hover img { transform: rotate(-12deg) scale(1.1) }
.top nav { display: none; gap: 22px; margin-left: auto }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600 }
.top nav a:hover { color: var(--accent) }
.top-cta { margin-left: auto; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; font-size: .95rem }
@media (min-width: 760px) { .top nav { display: flex } .top-cta { margin-left: 0 } }
.bottom { margin-top: 64px; padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem }
.bottom .wrap { display: grid; gap: 18px }
.foot-brand { display: flex; gap: 12px; align-items: center; color: var(--ink) }
.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px }
.bottom nav a { color: var(--muted) }
.copy { font-size: .88rem; margin: 0 }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 24px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
  font-size: 1.05rem; border: 0; cursor: pointer; font-family: inherit; box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 60%, #000);
  transition: transform .15s, box-shadow .15s }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 color-mix(in srgb, var(--accent) 60%, #000) }
.button:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000) }
.button.ghost { background: var(--card); color: var(--accent); box-shadow: 0 6px 0 var(--line); border: 2px solid var(--line) }
.button.store { background: #111; color: #fff; box-shadow: 0 6px 0 #000; line-height: 1.05; text-align: left }
.button.store small { display: block; font-size: .72rem; font-weight: 600; opacity: .85 }
.button.store span { font-size: 1.2rem }
.apple { width: 24px; height: 24px; flex: none }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 10px }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--soft); padding: 3px 12px; border-radius: 999px; margin-bottom: 10px }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 32px }
.section-head p { color: var(--muted); font-size: 1.08rem }
section { padding: 64px 0 }

/* the frog: breathing, and blinking with its lids */
.frog.live { overflow: visible; animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 95% }
.frog.live .lids ellipse { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: blink 4.6s infinite }
.frog.live .lids ellipse + ellipse { animation-delay: .04s }
@keyframes breathe { 0%, 100% { transform: scale(1, 1) } 50% { transform: scale(1.03, .97) } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0) } 95% { transform: scaleY(1) } }
.bubble { position: relative; background: #fff; color: #2b2140; font-weight: 700; border-radius: 18px; padding: 8px 16px;
  box-shadow: var(--shadow); margin: 0; width: max-content; max-width: 240px; line-height: 1.3 }
.bubble::after { content: ""; position: absolute; left: 22px; bottom: -9px; border: 10px solid transparent; border-bottom: 0;
  border-top-color: #fff }
.bubble.pop { animation: pop .35s ease }
@keyframes pop { 0% { transform: scale(.85) } 60% { transform: scale(1.06) } 100% { transform: scale(1) } }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 40px 0 90px;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .16), transparent 40%), linear-gradient(140deg, var(--hero-1), var(--hero-2)) }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center }
.hero h1 { font-size: clamp(2.5rem, 10vw, 4.4rem); line-height: 1.02; margin: 8px 0 18px }
.hero h1 em { font-style: normal; color: var(--sun); display: inline-block; animation: wiggle 4s ease-in-out infinite }
.hero h1 em + em { animation-delay: 2s; color: #9ff07c }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0) } 85% { transform: rotate(-6deg) } 90% { transform: rotate(5deg) } 95% { transform: rotate(-2deg) } }
.hero .eyebrow { background: rgba(255, 255, 255, .18); color: #fff }
.lead { font-size: 1.12rem; opacity: .95; max-width: 34em }
.hero .button.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: 0 6px 0 rgba(0, 0, 0, .18) }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 10px 0 0; font-weight: 600 }
.ticks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%;
  background: var(--green); color: #1d3b12; font-size: .8rem }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); padding-bottom: 40px }
.ipad { position: relative; background: #1b1626; border-radius: 34px; padding: 14px; box-shadow: 0 30px 60px rgba(20, 8, 50, .45);
  transform: rotate(3deg); animation: hover 6s ease-in-out infinite }
@keyframes hover { 0%, 100% { transform: rotate(3deg) translateY(0) } 50% { transform: rotate(2deg) translateY(-10px) } }
.screen { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #fdf8f0 }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity .9s, transform 4s ease-out }
.screen img.on { opacity: 1; transform: scale(1) }
.hero-com { position: absolute; left: -10px; bottom: -6px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px }
.hero-com .frog { width: 130px; height: 130px; order: 2; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .25)) }
.hero-com .bubble { order: 1; margin-left: 40px }
.hero-art:not(:has(.ipad)) .hero-com { position: static; align-items: center }
.hero-art:not(:has(.ipad)) .hero-com .frog { width: 240px; height: 240px }
.floaters span { position: absolute; left: var(--x); bottom: -60px; font-weight: 800; font-size: calc(var(--s) * 1.8rem);
  color: rgba(255, 255, 255, .14); animation: rise var(--d) linear infinite; animation-delay: var(--w) }
@keyframes rise { 0% { transform: translateY(0) rotate(0) } 100% { transform: translateY(-120vh) rotate(160deg) } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--bg) }
@media (min-width: 900px) {
  .hero { padding: 64px 0 120px }
  .hero-grid { grid-template-columns: 1.1fr .9fr }
  .hero-com { left: -70px }
}

/* demo: count the apples */
.demo { position: relative; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 24px 16px 28px;
  display: grid; gap: 18px; max-width: 860px; margin: 0 auto; overflow: hidden; border: 2px solid var(--line) }
.demo-com { display: flex; align-items: flex-end; gap: 10px }
.demo-com .frog { width: 96px; height: 96px; flex: none }
.demo-com .frog.jump { animation: jump .7s ease }
@keyframes jump { 0%, 100% { transform: translateY(0) } 40% { transform: translateY(-42px) rotate(-8deg) } 70% { transform: translateY(0) scale(1.08, .92) } }
.demo-com .bubble { margin-bottom: 52px; background: var(--soft); color: var(--ink); box-shadow: none; font-size: 1.1rem }
.demo-com .bubble::after { left: -9px; bottom: 12px; border: 10px solid transparent; border-left: 0; border-right-color: var(--soft) }
.apples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 140px; padding: 16px;
  background: repeating-linear-gradient(0deg, transparent 0 34px, var(--line) 34px 36px); border-radius: 20px }
.apple-btn { position: relative; width: 64px; height: 64px; border: 0; background: none; padding: 0; cursor: pointer;
  animation: drop .5s backwards cubic-bezier(.3, 1.5, .5, 1); animation-delay: calc(var(--i) * 70ms); -webkit-tap-highlight-color: transparent }
.apple-btn svg { width: 100%; height: 100%; transition: transform .2s; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .15)) }
.apple-btn:hover svg { transform: scale(1.08) rotate(-5deg) }
.apple-btn.done svg { animation: boing .4s; opacity: .55 }
.apple-btn b { position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: var(--on-accent); display: grid; place-items: center; font-size: 1.05rem; animation: pop .3s }
@keyframes drop { from { transform: translateY(-60px); opacity: 0 } }
@keyframes boing { 50% { transform: scale(1.25) } }
.answers { display: flex; justify-content: center; gap: 14px; margin-top: 18px }
.answers[hidden], .again[hidden] { display: none }
.answers button { width: 76px; height: 76px; border-radius: 22px; border: 3px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 800; font-size: 2.2rem; line-height: 1; cursor: pointer; box-shadow: 0 5px 0 var(--line); animation: pop .35s backwards;
  transition: transform .15s }
.answers button:nth-child(2) { animation-delay: .08s }
.answers button:nth-child(3) { animation-delay: .16s }
.answers button:hover { transform: translateY(-3px); border-color: var(--accent) }
.answers button.right { background: var(--green); border-color: var(--green-deep); color: #173010 }
.answers button.wrong { animation: shake .45s; border-color: var(--pink) }
@keyframes shake { 20%, 60% { transform: translateX(-8px) } 40%, 80% { transform: translateX(8px) } }
.again { display: block; margin: 18px auto 0 }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 10px; height: 16px; background: var(--c); border-radius: 3px;
  animation: fall var(--d) ease-in forwards; animation-delay: var(--w) }
@keyframes fall { to { transform: translate(var(--dx), 640px) rotate(720deg); opacity: .2 } }
@media (min-width: 760px) {
  .demo { grid-template-columns: 220px 1fr; padding: 32px; align-items: center }
  .demo-com { flex-direction: column; align-items: center }
  .demo-com .frog { width: 150px; height: 150px; order: 2 }
  .demo-com .bubble { margin: 0; order: 1; text-align: center }
  .demo-com .bubble::after { left: 50%; bottom: -9px; margin-left: -10px; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--soft) }
  .apple-btn { width: 76px; height: 76px }
}

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms) }
.js .reveal.in { opacity: 1; transform: none }

/* the three steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px }
.steps li { position: relative; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  border: 2px solid var(--line) }
.steps p { color: var(--muted); margin: 0 }
.step-no { position: absolute; top: -14px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
  color: var(--on-accent); display: grid; place-items: center; font-weight: 800 }
.art-box { background: var(--soft); border-radius: 16px; padding: 10px; margin-bottom: 14px }
.art { display: block; width: 100%; height: 120px }
.concrete rect { fill: #fff; stroke: var(--accent); stroke-width: 2.5 }
.concrete .drop { fill: #f5604a; transform: translateY(-80px); opacity: 0 }
.in .concrete .drop { animation: counter .5s forwards cubic-bezier(.3, 1.5, .5, 1); animation-delay: calc(.3s + var(--i) * .22s) }
@keyframes counter { to { transform: none; opacity: 1 } }
.pictorial circle { fill: #fff; stroke: var(--accent); stroke-width: 3 }
.pictorial circle:first-of-type { fill: var(--sun) }
.pictorial .draw { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 80; stroke-dashoffset: 80 }
.in .pictorial .draw { animation: drawline 1s .4s forwards }
@keyframes drawline { to { stroke-dashoffset: 0 } }
.pictorial text, .abstract text { font: 800 22px "Baloo 2", sans-serif; text-anchor: middle; dominant-baseline: central; fill: #2b2140 }
.abstract text { font-size: 46px; fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3) }
.in .abstract text { animation: popin .45s forwards cubic-bezier(.3, 1.6, .5, 1); animation-delay: calc(.3s + var(--i) * .25s) }
@keyframes popin { to { opacity: 1; transform: none } }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr) } }

/* lecture */
.lecture { background: linear-gradient(180deg, transparent, var(--soft) 30%, var(--soft) 70%, transparent) }
.lecture-grid { display: grid; gap: 32px; align-items: center }
.lecture-art { justify-self: center; max-width: 300px }
.lecture-art .shot { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow); border: 10px solid #1b1626; transform: rotate(-2deg) }
.lecture-art .frog { width: 260px; height: 260px }
.checks { list-style: none; padding: 0; margin: 0 }
.checks li { position: relative; padding-left: 34px; margin: 10px 0; font-weight: 600 }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--green);
  color: #1d3b12; display: grid; place-items: center; font-size: .85rem }
@media (min-width: 860px) { .lecture-grid { grid-template-columns: .8fr 1.2fr } }

/* curriculum */
.stats { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px }
.stats li { background: var(--card); border-radius: var(--radius); padding: 16px; text-align: center; color: var(--muted); font-weight: 600;
  border: 2px solid var(--line) }
.stats b { display: block; font-size: 2.6rem; line-height: 1.1; color: var(--accent) }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr) } }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center }
.chips li { display: flex; gap: 8px; align-items: center; padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--card); border: 2px solid var(--line); transition: transform .2s }
.chips li:hover { transform: translateY(-3px) rotate(-1deg) }
.chips b { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-size: .85rem }
.chips .a b { background: var(--green-deep) }
.chips .b b { background: var(--accent) }
.chips .review { border-style: dashed }
.js .chips li { opacity: 0; transform: scale(.6) }
.js .chips.in li { animation: chip .4s forwards cubic-bezier(.3, 1.5, .5, 1); animation-delay: calc(var(--i) * 45ms) }
@keyframes chip { to { opacity: 1; transform: none } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 0; color: var(--muted); font-weight: 600 }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -1px }
.legend .a::before { background: var(--green-deep) }
.legend .b::before { background: var(--accent) }
.road { text-align: center; color: var(--muted); margin-top: 12px }

/* parents */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px }
.grid li { background: var(--card); border-radius: var(--radius); padding: 20px; border: 2px solid var(--line); transition: transform .2s, box-shadow .2s }
.grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow) }
.grid .icon { font-size: 2rem; display: inline-block; margin-bottom: 4px }
.grid li:hover .icon { animation: boing .5s }
.grid p { color: var(--muted); margin: 0 }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr) } }

/* worksheet cards */
.cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px }
.cards a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink) }
.cards img { width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .25s }
.cards a:hover img { transform: translateY(-6px) rotate(-1.5deg) }
.cards .kicker { color: var(--muted); font-size: .85rem; margin-top: 8px }
.cards b { line-height: 1.25 }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr) } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(6, 1fr) } .page .cards { grid-template-columns: repeat(4, 1fr) } }
.sheets-show .center .button { margin: 6px }

/* faq */
details { background: var(--card); border: 2px solid var(--line); border-radius: 16px; margin: 10px 0; padding: 0 18px }
summary { cursor: pointer; font-weight: 700; padding: 14px 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(--accent); transition: transform .2s }
details[open] summary::after { transform: rotate(45deg) }
details p { color: var(--muted) }

/* closing */
.final { text-align: center; color: #fff; background: linear-gradient(140deg, var(--hero-1), var(--hero-2)); border-radius: 36px;
  margin: 32px 16px 0; padding: 48px 0 }
.final .frog { width: 140px; height: 140px }
.final p { opacity: .92 }
.final .ctas { justify-content: center }
.final .button.ghost.light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: 0 6px 0 rgba(0, 0, 0, .18) }
.soon-note { max-width: 30em; margin: 0 auto 1em }
@media (min-width: 1152px) { .final { max-width: 1120px; margin: 32px auto 0 } }

/* worksheet pages */
.page { padding-top: 20px }
.page h1 { font-size: clamp(1.7rem, 5vw, 2.4rem) }
.page .lead { opacity: 1; color: var(--muted) }
.crumbs { color: var(--muted); font-size: .92rem; margin: 0 0 10px }
.crumbs a { color: var(--muted) }
.chapter-list { padding: 20px 0 }
.chapter-list h2 a { color: var(--ink); text-decoration: none }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 }
.download span { color: var(--muted); font-size: .92rem }
.sheet-grid { display: grid; gap: 24px }
.sheet-grid ol, .sheet-grid ul { padding-left: 22px }
.sheet-grid h2 { font-size: 1.3rem; margin-top: 24px }
.preview { margin: 0; text-align: center }
.preview img { width: 100%; max-width: 420px; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: #fff }
@media (min-width: 860px) { .sheet-grid { grid-template-columns: 400px 1fr; align-items: start } .preview { position: sticky; top: 80px } }
.sheet-rows { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px }
.sheet-rows li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; background: var(--card);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 14px }
.sheet-rows img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff }
.sheet-rows h3 { margin: 0 0 4px }
.sheet-rows h3 a { color: var(--ink); text-decoration: none }
.sheet-rows p { margin: 0 0 6px; color: var(--muted) }
.sheet-rows .kicker { color: var(--accent); font-weight: 700; font-size: .85rem }
@media (min-width: 760px) { .sheet-rows { grid-template-columns: repeat(2, 1fr) } .sheet-rows li { grid-template-columns: 120px 1fr } }
.app-box { display: flex; gap: 18px; align-items: flex-start; background: var(--soft); border-radius: 26px; padding: 20px; margin-top: 40px }
.app-box .frog { width: 84px; height: 84px; flex: none }
.app-box h2 { font-size: 1.4rem }
.app-box .more { margin-left: 10px; font-weight: 600 }
@media (max-width: 520px) { .app-box { flex-direction: column } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px }
.pager a { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; text-decoration: none;
  color: var(--ink); font-weight: 700; line-height: 1.3 }
.pager a small { display: block; color: var(--muted); font-weight: 600 }
.pager .next { text-align: right }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
  .js .reveal, .js .chips li { opacity: 1; transform: none }
  .concrete .drop, .abstract text { opacity: 1; transform: none }
  .pictorial .draw { stroke-dashoffset: 0 }
  .floaters { display: none }
}
