/* =====================================================================
   Agenda de Dezembro — estilo "Canva" rose gold, páginas 9:16
   Tudo é medido em cqw (1cqw = 1% da largura da página): cada página
   escala inteira como uma arte, igual no celular, no PDF e nas imagens.
   ===================================================================== */
:root {
  --rose: #C9877A;
  --rose-escuro: #8E4F45;
  --rose-claro: #F3D2C8;
  --blush: #F7E4DE;
  --texto: #5E3A35;
  --suave: #8C6A63;
  --grad-rose: linear-gradient(125deg, #A5594B 0%, #D49A88 30%, #F4D3C5 50%, #D7A08F 68%, #A9604F 100%);
  --grad-cartao: linear-gradient(165deg, #F1C4B6 0%, #E8AE9E 55%, #DD9A89 100%);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --fina: "Italiana", "Bodoni Moda", Georgia, serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --texto-f: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #E9D3CD; color: var(--texto); font-family: var(--texto-f); }
h1, h2, p, ul { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

#paginas { width: 100%; max-width: 480px; margin: 0 auto; padding: 10px 8px 90px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Página ---------- */
.pg {
  position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px;
  container-type: inline-size; background: var(--blush);
  box-shadow: 0 14px 34px -16px rgba(94, 58, 53, .55);
  display: flex; flex-direction: column; align-items: center;
  font-size: 3.55cqw; line-height: 1.45;
}
.fundo { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.fundo--espelho { transform: scaleX(-1); }
.veu { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(255,250,248,.15), rgba(255,250,248,.05) 40%, rgba(255,250,248,.15)); }
.veu--capa { background: radial-gradient(85% 38% at 72% 24%, rgba(255,252,250,.96), rgba(255,252,250,.7) 45%, rgba(255,252,250,0) 75%), linear-gradient(180deg, rgba(255,250,248,0) 55%, rgba(243,214,206,.5)); }
.veu--cal { background: linear-gradient(180deg, rgba(255,252,251,.92) 0%, rgba(255,252,251,.75) 55%, rgba(255,252,251,0) 82%); }
.veu--leve { background: linear-gradient(180deg, rgba(255,246,243,.35), rgba(255,246,243,.1)); }
.veu--fim { background: linear-gradient(180deg, rgba(120,60,52,.12), rgba(255,240,236,.35)); }
.pg > *:not(.fundo):not(.veu) { position: relative; z-index: 1; }

.contador {
  position: absolute !important; top: 3cqw; left: 3cqw; z-index: 5 !important;
  font-size: 2.6cqw; font-weight: 600; letter-spacing: .05em; color: var(--rose-escuro);
  background: rgba(255,255,255,.75); backdrop-filter: blur(4px); padding: .6cqw 2.2cqw; border-radius: 99px;
}

.brilho { position: absolute !important; z-index: 2 !important; fill: #fff; filter: drop-shadow(0 0 1.4cqw rgba(255,255,255,.9)); animation: cintila 3.2s ease-in-out infinite; }
.b1 { width: 6cqw; top: 20cqw; left: 12cqw; }
.b2 { width: 3.6cqw; top: 46cqw; right: 8cqw; animation-delay: 1.1s; }
.b3 { width: 4.4cqw; top: 9cqw; right: 30cqw; animation-delay: 2s; }
.b4 { width: 4.6cqw; top: 14cqw; right: 12cqw; animation-delay: 1.5s; }
@keyframes cintila { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }

.script { font-family: var(--script); font-weight: 400; color: var(--rose-escuro); letter-spacing: 0; text-transform: none; }

/* ---------- 1. Capa ---------- */
.capa__titulo { position: absolute !important; top: 13cqw; right: 4cqw; text-align: right; }
.capa__ano { display: block; font-family: var(--serif); font-size: 6cqw; letter-spacing: .3em; color: var(--rose); margin-right: -.3em; }
.capa h1 { font-weight: 400; line-height: .9; }
.capa__agenda {
  display: block; font-family: var(--serif); font-size: 19cqw; font-weight: 500; letter-spacing: -.01em;
  background: linear-gradient(120deg, #7E4237 0%, #B9705F 35%, #D9A08D 52%, #A9604F 72%, #7E4237 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1.6cqw rgba(255,253,251,.95)) drop-shadow(0 .4cqw .6cqw rgba(142,79,69,.3));
}
.capa__mes { display: block; font-family: var(--script); font-size: 12.5cqw; color: var(--rose-escuro); margin-top: -3cqw; padding-right: 2.5cqw; text-shadow: 0 0 1.4cqw rgba(255,253,251,.95); }
.capa__foto { position: absolute !important; left: -1cqw; bottom: 0; width: 84cqw; }
.capa__foto img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2cqw 4cqw rgba(94,58,53,.3)); }
.halo { position: absolute; left: 12%; right: 8%; top: 8%; bottom: 0; border-radius: 50% 50% 0 0; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.95), rgba(247,223,215,.6) 55%, rgba(247,223,215,0) 72%); }
.capa__marca { z-index: 3 !important;
  position: absolute !important; right: 5cqw; bottom: 9cqw; width: 46cqw; text-align: center;
  padding: 3.4cqw 3cqw; border-radius: 3.4cqw; background: rgba(255,251,249,.82); backdrop-filter: blur(6px);
  box-shadow: 0 2cqw 5cqw -2cqw rgba(94,58,53,.4); display: flex; flex-direction: column; gap: .6cqw;
}
.capa__marca strong { font-family: var(--fina); font-weight: 400; font-size: 5.2cqw; line-height: 1.1; color: var(--texto); letter-spacing: .04em; }
.capa__marca span { font-size: 2.5cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.capa__marca em { font-family: var(--script); font-style: normal; font-size: 6.2cqw; line-height: 1; color: var(--rose-escuro); margin-top: 1cqw; }

/* ---------- Cartões ---------- */
.cartao { width: 86cqw; border-radius: 4cqw; }
.cartao--papel {
  background: rgba(255,253,252,.94); padding: 9cqw 5.5cqw 5cqw; margin-top: 7cqw;
  box-shadow: 0 3cqw 6cqw -2cqw rgba(94,58,53,.35), inset 0 0 0 .5cqw rgba(255,255,255,.9);
}
.cartao--rosa { background: var(--grad-cartao); color: #fff; padding: 6cqw 6cqw 5.5cqw; box-shadow: 0 3cqw 7cqw -3cqw rgba(142,79,69,.7); }
.cartao--rosa strong { color: #fff; }
.aba {
  position: absolute; top: -4.2cqw; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--fina); font-weight: 400; font-size: 5.6cqw; color: #fff; letter-spacing: .03em;
  padding: 1.4cqw 7cqw; border-radius: 99px; background: var(--grad-cartao);
  box-shadow: 0 1.6cqw 3cqw -1cqw rgba(142,79,69,.6);
}
.cartao--papel { position: relative; }

/* ---------- 2. Política ---------- */
.pg--politica { justify-content: center; }
.regras { list-style: none; display: flex; flex-direction: column; gap: 3cqw; }
.regras li { position: relative; padding-left: 6cqw; color: var(--suave); font-size: 3.45cqw; line-height: 1.42; }
.regras li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--rose); font-size: 3.6cqw; }
.regras strong { color: var(--texto); font-weight: 600; }
.assina { margin-top: 5cqw; text-align: center; font-family: var(--script); font-size: 8cqw; line-height: 1; color: var(--rose-escuro); }

/* ---------- 3. Calendário ---------- */
.titulo-serif { font-family: var(--serif); font-weight: 400; font-size: 13cqw; line-height: 1; color: var(--rose-escuro); text-align: center; margin-top: 14cqw; display: flex; flex-direction: column; align-items: center; }
.titulo-serif .script { font-size: 8.6cqw; margin-top: -1.2cqw; color: var(--rose); }
.cal { width: 84cqw; margin-top: 5cqw; padding: 4cqw 3.4cqw 3.6cqw; border-radius: 5cqw; background: var(--grad-rose); color: #fff; box-shadow: 0 3cqw 6cqw -2cqw rgba(142,79,69,.75), inset 0 0 0 .6cqw rgba(255,255,255,.25); }
.cal__topo { display: flex; justify-content: space-between; padding: 0 2cqw 2cqw; font-family: var(--fina); font-size: 4.4cqw; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 .3cqw .6cqw rgba(94,58,53,.35); }
.cal__grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1cqw .6cqw; text-align: center; }
.cs { font-family: var(--serif); font-size: 4.4cqw; padding-bottom: 1cqw; text-shadow: 0 .3cqw .6cqw rgba(94,58,53,.35); }
.cd { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 3.8cqw; font-weight: 600; text-shadow: 0 .2cqw .5cqw rgba(94,58,53,.4); }
.cd--a { background: rgba(255,255,255,.14); }
.cd--f { color: rgba(255,255,255,.55); text-decoration: line-through; text-shadow: none; }
.cd--e { background: #fff; color: var(--rose-escuro); text-shadow: none; }
.legenda { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqw 4cqw; margin-top: 3cqw; font-size: 2.9cqw; font-weight: 500; color: var(--texto); background: rgba(255,253,252,.94); padding: 1.8cqw 4cqw; border-radius: 99px; width: fit-content; max-width: 86cqw; box-shadow: 0 1.6cqw 3.4cqw -1.6cqw rgba(94,58,53,.45); }
.legenda li { display: flex; align-items: center; gap: 1.4cqw; }
.lg { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; display: inline-block; }
.lg--a { background: #C67E70; }
.lg--f { background: #fff; box-shadow: inset 0 0 0 .3cqw #C9A69E; }
.lg--e { background: #fff; box-shadow: inset 0 0 0 .6cqw #C67E70; }
.horario { width: 78cqw; margin-top: 4cqw; display: flex; align-items: center; gap: 3cqw; padding: 3cqw 4.5cqw; border-radius: 4cqw; background: var(--grad-cartao); color: #fff; box-shadow: 0 2.4cqw 5cqw -2cqw rgba(142,79,69,.7); }
.horario .ic { width: 9cqw; height: 9cqw; flex: none; }
.horario .script { color: #fff; font-size: 7.4cqw; line-height: 1; display: block; }
.horario p { font-size: 3.4cqw; }
.horario strong { font-weight: 600; }
.horario small { display: block; font-size: 2.7cqw; opacity: .92; }

/* ---------- 4. Sinal ---------- */
.pg--sinal { justify-content: flex-end; padding-bottom: 6cqw; }
.olho { position: absolute !important; top: 7cqw; right: -8cqw; width: 52cqw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.6cqw rgba(255,255,255,.75), 0 3cqw 6cqw -2cqw rgba(94,58,53,.5); }
.olho img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.titulo-serif--esq { position: absolute !important; top: 20cqw; left: 7cqw; margin: 0; align-items: flex-start; text-align: left; font-size: 17cqw; }
.titulo-serif--esq .script { font-size: 9.4cqw; margin: -2cqw 0 0 2cqw; }
.pg--sinal .cartao--rosa p { font-size: 3.3cqw; margin-bottom: 2cqw; text-align: center; }
.valor { display: flex; flex-direction: column; align-items: center; margin-bottom: 2.6cqw; }
.valor span { font-size: 2.6cqw; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; opacity: .9; }
.valor strong { font-family: var(--serif); font-weight: 400; font-size: 12cqw; line-height: 1.05; text-shadow: 0 .5cqw 1.4cqw rgba(142,79,69,.4); }
.pix { display: flex; align-items: center; gap: 3.6cqw; background: rgba(255,255,255,.95); color: var(--texto); border-radius: 3.4cqw; padding: 3cqw; margin-top: 3cqw; }
.pix__qr { flex: none; width: 25cqw; }
.pix__qr svg { display: block; width: 100%; height: auto; }
.pix__dados { display: flex; flex-direction: column; gap: .6cqw; min-width: 0; }
.pix__tipo { font-size: 2.6cqw; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--rose); }
.pix__chave { font-family: ui-monospace, Consolas, monospace; font-size: 2.9cqw; word-break: break-all; color: var(--texto); }
.pix__nome { font-size: 2.6cqw; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; margin-top: 2.6cqw; }
.botoes button { display: inline-flex; align-items: center; justify-content: center; gap: 1.4cqw; border: .3cqw solid rgba(255,255,255,.85); background: rgba(255,255,255,.18); color: #fff; border-radius: 99px; padding: 2.2cqw 2cqw; font-size: 3cqw; font-weight: 600; cursor: pointer; }
.botoes .ic { width: 4cqw; height: 4cqw; }
.botao-zap { display: flex; align-items: center; justify-content: center; gap: 2cqw; margin-top: 3cqw; padding: 3.2cqw; border-radius: 99px; background: #fff; color: var(--rose-escuro); text-decoration: none; font-weight: 600; font-size: 3.6cqw; box-shadow: 0 2cqw 4cqw -2cqw rgba(94,58,53,.5); }
.botao-zap .ic { width: 5.4cqw; height: 5.4cqw; color: #25A75A; }

/* ---------- 5. Local e pagamento ---------- */
.pg--local { justify-content: center; gap: 0; }
.pg--local .cartao--papel { margin-top: 9cqw; padding-top: 7.5cqw; padding-bottom: 4cqw; }
.pg--local .cartao--papel:first-of-type { margin-top: 4cqw; }
.formas { list-style: none; display: flex; flex-direction: column; gap: 2.6cqw; padding-left: 8cqw; }
.formas li { display: flex; align-items: center; gap: 4cqw; font-family: var(--fina); font-size: 5.2cqw; color: var(--texto); line-height: 1.1; }
.ic { width: 7cqw; height: 7cqw; flex: none; }
.ic--rosa { color: var(--rose); }
.formas .ic { width: 9cqw; height: 9cqw; }
.obs { display: block; text-align: center; margin-top: 3cqw; font-size: 2.9cqw; color: var(--suave); }
.linha { display: flex; align-items: center; gap: 3.4cqw; text-decoration: none; font-size: 3.4cqw; color: var(--texto); padding: 1cqw 2cqw; }
.linha + .linha { border-top: .25cqw solid rgba(201,135,122,.25); padding-top: 2.4cqw; margin-top: 1.4cqw; }
.linha small { display: block; font-size: 2.5cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.cartao--mini .aba { font-size: 4.8cqw; padding: 1.1cqw 6cqw; top: -3.6cqw; }

/* ---------- 6. Agradecimento ---------- */
.pg--fim { justify-content: flex-end; padding-bottom: 7cqw; }
.arco { position: absolute !important; top: 8cqw; left: 50%; transform: translateX(-50%); width: 60cqw; aspect-ratio: 3 / 3.4; border-radius: 30cqw 30cqw 4cqw 4cqw; overflow: hidden; box-shadow: 0 0 0 1.4cqw rgba(255,255,255,.8), 0 0 0 1.8cqw rgba(201,135,122,.55), 0 4cqw 8cqw -3cqw rgba(94,58,53,.55); }
.arco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cartao--fim { text-align: center; padding-top: 4cqw; }
.script--grande { display: block; color: #fff; font-size: 12cqw; line-height: 1; margin-bottom: -1cqw; }
.fim__titulo { font-family: var(--fina); font-weight: 400; font-size: 9.6cqw; letter-spacing: .05em; line-height: 1.1; margin-bottom: 2.6cqw; text-shadow: 0 .5cqw 1.4cqw rgba(142,79,69,.35); }
.cartao--fim p { font-size: 3.3cqw; margin-bottom: 1.8cqw; }
.fim__assina { color: #fff !important; font-size: 8cqw !important; line-height: 1; margin: 1cqw 0 0 !important; }
.botao-zap--claro { margin-top: 3cqw; }

/* ---------- Flutuante e aviso ---------- */
.flutuante { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 99px; background: #25D366; color: #052E16; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(5,46,22,.6); transform: translateY(120px); opacity: 0; transition: .35s; }
.flutuante .ic { width: 22px; height: 22px; }
.flutuante--ver { transform: none; opacity: 1; }
.aviso { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 16px); z-index: 30; background: #4A2C28; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; }
.aviso--ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modo exportação (PDF / imagens) ---------- */
body.exportar { background: none; }
body.exportar #paginas { max-width: none; padding: 0; gap: 0; }
body.exportar .pg { border-radius: 0; box-shadow: none; }
body.exportar .web, body.exportar .flutuante, body.exportar .aviso { display: none !important; }
body.exportar .brilho { animation: none; opacity: .9; }

@media (prefers-reduced-motion: reduce) { .brilho { animation: none; } }
