/* Formulário de início da Neci
   Lookbook de campanha: cada parte tem uma foto da apresentação de kickoff da Neci, de ponta a ponta,
   e cada pergunta é uma etiqueta de papel pendurada na linha de costura do progresso.
   No celular a foto é o fundo e a etiqueta cabe na tela; no computador é metade foto, metade painel creme.
   Fontes: Fraunces (títulos, perguntas e o que a cliente escreve), Inter (o resto) e Pinyon Script,
   só como acento (a cursiva das aberturas de parte, do fim e da assinatura). */

:root {
  color-scheme: light;
  --creme: #F6EFDD;
  --papel: #F4ECD9;
  --papel-2: #E9DEC4;
  --papel-3: #DDCFAE;
  --tinta: #2E0909;
  --tinta-2: rgba(46, 9, 9, 0.72);
  --tinta-3: rgba(46, 9, 9, 0.5);
  --tinta-4: rgba(46, 9, 9, 0.2);
  --tinta-5: rgba(46, 9, 9, 0.08);
  /* texto secundário pequeno (exemplo dentro do campo, contador, dicas): 4,5 ou mais sobre o papel */
  --tinta-suave: #6B5A4E;
  --campo: rgba(255, 251, 242, 0.66);
  /* o que fica sobre a foto (no celular) ou sobre o painel creme (no computador) */
  --sobre: #F6EFDD;
  --sobre-2: rgba(246, 239, 221, 0.84);
  --sobre-3: rgba(246, 239, 221, 0.46);
  /* a cor da parte vira detalhe: seleção, cordão, ilhós, botão da régua e a linha de costura */
  --cheio: #571313;
  --sobre-cheio: #F6EFDD;
  --acento: #571313;
  --fio: #D98A78;
  --fio-2: #7A2A22;
  --f-titulo: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-texto: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-cursiva: "Pinyon Script", "Snell Roundhand", "Apple Chancery", "URW Chancery L", cursive;
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  --gutter: 14px;
  --furo: 21px;
  --cab: 42px;
  --pendura: 22px;
  --seguro-b: env(safe-area-inset-bottom, 0px);
}
body[data-cor="verde"] { --cheio: #5F6913; --acento: #5F6913; --fio: #BCC75E; --fio-2: #56600F; }
body[data-cor="mostarda"] { --cheio: #D99A14; --sobre-cheio: #2E0909; --acento: #845A0C; --fio: #F2C354; --fio-2: #9C6A0B; }
body[data-cor="azul"] { --cheio: #2A63A8; --acento: #28568F; --fio: #93B8E8; --fio-2: #234F86; }
body[data-cor="dourado"] { --cheio: #8A6009; --acento: #7A5507; --fio: #E3B653; --fio-2: #7A5508; }
body[data-cor="petroleo"] { --cheio: #0C3247; --acento: #0C3247; --fio: #86B6CE; --fio-2: #0C3247; }
body[data-cor="terra"] { --cheio: #A74B32; --acento: #95422C; --fio: #EFA184; --fio-2: #8E3E28; }

*, *::before, *::after { box-sizing: border-box; }
/* a página nunca rola: quem rola, quando precisa, é a etiqueta (ou a ficha da revisão) */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #1B0B08; }
body {
  margin: 0;
  background: #1B0B08;
  color: var(--sobre);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-appearance: none; appearance: none; }
button:disabled { cursor: default; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.campo-linha:focus-visible, .campo-pauta:focus-visible, .campo-palavra:focus-visible { outline: none; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.topo :focus-visible, .acoes :focus-visible, .cena-capitulo :focus-visible, .retrato-obrigado :focus-visible { outline-color: var(--sobre); }
::selection { background: rgba(217, 154, 20, 0.35); }

/* ---------------- a foto de fundo ---------------- */
.fundo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #22100B; }
.fotos { position: absolute; inset: 0; }
.foto { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease); }
.foto.on { opacity: 1; }
/* só um degradê suave em cima e embaixo, para a barra e os botões lerem bem */
.veu {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 5, 3, 0.62), rgba(14, 5, 3, 0.22) 88px, rgba(14, 5, 3, 0) 150px),
    linear-gradient(to top, rgba(14, 5, 3, 0.66), rgba(14, 5, 3, 0.22) 96px, rgba(14, 5, 3, 0) 170px);
  transition: opacity 0.6s;
}
.veu::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(14, 5, 3, 0.78), rgba(14, 5, 3, 0.5) 34%, rgba(14, 5, 3, 0) 64%);
  transition: opacity 0.7s var(--ease);
}
body[data-cena="capitulo"] .veu::after { opacity: 1; }
/* grão de filme */
.fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px;
}
.lado { display: none; }

/* ---------------- a moldura do app ---------------- */
.app {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  top: var(--vv-top, 0px);
  height: 100vh;
  height: var(--vv-h, 100dvh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

/* ---------------- cabeçalho e linha de costura ---------------- */
.topo {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo dir" "linha linha";
  align-items: center;
  row-gap: 9px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 2px;
}
.topo-logo { grid-area: logo; height: 22px; }
.logo { display: block; height: 100%; width: auto; }
.topo-dir { grid-area: dir; justify-self: end; display: flex; align-items: center; gap: 12px; min-width: 0; }
.topo-cap { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sobre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.salvo { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--sobre); opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0.4s; }
.salvo svg { width: 13px; height: 13px; }
.salvo.on { opacity: 1; visibility: visible; transform: none; }

.linha { grid-area: linha; min-width: 0; transition: opacity 0.5s; }
.linha-rotulos { display: none; }
.linha-fio { position: relative; height: 10px; }
.linha-base, .linha-feita { position: absolute; left: 0; top: 50%; }
.linha-base { right: 0; height: 1px; margin-top: -0.5px; background: repeating-linear-gradient(90deg, var(--sobre-3) 0 6px, transparent 6px 10px); }
.linha-feita { width: 0; height: 1.6px; margin-top: -0.8px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--fio) 0 8px, transparent 8px 11px); transition: width 0.9s var(--ease), background 0.6s; }
.linha-nos .no { position: absolute; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; border: 1px solid var(--sobre-3); background: rgba(20, 8, 5, 0.5); transition: background-color 0.5s, border-color 0.5s; }
.linha-nos .no.feito { background: var(--fio); border-color: var(--fio); }
.agulha { position: absolute; top: 50%; left: 0; width: 28px; height: 7px; transition: left 0.9s var(--ease), opacity 0.4s; transform: translate(-6px, -50%) scaleX(-1); transform-origin: 6px 50%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)); }
.agulha.parada-0 { opacity: 0; }
.no-cordao { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F4EBD4, #C8B07B 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.4s; }
body[data-cena="pergunta"] .no-cordao, body[data-cena="fimcap"] .no-cordao, body[data-cena="erro"] .no-cordao { opacity: 1; }
body[data-cena="erro"] .agulha, body[data-cena="erro"] .linha-nos { opacity: 0; }
body[data-cena="inicio"] .linha, body[data-cena="inicio"] .topo-dir, body[data-cena="carregando"] .linha, body[data-cena="erro"] .topo-dir { visibility: hidden; }

.aviso-rede {
  position: fixed;
  z-index: 11;
  left: 50%;
  bottom: calc(84px + var(--seguro-b) + var(--teclado, 0px));
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter));
  max-width: 520px;
  margin: 0;
  animation: aparece 0.4s var(--ease);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--creme);
  color: var(--tinta);
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}

