/* Sobre · "a etiqueta do cuidado"
   Uma cesta real nasce dentro do arco do logo (o sol), os raios se abrem,
   a etiqueta desce presa por um fio e o checklist é escrito à mão, item por item.
   Sem JS ou com movimento reduzido, tudo aparece pronto (estado final). */
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&display=swap");

.cuidado {
  --mao: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --papel: #FFF8EC;
  margin: 0 auto; width: min(460px, 100%);
}
.cuidado__palco {
  position: relative; width: 100%; aspect-ratio: 100 / 118;
  container-type: inline-size;
}

/* Sol: raios dourados e arco de bronze, como no logo */
.cuidado__sol, .cuidado__frente {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
}
.cuidado__raios line { stroke: var(--sol); stroke-width: 1.5; stroke-linecap: round; }
.cuidado__disco { fill: none; stroke: var(--bronze); stroke-width: 1.4; stroke-linecap: round; }

/* Arco com a cesta (mesma moldura das fotos do site) */
.cuidado__arco {
  position: absolute; left: 14%; width: 66%; top: 18.64%; bottom: 8.47%;
  border-radius: 999px 999px 22px 22px; overflow: hidden;
  border: 1.6cqi solid var(--branco); background: var(--areia);
  box-shadow: 0 30px 50px -28px rgba(15,59,68,.55);
}
.cuidado__arco img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* Frente: fio da etiqueta e ondas turquesa cortando a base do arco */
.cuidado__frente { z-index: 2; }
.cuidado__fio { fill: none; stroke: var(--bronze); stroke-width: .55; stroke-linecap: round; }
.cuidado__no { fill: var(--bronze); }
.cuidado__onda { fill: none; stroke: var(--agua); stroke-width: 1.3; stroke-linecap: round; }
.cuidado__onda--2 { stroke: var(--agua-funda); stroke-width: 1; opacity: .55; }

