/* ============ DoodlePop Colors — estilos base ============ */
:root {
  --bg: #FFF8EE;
  --bg-soft: #FFF1DE;
  --card: #FFFFFF;
  --ink: #2A2140;
  --ink-soft: #5D5573;
  --line: #EADFCF;
  --orange: #F2711C;
  --orange-dark: #C9560D;
  --green: #3BB273;
  --green-dark: #2A8A57;
  --sky: #4FB3E8;
  --pink: #FF7AA2;
  --yellow: #FFD23F;
  --purple: #8B6CF6;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(42, 33, 64, .25);
  --font-head: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botões ---------- */
.btn {
  --c: var(--orange); --cd: var(--orange-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1.05rem/1 var(--font-head);
  padding: .95em 1.5em;
  border-radius: 999px;
  border: 0;
  background: var(--c);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--cd);
  transform: translateY(0);
  transition: transform .12s, box-shadow .12s, filter .12s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cd); }
.btn.green { --c: var(--green); --cd: var(--green-dark); }
.btn.purple { --c: var(--purple); --cd: #6648d8; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line), inset 0 0 0 2px var(--line); }
.btn.small { font-size: .92rem; padding: .7em 1.1em; }
/* livro impresso (Amazon) */
.btn.amazon { --c: var(--yellow, #FFD23F); --cd: #E0A800; color: var(--ink); gap: .5em; display: inline-flex; align-items: center; }
.btn.amazon svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.book-card .btn.amazon { margin-top: 12px; }
#locked-amazon .btn.amazon { margin: 4px 0 12px; white-space: normal; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.35rem var(--font-head); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo b { color: var(--orange); font-weight: 700; }
.logo span { color: var(--purple); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 700; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
}

/* ---------- seções ---------- */
section { padding: 84px 0; }
.eyebrow {
  display: inline-block; font: 600 .85rem var(--font-head); letter-spacing: .04em; text-transform: uppercase;
  color: var(--orange-dark); background: #FFE3CC; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- cartões ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- formulários ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 800; font-size: .92rem; }
.field input {
  font: inherit; font-size: 1rem; padding: 13px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; color: var(--ink); outline: none;
}
.field input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(139, 108, 246, .15); }
.field small { color: var(--ink-soft); }
.alert { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 700; font-size: .95rem; }
.alert.error { background: #FFE4E6; color: #A4133C; }
.alert.ok { background: #DDF7E8; color: #1B6E43; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--ink); color: #D8D2E8; padding: 56px 0 32px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #D8D2E8; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .88rem; color: #A9A1BF; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 999;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-weight: 700;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow);
  transition: .25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- livro: capa ---------- */
.cover-frame {
  border-radius: 14px 18px 18px 14px; overflow: hidden; position: relative;
  box-shadow: -6px 0 0 #00000014 inset, 0 18px 40px -14px rgba(42,33,64,.45);
  background: #fff;
}
.cover-frame::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); z-index: 1;
}
.cover-soon {
  aspect-ratio: 904 / 1114; display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, #fff 0 3px, transparent 4px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, #ffffffcc 0 2px, transparent 3px) 0 0 / 34px 34px,
    linear-gradient(160deg, #1D3A8A, #3F6FD8 60%, #A9CBFF);
  color: #fff; font-family: var(--font-head);
}
.cover-soon strong { font-size: 1.7rem; display: block; line-height: 1.1; text-shadow: 0 3px 0 #D62839; }
.cover-soon span { display: inline-block; margin-top: 12px; background: #fff; color: #D62839; padding: 6px 14px; border-radius: 999px; font-size: .9rem; }

.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .now { font: 700 1.8rem var(--font-head); color: var(--ink); }
.price .old { color: var(--ink-soft); text-decoration: line-through; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .8rem var(--font-head); padding: 5px 11px; border-radius: 999px;
  background: #E6F7EE; color: var(--green-dark);
}
.badge.soon { background: #E5EDFF; color: #2E4DB8; }
.badge.owned { background: #EDE7FF; color: #5B3FD0; }

/* ---------- miniaturas das páginas ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.thumb {
  position: relative; background: #fff; border-radius: 16px; padding: 8px; text-decoration: none;
  box-shadow: 0 4px 14px -6px rgba(42,33,64,.25); transition: transform .15s;
}
.thumb:hover { transform: translateY(-3px) rotate(-.5deg); }
.thumb img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumb .num { position: absolute; left: 14px; top: 14px; font: 600 .78rem var(--font-head); background: #fff; padding: 2px 8px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.thumb .tag { position: absolute; right: 14px; top: 14px; font: 600 .75rem var(--font-head); padding: 3px 9px; border-radius: 999px; background: var(--green); color: #fff; }
.thumb.locked img { filter: grayscale(1) opacity(.55); }
.thumb.locked .tag { background: var(--ink); }

/* utilidades */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }

/* faixa da prévia estática */
.demo-bar { background: var(--ink); color: #fff; text-align: center; font-size: .85rem; font-weight: 700; padding: 7px 16px; }
