/* ==========================================================================
   Fonte customizada da marca (logo) — Cocogoose Pro
   Os arquivos ficam em ./fonts/font-ebot-logo/
   Os nomes abaixo são exatamente os usados dentro do SVG do logo.
   ========================================================================== */

@font-face {
  font-family: "CocogooseProTrial-Bold";
  src: url("../fonts/font-ebot-logo/Cocogoose-Pro-Bold-trial.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CocogooseProTrial";
  src: url("../fonts/font-ebot-logo/Cocogoose-Pro-Regular-trial.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Atalho para usar a família da marca em outros textos, se necessário */
@font-face {
  font-family: "Cocogoose";
  src: url("../fonts/font-ebot-logo/Cocogoose-Pro-Bold-trial.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  /* As animações .reveal-left/.reveal-right deslocam elementos 40px para fora
     enquanto ainda não ativaram — evita o scroll horizontal transitório. */
  overflow-x: clip;
}

.clinical-page {
  background: #f6fafc;
  color: #485653;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: #ffffff;
  color: var(--dark);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(21, 55, 75, 0.18);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.clinical-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
}

.logo {
  /* o logo nunca deve ser comprimido pelo flex do header */
  flex: 0 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-link img,
.brand-link svg {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.clinical-header .nav-menu a {
  color: #263532;
  font-weight: 650;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.clinical-header .nav-menu a:hover,
.clinical-link:hover {
  color: var(--primary);
}

.wa-button {
  border: 0;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(43, 159, 232, 0.24);
}

.clinical-hero {
  /* cabe inteiro na dobra em qualquer monitor: altura travada + escala fluida */
  height: 100dvh;
  padding-top: clamp(84px, 12.5vh, 122px);
  padding-bottom: clamp(1.1rem, 4vh, 2.75rem);
  background:
    radial-gradient(circle at 74% 20%, rgba(43, 159, 232, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(43, 159, 232, 0.06), rgba(255, 255, 255, 0.96) 72%);
  overflow: hidden;
}

@media (min-width: 1025px) {
  .clinical-hero {
    zoom: 1.15;
  }
}

.clinical-hero .clinical-hero-grid {
  height: 100%;
  min-height: 0;
  padding-top: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 2.6vw, 3.25rem);
}

@media (min-width: 1025px) {
  .clinical-hero .hero-visual-row {
    width: 100%;
    justify-content: flex-start;
  }

  .clinical-hero .hero-doc-figure {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }
}

.clinical-badge {
  background: #ffffff;
  border: 1px solid rgba(43, 159, 232, 0.18);
  box-shadow: 0 12px 30px rgba(43, 159, 232, 0.08);
}

.hero-copy {
  max-width: 650px;
  margin: 2rem 0;
  color: #52625f;
  text-wrap: pretty;
}

/* escala fluida: tudo encolhe junto em telas baixas (herói sempre na dobra) */
.clinical-hero .hero-title {
  font-size: clamp(2.05rem, 1.95vw + 1.45vh, 3.15rem);
  line-height: 1.05;
}

.clinical-hero .hero-copy {
  max-width: 620px;
  margin: clamp(0.85rem, 2.1vh, 1.6rem) 0;
  font-size: clamp(0.95rem, 0.55vh + 0.62vw, 1.12rem);
  line-height: 1.55;
}

.clinical-hero .hero-proof {
  margin-top: clamp(1rem, 2.6vh, 1.9rem);
  gap: 0.7rem;
}

/* selos na mesma linha: menos padding e letra um degrau menor */
.clinical-hero .hero-badgeline {
  gap: 0.55rem;
}

.clinical-hero .hero-kicker {
  padding: 0.5rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.075em;
}

.clinical-hero .meta-seal {
  padding: 0.42rem 0.75rem;
  font-size: 0.72rem;
}

.clinical-hero .proof-chip {
  padding: clamp(0.62rem, 1.4vh, 0.95rem) 0.95rem;
}

.clinical-hero .proof-chip strong {
  font-size: clamp(1.02rem, 1.4vh + 0.3vw, 1.32rem);
}

.clinical-hero .proof-chip span {
  margin-top: 0.32rem;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.clinical-link {
  font-weight: 750;
  color: #273532;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-proof strong {
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

.clinical-hero-visual {
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

.phone-orbit {
  position: absolute;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 159, 232, 0.2), rgba(43, 159, 232, 0.06) 38%, transparent 68%);
  filter: blur(2px);
  animation: orbitPulse 6s ease-in-out infinite;
}

/* ---------------------------------------------------------------------------
   Herói: foto (médico + paciente) em recorte à esquerda do celular
   --------------------------------------------------------------------------- */
.hero-visual-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero-doc-figure {
  position: relative;
  /* foto grande, canto direito entrando atrás do celular */
  width: clamp(280px, 32vw, 560px);
  margin: -3% clamp(-64px, -3.5vw, -24px) 0 0;
  flex: 0 1 auto;
  z-index: 1;
}

/* moldura que recorta as margens transparentes da foto e arredonda a base */
.hero-doc-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 1.16;
  overflow: hidden;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
}

.hero-doc-frame img {
  position: absolute;
  /* recorte do original 3:2: corta só a margem transparente à esquerda,
     cabeças inteiras (topo do cabelo a 1,7% do arquivo) */
  left: -29%;
  top: -1%;
  height: 102%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 20px 32px rgba(18, 42, 58, 0.14));
}

/* bolha animada em gradiente da marca logo abaixo da imagem */
.hero-doc-bubble {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(100% - 21px);
  transform: translateX(-50%);
  width: 76%;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(110deg, #91d0d3, #40bdec 42%, #1a8bc7 74%, #91d0d3);
  background-size: 240% 100%;
  box-shadow: 0 18px 34px rgba(43, 159, 232, 0.32), inset 0 2px 6px rgba(255, 255, 255, 0.42);
  animation: heroBubbleFlow 5.2s ease-in-out infinite;
}

/* resplandecimento suave sob a bolha */
.hero-doc-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: calc(100% - 6px);
  transform: translateX(-50%);
  width: 112%;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(64, 189, 236, 0.5), rgba(43, 159, 232, 0) 70%);
  filter: blur(14px);
  animation: heroGlowPulse 4.4s ease-in-out infinite;
}

@keyframes heroBubbleFlow {
  0%, 100% { background-position: 0% 50%; transform: translateX(-50%) translateY(0); }
  50% { background-position: 100% 50%; transform: translateX(-50%) translateY(-4px); }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(0.94); }
  50% { opacity: 0.95; transform: translateX(-50%) scale(1.06); }
}

.clinical-phone {
  position: relative;
  /* altura fluida com proporção travada: o mock nunca distorce nem estoura a dobra */
  height: clamp(320px, 56vh, 540px);
  width: auto;
  aspect-ratio: 335 / 660;
  flex: 0 0 auto;
  /* container de tamanho: o conteúdo interno usa unidades cqw/cqh e escala junto do
     celular — fontes, câmera e borda mantêm o mesmo padrão de zoom em qualquer tela */
  container-type: size;
  border-radius: 54px;
  background: linear-gradient(145deg, #111716, #3a4642 48%, #0d1110);
  box-shadow:
    0 42px 80px rgba(18, 42, 58, 0.28),
    0 18px 30px rgba(43, 159, 232, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: rotateX(4deg) rotateY(-8deg) rotateZ(1deg);
  z-index: 2;
}

.phone-side-button {
  position: absolute;
  width: 1.5cqw;
  background: #0e1413;
  border-radius: 999px;
}

.phone-side-button-left {
  left: -1.5cqw;
  top: 25.5cqh;
  height: 13.7cqh;
}

.phone-side-button-right {
  right: -1.5cqw;
  top: 34.4cqh;
  height: 17.8cqh;
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 3.6cqw;
  z-index: 5;
  /* câmera menor e proporcional (antes: 118px fixos, cobrindo hora e sinal) */
  width: 36cqw;
  height: 9cqw;
  transform: translateX(-50%);
  background: #080b0b;
  border-radius: 0 0 4.5cqw 4.5cqw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-wa-icon {
  position: absolute;
  right: -10.2cqw;
  top: 13.7cqh;
  z-index: 8;
  width: 26.3cqw;
  height: 26.3cqw;
  border-radius: 8.8cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 34px 55px rgba(16, 24, 22, 0.3), 0 18px 34px rgba(37, 211, 102, 0.34), 0 0 0 0 rgba(37, 211, 102, 0.38);
  animation: heroWaFloat 4.6s ease-in-out infinite;
  overflow: hidden;
}

.hero-phone-wa-icon::before,
.floating-whatsapp::before {
  content: '';
  position: absolute;
  /* inset 0: o reflexo nunca escapa do círculo (o bg arredondado já recorta) */
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.56) 38%, transparent 58%);
  transform: translateX(-125%);
  animation: waLiquidShine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-phone-wa-icon::after,
.floating-whatsapp::after {
  content: '';
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.28);
  filter: blur(16px);
  opacity: 0.78;
  animation: waGlowPulse 3.6s ease-in-out infinite;
}

.hero-phone-wa-icon svg {
  position: relative;
  z-index: 1;
  width: 15.3cqw;
  height: 15.3cqw;
}

.phone-notch span {
  width: 19cqw;
  height: 1.7cqw;
  border-radius: 999px;
  background: #1d2523;
}

.phone-screen {
  position: absolute;
  /* borda mais fina e proporcional (antes: moldura fixa de 12px) */
  inset: 9px;
  inset: 3.6cqw;
  border-radius: 15.7cqw;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 159, 232, 0.16), transparent 38%),
    #eef6f9;
  display: flex;
  flex-direction: column;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  /* bolsas laterais da câmera folgadas: nada do status fica por baixo do islote */
  padding: 18px 28px 8px;
  padding: 6.6cqw 8cqw 2.9cqw;
  font-size: 0.72rem;
  font-size: 4.2cqw;
  font-weight: 800;
  color: #1c2927;
}

.phone-signal {
  color: var(--primary);
  letter-spacing: -0.12em;
}

.phone-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  gap: 4.4cqw;
  margin: 0 12px;
  margin: 0 4.4cqw;
  padding: 16px;
  padding: 5.8cqw;
  border-radius: 26px;
  border-radius: 9.5cqw;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 26px rgba(26, 64, 89, 0.08);
}

.phone-chat-header img {
  width: 42px;
  height: 42px;
  width: 15.3cqw;
  height: 15.3cqw;
  border-radius: 15px;
  border-radius: 5.5cqw;
  padding: 7px;
  padding: 2.55cqw;
  background: rgba(43, 159, 232, 0.12);
}

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

.phone-chat-header strong {
  color: #15211f;
  font-size: 0.96rem;
  font-size: 5.6cqw;
}

.phone-chat-header span {
  color: #5f7470;
  font-size: 0.72rem;
  font-size: 4.2cqw;
}

.phone-chat-body {
  position: relative;
  flex: 1;
  padding: 36px 16px 3px;
  padding: 13.1cqw 5.8cqw 1.2cqw;
  overflow: hidden;
  isolation: isolate;
}

.phone-chat-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(43, 159, 232, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
}

.phone-chat-body::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, #eef6f9 0%, rgba(238, 246, 249, 0) 10%, rgba(238, 246, 249, 0) 84%, #eef6f9 100%);
}

.phone-chat-track {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  gap: 2.9cqw;
  justify-content: flex-start;
  padding: 48px 0 56px;
  padding: 17.5cqw 0 20.4cqw;
  animation: phoneChatStream 17s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}

.phone-message,
.phone-typing {
  position: relative;
  max-width: 78%;
  padding: 0 14px;
  padding: 0 5.1cqw;
  border-radius: 18px;
  border-radius: 6.6cqw;
  font-size: 0.8rem;
  font-size: 4.7cqw;
  line-height: 1.38;
  box-shadow: 0 12px 28px rgba(33, 68, 86, 0.12);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(12px) scale(0.96) translateZ(0);
  will-change: opacity, transform, max-height, padding;
}

.phone-message {
  animation-duration: 17s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.phone-message.bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1c2927;
  border-bottom-left-radius: 5px;
  box-shadow: 0 10px 24px rgba(33, 68, 86, 0.1);
}

.phone-message::after {
  content: '';
  position: absolute;
  bottom: 6px;
  bottom: 2.2cqw;
  width: 7px;
  width: 2.55cqw;
  height: 7px;
  height: 2.55cqw;
  transform: rotate(45deg);
}

.phone-message.bot::after {
  left: -3px;
  background: #ffffff;
}

.phone-message.user {
  align-self: flex-end;
  background: #dff1fb;
  color: #102d3f;
  border: 1px solid rgba(43, 159, 232, 0.2);
  border-bottom-right-radius: 5px;
}

.phone-message.user::after {
  right: -3px;
  background: #dff1fb;
  border-top: 1px solid rgba(43, 159, 232, 0.2);
  border-right: 1px solid rgba(43, 159, 232, 0.2);
}

.phone-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  gap: 1.8cqw;
  width: fit-content;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(33, 68, 86, 0.1);
  animation-duration: 17s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.phone-typing.user-typing {
  align-self: flex-end;
  background: #dff1fb;
  border: 1px solid rgba(43, 159, 232, 0.16);
}

.msg-1 { animation-name: phoneMsg1; }
.type-1 { animation-name: phoneType1; }
.msg-2 { animation-name: phoneMsg2; }
.type-2 { animation-name: phoneType2; }
.msg-3 { animation-name: phoneMsg3; }
.type-3 { animation-name: phoneType3; }
.msg-4 { animation-name: phoneMsg4; }
.type-4 { animation-name: phoneType4; }
.msg-5 { animation-name: phoneMsg5; }
.type-5 { animation-name: phoneType5; }
.msg-6 { animation-name: phoneMsg6; }
.type-6 { animation-name: phoneType6; }

.phone-typing.user-typing span {
  background: #4f8baa;
}

.phone-typing span {
  width: 7px;
  width: 2.55cqw;
  height: 7px;
  height: 2.55cqw;
  border-radius: 50%;
  background: #7c908c;
  animation: typingDot 1s ease-in-out infinite;
}

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

.phone-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 12px;
  margin: 0 4.4cqw 4.4cqw;
  padding: 0.8rem 0.9rem 0.8rem 1rem;
  padding: 4.7cqw 5.3cqw 4.7cqw 5.8cqw;
  border-radius: 24px;
  border-radius: 8.8cqw;
  background: rgba(255, 255, 255, 0.9);
  color: #879591;
  font-size: 0.82rem;
  font-size: 4.8cqw;
  box-shadow: inset 0 0 0 1px rgba(43, 159, 232, 0.08);
}

