/* playpimbo.com shared pages: support, about, privacy, kids' privacy, terms.
   One system for all five, taken from the home page (website/v5): its colour tokens, its type scale, its header
   bar, and its footer (copied as is, markup and styles, so the two never drift apart).

   Every page is: the top bar (brand + page links), the page head (h1 headline, one short sub line, a small meta
   line on the legal pages), then one left-aligned column of h2 sections, then the home page's footer.

   Punctuation: headlines (h1, h2, h3) end with a full stop or a question mark; labels, bullets that are not
   sentences, links in menus and buttons have none; full sentences end with a full stop.

   Fonts: loaded from Google Fonts in each page's <head> for now. Before launch, self-host them (Fredoka 500/600,
   Nunito 400/600/700/800, both SIL OFL) as woff2 in pages/assets/fonts/, add @font-face rules here and remove the
   <link> tags, so the site loads nothing from other companies, as the privacy policy says. */

/* ---------- tokens (the home page's, the subset these pages use) ---------- */
:root {
  --page: #fcebd6; --card: #fff8ee;
  --ink: #3b4466; --ink-soft: #5a6488;
  --btn: #357a6f; --btn-deep: #285e55; --btn-ink: #fff8ee;
  --link: #2f6f64; --link-hover: #285e55;
  --drop: rgba(59,68,102,.18); --rule: rgba(59,68,102,.14);
  --mustard: #f6c25b; --mustard-deep: #d9a43f;
  --teal: #5bbdaa; --teal-deep: #3f9c8b; --teal-wash: #ddf0e9;
  --mustard-wash: #fcf2d9; --coral-wash: #fce8e3; --pink-wash: #fbe9ee; --lilac-wash: #eee6fa; --blue-wash: #e3eef9; --go-wash: #e2f3e6;
  --ground: #e8c9a0;
  --art-dim: none;
  --font-display: "Fredoka", "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--font-display); --body: var(--font-body);
  --spring: cubic-bezier(.3,1.6,.5,1);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #242030; --card: #3e3a4c;
  --ink: #ece6dc; --ink-soft: #c9c3ba;
  --btn: #488f82; --btn-deep: #33695f; --btn-ink: #15172c;
  --link: #8fdccb; --link-hover: #b4ebdf;
  --drop: rgba(8,6,18,.40); --rule: rgba(236,230,220,.14);
  --mustard: #d2a95c; --mustard-deep: #ad853d;
  --teal: #559f90; --teal-deep: #377b6e; --teal-wash: #364844;
  --mustard-wash: #4c4230; --coral-wash: #543e39; --pink-wash: #4f3f43; --lilac-wash: #45414f; --blue-wash: #3a454f; --go-wash: #3a483c;
  --ground: #503c2f;
  --art-dim: brightness(.86) saturate(.85);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --page: #242030; --card: #3e3a4c;
  --ink: #ece6dc; --ink-soft: #c9c3ba;
  --btn: #488f82; --btn-deep: #33695f; --btn-ink: #15172c;
  --link: #8fdccb; --link-hover: #b4ebdf;
  --drop: rgba(8,6,18,.40); --rule: rgba(236,230,220,.14);
  --mustard: #d2a95c; --mustard-deep: #ad853d;
  --teal: #559f90; --teal-deep: #377b6e; --teal-wash: #364844;
  --mustard-wash: #4c4230; --coral-wash: #543e39; --pink-wash: #4f3f43; --lilac-wash: #45414f; --blue-wash: #3a454f; --go-wash: #3a483c;
  --ground: #503c2f;
  --art-dim: brightness(.86) saturate(.85);
  color-scheme: dark;
}

