@font-face {
  font-family: CameraPlainVariable;
  src: url("assets/CameraPlainVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #b7425f;
  --brand-dark: #74233a;
  --brand-soft: #f8dfe4;
  --ink: #20151b;
  --muted: #75656d;
  --line: rgba(42, 23, 32, 0.08);
  --paper: #fff8f3;
  --chat-bg: #f6ebe6;
  --white: #fff;
  --green: #1f7a5a;
  --green-soft: #e6f4ee;
  --shadow: 0 30px 90px rgba(81, 36, 50, 0.18);
  --shadow-soft: 0 18px 48px rgba(81, 36, 50, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 2% 30%, rgba(183, 66, 95, .20), transparent 30rem),
    radial-gradient(circle at 100% 70%, rgba(223, 149, 93, .20), transparent 28rem),
    linear-gradient(135deg, #fff8f3 0%, #fcf5e9 48%, #f7e6e2 100%);
  color: var(--ink);
  font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 24rem;
  height: 24rem;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(74px);
  opacity: .68;
}

.ambient-one {
  top: 20%;
  left: -10rem;
  background: rgba(183, 66, 95, .26);
}

.ambient-two {
  right: -10rem;
  bottom: 12%;
  background: rgba(231, 160, 102, .34);
}

.intro-view,
.flow-view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 44px);
}

.intro-view {
  display: grid;
  place-items: center;
}

.content-grid,
.flow-layout {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 420px);
}

.intro-copy,
.desktop-support {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(183, 66, 95, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(91, 43, 57, .06);
}

.intro-copy h1,
.desktop-support h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 4.35vw, 4.35rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
}

.desktop-support h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.intro-copy h1 span,
.desktop-support h2 span {
  color: var(--brand);
}

.intro-copy p,
.desktop-support p {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.benefit-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.icon-bubble {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  grid-row: 1 / span 2;
  border-radius: 50%;
  background: rgba(183, 66, 95, .10);
  color: var(--brand);
}

.benefit-list strong {
  display: block;
  grid-column: 2;
  grid-row: 1;
  color: rgba(32, 21, 27, .86);
  font-size: .96rem;
}

.benefit-list small {
  display: block;
  grid-column: 2;
  grid-row: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.direct-whatsapp {
  display: inline-flex;
  margin-top: 28px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.direct-whatsapp:hover {
  color: var(--brand);
}

.phone-frame {
  position: relative;
  display: flex;
  width: min(100%, 390px);
  height: clamp(620px, 82vh, 720px);
  flex-direction: column;
  overflow: hidden;
  border: 10px solid #050405;
  border-radius: 42px;
  background: var(--white);
  box-shadow: 0 34px 90px rgba(35, 15, 24, .26);
}

.intro-phone {
  justify-self: center;
  min-height: 0;
  align-self: start;
  margin-top: 4px;
}

.intro-phone::before,
.flow-phone::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 50%;
  width: 92px;
  height: 16px;
  border-radius: 0 0 14px 14px;
  background: #050405;
  transform: translateX(-50%);
}

.phone-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 19px 16px 13px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)),
    url("atendente.webp") center / cover no-repeat;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(39, 12, 24, .22);
}

.phone-topbar strong,
.phone-topbar span {
  display: block;
}

.phone-topbar strong {
  font-size: .9rem;
  line-height: 1.1;
}

.phone-topbar span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .86);
  font-size: .7rem;
}

.phone-topbar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #75f1aa;
  box-shadow: 0 0 0 0 rgba(117, 241, 170, .7);
  animation: onlinePulse 1.8s ease-out infinite;
}

.phone-title {
  min-width: 0;
  flex: 1;
}

.reset-chat {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.1rem;
}

.phone-body,
.chat-area {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 18px 16px 22px;
  background:
    linear-gradient(rgba(255,255,255,.68), rgba(255,255,255,.68)),
    url("papeldeparede.webp") center / cover no-repeat;
}

