:root {
  --azul-base: #13243C;
  --azul-profundo: #0A1524;
  --azul-clinico: #2F5D8C;
  --teal: #0FA3A3;
  --teal-hover: #13B5B5;
  --gelo: #E7EDF4;
  --texto: #FFFFFF;
  --texto-2: #B7C3D1;
  --linha: rgba(231, 237, 244, 0.12);
  --erro: #FF9B9B;
  --radius: 14px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--azul-base); color: var(--texto); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 163, 163, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 163, 163, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}

h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px;
}

/* Topo */
.hero { --hero-pt: 64px; position: relative; isolation: isolate; overflow: hidden; padding-block: var(--hero-pt) 64px; }
.hero__grid {
  position: relative; z-index: 1; display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "form" "bottom";
}
/* Mobile: o wrapper "some" da caixa (display:contents) pra que top/bottom
   entrem direto nas áreas do grid, com o form encaixado entre eles. */
.hero__text { display: contents; }
.hero__copy-top { grid-area: top; }
.form-card { grid-area: form; }
.hero__copy-bottom { grid-area: bottom; }
.lead { color: var(--texto-2); font-size: 1.125rem; margin: 16px 0 0; max-width: 60ch; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: baseline; color: var(--texto-2); }
.facts .mono { color: var(--teal); font-size: 0.75rem; min-width: 88px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.08em; }

