/* ============================================================
   PÁGINAS AVULSAS: Desafio 30 Dias e Política de privacidade
   Visual leve (sem GSAP nem Lenis) para abrir rápido no celular,
   com as mesmas cores, fontes e formas da marca (ver DESIGN.md):
   - rosa (#DF8890) só em formas; texto rosa no rosa profundo;
   - sobre o rosa, o texto é o escuro #2F2B2C;
   - botões e selos em pílula; cartões e fotos com canto de folha.
   ============================================================ */

/* ---------- Fontes (as mesmas do site principal) ---------- */
@font-face {
  font-family: "Josefin Sans";
  src: url("../fontes/josefin-sans-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fontes/nunito-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fontes/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Cores e medidas ---------- */
:root {
  --fundo: #F0F1EC;
  --superficie: #FAFAF7;
  --areia: #E6E2D9;
  --rosa-suave: #F6DDE0;
  --rosa: #DF8890;
  --rosa-profundo: #9C4052;
  --tinta: #3B3B39;
  --grafite: #636460;
  --sobre-rosa: #2F2B2C;
  --fio: #D7D5CD;
  --texto-claro: #CFCCC6;

  --f-titulo: "Josefin Sans", "Century Gothic", "Avenir Next", sans-serif;
  --f-texto: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --f-botao: "Barlow Condensed", "Arial Narrow", sans-serif;

  --margem: clamp(20px, 5vw, 64px);
  --espaco: clamp(64px, 9vw, 120px);
  --folha: 28px;
  --sai: cubic-bezier(0.16, 1, 0.3, 1);
  --troca: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #B9B7AE var(--fundo); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--fundo);
  color: var(--grafite);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; color: var(--tinta); font-family: var(--f-titulo); font-weight: 300; text-wrap: balance; }
h3 { font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
strong { color: var(--tinta); font-weight: 700; }
a { color: var(--rosa-profundo); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--tinta); }
:focus-visible { outline: 3px solid var(--rosa-profundo); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--rosa-suave); color: var(--sobre-rosa); }
[hidden] { display: none !important; }

.envelope { width: 100%; max-width: calc(1120px + 2 * var(--margem)); margin-inline: auto; padding-inline: var(--margem); }
.pular {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--tinta); color: var(--fundo); font-weight: 700;
  transform: translateY(-160%); transition: transform 0.3s var(--sai);
}
.pular:focus, .pular:hover { transform: none; color: var(--fundo); }

.icone { flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botões e selo ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font-family: var(--f-botao); font-weight: 700; font-size: 1.25rem; line-height: 1.1; letter-spacing: 0.02em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--troca), color 0.3s var(--troca), transform 0.4s var(--sai);
}
.botao .icone { width: 22px; height: 22px; }
.botao:active { transform: translateY(1px) scale(0.985); }
.botao--principal { background: var(--rosa); color: var(--sobre-rosa); }
.botao--principal:hover { background: var(--rosa-profundo); color: var(--fundo); }
/* dentro do campo rosa, onde o rosa sumiria */
.botao--escuro { background: var(--sobre-rosa); color: var(--rosa-suave); }
.botao--escuro:hover { background: var(--fundo); color: var(--sobre-rosa); }

.selo {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  border-radius: 999px; background: var(--rosa-suave); color: var(--sobre-rosa);
  font-family: var(--f-botao); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.03em; line-height: 1;
}

/* cantos de folha: superior esquerdo e inferior direito */
.cartao-folha { border-radius: var(--folha) 0 var(--folha) 0; background: var(--superficie); }
.quadro { overflow: hidden; border-radius: 34% 0 34% 0; background: var(--areia); }
.quadro img { width: 100%; height: 100%; object-fit: cover; }
.foto-folha figcaption { margin-top: 8px; font-size: 0.8125rem; }