/* ---------------- palco ---------------- */
/* o palco não corta nada (a etiqueta sai voando por cima das bordas); só as telas compridas rolam dentro dele */
.palco { position: relative; z-index: 2; min-height: 0; overflow: visible; padding: 0 var(--gutter); outline: none; }
/* as telas compridas (revisão, retrato) rolam dentro do palco; a moldura fica parada */
body[data-cena="revisao"] .palco, body[data-cena="retrato"] .palco, body[data-cena="inicio"] .palco { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* a ficha some aos poucos antes dos botões, em vez de cortar seco */
body[data-cena="revisao"] .palco { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
.cena { position: relative; }
.cena.saindo { pointer-events: none; z-index: 0; }
.cena-carregando { display: grid; place-items: center; height: 100%; }
.carregando { font-family: var(--f-titulo); font-style: italic; font-size: 19px; color: var(--sobre-2); }
.cena-pergunta { display: flex; flex-direction: column; align-items: center; height: 100%; padding: var(--pendura) 0 8px; }

/* ---------------- a etiqueta ---------------- */
.etiqueta {
  --ch: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  min-height: 0;
  max-height: 100%;
  filter: drop-shadow(0 1px 1.2px rgba(20, 6, 0, 0.3)) drop-shadow(0 16px 22px rgba(20, 6, 0, 0.34));
  transform-origin: 50% calc(var(--furo) - var(--cordao, 40px));
}
.papel, .fantasma {
  clip-path: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%, 0 var(--ch));
  -webkit-mask: radial-gradient(circle at 50% var(--furo), transparent 7px, #000 7.5px);
  mask: radial-gradient(circle at 50% var(--furo), transparent 7px, #000 7.5px);
  background-color: var(--papel);
  background-image: url(img/linho.webp);
  background-size: 120px;
  background-blend-mode: multiply;
}
.papel { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 0; max-height: 100%; padding-top: var(--cab); color: var(--tinta); }
.fantasma { position: absolute; inset: 0; transform-origin: 50% var(--furo); }
.fantasma.f1 { background-color: var(--papel-2); transform: rotate(calc(-1 * var(--giro, 2.2deg))); }
.fantasma.f2 { background-color: var(--papel-3); transform: rotate(calc(0.82 * var(--giro, 2.2deg))); }
.costura { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.costura path { fill: none; stroke: var(--tinta); stroke-opacity: 0.28; stroke-width: 1; stroke-dasharray: 4.5 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* o corpo da etiqueta: se não couber de jeito nenhum, rola por dentro, com um esmaecido dizendo que tem mais */
.et-corpo {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px 18px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--tinta-4) transparent;
}
.et-corpo.mais-abaixo { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), rgba(0, 0, 0, 0.08)); mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), rgba(0, 0, 0, 0.08)); }
.et-corpo.mais-acima { -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), #000 26px); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), #000 26px); }
.et-corpo.mais-acima.mais-abaixo { -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), #000 26px, #000 calc(100% - 44px), rgba(0, 0, 0, 0.08)); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), #000 26px, #000 calc(100% - 44px), rgba(0, 0, 0, 0.08)); }
.ilhos {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: var(--furo);
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 250, 235, 0.55) 0 1.4px, transparent 2.6px) 3px 1px / 100% 100% no-repeat,
    radial-gradient(circle, transparent 0 7px, rgba(20, 8, 2, 0.55) 7.3px 7.9px, var(--fio) 8.6px, var(--fio-2) 10.6px, rgba(20, 8, 2, 0.55) 11.8px, transparent 12.4px);
  pointer-events: none;
}
.cordao {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(100% - var(--furo));
  width: 2.6px;
  margin-left: -1.3px;
  height: var(--cordao, 40px);
  border-radius: 2px 2px 3px 3px;
  background: repeating-linear-gradient(-58deg, var(--fio) 0 1.8px, var(--fio-2) 1.8px 3.2px);
  box-shadow: 0 0 0 0.4px rgba(20, 8, 2, 0.4);
  pointer-events: none;
}
.et-topo { position: absolute; z-index: 3; top: calc(var(--furo) - 10px); left: 22px; right: 22px; height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 48px; pointer-events: none; }
.et-num { font-family: var(--f-titulo); font-style: italic; font-size: 16px; line-height: 1; color: var(--acento); white-space: nowrap; font-variant-numeric: oldstyle-nums; }
.et-num small { font-family: var(--f-texto); font-style: normal; font-weight: 600; font-size: 9.5px; letter-spacing: 0.08em; vertical-align: 1.5px; }
.et-cap { min-width: 0; max-width: calc(50% - 24px); font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acento); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-perg {
  margin: 0;
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--tinta);
}
/* pergunta feita para a marca, com contexto antes da pergunta: um pouco menor, para caber sem rolar */
.et-perg-longa { font-size: 21px; line-height: 1.2; }
.et-ajuda { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--tinta-2); text-wrap: pretty; }
.et-corpo > .campo, .et-corpo > .campo-grupo { margin-top: 16px; }
.et-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--tinta-4); }

/* ---------------- campos ---------------- */
.campo { position: relative; }
.rotulo { display: block; margin-bottom: 1px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--tinta); }
.rotulo-opc { display: inline-block; font-weight: 400; font-style: italic; white-space: nowrap; color: var(--tinta-3); }
.campo-linha {
  display: block;
  width: 100%;
  padding: 6px 0 7px;
  border: 0;
  border-bottom: 1.5px solid var(--tinta-4);
  border-radius: 0;
  background: transparent;
  font-family: var(--f-titulo);
  font-size: 18px;
  line-height: 1.3;
  color: var(--tinta);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo-menor { font-size: 17px; }
/* alvo de toque de 44 px: o campo cresce para cima, por baixo do rótulo, sem mudar o desenho nem a altura da etiqueta */
.campo-linha { min-height: 44px; padding-top: 13px; margin-top: -7px; }
.campo-linha:focus { border-bottom-color: var(--acento); box-shadow: 0 1.5px 0 var(--acento); }
.campo-linha::placeholder, .campo-pauta::placeholder, .campo-palavra::placeholder { color: var(--tinta-suave); font-style: italic; opacity: 1; }
.detalhe { margin-top: 12px; }

.campo-pauta {
  --lh: 27px;
  display: block;
  width: 100%;
  min-height: calc(var(--lh) * 4 + 4px);
  padding: 0 2px 0 14px;
  border: 0;
  border-radius: 0;
  resize: none;
  background-color: transparent;
  background-image: linear-gradient(90deg, transparent 4px, var(--margem, rgba(167, 75, 50, 0.3)) 4px, var(--margem, rgba(167, 75, 50, 0.3)) 5.2px, transparent 5.2px), linear-gradient(to bottom, transparent calc(var(--lh) - 1px), var(--tinta-4) calc(var(--lh) - 1px));
  background-size: 100% 100%, 100% var(--lh);
  background-attachment: local, local;
  font-family: var(--f-titulo);
  font-size: 17px;
  line-height: var(--lh);
  color: var(--tinta);
  overflow-y: auto;
}
.campo-pauta:focus { --margem: var(--acento); background-image: linear-gradient(90deg, transparent 4px, var(--acento) 4px, var(--acento) 5.6px, transparent 5.6px), linear-gradient(to bottom, transparent calc(var(--lh) - 1px), rgba(46, 9, 9, 0.28) calc(var(--lh) - 1px)); }
.campo-longo .rotulo { margin-bottom: 4px; }
/* o texto passou da altura do campo: o fim esmaece para dizer que continua (some enquanto a cliente escreve) */
.campo-pauta.transborda:not(:focus) { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), rgba(0, 0, 0, 0.18)); mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), rgba(0, 0, 0, 0.18)); }
.campo-grupo .campo-pauta { min-height: calc(var(--lh) * 3 + 4px); }
/* rolado por dentro enquanto a cliente escreve: a linha cortada no alto esmaece, e a ponta das letras da linha
   que já subiu (o pé do p, do g, do ç) não aparece no alto do campo */
