/* Hero A · "Na mesma consulta" — Dr. Eduardo de Oliveira Neto */
:root {
  /* cor (tirada do retrato e da clínica) */
  --creme: #f6f4ef;
  --creme-2: #fbfaf6;
  --salvia: #e3ebe1;
  --salvia-2: #cfdecb;
  --azul: #d9e3ef;
  --azul-2: #c3d2e6;
  --pele: #f0dcd1;
  --pele-2: #e9c9b8;
  --tinta: #1e2a26;
  --tinta-2: #44524c;
  --folha: #3d7a52;
  --folha-escura: #2d5f3f;
  --estrela: #b9772f;

  /* tipo */
  --f-titulo: "Anek Latin", "Asap", system-ui, sans-serif;
  --f-texto: "Asap", system-ui, sans-serif;
  --t-verbos: clamp(46px, 6.5vw, 112px);
  --t-mesma: clamp(26px, 2.75vw, 48px);
  --t-apoio: clamp(17px, 1.22vw, 20px);

  /* espaço */
  --pad: clamp(18px, 4.2vw, 72px);
  --topo: 84px;
  --raio: clamp(26px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-foco: cubic-bezier(.33, .0, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--folha); outline-offset: 3px; border-radius: 6px; }

/* ---------- topo ---------- */
.a-topo {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  height: var(--topo);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: max(var(--pad), calc((100vw - 1640px) / 2));
}
.a-marca { display: grid; gap: 1px; text-decoration: none; line-height: 1.1; }
.a-marca-nome {
  font-family: var(--f-titulo); font-stretch: 125%; font-weight: 640;
  font-size: 19px; letter-spacing: .005em;
}
.a-marca-dr { font-size: 13.5px; color: var(--tinta-2); letter-spacing: .01em; }
.a-topo-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgb(255 255 255 / .62);
  border: 1px solid rgb(30 42 38 / .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-decoration: none; font-weight: 500; font-size: 15.5px;
  transition: background .3s, border-color .3s;
}
.a-topo-wa svg { width: 19px; height: 19px; fill: var(--folha); }
.a-topo-wa:hover { background: #fff; border-color: rgb(61 122 82 / .45); }

/* ---------- hero ---------- */
.a-hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 3vw, 56px);
  align-items: end;
  padding: var(--topo) max(var(--pad), calc((100vw - 1640px) / 2)) clamp(14px, 1.8vw, 28px);
  overflow: clip;
}

/* malha de gradiente (manchas grandes, sem blur) */
.a-malha { position: absolute; inset: 0; z-index: -2; background: var(--creme); overflow: clip; }
.a-malha i {
  position: absolute; display: block; border-radius: 50%;
  width: var(--s); height: var(--s);
  left: var(--x); top: var(--y);
  translate: -50% -50%;
  background: radial-gradient(circle closest-side in oklab, var(--c) 0%, rgb(from var(--c) r g b / .55) 42%, rgb(from var(--c) r g b / 0) 100%);
  animation: a-deriva var(--d) ease-in-out infinite alternate;
  will-change: transform;
}
.a-malha i:nth-child(1) { --c: var(--salvia-2); --s: 78vmax; --x: 6%;  --y: 8%;   --d: 31s; }
.a-malha i:nth-child(2) { --c: var(--azul);     --s: 70vmax; --x: 86%; --y: 96%;  --d: 37s; animation-delay: -9s; }
.a-malha i:nth-child(3) { --c: var(--pele);     --s: 60vmax; --x: 74%; --y: 4%;   --d: 27s; animation-delay: -5s; }
.a-malha i:nth-child(4) { --c: var(--salvia);   --s: 64vmax; --x: 30%; --y: 92%;  --d: 34s; animation-delay: -14s; }
.a-malha i:nth-child(5) { --c: var(--creme-2);  --s: 52vmax; --x: 38%; --y: 46%;  --d: 23s; animation-delay: -3s; }
.a-malha i:nth-child(6) { --c: var(--azul-2);   --s: 40vmax; --x: 100%; --y: 50%; --d: 29s; animation-delay: -18s; opacity: .7; }
@keyframes a-deriva {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3vmax, -2.5vmax) scale(1.06); }
  100% { transform: translate(-2.5vmax, 2vmax) scale(.96); }
}

/* granulado fixo */
.a-grao {
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}

/* ---------- texto ---------- */
.a-texto {
  align-self: center;
  padding-block: clamp(18px, 3vh, 40px) clamp(10px, 2vh, 28px);
  max-width: 660px;
}
@media (min-width: 1600px) { .a-texto { max-width: 780px; } }
.a-chapeu {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  margin: 0 0 clamp(16px, 2.4vh, 28px);
  font-family: var(--f-titulo); font-stretch: 118%; font-weight: 560;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--folha-escura);
}
.a-chapeu span { display: inline-flex; align-items: center; white-space: nowrap; }
.a-chapeu span:not(:last-child)::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .55; margin: 0 .95em;
}