.phone-input-bar strong {
  width: 34px;
  height: 34px;
  width: 12.4cqw;
  height: 12.4cqw;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
}

.section-heading {
  margin-bottom: 4rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 4rem;
  align-items: end;
}

.stacked-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  max-width: 920px;
}

.stacked-heading.text-center {
  align-items: center;
}

.stacked-heading .body-large {
  max-width: 760px;
  margin: 0;
}

.compact-heading {
  max-width: 780px;
  margin-inline: auto;
}

.compact-heading .body-large {
  margin-top: 1rem;
}

.clinical-pain-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.clinical-pain-card {
  position: relative;
  min-height: 250px;
  padding: 2rem;
  overflow: hidden;
}

.clinical-pain-card.featured {
  background: #263532;
  color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1.5rem);
}

.clinical-pain-card.featured h3 {
  color: #ffffff;
}

.clinical-pain-card h3,
.flow-step h3,
.rollout-grid h3 {
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.pain-index {
  display: block;
  color: var(--primary);
  font-weight: 900;
  font-size: 2.7rem;
  line-height: 1;
  opacity: 0.24;
  margin-bottom: 2rem;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(43, 159, 232, 0.16);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(33, 68, 86, 0.08);
}

.flow-step {
  min-height: 280px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.86);
}