/* Arte de fundo do topo (decorativa): foto em duotone + leque de ultrassom */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--azul-base); }
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; }
.hero__gridlines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 163, 163, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 163, 163, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 45% at 50% 18%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 45% at 50% 18%, #000 0%, transparent 100%);
}
.hero__art { position: absolute; }
.hero__fan { display: block; width: 100%; height: auto; overflow: visible; }
.hero__fan-edge { fill: rgba(47, 93, 140, 0.08); stroke: rgba(231, 237, 244, 0.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero__fan-arc { fill: none; stroke: rgba(231, 237, 244, 0.14); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.hero__fan-axis { fill: none; stroke: rgba(231, 237, 244, 0.08); stroke-width: 1; stroke-dasharray: 4 8; vector-effect: non-scaling-stroke; }
.hero__needle { stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 8 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero__target { fill: none; stroke: var(--gelo); stroke-opacity: 0.7; stroke-width: 1.25; }
.hero__target circle { vector-effect: non-scaling-stroke; }
.hero__target-ring { stroke: var(--teal); stroke-opacity: 0.6; transform-box: fill-box; transform-origin: center; }
.hero__target-dot { fill: var(--teal); stroke: none; }
.hero__sweep { transform: translateY(380px); }
.hero__needle, .hero__target, .hero__chips { display: none; }
.hero__chips { gap: 8px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto);
  padding: 7px 10px 7px 9px; border-radius: 6px;
  background: rgba(10, 21, 36, 0.8); border: 1px solid rgba(231, 237, 244, 0.16);
}
.hero__chip::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--teal); flex-shrink: 0; }

/* Celular: faixa de foto visível no topo (mãos, sonda, paciente), escurecendo só onde há texto */
@media (max-width: 959.98px) {
  .hero { --hero-pt: 72px; }
  .hero__gridlines { display: none; }
  .hero__photo { inset: 0 0 auto 0; height: 560px; }
  .hero__photo img { /* recorte aproximado na mesa: sonda, mãos e paciente na faixa do topo */
    inset: -400px auto auto -30%; width: 150%; height: auto; object-fit: fill;
    filter: brightness(1.3);
  }
  .hero__photo::after {
    background:
      linear-gradient(180deg,
        rgba(19, 36, 60, 0.12) 0, rgba(19, 36, 60, 0.22) 150px, rgba(19, 36, 60, 0.4) 210px,
        rgba(19, 36, 60, 0.62) 320px, rgba(19, 36, 60, 0.8) 440px, var(--azul-base) 540px),
      linear-gradient(90deg, rgba(19, 36, 60, 0.3) 0%, rgba(19, 36, 60, 0) 70%);
  }
  .hero__copy-top .label { /* rótulo pequeno em teal ganha fundo próprio, como os chips de leitura; compacto para caber em uma linha */
    display: inline; padding: 4px 6px; line-height: 2; border-radius: 5px;
    background: rgba(10, 21, 36, 0.92); -webkit-box-decoration-break: clone; box-decoration-break: clone;
    font-size: 0.66rem; letter-spacing: 0.04em;
  }
  .hero__copy-top .label + h1 { margin-top: 14px; }
  .hero__art { top: 14px; right: 10px; width: 148px; opacity: 0.85; }
}

@media (min-width: 960px) {
  .hero { --hero-pt: 88px; padding-block: var(--hero-pt) 104px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    grid-template-areas: "text form";
    column-gap: 48px; align-items: start;
  }
  /* Desktop: o wrapper volta a existir como caixa única (coluna esquerda),
     empilhando top+bottom em fluxo normal, sem acoplar a altura da linha
     do grid à altura do card (que fica ao lado, na coluna direita). */
  .hero__text { display: block; grid-area: text; }

  /* foto só à direita, surgindo do sólido; funde com a próxima seção na base */
  .hero__photo { inset: 0 0 0 auto; width: min(62%, 980px); height: 100%; }
  .hero__photo img { object-position: 50% 32%; opacity: 1; }
  .hero__photo::after {
    background:
      linear-gradient(90deg, var(--azul-base) 0%, var(--azul-base) 16%, rgba(19, 36, 60, 0.8) 34%, rgba(19, 36, 60, 0.5) 60%, rgba(19, 36, 60, 0.42) 100%),
      linear-gradient(180deg, rgba(19, 36, 60, 0.45) 0%, transparent 22%, transparent 55%, var(--azul-base) 100%);
  }
  .hero__gridlines {
    display: block;
    -webkit-mask-image: radial-gradient(ellipse 26% 50% at 78% 30%, #000 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 26% 50% at 78% 30%, #000 0%, transparent 100%);
  }
  .hero__art {
    top: 96px; left: auto; transform: none; opacity: 0.45; -webkit-mask-image: none; mask-image: none;
    right: max(20px, calc((100% - 1120px) / 2 + 12px)); width: min(34vw, 440px);
  }
  .hero__needle, .hero__target { display: inline; }
  /* chips decorativos sobem para a faixa vazia acima do card, fora da coluna do formulário */
  .hero__chips {
    display: flex; position: absolute; top: -72px; right: 0;
    justify-content: flex-end; padding-left: 0; margin-top: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__sweep { animation: fan-sweep 7s linear infinite; }
  .hero__needle { animation: needle-dash 1.6s linear infinite; }
  .hero__target-ring { animation: target-pulse 2.8s ease-out infinite; }
}
@keyframes fan-sweep { from { transform: translateY(40px); } to { transform: translateY(680px); } }
@keyframes needle-dash { to { stroke-dashoffset: -28; } }
@keyframes target-pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Formulário */
.form-card {
  background: var(--azul-profundo); border: 1px solid var(--linha); border-top: 3px solid var(--teal);
  border-radius: var(--radius); padding: 24px 20px; scroll-margin-top: 16px;
}
.form-card__title { font-size: 1.35rem; }
.form-card__sub { color: var(--texto-2); margin: 6px 0 18px; font-size: 0.95rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 50px; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--texto);
  background: var(--azul-base); border: 1px solid rgba(231, 237, 244, 0.22); border-radius: 10px;
}
.field input::placeholder { color: rgba(183, 195, 209, 0.55); }
.field input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field input[aria-invalid="true"] { border-color: var(--erro); }
.field__error { color: var(--erro); font-size: 0.85rem; margin: 6px 0 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 15px 22px;
  font: inherit; font-weight: 600; font-size: 1.05rem; text-align: center; text-decoration: none;
  border: 0; border-radius: 10px; cursor: pointer;
}
.btn--primary { background: var(--teal); color: var(--azul-profundo); width: 100%; }
.btn--primary:hover { background: var(--teal-hover); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gelo); outline-offset: 3px; }
.form-card__consent { color: var(--texto-2); font-size: 0.8rem; margin: 12px 0 0; }
.form-card__note {
  margin: 16px 0 0; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-2);
}
.form-card__success { padding-block: 8px; outline: none; }
.form-card__success p:last-child { font-size: 1.25rem; font-weight: 600; margin: 0; }

/* Seções */
.section { padding-block: 64px; }
.section--deep { background: var(--azul-profundo); }
.section__intro { color: var(--texto-2); max-width: 64ch; margin: 14px 0 0; }

