/* Draw With Kids — the site's one stylesheet. The look is the app's screenshots:
   coloured paper with grain, a ghost-shaped speech bubble for headlines, white
   crayon doodles in the margins, a scalloped ghost hem between sections. */

@font-face { font-family: "Nunito"; font-weight: 400 900; font-style: normal; font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400 900; font-style: normal; font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1c1c21;
  --soft: #55586a;
  --cream: #fffdf6;
  --yellow: #ffd54f;
  --blue: #8fcbff;
  --pink: #ff9fc3;
  --green: #86ddb4;
  --orange: #ffb570;
  --purple: #bfa9ff;
  --accent: #2f7df6;
  --red: #e33835;
  --leaf: #2fa655;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

/* ---- Coloured paper with grain ---- */
.paper { position: relative; background: var(--paper, var(--yellow)); isolation: isolate; }
.paper::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/grain.png"); mix-blend-mode: multiply; opacity: .3; pointer-events: none; }
.y { --paper: var(--yellow); } .b { --paper: var(--blue); } .p { --paper: var(--pink); }
.g { --paper: var(--green); } .o { --paper: var(--orange); } .v { --paper: var(--purple); }

/* ---- Crayon doodles ---- */
.doodle { position: absolute; left: var(--x); top: var(--y); width: var(--s, 90px); aspect-ratio: 1; opacity: .8;
  transform: rotate(var(--r, 0deg)); background: center / contain no-repeat; pointer-events: none; z-index: -1; }
.doodle.star { background-image: url("img/doodle-star.svg"); } .doodle.heart { background-image: url("img/doodle-heart.svg"); }
.doodle.spiral { background-image: url("img/doodle-spiral.svg"); } .doodle.squiggle { background-image: url("img/doodle-squiggle.svg"); }
.doodle.loop { background-image: url("img/doodle-loop.svg"); } .doodle.sun { background-image: url("img/doodle-sun.svg"); }
/* Where the layout stacks, corner doodles would sit on the text. */
@media (max-width: 900px) { .doodle.hide-sm { display: none; } }

/* ---- Ghost hem under a coloured section ---- */
.hem { position: absolute; left: 0; right: 0; bottom: -27px; height: 28px; background: var(--paper); z-index: 2; pointer-events: none;
  -webkit-mask: url("img/hem.svg") repeat-x 0 0 / 70px 28px; mask: url("img/hem.svg") repeat-x 0 0 / 70px 28px; }
.has-hem { margin-bottom: 27px; }

/* ---- Top bar ---- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.65); }

/* ---- Ghost-bubble headline ---- */
.bubble { display: inline-block; text-align: center; position: relative;
  background: url("img/ghost-badge-1.svg") center / 100% 100% no-repeat; padding: 2.7rem clamp(1.6rem, 5vw, 3.2rem) 3.2rem;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); transform: rotate(-2.2deg); max-width: 100%; }
.bubble.two { background-image: url("img/ghost-badge-2.svg"); transform: rotate(2deg); }
.bubble.three { background-image: url("img/ghost-badge-3.svg"); transform: rotate(-1.5deg); }
.bubble .l1 { display: block; font-weight: 800; font-size: clamp(1.4rem, 4.3vw, 2.6rem); line-height: 1.1; margin-top: .2em; }
.bubble .l2 { display: block; font-weight: 900; font-size: clamp(2rem, 6.4vw, 4rem); line-height: 1.05;
  color: var(--accent); text-shadow: -.05em -.04em 0 rgba(0,0,0,.11); }
