/* Visual do app = visual do site karollineqpedrosa.com.br (mesmas cores, fontes e marca; site/fonte/index.fonte.html).
   Baixa estimulação: fundo névoa, fios finos em vez de cartões, um elemento vivo (o símbolo) e nada de vermelho. */
@font-face {
  font-family: "Cormorant"; src: url("/fontes/cormorant-latin.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "Mulish"; src: url("/fontes/mulish-latin.woff2") format("woff2");
  font-weight: 200 1000; font-display: swap;
}

:root {
  --nevoa: #FAF6F7;
  --tinta: #3E1F47;
  --tinta-2: #5E4A63;
  --fio: #E7DCE4;
  --inf: #A3337C;
  --inf-fundo: #F8E9F3;
  --adu: #1D6B62;
  --adu-fundo: #E4F3F0;
  --escuro: #37123D;
  --claro: #FAF6F7;
  --branco: #FFFFFF;
  --serifa: "Cormorant", "Georgia", serif;
  --sans: "Mulish", "Segoe UI", system-ui, sans-serif;
  --medida: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--nevoa); color: var(--tinta);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.65;
}
img, svg { display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--inf); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.pular {
  position: absolute; left: -999px; top: 0; padding: 0.75rem 1rem; z-index: 10;
  background: var(--tinta); color: var(--claro);
}
.pular:focus { left: 1rem; top: 1rem; }
.caixa { width: min(100% - 2rem, 70rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serifa); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0; max-width: var(--medida); }
p + p { margin-top: 1rem; }

