/* ==========================================================================
   +365 · protótipo v5 · direção de design (DESIGN_SITE_365.md) e PROMPT_v5.md
   Princípios
   - Papel e tinta primeiro. O azul da marca aparece em dois momentos (abertura
     e fecho) e o creme num (grupos). O dourado quase não se usa.
   - Títulos: sans a negrito com uma parte em serifa itálica (como nos posts).
   - Poucos elementos por ecrã, painéis de cantos redondos, linhas finas.
   - Movimento: entradas suaves ao deslizar, cor de fundo que muda por secção,
     reações ao passar o rato. Só CSS e JavaScript simples, sem 3D.
   Fontes do brandkit: Satoshi (texto e títulos) e PT Serif itálico (destaques).
   Fallback: Calibri e Cambria.
   ========================================================================== */

@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("fonts/PTSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; } /* v5: WOFF2 só com latim (42 KB em vez de 232 KB). A Regular não era usada e saiu. */

:root {
  --azul: #073BCC;
  --creme: #FFF4D4;
  --dourado: #F2A93B;
  --azul-claro: #4AA1CD;

  --papel: #FAFAF7;
  --painel: #EFEFEA;
  --tinta: #0D1226;
  --cinza: #5C6170;          /* texto secundário, 6:1 sobre papel */
  --apagado: #858996;        /* só para palavras ainda por revelar; 3.3:1 sobre papel (texto grande), antes #B4B7C2 a 1.9:1 */
  --linha: rgba(13, 18, 38, 0.14);

  --sans: "Satoshi", Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
  --serif: "PT Serif", Cambria, Caladea, Georgia, serif;

  --m: 1.25rem;              /* margem lateral */
  --raio: 1.5rem;
  --raio-g: 2rem;
  --suave: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 900px) { :root { --m: 2.5rem; --raio-g: 2.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5; color: var(--tinta);
  background: var(--papel); transition: background-color 0.7s var(--suave);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
body[data-tema="creme"] { background: var(--creme); }
body[data-tema="azul"] { background: var(--azul); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; border-radius: 6px; }
.so-leitores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.estado-visitante .so-sessao, body.estado-sessao .so-visitante { display: none !important; }

.c { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--m); }

/* Títulos */
h1, h2, h3, p { margin: 0; }
.t {
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance;
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
}
.t--m { font-size: clamp(2.125rem, 4.4vw, 3.75rem); }
.t i, .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.rotulo { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1rem; font-weight: 700; }
.estrela { width: 0.8em; height: 0.8em; flex: none; fill: currentColor; }
.ex { font-size: 1rem; font-weight: 400; font-style: normal; font-family: var(--sans); letter-spacing: 0; white-space: nowrap; } /* opacidade total: a 0.75 sobre texto cinzento ficava abaixo de AA */

/* Entradas ao deslizar (só com JavaScript ligado) */
.js [data-rev] { opacity: 0; transform: translateY(1.75rem); transition: opacity 0.9s var(--suave), transform 0.9s var(--suave); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-rev].visto { opacity: 1; transform: none; }

/* Ação: etiqueta + círculo com seta ------------------------------------------ */
.acao { display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none; font-weight: 700; cursor: pointer; border: 0; background: none; padding: 0; }
.acao__t, .acao__s { display: inline-flex; align-items: center; justify-content: center; height: 3.25rem; border-radius: 999px; background: var(--tinta); color: var(--papel); transition: transform 0.45s var(--suave), background-color 0.3s; }
.acao__t { padding: 0 1.5rem; }
.acao__s { width: 3.25rem; }
.acao__s svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--suave); }
.acao:hover .acao__s { transform: translateX(0.35rem); }
.acao:hover .acao__s svg { transform: rotate(-45deg); }
.acao--creme .acao__t, .acao--creme .acao__s { background: var(--creme); color: var(--azul); }
.acao--azul .acao__t, .acao--azul .acao__s { background: var(--azul); color: #fff; }
/* Ligação de texto com linha que cresce */
.lig { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; font-weight: 700; text-decoration: none; }
.lig::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--suave); }
.lig:hover::after { transform: scaleX(1); }
.lig svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Cabeçalho flutuante ---------------------------------------------------------- */
.topo { position: fixed; z-index: 50; top: 1.25rem; left: 0; right: 0; pointer-events: none; transition: transform 0.5s var(--suave); }
.topo.escondido { transform: translateY(-160%); }
.topo__barra {
  pointer-events: auto; display: flex; align-items: center; gap: 0.5rem; height: 3.75rem; padding: 0 0.5rem 0 1.1rem; margin-inline: calc(var(--m) + 0.5rem); max-width: 80rem;
  background: rgba(250, 250, 247, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 999px; box-shadow: 0 0.5rem 2rem rgba(13, 18, 38, 0.10);
}
@media (min-width: 87rem) { .topo__barra { margin-inline: auto; } }
.topo__logo { flex: none; display: block; margin-left: -0.5rem; }
.topo__logo img { height: 2.6rem; width: auto; }
.topo__nav { display: none; }
.topo__fim { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.pil { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1.15rem; border-radius: 999px; border: 0; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color 0.3s, color 0.3s, transform 0.3s var(--suave); }
.pil--tinta { background: var(--tinta); color: var(--papel); }
.pil--tinta:hover { background: var(--azul); }
.pil--claro { background: var(--painel); color: var(--tinta); }
.pil--claro:hover { background: var(--tinta); color: var(--papel); }
.pil__pontos { display: inline-flex; gap: 3px; }
.pil__pontos i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; transition: transform 0.4s var(--suave); }
.pil:hover .pil__pontos i:first-child { transform: translateX(-2px); }
.pil:hover .pil__pontos i:last-child { transform: translateX(2px); }
.conta { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 700; text-decoration: none; }
@media (min-width: 1000px) {
  .topo__nav { position: relative; display: flex; margin-inline: auto; }
  .topo__nav a { position: relative; z-index: 1; padding: 0.55rem 1rem; border-radius: 999px; font-size: 1rem; font-weight: 700; text-decoration: none; transition: color 0.3s; }
  .topo__realce { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: var(--tinta); opacity: 0; transition: transform 0.45s var(--suave), width 0.45s var(--suave), opacity 0.3s; }
  .topo__nav:hover .topo__realce { opacity: 1; }
  .topo__nav a.sobre { color: var(--papel); }
  .pil--menu { display: none; }
}

/* Menu em ecrã inteiro (telemóvel) */
.menu { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem var(--m) 2.5rem; background: var(--papel); visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0s 0.4s; }
body.menu-aberto { overflow: hidden; }
body.menu-aberto .menu { visibility: visible; opacity: 1; transition: opacity 0.4s; }
.menu a { display: flex; align-items: baseline; justify-content: space-between; padding: 0.85rem 0; border-top: 1px solid var(--linha); text-decoration: none; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; opacity: 0; transform: translateY(1.25rem); transition: opacity 0.6s var(--suave), transform 0.6s var(--suave), color 0.3s; transition-delay: calc(var(--i) * 60ms); }
.menu a span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.125rem; color: var(--cinza); letter-spacing: 0; }
body.menu-aberto .menu a { opacity: 1; transform: none; }
.menu a:hover { color: var(--azul); }

/* 1. Abertura -------------------------------------------------------------------- */
.abre { padding: 0.75rem 0.75rem 0; }
.abre__painel {
  position: relative; overflow: hidden; border-radius: var(--raio-g); color: #fff; min-height: calc(100svh - 1.5rem);
  display: grid; align-content: end; gap: 2.5rem; padding: 7rem var(--m) 0;
  background:
    radial-gradient(90% 30% at 100% 100%, rgba(255, 244, 212, 0.6) 0%, rgba(255, 244, 212, 0) 70%),
    radial-gradient(130% 40% at 80% 100%, var(--azul-claro) 0%, rgba(74, 161, 205, 0) 70%),
    var(--azul);
}
.abre__logo { width: min(78vw, 24rem); margin: 0 0 0.5rem -8%; }
.abre__t { color: var(--creme); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.125rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; }
.abre__p { max-width: 26rem; margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.4; }
.abre__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; }
.abre__acoes .lig { color: #fff; }
.arcos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; align-items: end; }
.arco { margin: 0; overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4.5; background: var(--azul-claro); will-change: transform; }
.arco:nth-child(2) { aspect-ratio: 3 / 5.2; }
.arco img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--suave); }
.arco.visto img { transform: none; }
@media (min-width: 900px) {
  .abre__painel { grid-template-columns: 1fr 1.05fr; align-items: end; gap: 3rem; padding-top: 8rem; }
  .abre__txt { padding-bottom: 4rem; }
  .abre__logo { width: min(40vw, 36rem); margin-left: -3rem; }
  .abre__p { font-size: 1.375rem; }
  .arcos { gap: 1rem; padding-right: 0.5rem; }
}