/* Etiqueta de papel, escrita à mão */
.cuidado__etiqueta {
  --gira: 5deg;
  position: absolute; z-index: 3; left: 52.5cqi; top: 62cqi; width: 46cqi;
  padding: 8.6cqi 4cqi 4.6cqi 4.6cqi;
  color: var(--mar); font-family: var(--mao); line-height: 1.05;
  transform: rotate(var(--gira)); transform-origin: 50% 3.6cqi;
  filter: drop-shadow(0 10px 14px rgba(15,59,68,.22)) drop-shadow(0 1px 1px rgba(15,59,68,.18));
}
.cuidado__etiqueta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, #FFFDF8, var(--papel) 70%);
  clip-path: polygon(22% 0, 78% 0, 100% 12cqi, 100% 100%, 0 100%, 0 12cqi);
  border-radius: 0 0 2.4cqi 2.4cqi;
}
.cuidado__ilhos {
  position: absolute; left: 50%; top: 3.6cqi; width: 3.4cqi; height: 3.4cqi; translate: -50% -50%;
  border-radius: 50%; background: var(--nevoa); box-shadow: 0 0 0 .9cqi var(--bronze), inset 0 1px 2px rgba(15,59,68,.35);
}
.cuidado__abre { display: block; font-size: 4.3cqi; color: var(--bronze); font-weight: 500; padding-bottom: 1.4cqi; border-bottom: 1px dashed rgba(166,112,42,.4); }
.cuidado__lista { list-style: none; margin: 1.2cqi 0 0; padding: 0; }
.cuidado__lista li {
  display: grid; grid-template-columns: 4.6cqi 1fr; gap: 1.6cqi; align-items: center;
  font-size: 4.8cqi; font-weight: 500; min-height: 6.8cqi; white-space: nowrap;
}
.cuidado__lista svg { width: 4.6cqi; height: 4.6cqi; overflow: visible; }
.cuidado__lista rect { fill: none; stroke: var(--mar-2); stroke-width: 1.6; opacity: .55; }
.cuidado__lista path { fill: none; stroke: var(--agua-funda); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.cuidado__lista span, .cuidado__assina { display: block; }
.cuidado__assina { margin-top: 2.2cqi; font-size: 5.4cqi; color: var(--bronze); text-align: right; padding-right: 1cqi; }
.cuidado__assina b { font-weight: 700; color: var(--agua-funda); }
.cuidado__traco { display: block; width: 52%; height: 2.4cqi; margin: .4cqi 0 0 auto; overflow: visible; }
.cuidado__traco path { fill: none; stroke: var(--agua); stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Animação única, orquestrada (js/sobre.js põe .is-anima e depois .is-viva) ----------
   0s raios e arco → .3s a cesta nasce → 1s fio → 1.2s etiqueta balança e assenta
   → 2s, 2.6s, 3.2s cada linha é escrita e marcada → 3.9s assinatura → 4.4s traço */
@media (prefers-reduced-motion: no-preference) {
  .cuidado.is-anima * { animation-play-state: paused !important; }
  .cuidado.is-anima.is-viva * { animation-play-state: running !important; }

  .cuidado.is-anima .cuidado__raios line,
  .cuidado.is-anima .cuidado__disco,
  .cuidado.is-anima .cuidado__fio,
  .cuidado.is-anima .cuidado__onda,
  .cuidado.is-anima .cuidado__lista path,
  .cuidado.is-anima .cuidado__traco path { stroke-dasharray: 1 1; }

  .cuidado.is-anima .cuidado__raios line { animation: cuidado-traca .7s calc(.35s + var(--i) * .05s) cubic-bezier(.2,.7,.2,1) both; }
  .cuidado.is-anima .cuidado__disco { animation: cuidado-traca 1.1s .05s cubic-bezier(.3,.6,.2,1) both; }
  .cuidado.is-anima .cuidado__arco { animation: cuidado-nasce 1.1s .25s cubic-bezier(.2,.8,.2,1) both; }
  .cuidado.is-anima .cuidado__onda { animation: cuidado-traca 1.2s .5s ease-out both; }
  .cuidado.is-anima .cuidado__onda--2 { animation-delay: .7s; }
  .cuidado.is-anima .cuidado__no { animation: cuidado-surge .3s .95s ease-out both; }
  .cuidado.is-anima .cuidado__fio { animation: cuidado-traca .5s 1s ease-in-out both; }
  .cuidado.is-anima .cuidado__etiqueta { animation: cuidado-balanca 1.5s 1.2s cubic-bezier(.3,.6,.3,1) both; }

  .cuidado.is-anima .cuidado__abre,
  .cuidado.is-anima .cuidado__lista span,
  .cuidado.is-anima .cuidado__assina { animation: cuidado-escreve .6s steps(14, end) both; }
  .cuidado.is-anima .cuidado__abre { animation-delay: 1.85s; animation-duration: .5s; }
  .cuidado.is-anima li:nth-child(1) span { animation-delay: 2.35s; }
  .cuidado.is-anima li:nth-child(2) span { animation-delay: 3s; animation-duration: .7s; }
  .cuidado.is-anima li:nth-child(3) span { animation-delay: 3.75s; }
  .cuidado.is-anima .cuidado__lista path { animation: cuidado-traca .3s ease-out both; }
  .cuidado.is-anima li:nth-child(1) path { animation-delay: 2.9s; }
  .cuidado.is-anima li:nth-child(2) path { animation-delay: 3.65s; }
  .cuidado.is-anima li:nth-child(3) path { animation-delay: 4.3s; }
  .cuidado.is-anima .cuidado__assina { animation-delay: 4.5s; animation-duration: .7s; }
  .cuidado.is-anima .cuidado__traco path { animation: cuidado-traca .5s 5.15s ease-out both; }
}
@keyframes cuidado-traca { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cuidado-surge { from { opacity: 0; scale: .2; } }
@keyframes cuidado-nasce {
  from { opacity: 0; translate: 0 9%; clip-path: inset(100% 0 0 0 round 999px 999px 22px 22px); }
  to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0 round 999px 999px 22px 22px); }
}
@keyframes cuidado-balanca {
  0% { opacity: 0; transform: translateY(-6cqi) rotate(-34deg); }
  18% { opacity: 1; }
  42% { transform: translateY(0) rotate(14deg); }
  64% { transform: rotate(-2deg); }
  82% { transform: rotate(7.5deg); }
  100% { transform: rotate(var(--gira)); }
}
@keyframes cuidado-escreve { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -2% -20% 0); } }

@media (max-width: 960px) {
  .cuidado { width: min(420px, 100%); }
}
