/* ==========================================================
   BêBrinquê · Landing Page Grupo VIP
   Paleta extraída do logo e dos banners oficiais da marca
   ========================================================== */
:root {
  --teal: #2ed1e2;        /* "BêBrinquê" do logo */
  --teal-deep: #13a5b6;
  --sky: #58bfd1;         /* fundo Torre Montessori */
  --lilac: #848cbe;       /* ícone do logo */
  --lilac-deep: #5d659c;
  --pink: #eb5c8b;        /* fundo Triângulo Pikler */
  --pink-soft: #fbd3e1;
  --orange: #f8a140;      /* fundo Domê */
  --yellow: #fceb69;      /* fundo Gangorra */
  --wood: #e9c99a;

  --cream: #fff9ef;
  --ink: #3b3f63;         /* texto: lilás bem escuro, mais suave que preto */
  --ink-soft: #6a6e8f;
  --white: #fff;
  --error: #d6336c;
  --whats: #25d366;
  --whats-deep: #1ea952;

  --radius-lg: 32px;
  --radius: 16px;
  --shadow-card: 0 30px 60px -20px rgba(59, 63, 99, .28), 0 10px 20px -10px rgba(59, 63, 99, .12);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Gochi Hand", "Fredoka", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
figure { margin: 0; }

/* ---------- Seção única ---------- */
.vip {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}

.vip__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  grid-template-areas:
    "brand  action"
    "copy   action";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  padding: clamp(24px, 4vh, 44px) 0 24px;
}

.vip__brand { grid-area: brand; }
.logo { width: clamp(170px, 18vw, 230px); }

.vip__copy {
  grid-area: copy;
  align-self: center;
  padding: 24px 0;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--whats-deep);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px -8px rgba(37, 211, 102, .6);
  border: 2px solid rgba(37, 211, 102, .25);
}
.eyebrow svg { width: 22px; height: 22px; fill: var(--whats); }

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  color: var(--lilac-deep);
  text-wrap: balance;
}
.hl {
  position: relative;
  display: inline-block;
  color: var(--pink);
  white-space: nowrap;
}
.hl svg {
  position: absolute;
  left: -2%;
  bottom: -.12em;
  width: 104%;
  height: .32em;
  overflow: visible;
}
.hl path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 1s .6s cubic-bezier(.65, 0, .35, 1) forwards;
}
.hl { z-index: 0; }
.hl svg { z-index: -1; }

.lead {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 28px;
}
.lead strong { color: var(--ink); }

/* ---------- Benefícios ---------- */
.perks {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.perk {
  --c: var(--pink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--white);
  border-radius: 20px;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.35;
  box-shadow: 0 10px 24px -16px rgba(59, 63, 99, .35);
  border-bottom: 4px solid var(--c);
  transition: transform .25s ease;
}
.perk:hover { transform: translateY(-4px) rotate(-.6deg); }
.perk strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.perk--pink { --c: var(--pink); }
.perk--teal { --c: var(--teal); }
.perk--orange { --c: var(--orange); }
.perk__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 16%, white);
}
.perk__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--c); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--teal-deep); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Coluna de ação ---------- */
.vip__action {
  grid-area: action;
  position: relative;
  align-self: center;
  padding: 120px 0 70px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 7px solid var(--white);
  box-shadow: 0 20px 40px -18px rgba(59, 63, 99, .45);
  overflow: hidden;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble--tri   { width: 210px; height: 210px; top: 0;   right: -18px; background: var(--pink); }
.bubble--torre { width: 150px; height: 150px; bottom: 6px; left: -60px; background: var(--sky); animation-delay: -2.4s; }
.bubble--dome  { width: 118px; height: 118px; top: 30px; left: 0; background: var(--orange); animation-delay: -4.6s; }

.sticker {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 205px;
  margin: 0;
  padding: 16px 16px 20px;
  width: 128px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  line-height: 1.05;
  color: var(--white);
  background: var(--lilac);
  /* formato de coração, igual ao selo do banner oficial */
  clip-path: path("M64 118C30 96 0 74 0 42 0 18 18 0 40 0c11 0 19 5 24 13C69 5 77 0 88 0c22 0 40 18 40 42 0 32-30 54-64 76Z");
  height: 120px;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  animation: wiggle 5s ease-in-out infinite;
}

.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 38px);
  padding-top: clamp(44px, 5vw, 60px);
}
.card::before {
  /* fita de cores do Triângulo Pikler */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg,
    var(--teal) 0 20%, var(--lilac) 20% 40%, var(--pink) 40% 60%,
    var(--orange) 60% 80%, var(--yellow) 80% 100%);
}

