*{box-sizing:border-box}
:root{
  --bg:#090909;
  --bg-soft:#121110;
  --surface:#151311;
  --surface-2:#1A1714;
  --gold:#C9A24D;
  --gold-2:#E6D3A3;
  --gold-3:#9F7734;
  --text:#F7F1E7;
  --text-soft:#D8CEBE;
  --muted:#A59A8B;
  --line:rgba(230,211,163,.14);
  --shadow:0 28px 90px rgba(0,0,0,.42);
  --success:#7ED6A6;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
}
html{
  margin:0;
  min-height:100%;
  background:#090909;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  margin:0;
  min-height:100vh;
  min-height:100dvh;
  font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(201,162,77,.16), transparent 26%),
    radial-gradient(circle at 80% 80%, rgba(201,162,77,.10), transparent 24%),
    linear-gradient(135deg,#050505,#0E0D0C 45%,#171310);
  display:grid;
  place-items:center;
  padding:
    max(20px,var(--safe-top))
    max(20px,var(--safe-right))
    max(20px,var(--safe-bottom))
    max(20px,var(--safe-left));
  overflow:hidden;
}
button,input,a{
  -webkit-tap-highlight-color:transparent;
}
button,a{
  touch-action:manipulation;
}
.app-shell{
  width:min(100%,580px);
  height:min(88vh,860px);
  height:min(88dvh,860px);
  min-height:640px;
}
.bot-card{
  width:100%;
  height:100%;
  min-height:0;
  background:linear-gradient(180deg,rgba(20,17,14,.97),rgba(12,11,10,.98));
  border:1px solid rgba(201,162,77,.22);
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.bot-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  min-height:78px;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0)),
    linear-gradient(135deg,#13110F,#0C0B0A);
}
.brand-stack{display:flex;align-items:center;gap:12px;min-width:0}
.logo{object-fit:cover;display:block}
.logo-small{
  width:44px;height:44px;border-radius:50%;
  border:1px solid rgba(230,211,163,.2);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  flex:0 0 auto;
}
.brand-copy{min-width:0}
.brand-copy strong{
  display:block;
  font-family:"Cormorant Garamond",serif;
  font-size:24px;
  line-height:1;
  letter-spacing:.01em;
  color:var(--gold-2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-copy span{
  display:block;
  margin-top:4px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.status{
  flex:0 0 auto;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:var(--muted);
  white-space:nowrap;
}
.status i{
  display:inline-block;
  width:8px;height:8px;border-radius:50%;
  background:var(--success);
  margin-right:6px;
  box-shadow:0 0 0 4px rgba(126,214,166,.12);
}
.chat{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:16px 16px 28px;
  scroll-behavior:smooth;
  background:
    radial-gradient(circle at 12px 12px, rgba(201,162,77,.08) 1px, transparent 1.6px);
  background-size:22px 22px;
  scrollbar-width:thin;
  scrollbar-color:rgba(201,162,77,.35) transparent;
}
.chat::-webkit-scrollbar{width:6px}
.chat::-webkit-scrollbar-thumb{background:rgba(201,162,77,.30);border-radius:999px}
.hero-card{
  margin:0 0 18px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(201,162,77,.18);
  background:
    linear-gradient(135deg,rgba(201,162,77,.12),rgba(255,255,255,.02)),
    linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-logos{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.hero-logos img{
  width:64px;height:64px;border-radius:50%;object-fit:cover;
  border:1px solid rgba(230,211,163,.22);
  background:#0A0908;
  flex:0 0 auto;
}
.hero-kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--gold-2);
}
.hero-title{
  margin:6px 0 8px;
  font-family:"Cormorant Garamond",serif;
  font-size:34px;
  line-height:.98;
  color:var(--gold-2);
}
.hero-text{
  margin:0;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.65;
}
.row{display:flex;gap:10px;margin:0 0 14px;animation:up .18s ease both}
@keyframes up{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.bot-row{align-items:flex-start}
.user-row{justify-content:flex-end}
.avatar-wrap{flex:0 0 34px}
.avatar-img{
  width:34px;height:34px;border-radius:50%;object-fit:cover;
  border:1px solid rgba(230,211,163,.22);
  box-shadow:0 6px 18px rgba(0,0,0,.26);
}
.bubble{
  max-width:min(84%,440px);
  padding:13px 15px;
  border-radius:18px;
  font-size:14px;
  line-height:1.58;
  overflow-wrap:anywhere;
  word-break:normal;
}
.bot-bubble{
  background:linear-gradient(180deg,#171411,#13110F);
  color:var(--text);
  border:1px solid var(--line);
  border-top-left-radius:6px;
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}
.bot-bubble strong{color:var(--gold-2)}
.user-bubble{
  background:linear-gradient(135deg,#D5B36D,#B9893B);
  color:#16120E;
  font-weight:700;
  border-top-right-radius:6px;
}
.quote{
  margin:8px 0 0;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(201,162,77,.18);
  background:rgba(201,162,77,.06);
  font-family:"Cormorant Garamond",serif;
  font-size:24px;
  line-height:1.15;
  color:var(--gold-2);
}
.options{
  display:grid;
  gap:9px;
  margin:4px 0 18px 44px;
  animation:up .16s ease both;
}
.pill-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:4px 0 18px 44px;
}
.option-btn,.cta-btn,.secondary-btn,.send-btn{
  appearance:none;
  border:0;
  cursor:pointer;
  font:inherit;
  transition:.14s ease;
  min-height:48px;
}
.option-btn{
  width:100%;
  text-align:left;
  padding:12px 14px;
  border-radius:15px;
  color:var(--text);
  background:linear-gradient(180deg,#181512,#13110E);
  border:1px solid rgba(201,162,77,.18);
  box-shadow:0 6px 16px rgba(0,0,0,.16);
}
.option-btn:hover,.option-btn:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(201,162,77,.35);
  background:linear-gradient(180deg,#1D1915,#14110E);
  outline:none;
}
.pill-grid .option-btn{font-size:13px;min-height:56px}
.input-wrap{
  display:flex;
  gap:8px;
  margin:4px 0 18px 44px;
  animation:up .16s ease both;
}
.text-input{
  flex:1;
  min-width:0;
  min-height:48px;
  border-radius:15px;
  border:1px solid rgba(201,162,77,.22);
  background:#0F0D0C;
  color:var(--text);
  padding:12px 13px;
  font:inherit;
  font-size:16px;
  outline:none;
}
.text-input::placeholder{color:#887F74}
.text-input:focus{
  border-color:rgba(201,162,77,.45);
  box-shadow:0 0 0 3px rgba(201,162,77,.10);
}
.send-btn{
  border-radius:15px;
  padding:0 18px;
  background:linear-gradient(135deg,#D6B36A,#B9893B);
  color:#17120F;
  font-weight:800;
}
.cta-wrap{display:grid;gap:10px;margin:8px 0 18px 44px}
.cta-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  text-align:center;
  padding:14px 16px;
  min-height:52px;
  border-radius:16px;
  font-weight:800;
  letter-spacing:.02em;
  background:linear-gradient(135deg,#E6D3A3,#C9A24D);
  color:#17120F;
  box-shadow:0 12px 26px rgba(201,162,77,.26);
}
.secondary-btn{
  text-align:center;
  padding:12px 14px;
  min-height:48px;
  border-radius:16px;
  color:var(--text-soft);
  background:transparent;
  border:1px solid var(--line);
}
.small-note{margin-top:8px;font-size:11px;color:var(--muted)}
.pillars{margin-top:8px;display:grid;gap:8px}
.pillar{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(201,162,77,.05);
  border:1px solid rgba(201,162,77,.12);
  color:var(--text-soft);
}
.typing{display:inline-flex;gap:4px;align-items:center}
.typing i{width:6px;height:6px;border-radius:50%;background:#9D9487;animation:b .9s infinite}
.typing i:nth-child(2){animation-delay:.12s}
.typing i:nth-child(3){animation-delay:.24s}
@keyframes b{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}
.bot-footer{
  text-align:center;
  padding:10px 14px calc(10px + var(--safe-bottom));
  border-top:1px solid var(--line);
  font-size:10px;
  color:var(--muted);
  background:rgba(0,0,0,.16);
}

/* Tablet */
@media (min-width:601px) and (max-width:1024px){
  body{
    padding:
      max(18px,var(--safe-top))
      max(18px,var(--safe-right))
      max(18px,var(--safe-bottom))
      max(18px,var(--safe-left));
  }
  .app-shell{
    width:min(92vw,700px);
    height:min(90vh,900px);
    height:min(90dvh,900px);
    min-height:600px;
  }
  .bot-card{border-radius:26px}
  .bot-header{padding:16px 18px}
  .brand-copy strong{font-size:23px}
  .hero-card{padding:18px}
  .hero-title{font-size:33px}
  .bubble{max-width:82%;font-size:14px}
  .pill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Celular */
@media (max-width:600px){
  body{
    display:block;
    padding:0;
    overflow:hidden;
    background:#090909;
  }
  .app-shell{
    width:100%;
    height:100vh;
    height:100dvh;
    min-height:0;
  }
  .bot-card{
    width:100%;
    height:100%;
    min-height:0;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .bot-header{
    min-height:70px;
    padding:
      calc(12px + var(--safe-top))
      calc(14px + var(--safe-right))
      12px
      calc(14px + var(--safe-left));
    gap:8px;
  }
  .logo-small{width:38px;height:38px}
  .brand-stack{gap:9px}
  .brand-copy strong{font-size:20px}
  .brand-copy span{font-size:9px;letter-spacing:.07em}
  .status{
    font-size:0;
    width:10px;
    overflow:visible;
  }
  .status i{
    width:8px;height:8px;
    margin:0;
  }
  .chat{
    padding:
      14px
      calc(12px + var(--safe-right))
      24px
      calc(12px + var(--safe-left));
  }
  .hero-card{
    padding:15px;
    border-radius:18px;
    margin-bottom:14px;
  }
  .hero-logos{gap:9px;margin-bottom:12px}
  .hero-logos img{width:52px;height:52px}
  .hero-kicker{font-size:10px}
  .hero-title{font-size:29px;line-height:1}
  .hero-text{font-size:13px;line-height:1.58}
  .row{gap:8px;margin-bottom:12px}
  .avatar-wrap{flex-basis:30px}
  .avatar-img{width:30px;height:30px}
  .bubble{
    max-width:calc(100% - 44px);
    font-size:13.5px;
    line-height:1.52;
    padding:12px 13px;
    border-radius:16px;
  }
  .user-bubble{max-width:88%}
  .quote{font-size:21px;padding:12px}
  .options,.pill-grid,.input-wrap,.cta-wrap{
    margin-left:38px;
    margin-right:0;
  }
  .pill-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
  .option-btn{
    min-height:50px;
    padding:12px 13px;
    font-size:13px;
  }
  .pill-grid .option-btn{min-height:50px;font-size:13px}
  .input-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .text-input{
    width:100%;
    font-size:16px;
    min-height:50px;
  }
  .send-btn{
    min-width:78px;
    min-height:50px;
    padding:0 14px;
  }
  .cta-btn{min-height:54px;font-size:14px}
  .secondary-btn{min-height:48px;font-size:13px}
  .pillar{font-size:13px;padding:9px 10px}
  .bot-footer{
    font-size:9px;
    padding:
      9px
      calc(10px + var(--safe-right))
      calc(9px + var(--safe-bottom))
      calc(10px + var(--safe-left));
  }
}

/* Celulares muito estreitos */
@media (max-width:380px){
  .brand-copy strong{font-size:18px}
  .brand-copy span{max-width:210px}
  .hero-title{font-size:26px}
  .bubble{font-size:13px}
  .options,.pill-grid,.input-wrap,.cta-wrap{margin-left:34px}
  .input-wrap{grid-template-columns:1fr}
  .send-btn{width:100%}
}

/* Paisagem em celular */
@media (max-height:520px) and (orientation:landscape){
  body{overflow:hidden}
  .bot-header{min-height:58px;padding-top:8px;padding-bottom:8px}
  .logo-small{width:34px;height:34px}
  .brand-copy strong{font-size:18px}
  .brand-copy span{display:none}
  .chat{padding-top:10px;padding-bottom:16px}
  .hero-card{padding:12px}
  .hero-logos img{width:42px;height:42px}
  .hero-title{font-size:24px}
  .hero-text{font-size:12.5px}
  .bot-footer{display:none}
}

/* Acessibilidade e desempenho */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* Captura obrigatória de lead */
.lead-gate{
  position:fixed;
  inset:0;
  z-index:50;
  display:grid;
  place-items:center;
  padding:
    max(18px,var(--safe-top))
    max(18px,var(--safe-right))
    max(18px,var(--safe-bottom))
    max(18px,var(--safe-left));
  background:
    radial-gradient(circle at 22% 14%, rgba(201,162,77,.17), transparent 29%),
    radial-gradient(circle at 78% 82%, rgba(201,162,77,.10), transparent 26%),
    rgba(5,5,5,.96);
  transition:opacity .22s ease,visibility .22s ease;
}
.lead-gate.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.lead-card{
  width:min(100%,520px);
  max-height:min(92vh,820px);
  max-height:min(92dvh,820px);
  overflow:auto;
  padding:26px;
  border-radius:26px;
  border:1px solid rgba(201,162,77,.24);
  background:
    linear-gradient(145deg,rgba(201,162,77,.08),transparent 34%),
    linear-gradient(180deg,#171411,#0F0D0C);
  box-shadow:0 30px 100px rgba(0,0,0,.52);
}
.lead-brand{display:flex;gap:10px;margin-bottom:18px}
.lead-brand img{
  width:54px;height:54px;border-radius:50%;object-fit:cover;
  border:1px solid rgba(230,211,163,.24);
  background:#0A0908;
}
.lead-kicker{
  font-size:10px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--gold-2);
  margin-bottom:7px;
}
.lead-card h1{
  margin:0 0 9px;
  font-family:"Cormorant Garamond",serif;
  font-size:36px;
  line-height:1;
  color:var(--gold-2);
}
.lead-intro{
  margin:0 0 20px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.6;
}
.field-label{
  display:block;
  margin:13px 0 7px;
  color:var(--text);
  font-size:12px;
  font-weight:700;
}
.lead-input{
  width:100%;
  min-height:50px;
  border-radius:14px;
  border:1px solid rgba(201,162,77,.22);
  background:#0B0A09;
  color:var(--text);
  padding:12px 14px;
  font:inherit;
  font-size:16px;
  outline:none;
}
.lead-input::placeholder{color:#837A70}
.lead-input:focus{
  border-color:rgba(201,162,77,.52);
  box-shadow:0 0 0 3px rgba(201,162,77,.10);
}
.field-hint{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:10.5px;
}
.consent-row{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:start;
  gap:10px;
  margin:18px 0 0;
  color:var(--text-soft);
  font-size:10.5px;
  line-height:1.5;
  cursor:pointer;
}
.consent-row input{
  width:17px;height:17px;
  margin:1px 0 0;
  accent-color:var(--gold);
}
.form-message{
  display:none;
  margin-top:13px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(222,128,110,.28);
  background:rgba(222,128,110,.08);
  color:#F2C8BE;
  font-size:11px;
  line-height:1.45;
}
.form-message.is-visible{display:block}
.lead-submit{
  width:100%;
  min-height:52px;
  margin-top:16px;
  border:0;
  border-radius:15px;
  cursor:pointer;
  font:inherit;
  font-weight:800;
  color:#17120F;
  background:linear-gradient(135deg,#E6D3A3,#C9A24D);
  box-shadow:0 12px 26px rgba(201,162,77,.20);
}
.lead-submit:hover,.lead-submit:focus-visible{filter:brightness(1.035);outline:none}
.lead-submit:disabled{cursor:wait;opacity:.72}
.lead-submit-loading{display:none}
.lead-submit.is-loading .lead-submit-label{display:none}
.lead-submit.is-loading .lead-submit-loading{display:inline}
.privacy-note{
  margin:11px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:9.5px;
}
.spam-trap{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
body.lead-locked .app-shell{
  filter:blur(9px);
  transform:scale(.985);
  pointer-events:none;
  user-select:none;
}
.app-shell{transition:filter .22s ease,transform .22s ease}

@media (max-width:600px){
  .lead-gate{
    align-items:stretch;
    padding:0;
  }
  .lead-card{
    width:100%;
    max-height:100vh;
    max-height:100dvh;
    min-height:100vh;
    min-height:100dvh;
    border:0;
    border-radius:0;
    padding:
      calc(22px + var(--safe-top))
      calc(18px + var(--safe-right))
      calc(22px + var(--safe-bottom))
      calc(18px + var(--safe-left));
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .lead-brand img{width:48px;height:48px}
  .lead-card h1{font-size:32px}
  .lead-intro{font-size:12.5px;margin-bottom:15px}
  .field-label{margin-top:10px}
  .consent-row{margin-top:15px}
}

@media (max-height:650px){
  .lead-card{justify-content:flex-start}
}
