/* Drawing Tank website. Cream paper, DynaPuff headlines, Kalam notes, the app's crayon marks.
   The page stays cream in dark mode on purpose: it is a coloring page, like the store art. */
@font-face { font-family: "DynaPuff"; src: url("/fonts/dynapuff-latin.4e4874d49a.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("/fonts/kalam-bold-latin.1af9a92964.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #fff7e8;
  --paper-deep: #fbe8c4;
  --ink: #183f47;
  --ink-soft: #3e5b62;
  --teal: #00787d;
  --orange: #d4461b;
  --orange-deep: #9e3010;
  --sun: #f7c531;
  --sky: #4cb2e6;
  --grape: #9b5de5;
  --bubble: #f27db5;
  --lime: #86c84a;
  --bezel: #1d2a30;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--round); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; color: var(--paper); }
.defs { position: absolute; }
.nowrap { white-space: nowrap; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 0; }
.top .brand img { width: clamp(150px, 20vw, 210px); height: auto; }
.store-mini { font: 600 1rem/1 "DynaPuff", var(--round); color: var(--ink); text-decoration: none; padding: 11px 18px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.store-mini:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.foot { position: relative; background: var(--paper-deep); text-align: center; padding: 48px 16px 40px; }
.foot .brand img { width: 170px; height: auto; margin: 0 auto 18px; }
.foot nav { display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap; font: 600 1.125rem/1.4 "DynaPuff", var(--round); }
.foot nav a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.foot nav a:hover { color: var(--orange); }
.small { font-size: .875rem; color: var(--ink-soft); margin: 10px 0 0; }

/* Headlines: DynaPuff 600, each word a little tilted, like the store lettering */
.hl { font: 600 clamp(2.1rem, 5.4vw, 4.25rem)/1.08 "DynaPuff", var(--round); letter-spacing: -.01em; text-align: center; margin: 0 auto; max-width: 18ch; text-wrap: balance; color: var(--ink); }
.hl.small { font-size: clamp(1.9rem, 4vw, 3rem); }
.hl .w { display: inline-block; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); text-shadow: 0 .05em 0 rgb(24 63 71 / .16); }
.teal, .hl .teal { color: var(--teal); }
.orange, .hl .orange { color: var(--orange); }
.hl .u { position: relative; }
.hl .u::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -.16em; height: .3em; background: var(--u) center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path .75s cubic-bezier(.5, 0, .3, 1) .35s; pointer-events: none; }
.is-in .hl .u::after, .hero .hl .u::after { clip-path: inset(0 0 0 0); }
.hero .hl .u::after { animation: draw .8s cubic-bezier(.5, 0, .3, 1) 1.05s both; transition: none; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (scripting: none) { .hl .u::after { clip-path: none; } }
.u-orange { --u: url("/media/crayon-underline-orange.852c553861.webp"); }
.u-sky { --u: url("/media/crayon-underline-sky.194d48f73b.webp"); }
.u-teal { --u: url("/media/crayon-underline-teal.18e248bf84.webp"); }
.u-yellow { --u: url("/media/crayon-underline-yellow.3b5f71cba3.webp"); }
.u-pink { --u: url("/media/crayon-underline-pink.ef570e8129.webp"); }

.note { font: 700 clamp(1.15rem, 2.2vw, 1.45rem)/1.3 "Kalam", cursive; color: var(--teal); text-align: center; margin: 14px auto 0; transform: rotate(-1.5deg); max-width: 34ch; text-wrap: balance; }
.note.big { font-size: clamp(1.3rem, 2.8vw, 1.9rem); margin-top: 18px; max-width: 46ch; }
.lede { max-width: 52ch; margin: clamp(26px, 4vw, 44px) auto 0; text-align: center; font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--ink-soft); text-wrap: pretty; }
.body { max-width: 58ch; margin: 28px auto 0; text-align: center; font-size: 1.125rem; text-wrap: pretty; }
.fine { max-width: 62ch; margin: 22px auto 0; text-align: center; font-size: .95rem; color: var(--ink-soft); text-wrap: pretty; }

/* Store button. Apple's official badge replaces it when Site/web/media/badge/ holds the file. */
.store-btn { display: inline-flex; align-items: center; gap: .5em; font: 600 clamp(1.1rem, 2vw, 1.3rem)/1 "DynaPuff", var(--round); color: #fff; background: var(--orange); text-decoration: none; padding: 20px 32px 21px; border-radius: 999px; box-shadow: 0 6px 0 var(--orange-deep), 0 14px 26px -10px rgb(158 48 16 / .55); transition: transform .15s ease, box-shadow .15s ease; }
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 var(--orange-deep), 0 18px 30px -12px rgb(158 48 16 / .55); }
.store-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-deep); }
.store-btn svg { width: 1.1em; height: 1.1em; }
.store-badge img { height: 56px; width: auto; }

