/* ==========================================================
   Achadinhos da Lara — visual próprio da página /achadinhos
   (não usa o tema do resto do site). Só CSS, leve, e todos os
   efeitos param para quem pede menos movimento no aparelho.
   ========================================================== */

:root {
  --rosa: #F9C5D5;
  --pessego: #FDE2D6;
  --rosa-forte: #E83E8C;
  --dourado: #C9A227;
  --verde-whats: #25D366;
  --texto: #2B1620;
  --texto-suave: #6A3049;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh; min-height: 100dvh;
  font-family: "Poppins", "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--texto);
  background-color: var(--rosa);
  overflow-x: hidden;
}

/* ---------- brilhos espalhados no fundo ---------- */
/* fundo em camada fixa própria: o degradê não é redesenhado ao rolar (iPhone e Android) */
.brilhos { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(165deg, var(--rosa) 0%, var(--pessego) 100%); }
.brilho { position: absolute; color: #fff; opacity: 0.75; animation: piscar 3.2s ease-in-out infinite; }
.brilho:nth-child(1) { top: 7%;  left: 10%; width: 16px; animation-delay: 0s; }
.brilho:nth-child(2) { top: 14%; right: 12%; width: 22px; animation-delay: .8s; }
.brilho:nth-child(3) { top: 42%; left: 6%;  width: 12px; animation-delay: 1.6s; }
.brilho:nth-child(4) { top: 58%; right: 7%; width: 18px; animation-delay: .4s; }
.brilho:nth-child(5) { bottom: 14%; left: 16%; width: 20px; animation-delay: 2.2s; }
.brilho:nth-child(6) { bottom: 8%; right: 20%; width: 12px; animation-delay: 1.2s; color: var(--dourado); }
@keyframes piscar { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: .9; transform: scale(1); } }

/* ---------- conteúdo ---------- */
.bio {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding:
    calc(clamp(24px, 6vh, 48px) + env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    calc(clamp(24px, 5vh, 40px) + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow-x: clip; /* efeitos do botão nunca criam rolagem para os lados (Safari do iPhone) */
}

.bio__photo {
  width: clamp(132px, 42vw, 184px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block;
  border: 4px solid #fff; background: #fff;
  box-shadow: 0 0 0 6px rgba(232, 62, 140, 0.14), 0 10px 32px rgba(232, 62, 140, 0.38);
}

.bio__name { margin-top: clamp(12px, 2.4vh, 20px); line-height: 1; display: flex; flex-direction: column; align-items: center; }
.bio__name-top {
  font-family: "Poppins", "Nunito", ui-rounded, system-ui, sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 9.6vw, 2.6rem); letter-spacing: -0.01em; color: #fff;
  /* contorno rosa forte + sombra (mais compatível que text-stroke) */
  text-shadow:
    -2px -2px 0 var(--rosa-forte), 2px -2px 0 var(--rosa-forte), -2px 2px 0 var(--rosa-forte), 2px 2px 0 var(--rosa-forte),
    0 -2px 0 var(--rosa-forte), 0 2px 0 var(--rosa-forte), -2px 0 0 var(--rosa-forte), 2px 0 0 var(--rosa-forte),
    0 6px 14px rgba(232, 62, 140, 0.35);
}
.bio__name-script {
  margin-top: 2px; display: inline-flex; align-items: center; gap: 6px;
  font-family: "Great Vibes", "Brush Script MT", cursive; font-weight: 400;
  font-size: clamp(2.1rem, 10.6vw, 2.9rem); color: var(--dourado); text-shadow: 0 2px 6px rgba(255, 255, 255, 0.7);
}
.bio__spark { color: var(--dourado); flex: 0 0 auto; }

.bio__desc { margin-top: 12px; display: grid; gap: 6px; max-width: 400px; }
.nowrap { white-space: nowrap; }
.bio__desc-main { color: var(--texto-suave); font-size: clamp(0.95rem, 4.2vw, 1.08rem); font-weight: 700; }
.bio__desc-sub { color: var(--texto-suave); font-size: clamp(0.86rem, 3.7vw, 0.98rem); font-weight: 500; line-height: 1.45; }
.bio__aviso {
  margin-top: 16px; max-width: 340px; color: var(--texto-suave); font-size: 0.86rem; font-weight: 500; line-height: 1.45;
  padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.55);
}

.bio__links { width: 100%; margin-top: clamp(20px, 3.6vh, 32px); display: grid; gap: 14px; }

/* ---------- botões ---------- */
.bio-link {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 58px; padding: 12px 20px; border-radius: 999px;
  background: #fff; color: var(--texto); border: 1px solid var(--dourado);
  font-weight: 700; font-size: 1rem; line-height: 1.25; text-decoration: none;
  box-shadow: 0 6px 18px rgba(232, 62, 140, 0.2);
  transition: transform .12s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.bio-link:active { transform: scale(0.97); }
.bio-link:focus-visible { outline: 3px solid var(--rosa-forte); outline-offset: 4px; }
@media (hover: hover) { .bio-link:hover { box-shadow: 0 8px 24px rgba(232, 62, 140, 0.3); } }
.bio-link__icon { flex: 0 0 auto; color: var(--verde-whats); }
/* texto sempre centralizado; se precisar quebrar, as duas linhas ficam equilibradas */
.bio-link__text { min-width: 0; position: relative; z-index: 1; text-align: center; text-wrap: balance; }

/* principal: maior; a letra acompanha a tela (uma linha a partir de 360px) */
.bio-link--destaque {
  min-height: clamp(62px, 17vw, 74px); padding: 12px 16px; gap: 10px;
  font-size: clamp(0.82rem, 4.1vw, 1.1rem);
  /* "respira" com a propriedade scale (separada de transform): o toque continua afundando */
  animation: respirar 2.8s ease-in-out infinite;
}
@keyframes respirar { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }

/* onda rosa saindo do contorno (só transform e opacidade: leve até em celular simples) */
.bio-link--destaque::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none;
  border: 2px solid var(--rosa-forte); opacity: 0;
  animation: onda 2.8s ease-out infinite;
}
@keyframes onda { 0% { transform: scale(1); opacity: .6; } 75%, 100% { transform: scale(1.05, 1.45); opacity: 0; } }

/* brilho dourado passando por dentro do botão */
.bio-link__shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.bio-link__shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 228, 140, 0.8) 50%, rgba(255, 255, 255, 0) 80%, transparent 100%);
  transform: translateX(-120%) skewX(-20deg); will-change: transform;
  animation: shimmer 2.8s ease-in-out infinite; animation-delay: .9s;
}
@keyframes shimmer { 0% { transform: translateX(-120%) skewX(-20deg); } 40%, 100% { transform: translateX(260%) skewX(-20deg); } }