.campo-pauta.rolado:focus { -webkit-mask-image: linear-gradient(to bottom, transparent 6px, rgba(0, 0, 0, 0.3) 10px, #000 26px); mask-image: linear-gradient(to bottom, transparent 6px, rgba(0, 0, 0, 0.3) 10px, #000 26px); }
.campo-pe { display: flex; align-items: center; gap: 8px; min-height: 18px; margin-top: 8px; }
.campo-pe:empty { display: none; }
.contador { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.contador.perto { color: var(--acento); }
.mic, .nao-sei {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--tinta-4);
  border-radius: 999px;
  background: var(--campo);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tinta);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.mic svg { width: 17px; height: 17px; flex: none; }
.mic:hover, .nao-sei:hover { border-color: var(--tinta-3); }
.mic.ouvindo { background: var(--cheio); border-color: var(--cheio); color: var(--sobre-cheio); }
.mic.ouvindo svg { animation: pulsa 1.3s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: 0.35; } }
.nao-sei-marca { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed var(--tinta-3); flex: none; }
.nao-sei[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.nao-sei[aria-pressed="true"] .nao-sei-marca { border: 0; background: radial-gradient(circle, var(--papel) 0 3px, transparent 3.5px); box-shadow: inset 0 0 0 1.5px var(--papel); }
.nao-sei-nota { margin: 10px 0 0; font-family: var(--f-titulo); font-style: italic; font-size: 16px; color: var(--acento); }
.com-nao-sei .et-corpo > .campo, .com-nao-sei .et-corpo > .campo-grupo { opacity: 0.4; transition: opacity 0.3s; }
.com-nao-sei .et-corpo > .campo:focus-within { opacity: 1; }
.dica-viva { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: var(--acento); }
.dica-viva:empty { display: none; }
.dica-viva.pisca { animation: aparece 0.35s var(--ease); }
@keyframes aparece { from { opacity: 0; transform: translateY(-3px); } }

/* área de toque de 44 px nos controles pequenos, sem mudar o desenho */
.chip::before, .segmento::before, .mic::before, .nao-sei::before, .btn-linha::before, .palavra-x::before,
.palavra-add::before, .lista-x::before, .btn-copiar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}

/* palavras: etiquetinhas bordadas */
.palavras-caixa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; min-height: 48px; padding: 6px 0 7px; border-bottom: 1.5px solid var(--tinta-4); cursor: text; transition: border-color 0.2s, box-shadow 0.2s; }
.palavras-caixa:focus-within { border-bottom-color: var(--acento); box-shadow: 0 1.5px 0 var(--acento); }
.palavras { display: contents; }
.palavra {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 1px 1px 12px;
  border-radius: 3px;
  background: var(--cheio);
  color: var(--sobre-cheio);
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.2;
  box-shadow: 0 1px 1.5px rgba(40, 10, 0, 0.28);
  animation: nasce 0.32s var(--ease);
}
.palavra::before { content: ""; position: absolute; inset: 3px; border: 1px dashed currentColor; border-radius: 2px; opacity: 0.42; pointer-events: none; }
.palavra-t { min-width: 0; overflow-wrap: anywhere; }
@keyframes nasce { from { opacity: 0; transform: scale(0.86) rotate(-3deg); } }
.palavra-x { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: 0.8; }
.palavra-x svg { width: 11px; height: 11px; }
.palavra-x:hover { opacity: 1; }
.campo-palavra { flex: 1 1 130px; min-width: 110px; min-height: 44px; margin: -4px 0; padding: 5px 2px; border: 0; background: transparent; font-family: var(--f-titulo); font-size: 17px; color: var(--tinta); }
.palavra-add { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--tinta-4); border-radius: 50%; background: var(--campo); color: var(--tinta); }
.palavra-add svg { width: 13px; height: 13px; }
.palavras-cont { display: block; min-height: 16px; margin-top: 5px; font-size: 11.5px; font-weight: 500; color: var(--tinta-2); text-align: right; font-variant-numeric: tabular-nums; }
.palavras-cont:empty { min-height: 0; margin: 0; }

/* escolha: cartões */
.opcoes { display: grid; gap: 7px; }
.opcoes.curtas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opcao {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid var(--tinta-4);
  border-radius: 10px;
  background: var(--campo);
  text-align: left;
  color: var(--tinta);
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.opcao:hover { border-color: var(--tinta-3); }
.opcao:active { transform: scale(0.99); }
.opcao-n { display: none; font-family: var(--f-titulo); font-style: italic; font-size: 16px; color: var(--tinta-suave); }
.opcao-rot { display: block; font-size: 15px; font-weight: 600; line-height: 1.28; }
.opcao-desc { display: block; margin-top: 1px; font-size: 13px; line-height: 1.38; color: var(--tinta-2); }
.opcao-marca { justify-self: end; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--tinta-4); transition: border-color 0.2s, background 0.2s; }
.opcao[aria-checked="true"] { border-color: var(--cheio); background-color: rgba(255, 250, 238, 0.92); box-shadow: inset 0 0 0 1px var(--cheio); }
.opcao[aria-checked="true"]::after { content: ""; position: absolute; inset: 3px; border: 1px dashed var(--cheio); border-radius: 7px; opacity: 0.55; pointer-events: none; }
.opcao[aria-checked="true"] .opcao-marca { border-color: var(--cheio); background: radial-gradient(circle, var(--cheio) 0 4px, transparent 4.5px); }
.opcao[aria-checked="true"] .opcao-n { color: var(--acento); }

.segmentos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.segmento {
  position: relative;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--tinta-4);
  border-radius: 999px;
  background: var(--campo);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tinta);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.segmento:hover { border-color: var(--tinta-3); }
.segmento[aria-checked="true"] { background: var(--cheio); border-color: var(--cheio); color: var(--sobre-cheio); }
.segmento[aria-checked="true"]::after { content: ""; position: absolute; inset: 3px; border: 1px dashed currentColor; border-radius: 999px; opacity: 0.4; pointer-events: none; }

/* várias e ordem: chips */
/* 7 px entre as linhas: a área de toque de 44 px de cada chip não encosta na do vizinho */
.chips { display: flex; flex-wrap: wrap; gap: 7px 6px; }
.campo .rotulo + .chips { margin-top: 5px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  max-width: 100%;
  padding: 0 14px;
  border: 1px solid var(--tinta-4);
  border-radius: 999px;
  background: var(--campo);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.22;
  color: var(--tinta);
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.chip-t { padding: 8px 0; }
.chip:hover { border-color: var(--tinta-3); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--cheio); border-color: var(--cheio); color: var(--sobre-cheio); }
.chip[aria-pressed="true"]::after { content: ""; position: absolute; inset: 3px; border: 1px dashed currentColor; border-radius: 999px; opacity: 0.4; pointer-events: none; }
.chip-outro .chip-t::before { content: "+ "; opacity: 0.6; }
.chip-outro[aria-pressed="true"] .chip-t::before { content: ""; }
.chip-nenhum { border-style: dashed; }
.chip-nenhum[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); border-style: solid; }
.com-nenhum .chip:not(.chip-nenhum) { opacity: 0.42; }
.chip-ordem { display: grid; place-items: center; width: 22px; height: 22px; margin-left: -7px; border-radius: 50%; border: 1px dashed var(--tinta-3); font-family: var(--f-titulo); font-style: italic; font-size: 14px; line-height: 1; flex: none; }
.campo-ordem .chip[aria-pressed="true"] .chip-ordem { border: 0; background: var(--sobre-cheio); color: var(--cheio); font-weight: 500; animation: nasce 0.3s var(--ease); }
/* listas grandes (o tom, as datas): chips compactos */
.chips.compactos { gap: 6px 5px; }
.chips.compactos .chip { min-height: 40px; padding: 0 12px; font-size: 14px; }
.chips.compactos .chip-t { padding: 8px 0; }