.cards { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: rgba(10, 21, 36, 0.6); border: 1px solid var(--linha); border-radius: var(--radius); padding: 20px; }
.card__tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 12px;
}
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 16px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--azul-clinico);
}

.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 64px; } }
.timeline { list-style: none; margin: 28px 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--azul-clinico); display: grid; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--teal);
}
.timeline__day {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 4px;
}
.timeline p:not(.timeline__day) { color: var(--texto-2); margin: 4px 0 0; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--texto-2); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.photo-frame { margin: 0; width: 100%; max-width: 480px; justify-self: center; position: relative; border-radius: 6px; overflow: hidden; }
/* Recorte quadrado: rostos e mãos na mesa, sem a parede e o chão. Tons puxados para a marca */
.photo-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 24%; filter: saturate(0.75) brightness(0.82) contrast(0.95); }
.photo-frame::before { /* paredes brancas viram cinza-azulado */
  content: ""; position: absolute; inset: 0; background: var(--azul-base); mix-blend-mode: multiply; opacity: 0.28; pointer-events: none;
}
.photo-frame::after { /* borda some no fundo da seção, mais forte embaixo (celular) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, var(--azul-profundo) 0%, rgba(10, 21, 36, 0) 30%),
    linear-gradient(180deg, rgba(10, 21, 36, 0.55) 0%, rgba(10, 21, 36, 0) 18%),
    linear-gradient(90deg, rgba(10, 21, 36, 0.6) 0%, rgba(10, 21, 36, 0) 16%, rgba(10, 21, 36, 0) 84%, rgba(10, 21, 36, 0.6) 100%);
}
@media (min-width: 900px) {
  .photo-frame::after { /* desktop: fusão mais forte no lado do texto (esquerda) */
    background:
      linear-gradient(90deg, var(--azul-profundo) 0%, rgba(10, 21, 36, 0.35) 22%, rgba(10, 21, 36, 0) 42%, rgba(10, 21, 36, 0) 86%, rgba(10, 21, 36, 0.55) 100%),
      linear-gradient(180deg, rgba(10, 21, 36, 0.5) 0%, rgba(10, 21, 36, 0) 18%, rgba(10, 21, 36, 0) 78%, var(--azul-profundo) 100%);
  }
}

.professor { display: grid; gap: 24px; align-items: center; }
.professor__photo {
  width: 160px; aspect-ratio: 1; object-fit: cover; object-position: top;
  border-radius: var(--radius); background: #F4F4F4; border: 1px solid var(--linha);
}
@media (min-width: 720px) {
  .professor { grid-template-columns: 220px 1fr; gap: 40px; }
  .professor__photo { width: 220px; }
}
.professor__role { color: var(--texto-2); margin: 6px 0 14px; font-size: 1.1rem; }
.professor__role span { display: block; }
@media (min-width: 1040px) {
  .professor__role span { display: inline; }
  .professor__role span + span::before { content: "· " / ""; color: var(--azul-clinico); }
}
.link { color: var(--gelo); text-decoration-color: var(--azul-clinico); text-underline-offset: 4px; }

.audience { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .audience { grid-template-columns: repeat(3, 1fr); } }
.audience li { border: 1px solid var(--linha); border-radius: var(--radius); padding: 18px 20px; font-weight: 600; }

.cta-final__inner { display: grid; justify-items: center; gap: 12px; text-align: center; }
.cta-final p { color: var(--texto-2); margin: 0 0 8px; }
.cta-final .btn { width: auto; min-width: 260px; }

/* Rodapé */
.footer { background: var(--azul-profundo); border-top: 1px solid var(--linha); padding-block: 40px calc(96px + env(safe-area-inset-bottom)); }
.footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; margin: 8px 0 24px; }
.footer__logo--totalcare { height: 64px; width: auto; }
.footer__logo--base { height: 40px; width: auto; min-width: 120px; }
.footer__contacts { color: var(--texto-2); font-size: 0.9rem; margin: 0 0 8px; }
.footer__contacts a { color: var(--gelo); }
.footer__legal { font-family: var(--mono); color: rgba(183, 195, 209, 0.6); font-size: 0.7rem; margin: 0; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--azul-profundo);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.wa-float--hidden { opacity: 0; transform: scale(0.8); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float { transition: none; }
}
