@font-face { font-family: 'Fraunces'; src: url('/fontes/Fraunces.ttf'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fontes/Fraunces-Italic.ttf'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fontes/DMSans.ttf'); font-weight: 100 1000; font-display: swap; }

:root {
  --tinta: #3A2B27;
  --suave: #7a6a5e;
  --papel: #FBF6EE;
  --creme: #F3E7D6;
  --linha: #E6D9C7;
  /* cor principal da edição (Mãe: vermelho vivo · Pai: azul, ver body.pai) */
  --terracota: #D42E4C;
  --terracota-esc: #A51D3A;
  --claro: #FDE8EB;
  --acento: #FFC83D;
  --ouro: #FFB627;
  --salvia: #1F8A57;
  --branco: #fff;
  --raio: 16px;
  --sombra: 0 1px 2px rgba(58, 43, 39, .06), 0 8px 24px rgba(58, 43, 39, .07);
}
body.pai { --terracota: #1F55C4; --terracota-esc: #163F94; --claro: #E6EEFC; --acento: #FFC23D; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--tinta); background: var(--papel); line-height: 1.5; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 500; line-height: 1.15; margin: 0; }
a { color: var(--terracota); }
.topo { background: var(--terracota); color: #FBF3E6; padding: 18px 16px; text-align: center; }
.topo .marca { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; opacity: .85; }
.topo h1 { font-size: 24px; margin-top: 4px; }
.topo h1 em { color: var(--acento); font-weight: 400; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; }
.estreito { max-width: 640px; }
.card { background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 22px; }
.card + .card { margin-top: 16px; }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--terracota); font-weight: 600; }
.muted { color: var(--suave); }
.pequeno { font-size: 13px; }

label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input[type=text], textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: 12px; background: #fffdf9; color: var(--tinta); outline: none; transition: border-color .15s; }
input[type=text]:focus, textarea:focus { border-color: var(--terracota); }
textarea { resize: vertical; min-height: 180px; line-height: 1.6; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--terracota); color: #fff; }
.btn-primario:hover { background: var(--terracota-esc); }
.btn-sec { background: var(--creme); color: var(--tinta); }
.btn-sec:hover { background: #ecdcc6; }
.btn-fant { background: transparent; color: var(--suave); padding: 13px 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-bloco { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--linha); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--tinta); }
.chip[aria-pressed=true] { border-color: var(--terracota); background: var(--claro); color: var(--terracota-esc); font-weight: 600; }

.aviso { background: var(--claro); color: var(--terracota-esc); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.ok { background: #E7F0E5; color: #3E5F3E; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.oculto { display: none !important; }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .8s linear infinite; display: inline-block; }
@keyframes gira { to { transform: rotate(360deg); } }

.barra { height: 6px; background: var(--creme); border-radius: 99px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--terracota); border-radius: 99px; transition: width .3s; }