/* 2. Frase ------------------------------------------------------------------------ */
.sec { padding-block: 5rem; }
@media (min-width: 900px) { .sec { padding-block: 9rem; } }
.frase { display: grid; gap: 2rem; }
.frase__t { font-size: clamp(1.75rem, 3.9vw, 3.375rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; max-width: 22em; }
.js .frase__t .p { color: var(--apagado); transition: color 0.5s; }
.js .frase__t .p.on { color: inherit; }
.frase__nota { color: var(--cinza); max-width: 19rem; }
.frase__nota b { color: var(--tinta); }
@media (min-width: 900px) { .frase { grid-template-columns: 14rem 1fr; gap: 3rem; } }

/* 3. Como funciona ------------------------------------------------------------------ */
.como { display: grid; gap: 2.5rem; }
.como__img { border-radius: var(--raio-g); overflow: hidden; background: var(--painel); aspect-ratio: 4 / 3; margin-top: 2rem; }
.como__img img { width: 100%; height: 100%; object-fit: cover; }
.passos { list-style: none; margin: 0; padding: 0; }
.passos li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.5rem 1rem; padding: 1.75rem 0; border-top: 1px solid var(--linha); }
.passos li:last-child { border-bottom: 1px solid var(--linha); }
.passos__n { font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1.2; color: var(--azul); }
.passos p { font-size: 1.3125rem; line-height: 1.35; font-weight: 700; color: var(--cinza); letter-spacing: -0.01em; }
.passos p b { color: var(--tinta); }
@media (min-width: 900px) {
  .como { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .como__esq { position: sticky; top: 7rem; }
  .passos li { padding: 2.5rem 0; grid-template-columns: 4.5rem 1fr; }
  .passos p { font-size: 1.625rem; }
  .passos__n { font-size: 2.25rem; }
}

/* 4. Hoje ---------------------------------------------------------------------------- */
/* v5: o painel cinzento é um só (.painel, mais abaixo). Aqui fica só a variante da página inicial. */
.painel.painel--hoje { padding: 2rem var(--m); }
.hoje__dia { font-family: var(--serif); font-style: italic; font-size: clamp(4.5rem, 11vw, 9.5rem); white-space: nowrap; line-height: 0.9; letter-spacing: -0.03em; color: var(--azul); margin-top: 1.5rem; }
.hoje__dia small { display: block; white-space: normal; font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 1.125rem; letter-spacing: 0; line-height: 1.4; color: var(--tinta); margin-bottom: 0.75rem; }
.hoje__dir { display: grid; gap: 1.25rem; align-content: end; }
.hoje__p { color: var(--cinza); font-weight: 700; font-size: 1.25rem; line-height: 1.35; max-width: 26rem; }
.hoje__p b { color: var(--tinta); }
.leitor { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1.1rem; border-radius: var(--raio); background: #fff; }
.leitor__b { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 0; background: var(--azul); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform 0.4s var(--suave); }
.leitor__b:hover { transform: scale(1.08); }
.leitor__b svg { width: 1.4rem; height: 1.4rem; fill: currentColor; margin-left: 3px; }
.leitor strong { display: block; line-height: 1.25; }
.leitor span { color: var(--cinza); font-size: 1rem; }
.leitor__barra { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--painel); overflow: hidden; }
.leitor__barra i { display: block; height: 100%; width: 0; background: var(--azul); transition: width 1.2s var(--suave); }
.hoje__ligs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
@media (min-width: 900px) { .painel.painel--hoje { padding: 3.5rem; } }

/* 5. Grupos (fundo creme) ------------------------------------------------------------- */
.grupos__t { max-width: 15em; }
.grupos__t i { color: var(--azul); }
.linhas { margin-top: 3.5rem; border-top: 1px solid var(--linha); }
.linhas a { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--linha); text-decoration: none; transition: padding 0.5s var(--suave), color 0.3s; }
.linhas__t { font-size: clamp(1.625rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.linhas__d { grid-column: 1; color: var(--cinza); max-width: 30rem; }
.linhas__s { grid-row: 1 / span 2; grid-column: 2; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; transition: background-color 0.3s, color 0.3s, transform 0.5s var(--suave); }
.linhas__s svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linhas a:hover { padding-left: 1.25rem; color: var(--azul); }
.linhas a:hover .linhas__s { background: var(--azul); border-color: var(--azul); color: #fff; transform: rotate(-45deg); }
@media (min-width: 900px) {
  .linhas a { grid-template-columns: 1.1fr 1fr auto; padding: 2.25rem 0; }
  .linhas__d { grid-column: 2; grid-row: 1; }
  .linhas__s { grid-column: 3; grid-row: 1; }
}

/* 6. Perguntas (folha de papel própria, para o azul do fecho surgir por baixo) ------------- */
.folha { background: var(--papel); border-radius: var(--raio-g); }
.faq { display: grid; gap: 2.5rem; }
.faq details { border-top: 1px solid var(--linha); }
.faq details:last-of-type { border-bottom: 1px solid var(--linha); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; font-weight: 700; font-size: 1.25rem; line-height: 1.3; cursor: pointer; list-style: none; transition: color 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--azul); }
.faq summary::after { content: ""; flex: none; width: 1rem; height: 1rem; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform 0.45s var(--suave); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--cinza); max-width: 36rem; }
.faq__mais { margin-top: 1.25rem; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; } .faq__esq { position: sticky; top: 7rem; } .faq summary { font-size: 1.375rem; } }

