/* ============================================================================
   refinements.css — refino incremental da landing (Vendi Criativa).
   Carregado DEPOIS do <style> inline do lp.php, então sobrescreve por cascata
   sem reescrever o original. Reaproveita os tokens do :root (--rosa, --cream…).
   Cada bloco corresponde a uma ETAPA do LP_REDESIGN_PLAN.md.
   ========================================================================== */

/* ===========================================================================
   ETAPA 1 — HERO
   =========================================================================== */

/* glow local atrás do device, somando ao mesh global do body */
.hero-visual {
  max-width: 340px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -18% -8% -18%;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(255, 79, 154, .28), transparent 70%),
    radial-gradient(45% 40% at 80% 80%, rgba(224, 161, 60, .18), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
/* levanta só o celular acima do glow; os toasts e o selo "ao vivo" continuam
   com position:absolute (não usar regra coringa em > * senão eles caem no fluxo). */
.hero-visual .device { position: relative; z-index: 1; }

/* ---- device frame realista (celular) com screenshot real da loja ---- */
.device {
  position: relative;
  width: 100%;
  margin-inline: auto;
  padding: 10px;
  border-radius: 46px;
  background:
    linear-gradient(155deg, #3a2630 0%, #20131a 55%, #2b1a23 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .18) inset,
    0 -2px 6px rgba(0, 0, 0, .35) inset,
    var(--shadow);
  animation: floatY 5.5s ease-in-out infinite;
}
/* notch / ilha superior */
.device::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  z-index: 3;
}
.device-screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 540 / 1200;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* brilho diagonal sutil sobre a tela (vidro) */
.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .22) 0%, transparent 28%, transparent 100%);
  pointer-events: none;
}

/* ---- headline: underline orgânico (SVG curvo) sob "profissional" ---- */
.hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--rosa-deep);
  -webkit-text-fill-color: currentColor;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.16em;
  height: .26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 40 4 80 4 110 9 S 170 16 197 6' stroke='%23ff4f9a' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hlDraw .7s cubic-bezier(.2, .7, .2, 1) .55s forwards;
}

/* ---- badges do hero: ícones SVG no lugar dos emojis ---- */
.hero .bullets div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero .bullets div svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--rosa);
}

/* ---- entrada em sequência dos toasts (refina o floatIn existente) ---- */
.float-toast {
  animation: toastIn .7s cubic-bezier(.2, .7, .2, 1) both;
}
.float-toast.t-top { animation-delay: .9s; }
.float-toast.t-bot { animation-delay: 1.25s; }
/* float contínuo bem leve depois da entrada */
.hero-visual .live-badge { animation: pulse 2.4s 1.6s infinite; }

@keyframes hlDraw { to { transform: scaleX(1); } }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- mobile: device um pouco menor, sem encostar nas bordas ---- */
@media (max-width: 560px) {
  .hero-visual { max-width: 280px; }
  .device { border-radius: 40px; }
  .device-screen { border-radius: 32px; }
}

/* ---- respeita quem desativou animações ---- */
@media (prefers-reduced-motion: reduce) {
  .device { animation: none; }
  .float-toast { animation: none; opacity: 1; transform: none; }
  .hero h1 .hl::after { animation: none; transform: scaleX(1); }
}

/* ===========================================================================
   ETAPA 2 — PRICING (fazer a oferta saltar)
   =========================================================================== */

/* borda gradiente animada + sombra mais profunda (funciona com overflow:hidden:
   o gradiente vive na própria borda via padding-box/border-box, não fora dela) */
.offer {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, var(--rosa) 0%, var(--gold) 35%, var(--rosa-deep) 70%, var(--rosa) 100%) border-box;
  background-size: 100% 100%, 250% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 46px 100px -34px rgba(214, 38, 111, .55);
  animation: offerBorder 7s linear infinite;
}
@keyframes offerBorder { to { background-position: 0 0, -250% 0; } }

