:root {
  font-family: var(--font-body); font-synthesis: none;
  --sheet: #FFFFFF; /* printed pages stay white paper in both themes, as in the app */
  color: var(--color-text); background: var(--color-background);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--color-background); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1, h2 { line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 20px; }
h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
p { line-height: 1.65; }
a:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--brand-tomato); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 18px; background: var(--color-background-element); color: var(--color-text); z-index: 20; border-radius: var(--radius-md); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* Header */
.site-header { display: flex; align-items: center; gap: 28px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.wordmark span { color: var(--brand-tomato); }
.primary-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.primary-nav a:hover { color: var(--color-tint); }
.nav-short { display: none; }
.nav-download { background: var(--color-primary); color: var(--color-on-primary) !important; border-radius: var(--radius-pill); padding: 0 20px; }
.nav-download:hover, .nav-download:active { background: var(--color-primary-pressed); }
/* Language bar above the header on every page, like apple.com's (language.js). */
.lang-bar { background: var(--color-background-selected); border-bottom: 1px solid var(--color-border); font-size: 13px; }
.lang-bar .wrap { display: flex; align-items: center; gap: 10px 20px; min-height: 60px; padding-block: 10px; }
.lang-bar p { flex: 1; margin: 0; line-height: 1.45; }
.lang-bar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-bar-actions[hidden] { display: none; }
.lang-bar select { min-height: 36px; min-width: 130px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-background-element); color: var(--color-text); font: inherit; cursor: pointer; }
.lang-bar-go { min-height: 36px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--color-text); color: var(--color-background); font: inherit; font-weight: 600; cursor: pointer; }
.lang-bar-go:hover { opacity: .85; }
.lang-bar-links { display: flex; align-items: center; gap: 10px; }
.lang-bar-links[hidden] { display: none; }
.lang-bar-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--color-text); }
.lang-bar-links a[aria-current] { font-weight: 600; text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 40px 72px; }
.eyebrow { text-wrap: balance; font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: 1.8px; line-height: 1.5; margin-bottom: 20px; color: var(--color-tint); }
.hero h1 { font-size: clamp(56px, 6.4vw, 92px); margin-bottom: 26px; }
.hero h1 span { color: var(--color-tint); }
.hero-intro { max-width: 500px; font-size: 20px; color: var(--color-text-secondary); margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.store-link { display: inline-block; flex-shrink: 0; transition: transform .18s; text-decoration: none; }
.store-link:hover { transform: translateY(-3px); }
.store-link img { width: 180px; height: 60px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--color-tint); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.platform-note { font-size: 13px; color: var(--color-text-secondary); margin: 20px 0 0; }
.platform-note span { margin-inline: 7px; }
.hero-visual { position: relative; height: 560px; min-width: 0; }

/* Paper sheets: drawings sit on white paper in both themes, like a printed page on the table. */
.sheet { margin: 0; background: var(--sheet); border-radius: var(--radius-sm); box-shadow: var(--shadow-raised); aspect-ratio: 210 / 297; display: flex; align-items: center; justify-content: center; position: relative; }
.sheet img { width: 82%; mix-blend-mode: multiply; position: relative; }
.scribble { position: absolute; left: 9%; top: 50%; width: 82%; height: auto; aspect-ratio: 1; transform: translateY(-50%); }
.scribble path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-back { position: absolute; width: 300px; left: 4%; top: 70px; transform: rotate(-8deg); }
.hero-front { position: absolute; width: 340px; right: 2%; top: 10px; transform: rotate(4deg); }
.hero-front:before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 32px; transform: translateX(-50%) rotate(-3deg); background: var(--brand-sunflower); opacity: .7; border-radius: 3px; z-index: 1; }
.hero-crayons { position: absolute; left: 12%; bottom: 8px; display: flex; gap: 10px; transform: rotate(-14deg); }
.hero-crayons i { width: 22px; height: 130px; border-radius: 4px 4px 6px 6px; background: var(--c); position: relative; box-shadow: var(--shadow-raised); }
.hero-crayons i:before { content: ""; position: absolute; top: -20px; left: 0; border: 11px solid transparent; border-top: 0; border-bottom: 21px solid var(--c); }
.hero-crayons i:after { content: ""; position: absolute; inset: 22px 0 auto; height: 14px; background: var(--sheet); opacity: .35; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise .6s cubic-bezier(.22, 1, .36, 1) .05s backwards; }
  .hero-visual { animation: rise .7s cubic-bezier(.22, 1, .36, 1) .15s backwards; }
}
.trust-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0 0 56px; margin-block: 0; }
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; background: var(--color-background-selected); border-radius: var(--radius-pill); padding: 10px 18px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.trust-strip li:before { content: "✓"; color: var(--color-tint); }