.flow-step span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 850;
  margin-bottom: 2.5rem;
}

.clinical-metrics {
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 250, 252, 0.82), rgba(238, 247, 251, 0.9)),
    url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1800&q=80') center / cover;
  background-attachment: fixed;
}

.metric-grid {
  margin-top: 3rem;
}

.metric-card {
  border-top: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 24px 65px rgba(21, 55, 75, 0.14);
}

.metric-card .h1 {
  font-variant-numeric: tabular-nums;
}

.metric-title {
  color: var(--dark);
  font-weight: 800;
  margin: 0.5rem 0;
}

.security-section {
  background: linear-gradient(135deg, #263532 0%, #15201e 100%);
  overflow: hidden;
}

.security-copy {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.security-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* o selo fica alinhado aos botões (altura equivalente) */
.security-actions .meta-seal {
  padding-block: 0.62rem;
}

.security-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.security-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.security-grid .h2,
.security-grid .text-micro {
  color: #ffffff;
}

.security-grid .text-micro {
  width: fit-content;
  color: var(--primary);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(43, 159, 232, 0.14);
  border: 1px solid rgba(43, 159, 232, 0.24);
}

.security-list {
  display: grid;
  gap: 1rem;
}

.security-list div {
  display: grid;
  grid-template-columns: 52px 190px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.security-icon,
.rollout-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(43, 159, 232, 0.12);
  box-shadow: inset 0 0 0 1px rgba(43, 159, 232, 0.16);
}

.security-icon svg,
.rollout-icon svg {
  width: 27px;
  height: 27px;
}

.security-list strong {
  color: #ffffff;
}

.security-list span {
  color: rgba(255, 255, 255, 0.72);
}

.audience-section {
  background: #ffffff;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.audience-card {
  position: relative;
  min-height: 390px;
  padding: 2rem;
  border-radius: 32px;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(33, 68, 86, 0.12);
}

.audience-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 20, 24, 0.08), rgba(9, 20, 24, 0.82));
}