/* datas: três estados */
.datas-legenda { display: flex; gap: 14px; margin: 0 0 9px; font-size: 12.5px; font-weight: 500; color: var(--tinta-2); }
.leg { display: inline-flex; align-items: center; gap: 6px; }
.leg::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.leg-sim::before { background: var(--cheio); box-shadow: inset 0 0 0 2px var(--cheio), inset 0 0 0 3px var(--sobre-cheio); }
.leg-nao::before { border: 1.5px dashed var(--tinta-3); background: linear-gradient(135deg, transparent 44%, var(--tinta-3) 44% 56%, transparent 56%); }
.chips.compactos .chip-data { padding-left: 10px; gap: 6px; }
.data-marca { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--tinta-4); flex: none; transition: all 0.2s; }
.chip-data[data-estado="sim"] { background: var(--cheio); border-color: var(--cheio); color: var(--sobre-cheio); }
.chip-data[data-estado="sim"] .data-marca { border-color: currentColor; background: radial-gradient(circle, currentColor 0 2.5px, transparent 3px); }
.chip-data[data-estado="sim"]::after { content: ""; position: absolute; inset: 3px; border: 1px dashed currentColor; border-radius: 999px; opacity: 0.4; pointer-events: none; }
.chip-data[data-estado="nao"] { background: transparent; border-style: dashed; color: var(--tinta-2); }
.chip-data[data-estado="nao"] .chip-t { text-decoration: line-through; text-decoration-thickness: 1px; }
.chip-data[data-estado="nao"] .data-marca { border-style: dashed; border-color: var(--tinta-3); background: linear-gradient(135deg, transparent 42%, var(--tinta-3) 42% 58%, transparent 58%); }

/* eixos: réguas com botão de costura */
.campo-eixos { display: grid; gap: 4px; }
.eixo-rot { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; font-weight: 600; color: var(--tinta); }
.regua { --pos: 0.5; position: relative; height: 44px; margin: -2px 0; touch-action: none; cursor: pointer; outline: none; -webkit-user-select: none; user-select: none; }
.regua-trilho { position: absolute; left: 14px; right: 14px; top: 50%; border-top: 1.5px dashed var(--tinta-3); }
.parada { position: absolute; top: -4.5px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--tinta-3); }
.regua-botao {
  position: absolute;
  top: 50%;
  left: calc(14px + (100% - 28px) * var(--pos));
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 39% 39%, rgba(255, 246, 228, 0.92) 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 61% 39%, rgba(255, 246, 228, 0.92) 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 39% 61%, rgba(255, 246, 228, 0.92) 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 61% 61%, rgba(255, 246, 228, 0.92) 0 1.5px, transparent 1.9px),
    radial-gradient(circle, var(--cheio) 0 9px, rgba(0, 0, 0, 0.22) 9.5px 10.3px, var(--cheio) 10.8px);
  box-shadow: 0 2px 4px rgba(40, 10, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: left 0.22s var(--ease), transform 0.15s;
}
.arrastando .regua-botao { transition: transform 0.15s; transform: scale(1.1); }
.regua:focus-visible .regua-botao { outline: 2px solid var(--acento); outline-offset: 3px; }
.intocada .regua-botao { background: radial-gradient(circle, var(--papel) 0 9px, var(--tinta-3) 9.5px 10.8px, var(--papel) 11.3px); box-shadow: 0 1px 2px rgba(40, 10, 0, 0.2); }
.parada.on { background: var(--cheio); box-shadow: none; }
.intocada .parada.on { background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--tinta-3); }

/* escala */
.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.escala-p {
  justify-self: center;
  width: min(100%, 54px);
  aspect-ratio: 1;
  border: 1px solid var(--tinta-4);
  border-radius: 50%;
  background: var(--campo);
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: 21px;
  color: var(--tinta);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.escala-p:hover { border-color: var(--tinta-3); }
.escala-p[aria-checked="true"] { background: var(--cheio); border-color: var(--cheio); color: var(--sobre-cheio); transform: scale(1.06); }
.escala-rot { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--tinta-2); }
.escala-rot span { max-width: 45%; }
.escala-rot span:last-child { text-align: right; }

/* lista: o quê e quando lado a lado */
.lista-linhas { display: grid; }
/* no celular o quê e quando ficam um embaixo do outro; do tablet para cima, lado a lado */
.lista-linha { display: grid; grid-template-columns: 18px minmax(0, 1fr) 30px; column-gap: 9px; row-gap: 6px; align-items: end; padding: 8px 0 10px; border-bottom: 1px dashed var(--tinta-4); }
.lista-linha:first-child { padding-top: 0; }
.lista-n { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 9px; font-family: var(--f-titulo); font-style: italic; font-size: 15px; color: var(--acento); }
.lc-0 { grid-column: 2; grid-row: 1; }
.lc-1 { grid-column: 2; grid-row: 2; }
.lista-x { position: relative; grid-column: 3; grid-row: 1; align-self: end; display: grid; place-items: center; width: 36px; height: 36px; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; color: var(--tinta-2); }
.lista-x svg { width: 13px; height: 13px; }
.lista-x:hover { background: var(--tinta-5); color: var(--tinta); }
.lista-pe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-linha { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 11px; border: 1px dashed var(--tinta-3); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; color: var(--tinta); }
.btn-linha svg { width: 13px; height: 13px; }
.btn-linha:hover { background: var(--campo); }
.com-nenhum .lista-linhas { opacity: 0.4; pointer-events: none; }

/* pessoas: nome e WhatsApp lado a lado */
.pessoas { display: grid; gap: 9px; }
.pessoa { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; min-width: 0; margin: 0; padding: 8px 12px 11px; border: 1px solid var(--tinta-4); border-radius: 10px; background: rgba(255, 251, 242, 0.45); }
.pessoa-papel { padding: 0 5px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acento); }
.pessoa .lista-x { position: absolute; top: -4px; right: 2px; margin: 0; }
.nota-privada { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; font-size: 12.5px; font-weight: 500; color: var(--tinta-2); }
.nota-privada svg { width: 14px; height: 14px; flex: none; }

/* grupo */
.campo-grupo { display: grid; gap: 14px; }
.campo-grupo .campo-escolha .segmentos, .campo-grupo .campo-varias .chips { margin-top: 5px; }

/* combinado */
.combinado-texto { position: relative; margin: 0; padding: 16px 16px 16px 18px; border: 1px solid var(--tinta-4); border-radius: 4px; background: rgba(255, 251, 242, 0.55); font-family: var(--f-titulo); font-style: italic; font-size: 18px; line-height: 1.42; color: var(--tinta); text-wrap: pretty; }
.combinado-texto::before { content: ""; position: absolute; inset: 4px; border: 1px dashed var(--tinta-4); border-radius: 2px; pointer-events: none; }
.btn-combinado { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin-top: 14px; padding: 0 20px 0 14px; border: 1.5px solid var(--cheio); border-radius: 999px; background: transparent; font-size: 15px; font-weight: 600; color: var(--acento); transition: background-color 0.25s, color 0.25s; }
.combinado-marca { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; }
.btn-combinado[aria-pressed="true"] { background: var(--cheio); color: var(--sobre-cheio); }
.btn-combinado[aria-pressed="true"] .combinado-marca::after { content: ""; position: absolute; left: 5.8px; top: 2.6px; width: 4.5px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); animation: nasce 0.3s var(--ease); }

