/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --pink: #FF6BB5;
  --blue: #4DB8FF;
  --text-light: #f7f7fd;
  --text-dark: #1f1f1f;
  --font-montserrat: 'Montserrat', sans-serif;
  --font-roboto: 'Roboto', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-roboto);
  background: #FFB3D9;
  color: var(--text-dark);
  overflow-x: hidden;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO / TELA INICIAL
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-screen {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px 60px;
  background: linear-gradient(135deg, #FFB3D9 0%, #FFC8E8 35%, #B8E2F5 70%, #7EC8F0 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Background gestante */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1584467735815-0a9a009e2701?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: brightness(0.9);
  z-index: 0;
  pointer-events: none;
}

/* Overlay claro */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.15));
  z-index: 1;
  pointer-events: none;
}

/* Card central */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
  animation: fadeInCard 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Logo */
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  width: 100%;
}

.hero-logo-img {
  display: block;
  margin: 0 auto;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Título */
.hero-title {
  font-family: var(--font-montserrat);
  color: #1a1a2e;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
  text-align: center;
  line-height: 1.2;
}

/* Subtítulo */
.hero-subtitle {
  color: #555;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  margin-bottom: 10px;
}

/* Badge de valor */
.hero-value-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(233, 30, 140, 0.06);
  border: 1.5px solid rgba(233, 30, 140, 0.22);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 2px;
  text-align: center;
}

.hero-value-badge strong {
  font-size: 0.85rem;
  font-weight: 800;
  color: #E91E8C;
}

/* Imagem gestante */
.gestantes-grid-single {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 200px;
  margin: 8px auto 4px;
  animation: fadeInImage 1s ease both;
}

.gestantes-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gestante-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.22));
}

/* Formulário */
.hero-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Input */
.hero-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #FF6BB5;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  font-family: var(--font-roboto);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 3px rgba(255, 107, 181, 0.1);
  -webkit-appearance: none;
  appearance: none;
}

.hero-input:focus {
  border-color: #4DB8FF;
  box-shadow: 0 0 0 4px rgba(77, 184, 255, 0.15);
}

.hero-input::placeholder {
  color: #bbb;
}