.audience-card > * {
  position: relative;
  z-index: 1;
}

.audience-card span {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audience-card h3 {
  max-width: 520px;
  margin-bottom: 0.85rem;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.audience-card p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.public-care {
  background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1200&q=80');
}

.private-care {
  background-image: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1200&q=80');
}

.partners-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.partner-card {
  min-height: 100%;
  padding: 1rem;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1rem;
  align-items: center;
  color: #263532;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(43, 159, 232, 0.12);
  box-shadow: 0 18px 44px rgba(33, 68, 86, 0.06);
}

.partner-card img {
  width: 86px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(33, 68, 86, 0.12);
}

.partner-card span {
  line-height: 1.25;
}

.testimonials-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(43, 159, 232, 0.13), transparent 32%),
    linear-gradient(180deg, #ffffff, #f1f8fb);
}

.testimonials-swiper {
  overflow: visible;
  padding: 0.5rem 0 4rem;
}

.testimonial-card {
  height: auto;
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) 1fr;
  gap: 1.5rem;
  padding: 1rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 65px rgba(33, 68, 86, 0.12);
}

.testimonial-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 24px;
}

.testimonial-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1rem 1rem 0;
}

.testimonial-card span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.testimonial-card p {
  color: #263532;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35;
  font-weight: 750;
  text-wrap: pretty;
}

