/* Pip & Paint website. Colours follow the app's day and dusk themes (PipAndPaint/Views/Theme.swift);
   fonts are the system rounded design, like the app, so the site loads nothing from elsewhere. */
/* The wordmark's typeface, Plus Jakarta Sans (SIL Open Font License, fonts/OFL.txt), served from
   this site so it still loads nothing from elsewhere. Latin only, weights 500 to 700. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --sky: #E6EFF7;
  --chip: #FFFFFF;
  --ink: #262A3B;
  --ink-soft: #5A6079;
  --line: #CFDCE8;
  --accent: #FF5A4E;
  --accent-text: #C2352B;   /* the accent dark enough for small text (4.7:1 on the sky) */
  --on-accent: #FFFFFF;
  --sun: #FFC93C;
  --go: #1FA552;
  --gold: #F5B800;
  /* Pip as the app draws it on the board: the green dot with googly eyes looking at the star. */
  --pip-face:
    radial-gradient(circle at 38% 46%, #262A3B 0 8%, transparent 9%),
    radial-gradient(circle at 68% 46%, #262A3B 0 8%, transparent 9%),
    radial-gradient(circle at 33% 40%, #fff 0 15%, transparent 16%),
    radial-gradient(circle at 63% 40%, #fff 0 15%, transparent 16%),
    var(--pip);
  --pip: #8FD8A8;     /* Pip's pastel green (the app's Theme.sourceDot), and the wordmark's star */
  --star: #F9D675;
  --dusk: #1B1F33;
  --dusk-line: #363B5A;
  --dusk-chip: #272C46;
  --dusk-ink: #ECE8F4;
  --dusk-soft: #A8A4BE;
  --dusk-accent: #F0A88F;
  --wordmark: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { font-size: 23px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 40ch; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { margin-bottom: 36px; display: grid; gap: 12px; }
.section-head.center { text-align: center; justify-items: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--chip); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--sky) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--wordmark); font-weight: 650; font-size: 24px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 1px 0 var(--line); }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 12px; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); background: var(--chip); }
@media (max-width: 980px) { .site-nav .wide { display: none; } }
@media (max-width: 760px) { .site-nav .optional { display: none; } }
@media (max-width: 400px) { .site-nav a { padding: 8px 9px; } .brand { font-size: 21px; } }
/* Below 980px (with menu.js) the nav is a panel under the header, opened by the Menu button. */
.menu-button { display: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--chip); border: 0; border-radius: 12px; min-height: 44px; padding: 0 14px; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 1px 0 var(--line); }
@media (max-width: 980px) {
  .site-header.has-menu .menu-button { display: inline-flex; }
  .site-header.has-menu .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 18px; background: var(--sky); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(38, 42, 59, .5); }
  .site-header.has-menu.open .site-nav { display: flex; }
  .site-header.has-menu .site-nav a { display: block; padding: 12px 14px; font-size: 17px; color: var(--ink); }
  .site-header.has-menu.open .menu-button { background: var(--ink); color: #fff; box-shadow: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 17px; text-decoration: none; background: var(--chip); color: var(--ink); box-shadow: 0 1px 0 var(--line); transition: transform .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 600; opacity: .8; line-height: 1; letter-spacing: .02em; }
.btn .two { line-height: 1.15; text-align: left; }
.btn.store-soon { margin: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-soft); }
.btn.store-soon:hover, .btn.store-soon:active { transform: none; }
.btn.store-soon small { font-size: 13px; opacity: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--ink-soft); }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-family: var(--wordmark); font-size: clamp(54px, 9vw, 96px); line-height: .92; font-weight: 600; letter-spacing: -.025em; }
/* The ampersand is drawn in dots, like the dotted guide that leads from one dot to the next. */
.hero h1 .amp { display: inline-block; width: .62em; height: .86em; vertical-align: -.06em; color: var(--ink); }
.hero h1 .amp svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* The dots on the i's are soft pastel versions of the game's green dot and gold star. */
.hero h1 .pip { position: relative; display: inline-block; }
.hero h1 .pip::after { content: ""; position: absolute; left: 50%; translate: -50% 0; }
/* The pip on "Pip" is Pip, with googly eyes looking across at the star on "Paint". */
.hero h1 .pip.eyes::after { width: .27em; height: .27em; top: -.01em; border-radius: 50%;
  background:
    radial-gradient(circle at 42% 44%, #262A3B 0 9%, transparent 10%),
    radial-gradient(circle at 72% 44%, #262A3B 0 9%, transparent 10%),
    radial-gradient(circle at 34% 38%, #fff 0 17%, transparent 18%),
    radial-gradient(circle at 64% 38%, #fff 0 17%, transparent 18%),
    var(--pip); }
/* ...and the one on "Paint" is the gold star you're heading for, as on the Pre-school level. */
.hero h1 .pip.star::after { width: .36em; height: .36em; top: -.04em; background: var(--star);
  clip-path: polygon(50% 0, 61.2% 34.5%, 97.6% 34.5%, 68.2% 55.9%, 79.4% 90.5%, 50% 69.1%, 20.6% 90.5%, 31.8% 55.9%, 2.4% 34.5%, 38.8% 34.5%); }
.hero .tagline { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.6vw, 27px); color: var(--ink); margin-top: -8px; }
.hero .copy { display: grid; gap: 22px; }
.hero-art { position: relative; }
.ipad { background: #1d2030; padding: 14px; border-radius: 34px; box-shadow: 0 30px 60px -24px rgba(38, 42, 59, .45); transform: rotate(2deg); }
.ipad img { border-radius: 20px; width: 100%; aspect-ratio: 1; background: #fff; }
.sticker { position: absolute; background: var(--sun); color: var(--ink); font-weight: 800; font-family: var(--display); border-radius: 99px; padding: 10px 16px; font-size: 16px; box-shadow: 0 6px 16px -6px rgba(38,42,59,.35); transform: rotate(-6deg); }
.sticker.one { left: -14px; top: 10%; }
.sticker.two { right: -10px; bottom: 8%; background: var(--chip); transform: rotate(5deg); }
.points { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.points li { display: flex; align-items: center; gap: 7px; }
.points li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pip); box-shadow: inset 0 0 0 1.5px #5DB27B; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
}

/* How it works */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--chip); border-radius: var(--radius); padding: 14px 14px 24px; display: grid; gap: 14px; align-content: start; box-shadow: 0 1px 0 var(--line); }
.step img { border-radius: 14px; aspect-ratio: 1; width: 100%; background: #fff; border: 1px solid var(--line); }
.step h3 { display: flex; gap: 10px; align-items: center; padding: 0 8px; }
.step h3::before { counter-increment: step; content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 18px; }
.step p { color: var(--ink-soft); padding: 0 8px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.brushes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; }
.brushes li { background: var(--chip); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 15px; box-shadow: 0 1px 0 var(--line); display: flex; gap: 8px; align-items: center; }
.brushes li i { width: 14px; height: 14px; border-radius: 50%; display: block; }

/* Levels */
.levels { background: linear-gradient(180deg, var(--sky) 0%, #fff 0%, #fff 50%, var(--dusk) 50%); }
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.level { border-radius: var(--radius); padding: 14px 14px 22px; display: grid; gap: 12px; align-content: start; background: var(--sky); }
.level img { border-radius: 14px; aspect-ratio: 1; width: 100%; }
.level h3 { padding: 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.level .age { font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.level p { padding: 0 6px; font-size: 15px; color: var(--ink-soft); }
.level.grown { background: var(--dusk-chip); color: var(--dusk-ink); }
.level.grown p, .level.grown .age { color: var(--dusk-soft); }
.levels-note { text-align: center; color: var(--dusk-soft); margin-top: 28px; font-size: 15px; }
@media (max-width: 960px) { .level-grid { grid-template-columns: repeat(2, 1fr); } .levels { background: linear-gradient(180deg, #fff 0%, #fff 50%, var(--dusk) 50%); } }
@media (max-width: 520px) { .level-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } .levels { background: #fff; } }

/* Packs */
.pack { background: var(--chip); border-radius: 28px; margin-bottom: 16px; box-shadow: 0 1px 0 var(--line); }
.pack > summary { scroll-margin-top: 84px; list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "cover title meta" "cover blurb meta"; align-items: center; gap: 2px 22px; padding: clamp(14px, 2.4vw, 20px) clamp(16px, 3vw, 28px); border-radius: 28px; }
.pack > summary::-webkit-details-marker { display: none; }
.pack > summary:hover { background: color-mix(in srgb, var(--sky) 55%, transparent); }
.pack > summary:focus-visible { outline: 3px solid #F4A259; outline-offset: 3px; }
.pack h3 { grid-area: title; align-self: end; }
.pack .blurb { grid-area: blurb; align-self: start; color: var(--ink-soft); font-size: 15px; }
.pack-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pack-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; padding: 9px 14px 9px 16px; border-radius: 99px; background: var(--ink); color: #fff; white-space: nowrap; }
.pack-toggle svg { transition: transform .25s ease; }
.pack[open] .pack-toggle { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.pack[open] .pack-toggle svg { transform: rotate(180deg); }
.pack .when-open, .pack[open] .when-closed { display: none; }
.pack[open] .when-open { display: inline; }
/* The cover: three of the pack's pictures fanned out on the pack's colour. */
.pack-cover { grid-area: cover; position: relative; width: 112px; height: 84px; border-radius: 18px; background: var(--pack); }
.pack-cover img { position: absolute; width: 58px; height: 58px; top: 13px; left: 27px; border-radius: 10px; background: #fff; box-shadow: 0 6px 14px -8px rgba(38, 42, 59, .55); transition: transform .25s ease; }
.pack-cover img:nth-child(1) { transform: translateX(-20px) rotate(-9deg); }
.pack-cover img:nth-child(3) { transform: translateX(20px) rotate(9deg); }
.pack-cover img:nth-child(2) { z-index: 1; }
.pack > summary:hover .pack-cover img:nth-child(1) { transform: translateX(-26px) rotate(-13deg); }
.pack > summary:hover .pack-cover img:nth-child(3) { transform: translateX(26px) rotate(13deg); }
.pack-body { padding: 4px clamp(16px, 3vw, 28px) clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.pack[open] .pack-body { animation: pack-open .3s ease; }
@keyframes pack-open { from { opacity: 0; transform: translateY(-6px); } }
.pack-body .level-switch { margin-top: 0; }
.pack-close { justify-self: center; font: inherit; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 9px 16px; border-radius: 99px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.pack-close:hover { background: var(--sky); }
@media (max-width: 640px) {
  .pack > summary { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cover title" "blurb blurb" "meta meta"; gap: 10px 16px; }
  .pack h3 { align-self: center; }
  .pack-cover { width: 92px; height: 70px; }
  .pack-cover img { width: 48px; height: 48px; top: 11px; left: 22px; }
  .pack-meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .pack-meta .tag { white-space: normal; }
  .pack-toggle { margin-left: auto; }
  .pack-body .level-switch { display: flex; flex-wrap: nowrap; justify-self: stretch; }
  .pack-body .level-switch button { flex: 1 1 auto; padding: 8px 4px; font-size: 14px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .pack-cover img, .pack-toggle svg { transition: none; } .pack[open] .pack-body { animation: none; } }
.paid-head { margin: 36px 0 16px; display: grid; gap: 6px; }
.paid-head h3 { font-size: clamp(22px, 2.6vw, 27px); }
.paid-head p { color: var(--ink-soft); max-width: 52ch; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.pack-grid .pack { margin: 0; }
.pack-grid .pack[open] { grid-column: 1 / -1; }
.pack-grid .pack:not([open]) > summary { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cover title" "cover blurb" "meta meta"; gap: 4px 18px; }
.pack-grid .pack:not([open]) .blurb { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pack-grid .pack:not([open]) .pack-meta { flex-direction: row; justify-content: flex-end; margin-top: 10px; }
.pack-grid .pack:not([open]) .pack-toggle { background: var(--sky); color: var(--ink); }
@media (max-width: 640px) { .pack-grid { grid-template-columns: 1fr; } .pack-grid .pack:not([open]) .blurb { display: block; -webkit-line-clamp: none; } }
.tag { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--sky); white-space: nowrap; }
.tag.free { background: #DDF3E4; color: #13703A; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.thumbs figure { margin: 0; }
.thumbs img { border-radius: 14px; aspect-ratio: 1; width: 100%; background: var(--sky); }
.thumbs figcaption { font-size: 14px; font-weight: 600; margin-top: 6px; color: var(--ink-soft); text-align: center; }

/* Photos */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
/* My Pictures: a camera snapping a photo that turns into a dot-to-dot, then a gallery. */
.photos { background: linear-gradient(180deg, #fff 0%, #FFF6EC 100%); }
.photos .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.photos .copy { display: grid; gap: 20px; min-width: 0; }
.how-photo { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.how-photo li { counter-increment: step; position: relative; padding-left: 46px; min-height: 34px; color: var(--ink-soft); }
.how-photo li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--ink); background: #F4A259; }
.how-photo li b { color: var(--ink); }
.camera { position: relative; margin: 0; display: grid; gap: 14px; }
.camera-body { background: #1d2030; border-radius: 34px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 12px; box-shadow: 0 30px 60px -24px rgba(38, 42, 59, .45); transform: rotate(-1.5deg); }
.viewfinder { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: #000; }
.viewfinder img { width: 100%; height: 100%; display: block; }
.camera-controls { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; padding: 8px 0; }
.camera-controls .mode { color: #FFC93C; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.camera-controls .shutter { width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #1d2030, 0 0 0 7px rgba(255, 255, 255, .85); animation: shutter 20s infinite; }
@keyframes shutter { 0%, 15.5% { transform: scale(1); } 16.5% { transform: scale(.82); } 18%, 100% { transform: scale(1); } }
.camera-controls .thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .8); }
.camera-controls .thumb img { width: 100%; height: 100%; }
.camera figcaption { text-align: center; color: var(--ink-soft); font-size: 15px; }
.sticker.quick { top: -14px; left: -10px; z-index: 2; background: #F4A259; color: var(--ink); }
.from-photos { margin-top: clamp(40px, 6vw, 72px); grid-template-columns: 1fr !important; gap: 22px !important; }
.from-photos-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.from-photos-head p { color: var(--ink-soft); margin: 0; }
.from-photos > ul:not(.ticks) { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.flip { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 10px; width: 100%; background: #fff; border-radius: var(--radius); padding: 10px 10px 14px; box-shadow: 0 1px 0 var(--line), 0 16px 30px -22px rgba(38, 42, 59, .4); position: relative; }
.flip img { grid-area: 1 / 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.flip .original { opacity: 0; transition: opacity .35s ease; }
.flip:hover .original, .flip:focus-visible .original, .flip[aria-pressed="true"] .original { opacity: 1; }
.flip:focus-visible { outline: 3px solid #F4A259; outline-offset: 3px; }
.flip span { font-family: var(--display); font-weight: 800; font-size: 18px; padding: 0 4px; }
.from-photos .ticks { margin-top: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) {
  .photos .wrap { grid-template-columns: 1fr; }
  .from-photos > ul:not(.ticks) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .from-photos .ticks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .camera-controls .shutter { animation: none; } .flip .original { transition: none; } }

/* Grown-ups */
.grownups { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.grownups .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grownups .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grownups .cards { grid-template-columns: 1fr; } }
.card { background: var(--sky); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.card .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--chip); margin-bottom: 6px; }
.card .icon svg { stroke: var(--ink); }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--chip); border-radius: 18px; box-shadow: 0 1px 0 var(--line); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--accent-text); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-section { background: #fff; }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); display: grid; gap: 10px; }
.faq ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq li b { color: var(--ink); }

/* Call to action and footer */
.cta { text-align: center; }
.cta .box { background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 64px) 24px; display: grid; gap: 18px; justify-items: center; }
.cta .box .lede { color: rgba(255,255,255,.88); }
.cta .pip-moment { width: 220px; height: auto; }
.cta .btn { box-shadow: none; }
.site-footer { padding: 40px 0 56px; font-size: 15px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

/* Text pages (privacy, support) */
.page { padding: clamp(32px, 6vw, 64px) 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 14px; }
.page .updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.prose { background: var(--chip); border-radius: 28px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 1px 0 var(--line); }
.prose h2 { font-size: 26px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .summary { background: var(--sky); border-radius: 18px; padding: 18px 22px; margin-bottom: 28px; }
.prose .summary ul { margin: 0; }
.help-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; list-style: none; padding: 0; }
.help-index a { display: inline-block; background: var(--chip); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 1px 0 var(--line); }
.contact { margin-top: 28px; background: var(--ink); color: #fff; border-radius: 28px; padding: 28px; display: grid; gap: 12px; }
.contact .btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}

/* Hero: an Expert painting tucked behind the iPad, for the older artists */
.hero-art .canvas-card { position: absolute; margin: 0; width: 46%; right: -6%; top: -8%; transform: rotate(7deg); background: #fff; padding: 8px 8px 0; border-radius: 6px; box-shadow: 0 18px 40px -22px rgba(38,42,59,.6); z-index: 0; }
.hero-art .canvas-card img { border-radius: 2px; aspect-ratio: 1; width: 100%; }
.hero-art .canvas-card figcaption { font-size: 12px; font-weight: 600; color: var(--ink-soft); padding: 6px 2px 8px; letter-spacing: .02em; }
.hero-art .ipad { position: relative; z-index: 1; width: 86%; }
.hero-art .sticker { z-index: 2; }
@media (max-width: 820px) { .hero-art .canvas-card { right: -2%; } }

/* Ages 2–7: the Pre-school demo */
.kids { background: #FFF8E6; }
.kids .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo-frame { background: #1d2030; padding: 14px; border-radius: 34px; box-shadow: 0 30px 60px -28px rgba(38, 42, 59, .5); display: grid; gap: 10px; max-width: 520px; width: 100%; justify-self: center; }
.demo-frame canvas { width: 100%; aspect-ratio: 1; border-radius: 20px; display: block; background: #fff; }
.demo-label { color: #ECE8F4; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 0 6px 2px; }
.demo-label .live { width: 8px; height: 8px; border-radius: 50%; background: var(--pip); box-shadow: 0 0 0 4px rgba(143,216,168,.3); }
.kids .copy { display: grid; gap: 18px; min-width: 0; }
.cues { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cues li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.cues b { display: block; }
.cues div { color: var(--ink-soft); }
.cues div b { color: var(--ink); }
.cue { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); position: relative; display: block; }
.cue.go::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--pip-face); box-shadow: 0 0 0 5px rgba(143,216,168,.35); }
.cue.star::after { content: ""; position: absolute; inset: 8px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.cue.arrow::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 4px; translate: 0 -50%; background: radial-gradient(circle, var(--ink-soft) 1.6px, transparent 2px) 0 50% / 7px 4px repeat-x; }
.cue.arrow::before { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border: solid var(--ink-soft); border-width: 2.5px 2.5px 0 0; transform: translateY(-50%) rotate(45deg); }
.cue.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 3px solid rgba(38,42,59,.55); }
@media (max-width: 820px) { .kids .wrap { grid-template-columns: 1fr; } }

/* Ages 7+: the dusk palette of the Artist and Expert levels */
.adults { background: var(--dusk); color: var(--dusk-ink); }
.adults .eyebrow { color: var(--dusk-accent); }
.adults .lede { color: var(--dusk-soft); }
.adult-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.board-pair { margin: 0; display: grid; gap: 14px; }
.board-pair .stack { position: relative; padding-bottom: 12%; }
.board-pair .painted { width: 78%; margin-left: auto; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.board-pair .board { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: 6px; border: 6px solid var(--dusk-chip); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); }
.board-pair figcaption { font-size: 13px; color: var(--dusk-soft); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.features li { color: var(--dusk-soft); border-top: 1px solid var(--dusk-line); padding-top: 14px; }
.features b { color: var(--dusk-ink); font-weight: 600; }
.mosaic { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mosaic img { aspect-ratio: 1; width: 100%; border-radius: 4px; }
@media (max-width: 860px) { .adult-grid { grid-template-columns: 1fr; } .mosaic { gap: 10px; } }
@media (max-width: 560px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pictures: the level switch */
.level-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--chip); border-radius: 14px; box-shadow: 0 1px 0 var(--line); justify-self: start; margin-top: 6px; }
.level-switch button { font: inherit; font-weight: 600; font-size: 15px; border: 0; background: none; color: var(--ink-soft); padding: 9px 14px; border-radius: 10px; cursor: pointer; min-height: 40px; }
.level-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.level-switch button[data-level="calm"][aria-pressed="true"], .level-switch button[data-level="masterpiece"][aria-pressed="true"] { background: var(--dusk); color: var(--dusk-ink); }

/* Prices */
.prices { background: var(--sky); }
.prices .card { background: var(--chip); }
.prices .card { position: relative; }
.prices .price { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--ink); }
.prices .card.best { background: #FFF4E0; outline: 3px solid var(--gold); }
.prices .cards.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 820px; }
.prices .card.best { background: #FFF4E0; }