/* meta */
.meta-texto { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--tinta-2); }
.meta-texto strong { font-weight: 600; color: var(--tinta); }
/* com o passo a passo ou o campo aberto, a apresentação e a descrição do caminho escolhido recolhem */
.campo-meta.com-painel .meta-texto { display: none; }
.campo-meta.com-painel .caminhos { margin-top: 0; }
.campo-meta.com-painel .opcao[aria-checked="true"] .opcao-desc { display: none; }
.campo-meta.com-painel .opcao[aria-checked="true"] { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.meta-passos { display: grid; gap: 4px; margin: 0 0 9px; padding: 0; list-style: none; counter-reset: passo; }
.meta-passos li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; font-size: 13px; line-height: 1.4; counter-increment: passo; }
.meta-passos li::before { content: counter(passo); font-family: var(--f-titulo); font-style: italic; font-size: 17px; line-height: 1.05; color: var(--acento); }
.meta-id { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 6px 6px 6px 12px; border: 1px dashed var(--tinta-3); border-radius: 10px; background: rgba(255, 251, 242, 0.7); }
.meta-id-r { grid-column: 1 / -1; font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta-2); }
.meta-id-n { min-width: 0; font-family: var(--f-texto); font-size: clamp(14px, 3.9vw, 15.5px); font-weight: 600; letter-spacing: 0.01em; word-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--tinta); white-space: nowrap; }
.btn-copiar { position: relative; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tinta); color: var(--papel); font-size: 13.5px; font-weight: 600; transition: background-color 0.2s; }
.btn-copiar.ok { background: var(--cheio); color: var(--sobre-cheio); }
.meta-sem-id { margin: 0; font-family: var(--f-titulo); font-style: italic; font-size: 16px; color: var(--acento); }
.caminhos { margin-top: 10px; }
.selo { display: inline-block; margin-left: 6px; padding: 1px 7px 2px; border-radius: 999px; background: var(--cheio); color: var(--sobre-cheio); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1.5px; white-space: nowrap; }
.caminho { display: grid; }
/* escolhido um caminho, os outros encolhem para uma linha */
.caminhos.tem-escolha .opcao[aria-checked="false"] .opcao-desc { display: none; }
.caminhos.tem-escolha .opcao[aria-checked="false"] { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.caminhos.tem-escolha .opcao[aria-checked="false"] .selo { display: none; }
.caminho-painel { margin: 6px 0 2px; padding: 9px 11px 10px; border-left: 2px dashed var(--acento); background: rgba(255, 251, 242, 0.5); border-radius: 0 10px 10px 0; animation: aparece 0.35s var(--ease); }
.meta-ajuda { margin: 6px 0 0; font-size: 12.5px; line-height: 1.42; color: var(--tinta-2); }
.campo-num { letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.meta-pe { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.meta-depois { flex: none; }
.meta-resposta { flex: 1 1 auto; min-width: 0; margin: 0; font-family: var(--f-titulo); font-style: italic; font-size: 14px; line-height: 1.32; color: var(--acento); }
.meta-resposta:empty { display: none; }

/* ---------------- ações ---------------- */
.acoes {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px var(--gutter) calc(12px + var(--seguro-b));
}
.com-teclado .acoes { padding-bottom: 8px; }
.acoes-vazio { width: 46px; flex: none; }
.acoes-dir { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.btn-voltar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 1px solid var(--sobre-3); border-radius: 50%; background: rgba(20, 8, 5, 0.18); color: var(--sobre); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color 0.2s, border-color 0.2s; }
.btn-voltar svg { width: 19px; height: 19px; }
.btn-voltar:hover { border-color: var(--sobre); }
.btn-pular { min-height: 46px; padding: 0 12px; border: 0; background: transparent; font-size: 14.5px; font-weight: 500; color: var(--sobre); text-decoration: underline; text-decoration-color: var(--sobre-3); text-underline-offset: 5px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.btn-pular:hover { text-decoration-color: var(--sobre); }
.btn-seguir {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--creme);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--tinta);
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.16), 0 12px 24px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background-color 0.2s;
}
.btn-seguir svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn-seguir:hover svg { transform: translateX(3px); }
.btn-seguir:active { transform: scale(0.97); }
.btn-seguir:disabled { opacity: 0.8; }
.acoes-dica { display: none; }
.btn-texto { padding: 0; border: 0; background: none; font-size: 15px; font-weight: 500; text-align: left; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.btn-escuro { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--tinta); color: var(--papel); font-size: 14.5px; font-weight: 600; }
.btn-claro { min-height: 46px; padding: 0 22px; border: 1px solid var(--sobre-3); border-radius: 999px; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--sobre); transition: border-color 0.2s, background-color 0.2s; }
.btn-claro:hover { border-color: var(--sobre); background: rgba(255, 255, 255, 0.06); }

/* ---------------- abertura: o retrato sobre a foto, o texto no painel creme ---------------- */
.cena-inicio { display: flex; flex-direction: column; min-height: 100%; margin: 0 calc(-1 * var(--gutter)); }
.inicio-retrato { position: relative; z-index: 2; flex: 1 1 0; min-height: 170px; margin: 0 0 -26px; }
.inicio-retrato img { position: absolute; inset: 4px 10px 0; width: calc(100% - 20px); height: calc(100% - 4px); max-width: none; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 16px 22px rgba(10, 2, 0, 0.5)); transform: rotate(-1.2deg); }
.inicio-texto { position: relative; z-index: 1; flex: none; padding: 40px 22px calc(18px + var(--seguro-b)); background: var(--creme); color: var(--tinta); box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.6); }
.sobrelinha { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acento); }
.titulo-grande { margin: 6px 0 0; font-family: var(--f-titulo); font-weight: 300; font-size: clamp(34px, 10vw, 44px); line-height: 1.02; letter-spacing: -0.022em; color: #571313; }
.titulo-grande em { font-style: italic; font-weight: 300; }
/* a marca embaixo do "Oi, Clara!": a mesma Fraunces do título, menor, como a linha de uma etiqueta */
.inicio-marca { margin: 3px 0 0; font-family: var(--f-titulo); font-style: italic; font-weight: 350; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; color: var(--tinta-2); }
.lead { margin: 10px 0 0; max-width: 34ch; font-family: var(--f-titulo); font-weight: 350; font-size: 17px; line-height: 1.42; text-wrap: pretty; }
.lead em { font-style: italic; }
.inicio-info { margin: 12px 0 0; padding-top: 11px; border-top: 1px dashed var(--tinta-4); max-width: 38ch; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--tinta-2); text-wrap: pretty; }
.assina { margin: 8px 0 0; max-width: 36ch; font-size: 13.5px; line-height: 1.45; color: var(--tinta-2); }
.assinatura { margin: -2px 0 0; font-family: var(--f-cursiva); font-size: 30px; line-height: 1; color: #571313; }
.inicio-cta { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.inicio-cta .btn-seguir { background: #571313; color: var(--creme); }
.inicio-dica { font-size: 12.5px; font-weight: 500; color: var(--tinta-2); }
.cena-inicio .btn-texto { display: block; margin-top: 12px; font-size: 13.5px; color: var(--tinta); }

/* ---------------- abertura de parte: a foto inteira, o nome grande ---------------- */
.cena-capitulo { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 0 4px 10px; text-shadow: 0 1px 18px rgba(10, 3, 1, 0.35); }
.cap-parte { display: none; }
.cap-cursiva { margin: 0; font-family: var(--f-cursiva); font-size: 38px; line-height: 1.1; color: var(--sobre); }
.cap-titulo { margin: 0; font-family: var(--f-titulo); font-weight: 400; font-size: clamp(38px, 11vw, 50px); line-height: 0.98; letter-spacing: 0.005em; text-transform: uppercase; text-wrap: balance; font-variation-settings: "SOFT" 0, "WONK" 0; }
.cap-sub { margin: 10px 0 0; font-family: var(--f-titulo); font-style: italic; font-weight: 300; font-size: 19px; line-height: 1.3; color: var(--sobre); }
.cap-intro { max-width: 34em; margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--sobre-2); text-wrap: pretty; }
.cap-sumario { display: none; }
.cap-meta { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--sobre-3); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sobre); }
.cap-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.8; }

