/* ═══════════════════════════════════════════════════════════════
   Site em construção — tema papelaria (papel quadriculado, fitas
   adesivas, post-its e polaroids). Mobile primeiro.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --vermelho: #e30613;
  --azul: #1a73e8;
  --amarelo: #f59e0b;
  --verde: #16a34a;
  --tinta: #1e293b;
  --cinza: #64748b;
  --papel: #fffdf7;
  --fundo: #f3efe4;
  --sombra: 0 10px 30px rgba(30, 41, 59, .10), 0 2px 6px rgba(30, 41, 59, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--tinta);
  background-color: var(--fundo);
  /* papel quadriculado */
  background-image:
    linear-gradient(rgba(26, 115, 232, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 115, 232, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

.pagina { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 28px 16px 24px; }

/* ── folhas de papel com fita adesiva ── */
.folha {
  position: relative;
  background: var(--papel);
  border-radius: 6px;
  box-shadow: var(--sombra);
  padding: 34px 22px 28px;
  text-align: center;
}
.folha::before {   /* margem vermelha de caderno */
  content: ""; position: absolute; top: 0; bottom: 0; left: 30px;
  border-left: 2px solid rgba(227, 6, 19, .18);
}
.fita {
  position: absolute; top: -14px; width: 110px; height: 30px;
  background: rgba(253, 224, 71, .75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px);
}
.fita-esq { left: -18px; transform: rotate(-22deg); }
.fita-dir { right: -18px; transform: rotate(18deg); background-color: rgba(96, 165, 250, .6); }
.fita-meio { left: 50%; margin-left: -55px; transform: rotate(-3deg); background-color: rgba(244, 114, 182, .6); }

/* ── topo ── */
.logo { width: min(320px, 78%); margin: 0 auto 14px; }
.selo {
  display: inline-block; background: var(--amarelo); color: #fff; font-weight: 800;
  font-size: 13px; letter-spacing: .03em; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 3px 0 #c27803; transform: rotate(-2deg);
}
h1 { font-size: clamp(26px, 5.4vw, 42px); line-height: 1.15; margin: 16px 0 6px; font-weight: 900; }
.marca-texto {   /* grifado com marca-texto */
  background: linear-gradient(transparent 55%, rgba(253, 224, 71, .9) 55%, rgba(253, 224, 71, .9) 90%, transparent 90%);
  padding: 0 4px;
}
.manuscrito { font-family: 'Caveat', cursive; font-size: clamp(28px, 6vw, 40px); color: var(--vermelho); margin: 4px 0 8px; font-weight: 700; }
.sub { color: var(--cinza); font-size: 15.5px; line-height: 1.6; margin: 0 auto; max-width: 560px; }

/* lápis desenhando a linha */
.progresso { position: relative; height: 34px; max-width: 460px; margin: 22px auto 0; }
.progresso-linha {
  position: absolute; left: 0; top: 16px; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--tinta) 0 14px, transparent 14px 22px);
  width: 0; animation: desenhar 4s ease-in-out infinite;
}
.progresso-lapis { position: absolute; top: 4px; width: 92px; left: 0; animation: lapis 4s ease-in-out infinite; transform: rotate(-12deg); transform-origin: left center; }
@keyframes desenhar { 0% { width: 0; } 70%, 100% { width: 78%; } }
@keyframes lapis { 0% { left: 0; } 70%, 100% { left: 78%; } }

