/* ── CADERNO DOS SUPERPODERES ──
   Estava embutido no próprio HTML. A página passa a carregar o style.css:
   medido em media=print antes e depois, a folha sai igual — a nav, o rodapé
   e as animações que o comentário antigo temia não existem neste HTML. A
   autonomia do LAYOUT fica; o que sai é a duplicação. */

    /* Estas folhas nao carregam o css/style.css, por isso repetem aqui a rede
       do [hidden]: sem ela, qualquer `display` declarado ganha ao atributo. */
    [hidden] { display: none !important; }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }


@page { size: A4 portrait; margin: 0; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; background: #f0ecf8; }

/* SCREEN BAR */
.screen-only.bar { background: white; border-bottom: 1.5px solid #EDE6F8; padding: 12px 24px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 200; }
.bar-back { font-size: 13px; font-weight: 800; color: #6B4FA6; text-decoration: none; padding: 8px 14px; border: 1.5px solid #C9B8E8; border-radius: 10px; transition: background .2s; }
.bar-back:hover { background: #EDE6F8; }
.bar-title { font-size: 15px; font-weight: 900; color: #3D2F4A; }
.bar-title span { color: #6B4FA6; }
.btn-print { background: #6B4FA6; border: none; border-radius: 10px; padding: 8px 20px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; color: white; cursor: pointer; margin-left: auto; }
.btn-print:hover { background: #7F77DD; }
.lang-toggle { background: none; border: 1.5px solid #C9B8E8; border-radius: 8px; padding: 5px 10px; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; color: #6B4FA6; cursor: pointer; transition: background .2s; }
.lang-toggle.active { background: #EDE6F8; }
.lang-toggle:hover { background: #EDE6F8; }
.pages { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 48px; gap: 28px; }
.pg-label { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; color: #6B4FA6; text-transform: uppercase; letter-spacing: .1em; margin-bottom: -18px; }

/* A4 */
.pg { width: 210mm; min-height: 297mm; background: white; overflow: hidden; box-shadow: 0 10px 40px rgba(100,80,180,.15); border-radius: 4px; position: relative; }

/* PAGE 1 — COVER */
.cover { min-height: 297mm; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20mm 18mm; background: white; position: relative; overflow: hidden; }
.cover-deco-tl { position: absolute; top: -30px; left: -30px; width: 120px; height: 120px; border-radius: 50%; background: #EDE6F8; z-index: 0; }
.cover-deco-br { position: absolute; bottom: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: #FDF0E8; z-index: 0; }
.cover-deco-tr { position: absolute; top: 40px; right: -20px; width: 80px; height: 80px; border-radius: 50%; background: #E8F5ED; z-index: 0; }
.cover-brand { font-size: 10pt; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #865FCB; margin-bottom: 6mm; position: relative; z-index: 1; }
.cover-title { font-size: 36pt; font-weight: 900; color: #3D2F4A; text-align: center; line-height: 1.1; margin-bottom: 4mm; position: relative; z-index: 1; }
.cover-title .acc { color: #6B4FA6; }
.cover-sub { font-size: 13pt; color: #7A6585; text-align: center; line-height: 1.5; margin-bottom: 10mm; position: relative; z-index: 1; max-width: 130mm; }
.cover-badge { background: #EDE6F8; border-radius: 20px; padding: 6px 18px; font-size: 10pt; font-weight: 800; color: #6056D5; position: relative; z-index: 1; }
.cover-powers { display: flex; gap: 5mm; flex-wrap: wrap; justify-content: center; margin-bottom: 14mm; position: relative; z-index: 1; }
.cover-pill { display: flex; align-items: center; gap: 3mm; border-radius: 20px; padding: 4px 14px; font-size: 10pt; font-weight: 800; }
.pill-d { background: #E4EEF9; color: #185FA5; }
.pill-i { background: #FFE8EA; color: #99253A; }
.pill-l { background: #E8F5ED; color: #1D6B3E; }
.pill-r { background: #FFFBE5; color: #8B5E0A; }
.cover-name-row { display: flex; gap: 8mm; width: 100%; max-width: 140mm; position: relative; }
.cover-field { flex: 1; }
.cover-field-label { font-size: 8pt; font-weight: 800; color: #6B4FA6; display: block; margin-bottom: 6mm; }
.cover-field-line { border-bottom: 1.5px solid #C9B8E8; min-height: 10mm; }
.cover-foot { position: absolute; bottom: 14mm; font-size: 8pt; font-weight: 700; color: #865FCB; letter-spacing: .06em; }

/* PAGE 2 */
.pg2 { padding: 14mm 15mm 10mm; }
.pg2-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8mm; padding-bottom: 5mm; border-bottom: 1.5px solid #EDE6F8; }
.pg2-header-left h2 { font-size: 17pt; font-weight: 900; color: #3D2F4A; margin-bottom: 2mm; }
.pg2-header-left p { font-size: 9.5pt; color: #7A6585; line-height: 1.5; max-width: 110mm; }
.pg2-header-right { font-size: 8pt; font-weight: 800; color: #865FCB; letter-spacing: .08em; white-space: nowrap; }
.how-box { background: #F8F5FF; border: 1.5px solid #C9B8E8; border-radius: 10px; padding: 5mm 6mm; margin-bottom: 6mm; }
.how-title { font-size: 8.5pt; font-weight: 900; color: #6056D5; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3mm; }
.how-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm 6mm; }
.how-step { display: flex; align-items: flex-start; gap: 2.5mm; font-size: 8.5pt; color: #3D2F4A; line-height: 1.5; }
.how-n { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; background: #6B4FA6; color: white; font-size: 7.5pt; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.powers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; margin-bottom: 5mm; }
.power-card { border-radius: 10px; padding: 5mm; border: 1.5px solid transparent; }
.pc-d { background: #E4EEF9; border-color: #B5D4F4; }
.pc-i { background: #FFE8EA; border-color: #FFB8C0; }
.pc-l { background: #E8F5ED; border-color: #A8D8BA; }
.pc-r { background: #FFFBE5; border-color: #FFE57A; }
.pc-header { display: flex; align-items: center; gap: 2.5mm; margin-bottom: 3mm; }
.pc-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14pt; background: white; }
.pc-name { font-size: 12pt; font-weight: 900; }
.nd { color: #0C447C; } .ni { color: #7A1826; } .nl { color: #1D6B3E; } .nr { color: #8B5E0A; }
.pc-desc { font-size: 8pt; font-weight: 600; margin-bottom: 3mm; }
.dd { color: #185FA5; } .di { color: #993556; } .dl { color: #3B6D11; } .dr { color: #854F0B; }
.pc-looks-title { font-size: 7.5pt; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2mm; color: #3D2F4A; }
.pc-look { display: flex; align-items: flex-start; gap: 2mm; font-size: 8pt; color: #3D2F4A; line-height: 1.45; margin-bottom: 1.5mm; }
.pc-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.dotd { background: #378ADD; } .doti { background: #D4537E; } .dotl { background: #1D9E75; } .dotr { background: #BA7517; }
.pg2-tip { background: #FDF0E8; border-radius: 8px; padding: 4mm 5mm; display: flex; gap: 3mm; align-items: flex-start; }
.pg2-tip-ico { font-size: 12pt; flex-shrink: 0; line-height: 1.2; }
.pg2-tip-text { font-size: 8.5pt; color: #3D2F4A; line-height: 1.6; }
.pg2-tip-text strong { font-weight: 800; color: #9C612A; }

/* PAGE 3 */
.pg3 { padding: 12mm 15mm 10mm; }
.pg3-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6mm; padding-bottom: 4mm; border-bottom: 1.5px solid #EDE6F8; }
.pg3-header h2 { font-size: 17pt; font-weight: 900; color: #3D2F4A; margin-bottom: 2mm; }
.pg3-header p { font-size: 8.5pt; color: #7A6585; line-height: 1.5; max-width: 100mm; }
.name-reminder { background: #F5F0FD; border-radius: 8px; border: 1px dashed #C9B8E8; padding: 3mm 5mm; margin-bottom: 5mm; display: flex; align-items: center; gap: 4mm; font-size: 9pt; color: #7A6585; }
.name-reminder .label { font-weight: 800; color: #6B4FA6; }
.name-line { flex: 1; border-bottom: 1px solid #C9B8E8; height: 14px; }
.day-rows { display: flex; flex-direction: column; gap: 3.5mm; }
.day-row { border: 1.5px solid #EDE6F8; border-radius: 9px; padding: 4mm 5mm; background: white; }
.day-header { display: flex; align-items: center; gap: 3mm; margin-bottom: 2.5mm; }
.day-num { width: 22px; height: 22px; border-radius: 50%; background: #EDE6F8; color: #6B4FA6; font-size: 9pt; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.day-prompt { font-size: 9pt; font-weight: 600; color: #3D2F4A; flex: 1; }
.day-power-picks { display: flex; gap: 2mm; }
.dpp { font-size: 7pt; font-weight: 800; padding: 1.5px 6px; border-radius: 10px; }
.dpp-d { background: #E4EEF9; color: #185FA5; }
.dpp-i { background: #FFE8EA; color: #99253A; }
.dpp-l { background: #E8F5ED; color: #1D6B3E; }
.dpp-r { background: #FFFBE5; color: #8B5E0A; }
.day-write-line { border-bottom: 1px solid #EDE6F8; min-height: 14px; margin-bottom: 2mm; }
.day-write-hint { font-size: 7.5pt; color: #865FCB; font-style: italic; }
.pg3-foot { display: flex; gap: 5mm; margin-top: 4mm; }
.pg3-remind { flex: 1; background: #E8F5ED; border-radius: 8px; padding: 3.5mm 4.5mm; }
.pg3-remind-title { font-size: 8pt; font-weight: 900; color: #1D6B3E; margin-bottom: 2mm; }
.pg3-remind-text { font-size: 8pt; color: #3D2F4A; line-height: 1.5; }

/* PAGE 4 */
.pg4 { padding: 12mm 15mm 10mm; }
.pg4-header { text-align: center; margin-bottom: 7mm; padding-bottom: 5mm; border-bottom: 1.5px solid #EDE6F8; }
.pg4-header h2 { font-size: 18pt; font-weight: 900; color: #3D2F4A; margin-bottom: 2mm; }
.pg4-header p { font-size: 9.5pt; color: #7A6585; line-height: 1.5; }
.rev-steps { display: flex; flex-direction: column; gap: 4mm; margin-bottom: 7mm; }
.rev-step { display: flex; gap: 4mm; align-items: flex-start; background: white; border: 1.5px solid #EDE6F8; border-radius: 10px; padding: 4.5mm 5mm; }
.rev-n { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: #6B4FA6; color: white; font-size: 10pt; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.rev-content { flex: 1; }
.rev-title { font-size: 9.5pt; font-weight: 900; color: #3D2F4A; margin-bottom: 1.5mm; }
.rev-text { font-size: 9pt; color: #7A6585; line-height: 1.55; }
.rev-text em { font-style: normal; font-weight: 800; color: #6B4FA6; }
.conv-box { background: #F5F0FD; border-radius: 10px; padding: 5mm 6mm; margin-bottom: 7mm; }
.conv-title { font-size: 8.5pt; font-weight: 900; color: #6056D5; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3mm; }
.conv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.conv-item { background: white; border-radius: 8px; padding: 3.5mm 4mm; border: 0.5px solid #C9B8E8; }
.conv-q { font-size: 8.5pt; color: #3D2F4A; line-height: 1.5; font-style: italic; }
.cut-line { display: flex; align-items: center; gap: 3mm; margin: 5mm 0; color: #865FCB; }
.cut-dashes { flex: 1; border-top: 1.5px dashed #C9B8E8; }
.cut-text { font-size: 8pt; font-weight: 700; white-space: nowrap; }
.cert { border: 3px solid #6B4FA6; border-radius: 14px; padding: 7mm 8mm; text-align: center; position: relative; background: white; }
.cert-corner { position: absolute; width: 20px; height: 20px; background: #6B4FA6; border-radius: 50%; }
.cert-corner.tl { top: -10px; left: -10px; }
.cert-corner.tr { top: -10px; right: -10px; }
.cert-corner.bl { bottom: -10px; left: -10px; }
.cert-corner.br { bottom: -10px; right: -10px; }
.cert-label { font-size: 8pt; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #865FCB; margin-bottom: 3mm; }
.cert-title { font-size: 18pt; font-weight: 900; color: #3D2F4A; margin-bottom: 2mm; line-height: 1.1; }
.cert-title span { color: #6B4FA6; }
.cert-power-line { font-size: 14pt; font-weight: 900; color: #6B4FA6; border-bottom: 2px solid #C9B8E8; display: inline-block; min-width: 80mm; margin-bottom: 3mm; padding-bottom: 1mm; }
.cert-line-label { font-size: 8pt; color: #7A6585; margin-bottom: 4mm; line-height: 1.4; }
.cert-story { font-size: 9pt; color: #7A6585; line-height: 1.6; font-style: italic; margin-bottom: 4mm; max-width: 130mm; margin-left: auto; margin-right: auto; }
.cert-sign-row { display: flex; justify-content: center; gap: 18mm; }
.cert-sign { text-align: center; }
.cert-sign-line { border-bottom: 1.5px solid #C9B8E8; width: 40mm; margin-bottom: 1.5mm; height: 14px; }
.cert-sign-label { font-size: 7.5pt; color: #865FCB; }
.pg4-foot { text-align: center; margin-top: 5mm; font-size: 7.5pt; font-weight: 700; color: #865FCB; }
/* ── IMPRESSAO ──
   No fim do <style> de proposito: media queries nao acrescentam especificidade,
   por isso as regras de ecra que vinham depois anulavam estas — o .pages
   mantinha padding e gap na impressao e empurrava folhas para paginas extra.
   E height fixo em vez de min-height, para o conteudo nao transbordar o A4. */
@media print {
  html, body { margin: 0; padding: 0; background: white; }
  .screen-only { display: none !important; }
  .pages { display: block; padding: 0; gap: 0; background: white; }
  .pg { height: 297mm; box-shadow: none !important; border-radius: 0 !important; }
  .pg + .pg { page-break-before: always; }
}
/* Ajuste ao ecra: estas folhas tem largura fixa de A4 e transbordavam no
   telemovel, obrigando a fazer zoom out a mao. Dentro de @media screen,
   por isso a impressao fica exatamente como estava. */
@media screen {
  .pages { zoom: var(--esc, 1); }
}
/* Em ecras estreitos a barra quebra em vez de empurrar os botoes para fora. */
@media screen and (max-width: 560px) {
  .screen-only.bar { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .btn-print { margin-left: 0; }
}