/* Sections */
section { position: relative; }
.hero { padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(16px, 3vw, 36px); }
.hl-hero { font-size: clamp(2.7rem, 7.6vw, 6.4rem); line-height: 1.02; max-width: none; }
.hl-hero .line { display: block; }
.hl-hero .w { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes pop { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }
.get { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: clamp(26px, 4vw, 44px); }
.get .note { display: flex; align-items: center; gap: 6px; margin-top: 12px; transform: rotate(-2deg); }
.note-arrow { width: 56px; height: auto; transform: scaleX(-1) rotate(-160deg); }
.feature { padding: clamp(56px, 9vw, 116px) clamp(16px, 4vw, 40px) 0; }
.finale { padding: clamp(64px, 9vw, 120px) 16px 0; text-align: center; overflow: hidden; }
.finale .store-btn { margin-top: 30px; }

/* Stages: everything inside is placed in percent of the stage, so a stage scales as one picture */
.stage { position: relative; width: 100%; max-width: 1180px; margin: clamp(26px, 4vw, 48px) auto 0; aspect-ratio: var(--ar); container-type: inline-size; }
.stage > * { position: absolute; margin: 0; }
.device { container-type: inline-size; }
.device .screen { position: relative; overflow: hidden; background: #000; box-sizing: content-box; border: 2.5cqw solid var(--bezel); box-shadow: 0 3cqw 5cqw -2cqw rgb(24 63 71 / .5), 0 0 0 .3cqw #3b4a51; }
.device .screen > img, .device .screen > video { width: 100%; height: 100%; object-fit: cover; }
.phone .screen { border-radius: 9.5cqw; aspect-ratio: 2622 / 1206; }
.phone .screen::before { content: ""; position: absolute; z-index: 2; left: 1.4%; top: 50%; width: 2.2%; height: 27%; translate: 0 -50%; border-radius: 99px; background: #0a0f12; }
.phone.portrait .screen { aspect-ratio: 1206 / 2622; border-radius: 18cqw; border-width: 4.6cqw; }
.phone.portrait .screen::before { left: 50%; top: 1.4%; width: 27%; height: 2.2%; translate: -50% 0; }
.tablet .screen { aspect-ratio: 4 / 3; border-radius: 5.5cqw; border-width: 2.8cqw; }
.tv { container-type: inline-size; }
.tv .screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1.1cqw solid var(--bezel); border-radius: 1.2cqw; background: #000; box-shadow: 0 2cqw 3cqw -1.5cqw rgb(24 63 71 / .5); }
.tv .screen > img { width: 100%; height: 100%; object-fit: cover; }
.tv .screen > img.keep-bottom { object-position: 50% 100%; }
.tv-stand { position: relative; display: block; margin: 0 auto; width: 30%; height: 3.2cqw; background: var(--bezel); clip-path: polygon(38% 0, 62% 0, 66% 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 34% 70%); }
.cut { left: var(--x); top: var(--yy); width: var(--w); height: auto; filter: drop-shadow(0 1.2cqw 1cqw rgb(24 63 71 / .28)); z-index: 4; }
.splat { z-index: 0; opacity: .95; }
.splat use { fill: currentColor; }
.s-yellow { color: var(--sun); } .s-pink { color: var(--bubble); } .s-sky { color: var(--sky); } .s-lime { color: var(--lime); } .s-purple { color: var(--grape); }
.dash path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 16 14; }

/* Video pause/play */
.video-wrap .vid-toggle { position: absolute; z-index: 3; right: 3.5%; bottom: 6%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); box-shadow: 0 2px 10px rgb(0 0 0 / .25); display: grid; place-items: center; cursor: pointer; padding: 0; }
.vid-toggle svg { width: 20px; height: 20px; }
.vid-toggle path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vid-toggle .i-play { fill: var(--ink); display: none; }
.vid-toggle[data-state="paused"] .i-play { display: block; }
.vid-toggle[data-state="paused"] .i-pause { display: none; }

@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -.9cqw; rotate: -2.5deg; } }
.bob { animation: bob 4.4s ease-in-out infinite; }
.bob.slow { animation-duration: 5.6s; animation-delay: -1.8s; }