/* ── contador ── */
.contador-bloco { text-align: center; margin: 38px 0 10px; }
.titulo-sec { font-size: clamp(19px, 3.6vw, 24px); margin: 0 0 18px; font-weight: 800; }
.data-estreia { color: var(--azul); white-space: nowrap; }
.contador { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 640px; margin: 0 auto; }
.postit {
  position: relative; padding: 18px 6px 14px; border-radius: 2px 2px 14px 2px;
  box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .25);
}
.postit::after {   /* canto dobrado */
  content: ""; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px;
  background: linear-gradient(135deg, rgba(0,0,0,.12) 50%, rgba(255,255,255,.5) 50%); border-radius: 0 0 14px 0;
}
.postit b { display: block; font-size: clamp(30px, 7vw, 52px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.postit span { display: block; font-family: 'Caveat', cursive; font-size: clamp(18px, 3.6vw, 24px); margin-top: 4px; }
.p1 { background: #fde047; transform: rotate(-3deg); }
.p2 { background: #a5f3fc; transform: rotate(2deg); }
.p3 { background: #fbcfe8; transform: rotate(-1.5deg); }
.p4 { background: #bbf7d0; transform: rotate(3deg); }
.chegou { font-size: 18px; font-weight: 800; color: var(--verde); margin-top: 16px; }

/* ── categorias (polaroids) ── */
.categorias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 34px 0; }
.polaroid {
  margin: 0; background: #fff; padding: 10px 10px 4px; border-radius: 4px; box-shadow: var(--sombra);
  transition: transform .25s ease, box-shadow .25s ease;
}
.polaroid img { width: 100%; aspect-ratio: 6 / 5; background: #f8fafc; border-radius: 2px; padding: 8px; }
.polaroid figcaption { font-family: 'Caveat', cursive; font-size: 26px; font-weight: 700; text-align: center; padding: 6px 0 4px; }
.r1 { transform: rotate(-2.5deg); } .r1 figcaption { color: var(--azul); }
.r2 { transform: rotate(1.8deg); }  .r2 figcaption { color: var(--tinta); }
.r3 { transform: rotate(-1.2deg); } .r3 figcaption { color: #d97706; }
.r4 { transform: rotate(2.4deg); }  .r4 figcaption { color: var(--vermelho); }
.polaroid:hover { transform: rotate(0) translateY(-6px) scale(1.03); box-shadow: 0 18px 36px rgba(30, 41, 59, .16); }

/* ── cadastro ── */
.cadastro h2 { font-size: clamp(22px, 4.4vw, 30px); margin: 4px 0 6px; font-weight: 900; }
.cadastro form { max-width: 620px; margin: 20px auto 0; text-align: left; }
.campos { display: grid; grid-template-columns: 1fr; gap: 12px; }
.campo span { display: block; font-weight: 700; font-size: 13.5px; margin: 0 0 5px 2px; }
.campo small { font-weight: 600; color: var(--cinza); }
.campo input {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; color: var(--tinta);
  border: 2px solid #e2e8f0; border-radius: 10px; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.campo input:focus { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(26, 115, 232, .15); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.aceite { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--cinza); margin: 14px 2px 0; line-height: 1.45; cursor: pointer; }
.aceite input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--azul); }
.btn {
  display: block; width: 100%; margin-top: 16px; padding: 15px 20px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 900; color: #fff; background: var(--vermelho);
  box-shadow: 0 5px 0 #a3040e; transition: transform .1s, box-shadow .1s, filter .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #a3040e; }
.btn:disabled { opacity: .7; cursor: wait; }
.aviso { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; text-align: center; }
.aviso.ok { background: #dcfce7; color: #166534; }
.aviso.erro { background: #fee2e2; color: #991b1b; }

/* ── rodapé ── */
.rodape { text-align: center; color: var(--cinza); font-size: 13px; padding: 26px 0 6px; }
.credito { color: var(--azul); font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }
.credito:hover { color: var(--vermelho); }

/* cards das redes sociais */
.redes-tit { margin: 6px 0 14px; }
.redes { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 960px; margin: 0 auto 22px; }
.rede {
  display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none; color: var(--tinta);
  background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--sombra);
  border-left: 5px solid var(--cor); transition: transform .2s, box-shadow .2s;
}
.rede:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(30, 41, 59, .14); }
.rede-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--cor); }
.rede-ic svg { width: 26px; height: 26px; }
.rede-txt { flex: 1; min-width: 0; }
.rede-txt b { display: block; font-size: 15px; font-weight: 800; }
.rede-txt small { display: block; font-size: 13px; color: var(--cinza); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rede-ir { font-size: 13px; font-weight: 800; color: var(--cor); white-space: nowrap; }
.rede.insta { --cor: #d6249f; }
.rede.insta .rede-ic { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.rede.face  { --cor: #1877f2; }
.rede.whats { --cor: #25d366; }
@media (min-width: 640px) { .redes { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }

/* ── botões flutuantes do WhatsApp (lojas) ── */
.wa-flut { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.wa-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.wa-nome {
  background: #fff; color: #128c4b; font-weight: 800; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15); white-space: nowrap;
}
.wa-ic {
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .45); transition: transform .2s, box-shadow .2s; animation: waPulso 2.6s ease-in-out infinite;
}
.wa-ic svg { width: 30px; height: 30px; }
.wa-btn:hover .wa-ic { transform: scale(1.08); box-shadow: 0 10px 22px rgba(37, 211, 102, .55); }
.wa-btn:nth-child(2) .wa-ic { animation-delay: 1.3s; }
@keyframes waPulso { 0%, 100% { box-shadow: 0 6px 16px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .45); } 50% { box-shadow: 0 6px 16px rgba(37, 211, 102, .45), 0 0 0 10px rgba(37, 211, 102, 0); } }
@media (max-width: 639px) {
  /* no celular os 2 botões ficam lado a lado (ocupam menos altura no fim da página) */
  .wa-flut { right: 10px; bottom: 10px; gap: 8px; flex-direction: row; align-items: flex-end; }
  .wa-ic { width: 50px; height: 50px; } .wa-ic svg { width: 27px; height: 27px; }
  .wa-nome { font-size: 10.5px; padding: 4px 7px; }
  body:has(.wa-flut) .pagina { padding-bottom: 8px; }
  body:has(.wa-flut) .rodape { padding-bottom: 84px; }   /* só a altura dos botões: o texto do rodapé não fica escondido atrás deles */
}

/* ── rabiscos do fundo ── */
.doodles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dd { position: absolute; opacity: .55; animation: flutuar 7s ease-in-out infinite; }
.dd-lapis   { width: 120px; top: 8%;  left: 3%;  transform: rotate(-30deg); }
.dd-clipe   { width: 26px;  top: 46%; left: 2%;  animation-delay: -2s; }
.dd-estrela { width: 34px;  top: 16%; right: 6%; animation-delay: -1s; }
.dd-regua   { width: 140px; bottom: 10%; right: 2%; transform: rotate(-12deg); animation-delay: -3s; }
.dd-coracao { width: 30px;  bottom: 22%; left: 6%; animation-delay: -4s; }
.dd-espiral { width: 54px;  top: 62%; right: 5%; animation-delay: -5s; }
.dd-clipe2  { width: 22px;  top: 30%; right: 3%; animation-delay: -2.5s; }
.dd-estrela2{ width: 26px;  bottom: 30%; left: 12%; animation-delay: -6s; }
@keyframes flutuar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* confete */
.confete { position: fixed; top: -14px; width: 9px; height: 14px; z-index: 50; border-radius: 2px; animation: cair 3s linear forwards; pointer-events: none; }
@keyframes cair { to { top: 105vh; translate: 40px 0; rotate: 540deg; } }

/* ── telas maiores ── */
@media (min-width: 640px) {
  .pagina { padding: 44px 24px 30px; }
  .folha { padding: 44px 48px 36px; }
  .folha::before { left: 40px; }
  .campos { grid-template-columns: 1fr 1fr; }
  .campo-nome { grid-column: 1 / -1; }
  .btn { width: auto; margin: 18px auto 0; padding: 15px 42px; }
}
@media (min-width: 860px) {
  .categorias { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}
@media (max-width: 639px) {
  .folha::before { display: none; }   /* sem a margem vermelha: no celular o texto passaria por cima dela */
  .dd-lapis, .dd-regua, .dd-espiral, .dd-clipe, .dd-clipe2 { display: none; }
  .fita { width: 80px; height: 24px; }
  .fita-meio { margin-left: -40px; }
  .contador { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .progresso-linha { width: 78%; } .progresso-lapis { left: 78%; }
}