/* ---------------- fim de parte: o carimbo ---------------- */
.fim-carimbo { display: grid; place-items: center; margin: 0 0 4px; }
.carimbo { width: 146px; height: 146px; color: var(--acento); mix-blend-mode: multiply; transform: rotate(-11deg); }
.fim-eco { text-align: center; }
.fim-eco em { font-style: italic; color: var(--acento); }
.etiqueta-fim .et-ajuda { text-align: center; }
.fim-prox { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--tinta-4); text-align: center; font-size: 13.5px; font-weight: 500; color: var(--tinta-2); }
.fim-prox strong { font-weight: 600; color: var(--tinta); }

/* ---------------- revisão: a ficha da marca ---------------- */
.cena-revisao { padding: 16px 0 20px; }
.ficha { position: relative; max-width: 760px; margin: 0 auto; padding: 24px 18px 26px; border-radius: 3px; background-color: var(--papel); background-image: url(img/linho.webp); background-size: 120px; background-blend-mode: multiply; color: var(--tinta); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 30px 60px -28px rgba(0, 0, 0, 0.6); }
.ficha::before { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--tinta-4); pointer-events: none; }
.ficha .sobrelinha { color: var(--acento); }
.ficha-t { margin: 8px 0 0; font-family: var(--f-titulo); font-weight: 400; font-size: clamp(26px, 7vw, 40px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.ficha-sub { margin: 8px 0 0; font-size: 14px; color: var(--tinta-2); }
.ficha-lembrete { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid #A74B32; border-radius: 0 10px 10px 0; background: rgba(167, 75, 50, 0.08); font-size: 14px; line-height: 1.5; }
.ficha-lembrete p { margin: 0; }
.ficha-lembrete ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ficha-lembrete .btn-texto { font-family: var(--f-titulo); font-size: 16px; color: var(--tinta); text-decoration-color: rgba(167, 75, 50, 0.6); }
.ficha-cap { margin-top: 26px; }
.ficha-cap[data-cor="verde"] { --sw: #5F6913; } .ficha-cap[data-cor="mostarda"] { --sw: #D99A14; --sw-t: #2E0909; }
.ficha-cap[data-cor="azul"] { --sw: #2A63A8; } .ficha-cap[data-cor="vinho"] { --sw: #571313; }
.ficha-cap[data-cor="dourado"] { --sw: #8A6009; } .ficha-cap[data-cor="petroleo"] { --sw: #0C3247; } .ficha-cap[data-cor="terra"] { --sw: #A74B32; }
.ficha-cap-t { display: flex; align-items: center; gap: 10px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--tinta-4); font-family: var(--f-titulo); font-weight: 400; font-size: 21px; line-height: 1.15; }
.ficha-sw { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sw, var(--tinta)); color: var(--sw-t, var(--creme)); font-family: var(--f-titulo); font-style: italic; font-size: 13px; box-shadow: inset 0 0 0 2.5px var(--sw, var(--tinta)), inset 0 0 0 3.5px rgba(246, 239, 221, 0.55); }
.ficha-lista { margin: 0; padding: 0; list-style: none; }
.ficha-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; width: 100%; padding: 11px 2px 12px; border: 0; border-bottom: 1px dashed var(--tinta-4); background: transparent; text-align: left; color: var(--tinta); transition: background-color 0.2s; }
.ficha-item:hover { background: rgba(255, 251, 242, 0.5); }
.ficha-q { grid-column: 1; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--tinta-2); }
.ficha-r { grid-column: 1; font-family: var(--f-titulo); font-size: 16px; line-height: 1.42; overflow-wrap: anywhere; }
.ficha-item.vazio .ficha-r { font-style: italic; color: var(--tinta-3); }
.ficha-editar { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12.5px; font-weight: 600; color: var(--tinta-2); text-decoration: underline; text-decoration-color: var(--tinta-4); text-underline-offset: 4px; }

/* ---------------- retrato da marca ---------------- */
/* no celular, como a abertura: o retrato com a renda sobre a foto e o agradecimento no painel creme */
.cena-retrato { display: flex; flex-direction: column; align-items: center; min-height: 100%; margin: 0 calc(-1 * var(--gutter)); }
.cena-retrato .retrato-moldura { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 10px var(--gutter) 22px; }
/* a moldura é a renda do retrato bordado da Neci: o cartão entra no lugar do linho */
.retrato-moldura { position: relative; width: 100%; }
.retrato-renda { position: relative; width: 100%; max-width: 470px; padding: 50px 46px 52px 50px; }
.retrato-renda::before {
  content: "";
  position: absolute;
  inset: 0;
  border-style: solid;
  border-width: 50px 46px 52px 50px;
  border-image: url(img/retrato-renda-p.webp) 134 122 136 132 round;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  animation: brota 1.7s var(--ease) 0.25s both;
}
.retrato-cartao { position: relative; z-index: 1; padding: 22px 16px 22px; text-align: center; color: var(--tinta); background-color: #EFE6D2; background-image: url(img/linho.webp); background-size: 120px; background-blend-mode: multiply; box-shadow: inset 0 0 0 1px rgba(46, 9, 9, 0.06), 0 2px 8px rgba(0, 0, 0, 0.25); }
.retrato-cartao::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--tinta-4); pointer-events: none; }
.retrato-cartao .sobrelinha { color: var(--acento); }
.retrato-marca { margin: 6px 0 0; font-family: var(--f-titulo); font-style: italic; font-weight: 300; font-size: clamp(30px, 8.6vw, 50px); line-height: 1; letter-spacing: -0.02em; }
.retrato-palavras { display: flex; flex-wrap: wrap; justify-content: center; margin: 12px 0 0; font-family: var(--f-titulo); font-size: clamp(18px, 5vw, 24px); line-height: 1.32; }
.retrato-palavras > span { position: relative; padding: 0 9px; }
.retrato-palavras > span::before { content: "·"; position: absolute; left: -3px; color: var(--acento); }
.retrato-palavras > span.abre-linha::before { content: none; }
.retrato-eixos { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 8px 9px; max-width: 420px; margin: 16px auto 0; text-align: left; font-size: 11.5px; font-weight: 500; line-height: 1.2; color: var(--tinta-2); }
.re-eixo { display: contents; }
.re-dir { text-align: right; }
.re-linha { position: relative; height: 0; border-top: 1px dashed var(--tinta-3); }
.re-linha i { position: absolute; top: -5.5px; left: calc(var(--v) * 100%); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 3px #EFE6D2; animation: desliza 1s var(--ease) both; animation-delay: calc(700ms + var(--d, 0ms)); }
@keyframes desliza { from { left: 50%; opacity: 0; } }
.retrato-foco { margin: 14px 0 0; font-family: var(--f-titulo); font-style: italic; font-size: 17px; line-height: 1.38; }
/* como a marca quer ser vista: uma frase entre as réguas e o foco, em no máximo duas linhas */
.retrato-visao { margin: 14px auto 0; max-width: 24em; font-family: var(--f-titulo); font-style: italic; font-size: 16px; line-height: 1.34; text-wrap: balance; }
.retrato-visao-t { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.retrato-visao .rotulo, .retrato-foco .rotulo { margin-bottom: 2px; font-family: var(--f-texto); font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta-2); }
.retrato-vazio { margin: 14px 0 0; font-family: var(--f-titulo); font-style: italic; font-size: 17px; color: var(--tinta-2); }
.retrato-obrigado { align-self: stretch; flex: none; padding: 20px 22px calc(22px + var(--seguro-b)); background: var(--creme); color: var(--tinta); text-align: center; box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.6); }
.obrigado-cursiva { margin: 0; font-family: var(--f-cursiva); font-size: 34px; line-height: 1.15; color: #571313; }
.obrigado-t { margin: 2px auto 0; max-width: 22em; font-family: var(--f-titulo); font-weight: 400; font-size: clamp(21px, 5.8vw, 30px); line-height: 1.2; text-wrap: balance; }
.obrigado-sub { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--tinta-2); }
.retrato-obrigado .btn-claro { margin-top: 14px; border-color: var(--tinta-4); color: var(--tinta); }
.retrato-obrigado .btn-claro:hover { border-color: var(--tinta-3); background: var(--tinta-5); }
/* a renda se abre em volta do cartão (animação no .retrato-renda::before) */
@keyframes brota { from { clip-path: inset(42% 36% 42% 36%); opacity: 0; } 30% { opacity: 1; } to { clip-path: inset(-60px); opacity: 1; } }

/* ---------------- erro ---------------- */
.cena-erro .et-pe { border-top: 0; padding-top: 0; }
.sem-js { position: relative; z-index: 5; max-width: 30em; margin: 40px auto; padding: 0 16px; font-family: var(--f-titulo); font-size: 20px; text-align: center; }

/* ---------------- telas baixas (iPhone SE e parecidos) ---------------- */
@media (max-height: 700px) {
  :root { --pendura: 16px; --cab: 40px; }
  .topo { row-gap: 8px; }
  .acoes { padding-top: 6px; padding-bottom: calc(10px + var(--seguro-b)); }
  .et-perg { font-size: 22px; }
  .et-perg-longa { font-size: 19px; }
  .et-corpo > .campo, .et-corpo > .campo-grupo { margin-top: 13px; }
  .et-corpo { padding-bottom: 14px; }
  .campo-grupo { gap: 9px; }
  .campo-linha { padding: 15px 0 5px; margin-top: -11px; }
  .et-ajuda { margin-top: 4px; }
  .regua { height: 44px; margin: -4px 0; }
  .opcao { min-height: 44px; padding-top: 7px; padding-bottom: 7px; }
  .meta-passos { gap: 2px; }
  .meta-passos li { font-size: 12.5px; line-height: 1.36; }
  .campo-meta.com-painel .caminhos { gap: 5px; }
  .campo-meta.com-painel .meta-pe { margin-top: 5px; }
  .caminho-painel { margin-top: 5px; padding: 7px 10px 8px; }
  .meta-id { padding-top: 4px; padding-bottom: 4px; }
  .cap-cursiva { font-size: 34px; }
  .inicio-texto { padding-top: 34px; }
  .lead { font-size: 16px; }
  .carimbo { width: 124px; height: 124px; }
  .retrato-renda { max-width: 400px; padding: 40px 36px 42px 40px; }
  .retrato-renda::before { border-width: 40px 36px 42px 40px; }
  .retrato-cartao { padding: 16px 12px 16px; }
  .retrato-palavras { margin-top: 8px; font-size: 18px; }
  .retrato-eixos { margin-top: 10px; gap: 6px 8px; }
  .retrato-foco { margin-top: 8px; font-size: 16px; }
  .retrato-visao { margin-top: 8px; font-size: 15px; line-height: 1.28; }
  .cena-retrato .retrato-moldura { padding-top: 4px; padding-bottom: 14px; }
  .retrato-obrigado { padding-top: 14px; padding-bottom: calc(14px + var(--seguro-b)); }
  .obrigado-cursiva { font-size: 30px; }
  .retrato-obrigado .btn-claro { margin-top: 10px; min-height: 42px; }
}

/* ---------------- teclado aberto no celular ---------------- */
/* a etiqueta encolhe até a parte visível da tela; a pergunta fica presa no topo dela, para a cliente
   escrever vendo o que foi perguntado, e o campo longo fica com 3 linhas (o texto rola dentro dele) */
.com-teclado .et-perg { position: sticky; top: -2px; z-index: 1; margin: -2px -18px 0; padding: 2px 18px 7px; font-size: 19px; transition: box-shadow 0.2s; }
/* rolou: a pergunta ganha o mesmo papel de linho por baixo, para o texto passar por trás dela */
.com-teclado .et-corpo.mais-acima .et-perg { background-color: var(--papel); background-image: url(img/linho.webp); background-size: 120px; background-blend-mode: multiply; box-shadow: 0 8px 8px -8px rgba(46, 9, 9, 0.2); }
.com-teclado .et-corpo.mais-acima { -webkit-mask-image: none; mask-image: none; }
.com-teclado .et-corpo.mais-acima.mais-abaixo, .com-teclado .et-corpo.mais-abaixo { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), rgba(0, 0, 0, 0.08)); mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), rgba(0, 0, 0, 0.08)); }
.com-teclado .campo-pauta { min-height: calc(var(--lh) * 3 + 4px); }
.com-teclado .etiqueta { --cab: 36px; }