/* Sections */
.section { padding-block: 84px; border-top: 1px solid var(--color-border); }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-heading > p:not(.eyebrow) { font-size: 18px; color: var(--color-text-secondary); margin-bottom: 0; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 0; margin: 0 auto; max-width: 940px; }
.levels li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.levels .sheet { align-self: stretch; }
.levels .sheet { margin-bottom: 26px; }
.levels li:nth-child(1) .sheet { transform: rotate(-2deg); }
.levels li:nth-child(3) .sheet { transform: rotate(2deg); }
.level-age { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; padding: 5px 16px; border-radius: var(--radius-pill); background: var(--soft); color: var(--ink); margin-bottom: 14px; }
.levels p { color: var(--color-text-secondary); margin-bottom: 0; }
/* Crayon accents, as in the app: each crayon has a soft fill and an ink for text on it. */
.crayon-tomato { --soft: var(--color-tomato-soft); --ink: var(--color-tomato-ink); }
.crayon-sunflower { --soft: var(--color-sunflower-soft); --ink: var(--color-sunflower-ink); }
.crayon-sky { --soft: var(--color-sky-soft); --ink: var(--color-sky-ink); }
.crayon-leaf { --soft: var(--color-leaf-soft); --ink: var(--color-leaf-ink); }
.crayon-plum { --soft: var(--color-plum-soft); --ink: var(--color-plum-ink); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-copy > p:not(.eyebrow) { font-size: 18px; color: var(--color-text-secondary); max-width: 480px; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; font-size: 16px; line-height: 1.6; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--color-tint); font-weight: 700; }
.pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 30px; background: var(--color-sunflower-soft); border-radius: var(--radius-xl); }
.pair-leaf { background: var(--color-leaf-soft); }
.pair .sheet:first-child { transform: rotate(-3deg); }
.pair .sheet:last-child { transform: rotate(3deg) translateY(18px); }
.pair-arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); font-size: 22px; box-shadow: var(--shadow-raised); }
.subjects { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0 auto; max-width: 900px; }
.subjects li { display: inline-flex; align-items: center; line-height: 1.25; background: var(--soft); color: var(--ink); border-radius: var(--radius-pill); padding: 10px 20px; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li:before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 20px; }
.steps p { color: var(--color-text-secondary); margin-bottom: 0; }
.print-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; margin: 48px 0 0; padding: 0; list-style: none; color: var(--color-text-secondary); font-size: 15px; }
.print-facts strong { color: var(--color-text); }

/* Free and Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; margin: 0 auto; }
.plan { background: var(--color-background-element); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 36px; }
.plan-pro { border: 2px solid var(--brand-tomato); box-shadow: var(--shadow-raised); }
.plan h3 { font-size: 28px; margin-bottom: 6px; }
.plan-price { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--color-tint); margin-bottom: 4px; }
.plan-note { font-size: 14px; color: var(--color-text-secondary); }
.plan .check-list { margin-top: 20px; }
.plan .check-list li:last-child { margin-bottom: 0; }

/* Free colouring pages teaser (the section itself lives under /free/). */
.free-teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; background: var(--color-sky-soft); border-radius: var(--radius-xl); padding: 40px 48px; }
.free-teaser .sheet { width: 120px; transform: rotate(-5deg); }
.free-teaser h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 10px; }
.free-teaser p { color: var(--color-text-secondary); margin: 0; font-size: 17px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--color-primary); color: var(--color-on-primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.button:hover, .button:active { background: var(--color-primary-pressed); }
.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 0; margin: 0; }
.extras h3 { font-size: 20px; }
.extras p { color: var(--color-text-secondary); font-size: 15px; margin: 0; }
.extras-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--soft); color: var(--ink); font-size: 22px; margin-bottom: 18px; }
.download { text-align: center; padding-block: 92px; border-top: 1px solid var(--color-border); }
.download .app-icon { width: 96px; height: 96px; margin: 0 auto 28px; transform: rotate(-4deg); filter: drop-shadow(var(--shadow-raised)); }
.download h2 { font-size: clamp(44px, 5.4vw, 72px); }
.download .platform-note { line-height: 1.8; }
.download p:not(.platform-note) { color: var(--color-text-secondary); font-size: 18px; margin-bottom: 28px; }