/* ---------- Topo: logo sem link e botão ---------- */
.topo { background: var(--rosa-suave); }
.topo__barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--tinta); }
.marca__simbolo { width: 44px; height: 37px; }
.marca__texto { display: grid; gap: 3px; }
.marca__nome { font-family: var(--f-titulo); font-weight: 300; font-size: 1.3125rem; line-height: 1; }
.marca__descritor { display: none; font-weight: 600; font-size: 0.6875rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grafite); }
/* no celular o botão do topo sai: o da abertura e o fixo já fazem esse papel */
.botao--topo { display: none; min-height: 44px; padding: 0 18px; font-size: 1.0625rem; }
.botao--topo .icone { width: 19px; height: 19px; }
@media (min-width: 640px) {
  .marca__descritor { display: block; }
  .botao--topo { display: inline-flex; }
}

/* ============================================================
   DESAFIO
   ============================================================ */
.d-secao { padding-block: var(--espaco); }
.d-titulo { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 20ch; }

/* 1. Topo (rosa suave, como os convites do Desafio no Instagram) */
.d-topo { background: var(--rosa-suave); padding-block: 16px clamp(56px, 8vw, 96px); }
.d-topo__grade { display: grid; gap: 40px; align-items: center; }
.d-topo__titulo { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); line-height: 1.03; letter-spacing: -0.015em; }
.d-topo__titulo span { display: block; color: var(--rosa-profundo); }
.d-topo__sub { margin-top: 18px; max-width: 48ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }

.d-oferta {
  display: grid; gap: 14px;
  margin: 26px 0 22px; padding: 20px 22px;
  border-radius: var(--folha) 0 var(--folha) 0;
  background: var(--superficie);
  max-width: 460px;
}
.d-preco { margin: 0; color: var(--tinta); }
.d-preco__valor { display: block; font-family: var(--f-botao); font-weight: 700; font-size: 2.5rem; line-height: 1; letter-spacing: 0.01em; }
.d-data { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.d-data__faltam { color: var(--rosa-profundo); font-weight: 700; font-size: 0.9375rem; }
.d-vagas__texto { margin: 0 0 8px; color: var(--tinta); font-weight: 700; }
/* a barrinha: o preenchimento cresce conforme as vagas são ocupadas */
.d-vagas__barra { display: block; height: 8px; border-radius: 999px; background: var(--areia); overflow: hidden; }
.d-vagas__barra span { display: block; height: 100%; background: var(--rosa); transform-origin: 0 50%; transform: scaleX(var(--ocupadas, 0)); }

.d-botao { width: 100%; max-width: 460px; }
.d-nota { margin-top: 12px; font-size: 0.875rem; }
.d-topo__foto { display: none; }

@media (min-width: 960px) {
  .d-topo { padding-top: 32px; }
  .d-topo__grade { grid-template-columns: 1.2fr 0.8fr; gap: 64px; }
  .d-topo__foto { display: block; width: min(100%, 380px); justify-self: end; }
  .d-topo__foto img { aspect-ratio: 3 / 4; }
  .d-botao { width: auto; }
}

/* listas com folhinha */
.d-lista li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--fio);
  color: var(--tinta); font-weight: 600;
}
.d-lista .icone { width: 18px; height: 18px; margin-top: 4px; color: var(--rosa-profundo); }