.testimonial-card strong {
  margin-top: 1.5rem;
  color: #5f706c;
  font-size: 0.95rem;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonial-prev,
.testimonial-next {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #263532;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.testimonials-controls .swiper-pagination {
  position: static;
  width: auto;
}

.testimonials-controls .swiper-pagination-bullet-active {
  background: var(--primary);
}

.rollout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.rollout-grid article {
  padding: 2rem;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(33, 68, 86, 0.07);
}

.rollout-icon {
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, rgba(43, 159, 232, 0.14), rgba(43, 159, 232, 0.05));
}

.rollout-grid span {
  color: var(--primary);
  font-weight: 850;
  display: block;
  margin-bottom: 2rem;
}

.demo-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fafc, #eef7fb);
}

.demo-chat-header {
  background: rgba(255,255,255,0.82);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(43, 159, 232, 0.12);
}

.demo-avatar {
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(43, 159, 232, 0.22);
}

/* badge da mensagem: só a logo, sem fundo azul */
.demo-message-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}

.demo-avatar {
  width: 48px;
  height: 48px;
}

.demo-avatar img {
  width: 28px;
}

.demo-chat-header h3,
.demo-chat-header p {
  margin: 0;
}

.demo-chat-header h3 {
  font-size: 1.1rem;
  color: var(--dark);
}

.demo-chat-header p {
  font-size: 0.85rem;
  color: #66736f;
}

.demo-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.demo-message-row {
  display: flex;
  gap: 0.75rem;
  max-width: 84%;
}

.demo-message-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.demo-message-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.demo-message {
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.5;
}

.demo-chat-input {
  background: rgba(255,255,255,0.82);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(43, 159, 232, 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-chat-input input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.94);
  font-size: 1rem;
  outline: none;
  color: var(--dark);
}

.demo-chat-input input:focus {
  border-color: rgba(43, 159, 232, 0.48);
  box-shadow: 0 0 0 4px rgba(43, 159, 232, 0.1);
}

.demo-chat-input button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(43, 159, 232, 0.28);
}

.demo-chat-count {
  text-align: center;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #71807c;
  background: rgba(255,255,255,0.82);
}