/* Stage: the 1.1 preview */

/* Stage: nearby */
.stage-nearby { --ar: 1180 / 560; }
.stage-nearby .host { left: 24%; top: 3%; width: 52%; z-index: 1; }
.stage-nearby .s-lime { left: 70%; top: -3%; width: 12%; }
.stage-nearby .s-purple { left: 69%; top: 78%; width: 10%; }
.stage-nearby.v11 .host { left: 25%; top: 6%; width: 50%; }
.stage-nearby .guest { width: 16.5%; top: 22%; z-index: 2; }
.stage-nearby .g1 { left: 4%; rotate: -7deg; }
.stage-nearby .g2 { left: 79.5%; rotate: 7deg; }
.stage-nearby .join-card { left: 66%; top: 60%; width: 11%; rotate: 5deg; z-index: 3; border-radius: 1.6cqw; box-shadow: 0 1cqw 2cqw -.5cqw rgb(24 63 71 / .5); }
.stage-nearby.v11 .s-yellow { left: 18%; top: 72%; width: 10%; }

/* Stage: online */
.stage-online { --ar: 1180 / 500; }
.stage-online .t-left { left: 2%; top: 6%; width: 43%; rotate: -4deg; z-index: 1; }
.stage-online .p-right { left: 54%; top: 30%; width: 44%; rotate: 4deg; z-index: 1; }
.stage-online .d-top { left: 30%; top: 0; width: 34%; z-index: 3; }
.stage-online .d-top path { stroke: var(--grape); }
.stage-online .d-bottom { left: 34%; top: 80%; width: 30%; }
.stage-online .d-bottom path { stroke: #f08a2c; }
.stage-online .s-pink { left: 86%; top: 6%; width: 11%; }

/* Stage: big screen */
.stage-tv { --ar: 1180 / 520; }
.stage-tv .tv-phone { left: 0; top: 36%; width: 39%; rotate: -6deg; z-index: 2; }
.stage-tv .tv { left: 40%; top: 3%; width: 58%; z-index: 1; }
.stage-tv .s-yellow { left: 90%; top: -3%; width: 10%; }

@keyframes peek { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -7%; rotate: 3deg; } }
.seasonal { display: flex; align-items: center; justify-content: center; gap: 18px; max-width: 720px; margin: 54px auto 0; padding: 18px 26px; background: #fff1c7; border-radius: 22px; rotate: -1deg; box-shadow: 0 12px 24px -18px rgb(24 63 71 / .5); }
.seasonal .cut { position: static; width: clamp(64px, 11vw, 100px); filter: drop-shadow(0 4px 4px rgb(24 63 71 / .25)); }
.seasonal p { margin: 0; font: 700 clamp(1.1rem, 2.2vw, 1.4rem)/1.3 "Kalam", cursive; text-align: center; }
.seasonal strong { color: var(--orange); }

/* Grown-ups */
.boring { margin-top: clamp(80px, 10vw, 130px); background: var(--paper-deep); padding: 0 clamp(16px, 4vw, 40px) clamp(56px, 7vw, 84px); }
.edge { position: absolute; left: 0; right: 0; top: -39px; width: 100%; height: 40px; }
.edge path { fill: var(--paper-deep); }
.boring-inner { max-width: 940px; margin: 0 auto; padding-top: clamp(28px, 4vw, 44px); }
.checks { list-style: none; padding: 0; margin: 34px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; max-width: 860px; }
.checks li { position: relative; padding-left: 46px; font: 500 1.15rem/1.4 "DynaPuff", var(--round); }
.checks li::before { content: ""; position: absolute; left: 0; top: -2px; width: 34px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M5 18c4 3 7 7 9 11 4-9 10-18 16-24' fill='none' stroke='%2300787d' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.boring .body { margin-top: 30px; }

/* Finale: critters peek over the footer */
.peekers { display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 2.4vw, 34px); margin-top: clamp(40px, 6vw, 70px); line-height: 0; }
.peekers img { height: clamp(64px, 10vw, 124px); width: auto; transform-origin: 50% 100%; }
@media (max-width: 560px) { .peekers img:nth-child(n+5) { display: none; } }
.is-in .peekers img { animation: peekup .7s cubic-bezier(.3, 1.5, .5, 1) var(--d) both, wobble 3.8s ease-in-out calc(var(--d) + .8s) infinite; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 50% { rotate: -3deg; } }
@keyframes peekup { from { translate: 0 105%; } to { translate: 0 0; } }
@media (scripting: enabled) { .finale:not(.is-in) .peekers img { translate: 0 110%; } }

/* Phones: each stage gets its own tighter arrangement */
@media (max-width: 760px) {
  .store-mini { padding: 9px 14px; font-size: .9rem; }
  .stage-nearby { --ar: 1 / .96; }
  .stage-nearby .host, .stage-nearby.v11 .host { left: 3%; top: 16%; width: 94%; }
  .stage-nearby .arrow { display: none; }
  .stage-nearby.v11 { --ar: 1 / 1.25; }
  .stage-nearby.v11 .host { top: 11%; }
  .stage-nearby .guest { width: 24%; top: 51%; }
  .stage-nearby .g1 { left: 0; } .stage-nearby .g2 { left: 76%; }
  .stage-nearby .join-card { left: 40%; top: 66%; width: 19%; }
  .stage-nearby.v11 .cut:not(.slow) { --x: 0% !important; --yy: 0% !important; --w: 24% !important; }
  .stage-nearby.v11 .cut.slow { --x: 76% !important; --yy: 0% !important; --w: 23% !important; }
  .stage-nearby .s-lime { left: 80%; width: 20%; } .stage-nearby .s-purple, .stage-nearby.v11 .s-yellow { left: 0; top: 84%; width: 18%; }
  .stage-online { --ar: 1 / 1.05; }
  .stage-online .t-left { left: 0; top: 2%; width: 74%; rotate: -4deg; }
  .stage-online .p-right { left: 20%; top: 58%; width: 80%; rotate: 4deg; }
  .stage-online .dash { display: none; }
  .stage-online .cut.bob:not(.slow) { --x: 72% !important; --yy: 22% !important; --w: 27% !important; }
  .stage-online .cut.slow { --x: 2% !important; --yy: 66% !important; --w: 20% !important; }
  .stage-tv { --ar: 1 / 1.02; }
  .stage-tv .tv { left: 1%; top: 3%; width: 98%; }
  .stage-tv .tv-phone { left: 0; top: 58%; width: 80%; rotate: -5deg; }
  .stage-tv .cut { --x: 70% !important; --yy: 50% !important; --w: 30% !important; }
  .checks { grid-template-columns: 1fr; }
  .seasonal { gap: 10px; padding: 14px 14px; }
}

/* Reduced motion: everything is shown at rest */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hl .u::after { clip-path: none !important; }
  .peekers img { translate: 0 0 !important; }
}