/* Text pages (privacy, terms, support) */
.doc { max-width: 760px; padding-block: 40px 88px; }
.doc h1 { font-size: clamp(42px, 5vw, 64px); margin-bottom: 18px; }
.doc .lead { font-size: 20px; color: var(--color-text-secondary); margin-bottom: 40px; }
.doc h2 { font-size: 28px; margin: 44px 0 12px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc li { line-height: 1.65; margin-bottom: 8px; }
.doc a:not(.button) { color: var(--color-tint); text-underline-offset: 3px; }
.doc .updated { font-size: 14px; color: var(--color-text-secondary); }
.faq details { border-top: 1px solid var(--color-border); }
.faq details:last-child { border-bottom: 1px solid var(--color-border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding-block: 14px; font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; font-size: 28px; color: var(--color-tint); flex-shrink: 0; }
.faq details[open] summary:after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--brand-tomato); outline-offset: 2px; border-radius: 6px; }
.faq details > div { padding-bottom: 18px; }
.faq details p:last-child { margin-bottom: 0; }
.contact-card { margin-top: 48px; background: var(--color-sunflower-soft); border-radius: var(--radius-xl); padding: 32px; }
.contact-card h2 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding-block: 40px 30px; font-size: 14px; color: var(--color-text-secondary); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand { font-size: 24px; color: var(--color-text); }
.site-footer .brand img { width: 34px; height: 34px; }
.site-footer nav { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--color-text); font-weight: 600; }
.site-footer nav a:hover { color: var(--color-tint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.footer-bottom a { text-underline-offset: 3px; }

.not-found { min-height: calc(100svh - 61px); display: grid; align-content: center; justify-items: center; text-align: center; padding-block: 60px; }
.not-found .brand { margin-bottom: 40px; }
.not-found h1 { font-size: clamp(40px, 6vw, 72px); }
.not-found p:not(.eyebrow) { color: var(--color-text-secondary); }
.not-found .sheet { width: 180px; transform: rotate(-4deg); margin-bottom: 36px; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .primary-nav { gap: 18px; }
  .hero-visual { height: 500px; }
  .hero-front { width: 290px; }
  .hero-back { width: 250px; }
  .feature-row { gap: 48px; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 8px 18px; }
  .primary-nav { order: 3; width: 100%; margin-left: 0; gap: 4px 20px; flex-wrap: wrap; }
  .nav-download { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-block: 24px 48px; }
  .hero-intro { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(520px, 100%); margin-inline: auto; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-copy { max-width: 600px; }
  .free-teaser { grid-template-columns: auto 1fr; }
  .free-teaser .button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 720px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .wrap { width: calc(100% - 40px); }
  .section { padding-block: 60px; }
  .levels { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; gap: 44px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px; }
  .free-teaser { grid-template-columns: 1fr; padding: 32px 26px; gap: 22px; text-align: left; }
  .free-teaser .sheet { width: 96px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { padding-block: 16px; }
  .brand { font-size: 24px; }
  .brand img { width: 34px; height: 34px; }
  .lang-bar .wrap { flex-wrap: wrap; gap: 8px; }
  .lang-bar p { flex-basis: 100%; }
  .lang-bar-actions { flex: 1; }
  .lang-bar select { flex: 1; min-width: 0; }
  .primary-nav { flex-wrap: nowrap; justify-content: space-between; gap: 0 8px; font-size: 14px; }
  .primary-nav .nav-download { display: none; }
  .hero h1 { font-size: clamp(46px, 13vw, 60px); }
  .hero-intro { font-size: 17px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-visual { height: 380px; }
  .hero-front { width: 205px; right: 0; }
  .hero-back { width: 180px; left: 0; top: 56px; }
  .hero-front:before { width: 80px; height: 24px; top: -10px; }
  .hero-crayons { left: 6%; bottom: 0; gap: 7px; }
  .hero-crayons i { width: 16px; height: 92px; }
  .hero-crayons i:before { top: -15px; border-width: 0 8px 15px; }
  .trust-strip { gap: 10px; padding-bottom: 44px; }
  .trust-strip li { font-size: 14px; padding: 8px 14px; }
  .section-heading > p:not(.eyebrow), .feature-copy > p:not(.eyebrow) { font-size: 16px; }
  .pair { padding: 26px 18px; gap: 14px; }
  .subjects li { font-size: 16px; padding: 8px 16px; }
  .extras { grid-template-columns: 1fr; gap: 28px; }
  .download { padding-block: 64px; }
  .doc { padding-block: 24px 64px; }
  .doc .lead { font-size: 18px; }
  .faq summary { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-link { transition: none; }
  .store-link:hover { transform: none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