.a-titulo { margin: 0; font-family: var(--f-titulo); font-weight: 400; }
.a-verbos {
  display: block;
  font-size: var(--t-verbos);
  font-stretch: 116%; font-weight: 620;
  line-height: .93; letter-spacing: -.022em;
}
.a-linha { display: block; white-space: nowrap; }
.a-v { display: inline-block; }
.a-mesma {
  display: inline-block;
  margin-top: .42em;
  font-size: var(--t-mesma);
  font-stretch: 125%; font-weight: 380;
  line-height: 1.05; letter-spacing: -.005em;
  color: var(--folha-escura);
  padding-bottom: .12em;
  background: linear-gradient(90deg, var(--folha) 0 100%) no-repeat 0 100% / 100% 2px;
}

.a-apoio {
  margin: clamp(16px, 2.4vh, 26px) 0 0;
  max-width: 34em;
  font-size: var(--t-apoio); line-height: 1.55;
  color: var(--tinta-2);
}

.a-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(20px, 3vh, 32px); }
.a-botao {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px 0 22px; border-radius: 999px;
  background: var(--folha); color: #fff;
  font-weight: 500; font-size: 17.5px; text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 10px 26px -12px rgb(45 95 63 / .7);
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.a-botao svg { width: 21px; height: 21px; fill: currentColor; }
.a-botao:hover { background: var(--folha-escura); transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 14px 30px -12px rgb(45 95 63 / .8); }
.a-sec {
  font-weight: 500; font-size: 17px; text-decoration: none;
  padding: 6px 0; border-bottom: 1.5px solid rgb(30 42 38 / .25);
  transition: border-color .3s;
}
.a-sec span { display: inline-block; transition: transform .3s var(--ease); }
.a-sec:hover { border-color: var(--folha); }
.a-sec:hover span { transform: translateX(4px); }

.a-registro {
  display: grid; gap: 2px;
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  font-size: 14.5px; line-height: 1.45; color: var(--tinta-2);
}
.a-reg-l { display: flex; flex-wrap: wrap; column-gap: 0; }
.a-registro strong { font-weight: 500; color: var(--tinta); }
.a-reg-l > * { white-space: nowrap; }
.a-reg-l > *:not(:last-child)::after { content: "·"; margin: 0 9px; opacity: .55; font-weight: 400; }

.a-prova {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 26px; align-items: center;
  margin-top: clamp(20px, 3.4vh, 36px); padding-top: clamp(16px, 2.4vh, 24px);
  border-top: 1px solid rgb(30 42 38 / .14);
  max-width: 620px;
}
.a-nota { display: flex; align-items: center; gap: 12px; }
.a-nota-num { font-family: var(--f-titulo); font-stretch: 112%; font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -.02em; }
.a-nota-lado { display: grid; gap: 3px; }
.a-estrelas { position: relative; display: inline-block; font-size: 17px; letter-spacing: 2px; line-height: 1; }
.a-estrelas-base { color: rgb(30 42 38 / .18); }
.a-estrelas-cheias { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; width: calc(var(--nota) * 100%); color: var(--estrela); }
.a-nota-txt { font-size: 14px; color: var(--tinta-2); white-space: nowrap; }
.a-fala { margin: 0; padding-left: 22px; border-left: 1px solid rgb(30 42 38 / .14); }
.a-fala p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--tinta); }
.a-fala cite { display: block; margin-top: 5px; font-style: normal; font-size: 13.5px; color: var(--tinta-2); }

