/* papertada.com: one stylesheet for every page. The app's palette (apps/web/src/styles.css) and fonts, self-hosted. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/baloo-2-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/baloo-2-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #f7f5fc;
  --surface: #ffffff;
  --ink: #221d33;
  --ink-2: #4a4462;
  --muted: #5f5875;
  --line: #e1dcee;
  --chip: #efebf8;
  --magic: #6b4de6;
  --magic-deep: #5236c9;
  --mat: #2b2457;
  --mat-2: #3d3285;
  --mat-ink: #efeaff;
  --mat-muted: #c9c2ea;
  --cta: #ffd84a;
  --cta-ink: #2b2208;
  --cta-edge: #d1ab1f;
  /* Note colours */
  --yellow: #ffe46b;
  --pink: #ff9fc8;
  --blue: #93d2ff;
  --green: #b8ee8e;
  --orange: #ffb76e;
  --purple: #cdb6ff;
  --f-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --shadow: 0 18px 44px -20px rgba(43, 36, 87, .38);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--f-body); }
img, video { max-width: 100%; display: block; }
a { color: var(--magic-deep); }
a:hover { color: var(--magic); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--magic); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 25px/1 var(--f-display); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand .tada { color: var(--magic); }
.top nav { display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 16px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .top nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font: 800 18px/1.1 var(--f-display); text-decoration: none; border: 0; cursor: pointer; }
.btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 4px 0 var(--cta-edge); }
.btn-cta:hover { color: var(--cta-ink); background: #ffe06e; }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cta-edge); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 16px; }
.btn-line { border: 2px solid var(--mat); color: var(--mat); background: transparent; }
.btn-line:hover { background: var(--mat); color: var(--mat-ink); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Store badges: "coming soon" spans today. When an app is live, turn its span into <a class="store" href="<store URL>">
   and drop the "soon" class and the "Coming soon to the" line (see README.md). */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 14px; background: var(--mat); color: var(--mat-ink); text-decoration: none; line-height: 1.1; }
a.store:hover { background: var(--mat-2); color: #fff; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 12px; opacity: .85; }
.store b { font: 800 18px/1.1 var(--f-display); }
.store.soon { background: var(--chip); color: var(--ink-2); border: 1px dashed #b9b0d6; }

/* Sections */
section { padding: 84px 0; scroll-margin-top: 66px; }
.kicker { font: 800 15px/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--magic); margin: 0 0 8px; }
h2 { font-size: clamp(32px, 4.6vw, 48px); margin: 0 0 14px; }
.sub { font-size: 20px; color: var(--ink-2); max-width: 52ch; margin: 0; }
@media (max-width: 860px) { section { padding: 60px 0; } }

/* Hero */
.hero { padding: 48px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 15px; color: var(--mat); background: var(--yellow); padding: 5px 14px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 80px); line-height: .98; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--magic); }
.lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-2); max-width: 36ch; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero .note { font-size: 16px; color: var(--muted); margin: 18px 0 0; }
.stage { position: relative; width: min(440px, 100%); margin-inline: auto; }
.stage .screen { position: relative; border-radius: 34px; background: var(--mat); padding: 14px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.stage video { width: 100%; height: auto; aspect-ratio: 1; border-radius: 24px; background: var(--mat); object-fit: cover; }
.sticker { position: absolute; width: 92px; height: 92px; border-radius: 22px; box-shadow: var(--shadow); }
.sticker.a { left: -30px; top: 8%; transform: rotate(-8deg); }
.sticker.b { right: -26px; top: 46%; transform: rotate(7deg); }
.sticker.c { left: 8%; bottom: -34px; transform: rotate(4deg); }
.bubble { position: absolute; right: -8px; top: -18px; background: var(--yellow); color: var(--mat); font: 800 24px/1 var(--f-display); padding: 10px 16px; border-radius: 18px; transform: rotate(6deg); box-shadow: var(--shadow); }
@media (max-width: 880px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .sticker { width: 72px; height: 72px; }
  .sticker.a { left: -6px; } .sticker.b { right: -6px; }
}

/* How it works */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; text-align: center; }
.steps img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 20px; background: var(--mat); }
.steps h3 { font-size: 26px; margin: 14px 0 4px; }
.steps h3::before { content: counter(s) ". "; color: var(--magic); }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.steps li:last-child h3 { color: var(--magic); }
.steps li:last-child h3::before { content: ""; }
.decorate { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; margin-top: 40px; background: var(--chip); border-radius: var(--radius); padding: 18px; }
.decorate img { width: 160px; height: 160px; border-radius: 18px; }
.decorate h3 { font-size: 26px; margin: 0 0 6px; }
.decorate p { margin: 0; color: var(--ink-2); }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li:last-child { grid-column: 1 / -1; max-width: 260px; justify-self: center; } }
@media (max-width: 520px) { .decorate { grid-template-columns: 1fr; text-align: center; } .decorate img { margin-inline: auto; } }