/* ---------------- tablet ---------------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; --furo: 24px; --cab: 48px; --pendura: 30px; }
  .etiqueta { --ch: 26px; }
  .et-topo { left: 32px; right: 32px; top: calc(var(--furo) - 11px); height: 22px; }
  .et-num { font-size: 19px; }
  .et-cap { font-size: 10.5px; }
  .et-corpo { padding: 4px 36px 30px; }
  .et-perg { font-size: 29px; }
  .et-perg-longa { font-size: 25px; }
  .et-ajuda { font-size: 14.5px; }
  .et-corpo > .campo, .et-corpo > .campo-grupo { margin-top: 22px; }
  .ilhos { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .papel, .fantasma { -webkit-mask: radial-gradient(circle at 50% var(--furo), transparent 8px, #000 8.5px); mask: radial-gradient(circle at 50% var(--furo), transparent 8px, #000 8.5px); }
  .ilhos { background: radial-gradient(circle at 42% 34%, rgba(255, 250, 235, 0.55) 0 1.6px, transparent 3px) 3px 1px / 100% 100% no-repeat, radial-gradient(circle, transparent 0 8px, rgba(20, 8, 2, 0.55) 8.3px 9px, var(--fio) 9.8px, var(--fio-2) 12.2px, rgba(20, 8, 2, 0.55) 13.6px, transparent 14.2px); }
  .topo-logo { height: 28px; }
  .inicio-texto { padding: 44px 40px 30px; }
  .ficha { padding: 40px 44px 44px; }
  .retrato-renda { padding: 66px 60px 68px 66px; }
  .retrato-renda::before { border-width: 66px 60px 68px 66px; }
  .retrato-cartao { padding: 34px 32px 32px; }
  .meta-id { padding-left: 16px; }
  .lista-linha { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) 34px; column-gap: 14px; }
  .lc-1 { grid-column: 3; grid-row: 1; }
  .lista-x { grid-column: 4; }
}
@media (pointer: fine) {
  .opcao { grid-template-columns: 20px 1fr 18px; }
  .opcao-n { display: block; }
  .opcoes.curtas .opcao { grid-template-columns: 20px 1fr 18px; }
}

/* ---------------- computador: metade foto, metade painel creme ---------------- */
@media (min-width: 1000px) {
  :root {
    --gutter: 56px;
    --sobre: #2E0909;
    --sobre-2: rgba(46, 9, 9, 0.74);
    --sobre-3: rgba(46, 9, 9, 0.24);
    --papel: #F1E7D1;
    --pendura: 34px;
  }
  .fundo { right: 50%; }
  .veu { background: linear-gradient(to bottom, rgba(14, 5, 3, 0.5), rgba(14, 5, 3, 0) 150px), linear-gradient(to top, rgba(14, 5, 3, 0.72), rgba(14, 5, 3, 0.35) 30%, rgba(14, 5, 3, 0) 58%); }
  .veu::after { display: none; }
  .app { left: 50%; background: var(--creme); box-shadow: -1px 0 0 rgba(46, 9, 9, 0.12); }
  .app::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 30%, rgba(255, 255, 255, 0.35), transparent 60%); }
  .topo { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "linha dir"; column-gap: 28px; padding: 34px var(--gutter) 0; }
  .topo-logo { position: fixed; z-index: 4; left: 44px; top: 32px; height: 40px; }
  .topo-cap, .salvo { text-shadow: none; }
  .linha-base { background: repeating-linear-gradient(90deg, var(--tinta-4) 0 6px, transparent 6px 10px); }
  .linha-feita { background: repeating-linear-gradient(90deg, var(--cheio) 0 8px, transparent 8px 11px); height: 1.8px; }
  .linha-nos .no { background: var(--creme); border-color: var(--tinta-4); }
  .linha-nos .no.feito { background: var(--cheio); border-color: var(--cheio); }
  .cordao { background: repeating-linear-gradient(-58deg, var(--fio) 0 1.8px, var(--fio-2) 1.8px 3.2px); }
  .etiqueta { max-width: 540px; filter: drop-shadow(0 1px 1px rgba(60, 20, 5, 0.22)) drop-shadow(0 16px 26px rgba(60, 20, 5, 0.2)); }
  .cena-pergunta { justify-content: center; padding-bottom: max(12px, 7vh); }
  /* o nome da parte fica na foto, como nas páginas da apresentação */
  .lado { display: block; position: absolute; z-index: 2; left: 52px; right: 52px; bottom: 50px; color: var(--creme); text-shadow: 0 1px 22px rgba(10, 3, 1, 0.4); }
  .lado > * { animation: aparece 0.7s var(--ease) both; }
  .lado-cursiva { margin: 0; font-family: var(--f-cursiva); font-size: 52px; line-height: 1.1; }
  .lado-titulo { margin: 0; font-family: var(--f-titulo); font-weight: 400; font-size: clamp(52px, 5.2vw, 78px); line-height: 0.96; letter-spacing: 0.005em; text-transform: uppercase; text-wrap: balance; font-variation-settings: "SOFT" 0, "WONK" 0; }
  .lado-sub { margin: 14px 0 0; font-family: var(--f-titulo); font-style: italic; font-weight: 300; font-size: 23px; line-height: 1.3; }
  .acoes { padding: 14px var(--gutter) 34px; gap: 6px; }
  .acoes-vazio { width: 46px; }
  .btn-voltar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--tinta-4); }
  .btn-voltar:hover { border-color: var(--tinta-3); background: var(--tinta-5); }
  .btn-pular { color: var(--tinta-2); text-decoration-color: var(--tinta-4); text-shadow: none; }
  .btn-seguir { background: var(--cheio); color: var(--sobre-cheio); box-shadow: 0 1px 1px rgba(46, 9, 9, 0.18), 0 12px 22px -12px rgba(46, 9, 9, 0.55); }
  .acoes-dica { display: block; order: 5; margin: 0 0 0 14px; font-size: 12px; font-weight: 500; color: var(--tinta-suave); white-space: nowrap; }
  .acoes-dir .acoes-dica { order: -1; margin: 0 10px 0 0; }
  .aviso-rede { left: 75%; width: calc(50% - 2 * var(--gutter)); bottom: 108px; box-shadow: 0 0 0 1px var(--tinta-4), 0 12px 24px -12px rgba(0, 0, 0, 0.35); }
  :focus-visible { outline-color: var(--acento); }
  .topo :focus-visible, .acoes :focus-visible, .cena-capitulo :focus-visible, .retrato-obrigado :focus-visible { outline-color: var(--acento); }

  /* abertura: o retrato fica na foto, o texto no painel */
  .cena-inicio { justify-content: center; min-height: 100%; margin: 0; padding: 0 0 36px; }
  .inicio-retrato { position: fixed; z-index: 3; left: 0; top: 0; width: 50vw; height: 100vh; margin: 0; display: grid; place-items: center; }
  .inicio-retrato img { position: static; width: min(80%, 76vh); height: auto; }
  .inicio-texto { padding: 0; background: none; box-shadow: none; max-width: 500px; }
  .titulo-grande { font-size: clamp(48px, 4.6vw, 66px); }
  .inicio-marca { font-size: 26px; margin-top: 6px; }
  .lead { font-size: 21px; margin-top: 16px; }
  .inicio-info { font-size: 15px; margin-top: 20px; padding-top: 16px; }
  .assina { font-size: 15px; }
  .assinatura { font-size: 36px; margin-top: 2px; }
  .inicio-cta { margin-top: 22px; }

  /* abertura de parte: na foto o nome; no painel o sumário das perguntas */
  .cena-capitulo { justify-content: center; max-width: 520px; margin: 0 auto; padding: 0 0 10px; text-shadow: none; }
  .cap-cabeca { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cap-parte { display: block; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acento); }
  .cap-intro { margin-top: 12px; font-size: 16px; color: var(--tinta-2); }
  .cap-sumario { display: block; margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--tinta-4); }
  .cap-sumario li { display: grid; grid-template-columns: 58px 1fr; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--tinta-4); font-size: 14.5px; line-height: 1.38; color: var(--tinta); }
  .cap-n { font-family: var(--f-titulo); font-style: italic; font-size: 15px; color: var(--acento); font-variant-numeric: oldstyle-nums; }
  .cap-meta { margin-top: 18px; padding-top: 0; border-top: 0; color: var(--tinta-2); }

  /* revisão e retrato */
  .cena-revisao { padding: 18px 0 24px; }
  .ficha { box-shadow: 0 1px 2px rgba(60, 20, 5, 0.16), 0 24px 50px -30px rgba(60, 20, 5, 0.45); }
  .cena-retrato { justify-content: center; align-items: flex-start; margin: 0; padding: 0 0 24px; }
  .cena-retrato .retrato-moldura { position: fixed; z-index: 3; left: 0; top: 0; width: 50vw; height: 100vh; padding: 0; display: grid; place-items: center; }
  .retrato-renda { width: min(84%, 560px); max-width: none; padding: 74px 68px 78px 74px; }
  .retrato-renda::before { border-width: 74px 68px 78px 74px; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5)); }
  .retrato-obrigado { align-self: auto; max-width: 460px; padding: 0; background: none; box-shadow: none; text-align: left; }
  .obrigado-t { margin-left: 0; }
  .obrigado-cursiva { font-size: 46px; color: #571313; }
  .obrigado-t { font-size: 34px; }
  .obrigado-sub { font-size: 15px; color: var(--tinta-2); }
}
@media (min-width: 1000px) and (max-height: 760px) {
  .inicio-retrato img { width: min(78%, 70vh); }
  .lado-titulo { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