/* Botão principal */
.hero-button {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(90deg, #FF6BB5 0%, #4DB8FF 100%);
  cursor: pointer;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 18px rgba(255, 107, 181, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.hero-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 24px rgba(255, 107, 181, 0.45);
  transform: translateY(-1px);
}

.hero-button:active {
  transform: scale(0.98);
  filter: brightness(0.97);
}

/* ─── Desktop ≥ 640px ────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero-screen { padding: 32px 24px 72px; }
  .hero-inner  { padding: 28px 28px 22px; max-width: 420px; }
  .hero-logo   { margin-bottom: 18px; }
  .hero-title  { font-size: 1.85rem; margin-bottom: 8px; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 12px; }
  .hero-value-badge { font-size: 0.82rem; padding: 6px 20px; margin-bottom: 6px; }
  .hero-value-badge strong { font-size: 0.92rem; }
  .gestantes-grid-single { max-width: 185px; margin: 10px auto 4px; }
  .gestante-img { max-height: 160px; }
  .hero-form   { gap: 12px; margin-top: 14px; }
  .hero-button { font-size: 16px; padding: 16px; letter-spacing: 0.8px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MARQUEE FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.am-marquee-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(255,107,181,0.2), rgba(77,184,255,0.2));
  border-top: 2px solid #FF6BB5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  padding: 5px 0 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.marquee-track-wrapper {
  overflow: hidden;
  cursor: default;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover,
.am-marquee-footer:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-size: 9px;
  font-weight: 600;
  color: #000000;
  letter-spacing: 1.4px;
  padding-right: 80px;
  flex-shrink: 0;
}

.marquee-credit {
  text-align: center;
  margin-top: 3px;
  font-size: 9.5px;
  color: rgba(0,0,0,0.5);
  padding-bottom: 2px;
}

.marquee-credit-link {
  color: rgba(0,0,0,0.7);
  font-weight: 700;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

.am-chat-screen {
  height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #F9F1F6;
  max-width: 480px;
  margin: 0 auto;
}

/* Navbar */
.chat-navbar {
  background: linear-gradient(90deg, #FF6BB5, #4DB8FF);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(255,107,181,0.28);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  font-family: var(--font-montserrat);
  flex-shrink: 0;
}

.chat-user-info {
  flex: 1;
  min-width: 0;
}

.chat-user-name {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-montserrat);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-user-status {
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 5px #4ade80;
}

.chat-navbar-logo {
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 4px 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.chat-navbar-logo img {
  display: block;
  width: 72px;
  height: 44px;
  object-fit: contain;
}

/* Área de mensagens */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12px 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F9F1F6;
}

/* Bubble de bot */
.chat-bubble-bot {
  display: flex;
  justify-content: flex-start;
  animation: fadeInMsg 0.3s ease;
}

.chat-bubble-bot-inner {
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a1a;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Indicador de digitação */
.chat-typing {
  display: flex;
  justify-content: flex-start;
  animation: fadeInMsg 0.3s ease;
}

.chat-typing-inner {
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 12px 18px;
  display: flex;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF6BB5;
  display: inline-block;
  animation: dotBounce 1.4s infinite ease-in-out both;
}

/* Footer estático do chat */
.chat-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid rgba(255,107,181,0.15);
  padding: 8px 16px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.chat-footer-text {
  font-size: 10px;
  color: #bbb;
  margin: 0;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS DO CHAT
   ═══════════════════════════════════════════════════════════════════════════ */

.am-card {
  animation: fadeInMsg 0.3s ease;
  width: 100%;
}

.am-card-inner {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Cabeçalho visual dos cards */
.am-card-header {
  padding: 24px 20px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 160px;
}

.am-card-header--pink {
  background: linear-gradient(90deg, #FFC0E0 0%, #D4F0FF 50%, #B8E5FF 100%);
}

.am-card-header--purple {
  background: linear-gradient(160deg, #f3e5f5 0%, #e1bee7 50%, #ce93d8 100%);
}

/* Corpo do card */
.am-card-body {
  padding: 16px 16px 12px;
}

.am-card-body--padded {
  padding: 20px 18px 16px;
}

/* Botão padrão dos cards */
.am-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, #FF6BB5, #4DB8FF);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(255,107,181,0.28);
  transition: box-shadow 0.18s, transform 0.18s;
  font-family: var(--font-roboto);
  -webkit-tap-highlight-color: transparent;
}

.am-card-btn:hover {
  box-shadow: 0 6px 22px rgba(255,107,181,0.4);
  transform: translateY(-1px);
}

.am-card-btn:active {
  transform: scale(0.98);
}

/* Botão desabilitado */
.am-card-btn--disabled {
  background: #e0e0e0;
  color: #bbb;
  cursor: not-allowed;
  box-shadow: none;
}

/* Botão WhatsApp verde */
.am-card-btn--whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.am-card-btn--whatsapp:hover {
  box-shadow: 0 6px 22px rgba(37,211,102,0.5);
}

/* Alerta amarelo */
.am-card-alert {
  background: #fff8e1;
  border: 1px solid #ffcc02;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #444;
  line-height: 1.55;
}

/* Alerta rosa */
.am-card-alert--pink {
  background: linear-gradient(90deg, rgba(255,107,181,0.2), rgba(77,184,255,0.2));
  border: 2px solid #FF6BB5;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #444;
  line-height: 1.55;
}

/* Badge de valor do card */
.am-valor-badge {
  background: linear-gradient(90deg, rgba(255,107,181,0.25), rgba(77,184,255,0.25));
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 14px;
  border: 2px solid #FF6BB5;
}

/* Opções de trabalho */
.am-trabalho-options {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.am-trabalho-option {
  flex: 1;
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  padding: 14px 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-roboto);
  -webkit-tap-highlight-color: transparent;
}

.am-trabalho-option:hover {
  border-color: #FF6BB5;
}

.am-trabalho-option--selected-empregada {
  background: linear-gradient(135deg, rgba(255,107,181,0.2), rgba(77,184,255,0.15));
  border-color: #FF6BB5;
}

.am-trabalho-option--selected-desempregada {
  background: linear-gradient(135deg, rgba(255,107,181,0.2), rgba(77,184,255,0.15));
  border-color: #4DB8FF;
}

.am-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-radio-dot--pink { border-color: #FF6BB5; }
.am-radio-dot--blue { border-color: #4DB8FF; }

.am-radio-dot-inner {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF6BB5;
  display: none;
}

.am-radio-dot-inner--blue { background: #4DB8FF; }
.am-radio-dot-inner--visible { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   WHATSAPP FLUTUANTE
   ═══════════════════════════════════════════════════════════════════════════ */

.whatsapp-floating {
  position: fixed;
  z-index: 998;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 440px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-floating:hover {
  transform: translate(-50%, -2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

@media (max-width: 639px) {
  .whatsapp-floating {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    font-size: 14px;
    padding: 12px 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMAÇÕES
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeInImage {
  0%   { opacity: 0; transform: translateY(10px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}

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

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Acessibilidade ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
