/* Centro Reconstruir — presell light, estilo tela WhatsApp */

:root {
  --navy: #0d223f;
  --teal: #3e5f5e;
  --sand: #dbc7a6;
  --text: #111b21;
  --text-secondary: #667781;
  --muted: #8696a0;
  --page-bg: #f0f2f5;
  --page-bg-2: #e9edef;
  --wa-header: #075e54;
  --wa-dark: #128c7e;
  --wa-green: #25d366;
  --bubble-in: #ffffff;
  --bubble-out: #d9fdd3;
  --thread: #efe7dd;
  --composer-bg: #f0f2f5;
  --composer-input: #ffffff;
  --font: "Montserrat", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(18, 140, 126, 0.08), transparent 55%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.35rem 1.15rem 7rem;
}

.top {
  text-align: center;
  margin-bottom: 1rem;
}

.brand {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.brand__logo {
  width: clamp(156px, 44vw, 196px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(13, 34, 63, 0.12));
}

.brand__name {
  margin-top: 0.65rem;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}

.top__line {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* Phone frame — light, clean */
.phone__bezel {
  border-radius: 28px;
  padding: 8px;
  background: #fff;
  box-shadow:
    0 12px 40px rgba(13, 34, 63, 0.1),
    0 2px 8px rgba(13, 34, 63, 0.06),
    0 0 0 1px rgba(13, 34, 63, 0.06);
}

.chat {
  border-radius: 22px;
  overflow: hidden;
  background: var(--thread);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.chat__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(135deg, var(--wa-header), var(--wa-dark));
}

.chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d223f;
  border: 2px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.chat__who strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.chat__who span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Área de mensagens — wallpaper classic WhatsApp light */
.chat__thread {
  flex: 1;
  padding: 0.85rem 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background-color: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 20c4 2 6-1 8 2s-2 6 1 8 6-3 8 0-1 7 2 8 7-2 8 1-2 6 0 8 6-1 8 2M40 8c2 3 0 6 2 8s5-1 7 1 0 5 2 7 5 0 6 2M60 40c3 1 4-2 7 0s1 5 3 6 5-2 6 1-1 5 1 7' fill='none' stroke='%23d0c8bc' stroke-width='1' opacity='.55'/%3E%3C/svg%3E");
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Bolhas estilo WhatsApp light */
.bubble {
  max-width: 88%;
  padding: 0.5rem 0.65rem 0.3rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
  animation: pop 0.28s ease;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.bubble p {
  margin: 0;
}

.bubble--in {
  align-self: flex-start;
  background: var(--bubble-in);
  border-top-left-radius: 0;
}

.bubble--out {
  align-self: flex-end;
  background: var(--bubble-out);
  border-top-right-radius: 0;
}

.bubble time {
  display: block;
  text-align: right;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 8px;
  border-top-left-radius: 0;
  padding: 0.65rem 0.85rem;
  display: flex;
  gap: 4px;
  width: fit-content;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: blink 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.chat-replies {
  align-self: flex-start;
  width: 100%;
  max-width: 92%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: pop 0.28s ease;
}

.chat-replies__bubble {
  max-width: 88%;
  padding: 0.5rem 0.65rem 0.3rem;
  background: var(--bubble-in);
  color: var(--text);
  border-radius: 8px;
  border-top-left-radius: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.chat-replies__bubble time {
  display: block;
  text-align: right;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.chat-replies__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-left: 0.1rem;
}

.chat-reply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.chat-reply:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.chat-reply:active {
  transform: translateY(0);
}

.chat-reply--yes {
  background: var(--wa-green);
  color: #fff;
  border: 2px solid var(--wa-green);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.chat-reply--site {
  background: #fff;
  color: var(--wa-header);
  border: 2px solid #d1e7e0;
  box-shadow: 0 1px 3px rgba(11, 20, 26, 0.08);
}

.chat-reply--site:hover {
  background: #f0faf6;
  border-color: var(--wa-dark);
}

/* Composer light */
.chat__composer {
  padding: 0.5rem 0.6rem 0.65rem;
  background: var(--composer-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat__composer span {
  display: block;
  background: var(--composer-input);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.unlock {
  margin-top: 1.5rem;
  text-align: center;
  animation: unlock-in 0.5s ease;
}

.unlock[hidden] {
  display: none;
}

@keyframes unlock-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.unlock__text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  color: var(--navy);
}

.unlock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 1rem 1.25rem;
  background: var(--wa-green);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: cta-pulse 2.4s ease-in-out infinite;
  touch-action: manipulation;
}

.unlock__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  animation: none;
}

@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    transform: scale(1.015);
  }
}

.unlock__micro {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.unlock__site {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wa-header);
  text-decoration: none;
  border-bottom: 1px solid rgba(7, 94, 84, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.unlock__site:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.page-footer {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 6.5rem;
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.page-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-footer a:hover {
  color: var(--navy);
}

/* Widget WhatsApp */
.wa-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  pointer-events: none;
  font-family: var(--font);
}

.wa-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--wa-green);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
  pointer-events: auto;
}

.wa-fab:hover { transform: scale(1.08); }

.wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.wa-panel {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 34, 63, 0.16);
  animation: panel-in 0.3s ease;
  pointer-events: auto;
}

.wa-panel[hidden] { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.wa-header {
  background: linear-gradient(135deg, var(--wa-header), var(--wa-dark));
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-header__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wa-header__info { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.wa-header__info strong { font-size: 0.9rem; color: #fff; }
.wa-header__info span { font-size: 0.75rem; opacity: 0.9; display: flex; align-items: center; gap: 0.35rem; }
.wa-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.wa-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.wa-close:hover { background: rgba(255, 255, 255, 0.1); }

.wa-body {
  background: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c2 0 3 2 2 4l-1 2c-1 2 0 3 2 3h2c2 0 3 2 2 4' fill='none' stroke='%23d4ccc4' stroke-width='1' opacity='.4'/%3E%3C/svg%3E");
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 150px;
}

.wa-bubble {
  align-self: flex-start;
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 0.65rem 0.8rem 0.45rem;
  max-width: 90%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wa-bubble p { font-size: 0.875rem; color: #111b21; line-height: 1.4; }
.wa-bubble time { display: block; text-align: right; font-size: 0.65rem; color: #999; margin-top: 0.25rem; }

.wa-footer { padding: 0.85rem 1rem 1rem; background: #fff; text-align: center; }

.wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  background: var(--wa-green);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}

.wa-cta:hover {
  background: #1ebe57;
  transform: translateY(-1px);
}

.wa-micro { margin-top: 0.55rem; font-size: 0.72rem; color: #888; }

@media (max-width: 480px) {
  .wa-widget {
    right: 1rem;
    bottom: 1rem;
  }

  .wa-panel {
    width: calc(100vw - 2rem);
  }
}

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