.final-cta-restored {
  background: linear-gradient(135deg, var(--dark) 0%, #1a252f 100%);
  overflow: hidden;
  margin-bottom: 0;
}

.final-cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.final-cta-content {
  flex: 3;
  min-width: 350px;
  text-align: left;
}

.final-cta-content .h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.final-cta-content .body-large {
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
}

.cta-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.cta-button-wrapper .text-small {
  color: rgba(255, 255, 255, 0.7);
}

.final-button {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
}

.final-cta-robot {
  flex: 0.7;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.robot-icon-container {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  z-index: 10;
}

.robot-icon-container img:not(.pulse-layer) {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.7));
}

.pulse-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  animation: smoothPulse 4.5s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  opacity: 0;
}

.pulse-layer-2 {
  animation-delay: 2.25s;
}

.restored-wa-stack {
  position: relative;
  width: 100%;
  max-width: 290px;
  height: 165px;
}

.restored-wa-bubble {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: #ffffff;
  color: #111b21;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.35;
  transform-origin: top center;
  will-change: transform, opacity, filter;
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.8), 0 20px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
  animation: restoredBubbleStack 6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.restored-wa-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 0;
  border-right: 10px solid #ffffff;
  border-bottom: 14px solid transparent;
}

.bubble-a { animation-delay: 0s; }
.bubble-b { animation-delay: -2s; }
.bubble-c { animation-delay: -4s; }

.clinical-footer-restored {
  background: var(--dark-header);
  color: #999;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-restored-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.footer-restored-grid > div {
  flex: 1;
  min-width: 150px;
}

/* E-mails/URLs sem espaço não quebravam e estouravam o rodapé em telas médias */
.footer-restored-grid * {
  overflow-wrap: anywhere;
}

.footer-brand-block {
  flex: 1.5 !important;
  min-width: 250px !important;
}

.footer-brand-block img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.footer-brand-block p {
  max-width: 300px;
  line-height: 1.6;
}

.footer-restored-grid h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-restored-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-restored-grid a,
.footer-restored-grid button {
  color: inherit;
  transition: color 0.2s ease;
  padding: 0;
  text-align: left;
}

.footer-restored-grid a:hover,
.footer-restored-grid button:hover {
  color: #ffffff;
}

.footer-restored-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-restored-bottom div:last-child {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.floating-whatsapp {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.52);
  font-weight: 850;
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.32), 0 10px 24px rgba(16, 24, 22, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(37, 211, 102, 0.38), 0 12px 28px rgba(16, 24, 22, 0.18);
}

.floating-whatsapp svg {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
}

.floating-whatsapp span {
  position: relative;
  z-index: 1;
}

.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 14, 15, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pdf-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pdf-modal-card {
  width: min(1040px, 96vw);
  height: min(820px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  transform: translateY(22px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdf-modal-overlay.active .pdf-modal-card {
  transform: translateY(0) scale(1);
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(43, 159, 232, 0.12);
}

.pdf-modal-header h3 {
  margin: 0;
  color: var(--dark);
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pdf-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #edf5f8;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
}

.pdf-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #f4f7f8;
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.86; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes heroWaFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(3deg); }
}

@keyframes waLiquidShine {
  0%, 28% { transform: translateX(-125%) skewX(-16deg); opacity: 0; }
  42% { opacity: 0.85; }
  62%, 100% { transform: translateX(125%) skewX(-16deg); opacity: 0; }
}

@keyframes waGlowPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.48; }
  50% { transform: scale(1.14); opacity: 0.9; }
}

@keyframes phoneChatStream {
  /* mesmo desenho em qualquer tamanho de celular: deslocamentos em cqw */
  0% { opacity: 0; transform: translateY(33.6cqw); }
  6% { opacity: 1; transform: translateY(29.9cqw); }
  18% { transform: translateY(12.4cqw); }
  32% { transform: translateY(-6.6cqw); }
  46% { transform: translateY(-26.3cqw); }
  60% { transform: translateY(-46.7cqw); }
  74% { opacity: 1; transform: translateY(-65.7cqw); }
  86% { opacity: 1; transform: translateY(-79.6cqw); }
  94% { opacity: 1; transform: translateY(-79.6cqw); }
  100% { opacity: 0; transform: translateY(-84.7cqw); }
}

@keyframes phoneMsg1 {
  0%, 7% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(4.4cqw) scale(0.96); }
  11%, 94% { opacity: 1; max-height: 120px; max-height: 43.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 120px; max-height: 43.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(-2.9cqw) scale(0.98); }
}

@keyframes phoneMsg2 {
  0%, 20% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(4.4cqw) scale(0.96); }
  24%, 94% { opacity: 1; max-height: 90px; max-height: 32.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 90px; max-height: 32.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(-2.9cqw) scale(0.98); }
}