/* 7. Fecho e rodapé (fundo azul) ---------------------------------------------------------- */
.fecho { color: #fff; padding-top: 6rem; overflow: hidden; }
.fecho .t { color: var(--creme); }
.fecho__topo { display: grid; gap: 2rem; padding-bottom: 5rem; }
.fecho__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.email { display: grid; gap: 1.5rem; padding-block: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.email__t { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; max-width: 22rem; }
.email form { display: grid; gap: 0.6rem; }
.email label { font-weight: 700; }
.email__linha { display: flex; align-items: center; gap: 0.75rem; border-bottom: 2px solid #fff; }
.email input { flex: 1; min-width: 0; height: 3.5rem; background: none; border: 0; color: #fff; font-size: 1.25rem; outline: none; }
.email input::placeholder { color: rgba(255, 255, 255, 0.72); }
.email__linha:focus-within { border-color: var(--dourado); }
.email button { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--creme); color: var(--azul); display: grid; place-items: center; cursor: pointer; transition: transform 0.45s var(--suave); }
.email button:hover { transform: translateX(0.3rem); }
.email button svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.email__msg { min-height: 1.5em; font-weight: 700; }
.email__msg.erro { color: var(--creme); }
.rod { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; padding-block: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.rod h3 { font-size: 1rem; font-weight: 400; font-family: var(--serif); font-style: italic; margin-bottom: 0.5rem; color: var(--creme); }
.rod ul { list-style: none; margin: 0; padding: 0; }
.rod .lig { font-weight: 700; }
.rod__ejns { grid-column: 1 / -1; }
.rod__ejns img { width: 8rem; filter: brightness(0) invert(1); margin-top: 0.5rem; }
.rod__fim { grid-column: 1 / -1; }
.fecho__logo { width: 112%; max-width: none; margin: 1rem 0 -9% -10%; opacity: 0.96; }
@media (min-width: 900px) {
  .fecho { padding-top: 10rem; }
  .fecho__topo { grid-template-columns: 1.4fr 1fr; align-items: end; padding-bottom: 8rem; }
  .fecho__acoes { justify-content: flex-end; }
  .email { grid-template-columns: 1fr 1.3fr; align-items: end; gap: 5rem; }
  .rod { grid-template-columns: 1fr 1fr 1fr 1.3fr; }
  .rod__ejns { grid-column: auto; }
  .fecho__logo { width: 104%; margin-left: -6%; }
}

/* Barra fixa no telemóvel ---------------------------------------------------------------- */
.barra { position: fixed; z-index: 40; left: 50%; bottom: 0.75rem; transform: translate(-50%, 160%); display: flex; gap: 0.3rem; padding: 0.3rem; border-radius: 999px; background: rgba(13, 18, 38, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform 0.6s var(--suave); }
.barra.visivel { transform: translate(-50%, 0); }
.barra a { display: inline-flex; align-items: center; height: 2.9rem; padding: 0 1.25rem; border-radius: 999px; color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.barra a:first-child { background: var(--creme); color: var(--azul); }
@media (min-width: 900px) { .barra { display: none; } }

/* Interruptor do protótipo (não faz parte do site) */
.proto { position: fixed; z-index: 60; right: 0.75rem; bottom: 4.6rem; display: flex; padding: 0.2rem; border-radius: 999px; background: #fff; box-shadow: 0 0.25rem 1.25rem rgba(13, 18, 38, 0.2); font-size: 1rem; }
.proto button { height: 2.4rem; padding: 0 0.85rem; border: 0; border-radius: 999px; background: none; font-weight: 700; color: var(--cinza); cursor: pointer; }
.proto button[aria-pressed="true"] { background: var(--tinta); color: #fff; }
@media (min-width: 900px) { .proto { bottom: 1rem; right: 1rem; } }
.aviso { position: fixed; z-index: 61; left: 50%; top: 5.75rem; transform: translateX(-50%); width: max-content; max-width: calc(100% - 1.5rem); padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--tinta); color: #fff; }
.aviso[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-rev] { opacity: 1; transform: none; }
  .js .frase__t .p { color: inherit; }
  .arco img { transform: none; }
}

/* ==========================================================================
   Páginas interiores · lote 1 (Hoje, Episódio /dia/N, Começar)
   Mesmo vocabulário da página inicial: papel e tinta, linhas finas, painéis
   redondos, um só momento de cor forte (o fecho azul) e uma secção creme.
   ========================================================================== */
.topo__nav a[aria-current]:not(.sobre), .menu a[aria-current] { color: var(--azul); }

/* Cabeça de página (sem painel azul) */
.cab { padding: 7.25rem 0 4rem; }
@media (min-width: 900px) { .cab { padding: 9.5rem 0 6rem; } }
.sub { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--m) * -1) 2.5rem; padding: 0.25rem var(--m); }
.sub::-webkit-scrollbar { display: none; }
.sub a { flex: none; } /* v5: a pílula é .pil.pil--linha (uma só pílula no sistema) */
.sub small { font-size: 1rem; font-weight: 400; font-family: var(--serif); font-style: italic; color: var(--cinza); }
.cab__g { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--linha); }
.cab__g h1 { font-weight: inherit; }
.cab__l { margin-top: 1.25rem; font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.cab__p { margin-top: 1rem; max-width: 30rem; font-size: 1.25rem; line-height: 1.4; color: var(--cinza); font-weight: 500; }
.cab__p b, .cab__p a { color: var(--tinta); font-weight: 700; }
.cab__p a { text-underline-offset: 0.2em; }
.num { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(5.5rem, 22vw, 9rem); line-height: 0.9; letter-spacing: -0.035em; color: var(--azul); white-space: nowrap; margin-top: 1.25rem; }
.cab__arco { display: none; }
@media (min-width: 900px) {
  .cab__g { grid-template-columns: 1.35fr 1fr; gap: 4rem; align-items: end; padding-bottom: 0; }
  .cab__txt { padding-bottom: 3rem; }
  .num { font-size: clamp(7rem, 12vw, 11rem); }
  .cab__arco { display: block; justify-self: end; width: 100%; max-width: 25rem; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--painel); }
  .cab__arco img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--suave); }
  .cab__arco.visto img { transform: none; }
}

/* Grupos de ações e notas */
.fila { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.nota { font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1.4; max-width: 28rem; }
.nota b { font-family: var(--sans); font-style: normal; }
.sec-cab { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .sec-cab { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; } }

/* Painel de ouvir */
.painel { border-radius: var(--raio-g); background: var(--painel); padding: 1.5rem var(--m) 2rem; display: grid; gap: 2.5rem; }
.painel__col { display: grid; gap: 1.25rem; align-content: start; }
.painel__t { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.painel__t i { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.painel p { color: var(--cinza); }
.painel p b { color: var(--tinta); }
@media (min-width: 900px) { .painel { grid-template-columns: 1.1fr 1fr; padding: 3rem; gap: 4rem; } .painel__col + .painel__col { padding-left: 4rem; margin-left: -4rem; border-left: 1px solid var(--linha); } }
.prog { display: grid; gap: 0.6rem; }
.prog__n { font-family: var(--serif); font-style: italic; font-size: 2.75rem; line-height: 1; color: var(--azul); }
.prog__n small { font-family: var(--sans); font-style: normal; font-size: 1rem; font-weight: 700; color: var(--tinta); margin-left: 0.4rem; }
.prog__barra { height: 4px; border-radius: 4px; background: rgba(13, 18, 38, 0.12); overflow: hidden; }
.prog__barra i { display: block; height: 100%; background: var(--azul); transition: width 0.8s var(--suave); }
button.acao[aria-pressed="true"] .acao__t, button.acao[aria-pressed="true"] .acao__s { background: var(--tinta); color: var(--papel); }

/* Listas em linhas (leituras, dicas) */
.lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha); }
.lista li { display: grid; gap: 0.35rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--linha); }
.lista__t { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.lista__d { color: var(--cinza); }
@media (min-width: 900px) { .lista--larga li { grid-template-columns: 1fr 1.3fr; padding: 2rem 0; align-items: baseline; } .lista--larga .lista__t { font-size: 2rem; } }

/* Lista de dias */
.dias { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--linha); }
.dias a { display: grid; grid-template-columns: 6.25rem 1fr auto; gap: 0.25rem 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--linha); text-decoration: none; transition: padding 0.5s var(--suave), color 0.3s; }
.dias__n { font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1.1; color: var(--azul); white-space: nowrap; }
.dias__l { font-weight: 700; line-height: 1.35; }
.dias__l small { display: block; font-size: 1rem; font-weight: 400; color: var(--cinza); }
.dias a:hover { padding-left: 1rem; color: var(--azul); }
.etiq { display: inline-flex; align-items: center; gap: 0.35rem; height: 2.25rem; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--linha); font-size: 1rem; font-weight: 700; white-space: nowrap; color: var(--tinta); }
.etiq svg, .circ svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.etiq--hoje { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.circ { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, transform 0.5s var(--suave); }
.dias a:hover .circ { background: var(--azul); border-color: var(--azul); color: #fff; transform: rotate(-45deg); }
@media (min-width: 900px) { .dias a { grid-template-columns: 10rem 1fr auto; padding: 1.75rem 0; } .dias__n { font-size: 2.5rem; } .dias__l { font-size: 1.375rem; } }

/* Formulários: só linha inferior, pílulas, sem caixas */
.form { display: grid; gap: 1.75rem; max-width: 36rem; }
.campo { display: grid; gap: 0.5rem; }
.campo label, .rot-campo { font-weight: 700; }
.campo__linha { display: flex; align-items: center; gap: 0.75rem; border-bottom: 2px solid var(--tinta); transition: border-color 0.3s; }
.campo__linha:focus-within { border-color: var(--azul); }
.campo input { flex: 1; min-width: 0; height: 3.5rem; border: 0; background: none; font-size: 1.25rem; -moz-appearance: textfield; }
.campo input::-webkit-outer-spin-button, .campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.campo input::placeholder { color: var(--cinza); opacity: 1; }
.campo__b { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--tinta); color: var(--papel); display: grid; place-items: center; cursor: pointer; transition: transform 0.45s var(--suave), background-color 0.3s; }
.campo__b:hover { transform: translateX(0.3rem); background: var(--azul); }
.campo__b svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.campo__ajuda { color: var(--cinza); }
.campo__erro { display: none; font-weight: 700; }
.erro .campo__erro { display: block; }
.erro .campo__linha { border-bottom-style: dashed; }
.pils { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.pils label { position: relative; cursor: pointer; }
.pils input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pils label > span { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.6rem 1.25rem; border-radius: 999px; border: 1.5px solid var(--linha); font-weight: 700; line-height: 1.25; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.pils label:hover > span { border-color: var(--tinta); }
.pils input:checked + span { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.pils input:focus-visible + span { outline: 3px solid var(--dourado); outline-offset: 3px; }
.pils input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.caixa { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; }
.caixa input { -webkit-appearance: none; appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 0.05rem 0 0; border: 1.5px solid var(--tinta); border-radius: 0.4rem; background: none; cursor: pointer; transition: background-color 0.2s; }
.caixa input:checked { background: var(--tinta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1rem no-repeat; }
.interr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); font-weight: 700; font-size: 1.25rem; cursor: pointer; }
.interr input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 3.25rem; height: 2rem; margin: 0; border-radius: 999px; background: var(--cinza); cursor: pointer; transition: background-color 0.3s; }
.interr input::after { content: ""; position: absolute; top: 0.25rem; left: 0.25rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; transition: transform 0.35s var(--suave); }
.interr input:checked { background: var(--azul); }
.interr input:checked::after { transform: translateX(1.25rem); }
.form.desligado .pils { opacity: 0.6; }
.msg { font-weight: 700; padding-left: 1rem; border-left: 2px solid var(--azul); }
.msg.erro { border-left-color: var(--tinta); border-left-style: dashed; }
.msg[hidden] { display: none; }

/* Começar: etapas numeradas (mesmo padrão de "Três passos") */
.etapas { list-style: none; margin: 0; padding: 0; }
.etapas > li { display: grid; gap: 1.75rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--linha); }
.etapas > li:last-child { border-bottom: 1px solid var(--linha); }
.etapas__cab { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.5rem 1rem; align-items: baseline; align-self: start; }
.etapas__n { font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1.2; color: var(--azul); }
.etapas h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.etapas__cab p { grid-column: 2; color: var(--cinza); }
.etapas__corpo { display: grid; gap: 1.5rem; align-content: start; }
.resumo { font-size: 1.25rem; line-height: 1.45; max-width: 34rem; }
@media (min-width: 900px) {
  .etapas > li { grid-template-columns: 1fr 1.2fr; gap: 4rem; padding: 3.5rem 0 4rem; }
  .etapas__cab { grid-template-columns: 4.5rem 1fr; position: sticky; top: 7rem; }
  .etapas__n { font-size: 2.25rem; }
}

/* Episódio: "Para levar deste dia" e conteúdo parcial */
.levar { display: grid; gap: 2rem; }
.levar__1 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.levar__resto { display: grid; gap: 2rem; margin-top: 2rem; }
.levar__resto > p { font-size: 1.1875rem; max-width: 38rem; }
.levar__resto h3 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 1rem; }
.levar__resto h3 i { font-family: var(--serif); font-weight: 400; }
body.estado-visitante .levar__resto { display: none; }
.porta { margin-top: 2.5rem; padding: 2rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); display: grid; gap: 1.25rem; }
.porta h3 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.porta h3 i { font-family: var(--serif); font-weight: 400; color: var(--azul); }
.porta p { color: var(--cinza); max-width: 30rem; }
@media (min-width: 900px) { .levar { grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; } .levar__esq { position: sticky; top: 7rem; } }