/* ---------- retrato ---------- */
.a-retrato {
  position: relative; margin: calc(-1 * var(--topo) + 14px) 0 0;
  height: min(calc(100svh - 34px), 1080px);
  aspect-ratio: 1400 / 1875;
  min-height: 540px;
}
.a-painel {
  position: absolute; inset: 33% 0 0 0; z-index: 0;
  border-radius: var(--raio);
  overflow: clip;
  background:
    radial-gradient(circle closest-side in oklab, rgb(255 255 255 / .75), rgb(255 255 255 / 0)) 50% 8% / 90% 70% no-repeat,
    linear-gradient(165deg in oklab, #d4e2d2, #d5dfec 62%, #e6d6cc);
  box-shadow: 0 40px 80px -50px rgb(30 42 38 / .45), 0 0 0 1px rgb(255 255 255 / .55) inset;
}
.a-painel i {
  position: absolute; border-radius: 50%; width: var(--s); aspect-ratio: 1;
  left: var(--x); top: var(--y); translate: -50% -50%;
  background: radial-gradient(circle closest-side in oklab, var(--c), rgb(from var(--c) r g b / 0));
  animation: a-deriva var(--d) ease-in-out infinite alternate;
}
.a-painel i:nth-child(1) { --c: #c6d8c2; --s: 120%; --x: 8%;  --y: 30%; --d: 26s; }
.a-painel i:nth-child(2) { --c: #f1ddd0; --s: 90%;  --x: 92%; --y: 12%; --d: 33s; animation-delay: -11s; }
.a-painel i:nth-child(3) { --c: #c9d6ea; --s: 110%; --x: 70%; --y: 96%; --d: 29s; animation-delay: -6s; }

.a-foto {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  clip-path: inset(0 round 0 0 var(--raio) var(--raio));
  filter: drop-shadow(0 18px 30px rgb(30 42 38 / .14));
}

/* etiqueta "no mesmo atendimento" */
.a-etiqueta {
  position: absolute; z-index: 2;
  left: -12%; top: 49%;
  padding: 16px 20px 16px 18px;
  border-radius: 20px;
  background: rgb(255 255 255 / .72);
  border: 1px solid rgb(255 255 255 / .9);
  box-shadow: 0 22px 44px -26px rgb(30 42 38 / .5), 0 2px 6px -2px rgb(30 42 38 / .12);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.a-etq-titulo {
  margin: 0 0 10px;
  font-family: var(--f-titulo); font-stretch: 118%; font-weight: 560;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--folha-escura);
}
.a-etiqueta ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.a-etiqueta li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-titulo); font-stretch: 108%; font-weight: 520; font-size: 17px; line-height: 1.1;
  white-space: nowrap;
}
.a-etiqueta svg { width: 22px; height: 22px; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.a-etiqueta circle { stroke: rgb(61 122 82 / .35); stroke-width: 1.5; fill: rgb(61 122 82 / .08); }
.a-etiqueta path { stroke: var(--folha); stroke-width: 2.2; }

/* ---------- entrada coreografada (só com JS) ---------- */
.js .a-topo { animation: a-sobe .9s var(--ease) .05s both; }
.js .a-malha { animation: a-aparece 1.4s ease both; }
.js .a-chapeu { animation: a-foco .9s var(--ease-foco) .1s both; }
.js .a-v { animation: a-foco 1s var(--ease-foco) both; }
.js .a-linha:nth-child(1) .a-v { animation-delay: .18s; }
.js .a-linha:nth-child(2) .a-v:nth-child(1) { animation-delay: .38s; }
.js .a-linha:nth-child(2) .a-v:nth-child(2) { animation-delay: .54s; }
.js .a-mesma { animation: a-foco 1s var(--ease-foco) .8s both, a-sublinha 1.1s var(--ease) 1.15s both; }
.js .a-apoio { animation: a-sobe 1s var(--ease) 1s both; }
.js .a-acoes { animation: a-sobe 1s var(--ease) 1.1s both; }
.js .a-registro { animation: a-sobe 1s var(--ease) 1.2s both; }
.js .a-prova { animation: a-sobe 1s var(--ease) 1.3s both; }
.js .a-painel { animation: a-painel 1.4s var(--ease) .12s both; }
.js .a-foto { animation: a-foco-foto 1.8s var(--ease-foco) .28s both; }
.js .a-etiqueta { animation: a-foco 1s var(--ease-foco) 1.2s both; }
.js .a-etiqueta li { animation: a-li .6s var(--ease) both; }
.js .a-etiqueta li:nth-child(1) { animation-delay: 1.45s; }
.js .a-etiqueta li:nth-child(2) { animation-delay: 1.7s; }
.js .a-etiqueta li:nth-child(3) { animation-delay: 1.95s; }
.js .a-etiqueta path { stroke-dasharray: 16; animation: a-risca .5s var(--ease) both; }
.js .a-etiqueta li:nth-child(1) path { animation-delay: 1.55s; }
.js .a-etiqueta li:nth-child(2) path { animation-delay: 1.8s; }
.js .a-etiqueta li:nth-child(3) path { animation-delay: 2.05s; }
.js body:not(.a-pronto) :is(.a-topo, .a-malha, .a-chapeu, .a-v, .a-mesma, .a-apoio, .a-acoes, .a-registro, .a-prova, .a-painel, .a-foto, .a-etiqueta, .a-etiqueta li, .a-etiqueta path) { animation-play-state: paused; }
.a-parado .a-malha i, .a-parado .a-painel i { animation-play-state: paused !important; }

@keyframes a-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes a-foco {
  from { opacity: 0; filter: blur(14px); transform: translateY(.14em) scale(1.02); }
  55%  { opacity: 1; }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes a-foco-foto {
  from { opacity: 0; filter: blur(26px) saturate(.5) drop-shadow(0 18px 30px rgb(30 42 38 / 0)); transform: scale(1.045); }
  40%  { opacity: 1; }
  to   { opacity: 1; filter: blur(0) saturate(1) drop-shadow(0 18px 30px rgb(30 42 38 / .14)); transform: none; }
}
@keyframes a-painel {
  from { opacity: 0; filter: blur(12px); transform: translateY(30px) scale(.97); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes a-sublinha { from { background-size: 0% 2px; } to { background-size: 100% 2px; } }
@keyframes a-li { from { opacity: .0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes a-risca { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }

/* profundidade com o ponteiro (depois da entrada) */
.a-entrou .a-painel { translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -8px); }
.a-entrou .a-etiqueta { translate: calc(var(--px, 0) * 12px) calc(var(--py, 0) * 8px); }

/* ---------- notebook estreito / tablet ---------- */
@media (max-width: 1280px) {
  .a-etiqueta { left: 3%; top: 52%; }
  .a-chapeu { font-stretch: 104%; letter-spacing: .1em; font-size: 13px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  :root { --t-verbos: clamp(44px, 6.2vw, 72px); --t-mesma: clamp(24px, 3vw, 34px); }
  .a-retrato { height: min(calc(100svh - 60px), 980px); min-height: 500px; }
  .a-fala { display: none; }
  .a-prova { grid-template-columns: auto; }
  .a-reg-l + .a-reg-l { display: grid; }
  .a-reg-l + .a-reg-l > *:not(:last-child)::after { content: none; }
  .a-chapeu { font-size: 11.5px; letter-spacing: .07em; font-stretch: 100%; }
  .a-chapeu span:not(:last-child)::after { margin: 0 .7em; }
}

/* ---------- celular ---------- */
@media (max-width: 900px) {
  :root { --topo: 66px; --t-verbos: clamp(42px, 12.6vw, 60px); --t-mesma: clamp(23px, 6.8vw, 32px); --raio: 26px; }
  body { font-size: 17px; }
  .a-topo { padding-inline: 16px; }
  .a-marca-nome { font-size: 16.5px; }
  .a-marca-dr { font-size: 12.5px; }
  .a-topo-wa { padding: 9px 14px 9px 11px; font-size: 14.5px; }
  .a-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    padding: calc(var(--topo) - 6px) 16px 34px;
  }
  .a-retrato {
    order: -1; width: 100%; height: auto; min-height: 0; margin: -4px 0 0;
    aspect-ratio: 1400 / 1520;
  }
  .a-painel { inset: 34% 0 0 0; }
  .a-foto { object-fit: cover; object-position: 50% 0; }
  .a-etiqueta {
    left: 50%; top: auto; bottom: 12px;
    padding: 8px 14px 8px 10px; border-radius: 999px;
  }
  .a-etiqueta, .a-entrou .a-etiqueta { translate: -50% 0; }
  .a-etq-titulo, .a-etq-longo { display: none; }
  .a-etiqueta ol { display: flex; gap: 14px; }
  .a-etiqueta li { font-size: 15px; gap: 6px; }
  .a-etiqueta svg { width: 18px; height: 18px; }
  .a-texto { padding-block: 22px 0; max-width: none; }
  .a-chapeu { font-size: 11.5px; font-stretch: 100%; letter-spacing: .08em; margin-bottom: 14px; }
  .a-chapeu span:not(:last-child)::after { margin: 0 .7em; width: 4px; height: 4px; }
  .a-apoio { font-size: 17.5px; }
  .a-acoes { gap: 14px 22px; }
  .a-botao { width: 100%; justify-content: center; min-height: 56px; }
  .a-registro { font-size: 14px; }
  .a-reg-l { display: grid; }
  .a-reg-l > *:not(:last-child)::after { content: none; }
  .a-prova { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .a-fala { padding-left: 16px; }
}

/* tablet em pé: mesma pilha do celular, com medida contida */
@media (min-width: 600px) and (max-width: 900px) {
  :root { --t-verbos: clamp(60px, 9.4vw, 84px); --t-mesma: clamp(30px, 4.6vw, 40px); }
  .a-hero { padding-inline: 40px; }
  .a-topo { padding-inline: 40px; }
  .a-retrato { width: min(100%, 620px); justify-self: center; }
  .a-texto { max-width: 620px; justify-self: center; width: 100%; }
  .a-botao { width: auto; }
  .a-prova { grid-template-columns: auto minmax(0, 1fr); }
}

/* ---------- movimento reduzido (reset geral) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .a-malha i, .a-painel i { animation: none !important; }
}