/* ---------- Formulário ---------- */
.form__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.1;
  margin: 0 0 4px;
  color: var(--ink);
}
.form__title span { color: var(--teal-deep); }
.form__sub { margin: 0 0 20px; color: var(--ink-soft); font-size: .95rem; }

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-weight: 800;
  font-size: .88rem;
  margin: 0 0 6px 4px;
  color: var(--ink);
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* evita zoom no iOS */
  color: var(--ink);
  background: #f7f6fb;
  border: 2px solid #e7e6f1;
  border-radius: var(--radius);
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #a5a7bf; }
.field input:hover { border-color: #d6d5e6; }
.field input:focus {
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 209, 226, .2);
}
.field.is-invalid input {
  border-color: var(--error);
  background: #fff5f8;
}
.field.is-valid input { border-color: #9fdfb8; }
.field__error {
  display: block;
  min-height: 0;
  color: var(--error);
  font-size: .8rem;
  font-weight: 700;
  margin: 4px 0 0 4px;
}
.field__error:empty { display: none; }


.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  position: relative;
  width: 100%;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--whats);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--whats-deep), 0 16px 28px -10px rgba(37, 211, 102, .7);
  transition: transform .15s ease, box-shadow .15s ease, filter .2s;
  overflow: hidden;
}
.btn svg { width: 24px; height: 24px; fill: currentColor; }
.btn::after {
  /* brilho que passa pelo botão */
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.8s 1.5s ease-in-out infinite;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 8px 0 var(--whats-deep), 0 20px 30px -10px rgba(37, 211, 102, .7); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--whats-deep), 0 8px 16px -8px rgba(37, 211, 102, .7); }
.btn:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 3px; }
.btn[disabled] { cursor: progress; filter: saturate(.7); }
.btn.is-loading .btn__label::after {
  content: "";
  display: inline-block;
  width: 1em;
  animation: dots 1.2s steps(4) infinite;
  text-align: left;
}

.btn--ghost {
  background: var(--teal-deep);
  box-shadow: 0 6px 0 #0e7d8a;
  font-size: 1.05rem;
}
.btn--ghost:hover { box-shadow: 0 8px 0 #0e7d8a; }
.btn--ghost::after { display: none; }

.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: .8rem;
  color: var(--ink-soft);
  text-align: center;
}
.privacy svg {
  flex: none;
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
}

/* ---------- Sucesso ---------- */
.success { text-align: center; padding: 18px 0 6px; outline: none; }
.success__badge {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whats);
  box-shadow: 0 0 0 10px rgba(37, 211, 102, .15);
  animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.success__badge svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success__title { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 6px; color: var(--ink); }
.success__title span { color: var(--pink); }
.success p { color: var(--ink-soft); margin: 0 0 6px; }

/* ---------- Rodapé mínimo ---------- */
.vip__foot {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
  padding: 8px 16px 20px;
}
.vip__foot a { color: var(--teal-deep); font-weight: 700; text-decoration: none; }
.vip__foot a:hover { text-decoration: underline; }

/* ---------- Fundo ---------- */
.bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; display: block; filter: blur(2px); opacity: .9; }
.blob--teal {
  width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  right: -14vw; top: -12vw;
  background: color-mix(in srgb, var(--teal) 22%, var(--cream));
  border-radius: 58% 42% 38% 62% / 45% 55% 45% 55%;
  animation: morph 18s ease-in-out infinite;
}
.blob--pink {
  width: 34vw; height: 34vw; max-width: 460px; max-height: 460px;
  left: -10vw; bottom: -12vw;
  background: color-mix(in srgb, var(--pink) 16%, var(--cream));
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  animation: morph 22s ease-in-out infinite reverse;
}
.blob--yellow {
  width: 22vw; height: 22vw; max-width: 300px; max-height: 300px;
  left: 38%; top: -8vw;
  background: color-mix(in srgb, var(--yellow) 45%, var(--cream));
  border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  animation: morph 16s ease-in-out infinite;
}
.blob--lilac {
  width: 18vw; height: 18vw; max-width: 240px; max-height: 240px;
  right: 30%; bottom: -8vw;
  background: color-mix(in srgb, var(--lilac) 18%, var(--cream));
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
}
.dot { position: absolute; border-radius: 50%; display: block; }
.d1 { width: 14px; height: 14px; background: var(--pink);   top: 18%; left: 46%; }
.d2 { width: 10px; height: 10px; background: var(--teal);   top: 72%; left: 6%; }
.d3 { width: 18px; height: 18px; background: var(--yellow); top: 88%; left: 52%; }
.d4 { width: 8px;  height: 8px;  background: var(--lilac);  top: 10%; left: 20%; }
.d5 { width: 12px; height: 12px; background: var(--orange); top: 55%; left: 49%; }
.d6 { width: 9px;  height: 9px;  background: var(--pink);   top: 92%; right: 8%; }
.squiggle { position: absolute; width: 110px; fill: none; stroke-width: 5; stroke-linecap: round; }
.s1 { stroke: var(--orange); top: 6%; left: 30%; transform: rotate(-8deg); }
.s2 { stroke: var(--teal); bottom: 12%; left: 40%; transform: rotate(10deg); width: 80px; }
.star { position: absolute; width: 30px; }
.st1 { fill: var(--yellow); top: 34%; left: 3%; transform: rotate(-12deg); }
.st2 { fill: var(--lilac); top: 12%; right: 44%; width: 22px; transform: rotate(18deg); }