/* Episódio: dia anterior e seguinte */
.viz { display: grid; border-top: 1px solid var(--linha); }
.viz a { display: grid; gap: 0.35rem; padding: 1.75rem 0; border-bottom: 1px solid var(--linha); text-decoration: none; transition: color 0.3s, padding 0.5s var(--suave); }
.viz a[hidden] { display: none; }
.viz small { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: var(--cinza); }
.viz small svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viz b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; color: var(--azul); }
.viz span { color: var(--cinza); }
.viz a:hover { color: var(--azul); }
.viz a[data-dia-rel="-1"]:hover { padding-left: 1rem; }
.viz a[data-dia-rel="-1"] small svg { transform: rotate(180deg); }
@media (min-width: 900px) {
  .viz { grid-template-columns: 1fr 1fr; }
  .viz a { padding: 2.5rem 0; }
  .viz a[data-dia-rel="1"] { grid-column: 2; text-align: right; justify-items: end; padding-right: 0; border-left: 1px solid var(--linha); }
  .viz a[data-dia-rel="1"]:hover { padding-right: 1rem; }
}

/* Foto em painel redondo e bloco a dois */
.foto-r { margin: 0; border-radius: var(--raio-g); overflow: hidden; aspect-ratio: 4 / 3; background: var(--painel); }
.foto-r img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--suave); }
.foto-r.visto img { transform: none; }
.foto-falta { display: grid; place-items: center; color: var(--cinza); font-weight: 700; }
.duo { display: grid; gap: 2.5rem; }
.duo p { margin-top: 1.25rem; max-width: 28rem; font-size: 1.25rem; line-height: 1.4; color: var(--cinza); }
.duo .fila { margin-top: 2rem; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  .cab__arco img, .foto-r img { transform: none; }
}

/* Episódio: foto do padre do dia (painel liso enquanto a foto não chega) */
.cab__arco .foto-falta { display: none; }
.cab__arco.sem-foto img { display: none; }
.cab__arco.sem-foto .foto-falta { display: grid; place-items: center; height: 100%; padding: 2rem; text-align: center; line-height: 1.5; }

/* ==========================================================================
   Lote 2 · Conta (Entrar, Criar conta, Recuperar palavra-passe, Confirmar
   email, A minha conta) e O meu progresso. Só acrescenta ao que está acima.
   Páginas de acesso: uma coluna, muito ar, um só foco; o azul fica no fecho.
   ========================================================================== */

/* Correções partilhadas (também tocam páginas aprovadas) */
.pils label > span { column-gap: 0.3em; }             /* "Manter 28 de setembro" colava as palavras */
[data-f-so][hidden] { display: none !important; }       /* estados de formulário */
button.lig { border: 0; background: none; padding: 0; cursor: pointer; font-size: inherit; }
main > .folha:first-child { border-top-left-radius: 0; border-top-right-radius: 0; } /* folha que abre a página: sem cantos azuis em cima */
.nq { white-space: nowrap; }
/* Quando o fecho pinta o fundo de azul, o que ainda se vê por cima da última folha fica em papel (antes ficava texto escuro sobre azul). Ao sair, espera o fim da transição do fundo. */
main > section:not(.folha) { transition: background-color 0s 0.7s; }
body[data-tema="azul"] main > section:not(.folha) { background-color: var(--papel); transition: none; }
body[data-tema="azul"] .folha { border-top-left-radius: 0; border-top-right-radius: 0; }
.sub a[aria-current] small { color: rgba(250, 250, 247, 0.8); } /* "com conta" na pílula escura ficava a 3:1 */
a.so-leitores:focus-visible { position: fixed; z-index: 70; top: 0.75rem; left: 0.75rem; width: auto; height: auto; overflow: visible; clip-path: none; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--tinta); color: #fff; } /* o salto para o conteúdo passa a ver-se com Tab */

/* Páginas de acesso */
.acesso { padding: 7.25rem 0 5rem; }
.acesso__g { display: grid; gap: 3rem; }
.acesso__txt { max-width: 36rem; }
.acesso__txt > .t { margin-top: 1.25rem; }
.acesso__txt > .cab__p { margin-top: 1.5rem; }
.acesso .form { margin-top: 3rem; }
.acesso .fila { margin-top: 2.25rem; }
@media (min-width: 900px) {
  .acesso { padding: 9.5rem 0 8rem; }
  .acesso__g { grid-template-columns: 1.3fr 1fr; gap: 5rem; align-items: start; }
  .acesso .cab__arco { align-self: end; margin-bottom: 0.5rem; }
}

/* Campos: mostrar palavra-passe, linha de opções, fim do formulário */
.campo__ver { flex: none; min-height: 2.75rem; padding: 0 0.25rem; border: 0; background: none; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; transition: color 0.3s; }
.campo__ver:hover { color: var(--azul); }
.form__entre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; }
.form__fim { padding-top: 1.5rem; border-top: 1px solid var(--linha); color: var(--cinza); }
.form__fim .lig { color: var(--tinta); }
.erro .caixa input { border-style: dashed; }
.msg a { font-weight: 700; text-underline-offset: 0.2em; }
.txt-b { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--tinta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: pointer; transition: color 0.3s; }
.txt-b:hover { color: var(--azul); }