/* Plain pages: privacy, support, join, 404 */
.doc main, main.doc { max-width: 760px; margin: 28px auto 64px; padding: clamp(24px, 6vw, 56px); background: #fff; border-radius: 30px; box-shadow: 0 18px 50px -30px rgb(24 63 71 / .45); }
.doc-wrap { padding: 0 clamp(12px, 3vw, 24px); }
.doc h1 { font: 600 clamp(2.1rem, 6vw, 3.1rem)/1.1 "DynaPuff", var(--round); margin: 8px 0 18px; }
.doc h2 { font: 600 1.5rem/1.25 "DynaPuff", var(--round); margin: 36px 0 8px; }
.doc h3 { font: 600 1.15rem/1.3 "DynaPuff", var(--round); margin: 26px 0 4px; }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.65; }
.doc .tag { font: 700 1.2rem/1 "Kalam", cursive; color: var(--teal); margin: 0; }
.doc .muted { color: var(--ink-soft); }
.doc nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding-top: 22px; border-top: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); font: 600 1.05rem/1.4 "DynaPuff", var(--round); }
.doc code { overflow-wrap: anywhere; font-size: .95em; }
.doc .button { display: block; border: 0; border-radius: 20px; padding: 18px 24px; margin: 14px 0; text-decoration: none; text-align: center; font: 600 1.2rem/1.2 "DynaPuff", var(--round); min-height: 60px; background: var(--orange); color: #fff; box-shadow: 0 5px 0 var(--orange-deep); }
.doc .button.secondary { background: #e6f4f4; color: var(--teal); box-shadow: 0 5px 0 #b9dcdc; }
.doc [aria-disabled="true"] { opacity: .55; }
[hidden] { display: none !important; }
.lost { text-align: center; }
.lost img { width: 160px; margin: 0 auto 8px; animation: peek 4.2s ease-in-out infinite; }

/* ---------- Round 2: the living demo (hero) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.demo { max-width: 1180px; margin: clamp(22px, 4vw, 44px) auto 0; }
.stage-demo { --ar: 1180 / 548; margin-top: 0; }
.demo-tv { left: 26%; top: 0; width: 74%; z-index: 1; }
.demo-tv .screen { border-radius: 1.4cqw; }
.demo-tv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-pop { position: absolute; left: 3%; top: 5%; margin: 0; padding: .35em .8em .45em; border-radius: 999px; background: #fff; color: var(--ink); font: 700 clamp(.95rem, 2.4cqw, 1.6rem)/1 "Kalam", cursive; box-shadow: 0 .6cqw 1.6cqw rgb(0 0 0 / .25); opacity: 0; scale: .6; rotate: -3deg; transition: opacity .25s ease, scale .45s cubic-bezier(.3, 1.6, .5, 1); }
.tv-pop.show { opacity: 1; scale: 1; }
.stage-demo .s-yellow { left: 90%; top: -5%; width: 11%; }
.stage-demo .s-sky { left: -2%; top: 78%; width: 10%; }
.page-card { --p: 0; --go-x: 170%; --go-y: -18%; z-index: 3; transition: translate .9s cubic-bezier(.5, 0, .7, .4), scale .9s cubic-bezier(.5, 0, .7, .4), opacity .45s ease, left .7s ease, top .7s ease, width .7s ease, rotate .7s ease; opacity: 0; translate: -25% 12%; scale: .9; }
.page-card.c1, .page-card.c2 { left: 2%; top: 17%; width: 23%; rotate: -4deg; }
.page-card.c3 { left: 0; top: 2%; width: 19%; rotate: -6deg; }
.page-card.c4 { left: 7%; top: 47%; width: 19%; rotate: 5deg; }
.page-card[data-state="on"] { opacity: 1; translate: 0 0; scale: 1; }
.page-card[data-state="go"] { opacity: 0; translate: var(--go-x) var(--go-y); scale: .22; transition: translate 1.1s cubic-bezier(.45, 0, .8, .5), scale 1.1s cubic-bezier(.45, 0, .8, .5), opacity .4s ease .7s; }
.page-card[data-state="fan"] { opacity: 1; translate: 0 0; scale: 1; width: 12.5%; --p: 1 !important; }
.page-card.c1[data-state="fan"] { left: 1%; top: 10%; rotate: -7deg; }
.page-card.c2[data-state="fan"] { left: 12.5%; top: 16%; rotate: 4deg; }
.page-card.c3[data-state="fan"] { left: 2%; top: 50%; rotate: 3deg; }
.page-card.c4[data-state="fan"] { left: 13%; top: 54%; rotate: -5deg; }
.paper { position: relative; background: #fff; padding: 5.5%; border-radius: 9%/9%; box-shadow: 0 1.2cqw 2.4cqw -1cqw rgb(24 63 71 / .5); }
.paper img { width: 100%; height: auto; border-radius: 5%; display: block; }
.paper .paint { position: absolute; left: 5.5%; top: 5.5%; width: 89%;
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--p) * 140% - 40%), transparent calc(var(--p) * 140% - 8%));
  mask-image: linear-gradient(100deg, #000 calc(var(--p) * 140% - 40%), transparent calc(var(--p) * 140% - 8%)); }
.crayon { position: absolute; width: 11%; left: calc(4% + var(--p) * 84%); top: 34%; rotate: 32deg; translate: 0 calc(sin(var(--p) * 40rad) * 60%); opacity: 0; transition: opacity .3s ease; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .25)); }
.page-card.coloring .crayon { opacity: 1; }
.crayon .body { fill: var(--ink); } .crayon .tip { fill: color-mix(in srgb, var(--ink) 80%, #000); } .crayon .band { fill: rgb(255 255 255 / .55); }
.tag { position: absolute; z-index: 2; left: -6%; top: -9%; padding: .15em .7em .3em; background: var(--ink); color: #fff; font: 700 clamp(.85rem, 1.8cqw, 1.35rem)/1.1 "Kalam", cursive; border-radius: .5em; rotate: -6deg; box-shadow: 0 2px 6px rgb(0 0 0 / .2); }
.page-card[data-state="fan"] .tag { font-size: clamp(.7rem, 1.3cqw, 1rem); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px auto 0; max-width: 1060px; padding: 0 2%; flex-wrap: wrap; }
.demo-caption { margin: 0; font: 700 clamp(1.25rem, 2.6vw, 1.85rem)/1.2 "Kalam", cursive; color: var(--teal); min-height: 2.4em; display: flex; align-items: center; flex: 1 1 320px; rotate: -1deg; }
.demo-controls { display: flex; align-items: center; gap: 10px; }
.demo-chips { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.demo-chips button { width: 54px; height: 54px; padding: 3px; border-radius: 16px; border: 3px solid transparent; background: #fff; cursor: pointer; box-shadow: 0 3px 8px rgb(24 63 71 / .2); opacity: .45; filter: grayscale(.85); transition: opacity .3s, filter .3s, transform .3s; }
.demo-chips button img { width: 100%; height: 100%; border-radius: 11px; }
.demo-chips button.lit { opacity: 1; filter: none; }
.demo-chips button.now { border-color: var(--orange); transform: translateY(-3px) rotate(-3deg); }
.demo-toggle { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgb(24 63 71 / .25); display: grid; place-items: center; cursor: pointer; padding: 0; }
.demo-toggle svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .stage-demo { --ar: 1 / 1.08; }
  .demo-tv { left: 0; top: 0; width: 100%; }
  .page-card { --go-x: 20%; --go-y: -150%; }
  .page-card.c1, .page-card.c2 { left: 24%; top: 58%; width: 50%; rotate: -4deg; }
  .page-card.c3 { left: 3%; top: 61%; width: 43%; rotate: -5deg; }
  .page-card.c4 { left: 54%; top: 63%; width: 43%; rotate: 5deg; }
  .page-card[data-state="fan"] { width: 23%; }
  .page-card.c1[data-state="fan"] { left: 2%; top: 68%; } .page-card.c2[data-state="fan"] { left: 26%; top: 71%; }
  .page-card.c3[data-state="fan"] { left: 51%; top: 68%; } .page-card.c4[data-state="fan"] { left: 75%; top: 71%; }
  .stage-demo .s-yellow { left: 80%; top: 52%; width: 20%; } .stage-demo .s-sky { left: 0; top: 52%; width: 18%; }
  .tv-pop { font-size: .95rem; }
  .demo-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .demo-caption { justify-content: center; text-align: center; flex: none; }
  .demo-controls { justify-content: center; }
  .demo-chips button { width: 50px; height: 50px; }
}

/* ---------- Round 2: the world picker ---------- */
.picker { max-width: 1180px; margin: clamp(28px, 4vw, 48px) auto 0; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 10px 6px 18px; }
.tabs.many { max-width: 790px; margin: 0 auto; }
.tab { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 112px; padding: 6px 6px 8px; border: 3px solid transparent; border-radius: 18px; background: #fff; box-shadow: 0 6px 14px -8px rgb(24 63 71 / .5); cursor: pointer; font: 700 1rem/1.1 "Kalam", cursive; color: var(--ink); transition: transform .2s ease, border-color .2s ease; }
.tab img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; }
.tab:hover { transform: translateY(-2px) rotate(-1.5deg); }
.tab[aria-selected="true"] { border-color: var(--orange); transform: translateY(-4px) rotate(-2deg); }
.panel { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; margin-top: 18px; }
.world-pic { position: relative; margin: 0; background: #fff; padding: 10px; border-radius: 24px; rotate: -1.5deg; box-shadow: 0 20px 36px -22px rgb(24 63 71 / .6); }
.world-pic > img:first-child { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 100%; border-radius: 16px; }
.roster h3 { font: 600 clamp(1.7rem, 3.2vw, 2.4rem)/1.1 "DynaPuff", var(--round); margin: 0; }
.roster .meta { margin: 6px 0 16px; font: 700 1.15rem/1.3 "Kalam", cursive; color: var(--teal); }
.roster .meta span { display: block; color: var(--orange); }
.critters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px; }
.critters li { display: flex; }
.critter { flex: 1; display: flex; flex-direction: column; align-items: center; background: #fff; border: 3px solid transparent; border-radius: 16px; padding: 6px 4px 8px; text-align: center; box-shadow: 0 6px 14px -10px rgb(24 63 71 / .55); font: 700 .92rem/1.15 "Kalam", cursive; color: var(--ink); }
button.critter { cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s ease, border-color .18s ease; }
button.critter:hover { transform: scale(1.08) rotate(-2deg); box-shadow: 0 12px 20px -12px rgb(24 63 71 / .6); }
button.critter[aria-pressed="true"] { border-color: var(--orange); }
.critters li:nth-child(odd) .critter { rotate: -1.5deg; } .critters li:nth-child(even) .critter { rotate: 1.2deg; }
.critter img { width: 72px; height: 72px; margin: 0 auto 4px; border-radius: 12px; }
.stand { position: absolute; left: 50%; bottom: 9%; height: 46%; width: 62%; translate: -50% 0; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.stand .ground { position: absolute; bottom: -3%; left: 50%; width: 46%; height: 9%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(20 30 30 / .38), rgb(20 30 30 / 0)); }
.hero-critter { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgb(24 63 71 / .25)); }
.hero-critter.swap { animation: critter-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes critter-in { from { opacity: 0; scale: .6; translate: 0 12%; } to { opacity: 1; scale: 1; translate: 0 0; } }
.roster h3 .new { display: inline-block; margin-left: .4em; font: 700 1.1rem/1 "Kalam", cursive; color: #fff; background: var(--orange); padding: .25em .55em .35em; border-radius: .6em; rotate: -6deg; vertical-align: middle; }
.panel.is-new .critters li { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@media (max-width: 760px) {
  .tabs, .tabs.many { max-width: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 10px 16px 18px; scrollbar-width: none; }
  .tab { width: 96px; font-size: .9rem; }
  .panel { grid-template-columns: 1fr; }
  .critters { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .critter { font-size: .8rem; padding: 5px 2px 7px; }
  .critter img { width: 54px; height: 54px; }
}

/* Apple's badge: unaltered artwork, clear space of a quarter of its height, no effects. */
.store-badge { display: inline-block; padding: 14px; line-height: 0; }
.store-badge img { height: 56px; width: auto; }
.store-badge:hover { transform: none; }
.roster .meta span.incl { color: var(--ink-soft); }
.foot .small { max-width: 72ch; margin-inline: auto; }

.hl .aside { display: inline-block; font: 700 .5em/1 "Kalam", cursive; color: var(--teal); rotate: -4deg; translate: 0 -.25em; letter-spacing: 0; }
.boring .hl { max-width: 26ch; }

/* ---------- Round 3: the hero progression (phone alone -> mirrored to a TV -> friends -> worlds) ---------- */
.hero-demo { max-width: 1360px; margin: clamp(22px, 4vw, 44px) auto 0; }
.stage-hero { --ar: 1360 / 690; max-width: none; margin-top: 0; }
.stage-hero > figure { transition: left .9s cubic-bezier(.6, 0, .25, 1), top .9s cubic-bezier(.6, 0, .25, 1), width .9s cubic-bezier(.6, 0, .25, 1), rotate .9s ease, opacity .6s ease, scale .9s cubic-bezier(.6, 0, .25, 1); }
.stage-hero .h-tv { left: 27%; top: 1%; width: 73%; opacity: 0; scale: .8; z-index: 1; }
.stage-hero .h-phone { left: 10%; top: 3%; width: 80%; z-index: 2; }
.stage-hero .h-guest { width: 12%; top: 46%; opacity: 0; scale: .7; z-index: 3; }
.stage-hero .g1 { left: 70%; rotate: -6deg; } .stage-hero .g2 { left: 86%; rotate: 7deg; }
.stage-hero[data-state="mirror"] .h-tv, .stage-hero[data-state="guests"] .h-tv { opacity: 1; scale: 1; }
.stage-hero[data-state="mirror"] .h-phone, .stage-hero[data-state="guests"] .h-phone { left: -1%; top: 62%; width: 28%; rotate: -5deg; }
.stage-hero .h-phone .screen::before, .stage-hero .h-guest .screen::before { display: none; }
.stage-hero[data-state="guests"] .h-guest { opacity: 1; scale: 1; }
.stage-hero .s-yellow { left: 90%; top: -4%; width: 10%; } .stage-hero .s-sky { left: -2%; top: 80%; width: 10%; }
.h-tv video, .h-phone video, .h-guest video { width: 100%; height: 100%; object-fit: cover; display: block; }
.where { position: absolute; z-index: 3; inset: auto 0 40% 0; margin: 0; text-align: center; font: 600 clamp(1.4rem, 7cqw, 4.2rem)/1 "DynaPuff", var(--round); color: #fff; text-shadow: 0 .06em 0 rgb(0 0 0 / .35), 0 0 .5em rgb(0 0 0 / .25); opacity: 0; scale: .7; transition: opacity .35s ease, scale .5s cubic-bezier(.3, 1.6, .5, 1); }
.stage-hero.where-on .where { opacity: 1; scale: 1; }
@media (max-width: 760px) {
  .stage-hero { --ar: 1 / .98; }
  .stage-hero .h-phone { left: 0; top: 16%; width: 100%; }
  .stage-hero .h-tv { left: 0; top: 0; width: 100%; }
  .stage-hero[data-state="mirror"] .h-phone, .stage-hero[data-state="guests"] .h-phone { left: 0; top: 62%; width: 56%; rotate: -4deg; }
  .stage-hero .h-guest { width: 20%; top: 56%; }
  .stage-hero .g1 { left: 58%; } .stage-hero .g2 { left: 80%; }
  .stage-hero .s-yellow { left: 82%; top: 88%; width: 16%; }
}

@media (max-width: 760px) {
  .hero-demo .demo-bar { flex-direction: row; align-items: center; justify-content: center; gap: 12px; }
  .hero-demo .demo-caption { flex: 0 1 auto; min-height: 0; }
  .stage-hero[data-state="mirror"] .h-phone, .stage-hero[data-state="guests"] .h-phone { top: 64%; }
}

/* ---------- What is Drawing Tank? + FAQ (lighter than the feature sections) ---------- */
.about .about-text { max-width: 720px; margin: 26px auto 0; font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.about .about-text strong { color: var(--orange); font-weight: 700; white-space: nowrap; }
.faq { max-width: 720px; margin: 34px auto 0; border-top: 2px dashed color-mix(in srgb, var(--teal) 30%, transparent); }
.faq details { border-bottom: 2px dashed color-mix(in srgb, var(--teal) 30%, transparent); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; min-height: 56px; font: 600 clamp(1.02rem, 1.3vw, 1.12rem)/1.35 "DynaPuff", var(--round); color: var(--ink); border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e6f4f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M8.5 15.5c4-.6 8.6-.4 13 .2M15.2 8.4c.4 4.3.3 8.8-.3 13.2' fill='none' stroke='%2300787d' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; transition: rotate .2s ease, background-color .2s ease; }
.faq details[open] summary::after { rotate: 45deg; background-color: #fde3d6; }
.faq summary:hover { color: var(--teal); }
.faq summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.faq details p { margin: 0; padding: 0 44px 20px 4px; font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); }
.faq details p a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: .18em; }
@media (max-width: 560px) { .faq details p { padding-right: 4px; } .about .about-text { font-size: 1.05rem; } }
