/* Ano Pronto — estilos do app */
:root {
  --paper: #F6F1E7;
  --card: #FFFDF8;
  --ink: #24342B;
  --ink-soft: #55645A;
  --green: #2F4A3A;
  --green-dark: #253C2F;
  --study: #4F7A5E;
  --break: #E9C46A;
  --holiday: #D98A63;
  --line: #E4DCCB;
  --field: #D6CBB4;
  --error: #A23E26;
  --error-bg: #F8E6DF;
  --ok-bg: #E3EDE5;
  --info-bg: #F3EBD6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--study); }
a:hover { color: var(--green); }
strong { font-weight: 600; }

/* Topo */
.topo {
  width: 100%; max-width: 980px; margin: 0 auto;
  padding: 24px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--green); position: relative; overflow: hidden; flex-shrink: 0; }
.logo-mark::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--holiday); }
.logo-mark::after {
  content: ""; position: absolute; left: 10px; top: 12px; width: 8px; height: 12px;
  border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.logo-text { font-family: "Fraunces", Georgia, serif; font-weight: 650; font-size: 21px; letter-spacing: -0.01em; }
.menu { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.quem { color: var(--ink-soft); }
button.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--study);
  text-decoration: underline; cursor: pointer;
}

/* Conteúdo */
.conteudo { flex: 1; width: 100%; margin: 0 auto; padding: 8px 20px 48px; }
.conteudo.estreito { max-width: 460px; }
.conteudo.medio { max-width: 680px; }

h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(28px, 6vw, 36px); margin-bottom: 8px; }
h2 { font-size: 21px; margin-bottom: 6px; }
.sub { color: var(--ink-soft); margin-bottom: 22px; }
.cabecalho-pagina { margin: 8px 0 24px; }
.cabecalho-pagina .sub { margin-bottom: 0; }
.voltar { font-size: 15px; margin-bottom: 12px; }
.voltar a { text-decoration: none; }
.centro { text-align: center; margin-top: 24px; }

.cartao {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 24px 48px -36px rgba(36, 52, 43, .45);
}
.cartao + .cartao { margin-top: 20px; }
.rodape-cartao { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); text-align: center; }

/* Avisos */
.aviso { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 15px; line-height: 1.5; }
.aviso-ok { background: var(--ok-bg); color: var(--green); }
.aviso-erro { background: var(--error-bg); color: var(--error); }
.aviso-info { background: var(--info-bg); color: var(--ink); }

/* Formulários */
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.campo label, .rotulo-linha label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.rotulo-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opcional { font-weight: 400; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff;
  border: 1px solid var(--field); border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 36px;
}
input:focus, select:focus { outline: none; border-color: var(--study); box-shadow: 0 0 0 3px rgba(79, 122, 94, .18); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.dica { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.erro-campo { font-size: 14px; color: var(--error); line-height: 1.45; }
.pequeno { font-size: 14px; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.caixa {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
  margin: 4px 0 8px; cursor: pointer;
}
.caixa input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.caixa input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.caixa + .erro-campo { margin: -2px 0 8px 29px; }
form > .botao { margin-top: 10px; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: var(--paper);
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none;
  padding: 13px 22px;
  transition: background .15s ease, transform .15s ease;
}
.botao:hover { background: var(--green-dark); color: var(--paper); transform: translateY(-1px); }
.botao:focus-visible, button.link:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--break); outline-offset: 3px; }
.botao.largo { width: 100%; }
.botao.secundario { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.botao.secundario:hover { background: var(--green); color: var(--paper); }
.botao.perigo { background: var(--error); }
.botao.perigo:hover { background: #8a3320; }
.linha-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }

/* Etiquetas */
.etiqueta {
  display: inline-block; vertical-align: middle;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--info-bg); color: var(--ink-soft);
}
h2 .etiqueta { margin-left: 6px; }
.tema-jiu-jitsu  { background: #F3E3E8; color: #8C3B57; }
.tema-futebol    { background: #E1EEDF; color: #2F6B34; }
.tema-castelo    { background: #E6E2EF; color: #4E4479; }
.tema-ballet     { background: #F6E4EC; color: #9A4767; }
.tema-princesas  { background: #F4E6F2; color: #874182; }
.tema-classico   { background: #EFE8D6; color: #6E5A2A; }
.tema-biblioteca { background: #EDE3D8; color: #6C4A2E; }
.tema-moderno    { background: #E2E8EE; color: #344A5E; }

/* Painel: passos */
.passos { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.passo {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px;
}
.passo-marca {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 600; font-size: 15px;
  background: var(--paper); color: var(--ink-soft); border: 1.5px solid var(--field);
}
.passo-corpo { flex: 1; min-width: 0; }
.passo-corpo p { color: var(--ink-soft); }
.passo-corpo p + p { margin-top: 8px; }
.passo-corpo .botao { margin-top: 4px; }
.passo.atual { border-color: var(--study); box-shadow: 0 0 0 3px rgba(79, 122, 94, .12); }
.passo.atual .passo-marca { background: var(--study); border-color: var(--study); color: var(--paper); }
.passo.feito .passo-marca { background: var(--ok-bg); border-color: var(--study); position: relative; }
.passo.feito .passo-marca::after {
  content: ""; width: 7px; height: 13px; margin-top: -3px;
  border: solid var(--study); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.passo.bloqueado { opacity: .62; }

/* Filhos */
.lista-filhos { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.filho {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px;
}
.filho-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.filho-info strong { font-size: 18px; }
.filho-info span:not(.etiqueta) { color: var(--ink-soft); font-size: 15px; }
.filho-acoes { display: flex; align-items: flex-start; gap: 16px; font-size: 15px; }
.remover summary { color: var(--error); cursor: pointer; list-style: none; text-decoration: underline; }
.remover summary::-webkit-details-marker { display: none; }
.remover[open] summary { margin-bottom: 8px; }
.remover form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.remover .botao { padding: 9px 16px; font-size: 15px; }

/* Rodapé */
.rodape {
  width: 100%; max-width: 980px; margin: 0 auto;
  padding: 18px 20px 28px;
  font-size: 13px; color: var(--ink-soft);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.rodape a { color: var(--ink-soft); }

@media (max-width: 560px) {
  .cartao { padding: 24px 20px; border-radius: 18px; }
  .grade-2 { grid-template-columns: 1fr; }
  .passo { padding: 18px; gap: 14px; }
  .topo { padding: 18px 16px; }
  .conteudo { padding-left: 16px; padding-right: 16px; }
}