/* Endereço em destaque (Confirmar email, Recuperar) */
.grande { margin-top: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--linha); font-family: var(--serif); font-style: italic; font-size: clamp(1.75rem, 4.2vw, 3.25rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--azul); overflow-wrap: anywhere; }

/* Proteção: o que o visitante vê no lugar do conteúdo */
.porta .fila { margin-top: 0.5rem; }
.porta h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.porta h2 i { font-family: var(--serif); font-weight: 400; color: var(--azul); }

/* A minha conta: blocos com linhas que abrem para mudar */
.cab--conta { padding-bottom: 0; }
.cab--conta .cab__txt { padding-bottom: 3rem; border-bottom: 1px solid var(--linha); }
body.estado-visitante .cab--conta { padding-bottom: 6rem; }
body.estado-visitante .cab--conta .cab__txt { padding-bottom: 0; border-bottom: 0; }
@media (min-width: 900px) { body.estado-visitante .cab--conta { padding-bottom: 9rem; } }
.bloco { display: grid; gap: 1.5rem; padding-block: 2.5rem; }
.bloco__t { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.bloco__t i { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.defs { border-top: 1px solid var(--linha); }
.def { border-bottom: 1px solid var(--linha); }
.def > summary, a.def { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.25rem; align-items: center; padding: 1.4rem 0; cursor: pointer; list-style: none; text-decoration: none; transition: color 0.3s; }
.def > summary::-webkit-details-marker { display: none; }
.def__t { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.def__v { grid-column: 1; color: var(--cinza); overflow-wrap: anywhere; }
.def__v b { color: var(--tinta); }
.def__v .etiq { margin-left: 0.25rem; vertical-align: middle; }
.def__a { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: 0.4rem; height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--linha); font-weight: 700; font-size: 1rem; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.def__a svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--suave); }
.def > summary:hover .def__a, a.def:hover .def__a { border-color: var(--tinta); }
a.def:hover .def__a svg { transform: rotate(-45deg); }
.def > summary:hover .def__t, a.def:hover .def__t { color: var(--azul); }
.def[open] > summary .def__a { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.def__a .f, .def[open] > summary .def__a .m { display: none; }
.def[open] > summary .def__a .f { display: inline; }
.def__corpo { padding: 0 0 2.25rem; }
.def__corpo > * { max-width: 32rem; }
.def__corpo .form { gap: 1.5rem; }
.def__corpo > p { color: var(--cinza); }
.def__corpo > p + .form { margin-top: 1.5rem; }
@media (min-width: 900px) {
  .bloco { grid-template-columns: 1fr 2.4fr; gap: 4rem; padding-block: 3.5rem; }
  .bloco__t { position: sticky; top: 7rem; align-self: start; padding-top: 1.4rem; }
  .def > summary, a.def { grid-template-columns: 1fr 1.4fr auto; padding: 1.6rem 0; }
  .def__v { grid-column: 2; grid-row: 1; }
  .def__a { grid-column: 3; grid-row: 1; }
  .def__corpo { display: grid; grid-template-columns: 1fr 1.4fr auto; column-gap: 1.25rem; }
  .def__corpo > * { grid-column: 2; }
}

/* O meu progresso */
.cab__g .prog { margin-top: 1.75rem; max-width: 26rem; }
.painel.painel--p { border-radius: var(--raio-g); background: var(--painel); padding: 1.75rem var(--m) 2rem; display: grid; gap: 1.1rem; align-content: start; }
.painel--p .hoje-p__r { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--azul); }
.painel--p .hoje-p__t { color: var(--tinta); font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.painel--p p { color: var(--cinza); }
.painel--p .fila { margin-top: 0.5rem; }
@media (min-width: 900px) { .painel.painel--p { padding: 2.5rem; margin-bottom: 3rem; } }
.per-lista { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--linha); }
.per { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.6rem 1rem; align-items: center; padding: 1.25rem 0 1.4rem; border-bottom: 1px solid var(--linha); }
.per__n { grid-row: 1 / span 2; align-self: start; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: var(--azul); }
.per__t { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.per__t small { display: block; margin-top: 0.2rem; font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--cinza); }
.per .etiq, .per__quando { grid-column: 2; justify-self: start; }
.per__quando { font-size: 1rem; font-weight: 700; color: var(--cinza); }
.per__barra { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.per__barra i { display: block; height: 100%; background: var(--azul); transition: width 0.8s var(--suave); }
.per--agora .per__t { color: var(--azul); }
@media (min-width: 900px) {
  .per { grid-template-columns: 4.5rem 1fr auto; padding: 1.6rem 0 1.75rem; }
  .per__n { grid-row: 1; font-size: 2rem; }
  .per__t { font-size: 1.5rem; }
  .per .etiq, .per__quando { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* Seletor de estados do formulário (só no protótipo, como o interruptor) */
.proto-f { position: fixed; z-index: 60; right: 0.75rem; bottom: 7.8rem; display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.2rem 0.2rem 0.9rem; border-radius: 999px; background: #fff; box-shadow: 0 0.25rem 1.25rem rgba(13, 18, 38, 0.2); font-size: 1rem; font-weight: 700; }
.proto-f select { height: 2.4rem; max-width: 14rem; padding: 0 0.6rem; border: 0; border-radius: 999px; background: var(--painel); font: inherit; color: var(--tinta); cursor: pointer; }
@media (min-width: 900px) { .proto-f { right: 1rem; bottom: 4.4rem; } }

/* ---------------------------------------------------------------------------
   Lote 3: Plano de leitura. Reutiliza .per (linha de período) e .dias (linha de dia).
   --------------------------------------------------------------------------- */
[data-f-nao][hidden], [data-plano-resultados][hidden], [data-plano-lista][hidden], .lig[hidden] { display: none !important; }
button.lig { font-family: inherit; color: inherit; }
.cab--plano { padding-bottom: 1rem; }
.cab--plano .cab__txt { max-width: 44rem; }
.cab--plano .form { max-width: 36rem; }
.cab--plano .fila { margin-top: -0.75rem; }
.sec--plano { padding-top: 2rem; }
.plano__leg { max-width: 44rem; color: var(--cinza); }
.plano__mais { margin: 0; }
.per-lista--plano { margin-top: 2rem; }
.per-lista--plano > li { list-style: none; }
.per--abre { cursor: pointer; list-style: none; transition: color 0.3s; }
.per--abre::-webkit-details-marker { display: none; }
.per--abre:hover .per__t { color: var(--azul); }
.per__mais { position: relative; grid-column: 2; justify-self: start; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--linha); transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.45s var(--suave); }
.per__mais::before, .per__mais::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 2px; margin: -1px 0 0 -0.45rem; background: currentColor; }
.per__mais::after { transform: rotate(90deg); }
.per--abre:hover .per__mais { border-color: var(--tinta); }
details[open] > .per--abre .per__mais { background: var(--tinta); border-color: var(--tinta); color: var(--papel); transform: rotate(45deg); }
.per--abre .etiq, .per--abre .per__quando { grid-column: 2; }
@media (max-width: 899px) {
  .per--abre { grid-template-columns: 2.75rem 1fr auto; }
  .per--abre .per__mais { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
}
@media (min-width: 900px) {
  .per--abre { grid-template-columns: 4.5rem 1fr auto auto; column-gap: 1.25rem; }
  .per--abre .etiq, .per--abre .per__quando { grid-column: 3; grid-row: 1; justify-self: end; }
  .per--abre .per__mais { grid-column: 4; grid-row: 1; }
}
.dias--per { margin: 0 0 2rem; border-top: 0; }
.dias--res { margin-top: 2rem; border-top: 1px solid var(--linha); }
.dias--per a { grid-template-columns: 4.75rem 1fr auto; min-height: 4.5rem; padding: 0.9rem 0; }
.dias--per .dias__n { font-size: 1.375rem; }
.dias--per .dias__l small { margin-top: 0.15rem; line-height: 1.4; }
.dias--per a[aria-current] .dias__l { color: var(--azul); }
.circ--ouvido { border-color: var(--linha); color: var(--tinta); }
.dias a:hover .circ--ouvido { transform: none; background: none; border-color: var(--azul); color: var(--azul); }
@media (min-width: 900px) {
  .per-lista--plano .dias--per { margin-left: 5.75rem; }
  .dias--per a { grid-template-columns: 6.25rem 1fr auto; }
  .dias--per .dias__n { font-size: 1.75rem; }
}

/* Auditoria (14 nov.): foco e entradas */
.campo__linha:has(input:focus-visible), .email__linha:has(input:focus-visible) { outline: 3px solid var(--dourado); outline-offset: 4px; border-radius: 6px; } /* os campos de texto só mudavam a cor da linha; o do fecho não mudava nada */
.campo__linha input:focus-visible, .email__linha input:focus-visible { outline: none; }
.js [data-rev]:focus-within { opacity: 1; transform: none; transition-delay: 0s; transition-duration: 0.2s; } /* com Tab, o foco não fica num elemento ainda a aparecer */
.barra:not(.visivel) { visibility: hidden; transition: transform 0.6s var(--suave), visibility 0s 0.6s; } /* escondida, a barra do telemóvel continuava a receber o foco do Tab */
html { scroll-padding-top: 6.5rem; }                              /* o foco não fica debaixo do cabeçalho flutuante */
@media (max-width: 899px) { html { scroll-padding-bottom: 5.5rem; } } /* nem debaixo da barra do telemóvel */
.topo.escondido:focus-within { transform: none; }                 /* o cabeçalho escondido recebia o foco fora do ecrã */
.caixa { padding-block: 0.6rem; margin-block: -0.6rem; }          /* alvo de toque de 44px sem mexer no espaço */
@media (max-width: 400px) { .ex { white-space: normal; } .per .etiq { white-space: normal; height: auto; min-height: 2.25rem; padding-block: 0.3rem; } } /* a 320px a marca empurrava a pílula para fora */
.cab--plano .form > *, .cab--plano .campo > * { min-width: 0; }
.cab--plano .fila .lig { text-align: left; }

/* 15 nov.: Começar em quatro passos (escolher o Dia 1) e PDF do plano */
.dia1-esc { display: grid; gap: 1.25rem; }
.dia1-esc__campos { display: grid; gap: 1rem; max-width: 34rem; }
.dia1-esc__ou { font-family: var(--serif); font-style: italic; color: var(--cinza); }
@media (min-width: 640px) { .dia1-esc__campos { grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1.5rem; } .dia1-esc__ou { padding-bottom: 1rem; } }
.dia1-esc .lig { justify-self: start; }
[data-dia1-painel][hidden], [data-dia1-fim][hidden], [data-dia1-antes][hidden], .resumo[hidden] { display: none !important; }
.campo input[type="date"] { font-family: inherit; color: var(--tinta); }
.plano__pdf { display: grid; gap: 0.75rem; justify-items: start; margin-top: 2.5rem; }
.cab--plano .porta { margin-top: 2rem; }
.sobre-plano { padding-top: 2rem; }
.sobre-plano__p { max-width: 40rem; margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; }
.sobre-plano__frase { max-width: 40rem; margin-top: 3rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; color: var(--azul); }

/* ==========================================================================
   Lotes 4 a 6 · Grupos de Leitura, Aprofundar, Sobre, Apoiar, Ajuda, Contacto,
   Privacidade, Cookies e 404. Só acrescenta ao que está acima.
   Reutiliza .linhas, .lista, .etapas, .passos, .faq, .def, .porta, .pils,
   .campo, .dias, .viz, .acao e .lig. Componentes novos, só três:
   .prosa (texto corrido), .copia (valor com botão de copiar) e os campos
   textarea e select dentro de .campo.
   ========================================================================== */
[data-sep-de][hidden], [data-insc-inst][hidden], [data-etapa-so1][hidden], [data-etapa-outras][hidden], [data-tema-dica][hidden], [data-dur-so][hidden], [data-form-erro][hidden] { display: none !important; }

/* Espaços que nas páginas anteriores estavam em style="" (ver HANDOFF, secção 5) */
.sec--junto { padding-top: 0; }
.sec--curta { padding-block: 3rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.cab__p--larga { max-width: 38rem; }

/* Texto corrido: guias, Carta de princípios, textos legais. Não havia componente para mais de dois parágrafos seguidos. */
.prosa { display: grid; gap: 1.1rem; max-width: 40rem; }
.prosa h2 { margin-top: 2.25rem; font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.prosa h2 i { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.prosa h3 { margin-top: 1rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.prosa > :first-child { margin-top: 0; }
.prosa ul, .prosa ol { margin: 0; padding-left: 1.35rem; display: grid; gap: 0.5rem; }
.prosa a:not(.lig):not(.acao) { font-weight: 700; text-underline-offset: 0.2em; }
.prosa a:not(.lig):not(.acao):hover { color: var(--azul); }
.prosa .cinza, .cinza { color: var(--cinza); }
.prosa--duas { max-width: none; }
@media (min-width: 900px) { .prosa--duas { grid-template-columns: 1fr 1fr; gap: 1.1rem 5rem; align-items: start; } }

/* Valor para copiar (MB WAY, IBAN, código do grupo): o valor em serifa azul, como .grande, e um botão em pílula */
.copia { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.copia__v { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--azul); overflow-wrap: anywhere; }
.copia + .copia { border-top: 0; }
button.def__a { background: none; font-family: inherit; color: inherit; cursor: pointer; }
button.def__a:hover { border-color: var(--tinta); }

/* Campos de várias linhas e de escolha, com a mesma linha inferior dos outros */
.campo textarea, .campo select { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.25rem; color: var(--tinta); }
.campo textarea { min-height: 9rem; padding: 0.9rem 0; line-height: 1.4; resize: vertical; }
.campo textarea::placeholder { color: var(--cinza); opacity: 1; }
.campo select { height: 3.5rem; cursor: pointer; }
.campo__linha:has(textarea:focus-visible), .campo__linha:has(select:focus-visible) { outline: 3px solid var(--dourado); outline-offset: 4px; border-radius: 6px; }
.campo__linha textarea:focus-visible, .campo__linha select:focus-visible { outline: none; }
.erro .pils label > span { border-style: dashed; border-color: var(--tinta); }
.campo > .pils { margin-top: 0.25rem; }
.form--larga { max-width: 40rem; }
.form h2, .form h3 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; padding-top: 1.75rem; border-top: 1px solid var(--linha); }
.form h2 i, .form h3 i { font-family: var(--serif); font-weight: 400; }

/* Etapa anterior e seguinte: o mesmo .viz do Episódio */
.viz a[data-etapa-rel="-1"]:hover { padding-left: 1rem; }
.viz a[data-etapa-rel="-1"] small svg { transform: rotate(180deg); }
@media (min-width: 900px) {
  .viz a[data-etapa-rel="1"] { grid-column: 2; text-align: right; justify-items: end; padding-right: 0; padding-left: 2rem; border-left: 1px solid var(--linha); }
  .viz a[data-etapa-rel="1"]:hover { padding-right: 1rem; }
}

/* Listas dentro de linhas que abrem (.def) e ligações dentro de listas */
.def__corpo > .lista, .def__corpo > .dias { max-width: 40rem; }
.def__corpo > .dias { margin: 0; border-top: 0; }
.lista__d .lig { color: var(--tinta); }
.lista__d .etiq { vertical-align: middle; }
.dias li { list-style: none; }
.dias--indice { margin-top: 2rem; }
.def__t .etiq { margin-left: 0.5rem; vertical-align: middle; letter-spacing: 0; }

/* Cabeça sem foto (páginas de texto): o título pode ocupar a largura toda */
.cab__g--so { grid-template-columns: 1fr; }
@media (min-width: 900px) { .cab__g--so .cab__txt { max-width: 56rem; padding-bottom: 4rem; } }
.cab--curta { padding-bottom: 1rem; }

/* 404 */
.num--404 { margin-top: 0; }

/* Verificação dos lotes 4 a 6 */
.campo__linha:has(input[type="date"]):focus-within { outline: 3px solid var(--dourado); outline-offset: 4px; border-radius: 6px; } /* no botão do calendário o campo de data ficava sem anel (também em Começar) */
.etapas__corpo > *, .form > *, .campo > * { min-width: 0; }   /* a 390px, um select com opções longas alargava a página */
.campo select { width: 100%; text-overflow: ellipsis; }
.campo > .pils legend, .pils legend.rot-campo { margin-bottom: 0.75rem; padding: 0; }

/* ==========================================================================
   v5 (16 nov. 2026) · base partilhada e lote A (Início, Começar, Hoje, Episódio)
   Decisões do PROMPT_v5.md. O que este bloco fecha do HANDOFF, secção 5:
   - anel de foco com contorno escuro;
   - uma só pílula (.pil e variantes), um só círculo com seta (.circ),
     um só painel cinzento (.painel). As classes antigas (.etiq, .linhas__s,
     .hoje-p, .def__a) continuam a funcionar nas páginas dos lotes B a D até
     cada lote lhes tocar.
   ========================================================================== */

/* Foco: dourado com contorno escuro, para se ver sobre papel, creme, azul e tinta */
:focus-visible, .pils input:focus-visible + span,
.campo__linha:has(input:focus-visible), .email__linha:has(input:focus-visible), .campo__linha:has(textarea:focus-visible), .campo__linha:has(select:focus-visible), .campo__linha:has(input[type="date"]):focus-within {
  outline: 3px solid var(--dourado); box-shadow: 0 0 0 6px var(--tinta);
}
:focus-visible { outline-offset: 0; }
.campo__linha input:focus-visible, .email__linha input:focus-visible, .campo__linha textarea:focus-visible, .campo__linha select:focus-visible, .pils input:focus-visible { outline: none; box-shadow: none; }
/* títulos e blocos que recebem o foco por programação (mudança de passo ou de estado) não mostram anel */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

/* Pílula: variantes que faltavam */
.pil--linha { background: none; border: 1px solid var(--linha); color: var(--tinta); }
a.pil--linha:hover, button.pil--linha:hover { border-color: var(--tinta); }
.pil--linha[aria-current], button.pil--linha[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.pil--p { height: 2.25rem; padding: 0 0.85rem; gap: 0.35rem; white-space: nowrap; }
span.pil { cursor: default; }
.pil svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Círculo com seta: tamanho grande para as listas em linhas */
.circ--g { width: 3.25rem; height: 3.25rem; }
.circ--g svg { width: 1.25rem; height: 1.25rem; stroke-width: 2; }
.linhas a .circ { grid-row: 1 / span 2; grid-column: 2; }
.linhas a:hover .circ, .linhas a.linhas--dest .circ { background: var(--azul); border-color: var(--azul); color: #fff; }
.linhas a:hover .circ { transform: rotate(-45deg); }
@media (min-width: 900px) { .linhas a .circ { grid-column: 3; grid-row: 1; } }
.linhas a[hidden] { display: none; }

/* Lista em linhas mais discreta ("Há mais no +365", "A seguir") */
.linhas--p { margin-top: 2rem; }
.linhas--p .linhas__t { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
.linhas--p a { padding: 1.25rem 0; }
@media (min-width: 900px) { .linhas--p a { padding: 1.6rem 0; } }
.linhas__t small { display: block; margin-bottom: 0.35rem; font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; color: var(--cinza); }
.linhas--dest .linhas__t small { color: var(--azul); }
.linhas--dest .linhas__t { color: var(--azul); }

/* Coluna estreita de leitura (Episódio) e coluna média (Começar) */
.c--estreita { max-width: 48rem; }
.c--media { max-width: 60rem; }
.cab--junta { padding-bottom: 2rem; }
.cab--junta .cab__g { border-bottom: 0; padding-bottom: 0; }
.sec--meia { padding-block: 3rem; }
@media (min-width: 900px) { .sec--meia { padding-block: 4.5rem; } }
.bloco-t { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.25rem; }
.bloco-t i { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.pilha { display: grid; gap: 1.25rem; justify-items: start; }
.pilha > .lista, .pilha > .leitor, .pilha > .form, .pilha > .linhas { justify-self: stretch; }
[data-dia-ok][hidden], [data-dia-invalido][hidden], [data-dia-fim][hidden], [data-dia-titulo][hidden], [data-plano="titulo"][hidden], [data-sw-de][hidden], [data-passo][hidden], [data-comecar-fim][hidden], [data-dia1-ok][hidden], form[hidden] { display: none !important; }

/* Episódio: número do dia por cima do título */
.cab--dia h1 { display: grid; gap: 0.75rem; }
.cab--dia .num { margin-top: 0.75rem; font-size: clamp(4.5rem, 17vw, 8rem); }
.fim365 { display: grid; gap: 0.75rem; padding: 2rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.fim365 h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.fim365 h2 i { font-family: var(--serif); font-weight: 400; color: var(--azul); }
.fim365 p { color: var(--cinza); }

/* Interruptor de duas opções (Começar: Sozinho / Em grupo). Vem da v4 (.cmc__sw), aprovado tal como está:
   fundo --painel, opção escolhida em azul com o brilho do gradiente em baixo, indicador que desliza. */
.sw { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 0.4rem; border-radius: 1.75rem; background: var(--painel); }
.sw__ind { position: absolute; z-index: 0; top: 0.4rem; bottom: 0.4rem; left: 0.4rem; width: calc(50% - 0.4rem); border-radius: 1.4rem; transform: translateX(calc(var(--sw-i, 0) * 100%)); transition: transform 0.55s var(--suave);
  background: radial-gradient(120% 90% at 100% 100%, var(--azul-claro) 0%, rgba(74, 161, 205, 0) 70%), var(--azul); box-shadow: 0 0.5rem 1.5rem rgba(7, 59, 204, 0.25); }
.sw__op { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: center; padding: 1.15rem 1.25rem; border-radius: 1.4rem; text-decoration: none; color: var(--tinta); transition: color 0.4s; }
.sw__op svg { grid-row: 1 / span 2; width: 2.25rem; height: 2.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sw__op b { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.sw__op small { font-size: 1rem; color: var(--cinza); line-height: 1.35; transition: color 0.4s; }
.sw__op[aria-selected="true"] { color: #fff; }
.sw__op[aria-selected="true"] small { color: #fff; }
.sw__op[aria-selected="false"]:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .sw__op { grid-template-columns: 1fr; padding: 1rem; row-gap: 0.35rem; } .sw__op svg { grid-row: auto; width: 1.9rem; height: 1.9rem; } }
.sw-pane { margin-top: 3rem; }
.js .sw-pane:not([hidden]) { animation: sw-entra 0.5s var(--suave); }
@keyframes sw-entra { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }

/* Indicador de passos numerado (01 a 04). No telemóvel só o passo atual mostra o nome. */
.ind { list-style: none; display: flex; gap: 0.5rem; margin: 0; padding: 0; }
.ind li { flex: 1; min-width: 0; }
.ind button { width: 100%; min-height: 3.5rem; display: grid; gap: 0.1rem; align-content: start; padding: 0.7rem 0 0; border: 0; border-top: 2px solid var(--linha); border-radius: 0; background: none; text-align: left; font-weight: 700; color: var(--cinza); cursor: pointer; transition: color 0.3s, border-color 0.3s; }
.ind__n { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.375rem; line-height: 1.2; }
.ind button:hover { color: var(--tinta); border-top-color: var(--tinta); }
.ind button.feito { color: var(--tinta); border-top-color: var(--tinta); }
.ind button[aria-current] { color: var(--tinta); border-top-color: var(--azul); }
.ind button[aria-current] .ind__n { color: var(--azul); }
@media (max-width: 639px) {
  .ind li { flex: 0 0 2.75rem; }
  .ind li:has([aria-current]) { flex: 1; }
  .ind button:not([aria-current]) .ind__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.passo { display: grid; gap: 1.5rem; padding-top: 2.5rem; justify-items: start; }
.passo > * { min-width: 0; max-width: 38rem; }
.passo > .linhas, .passo > .form, .passo > .dia1-esc, .passo > .pils { justify-self: stretch; }
.passo h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.passo h2 i { font-family: var(--serif); font-weight: 400; color: var(--azul); letter-spacing: -0.01em; }
.passo > p { color: var(--cinza); }
.passo > p b { color: var(--tinta); }
.passo .linhas { margin-top: 0; }
.passo__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; padding-top: 0.5rem; }

/* Aviso de cookies (v4): "Só os essenciais" e "Aceitar todos" */
.cookies { position: fixed; z-index: 58; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; display: grid; gap: 0.85rem; padding: 1.1rem 1.25rem 1.25rem; border-radius: var(--raio); background: rgba(13, 18, 38, 0.97); color: #fff; box-shadow: 0 1rem 3rem rgba(13, 18, 38, 0.25); }
.cookies[hidden] { display: none; }
.cookies p { font-size: 1rem; line-height: 1.45; }
.cookies b { color: var(--creme); }
.cookies a { font-weight: 700; text-underline-offset: 3px; }
.cookies .ex { white-space: normal; }
.cookies__b { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookies__b button { flex: 1 1 auto; height: 2.9rem; padding: 0 1.15rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.6); background: none; color: #fff; font-weight: 700; cursor: pointer; transition: border-color 0.3s; }
.cookies__b button:hover { border-color: #fff; }
.cookies__b [data-ck="todos"] { background: var(--creme); border-color: var(--creme); color: var(--azul); }
@media (min-width: 900px) { .cookies { left: 1rem; right: auto; bottom: 1rem; width: 28rem; } }
body.ck-aberto .barra { display: none; } /* no telemóvel, o aviso e a barra não se empilham */

/* Cabeçalho reduzido das páginas de conta (lote B) */
.topo--conta .topo__barra { max-width: 80rem; }

@media (prefers-reduced-motion: reduce) { .js .sw-pane:not([hidden]) { animation: none; } }

/* v5 · acertos do lote A */
.como__img { margin-inline: 0; }
.cab h1 { font-weight: inherit; margin: 0; }
.cab h1 > .t { display: block; margin-top: 0.75rem; }
.cab h1 > .num:first-child { margin-top: 1.25rem; }
.hoje__p b[hidden] { display: none; }
.cab h1.t { font-weight: 700; }
.leitor strong span { color: inherit; font-size: inherit; }
.passo h2 i { display: block; }
.sw__ind { background: radial-gradient(110% 60% at 100% 100%, rgba(74, 161, 205, 0.75) 0%, rgba(74, 161, 205, 0) 70%), var(--azul); } /* o brilho fica mais baixo e mais leve do que na v4, para a linha de descrição manter contraste AA */

/* v5 · lotes B a D: classes de espaço e o painel pequeno (antes .hoje-p) */
.mt-0 { margin-top: 0; } .mt-05 { margin-top: 0.5rem; } .mt-15 { margin-top: 1.5rem; } .mt-25 { margin-top: 2.5rem; } .mb-1 { margin-bottom: 0.75rem; } .mb-15 { margin-bottom: 1.5rem; } .pt-1 { padding-top: 1rem; } .pt-2 { padding-top: 2rem; }
@media (min-width: 900px) { .painel.painel--p { grid-template-columns: 1fr; gap: 1.1rem; } }
.pil.def__a { height: 2.75rem; font-size: 1rem; border-width: 1.5px; }
span.pil.def__a { cursor: pointer; }
button.pil { font-family: inherit; }

/* v5 · lote B · Entrar e Criar conta: layout próprio (v4), painel azul à esquerda e formulário à direita */
.conta2 { padding: 5.75rem 0.75rem 3rem; }
.conta2__g { display: grid; gap: 2rem; max-width: 84rem; margin-inline: auto; }
.conta2__painel { position: relative; overflow: hidden; display: grid; gap: 2rem; align-content: start; border-radius: var(--raio-g); padding: 1.5rem var(--m); color: #fff;
  background: radial-gradient(90% 30% at 100% 100%, rgba(255, 244, 212, 0.6) 0%, rgba(255, 244, 212, 0) 70%), radial-gradient(130% 40% at 80% 100%, var(--azul-claro) 0%, rgba(74, 161, 205, 0) 70%), var(--azul); }
.conta2__logo, .conta2__lista, .conta2 .arcos { display: none; }
.conta2__frase { color: var(--creme); font-family: var(--serif); font-style: italic; font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.01em; }
.conta2__lista { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 26rem; }
.conta2__lista li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; align-items: baseline; padding: 0.85rem 0; border-top: 1px solid rgba(255, 255, 255, 0.28); font-weight: 700; line-height: 1.35; }
.conta2__lista li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.conta2__lista .estrela { color: var(--creme); }
.conta2 .arcos .arco img { transform: none; }
.conta2__form { padding-inline: calc(var(--m) - 0.75rem); max-width: 36rem; }
.conta2__form .cab__p { margin-top: 1rem; }
.conta2__form .fila { margin-top: 2rem; }
.abas { display: inline-flex; gap: 0.25rem; padding: 0.3rem; border-radius: 999px; background: var(--painel); }
.abas a { display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--cinza); transition: background-color 0.3s, color 0.3s; }
.abas a:hover { color: var(--tinta); }
.abas a[aria-current] { background: var(--tinta); color: var(--papel); }
@media (min-width: 900px) {
  .conta2 { padding: 6.5rem 1rem 4rem; }
  .conta2__g { grid-template-columns: 1fr 1.05fr; gap: 5rem; align-items: stretch; }
  .conta2__painel { min-height: calc(100svh - 8rem); padding: 3rem 3rem 0; align-content: space-between; }
  .conta2__logo { display: block; width: min(22vw, 18rem); margin-left: -1.5rem; }
  .conta2__lista { display: block; }
  .conta2 .arcos { display: grid; max-width: 26rem; }
  .conta2__form { padding: 2.5rem 0 2rem; }
}

/* v5 · lote C · Grupos: inscrição em quatro passos e Área do responsável em linhas que abrem */
.form--passos { display: block; }
.passo > .form { max-width: 38rem; }
.passo > .lista { justify-self: stretch; max-width: 38rem; }
.passo .lista__d .lig { color: var(--tinta); margin-left: 0.5rem; }
.faq--so { display: block; justify-self: stretch; max-width: 44rem; }
.faq--so .prosa { padding: 0 0 1.5rem; }
.faq--so .rot-campo { margin-bottom: 0.75rem; }
.def__corpo--larga { display: block; padding-top: 0.5rem; }
.def__corpo--larga > * { max-width: none; }
@media (min-width: 900px) { .def__corpo--larga { display: block; } }
.def__corpo--larga .lista, .def__corpo--larga .dias { max-width: none; }

/* v5 · lote D · Apoiar, Ajuda, Sobre, Aprofundar */
[data-dn-outro][hidden], [data-dn-tel][hidden], [data-dn-cartao][hidden], [data-ajuda-vazio][hidden], [data-ajuda-lista] details[hidden], [data-partilhar][hidden], .pilha[hidden], .passo[hidden], h2 span[hidden] { display: none !important; }
.fila--junta { gap: 0.5rem; }
.faq--larga { max-width: none; }
.faq--so details p { max-width: 42rem; }
.faq--so details a { font-weight: 700; text-underline-offset: 0.2em; }
.lista__d .fila { gap: 0.5rem; }
.lista__d [id] { overflow-wrap: anywhere; }
.pils input[type="checkbox"]:checked + span { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
/* Números (Sobre): três valores em grelha, como na v4 */
.numeros { list-style: none; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 34rem; border-top: 1px solid var(--linha); }
.numeros li { display: grid; gap: 0.15rem; padding-top: 1rem; }
.numeros b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; color: var(--azul); }
.numeros span { font-weight: 700; }
/* Padres (Sobre): iniciais e nome, como na v4 */
.padres { list-style: none; padding: 0; display: grid; gap: 1rem 2rem; }
.padres li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.85rem; align-items: center; }
.padres__i { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--painel); font-weight: 700; }
.padres small { display: block; font-size: 1rem; color: var(--cinza); line-height: 1.4; }
@media (min-width: 700px) { .padres { grid-template-columns: 1fr 1fr; } }
.pil svg[hidden] { display: none; }
#ouvir { scroll-margin-top: 6rem; }
@media (max-width: 639px) { .sw__op { padding: 0.8rem; } .cab--junta { padding-top: 6.25rem; } .cab--dia .num { font-size: clamp(3.75rem, 15vw, 6rem); } }
@media (max-width: 359px) { .sub { margin-inline: 0; padding-inline: 0; } .per__mais { min-width: 0; } }