/* ---------- base (as the home page) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.skip { position: absolute; left: 16px; top: 12px; z-index: 50; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 14px; font-weight: 800; box-shadow: 0 5px 0 var(--drop); }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; white-space: nowrap; }

/* ---------- the top bar: the home page's brand, plus the page links ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 18px 0; }
.site-head .bar { flex-wrap: wrap; gap: 8px 16px; }
.site-head .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border-radius: 14px; }
.site-head .brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 0 var(--drop); }
.site-head .brand span { font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-right: -10px; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 800; font-size: 15px;
  padding: 8px 12px; border-radius: 12px;
}
.site-nav a:hover { color: var(--ink); background: var(--card); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: 0 4px 0 var(--drop); }

/* ---------- the column ---------- */
main.wrap { padding-bottom: clamp(56px, 8vw, 96px); }
/* one readable column, left-aligned under the brand (no specificity, so a component's own max-width wins) */
:where(main.wrap) > * { max-width: var(--measure); }

/* the page head: the same on every page */
.page-head { padding-block: clamp(36px, 7vw, 76px) 4px; }
.page-head h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: 1; }
.page-head .sub { font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.25; color: var(--ink-soft); margin: 14px 0 0; text-wrap: balance; }
.page-head .meta { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* sections */
main h2 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.08; margin: clamp(44px, 6vw, 64px) 0 14px; scroll-margin-top: 16px; }
main h3 { font-size: 21px; line-height: 1.25; margin: 28px 0 8px; }
main p { margin: 10px 0; }
main ul, main ol { margin: 10px 0; padding-left: 1.3rem; }
main li { margin: 6px 0; padding-left: 2px; }
main li::marker { color: var(--ink-soft); }
strong { font-weight: 800; }

/* one link style */
main a:not(.button) { color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
main a:not(.button):hover { color: var(--link-hover); }

/* cards: flat, one darker copy under them */
.card { background: var(--card); border-radius: 22px; padding: 22px 24px; box-shadow: 0 6px 0 var(--drop); margin: 28px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin-top: 0; }

/* the short version: a handful of ticks, as the home page's */
.glance h2 { font-size: 21px; line-height: 1.25; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; font-weight: 700; font-size: 17px; line-height: 1.35; }
.ticks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M8 13.5l3.4 3.4L18.2 10' fill='none' stroke='%235bbdaa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/26px no-repeat;
}

/* on this page: a label, then the links in two columns */
.label { font: 800 14px/1.3 var(--body); color: var(--ink-soft); letter-spacing: .02em; margin: 0 0 10px; }
.toc { columns: 2 220px; column-gap: 24px; padding-left: 1.3rem; margin: 0; }
.toc li { margin: 4px 0; break-inside: avoid; }

/* the App Store privacy label table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 800; }
tr:last-child td { border-bottom: 0; }

/* questions, as the home page's */
.faq { display: grid; gap: 14px; margin: 28px 0; }
.faq details { background: var(--card); border-radius: 22px; box-shadow: 0 6px 0 var(--drop); position: relative; scroll-margin-top: 16px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 600 21px/1.25 var(--display); border-radius: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M10 13l5 5 5-5' fill='none' stroke='%235bbdaa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/30px no-repeat; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > :not(summary) { margin: 0; padding: 0 22px 22px; color: var(--ink-soft); font-weight: 600; max-width: 62ch; }
.faq details > p + p, .faq details > p + img { margin-top: -10px; }
.faq .inline-pic { width: 200px; max-width: 70%; padding: 0; margin: 0 22px 22px; border-radius: 14px; filter: var(--art-dim); }

/* say hello: one card, one button */
.contact { text-align: center; padding: 30px 22px 32px; margin-top: clamp(44px, 6vw, 64px); }
.contact h2 { margin: 0 0 8px; }
.contact p { margin: 0 0 20px; color: var(--ink-soft); font-weight: 600; }
.button {
  display: inline-flex; align-items: center; text-decoration: none; min-height: 58px;
  background: var(--btn); color: var(--btn-ink); border-radius: 20px; padding: 11px 24px;
  box-shadow: 0 5px 0 var(--btn-deep); font: 600 22px/1.1 var(--display);
  transition: transform 150ms var(--spring), box-shadow 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-deep); }