@keyframes phoneMsg3 {
  0%, 33% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(4.4cqw) scale(0.96); }
  37%, 94% { opacity: 1; max-height: 100px; max-height: 36.5cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 100px; max-height: 36.5cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(-2.9cqw) scale(0.98); }
}

@keyframes phoneMsg4 {
  0%, 47% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(4.4cqw) scale(0.96); }
  51%, 94% { opacity: 1; max-height: 90px; max-height: 32.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 90px; max-height: 32.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(-2.9cqw) scale(0.98); }
}

@keyframes phoneMsg5 {
  0%, 61% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(4.4cqw) scale(0.96); }
  65%, 94% { opacity: 1; max-height: 120px; max-height: 43.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 120px; max-height: 43.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(-2.9cqw) scale(0.98); }
}

@keyframes phoneMsg6 {
  0%, 76% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(4.4cqw) scale(0.96); }
  80%, 94% { opacity: 1; max-height: 90px; max-height: 32.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 90px; max-height: 32.8cqw; padding-top: 0.74rem; padding-bottom: 0.74rem; padding-top: 4.3cqw; padding-bottom: 4.3cqw; transform: translateY(-2.9cqw) scale(0.98); }
}

@keyframes phoneType1 {
  0%, 2% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(3.6cqw) scale(0.96);
  }
  4%, 8% {
    opacity: 1;
    max-height: 42px;
    max-height: 15.3cqw;
    padding-top: 0.64rem;
    padding-bottom: 0.64rem;
    padding-top: 3.75cqw;
    padding-bottom: 3.75cqw;
    transform: translateY(0) scale(1);
  }
  11%, 100% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-6px) translateY(-2.2cqw) scale(0.98);
  }
}

@keyframes phoneType2 {
  0%, 15% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(3.6cqw) scale(0.96);
  }
  18%, 21% {
    opacity: 1;
    max-height: 42px;
    max-height: 15.3cqw;
    padding-top: 0.64rem;
    padding-bottom: 0.64rem;
    padding-top: 3.75cqw;
    padding-bottom: 3.75cqw;
    transform: translateY(0) scale(1);
  }
  24%, 100% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-2.2cqw) scale(0.98);
  }
}

@keyframes phoneType3 {
  0%, 28% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(3.6cqw) scale(0.96); }
  31%, 34% { opacity: 1; max-height: 42px; max-height: 15.3cqw; padding-top: 0.64rem; padding-bottom: 0.64rem; padding-top: 3.75cqw; padding-bottom: 3.75cqw; transform: translateY(0) scale(1); }
  37%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-2.2cqw) scale(0.98); }
}

@keyframes phoneType4 {
  0%, 42% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(3.6cqw) scale(0.96); }
  45%, 48% { opacity: 1; max-height: 42px; max-height: 15.3cqw; padding-top: 0.64rem; padding-bottom: 0.64rem; padding-top: 3.75cqw; padding-bottom: 3.75cqw; transform: translateY(0) scale(1); }
  51%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-2.2cqw) scale(0.98); }
}

@keyframes phoneType5 {
  0%, 56% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(3.6cqw) scale(0.96); }
  59%, 62% { opacity: 1; max-height: 42px; max-height: 15.3cqw; padding-top: 0.64rem; padding-bottom: 0.64rem; padding-top: 3.75cqw; padding-bottom: 3.75cqw; transform: translateY(0) scale(1); }
  65%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-2.2cqw) scale(0.98); }
}

@keyframes phoneType6 {
  0%, 71% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(3.6cqw) scale(0.96); }
  74%, 77% { opacity: 1; max-height: 42px; max-height: 15.3cqw; padding-top: 0.64rem; padding-bottom: 0.64rem; padding-top: 3.75cqw; padding-bottom: 3.75cqw; transform: translateY(0) scale(1); }
  80%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-2.2cqw) scale(0.98); }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-doc-bubble,
  .hero-doc-glow {
    animation: none;
  }
}

@keyframes smoothPulse {
  0% { transform: scale(0.9); opacity: 0.6; filter: drop-shadow(0 0 15px var(--primary)) blur(0); }
  100% { transform: scale(1.7); opacity: 0; filter: drop-shadow(0 0 35px var(--primary)) blur(4px); }
}