/* Inside */
.gallery { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; background: var(--mat); }
.gallery figcaption { font-size: 15px; color: var(--ink-2); text-align: center; margin-top: 6px; }
.themes { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.themes li { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--mat); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 24px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 17px; }
.card .tag { display: inline-block; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; display: grid; place-items: center; }
.card .tag svg { width: 24px; height: 24px; stroke: var(--mat); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.games { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 17px; }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(4, 1fr); } .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(3, 1fr); } .features { grid-template-columns: 1fr; } }

/* Grown-ups */
.grownups { background: var(--mat); color: var(--mat-ink); }
.grownups .kicker { color: var(--yellow); }
.grownups .sub { color: var(--mat-muted); }
.grownups h2 { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.dark-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px; }
.dark-card h3 { font-size: 24px; margin: 0 0 8px; color: #fff; }
.dark-card p, .dark-card li { color: var(--mat-muted); font-size: 17px; }
.dark-card p { margin: 0 0 8px; }
.dark-card ul { margin: 0; padding-left: 20px; }
.dark-card a { color: var(--yellow); }
.dark-card .chip { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan h3 { font-size: 28px; margin: 0 0 4px; }
.plan .price { font: 800 34px/1.1 var(--f-display); margin: 8px 0 2px; }
.plan .price small { font: 400 16px/1.3 var(--f-body); color: var(--muted); }
.plan ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 17px; }
.plan li { margin-bottom: 6px; }
.plan.plus { border: 3px solid var(--magic); position: relative; }
.plan.plus .badge { position: absolute; top: -15px; left: 22px; background: var(--magic); color: #fff; font: 800 15px/1 var(--f-display); padding: 7px 12px; border-radius: 999px; }
.fine { margin: 22px 0 0; color: var(--muted); font-size: 16px; max-width: 80ch; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

/* Daycare */
.daycare .panel { background: var(--green); border-radius: 28px; padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.daycare h2 { color: var(--mat); }
.daycare .sub { color: #2f3a25; }
.daycare .soon { display: inline-block; background: var(--mat); color: var(--mat-ink); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 760px) { .daycare .panel { grid-template-columns: 1fr; } }

/* FAQ */
.qa { display: grid; gap: 12px; margin-top: 32px; max-width: 880px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 800 28px/1 var(--f-display); color: var(--magic); flex: none; transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.qa p { margin: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.more { margin-top: 24px; color: var(--ink-2); }

/* CTA */
.cta { text-align: center; padding-bottom: 96px; }
.cta .panel { background: var(--mat); color: var(--mat-ink); border-radius: 32px; padding: clamp(36px, 6vw, 64px) 24px; }
.cta h2 { color: #fff; }
.cta .sub { margin: 0 auto; color: var(--mat-muted); }
.cta .mark { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 18px; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.cta .store.soon { background: rgba(255, 255, 255, .08); color: var(--mat-ink); border-color: rgba(255, 255, 255, .3); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Text pages (privacy, terms, support) */
.doc { padding: 44px 0 72px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 30px; margin: 40px 0 10px; }
.doc h3 { font-size: 22px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--f-display); font-weight: 800; font-size: 17px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 18px 0; }
.table-scroll { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .qa summary::after { transition: none; } }
@media (max-width: 420px) { .stores { gap: 8px; } .store { padding: 8px 12px 8px 10px; gap: 8px; } .store b { font-size: 16px; } .store small { font-size: 11px; } }
.dark-card ul.tips { list-style: none; padding-left: 0; } .dark-card ul.tips li { margin-bottom: 4px; }
/* Narrow screens: each table row becomes a small card (service, then what for, then what it receives). */
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 4px; margin-bottom: 12px; background: var(--surface); }
  .doc td { border: 0; padding: 4px 10px; }
  .doc td:first-child { font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--ink); }
}