/* 2. Para quem é */
.d-para__grade { display: grid; gap: 28px; }
.d-para__fecho { margin-top: 20px; color: var(--rosa-profundo); font-family: var(--f-titulo); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.3; }
@media (min-width: 860px) { .d-para__grade { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* 3. Como funciona (areia) */
.d-como { background: var(--areia); }
.d-como__intro { margin-top: 18px; max-width: 54ch; }
.d-como__grade { display: grid; gap: 28px; margin-top: 32px; align-items: start; }
.d-dia { padding: 26px 24px; color: var(--grafite); }
.d-dia__titulo { margin-bottom: 14px; color: var(--tinta); font-family: var(--f-titulo); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.3; }
.d-dia__horas { display: flex; gap: 10px; margin-bottom: 16px; }
.d-dia__horas li {
  display: grid; place-items: center; flex: 1; min-height: 64px;
  border-radius: 999px; background: var(--rosa); color: var(--sobre-rosa);
  font-family: var(--f-botao); font-weight: 700; font-size: 1.75rem; line-height: 1;
}
.d-inclui li { padding: 16px 0; border-top: 1px solid #CDC8BC; }
.d-inclui li:first-child { padding-top: 0; border-top: 0; }
.d-inclui h3 { margin-bottom: 4px; font-size: 1.3125rem; line-height: 1.3; }
@media (min-width: 860px) { .d-como__grade { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }

.d-semanas__titulo { margin: 48px 0 14px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
/* as 4 semanas são uma linha do tempo: um fio fino liga cada bolinha
   à seguinte (em pé no celular, deitado no computador) */
.d-semanas { display: grid; gap: 22px; padding-left: 30px; }
.d-semanas li { position: relative; color: var(--grafite); }
.d-semanas li::before {
  content: ""; position: absolute; left: -30px; top: 5px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--rosa);
}
.d-semanas li:not(:last-child)::after {
  content: ""; position: absolute; left: -23px; top: 20px; bottom: -27px;
  width: 1px; background: var(--rosa-profundo); opacity: 0.45;
}
.d-semanas__linha { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 2px; }
.d-semanas__n { color: var(--rosa-profundo); font-family: var(--f-botao); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; }
.d-semanas strong { color: var(--tinta); font-family: var(--f-titulo); font-weight: 400; font-size: 1.3125rem; }
@media (min-width: 1040px) {
  .d-semanas { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-left: 0; padding-top: 34px; }
  .d-semanas li::before { left: 0; top: -34px; }
  .d-semanas li:not(:last-child)::after { left: 21px; right: -26px; top: -27px; bottom: auto; width: auto; height: 1px; }
}

.d-busca { margin-top: 48px; }
.d-busca h3 { margin-bottom: 10px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.d-busca .d-lista li { border-top-color: #CDC8BC; }
@media (min-width: 760px) { .d-lista--duas { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.d-combinados { margin-top: 22px; max-width: 60ch; font-size: 0.9375rem; }

/* faixa do meio (rosa) */
.d-faixa { background: var(--rosa); color: var(--sobre-rosa); padding-block: 40px; }
.d-faixa ::selection { background: var(--sobre-rosa); color: var(--rosa-suave); }
.d-faixa__conteudo { display: grid; gap: 18px; justify-items: start; }
.d-faixa__texto { margin: 0; max-width: 46ch; font-size: 1.125rem; }
.d-faixa__texto strong { display: block; color: var(--sobre-rosa); font-family: var(--f-titulo); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.25; }
.d-faixa :focus-visible { outline-color: var(--sobre-rosa); }
@media (min-width: 760px) { .d-faixa__conteudo { grid-template-columns: 1fr auto; align-items: center; } }

/* 4. Quem é */
.d-quem__grade { display: grid; gap: 32px; align-items: center; }
.d-quem__foto { width: min(72%, 320px); }
.d-quem__foto .quadro { aspect-ratio: 1; }
.d-quem__texto h2 { margin-bottom: 18px; }
.d-quem__texto > p { max-width: 52ch; }
.d-crn { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--fio); color: var(--tinta); }
@media (min-width: 760px) { .d-quem__grade { grid-template-columns: 320px 1fr; gap: 56px; } .d-quem__foto { width: 100%; } }

/* 5. Como entrar */
.d-passos { background: var(--rosa-suave); }
.d-passos__lista { display: grid; gap: 26px; margin-top: 32px; }
.d-passos__n {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; background: var(--rosa); color: var(--sobre-rosa);
  font-family: var(--f-botao); font-weight: 700; font-size: 1.5rem; line-height: 1;
}
.d-passos__lista h3 { margin-bottom: 4px; font-size: 1.3125rem; line-height: 1.3; }
@media (min-width: 760px) { .d-passos__lista { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* 6. Dúvidas */
.d-duvidas__grade { display: grid; gap: 28px; }
.duvida { border-top: 1px solid var(--fio); }
.duvida:last-child { border-bottom: 1px solid var(--fio); }
.duvida summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 60px; padding: 16px 0;
  color: var(--tinta); font-family: var(--f-titulo); font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); line-height: 1.3;
  cursor: pointer; list-style: none;
}
.duvida summary::-webkit-details-marker { display: none; }
.duvida summary .icone { width: 24px; height: 24px; color: var(--rosa-profundo); transition: transform 0.4s var(--sai); }
.duvida[open] summary .icone { transform: rotate(45deg); }
.duvida__resposta { padding-bottom: 20px; max-width: 62ch; }
@media (min-width: 860px) { .d-duvidas__grade { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }

/* 7. Final (rosa) */
.d-final { background: var(--rosa); color: var(--sobre-rosa); padding-block: var(--espaco); }
.d-final ::selection { background: var(--sobre-rosa); color: var(--rosa-suave); }
.d-final h2, .d-final strong { color: var(--sobre-rosa); }
.d-final__conteudo { display: grid; gap: 6px; justify-items: start; }
.d-final h2 { margin-bottom: 12px; }
.d-final .d-botao { margin-top: 14px; }
.d-final :focus-visible { outline-color: var(--sobre-rosa); }

/* ---------- Rodapé ---------- */
.rodape { padding-block: 44px calc(44px + 84px); background: var(--tinta); color: var(--texto-claro); font-size: 0.875rem; }
.rodape a { color: var(--fundo); }
.rodape :focus-visible { outline-color: var(--rosa); }
.rodape__grade { display: grid; gap: 20px; }
.rodape__simbolo { width: 64px; height: 54px; }
.rodape__nome { color: var(--fundo); font-weight: 700; }
.rodape__texto p { margin-bottom: 4px; }
.rodape__direitos { margin: 0; }
.rodape--simples { padding-bottom: 44px; }
/* o botão de mudar a escolha de cookies só aparece com o Pixel ligado */
html:not([data-pixel]) .so-com-pixel { display: none; }
/* não deixa o número do CRN quebrar no meio */
.sem-quebra { white-space: nowrap; }
@media (min-width: 860px) {
  .rodape { padding-bottom: 44px; }
  .rodape__grade { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

/* ---------- Botão fixo do celular ---------- */
.fixo {
  position: fixed; left: 12px; right: 12px; z-index: 40;
  bottom: calc(12px + var(--altura-aviso, 0px) + env(safe-area-inset-bottom));
  box-shadow: 0 16px 32px -14px rgba(47, 43, 44, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity 0.3s var(--troca), transform 0.45s var(--sai), visibility 0s linear 0.45s;
}
.fixo.visivel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--troca), transform 0.45s var(--sai), visibility 0s; }
@media (min-width: 860px) { .fixo { display: none; } }

/* ============================================================
   POLÍTICA DE PRIVACIDADE
   ============================================================ */
.legal { padding-block: clamp(40px, 7vw, 88px) var(--espaco); }
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem); line-height: 1.08; }
.legal__data { margin-top: 10px; font-size: 0.9375rem; }
.legal h2 { margin: 40px 0 10px; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.25; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal__preferencias { margin-top: 12px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--tinta); border-radius: 999px; background: transparent; color: var(--tinta); font-family: var(--f-botao); font-weight: 700; font-size: 1.125rem; cursor: pointer; }
.legal__preferencias:hover { background: var(--tinta); color: var(--fundo); }
.legal__voltar { display: inline-flex; margin-top: 40px; font-weight: 700; }

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