@media (max-width: 400px) { .button { font-size: 19px; padding-inline: 18px; } }

/* ---------- about: a letter from the studio, and a little world ---------- */
/* the head: the same h1 and sub as every page, with Pimbo's face beside it, tilting hello once */
.page-head.hello { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 40px; max-width: 920px; }
.hello-face { width: 168px; height: 168px; border-radius: 40px; box-shadow: 0 8px 0 var(--drop); rotate: 5deg; filter: var(--art-dim); }
@media (prefers-reduced-motion: no-preference) {
  .hello-face { animation: hello 1.8s cubic-bezier(.45,0,.3,1) .5s 1 both; }
  /* a hover waves once more and always finishes the wave, even if the pointer leaves (about.html's script
     alternates two identical animations so each hover restarts it) */
  .hello-face.wave-a { animation: hello-again 1.8s cubic-bezier(.45,0,.3,1) 1 both; }
  .hello-face.wave-b { animation: hello-again-b 1.8s cubic-bezier(.45,0,.3,1) 1 both; }
}
@keyframes hello { 0% { rotate: 5deg; } 18% { rotate: -9deg; } 36% { rotate: 8deg; } 54% { rotate: -5deg; } 72% { rotate: 3deg; } 100% { rotate: 5deg; } }
@keyframes hello-again { 0% { rotate: 5deg; } 18% { rotate: -9deg; } 36% { rotate: 8deg; } 54% { rotate: -5deg; } 72% { rotate: 3deg; } 100% { rotate: 5deg; } }
@keyframes hello-again-b { 0% { rotate: 5deg; } 18% { rotate: -9deg; } 36% { rotate: 8deg; } 54% { rotate: -5deg; } 72% { rotate: 3deg; } 100% { rotate: 5deg; } }
@media (max-width: 600px) {
  .page-head.hello { grid-template-columns: 1fr; }
  .hello-face { order: -1; width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 5px 0 var(--drop); }
}

/* the letter: a note on the page, a strip of tape holding it */
.note {
  position: relative; background: var(--card); border-radius: 18px; box-shadow: 0 6px 0 var(--drop);
  padding: 36px clamp(22px, 4vw, 40px) 30px; margin: clamp(40px, 6vw, 64px) 0 0; rotate: -1deg;
}
.note::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 112px; height: 28px; margin-left: -56px;
  background: var(--mustard); opacity: .72; border-radius: 4px; rotate: -3deg;
}
.note h2 { margin: 0 0 16px; }
.note p { font: 500 clamp(19px, 2.2vw, 22px)/1.45 var(--display); margin: 0 0 8px; }
.note .note-hi { color: var(--ink-soft); margin-bottom: 12px; }
.note-sign { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 14px; margin-top: 20px !important; color: var(--ink-soft); }
.note-sign span:nth-child(2) { grid-row: 2; color: var(--ink); }
.note-sign img { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; rotate: 8deg; box-shadow: 0 3px 0 var(--mustard-deep); filter: var(--art-dim); }

/* the shelf: toy tiles set down by hand, none quite straight */
.lede { font-size: 19px; font-weight: 600; color: var(--ink-soft); }
.shelf { list-style: none; padding: 0 !important; margin: 26px 0 0 !important; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 2vw, 18px); max-width: 920px; }
.shelf li { margin: 0; padding: 0; transition: transform .35s var(--spring); }
.shelf img { width: 100%; border-radius: 24%; box-shadow: 0 5px 0 var(--drop); }
.shelf li:nth-child(6n+1) { transform: rotate(-4deg); }
.shelf li:nth-child(6n+2) { transform: rotate(3deg) translateY(6px); }
.shelf li:nth-child(6n+3) { transform: rotate(-2deg) translateY(-4px); }
.shelf li:nth-child(6n+4) { transform: rotate(4deg) translateY(4px); }
.shelf li:nth-child(6n+5) { transform: rotate(-3deg); }
.shelf li:nth-child(6n) { transform: rotate(2deg) translateY(-6px); }
.shelf li:hover { transform: rotate(0) translateY(-6px); }
@media (max-width: 600px) { .shelf { grid-template-columns: repeat(4, 1fr); } }