/* ---------- Confete (sucesso) ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i {
  position: absolute;
  top: -20px;
  width: 10px; height: 14px;
  border-radius: 3px;
  animation: fall linear forwards;
}

/* ---------- Animações ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-3deg) scale(1.04); } }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 38% 62% / 45% 55% 45% 55%; }
  50% { border-radius: 42% 58% 62% 38% / 55% 45% 55% 45%; }
}
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fall { to { transform: translate3d(var(--dx, 0), 110vh, 0) rotate(var(--rot, 540deg)); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.vip__brand, .eyebrow, .headline, .lead, .perks, .trust, .card { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.eyebrow  { animation-delay: .05s; }
.headline { animation-delay: .12s; }
.lead     { animation-delay: .2s; }
.perks    { animation-delay: .28s; }
.trust    { animation-delay: .34s; }
.card     { animation-delay: .18s; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .perks { grid-template-columns: 1fr; }
  .perk { flex-direction: row; align-items: center; padding: 12px 14px; }
  .perk__icon { flex: none; }
}

@media (max-width: 900px) {
  .vip__inner {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    grid-template-rows: auto;
    padding-top: 20px;
  }
  .vip__brand, .vip__action { grid-area: auto; }
  .vip__brand { display: flex; justify-content: center; }
  .logo { width: 180px; }
  .vip__copy { text-align: center; padding: 18px 0 0; }
  .lead { margin-left: auto; margin-right: auto; }
  .headline { font-size: clamp(2rem, 1.2rem + 4vw, 2.9rem); }
  .perks { text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
  .trust { justify-content: center; }

  /* formulário sobe para logo depois da descrição */
  .vip__copy { display: contents; }
  .vip__copy > * { grid-column: 1; }
  .eyebrow { justify-self: center; }
  .headline, .lead { text-align: center; }
  .perks  { order: 5; margin-top: 28px; }
  .trust  { order: 6; margin-bottom: 8px; }
  .vip__action { order: 4; padding: 112px 0 0; width: 100%; max-width: 520px; justify-self: center; }
  .vip__brand { order: 0; }
  .eyebrow { order: 1; margin-top: 18px; }
  .headline { order: 2; }
  .lead { order: 3; margin-bottom: 8px; }

  .bubble--tri   { width: 150px; height: 150px; top: 0; right: 4%; left: auto; }
  .bubble--dome  { width: 112px; height: 112px; top: 20px; left: 36%; }
  .bubble--torre { width: 124px; height: 124px; top: 10px; left: 4%; bottom: auto; }
  .sticker, .dot, .squiggle, .star { display: none; }
  .blob--teal { width: 120vw; height: 120vw; right: -60vw; top: -50vw; }
  .blob--pink { width: 80vw; height: 80vw; }
}

@media (max-width: 480px) {
  .bubble { border-width: 5px; }
  .bubble--tri   { width: 118px; height: 118px; right: 0; top: 6px; }
  .bubble--dome  { width: 96px;  height: 96px;  left: calc(50% - 48px); top: 0; }
  .bubble--torre { width: 108px; height: 108px; left: 0; top: 12px; }
  .vip__action { padding-top: 96px; }
  .card { border-radius: 26px; padding: 36px 20px 22px; }
  .card::before { border-radius: 26px 26px 0 0; }
  .trust { gap: 8px 14px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .hl path { stroke-dashoffset: 0; }
}