.intro-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-chat .message {
  line-height: 1.45;
}

.intro-chat .message::after {
  content: "22:09";
  display: block;
  width: fit-content;
  margin: 5px 0 0 auto;
  color: rgba(117, 101, 109, .68);
  font-size: .65rem;
  font-weight: 700;
}

.safe-pill {
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(32, 21, 27, .06);
}

.chat-privacy-note {
  align-self: center;
  max-width: 88%;
  margin: 2px 0 0;
  color: rgba(117, 101, 109, .78);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.message {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.42;
  box-shadow: 0 8px 20px rgba(32, 21, 27, .06);
}

.message.bot {
  position: relative;
  margin-left: 42px;
  border-bottom-left-radius: 5px;
  background: #fff;
}

.message.bot::before {
  content: "";
  position: absolute;
  left: -42px;
  bottom: 0;
  width: 31px;
  height: 31px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: url("atendente.webp") center / cover no-repeat;
  box-shadow: 0 5px 14px rgba(32, 21, 27, .16);
}

.chat-start,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 30px rgba(183, 66, 95, .26);
  transition: transform .18s ease, box-shadow .18s ease;
}

.intro-actions,
.inline-start-action {
  align-self: flex-end;
  display: flex;
  width: min(230px, 86%);
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.intro-actions.actions-answered {
  display: none !important;
}

.chat-start {
  width: 100%;
  min-height: 42px;
  padding: 11px 14px;
  font-size: .82rem;
}

.secondary-start {
  border: 1px solid rgba(190, 55, 95, .32);
  background: rgba(255, 255, 255, .9);
  color: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(111, 62, 78, .1);
}

.secondary-start:hover {
  background: #fff;
  box-shadow: 0 14px 28px rgba(111, 62, 78, .14);
}

.button-primary:hover,
.chat-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(183, 66, 95, .32);
}

.message-revealed {
  animation: bubbleIn .24s ease both;
}

.flow-view {
  display: flex;
  align-items: center;
}

.flow-layout {
  grid-template-columns: minmax(0, .85fr) minmax(340px, 430px);
}

.flow-phone {
  justify-self: center;
  height: clamp(620px, 82vh, 720px);
  min-height: 0;
}

.progress-bar-wrapper {
  height: 4px;
  background: rgba(0, 0, 0, .06);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #f4a1b5, #fff1d1, #37bf7c);
  transition: width .45s ease;
}

#fluxo-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 84%;
  margin: 8px 0;
  padding: 11px 13px 7px;
  font-size: .94rem;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(32, 21, 27, .06);
  animation: bubbleIn .24s ease both;
}

.user-message {
  align-self: flex-end;
  margin-left: auto;
  border-radius: 18px 18px 5px 18px;
  background: #dcf8c6;
  color: #173d2d;
}

.user-message small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
  margin-top: 5px;
  color: rgba(23, 61, 45, .58);
  font-size: .68rem;
  font-weight: 700;
}

.read-checks {
  color: #34a7e8;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
}

.system-message {
  align-self: center;
  max-width: 92%;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}

.typing-indicator {
  display: inline-flex;
  width: fit-content;
  max-width: 84%;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
  padding: 13px 15px;
  border-radius: 18px 18px 18px 5px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 21, 27, .06);
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(117, 101, 109, .72);
  animation: typingDot 900ms infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 120ms;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 240ms;
}

.step {
  display: none;
}

.step-card {
  animation: bubbleIn .24s ease both;
}

.step-card.step-answered .button-group,
.step-card.step-answered .input-field,
.step-card.step-answered .step-content > .button-primary {
  display: none;
}

.step-image-wrapper {
  display: block;
  max-width: 84%;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 18px 18px 18px 5px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32, 21, 27, .07);
}

.step-image {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: cover;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 42px;
}

.step-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: url("atendente.webp") center / cover no-repeat;
  box-shadow: 0 5px 14px rgba(32, 21, 27, .16);
}

.step-kicker {
  display: none;
}