/* how it's made: the dinosaur, half built, then whole */
.build { margin: 24px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: end; gap: 8px; }
.build img { width: 100%; filter: var(--art-dim); }
.build-arrow { width: 56px; height: 30px; color: var(--ink-soft); align-self: center; }
.build figcaption { grid-column: 1 / -1; text-align: center; font: 500 18px/1.3 var(--display); color: var(--ink-soft); margin-top: 10px; }
.made { list-style: none; padding: 0 !important; margin: 28px 0 0 !important; display: grid; gap: 14px; }
@media (min-width: 720px) { .made { grid-template-columns: repeat(3, 1fr); } }
.made li { margin: 0; padding: 18px 20px; background: var(--card); border-radius: 22px; box-shadow: 0 6px 0 var(--drop); }
.made h3 { margin: 0 0 6px; }
.made p { margin: 0; color: var(--ink-soft); font-weight: 600; }

/* what we believe: little stickers */
.beliefs { list-style: none; padding: 0 !important; margin: 22px 0 0 !important; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.beliefs li { margin: 0; padding: 12px 20px; border-radius: 999px; font: 600 clamp(18px, 2vw, 21px)/1.2 var(--display); box-shadow: 0 4px 0 var(--drop); }
.beliefs li:nth-child(6n+1) { background: var(--mustard-wash); }
.beliefs li:nth-child(6n+2) { background: var(--teal-wash); }
.beliefs li:nth-child(6n+3) { background: var(--coral-wash); }
.beliefs li:nth-child(6n+4) { background: var(--lilac-wash); }
.beliefs li:nth-child(6n+5) { background: var(--blue-wash); }
.beliefs li:nth-child(6n) { background: var(--go-wash); }

/* the goodbye: everyone waving */
.goodbye .friends { width: min(560px, 100%); margin: 0 auto 22px; filter: var(--art-dim); }

/* ---------- the footer: the home page's bottom bar, as is ----------
   website/v5's footer is its closing (Pimbo's big face, "Poke. Pull. Play.", the App Store button) and then this
   bar; the sub-pages copy the bar only (tools/assemble.py takes it from v5). Keep these rules in step with v5's. */
.end { position: relative; text-align: center; overflow: hidden; }
.earth { position: relative; }
.foot { background: var(--ground); color: var(--ink); text-align: left; padding-bottom: 200px; margin-bottom: -200px; }
.foot .wrap { display: grid; gap: 22px; padding-block: 30px calc(34px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: auto 1fr auto; align-items: center; } }
.foot .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 26px; justify-self: start; }
.foot .brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 var(--mustard-deep); filter: var(--art-dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-left: -10px; }
.foot nav a { text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.foot nav a:hover { background: var(--page); }
.foot p { margin: 0; font-size: 14px; font-weight: 700; }
.foot .mail { user-select: all; }
/* the sub-pages' own legal lines (the home page has none) */
.foot .legal { font-weight: 600; color: var(--ink-soft); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar { padding-block: 14px 0; }
  .site-head .brand img { width: 40px; height: 40px; }
  .site-head .brand span { font-size: 26px; }
  .site-nav { margin-left: -12px; margin-right: 0; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .button, .shelf li { transition-duration: 1ms !important; }
  .faq summary::after { transition: none; }
}
@media print {
  .site-nav, .foot nav, .skip { display: none; }
  body { background: #fff; color: #000; }
  .card, .faq details { box-shadow: none; border: 1px solid #ccc; }
}