/* fita diagonal no canto */
.offer .ribbon {
  position: absolute;
  top: 20px;
  right: -52px;
  z-index: 4;
  transform: rotate(45deg);
  background: linear-gradient(90deg, var(--gold), #c9821f);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 60px;
  box-shadow: 0 8px 18px -8px rgba(154, 107, 22, .8);
}

/* risco dramático no "De R$ 397" — traço grosso colorido, levemente inclinado */
.price .from {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  font-size: 18px;
}
.price .from::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 52%;
  height: 3px;
  border-radius: 2px;
  background: var(--rosa);
  transform: rotate(-7deg);
}
/* destaque maior no valor à vista */
.price .vista {
  font-size: 18px;
  margin-top: 8px;
}
.price .vista strong, .price .vista b { color: var(--rosa-deep); }

/* checks da lista em círculo com leve gradiente/realce */
.olist .mk {
  background: linear-gradient(150deg, var(--rosa), var(--rosa-deep));
  box-shadow: 0 4px 10px -4px rgba(214, 38, 111, .7);
}

@media (prefers-reduced-motion: reduce) {
  .offer { animation: none; }
}
@media (max-width: 560px) {
  .offer .ribbon { font-size: 10px; padding: 6px 56px; right: -54px; }
}

/* ===========================================================================
   ETAPA 4 — FEATURES (bento grid)
   =========================================================================== */
.feat-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
}
/* cards "grandes" ocupam 2 colunas e ganham layout vertical + destaque */
.feat.feat--big {
  grid-column: span 2;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(160deg, #fff, var(--cream-2));
  border-color: var(--blush-2);
}
.feat.feat--big .e {
  width: 58px;
  height: 58px;
  font-size: 28px;
}
.feat.feat--big h3 { font-size: 20px; }
.feat.feat--big p { font-size: 15.5px; }
/* faux-preview: fileira de "chips" decorativos dando textura de UI ao card grande */
.feat.feat--big .preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.feat.feat--big .preview span {
  font-size: 12px;
  font-weight: 800;
  color: var(--rosa-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ===========================================================================
   ETAPA 3 — PROVA SOCIAL (avatares prontos para foto real)
   =========================================================================== */
.tcard .av { overflow: hidden; }
.tcard .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ===========================================================================
   ETAPA 5 — MICROINTERAÇÕES + MOBILE POLISH
   =========================================================================== */
/* lift padronizado nos cards ao hover */
.feat, .tcard, .step, .niche {
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .feat:hover, .tcard:hover, .step:hover, .niche:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}
/* shimmer sutil e periódico no CTA principal */
.btn-lg { position: relative; overflow: hidden; }
.btn-lg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine {
  0%, 65% { left: -60%; }
  85%, 100% { left: 130%; }
}
/* touch targets confortáveis */
.btn, .nav a, .stickybar .btn, .faq summary { min-height: 44px; }

/* foco visível acessível (teclado) */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--rosa);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-lg::before { animation: none; display: none; }
  .feat, .tcard, .step, .niche { transition: none; }
}

/* bento volta a 1 coluna no mobile (anula o span 2) */
@media (max-width: 920px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat.feat--big { grid-column: auto; }
}

/* no mobile, deixa as headings quebrarem naturalmente: alguns <br> forçados
   (ex.: "Se você vende pelo WhatsApp,") estouravam a largura em telas ≤390px
   e, com overflow-x:hidden, a palavra era cortada. Anular o <br> resolve sem
   tocar na copy. */
/* a barra fixa inferior (.stickybar) era ~10px mais larga que a viewport em
   360px porque o texto .p não encolhia (min-width:auto do flex), gerando
   overflow horizontal que "empurrava" a página toda. Blindamos a barra e
   deixamos o texto truncar. */
.stickybar {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  left: 0;
  right: auto;
  overflow: hidden;
}
.stickybar .p { min-width: 0; }
.stickybar .p, .stickybar .p small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stickybar .btn { flex: none; }
@media (max-width: 380px) {
  .stickybar .btn { padding: 13px 16px; }
}

@media (max-width: 560px) {
  h1 br, h2 br { display: none; }
  /* a eyebrow é uma linha em maiúsculas com letter-spacing largo + tracinhos
     laterais; em telas estreitas ela passava de 100% e, com overflow-x:hidden,
     cortava a seção. Deixar quebrar e reduzir o tracking resolve. */
  .sec-head .eyebrow, .center > .eyebrow {
    flex-wrap: wrap;
    justify-content: center;
  }
  .eyebrow { letter-spacing: .12em; }
}
