:root {
  --brand: #540092;
  --brand-2: #6d14b3;
  --brand-soft: #f3eafb;
  --ink: #1b1424;
  --muted: #7b7389;
  --line: #e7e1ee;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .12) 0 160px, transparent 161px),
    radial-gradient(circle at 4% 100%, rgba(255, 255, 255, .07) 0 240px, transparent 241px),
    linear-gradient(150deg, #6a0fb6 0%, #540092 45%, #2f0052 100%);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
svg { fill: none; }
a { color: var(--brand); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }

.lg { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.2fr minmax(440px, 1fr); }
.lg-brand.m-only { display: none; }
.lg-show { order: -1; }

/* formulário --------------------------------------------------------------- */
.lg-side {
  position: relative; overflow: hidden; overflow: clip;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
}
.lg-brand { align-self: flex-start; }
.lg-side > * { position: relative; }
.lg-brand { display: flex; align-items: center; gap: .55rem; }
.lg-mark {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 8px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
}
.lg-brand .lg-mark { background: #fff; color: var(--brand); }
.lg-brand strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }

.lg-box {
  width: 100%; max-width: 440px; animation: sobe .5s ease-out both;
  background: #fcfaff; border-radius: 26px; padding: 2.2rem 2rem 2rem;
  box-shadow: 0 30px 70px rgba(15, 0, 35, .4), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}
.lg-box.shake { animation: treme .4s ease-in-out; }
.lg-hi {
  display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: .3rem .75rem; border-radius: 999px; margin-bottom: .9rem;
}
.lg-box h1 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.lg-sub { margin: .55rem 0 1.8rem; color: var(--muted); line-height: 1.55; font-size: .94rem; }
.lg-form { display: flex; flex-direction: column; gap: 1.1rem; }
.lg-form > label { display: flex; flex-direction: column; gap: .45rem; font-size: .82rem; font-weight: 700; color: #3d3449; }
.lg-field {
  display: flex; align-items: center; gap: .65rem;
  padding: 0 .95rem; border-radius: 14px; background: #fff;
  border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s;
}
.lg-field:hover { border-color: #d6cbe2; }
.lg-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(84, 0, 146, .1); }
.lg-field > svg { width: 18px; height: 18px; stroke: #a49bb2; flex: 0 0 auto; transition: stroke .15s; }
.lg-field:focus-within > svg { stroke: var(--brand); }
.lg-field input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); padding: .9rem 0;
}
.lg-field input::placeholder { color: #b5adc2; font-weight: 500; }
.lg-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.lg-eye { background: none; border: none; padding: .3rem; margin-right: -.3rem; border-radius: 8px; cursor: pointer; display: grid; }
.lg-eye svg { width: 18px; height: 18px; stroke: #a49bb2; }
.lg-eye:hover svg, .lg-eye.on svg { stroke: var(--brand); }
.lg-eye.on { background: var(--brand-soft); }
.lg-caps { color: #9a6410; font-size: .76rem; font-weight: 600; }

.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.lg-check { display: flex; align-items: center; gap: .5rem; color: #3d3449; font-weight: 600; cursor: pointer; }
.lg-check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; cursor: pointer; }

.lg-btn {
  position: relative; margin-top: .3rem; padding: .95rem; border: none; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .98rem; color: #fff;
  background: var(--brand); box-shadow: 0 10px 24px rgba(84, 0, 146, .28);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.lg-btn:hover { background: #43007a; box-shadow: 0 12px 28px rgba(84, 0, 146, .36); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:focus-visible { outline: 3px solid rgba(84, 0, 146, .35); outline-offset: 2px; }
.lg-btn:disabled { cursor: progress; opacity: .92; }
.lg-spin {
  display: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: gira .7s linear infinite;
}
.lg-btn.busy .lg-spin { display: inline-block; }
.lg-help { margin: 1.3rem 0 0; font-size: .85rem; color: var(--muted); }
.lg-erro {
  display: flex; align-items: center; gap: .55rem;
  background: #fdecec; color: #a12a2a; border: 1px solid #f6cccc; border-radius: 14px;
  padding: .75rem .95rem; font-size: .86rem; font-weight: 600; margin-bottom: 1.2rem;
}
.lg-erro svg { width: 18px; height: 18px; stroke: currentColor; flex: 0 0 auto; }
.lg-safe { position: absolute; bottom: 1.6rem; display: flex; align-items: center; gap: .45rem; margin: 0; color: #d9c3f0; font-size: .78rem; }
.lg-safe svg { width: 15px; height: 15px; stroke: currentColor; }

/* vitrine ------------------------------------------------------------------ */
.lg-show {
  position: relative; overflow: hidden; overflow: clip; color: #fff;
  display: flex; flex-direction: column; padding: 2rem clamp(1.5rem, 4vw, 3.5rem);
}
.lg-show .lg-brand { position: relative; z-index: 2; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 380px; height: 380px; background: #b04dff; top: -120px; left: -80px; animation: deriva 16s ease-in-out infinite; }
.blob.b2 { width: 320px; height: 320px; background: #ff6bd5; bottom: -120px; right: 10%; opacity: .32; animation: deriva 20s ease-in-out infinite reverse; }
.blob.b3 { width: 260px; height: 260px; background: #6b4bff; top: 40%; left: 45%; opacity: .35; animation: deriva 24s ease-in-out infinite; }

.lg-show-in {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
}
.lg-copy { text-align: center; }
.lg-tag {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  padding: .32rem .85rem; border-radius: 999px; margin-bottom: .9rem; backdrop-filter: blur(6px);
}
.lg-tag b { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, .6); animation: pulsa 2s infinite; }
.lg-show h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.lg-show h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffd0f5, #e3b5ff, #ffd0f5); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brilho 6s linear infinite;
}
.lg-copy p { margin: .7rem auto 0; color: #e4d2f5; line-height: 1.6; max-width: 440px; }

.stage {
  --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px;
  position: relative; align-self: center; width: 100%; max-width: 560px;
  display: grid; place-items: center; perspective: 1200px;
}
.phone {
  position: relative; width: 350px; max-width: 100%;
  background: #fff; color: var(--ink); border-radius: 38px; overflow: hidden;
  border: 9px solid #170827;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 40px 80px rgba(15, 0, 35, .55), 0 0 90px rgba(190, 110, 255, .35);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease-out;
  animation: boia 7s ease-in-out infinite;
}
.phone::before {
  content: ""; position: absolute; top: 6px; left: 50%; width: 84px; height: 20px; margin-left: -42px;
  background: #170827; border-radius: 999px; z-index: 3;
}
.phone .phone-top { padding-top: 2rem; }

.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem .55rem .55rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(15, 0, 35, .3);
  transform: translate(calc(var(--px) * 1.6), calc(var(--py) * 1.6));
  transition: transform .3s ease-out;
}
.float > svg {
  width: 30px; height: 30px; padding: 7px; border-radius: 50%; flex: 0 0 auto;
  background: #fff; stroke: var(--brand);
}
.float strong { display: block; font-size: .8rem; line-height: 1.2; }
.float small { display: block; font-size: .7rem; color: #e4d2f5; }
.float span { animation: boia 6s ease-in-out infinite; }
.f1 { top: 34%; left: calc(50% - 335px); }
.f1 > svg { background: #3ee08f; stroke: #fff; }
.f2 { top: 20%; right: calc(50% - 345px); }
.f3 { bottom: 22%; right: calc(50% - 335px); }
.f3 > svg { background: #2aabee; stroke: #fff; }
.f4 { bottom: 8%; left: calc(50% - 315px); }
.f1, .f3 { animation: flutua 7s ease-in-out infinite; }
.f2, .f4 { animation: flutua 8s ease-in-out infinite -3s; }
@keyframes flutua { 50% { margin-top: -10px; } }
@keyframes boia { 50% { translate: 0 -6px; } }
@keyframes deriva { 33% { transform: translate(60px, 40px) scale(1.1); } 66% { transform: translate(-40px, 30px) scale(.95); } }
@keyframes brilho { to { background-position: 200% center; } }

.phone-top { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border-bottom: 1px solid #efeaf4; }
.phone-top > div { flex: 1; }
.phone-top strong { display: block; font-size: .88rem; }
.phone-top small { color: #1f9d63; font-size: .74rem; font-weight: 700; }
.phone-av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; }
.phone-av svg { width: 17px; height: 17px; stroke: var(--brand); }
.phone-ch {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  color: #128c4b; background: #e6f8ee; padding: .25rem .6rem; border-radius: 999px;
}
.phone-ch svg { width: 13px; height: 13px; stroke: currentColor; }
.phone-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; background: #f8f5fb; height: 220px; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: none; }
.phone-body::-webkit-scrollbar { display: none; }
.phone-body > :first-child { margin-top: auto; }
.phone-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .2rem 1rem .7rem; background: #f8f5fb; min-height: 2.6rem; }
.phone-chips button {
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--brand); cursor: pointer;
  background: #fff; border: 1.5px solid #dcc6f1; border-radius: 999px; padding: .38rem .75rem;
  animation: entra .3s ease-out both; transition: background .15s, border-color .15s;
}
.phone-chips button:hover { background: var(--brand-soft); border-color: var(--brand); }
.phone-in { display: flex; gap: .5rem; padding: .65rem .75rem; border-top: 1px solid #efeaf4; background: #fff; }
.phone-in input {
  flex: 1; min-width: 0; font: inherit; font-size: .86rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .55rem .9rem; outline: none;
}
.phone-in input:focus { border-color: var(--brand); }
.phone-in button {
  width: 38px; height: 38px; flex: 0 0 auto; border: none; border-radius: 50%; cursor: pointer;
  background: var(--brand); display: grid; place-items: center;
}
.phone-in button svg { width: 17px; height: 17px; stroke: #fff; }
.phone-in button:hover { background: #43007a; }
.msg { max-width: 80%; padding: .55rem .8rem; border-radius: 14px; font-size: .84rem; line-height: 1.45; animation: entra .3s ease-out both; }
.msg.in { align-self: flex-start; background: #fff; border: 1px solid #ece6f2; border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.ok { display: flex; align-items: center; gap: .4rem; }
.msg svg { width: 15px; height: 15px; stroke: #fff; flex: 0 0 auto; }
.msg.typing { display: flex; gap: 4px; padding: .7rem .85rem; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: pontos 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }

@keyframes sobe { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes treme { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes entra { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pontos { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pulsa { 70% { box-shadow: 0 0 0 8px rgba(62, 224, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1250px) {
  .float { display: none; }
}
@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; }
  .lg-show { display: none; }
  .lg-brand.m-only { display: flex; }
  .lg-side { min-height: 100vh; gap: 2rem; justify-content: flex-start; padding: 1.5rem 1rem; }
  .lg-box { margin: 0 auto; padding: 1.8rem 1.4rem; }
  .lg-safe { position: static; justify-content: center; margin-top: auto; }
}