.step-label,
.final-card p {
  max-width: 86%;
  margin: 0;
  padding: 13px 15px;
  border-radius: 19px 19px 19px 6px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 8px 22px rgba(32, 21, 27, .07);
}

.message-time {
  display: block;
  width: fit-content;
  margin: 7px 0 0 auto;
  color: rgba(117, 101, 109, .62);
  font-size: .68rem;
  font-weight: 700;
}

.input-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(183, 66, 95, .18);
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  outline: none;
  padding: 0 15px;
  box-shadow: 0 8px 20px rgba(32, 21, 27, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-field:focus {
  border-color: rgba(183, 66, 95, .56);
  box-shadow: 0 0 0 4px rgba(183, 66, 95, .12);
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.button-secondary {
  display: inline-flex;
  justify-content: space-between;
  width: fit-content;
  max-width: 92%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(183, 66, 95, .28);
  border-radius: 17px 17px 5px 17px;
  background: rgba(255, 255, 255, .88);
  color: var(--brand-dark);
  font-size: .92rem;
  font-weight: 850;
  text-align: right;
  box-shadow: 0 7px 18px rgba(32, 21, 27, .05);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.button-secondary::after {
  content: "›";
  margin-left: 12px;
  opacity: .65;
}

.button-secondary:hover {
  transform: translateY(-1px);
  background: var(--brand);
  color: #fff;
}

.step-content > .button-primary {
  align-self: flex-end;
  min-height: 44px;
  margin-top: 2px;
  padding-inline: 18px;
}

.final-card .step-content {
  align-items: center;
  gap: 14px;
  padding-left: 0;
}

.final-card .step-content::before {
  display: none;
}

.final-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 900;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.final-card p {
  max-width: 100%;
  text-align: center;
}

.final-card .button-primary,
.final-card .final-whatsapp-link {
  width: min(100%, 260px);
  text-decoration: none;
}

.final-card button.button-primary {
  border: 1px solid rgba(183, 66, 95, .24);
  background: rgba(255, 255, 255, .92);
  color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(32, 21, 27, .05);
}

.loading-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 248, 243, .58);
  backdrop-filter: blur(8px);
}

.loading-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(183, 66, 95, .14);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.toast-message {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  max-width: min(360px, calc(100% - 32px));
  padding: 13px 15px;
  border-radius: 16px;
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.toast-error { background: #b4233c; }
.toast-success { background: var(--green); }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@keyframes onlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(117, 241, 170, .7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(117, 241, 170, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(117, 241, 170, 0);
    transform: scale(1);
  }
}

@media (max-width: 920px) {
  .intro-view,
  .flow-view {
    padding: 0;
  }

  .content-grid,
  .flow-layout {
    display: block;
    width: 100%;
  }

  .intro-copy,
  .desktop-support {
    display: none;
  }

  .phone-frame,
  .intro-phone,
  .flow-phone {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .chat-area,
  .phone-body {
    padding: 14px 12px max(22px, env(safe-area-inset-bottom));
  }

  .phone-topbar {
    min-height: 66px;
  }

  .safe-pill {
    font-size: .68rem;
  }
}

@media (min-width: 921px) and (max-height: 760px) {
  .intro-view,
  .flow-view {
    min-height: 720px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .phone-frame {
    height: clamp(590px, 82vh, 680px);
    width: min(100%, 360px);
  }

  .intro-phone {
    min-height: 0;
  }

  .intro-copy h1,
  .desktop-support h2 {
    font-size: clamp(2.35rem, 4vw, 3.75rem);
  }

  .intro-copy p,
  .desktop-support p {
    margin-top: 20px;
  }

  .benefit-list {
    margin-top: 22px;
  }
}

@media (max-width: 430px) {
  .phone-topbar {
    padding-inline: 13px;
  }

  .step-label,
  .final-card p {
    max-width: 92%;
    font-size: .96rem;
  }

  .button-secondary {
    max-width: 100%;
  }
}
