:root{
  /* === Identidade visual Synar (branco + roxo) === */
  --brand:        #9512FD;   /* roxo do logo */
  --brand-2:      #A22BFF;   /* roxo claro p/ gradiente */
  --brand-dark:   #7D0FD6;   /* hover / texto roxo */
  --lilac-soft:   #F4EDFF;   /* superfície lilás clara */
  --lilac-softer: #FAF7FF;   /* fundo da página (branco arroxeado) */
  --lilac-line:   #E7D6FF;   /* bordas */

  --bg: #FAF7FF;
  --card: #ffffff;
  --text: #1C1226;                 /* texto escuro (plum) */
  --muted: rgba(28,18,38,.66);
  --muted2: rgba(28,18,38,.50);
  --line: rgba(149,18,253,.14);
  --accent: #9512FD;
  --btn: #9512FD;
  --btnText: #ffffff;
  --shadow: 0 18px 55px rgba(149,18,253,.14);
}

@font-face {
    font-family: "biennale";
    src: url(./assets/fonts/biennale_light-webfont.woff2) format("woff2"),url(./assets/fonts/biennale_light-webfont.woff) format("woff");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "biennale";
    src: url(./assets/fonts/biennale_regular-webfont.woff2) format("woff2"),url(./assets/fonts/biennale_regular-webfont.woff) format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "biennale";
    src: url(./assets/fonts/biennale_semibold-webfont.woff2) format("woff2"),url(./assets/fonts/biennale_semibold-webfont.woff) format("woff");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "biennale";
    src: url(./assets/fonts/biennale_bold-webfont.woff2) format("woff2"),url(./assets/fonts/biennale_bold-webfont.woff) format("woff");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "biennale";
    src: url(./assets/fonts/biennale_black-webfont.woff2) format("woff2"),url(./assets/fonts/biennale_black-webfont.woff) format("woff");
    font-weight: 900;
    font-style: normal;
}

*,*:before,*:after,*:focus,*:active {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
}

::-webkit-scrollbar {
    width: 0.6vw;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--brand);
}

::-webkit-scrollbar-track {
    background-color: #EEE3FF;
    border-radius: 10px;
}

a:focus,a:active {
    outline: 0;
}

button,input,select,textarea {
    font-family: "biennale",sans-serif;
    font-weight: 300;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: "biennale",sans-serif;
  font-weight: 300;
  background: var(--lilac-softer);
  color: var(--text);
}

.emo-shell{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

/* topbar */
.emo-topbar{
  position: sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.emo-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 180px;
}
.emo-logo{
  height:44px;
  width:auto;
  display:block;
}
.emo-status{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color: var(--muted);
  white-space:nowrap;
}
.emo-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(149,18,253,.18);
}

.emo-progress{
  flex:1;
  height:8px;
  border-radius:999px;
  background: rgba(149,18,253,.12);
  overflow:hidden;
}
.emo-progress-bar{
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  border-radius:999px;
  transition: width .28s ease;
}

.emo-step{
  font-size:12px;
  color: var(--muted);
  min-width: 62px;
  text-align:right;
}

/* main */
.emo-main{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 26px 16px 34px;
}

.emo-card{
  position: relative;
  isolation: isolate;
  width: min(680px, 100%);
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform .28s ease, opacity .28s ease;
  text-align: center;
}