/* cabeçalho (igual ao do site) */
.topo { padding: 1.25rem 0; border-bottom: 1px solid var(--fio); }
.topo .caixa { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca {
  display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; text-decoration: none; color: var(--tinta);
}
.marca svg.s { height: 3.25rem; width: auto; }
.marca svg.t { height: 2.25rem; width: auto; }
@media (max-width: 40rem) {
  .topo { padding: 0.9rem 0; }
  .marca svg.s { height: 2.5rem; }
  .marca svg.t { height: 1.85rem; }
}

.botao {
  display: inline-block; text-align: center; line-height: 1.35; cursor: pointer;
  min-height: 3rem; padding: 0.78rem 1.4rem; border-radius: 3px;
  background: var(--tinta); color: var(--claro); text-decoration: none;
  font: inherit; font-weight: 600; font-size: 1rem;
  border: 1px solid var(--tinta);
}
.botao:hover { background: var(--escuro); }
.botao.leve { background: transparent; color: var(--tinta); }
.botao.leve:hover { background: var(--inf-fundo); }
.botao:disabled { cursor: progress; opacity: 0.7; }
.topo .botao { padding-inline: 1rem; min-height: 2.75rem; }

/* conteúdo */
.conteudo { flex: 1; padding: 2.5rem 0 4.5rem; }
.entrada { max-width: var(--medida); }
.convite { max-width: 40rem; }
.lede { margin-top: 1.25rem; font-size: 1.25rem; color: var(--tinta-2); }
h1 + p { margin-top: 1.25rem; }
.acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.nota { margin-top: 1.75rem; font-size: 0.9375rem; color: var(--tinta-2); }
.status { min-height: 1.65em; margin-top: 1rem; color: var(--tinta-2); }
.status:not(:empty) { padding-left: 0.85rem; border-left: 3px solid var(--inf); color: var(--tinta); }
.conteudo > .status { margin-top: 0; }

/* Agenda e diário: blocos separados por fios, com toques grandes e pouco ruído. */
.tela { max-width: 48rem; }
.tela > h1 + * { margin-top: 1.5rem; }
.bloco { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--fio); }
.bloco h2 + * { margin-top: 0.9rem; }
.linha { padding: 1rem 0; border-top: 1px solid var(--fio); }
.linha .botao { margin: 0.6rem 0.5rem 0 0; }
.toques { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.9rem; }
/* toque = botão grande de escolha; escolhido fica ameixa como o botão do site (fácil de ver de relance) */
.toque {
  min-height: 3rem; padding: 0.65rem 1rem; border-radius: 3px; cursor: pointer;
  font: inherit; font-size: 1rem; color: var(--tinta); background: var(--branco); border: 1px solid #C9B8C5;
}
.toque:hover { border-color: var(--tinta); }
.toque[aria-pressed="true"] { background: var(--tinta); color: var(--claro); border-color: var(--tinta); }
.formulario textarea, .formulario input[type="date"], .formulario input[type="datetime-local"] {
  display: block; width: 100%; max-width: 34rem; min-height: 3rem; margin-top: 0.5rem; padding: 0.65rem;
  font: inherit; color: var(--tinta); background: var(--branco); border: 1px solid #C9B8C5; border-radius: 3px;
}
/* recolhido que abre: um "+" que vira "−" (o marcador padrão some com o display flex) */
.formulario summary { text-decoration: underline; text-decoration-color: var(--fio); text-underline-offset: 0.25em; }
.formulario summary::before { content: "+"; width: 1.25em; font-weight: 700; color: var(--inf); }
.formulario details[open] > summary::before { content: "−"; }
.filtro label { display: block; font-weight: 600; font-size: 0.9375rem; }
.linha time { font-weight: 600; }
.linha p { margin-top: 0.4rem; }
.lede + .formulario, .lede + .bloco { margin-top: 1rem; }
.formulario details { margin-top: 1rem; }
.formulario summary { min-height: 3rem; cursor: pointer; display: flex; align-items: center; }
.filtro { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: end; margin-top: 1.5rem; }
.filtro input { min-height: 3rem; padding: 0.5rem; font: inherit; border: 1px solid #C9B8C5; border-radius: 3px; }

/* símbolo vivo na entrada (o mesmo do site; a abertura roda uma vez) */
.simbolo { width: min(56vw, 12rem); margin-bottom: 1.75rem; }
.simbolo svg { width: 100%; height: auto; overflow: visible; }

/* formulários: campo branco com fio, rótulo sempre visível, caixa de marcar grande */
.formulario { margin-top: 1.5rem; }
.formulario label { display: block; font-weight: 600; }
.formulario input[type="text"] {
  display: block; width: 100%; max-width: 24rem; min-height: 3rem; margin-top: 0.5rem; padding: 0.7rem 0.9rem;
  font: inherit; color: var(--tinta); background: var(--branco); border: 1px solid #C9B8C5; border-radius: 3px;
  letter-spacing: 0.04em;
}
.formulario input[type="text"]:focus-visible { border-color: var(--tinta); }
.formulario .nota { margin-top: 0.25rem; }
.marcar { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; margin-top: 1rem; }
.marcar input { width: 1.5rem; height: 1.5rem; margin: 0.12rem 0 0; accent-color: var(--tinta); }
.marcar label { font-weight: 500; }

.recuperar { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--fio); }
.recuperar summary {
  cursor: pointer; color: var(--tinta-2); font-size: 0.9375rem;
  min-height: 2.75rem; display: inline-flex; align-items: center;
  text-decoration: underline; text-decoration-color: var(--fio); text-underline-offset: 0.25em;
}
.recuperar summary:hover { color: var(--tinta); text-decoration-color: currentColor; }
.recuperar[open] summary { margin-bottom: 0.5rem; }

/* textos que a pessoa lê antes de aceitar (aviso de privacidade e consentimento) */
.documento { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--fio); }
.documento p { margin-top: 0.9rem; font-size: 1rem; }
.convite .formulario { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--fio); }

.rodape { border-top: 1px solid var(--fio); padding: 1.5rem 0 2rem; font-size: 0.875rem; color: var(--tinta-2); }

/* logo vivo (do site). Por padrão o símbolo está INTEIRO e parado: a abertura só liga com a classe .anima na raiz,
   retirada em 4,7 s; quem pediu menos movimento no sistema não vê animação nenhuma */
