/* =====================================================================
   Loja Criar Histórias — Pikin Safe
   Fundo creme, cartões brancos, botões "de apertar" (degrau embaixo),
   selos Feito/Falta. Cores do Pikin Safe (verde-limão + roxo).
   ===================================================================== */

/* Fonte Asap (Google Fonts, licença SIL OFL: uso comercial livre), servida pela
   própria loja (sem chamar o Google: nada do visitante sai para terceiros).
   Arquivo: fonts/asap-latin.woff2 (veja fonts/LEIA-ME.txt). Sem o arquivo, usa
   a fonte do sistema. Pesos 400 a 800 num arquivo só (fonte variável). */
@font-face {
  font-family: "Asap";
  src: url("../fonts/asap-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --bg: #FBF8F3;
  --card: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #ECE6DC;
  --lime: #A7F402;
  --lime-d: #76A800;
  --lime-soft: #F3FFD4;
  --purple: #6750A4;
  --purple-d: #4B3880;
  --purple-soft: #F1ECFB;
  --ok: #0E8F63;
  --ok-soft: #DDF5EA;
  --warn: #9A5B00;
  --warn-soft: #FFF3DD;
  --red: #B91C1C;
  --red-soft: #FDECEC;
  --r: 20px;
  --font: "Asap", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--purple); font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 18px; letter-spacing: -.2px; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--lime); display: grid; place-items: center; box-shadow: 0 3px 0 var(--lime-d); font-size: 19px; }