@keyframes restoredBubbleStack {
  0%, 6% {
    opacity: 0;
    transform: translateY(128px) scale(0.84) translateZ(-20px);
    filter: blur(3px);
    z-index: 1;
  }
  12%, 34% {
    opacity: 0.3;
    transform: translateY(106px) scale(0.88) translateZ(-20px);
    filter: blur(2.4px);
    z-index: 1;
  }
  42%, 64% {
    opacity: 0.62;
    transform: translateY(56px) scale(0.94) translateZ(10px);
    filter: blur(1px);
    z-index: 2;
  }
  72%, 92% {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(60px);
    filter: blur(0);
    z-index: 3;
  }
  100% {
    opacity: 0;
    transform: translateY(-36px) scale(0.98) translateZ(20px);
    filter: blur(0.8px);
    z-index: 3;
  }
}

@media (max-width: 1100px) {
  .split-heading,
  .security-grid,
  .clinical-pain-grid,
  .flow-rail,
  .rollout-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clinical-pain-card.featured {
    transform: none;
  }
}

/* herói apertado: encolhe a foto antes de empilhar */
@media (max-width: 1260px) {
  .hero-doc-figure {
    width: clamp(230px, 26vw, 380px);
    margin-right: clamp(-44px, -3vw, -18px);
  }
}

/* a partir de 1024px o herói empilha: foto acima do celular */
@media (max-width: 1024px) {
  .clinical-hero {
    height: auto;
  }

  .clinical-hero .clinical-hero-grid {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .clinical-hero-visual {
    height: auto;
    padding: 1.5rem 0 0;
  }

  .hero-visual-row {
    flex-direction: column;
    gap: 2.2rem;
  }

  .hero-doc-figure {
    width: clamp(210px, 46vw, 330px);
    margin: 0;
  }

  .clinical-phone {
    height: clamp(500px, 74vh, 655px);
  }
}

@media (max-width: 768px) {
  .clinical-hero {
    padding-top: 112px;
  }

  .stacked-heading {
    gap: 1.15rem;
  }

  .clinical-hero-grid {
    min-height: auto;
    text-align: left;
  }

  .clinical-hero-grid .badge {
    margin-left: 0;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .clinical-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .clinical-hero-visual {
    min-height: 600px;
  }

  .clinical-metrics {
    background-attachment: scroll;
  }

  .clinical-phone {
    width: min(315px, 86vw);
    height: min(620px, 168vw);
    transform: rotateX(0deg) rotateY(0deg);
  }

  .mac-mouse-pointer {
    transform: scale(0.84);
  }

  .clinical-pain-grid,
  .flow-rail,
  .rollout-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-list div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .security-section {
    padding-top: 5rem;
    padding-bottom: 5.5rem;
  }

  .security-grid {
    gap: 3rem;
  }

  .security-grid > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .security-grid .text-micro {
    width: fit-content;
    color: var(--primary);
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(43, 159, 232, 0.14);
    border: 1px solid rgba(43, 159, 232, 0.24);
  }

  .security-grid .body-large,
  .security-copy {
    margin: 0;
  }

  .audience-grid,
  .partners-strip {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .testimonial-card img {
    min-height: 0;
    height: auto;
  }

  .testimonial-card div {
    padding: 0.5rem 0.5rem 1rem;
  }

  .audience-card {
    min-height: 340px;
  }

  .final-cta-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .final-cta-content {
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-button-wrapper {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .clinical-hero-visual {
    min-height: 0;
    padding-top: 0.75rem;
  }

  .hero-visual-row {
    gap: 2rem;
  }

  .hero-doc-figure {
    width: clamp(190px, 52vw, 240px);
  }

  .clinical-phone {
    border-radius: 42px;
  }

  /* tela proporcional à moldura menor no mobile (42px externo − borda ≈ 3.6cqw) */
  .phone-screen {
    border-radius: 30px;
  }

  .floating-whatsapp {
    right: 1rem;
    bottom: 1rem;
    padding: 0.78rem 0.9rem;
  }

  .floating-whatsapp span {
    display: none;
  }

  .pdf-modal-overlay {
    padding: 0.75rem;
  }

  .pdf-modal-card {
    height: 88vh;
    border-radius: 22px;
  }

  .pdf-modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-card {
    grid-template-columns: 74px 1fr;
  }

  .partner-card img {
    width: 74px;
    border-radius: 18px;
  }

  .clinical-pain-card,
  .flow-step,
  .rollout-grid article {
    padding: 1.5rem;
  }
}
