/* Identidade visual tirada do site do Curso de Gestante reGenesis:
   fonte Inter, magenta #d82e88, roxo #5e287e, petróleo #40909f e os rosas claros do fundo. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fontes/inter-latin.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --fundo: #fff6fb; --cartao: #ffffff; --tinta: #4b4a4a; --suave: #737272; --linha: #f3d9e8;
  --rosa: #d82e88; --rosa-vivo: #ec4899; --rosa-escuro: #b0206c; --rosa-claro: #fce7f3; --roxo: #5e287e;
  --verde: #2b7180; --verde-claro: #d9eef1; --petroleo: #1f4f5f; --certo: #10b981;
  --degrade: linear-gradient(95deg, #5e287e 0%, #d82e88 100%);
  --degrade-claro: linear-gradient(to right bottom, #fbcfe8, #fce7f3, #e9d5ff);
  --abas-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #f4e4f0; }
body { margin: 0; color: var(--tinta); font: 16px/1.5 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--fundo); display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(94, 40, 126, .14); }
a { color: var(--rosa); }
:focus-visible { outline: 3px solid var(--roxo); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.realce { color: var(--rosa-vivo); }

/* topo */
#topo { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--rosa); }
#topo .simbolo { width: 30px; height: 30px; flex: none; }
#topo .marca { font-weight: 700; font-size: 1.1rem; color: var(--tinta); letter-spacing: -.01em; white-space: nowrap; }
#topo .marca b { color: var(--rosa); font-weight: 700; }
#topo .titulo { font-weight: 650; font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#topo .voltar { border: 0; background: none; color: var(--rosa); font: inherit; font-weight: 650; padding: 8px 4px; cursor: pointer; }
.demo { margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--petroleo); background: var(--verde-claro); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* tela */
#tela { flex: 1; padding: 16px 16px calc(var(--abas-h) + 28px + env(safe-area-inset-bottom)); outline: none; }
#tela.sem-abas { padding-bottom: 32px; }
.ola { font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; color: #6b7280; }
.abertura { text-align: center; padding: 14px 0 6px; }
.abertura img { width: 76px; height: 76px; }
.abertura .ola { font-size: 1.9rem; margin: 10px 0 8px; }
.secao { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--suave); margin: 22px 0 8px; }
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: 20px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(216, 46, 136, .05); }
a.cartao { display: block; color: inherit; text-decoration: none; }
a.cartao:active { border-color: var(--rosa); }
.cartao.destaque { background: var(--degrade-claro); border-color: #f5c6e0; }
.cartao.calmo { background: var(--verde-claro); border-color: #b9dde3; }
.cartao h2 { font-size: 1.05rem; margin-bottom: 4px; color: var(--tinta); }
.cartao .logo-curso { display: block; height: 54px; margin-bottom: 10px; }
.grande { font-size: 2.1rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--rosa); }
.sub { color: var(--suave); font-size: .92rem; }
.nota { color: var(--suave); font-size: .82rem; margin-top: 10px; }
.pilula { display: inline-block; font-size: .82rem; font-weight: 650; border-radius: 999px; padding: 3px 12px; margin: 8px 0; background: #fff; color: var(--tinta); }
.pilula.rosa { background: var(--degrade); color: #fff; }
.pilula.verde { background: var(--verde); color: #fff; }
.pilula.ouro { background: var(--petroleo); color: #fff; }
.fatos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fatos div { background: rgba(255, 255, 255, .78); border-radius: 14px; padding: 8px 12px; }
.fatos b { display: block; font-size: 1.05rem; color: var(--tinta); }
.fatos span { font-size: .78rem; color: var(--suave); }
.barra { height: 8px; border-radius: 999px; background: #f3d9e8; overflow: hidden; margin: 10px 0 4px; }
.barra i { display: block; height: 100%; background: var(--degrade); border-radius: 999px; }

/* botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--degrade); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.botao:active { filter: brightness(.9); }
.botao[disabled] { opacity: .45; cursor: default; }
.botao.claro { background: #fff; color: var(--rosa); border: 1.5px solid var(--rosa-vivo); }
.botao.largo { display: flex; width: 100%; }
.botao.enorme { min-height: 120px; font-size: 1.3rem; border-radius: 28px; }
.botao.texto { background: none; color: var(--rosa); min-height: 44px; padding: 8px; }
.botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.botoes .botao { flex: 1 1 140px; }

/* escolhas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--linha); border-radius: 999px; background: var(--cartao); color: var(--tinta); font: inherit; font-size: .93rem; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--rosa); border-color: var(--rosa); color: #fff; font-weight: 650; }
.opcao { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--linha); border-radius: 16px; background: var(--cartao); margin-bottom: 10px; cursor: pointer; }
.opcao:has(input:checked) { border-color: var(--rosa); background: var(--rosa-claro); }
.opcao input { margin-top: 4px; accent-color: var(--rosa); width: 18px; height: 18px; flex: none; }
.opcao b { display: block; }
.opcao span { color: var(--suave); font-size: .88rem; }
label.campo { display: block; font-size: .88rem; font-weight: 600; margin: 14px 0 0; }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=search], textarea { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 14px; border: 1.5px solid var(--linha); border-radius: 14px; background: var(--cartao); color: var(--tinta); font: inherit; }
input:focus, textarea:focus { border-color: var(--rosa-vivo); }
textarea { min-height: 90px; resize: vertical; }
.marcar { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: .92rem; }
.marcar input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rosa); flex: none; }

/* listas */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { border-bottom: 1px solid var(--linha); }
.lista > li:last-child { border-bottom: 0; }
.linha { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 2px; color: var(--tinta); text-decoration: none; width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.linha .cresce { flex: 1; min-width: 0; }
.linha b { display: block; font-weight: 650; }
.linha small { color: var(--suave); font-size: .85rem; }
.linha .seta { color: var(--rosa-vivo); font-size: 1.2rem; }
.feito { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linha); flex: none; display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: #fff; }
.feito.sim { background: var(--certo); border-color: var(--certo); }
.vazio { color: var(--suave); text-align: center; padding: 18px 8px; }

/* calendário */
.cal-topo { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cal-topo h2 { flex: 1; text-align: center; font-size: 1.05rem; }
.cal-topo h2::first-letter { text-transform: uppercase; }
.cal-topo button { width: 44px; height: 44px; border: 1.5px solid var(--linha); border-radius: 50%; background: var(--cartao); font-size: 1.2rem; color: var(--rosa); cursor: pointer; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .sem { text-align: center; font-size: .72rem; font-weight: 700; color: var(--suave); padding: 4px 0; }
.dia { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; text-decoration: none; color: var(--tinta); border: 2px solid transparent; }
span.dia { color: #b9b0b6; }
.dia.fertil { background: var(--verde-claro); color: var(--tinta); }
.dia.ovul { background: var(--verde); color: #fff; font-weight: 700; }
.dia.prev { border: 2px dashed var(--rosa-vivo); color: var(--tinta); }
.dia.menst { background: var(--rosa); color: #fff; font-weight: 700; }
.dia.hoje { box-shadow: 0 0 0 2px var(--roxo); font-weight: 800; }
.dia i { position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--roxo); }
.dia.menst i, .dia.ovul i { background: #fff; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .8rem; color: var(--suave); }
.legenda span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legenda .l1::before { background: var(--rosa); }
.legenda .l2::before { border: 2px dashed var(--rosa-vivo); }
.legenda .l3::before { background: var(--verde-claro); border: 1px solid #a5d2da; }
.legenda .l4::before { background: var(--verde); }

/* artigo, aula, certificado */
.texto p { margin-bottom: 14px; }
.video { aspect-ratio: 16 / 9; border-radius: 20px; background: linear-gradient(135deg, #d82e88 0%, #40909f 100%); color: #fff; display: grid; place-items: center; text-align: center; padding: 16px; margin-bottom: 14px; }
.video b { font-size: 2.2rem; display: block; }
.comentario { padding: 10px 0; border-bottom: 1px solid var(--linha); }
.comentario b { font-size: .9rem; color: var(--rosa); }
.certificado { text-align: center; border: 3px double var(--rosa); border-radius: 20px; padding: 28px 18px; background: #fff; }
.certificado img { height: 64px; }
.certificado h2 { font-size: 1.4rem; margin: 10px 0; color: var(--roxo); }
.cupom { display: flex; align-items: center; gap: 10px; border: 2px dashed var(--rosa-vivo); border-radius: 16px; padding: 10px 14px; margin-top: 10px; background: #fff; }
.cupom b { font-size: 1.2rem; letter-spacing: .08em; flex: 1; color: var(--roxo); }
.cron { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; margin: 8px 0; color: var(--roxo); }

/* abas */
#abas { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #fff; border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); z-index: 6; }
#abas:empty { display: none; }
#abas a { flex: 1; min-height: var(--abas-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--suave); text-decoration: none; font-size: .72rem; font-weight: 600; }
#abas a[aria-current=page] { color: var(--rosa); }
#abas svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* aviso rápido */
#aviso { position: fixed; left: 50%; bottom: calc(var(--abas-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); max-width: min(440px, calc(100vw - 32px)); background: var(--roxo); color: #fff; border-radius: 16px; padding: 12px 18px; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9; }
#aviso.mostra { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) { #aviso { transition: none; } }
@media print { #topo, #abas, .botoes, .botao { display: none !important; } #app { box-shadow: none; } }