.bubble.sm { padding: 2.5rem clamp(1.6rem, 4vw, 2.8rem) 3rem; }
.bubble.sm .l1 { font-size: clamp(1.2rem, 3.4vw, 1.9rem); } .bubble.sm .l2 { font-size: clamp(1.7rem, 5.4vw, 3rem); }
/* flip: the large coloured line first, the small line beneath it */
.bubble.flip { display: inline-flex; flex-direction: column-reverse; align-items: center; padding: 3.1rem clamp(2rem, 5vw, 3.4rem) 3.6rem; }
.bubble.flip .l1 { margin: .3em 0 0; font-size: clamp(1.15rem, 3.2vw, 1.7rem); }
.bubble.flip .l2 { line-height: 1.1; }
.l2.red { color: var(--red); } .l2.leaf { color: var(--leaf); } .l2.purple { color: #8f4dd9; } .l2.orange { color: #f08a0c; }

/* ---- Hero ---- */
.hero { padding: 52px 0 90px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero-copy { text-align: center; }
.hero-copy .lede { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; margin: 26px auto 24px; max-width: 30ch; }
.stores { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.stores a { display: block; line-height: 0; border-radius: 12px; transition: transform .15s ease; }
.stores a:hover { transform: translateY(-3px) rotate(-1deg); }
/* The global img { max-width: 100% } would squeeze these, since the link shrinks to its picture: keep their proportions. */
.stores img { max-width: none; flex: none; }
.stores .apple img { height: 56px; width: auto; }
.stores .google { margin: -13px -14px; }
.stores .google img { height: 83px; width: auto; }
.hero-note { font-size: .95rem; font-weight: 700; margin-top: 16px; }
.hero-art { position: relative; justify-self: center; width: min(78vw, 360px); }
/* The screenshot has its own headline bubble, which repeats the page's: show only the phone. */
.hero-art img { border-radius: 34px; box-shadow: 0 30px 50px rgba(40, 30, 0, .28); transform: rotate(3deg); aspect-ratio: 900 / 1395; object-fit: cover; object-position: bottom; width: 100%; }
@media (min-width: 900px) {
  .hero { padding: 84px 0 110px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
  .hero-copy { text-align: left; } .hero-copy .lede { margin-left: 0; }
  .hero-copy .stores { justify-content: flex-start; }
}

/* ---- Generic sections ---- */
section { position: relative; }
.sec { padding: 84px 0 70px; }
.sec h2.title { font-size: clamp(1.9rem, 4.6vw, 3rem); text-align: center; }
.sec .sub { text-align: center; font-size: 1.15rem; font-weight: 700; max-width: 46ch; margin: 0 auto 44px; color: var(--soft); }
.paper .sub { color: rgba(28,28,33,.78); }

/* How it works */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { background: #fff; border-radius: 30px; padding: 28px 26px 30px; box-shadow: 0 12px 28px rgba(0,0,0,.12); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--paper); font-weight: 900; font-size: 1.5rem; border: 3px solid var(--ink); margin-bottom: 14px; }
.step h3 { font-size: 1.4rem; } .step p { margin: 0; color: var(--soft); font-weight: 600; }

/* Features */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.feature { border-radius: 30px; padding: 30px 28px 32px; box-shadow: 0 12px 28px rgba(0,0,0,.14); overflow: hidden; min-height: 220px; }
.feature h3 { font-size: 1.45rem; max-width: 14ch; } .feature p { margin: 0; font-weight: 700; color: rgba(28,28,33,.82); position: relative; z-index: 1; }
.feature .doodle { opacity: .9; }

/* Screenshots */
.posters { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px max(20px, calc((100vw - var(--max)) / 2)) 38px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.posters::-webkit-scrollbar { display: none; }
.poster { flex: 0 0 auto; width: clamp(230px, 62vw, 310px); scroll-snap-align: center; margin: 0; }
.poster img { border-radius: 30px; box-shadow: 0 18px 34px rgba(0,0,0,.22); width: 100%; }
.poster figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.arrows { display: flex; justify-content: center; gap: 12px; margin-top: -8px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font: 900 1.6rem/1 "Nunito", sans-serif; cursor: pointer; color: var(--ink); }
.arrow:hover { transform: scale(1.07); }
.arrow:focus-visible, .nav a:focus-visible, .stores a:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }

/* Parents */
.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.flip .split-art { order: -1; } }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; margin-top: 2px; }
.split-art img { border-radius: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.2); margin: 0 auto; max-width: min(100%, 420px); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
details { background: #fff; border-radius: 22px; box-shadow: 0 8px 20px rgba(0,0,0,.1); padding: 4px 24px; }
summary { cursor: pointer; font-weight: 900; font-size: 1.15rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--soft); font-weight: 600; padding-bottom: 12px; margin: 0; }

/* Blog cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.post-card { display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 12px 28px rgba(0,0,0,.14); transition: transform .15s ease; }
.post-card:hover { transform: translateY(-5px) rotate(-.4deg); }
.post-card .cover { min-height: 170px; padding: 24px; display: flex; align-items: flex-end; }
.post-card .cover span { font-weight: 900; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; background: #fff; border-radius: 999px; padding: 5px 12px; position: relative; z-index: 1; }
.post-card .body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 1.35rem; margin-bottom: .4em; } .post-card p { margin: 0 0 .7em; color: var(--soft); font-weight: 600; }
.meta { font-size: .9rem; font-weight: 800; color: var(--soft); }

/* Final call to action */
.cta { padding: 80px 0 90px; text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); max-width: 18ch; margin: 0 auto .4em; }
.cta p { font-weight: 700; font-size: 1.15rem; margin-bottom: 28px; }

/* Footer */
.foot { background: var(--ink); color: #e9e9ef; padding: 54px 0 40px; margin-top: 0; }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot a { color: #fff; text-decoration: none; font-weight: 700; } .foot a:hover { text-decoration: underline; }
.foot h4 { margin: 0 0 10px; font-size: 1rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; font-size: .92rem; color: #b9bac6; }

/* Inner pages (support, privacy) */
.page-head { padding: 6px 0 82px; text-align: center; }
.page-head h1 { margin: 22px 0 0; }
.prose { max-width: 760px; margin: 0 auto; padding: 58px 0 40px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.9em; } .prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose p, .prose li { font-weight: 600; color: #33353f; } .prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; } .prose li { margin-bottom: .45em; }
.callout { background: #fff; border-radius: 26px; padding: 24px 26px; box-shadow: 0 10px 24px rgba(0,0,0,.1); margin: 26px 0; border: 3px solid var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.email { display: inline-block; font-weight: 900; font-size: 1.3rem; }

/* Blog articles */
.crumbs { font-weight: 800; font-size: .95rem; margin: 6px 0 0; text-align: center; }
.crumbs a { color: var(--ink); }
.article-head { padding: 6px 0 84px; text-align: center; }
.article-head .bubble { margin: 26px 0 6px; } .article-head .meta { color: rgba(28,28,33,.8); margin-top: 18px; }
.article { max-width: 720px; margin: 0 auto; padding: 60px 0 30px; }
.article h2 { font-size: clamp(1.55rem, 3.6vw, 2.1rem); margin-top: 2em; } .article h3 { font-size: 1.3rem; margin-top: 1.6em; }
.article p, .article li { font-size: 1.1rem; line-height: 1.8; color: #2c2e38; font-weight: 500; } .article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.3em; } .article li { margin-bottom: .55em; }
.article strong { font-weight: 800; color: var(--ink); }
.takeaways { background: #fff; border: 3px solid var(--ink); border-radius: 28px; padding: 22px 26px 8px; margin: 0 0 2.2em; box-shadow: 8px 8px 0 var(--paper, var(--yellow)); }
.takeaways h2 { font-size: 1.25rem; margin: 0 0 .5em; }
.figure { margin: 2em 0; } .figure img { border-radius: 26px; box-shadow: 0 16px 32px rgba(0,0,0,.2); margin: 0 auto; max-width: min(100%, 340px); }
.figure figcaption { text-align: center; font-size: .95rem; font-weight: 700; color: var(--soft); margin-top: 12px; }
.cta-box { border-radius: 32px; padding: 34px 28px 38px; text-align: center; margin: 2.6em 0; box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.cta-box h2 { margin: 0 0 .3em !important; font-size: 1.7rem !important; } .cta-box p { font-weight: 700; color: var(--ink); }
.related { padding: 50px 0 80px; }
.related h2 { text-align: center; font-size: 1.9rem; margin-bottom: 26px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5em 0; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; }
.table th, .table td { padding: 12px 16px; text-align: left; font-size: 1rem; border-bottom: 2px solid #ececf2; vertical-align: top; }
.table th { background: var(--yellow); font-weight: 900; } .table tr:last-child td { border-bottom: 0; }

@media (max-width: 600px) {
  .top .wrap { padding: 10px 0 6px; gap: 4px; }
  .brand { font-size: 1.1rem; } .brand img { width: 40px; height: 40px; }
  .nav { gap: 0; margin-left: -8px; } .nav a { padding: 6px 10px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