/* ícone do WhatsApp dá uma balançadinha de tempos em tempos */
.bio-link--destaque .bio-link__icon { position: relative; z-index: 1; transform-origin: 50% 60%; animation: balancar 2.8s ease-in-out infinite; }
@keyframes balancar {
  0%, 58%, 100% { transform: rotate(0) scale(1); }
  64% { transform: rotate(-14deg) scale(1.14); }
  70% { transform: rotate(12deg) scale(1.14); }
  76% { transform: rotate(-8deg) scale(1.08); }
  82% { transform: rotate(0) scale(1); }
}

/* ---------- passo a passo quando o WhatsApp não abre (só em navegador de app) ---------- */
.app-guia {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(43, 22, 32, 0.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: calc(96px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
  animation: guiaEntra .25s ease-out both;
}
@keyframes guiaEntra { from { opacity: 0; } to { opacity: 1; } }
/* seta grande apontando para o ⋯ no canto de cima, à direita */
.app-guia__seta {
  position: absolute; top: calc(6px + env(safe-area-inset-top)); right: calc(14px + env(safe-area-inset-right));
  width: 92px; height: 92px; color: #fff; filter: drop-shadow(0 2px 6px rgba(232, 62, 140, 0.8));
  animation: apontarGuia 1.1s ease-in-out infinite;
}
@keyframes apontarGuia { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -6px); } }
.app-guia__card {
  width: 100%; max-width: 400px; padding: 20px 18px 16px; border-radius: 24px; text-align: left;
  background: #fff; border: 1px solid var(--dourado); box-shadow: 0 16px 40px rgba(43, 22, 32, 0.35);
}
.app-guia__titulo { font-weight: 800; font-size: clamp(1.02rem, 4.6vw, 1.15rem); color: var(--texto); margin-bottom: 14px; }
.app-guia__passos { list-style: none; display: grid; gap: 12px; }
.app-guia__passos li { display: flex; align-items: center; gap: 12px; font-size: clamp(0.95rem, 4.2vw, 1.05rem); line-height: 1.35; color: var(--texto); }
.app-guia__num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rosa-forte); color: #fff; font-weight: 800; font-size: 1rem;
}
.app-guia__pontos { display: inline-block; padding: 0 8px; border-radius: 8px; background: var(--rosa); font-size: 1.15em; line-height: 1.1; }
.app-guia__ok {
  margin-top: 18px; width: 100%; min-height: 50px; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--rosa-forte); color: #fff; font: inherit; font-weight: 800; font-size: 1rem;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.app-guia__copiar {
  display: block; margin: 10px auto 0; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--texto-suave); font: inherit; font-size: 0.84rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.app-guia__copiar.is-ok { text-decoration: none; background: var(--verde-whats); color: #fff; }
.app-guia__ok:active, .app-guia__copiar:active { transform: scale(0.97); }
.app-guia__ok:focus-visible, .app-guia__copiar:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; }

/* ---------- entrada: um elemento de cada vez ---------- */
.surge { animation: surgir .55s ease-out both; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes surgir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- tela bem estreita: menos espaço dentro do botão para o texto caber ---------- */
@media (max-width: 340px) {
  .bio-link--destaque { padding: 10px 12px; gap: 8px; letter-spacing: -0.01em; }
  .bio-link--destaque .bio-link__icon { width: 22px; height: 22px; }
}
/* tela mínima (menos de 300px): duas linhas juntinhas ao lado do ícone */
@media (max-width: 299px) {
  .bio-link--destaque .bio-link__text { max-width: 10em; }
}

/* ---------- tela baixa (celular deitado): menos espaço em cima ---------- */
@media (max-height: 520px) {
  .bio { padding-top: calc(16px + env(safe-area-inset-top)); }
  .bio__photo { width: 96px; }
  .bio__name-top { font-size: 1.7rem; }
  .bio__name-script { font-size: 1.9rem; }
  .bio__links { margin-top: 16px; }
}

/* ---------- menos movimento: tudo parado, tudo visível ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bio-link__shine, .bio-link--destaque::before { display: none; }
}