.logo small { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav button { background: none; border: 0; padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.nav button:hover { background: #fff; }
.nav .hi { font-weight: 700; color: var(--muted); font-size: 14px; padding-right: 6px; }
.nav button[aria-current="page"] { background: #fff; box-shadow: inset 0 -3px 0 #A7F402; }
.sobre-passos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0; }
.sobre-passo h3 { margin: 8px 0 6px; font-size: 17px; }
.sobre-n { font-size: 30px; line-height: 1; }

.demo { background: var(--purple); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 7px 14px; }
.demo button { background: rgba(255, 255, 255, .18); color: #fff; border: 0; border-radius: 8px; padding: 2px 10px; margin-left: 8px; cursor: pointer; font-weight: 800; font-size: 12.5px; }

main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 70px; }
.narrow { max-width: 440px; margin: 30px auto 0; }
.mid { max-width: 760px; margin: 0 auto; }

h1 { font-size: 30px; line-height: 1.15; font-weight: 900; letter-spacing: -.4px; margin: 0 0 10px; }
h2 { font-size: 22px; font-weight: 900; margin: 0 0 8px; letter-spacing: -.2px; }
h3 { font-size: 17px; font-weight: 900; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 16.5px; margin: 0 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }

/* ---------- cartões ---------- */
.card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); padding: 26px; }
.card + .card { margin-top: 18px; }

/* ---------- botões "de apertar" ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 22px; font-weight: 900; font-size: 15.5px; cursor: pointer; text-decoration: none; transition: transform .06s, box-shadow .06s, opacity .15s; }
.btn:active { transform: translateY(2px); }
.btn[disabled] { cursor: not-allowed; }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 4px 0 var(--lime-d); }
.btn-lime:active { box-shadow: 0 2px 0 var(--lime-d); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #000; }
.btn-dark:active { box-shadow: 0 2px 0 #000; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn-red { background: #fff; color: var(--red); border: 1.5px solid #F3C4C4; box-shadow: 0 3px 0 #F3C4C4; }
.btn[disabled].btn-lime, .btn[disabled].btn-dark { background: #E2E5EA; color: #98A2B3; box-shadow: 0 4px 0 #CDD2DA; transform: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 11px; }
.link { background: none; border: 0; padding: 0; color: var(--purple); font-weight: 800; cursor: pointer; text-decoration: underline; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }

/* ---------- selos ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 900; border-radius: 999px; padding: 3px 10px; letter-spacing: .2px; }
.pill-ok { background: var(--ok); color: #fff; }
.pill-falta { background: #EEF0F3; color: #667085; }
.pill-lime { background: var(--lime-soft); color: #3F6600; }
.pill-purple { background: var(--purple); color: #fff; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- formulários ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-size: 14px; font-weight: 900; margin-bottom: 6px; }
.hint { display: block; font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
.input, textarea.input, select.input { width: 100%; border: 1.5px solid #E3DED5; background: #fff; border-radius: 13px; padding: 13px 15px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(103, 80, 164, .16); }
.input.bad { border-color: var(--red); }
.count { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.count.quase { color: #B45309; font-weight: 800; }
.count.cheio { color: #B91C1C; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple); flex-shrink: 0; }
.error { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; font-weight: 700; margin-bottom: 16px; }
.note { background: var(--warn-soft); color: #6B3F00; border-radius: 14px; padding: 13px 16px; font-size: 14px; line-height: 1.55; }
.note strong { display: block; margin-bottom: 2px; }
.info { background: var(--purple-soft); color: #3C2C6E; border-radius: 14px; padding: 13px 16px; font-size: 14px; line-height: 1.55; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- assistente (passos) ---------- */
.wiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13.5px; font-weight: 800; color: var(--muted); }
.bar { height: 10px; border-radius: 999px; background: #ECE6DC; overflow: hidden; margin-bottom: 24px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), #C6FF4D); border-radius: 999px; transition: width .35s; }
.saved { display: inline-flex; align-items: center; gap: 6px; }
.saved.ok { color: var(--ok); }
.saved.err { color: var(--red); }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.who { display: inline-flex; align-items: center; gap: 8px; background: var(--lime-soft); color: #3F6600; border-radius: 999px; padding: 5px 14px 5px 5px; font-weight: 900; font-size: 14px; margin-bottom: 14px; }
.who svg { border-radius: 50%; background: #fff; }

.people-row { display: grid; grid-template-columns: 1.3fr 1fr 44px; gap: 8px; margin-bottom: 8px; }
.x { border: 0; border-radius: 11px; background: var(--red-soft); color: var(--red); font-weight: 900; cursor: pointer; }

/* ---------- personagem ---------- */
.builder { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.stage { background: var(--lime-soft); border-radius: 24px; padding: 24px; display: grid; place-items: center; position: sticky; top: 90px; }
.opt-group { margin-bottom: 20px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--purple); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.chip[aria-pressed="true"] { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-d); box-shadow: 0 2px 0 var(--purple); }
.chip.fam { display: inline-flex; align-items: center; gap: 8px; }
.fam-dots { display: inline-flex; }
.fam-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.fam-dot + .fam-dot { margin-left: -6px; }

/* ---------- capas ---------- */
.covers { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.cover-opt { border: 3px solid transparent; border-radius: 22px; padding: 8px; background: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); text-align: center; }
.cover-opt[aria-pressed="true"] { border-color: var(--purple); }
.cover-opt .pill { margin-top: 8px; }
.loading { display: grid; place-items: center; gap: 12px; padding: 40px 10px; color: var(--muted); font-weight: 800; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--lime-soft); border-top-color: var(--lime-d); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- produto: capa + quantidade ---------- */
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 9px 20px; font-weight: 900; cursor: pointer; font-size: 14.5px; }
.seg button[aria-pressed="true"] { background: var(--purple); color: #fff; box-shadow: 0 3px 0 var(--purple-d); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.pack { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 22px 18px 18px; cursor: pointer; text-align: left; box-shadow: 0 4px 0 var(--line); transition: border-color .15s; }
.pack[aria-pressed="true"] { border-color: var(--purple); box-shadow: 0 4px 0 var(--purple); }
.pack .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.pack .qty { font-size: 20px; font-weight: 900; }
.pack .for { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.pack .price { font-size: 26px; font-weight: 900; letter-spacing: -.5px; margin-top: 8px; }
.pack .unit { font-size: 13px; color: var(--muted); }
.pack .inst { font-size: 13.5px; font-weight: 800; color: var(--ok); margin-top: 6px; }

/* ---------- resumo ---------- */
.lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lines > div:last-child { border-bottom: 0; }
.lines .total { font-size: 20px; font-weight: 900; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin: 4px 0; }

/* ---------- pagamento ---------- */
.pix { width: 100%; min-height: 90px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* ---------- Minha conta ---------- */
.kid { display: grid; grid-template-columns: 250px 1fr; padding: 0; overflow: hidden; }
.kid-side { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); background: #FFFEFB; }
.kid-side h3 { margin-top: 10px; font-size: 20px; }
.kid-foto { position: relative; margin: 0 auto; }
.kid-foto > svg, .kid-foto-img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.kid-foto-img { object-fit: cover; border: 4px solid #A7F402; box-sizing: border-box; background: #F4FFD6; }
.kid-cam { position: absolute; right: 0; bottom: 4px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: #0F172A; color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 4px 10px rgba(15, 23, 42, .18); display: grid; place-items: center; padding: 0; }
.kid-cam:hover { background: #334155; }
.kid-cam:focus-visible { outline: 3px solid #7C5CD6; outline-offset: 2px; }
.kid-main { padding: 24px; }
.status { border-radius: 18px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.status h3 { font-size: 21px; margin: 6px 0 2px; font-weight: 800; }
.status h3 b { font-weight: 900; }
.status p { margin: 0; font-size: 14px; color: #334155; }
.st-lime { background: var(--lime-soft); }
.st-purple { background: var(--purple-soft); }
.st-mint { background: #DDF3EE; }
.st-warn { background: var(--warn-soft); }
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.task { border: 1.5px solid #CDEBDD; border-radius: 16px; padding: 14px; background: #fff; text-align: left; cursor: pointer; font-weight: 800; color: var(--ok); display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.task.falta { border-color: var(--line); color: var(--ink); }
.task:hover { box-shadow: 0 3px 0 var(--line); }
.add { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; color: var(--ink); font-weight: 900; }
.add::before, .add::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Minha conta ---------- */
.conta-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.conta-top .lead { margin-bottom: 0; }
h2.sec { font-size: 18px; margin: 30px 0 12px; }
.card.empty { padding: 18px 22px; }
.card.empty p { margin: 0; }
.hist-wrap { padding: 6px 0; overflow-x: auto; }
table.hist { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.hist th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--line); }
table.hist td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.hist tr:last-child td { border-bottom: 0; }
table.hist td.acao { text-align: right; }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kid-mini { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.kid-mini > div { flex: 1; }
.modal .chips { margin-bottom: 4px; }
.modal { max-width: 560px; }

/* ---------- linha do tempo ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; color: var(--muted); font-weight: 700; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li i { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2.5px solid #D0D5DD; }
.timeline li.done { color: var(--ink); }
.timeline li.done i { background: var(--ok); border-color: var(--ok); }
.timeline li.now { color: var(--ink); font-weight: 900; }
.timeline li.now i { background: var(--lime); border-color: var(--lime-d); box-shadow: 0 0 0 4px var(--lime-soft); }
.timeline small { display: block; font-weight: 600; color: var(--muted); }

/* ---------- prévia do livro ---------- */
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
/* Página do livro: ilustração em cima, texto GRANDE embaixo (como livro infantil) */
.page { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0; overflow: hidden; box-shadow: 0 6px 18px rgba(15, 23, 42, .05); display: flex; flex-direction: column; }
.page > svg { display: block; flex: none; }
.page > .n { padding: 14px 20px 0; }
.page p { margin: 6px 0 0; padding: 0 20px 20px; font-size: 20px; line-height: 1.55; font-weight: 700; color: var(--ink); min-height: 5em; overflow-wrap: anywhere; white-space: pre-line; }
.page .n { font-size: 12px; font-weight: 900; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.page.ded { display: grid; place-items: center; text-align: center; min-height: 260px; padding: 28px; background: #FFFEF7; font-style: italic; }
.page.ded p { padding: 0; min-height: 0; font-weight: 600; }
.page.ded.longa p { font-size: 15px; line-height: 1.5; }
/* foto da criança (opcional): página "Este livro pertence a" */
.page.foto > svg { border-bottom: 1px solid var(--line); }
.page.foto > .n { padding-bottom: 14px; }
.foto-lado { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start; }
.foto-prev svg { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.foto-card .row { align-items: center; flex-wrap: wrap; }
.foto-linha { margin-top: 14px; justify-content: space-between; align-items: center; }
.clock { font-variant-numeric: tabular-nums; }

/* ---------- vitrine ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.hero-art { background: var(--lime-soft); border-radius: 30px; padding: 26px; display: grid; place-items: center; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.steps3 .card { padding: 18px; }
.steps3 b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); box-shadow: 0 3px 0 var(--lime-d); margin-bottom: 8px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { font-weight: 900; cursor: pointer; }
details.faq p { margin: 10px 0 2px; color: #334155; }

/* ---------- janela (modal) e aviso ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: #fff; border-radius: 22px; padding: 26px; max-width: 460px; width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 18px; font-weight: 800; font-size: 14.5px; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 40px); }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .in { max-width: 1080px; margin: 0 auto; padding: 22px 20px 34px; display: flex; gap: 10px 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  h1 { font-size: 25px; }
  main { padding: 20px 16px 60px; }
  .card { padding: 20px; }
  .builder, .hero, .kid { grid-template-columns: 1fr; }
  .stage { position: static; }
  .kid-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .packs, .tasks, .steps3, .pages { grid-template-columns: 1fr; }
  .foto-lado { grid-template-columns: 1fr; }
  .foto-prev { max-width: 220px; }
  .page p { font-size: 18px; }
  .pack .for { min-height: 0; }
  .status { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  table.hist thead { display: none; }
  table.hist, table.hist tbody, table.hist tr, table.hist td { display: block; width: 100%; }
  table.hist tr { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  table.hist td { border: 0; padding: 4px 0; }
  table.hist td[data-rotulo]::before { content: attr(data-rotulo) ": "; color: var(--muted); font-size: 12.5px; }
  table.hist td.acao { text-align: left; padding-top: 8px; }
  .nav .hi { display: none; }
  .top-in { padding: 10px 14px; gap: 8px; }
  .logo { font-size: 16px; white-space: nowrap; }
  .logo small { display: none; }
  .logo-mark { width: 32px; height: 32px; font-size: 17px; }
  .nav { gap: 0; flex-wrap: nowrap; min-width: 0; }
  .nav button { padding: 8px 6px; font-size: 13px; min-height: 44px; white-space: nowrap; }
  .top-in { padding: 8px 10px; gap: 6px; }
  .btn-sm { min-height: 44px; }
  .demo button { padding: 8px 12px; min-height: 40px; }
  .nav button { padding: 6px 4px; font-size: 12.5px; white-space: nowrap; }
  .wiz-foot .btn { padding: 13px 16px; }
  /* menu no celular: linha própria embaixo do logo, rolando para o lado se não couber */
  .top-in { flex-wrap: wrap; }
  .nav { order: 2; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .sobre-passos { grid-template-columns: 1fr; }
}

/* Pix: QR Code (vem do Mercado Pago) */
.pix-qr { display: block; margin: 0 auto 6px; width: 220px; height: 220px; image-rendering: pixelated; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid rgba(0,0,0,.08); }

/* quantidade: 4 cartões (1, 2, 3, 4+) e desconto por cópias */
.packs.packs4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .packs.packs4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .packs.packs4 { grid-template-columns: 1fr; } }
.pack .off { position: absolute; top: 12px; right: 12px; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 13px; border-radius: 999px; padding: 2px 9px; box-shadow: 0 2px 0 var(--lime-d); }
.pack .save { font-size: 13px; font-weight: 800; color: var(--purple); margin-top: 2px; }
.pack-mais { cursor: pointer; }
.pack-mais:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; margin-top: 4px; background: var(--bg); border-radius: 12px; padding: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; font-weight: 900; cursor: pointer; line-height: 1; }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper b { min-width: 22px; text-align: center; font-size: 18px; }
.lines .desc span { color: var(--ok); font-weight: 800; }
.packs.packs4 .pack { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; }

/* Temas do passo 1 */
.temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tema { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 8px; font-weight: 800; font-size: 14px; line-height: 1.25; cursor: pointer; box-shadow: 0 2px 0 var(--line); min-height: 104px; }
.tema:hover { border-color: var(--purple); }
.tema[aria-pressed="true"] { border-color: var(--purple); background: var(--purple-soft); box-shadow: 0 2px 0 var(--purple); }
.tema-emoji { font-size: 28px; line-height: 1; }
.guiadas { background: #FFFEF7; border: 1px dashed var(--line); border-radius: 16px; padding: 16px 16px 0; margin-bottom: 18px; }
.guiadas .label { margin: 0 0 2px; }
@media (max-width: 720px) { .temas { grid-template-columns: repeat(2, 1fr); } }

/* páginas do fim do livro: "Conheça a criança" e "Minha família" (iguais na loja e no painel) */
.pk-pag { background: #FFFEF7; padding: 26px 24px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pk-pag-tit { margin: 4px 0 0; font-size: 22px; font-weight: 900; color: #0F172A; }
.pk-bio-foto, .pk-bio-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 6px solid #A7F402; background: #F4FFD6; box-sizing: border-box; }
.pk-pag .pk-bio-txt { margin: 4px 0 0; padding: 0; font-size: 16px; line-height: 1.55; font-weight: 600; color: #0F172A; white-space: pre-line; overflow-wrap: anywhere; text-align: left; min-height: 0; }
.pk-pag .pk-fam-sub { margin: 0; padding: 0; font-size: 14px; font-weight: 700; color: #475569; min-height: 0; }
.pk-fam-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 6px solid #A7F402; box-sizing: border-box; background: #E2E8F0; margin-top: 6px; }

/* quadros do livro e telas Biografia / Família / Ver livro */
.tasks.extras { margin-top: 10px; }
.task-seta { font-weight: 900; color: var(--muted); }
.task.abrir { color: var(--ink); border-color: var(--line); }
.kid-lixo { position: absolute; left: 0; bottom: 4px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; background: #fff; color: #0F172A;
  font-size: 16px; cursor: pointer; box-shadow: 0 4px 10px rgba(15, 23, 42, .18); display: grid; place-items: center; padding: 0; }
.kid-lixo:focus-visible { outline: 3px solid #7C5CD6; outline-offset: 2px; }
.bio-topo { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center; }
.bio-nome h2 { margin: 0 0 4px; }
.bio-botoes { justify-content: flex-end; }
textarea.input.bio-txt { min-height: 190px; }
.bio-exemplo { font-size: 16px; line-height: 1.6; }
.fam-prev { display: grid; place-items: center; }
.fam-prev-img { width: 100%; max-width: 380px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 6px solid #A7F402; }
.fam-prev-vazio { width: 100%; max-width: 380px; aspect-ratio: 4 / 3; border-radius: 18px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.page.pk-wrap > .n, .page.livro-capa > .n { padding: 12px 20px 14px; }
.page.livro-capa > svg { display: block; width: 100%; height: auto; }
.livro-falta p { color: var(--muted); }
@media (max-width: 760px) {
  .bio-topo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bio-botoes { justify-content: center; }
}

/* ajustar a foto (recorte) */
.recorte { position: relative; overflow: hidden; border-radius: 50%; margin: 6px auto; touch-action: none; cursor: grab; background: #E2E8F0; box-shadow: 0 0 0 6px #A7F402; }
.recorte.fam { border-radius: 18px; }
.recorte.arrastando { cursor: grabbing; }
.recorte:focus-visible { outline: 3px solid #7C5CD6; outline-offset: 8px; }
.recorte img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.zoom-foto { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 10px; }
.zoom-foto input { width: 200px; accent-color: #7C5CD6; }

/* missões do livro */
.missoes { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.missoes li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.missoes li.feita { border-color: #CDEBDD; background: #F6FFF9; }
.missao-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #0F172A; color: #fff; font-size: 14px; }
.missoes li.feita .missao-n { background: var(--ok); }
.missao-t { font-weight: 800; }
.missao-t small { font-weight: 600; color: var(--muted); }
.missoes-link { margin-top: 10px; }

/* biografia: modelos */
.modelo-bio { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; justify-items: start; }
.modelo-bio p { margin: 0; }

/* ---- menu responsivo: abaixo de 1180 px vira "☰ Menu" (lista que abre) ---- */
.menu-btn { display: none; }
.tasks.extras { margin: 14px 0 10px; }
.kid-main > .tasks:not(.extras) { margin-top: 0; }
@media (max-width: 1180px) {
  .top-in { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 44px; padding: 8px 16px; border-radius: 12px;
    border: 1.5px solid var(--line); background: #fff; font-weight: 900; font-size: 15px; color: var(--ink); cursor: pointer; }
  .menu-btn:focus-visible { outline: 3px solid #7C5CD6; outline-offset: 2px; }
  .nav { display: none; order: 3; width: 100%; margin-left: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 6px 0 4px; border-top: 1px solid var(--line); overflow: visible; flex-wrap: nowrap; }
  .top.aberto .nav { display: flex; }
  .nav .hi { display: block; padding: 8px 14px 4px; font-size: 14px; }
  .nav button { text-align: left; padding: 12px 14px; font-size: 15.5px; min-height: 46px; white-space: normal; border-radius: 12px; }
  .nav button[aria-current="page"] { box-shadow: inset 4px 0 0 #A7F402; }
}
/* a mesma coisa quando o menu não cabe numa linha (fonte maior, zoom do navegador…) */
.top.estreito .top-in { flex-wrap: wrap; }
.top.estreito .menu-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 44px; padding: 8px 16px; border-radius: 12px;
    border: 1.5px solid var(--line); background: #fff; font-weight: 900; font-size: 15px; color: var(--ink); cursor: pointer; }
.top.estreito .menu-btn:focus-visible { outline: 3px solid #7C5CD6; outline-offset: 2px; }
.top.estreito .nav { display: none; order: 3; width: 100%; margin-left: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 6px 0 4px; border-top: 1px solid var(--line); overflow: visible; flex-wrap: nowrap; }
.top.estreito.aberto .nav { display: flex; }
.top.estreito .nav .hi { display: block; padding: 8px 14px 4px; font-size: 14px; }
.top.estreito .nav button { text-align: left; padding: 12px 14px; font-size: 15.5px; min-height: 46px; white-space: normal; border-radius: 12px; }
.top.estreito .nav button[aria-current="page"] { box-shadow: inset 4px 0 0 #A7F402; }

/* janelas altas (modelos, missões, família): rolam por dentro e os botões ficam sempre visíveis embaixo */
.overlay { overflow: hidden; }
.modal { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0; }
.modal > .row.end:last-child { position: sticky; bottom: 0; background: #fff; margin: 14px -26px 0; padding: 14px 26px 22px; box-shadow: 0 -10px 16px -12px rgba(15, 23, 42, .25); z-index: 1; }
@media (max-width: 520px) {
  .overlay { padding: 10px; }
  .modal { padding: 20px 18px 0; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .modal > .row.end:last-child { margin: 12px -18px 0; padding: 12px 18px 16px; }
}

/* "O que é o Pikin Author?": os 4 cartões alinhados (sem o espaço de ".card + .card" dentro da grade) */
.sobre-passos > .card, .tasks > .card, .kids > .card { margin-top: 0; }
.sobre-passos { align-items: stretch; }