/* ===== Borda fluida animada (violeta correndo como água) ===== */
.emo-card:not(.emo-affirm)::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;                 /* espessura da borda */
  background: linear-gradient(
    115deg,
    #c98bff, #9512FD, #6d0fc4, #b66bff,
    #9512FD, #7d0fd6, #d8b3ff, #9512FD
  );
  background-size: 320% 320%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: emoFlow 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes emoFlow{
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

@media (prefers-reduced-motion: reduce){
  .emo-card:not(.emo-affirm)::before,
  .emo-card:not(.emo-affirm)::after{ animation: none; }
}

.emo-card.is-switching{
  opacity: .3;
  transform: translateY(8px);
}

.emo-avatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background-image: var(--lia-avatar-url);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--lilac-line);
  background-color: #fff;
  box-shadow: 0 6px 18px rgba(149,18,253,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.emo-avatar img{
    width: 34px;
    height: auto;
    display: block;
    margin: 0;
}

/* ===== Wordmark "Synar experience" (topbar) ===== */
.emo-wordmark{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  user-select: none;
}
/* synar = linha secundária (subtítulo), menor, centralizado em cima */
.emo-wordmark .wm-name{
  font-family: "biennale", sans-serif;
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: 0.30em;
  text-indent: 0.30em;           /* compensa o tracking p/ centro real */
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}
/* experience = linha principal */
.emo-wordmark .wm-sub{
  font-family: "biennale", sans-serif;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.20em;
  text-indent: 0.20em;
  text-transform: uppercase;
  color: var(--brand);
}

.emo-microcopy{
  color: var(--muted2);
  font-size: 15px;
  margin-bottom: 10px;
}

/* ===== Tela de afirmação (entre perguntas) ===== */
.emo-affirm{
    background: 0;
    color: var(--text);
    border: 0;
    box-shadow: none;
    text-align: center;
    font-weight: 600;
}
.emo-affirm-icon{
  width:80px;
  height:80px;
  border-radius:18px;
  margin:10px auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}
.emo-affirm-text{
  font-size:18px;
  line-height:1.35;
  margin:0 auto 22px;
  max-width:520px;
}
.emo-affirm-btn{ min-width:180px; }

.emo-question{
  margin: 0 0 35px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.emo-actions{
  display:flex;
  gap:12px;
  margin-top: 10px;
}

.emo-actions.emo-actions-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

@media (max-width: 520px){
  .emo-actions.emo-actions-grid{
    grid-template-columns: 1fr;
  }
}

.emo-btn{
  flex:1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--lilac-line);
  background: var(--lilac-soft);
  color: #2A1A3E;
  font-size: 16px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.emo-btn:hover{
  transform: translateY(-1px);
  background: #EBDDFF;
  box-shadow: 0 16px 30px rgba(149,18,253,.18);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.emo-btn:active{
  transform: translateY(0px);
}

.emo-btn-primary{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.emo-btn-primary:hover{
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.emo-feedback{
  margin-top: 14px;
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* resultado final — ponte para o diagnóstico */
.emo-result {
  width: 100%;
  padding: 32px 20px 56px;
}

.emo-result-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.emo-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lilac-soft);
  border: 1px solid var(--lilac-line);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.emo-result-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.emo-result-subtitle {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
}

.emo-result-points {
  max-width: 560px;
  margin: 0 auto 28px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.emo-result-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--lilac-line);
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(149,18,253,.06);
}

.emo-result-point-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(149,18,253,.14);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.emo-result-authority {
  max-width: 520px;
  margin: 0 auto 28px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(149,18,253,.08),
    rgba(149,18,253,.03)
  );
  border: 1px solid var(--lilac-line);
}

.emo-result-authority-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.emo-result-authority-sub {
  font-size: 15px;
  color: var(--muted);
}

.emo-result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.emo-cta-main {
  width: 100%;
  max-width: 560px;
  min-height: 64px;
  border: 0;
  border-radius: 18px;
  padding: 18px 24px;
  background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(149,18,253,.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.emo-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(149,18,253,.42);
}

.emo-result-link {
  font-size: 15px;
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

.emo-result-link:hover {
  color: var(--brand);
}

.emo-result-micro {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted2);
}

@media (max-width: 768px) {
  .emo-result {
    padding: 22px 16px 40px;
  }

  .emo-result-title {
    font-size: 28px;
  }

  .emo-result-subtitle {
    font-size: 17px;
    margin-bottom: 22px;
  }

  .emo-result-point {
    font-size: 15px;
    padding: 13px 14px;
  }

  .emo-result-authority-title {
    font-size: 16px;
  }

  .emo-result-authority-sub {
    font-size: 14px;
  }

  .emo-cta-main {
    min-height: 58px;
    font-size: 16px;
    border-radius: 16px;
  }
}

/* legado: CTAs em grid (outras telas / extensões) */
.emo-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.emo-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--lilac-line);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-align: left;
}

.emo-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(149,18,253,.16);
}

.emo-cta-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* mobile tweaks */
@media (max-width: 520px){
  .emo-question{ font-size: 22px; }
  .emo-card{ padding: 22px 16px; }
  .emo-topbar{ gap:10px; }
  .emo-brand{ min-width: 140px; }
}

.emo-cta-ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(149,18,253,.10);
  border: 1px solid var(--lilac-line);
  font-size: 16px;
}