.w-broto, .w-fe, .w-fd, .w-ft { transform-box: view-box; }
.brilho { opacity: 0; }
#mk-c path, #mk-p path, #mk-caule path { stroke-dasharray: 1 1; }
.anima .mono-vivo .w-c { mask: url(#mk-c); }
.anima .mono-vivo .w-p { mask: url(#mk-p); }
.anima .mono-vivo .w-caule { mask: url(#mk-caule); }
.anima #mk-c .t1 { animation: traco 1.6s cubic-bezier(.55, .1, .35, 1) .15s both; }
.anima #mk-c .t2 { animation: traco .9s cubic-bezier(.45, .1, .35, 1) 1.05s both; }
.anima #mk-p .t1 { animation: traco 1.2s cubic-bezier(.55, .1, .35, 1) .7s both; }
.anima #mk-p .t2 { animation: traco 1.1s cubic-bezier(.45, .1, .35, 1) 1.45s both; }
.anima #mk-caule .t1 { animation: traco 1s cubic-bezier(.3, .6, .4, 1) 2.05s both; }
.anima .mono-vivo .w-fe { animation: abre .9s cubic-bezier(.3, 1.45, .55, 1) 2.6s both; }
.anima .mono-vivo .w-fd { animation: abre .9s cubic-bezier(.3, 1.45, .55, 1) 2.8s both; }
.anima .mono-vivo .w-ft { animation: abre 1s cubic-bezier(.3, 1.45, .55, 1) 3s both; }
.anima .mono-vivo .brilho { opacity: 1; }
.anima .mono-vivo .luz { animation: luz 1.3s ease-in-out 3.4s both; }
.marca:hover .w-fe, .marca:focus-visible .w-fe { animation: balanca 2.6s ease-in-out infinite; }
.marca:hover .w-fd, .marca:focus-visible .w-fd { animation: balanca-inv 2.9s ease-in-out infinite; }
.marca:hover .w-ft, .marca:focus-visible .w-ft { animation: balanca 3.2s ease-in-out infinite; }
@keyframes traco { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes abre { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes luz { from { transform: translateX(0); } to { transform: translateX(2200px); } }
@keyframes balanca { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }
@keyframes balanca-inv { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) {
  .anima .mono-vivo *, .marca * { animation: none !important; }
  .anima .mono-vivo .w-c, .anima .mono-vivo .w-p, .anima .mono-vivo .w-caule { mask: none; }
}

/* Telas da Karol (Tarefa 17): menu de texto com fios, campos e listas no mesmo visual (sem cartão, sem pílula) */
.tela-karol { max-width: 52rem; }
.menu-karol { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 1rem; padding: 0.6rem 0;
  border-top: 1px solid var(--fio); border-bottom: 1px solid var(--fio); font-size: 0.9375rem; }
.menu-karol a { min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--tinta-2); }
.menu-karol [aria-current="page"] { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 700; }
.tela-karol h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; margin-top: 1rem; }
.lista { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.lista li + li { margin-top: 0.4rem; }
.formulario select, .formulario input[type="text"], .formulario input[type="number"], .formulario input[type="time"],
.filtro select {
  min-height: 3rem; margin-top: 0.4rem; padding: 0.55rem 0.7rem; font: inherit; color: var(--tinta);
  background: var(--branco); border: 1px solid #C9B8C5; border-radius: 3px;
}
.formulario input.curto, input.curto { width: 7rem; }
.formulario label + select, .formulario label + input { display: block; }
.formulario fieldset { margin: 1.5rem 0 0; padding: 0; border: 0; }
.formulario legend { font-family: var(--serifa); font-size: 1.5rem; font-weight: 500; padding: 0; }
.faixa, .opcao { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.5rem 0;
  border-bottom: 1px solid var(--fio); }
.faixa select, .faixa input, .opcao input { margin-top: 0; }
.opcao input[type="text"] { flex: 1 1 14rem; max-width: 26rem; }
.link-gerado input { display: block; width: 100%; max-width: 34rem; min-height: 3rem; margin-top: 0.75rem;
  padding: 0.55rem 0.7rem; font: inherit; font-size: 0.875rem; color: var(--tinta); background: var(--branco);
  border: 1px solid #C9B8C5; border-radius: 3px; }
.repeticao label { display: block; font-size: 0.9375rem; margin-top: 0.5rem; }
.linha.apagado { color: var(--tinta-2); }
.autor + .autor { margin-top: 1.5rem; }
.formulario input + label, .formulario select + label, .formulario textarea + label { margin-top: 1rem; }
.repeticao input { min-height: 2.75rem; margin-top: 0.3rem; padding: 0.4rem 0.6rem; font: inherit;
  border: 1px solid #C9B8C5; border-radius: 3px; background: var(--branco); }