/* WhatsApp verde */
.emo-cta-whats{
  background: rgba(37, 211, 102, .14);
  border-color: rgba(37, 211, 102, .35);
}

.emo-cta-whats:hover{
  box-shadow: 0 16px 30px rgba(37, 211, 102, .18);
}

/* Quando Whats for primary (emo-cta-primary) */
.emo-cta-whats.emo-cta-primary{
  background: #25D366;
  color: #0b0b0c;
  border-color: #25D366;
}

.emo-cta-whats.emo-cta-primary .emo-cta-ico{
  background: rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.12);
}

.emo-microcopy{
  transition: opacity .18s ease;
}

/* ===================== Input de texto (nome / empresa) ===================== */
.emo-inputrow{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.emo-input{
  flex: 1;
  height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--lilac-line);
  background: var(--lilac-soft);
  color: #2A1A3E;
  font-size: 16px;
  font-family: "biennale", sans-serif;
  font-weight: 400;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.emo-input::placeholder{ color: rgba(28,18,38,.42); }
.emo-input:focus{
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(149,18,253,.12);
}
.emo-mic, .emo-send{
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--lilac-line);
  background: var(--lilac-soft);
  color: var(--brand);
  transition: transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.emo-mic:hover, .emo-send:hover{ transform: translateY(-1px); border-color: var(--brand); }
.emo-send{ background: var(--brand); color: #fff; border-color: var(--brand); }
.emo-send:hover{ background: var(--brand-dark); border-color: var(--brand-dark); }
.emo-mic.listening{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  animation: synarPulse 1.1s ease-in-out infinite;
}
@keyframes synarPulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(149,18,253,.45); }
  50%{ box-shadow: 0 0 0 8px rgba(149,18,253,0); }
}
.emo-listen{
  margin-top: 10px;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: .02em;
}

/* ===================== Tela de Diagnóstico ===================== */
.emo-diag{ width: 100%; padding: 26px 16px 48px; }
.emo-diag-wrap{ max-width: 720px; margin: 0 auto; }
.emo-diag-card{ width: 100%; text-align: left; padding: 24px 24px; }
.emo-diag-head{
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--lilac-line);
}
.emo-diag-avatar{ width: 48px; height: 48px; margin: 0; flex: 0 0 auto; }
.emo-diag-avatar img{ width: 26px; }
.emo-diag-headtext{ flex: 1; min-width: 0; }
.emo-diag-badge{ font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.emo-diag-by{ font-size: 14px; color: var(--muted); margin-top: 2px; }
.emo-diag-by strong{ color: var(--text); }
.emo-diag-audiobtn{
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--lilac-line);
  background: var(--lilac-soft);
  color: var(--brand);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.emo-diag-audiobtn:hover{ transform: translateY(-1px); border-color: var(--brand); }
body.synar-playing .emo-diag-audiobtn{ background: var(--brand); color: #fff; border-color: var(--brand); animation: synarPulse 1.1s ease-in-out infinite; }
.emo-diag-audiobtn.is-disabled{ opacity: .4; pointer-events: none; }

.emo-diag-loading{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  padding: 8px 0;
}
.emo-typing{ display: inline-flex; gap: 4px; }
.emo-typing i{
  width: 7px; height: 7px; border-radius: 999px; background: var(--brand);
  display: inline-block; opacity: .35;
  animation: synarDot 1.1s ease-in-out infinite;
}
.emo-typing i:nth-child(2){ animation-delay: .18s; }
.emo-typing i:nth-child(3){ animation-delay: .36s; }
@keyframes synarDot{ 0%,100%{ opacity:.3; transform: translateY(0); } 50%{ opacity:1; transform: translateY(-3px); } }

.emo-diag-body{
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}
.emo-diag-actions{ margin-top: 22px; }

@media (max-width: 520px){
  .emo-diag-card{ padding: 20px 16px; }
  .emo-diag-body{ font-size: 15.5px; }
}
