/* Home alternatives (?home=a|b|c), loaded only on the front page while comparing.
   Motion uses opacity/transform/translate/clip-path only (no layout shift) and is switched
   off with prefers-reduced-motion (see the end of the file). */

/* ---------- Shared: entrance, words, reveal ---------- */
@keyframes hx-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hx-word { from { opacity: 0; transform: translateY(.42em); } to { opacity: 1; transform: none; } }
@keyframes hx-reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }

.hx-in { animation: hx-up .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.hx-words .hx-w { display: inline-block; animation: hx-word .75s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.15s + var(--i, 0) * .055s); }
.hx-ready [data-reveal]:not(.is-in) { opacity: 0; }
.hx-ready [data-reveal].is-in { animation: hx-reveal .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }

/* ---------- Comparison switcher (only with ?home=) ---------- */
.hx-switch { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(31, 61, 55, .94); box-shadow: var(--shadow-lg); font-family: var(--font-head); font-weight: 700; font-size: .85rem; }
.hx-switch__label { padding: 0 8px 0 10px; color: var(--sage-200); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.hx-switch a { min-width: 36px; padding: 7px 11px; border-radius: 999px; color: #fff; text-align: center; text-decoration: none; }
.hx-switch a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hx-switch a[aria-current="page"] { background: var(--sage); color: var(--sage-900); }
@media (max-width: 720px) { .hx-switch { left: 10px; bottom: 10px; } .hx-switch__label { display: none; } }

/* Shared hero facts (light text on photo in A; dark elsewhere). */
.hxa__facts, .hxb__facts, .hxc__facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; }
.hxa__facts li, .hxb__facts li, .hxc__facts li { display: flex; gap: .55em; align-items: flex-start; }
.hxb__facts, .hxc__facts { color: var(--muted); }
.hxb__facts .icon, .hxc__facts .icon { color: var(--sage-600); margin-top: .2em; }
.hxb__facts a, .hxc__facts a { color: var(--sage-700); font-weight: 600; }

/* =================================================================
   Opção A: full-bleed photo, Ken Burns, counters
   ================================================================= */
.hxa { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--sage-900);
  min-height: clamp(580px, calc(100svh - var(--header-h) - 38px), 920px); padding: 64px 0 120px; }
.hxa::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 38, 34, .92) 0%, rgba(18, 38, 34, .78) 40%, rgba(18, 38, 34, .25) 72%, rgba(18, 38, 34, .08) 100%),
              linear-gradient(0deg, rgba(18, 38, 34, .55) 0%, rgba(18, 38, 34, 0) 40%); }
.hxa__media { position: absolute; inset: 0; z-index: -2; }
.hxa__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hxa__slide.is-active { opacity: 1; z-index: 2; }
.hxa__slide.was-active { opacity: 1; z-index: 1; transition: none; }
.hxa__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 45%; transform-origin: 62% 45%; }
.hxa__slide.is-active img, .hxa__slide.was-active img { animation: hx-kb 9s cubic-bezier(.25, .1, .25, 1) both; }
@keyframes hx-kb { from { transform: scale(1.14) translate3d(1.5%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.hxa__inner { position: relative; }
.hxa__title { max-width: 12.5em; margin: .1em 0 .55em; color: #fff; font-size: clamp(2.35rem, 1.3rem + 4.1vw, 5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hxa .eyebrow { font-size: .85rem; }
.hxa__cta .btn { min-height: 52px; }
.hxa__facts { color: #e8f0ee; }
.hxa__facts li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hxa__facts .icon { color: var(--sage-200); margin-top: .2em; }
.hxa__facts a { color: #fff; font-weight: 600; }
.hxa :focus-visible { outline-color: #fff; }
.hxa__cue { position: absolute; left: 50%; bottom: 74px; z-index: 1; display: grid; place-items: center; width: 44px; height: 54px; margin-left: -22px; animation: hx-fade 1s both 1.6s; }
.hxa__mouse { position: relative; width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 14px; }
.hxa__mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hx-scroll 1.9s ease-in-out infinite; }
@keyframes hx-scroll { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

.hxa-stats { position: relative; z-index: 3; margin-top: -64px; }
.hxa-stats__list { list-style: none; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); }
.hxa-stats__item { background: #fff; box-shadow: var(--shadow-lg); }
.hxa-stats__item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.hxa-stats__item:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.hxa-stats__item + .hxa-stats__item a { border-left: 1px solid var(--line); }
.hxa-stats__item a { display: flex; align-items: center; justify-content: center; gap: 16px; height: 100%; padding: 26px 20px; color: var(--ink); text-decoration: none; }
.hxa-stats__item a:hover .hxa-stats__label { color: var(--sage-700); text-decoration: underline; }
.hxa-stats__num { display: inline-block; min-width: var(--w); color: var(--sage-700); font-family: var(--font-head); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.hxa-stats__label { max-width: 9em; font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
.home-alt--a #exames { padding-top: 72px; }

@media (max-width: 1079px) { .hxa { min-height: clamp(560px, calc(100svh - var(--header-h)), 900px); } }
@media (max-width: 720px) {
  .hxa { align-items: flex-end; padding: 40px 0 92px; }
  .hxa__media { inset: 0 0 auto 0; height: 50%; }
  .hxa::before { background: linear-gradient(180deg, rgba(18, 38, 34, 0) 0%, rgba(18, 38, 34, .15) 22%, rgba(18, 38, 34, .9) 46%, #16302b 56%); }
  .hxa { background: #16302b; }
  .hxa__slide img { object-position: 50% 50%; }
  .hxa__title { font-size: clamp(2.05rem, 1.4rem + 3vw, 2.6rem); }
  .hxa__cta .btn { flex: 1 1 100%; }
  .hxa__facts { gap: 8px; font-size: .88rem; }
  .hxa__facts li { padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hxa__cue { display: none; }
  .hxa-stats { margin-top: -52px; }
  .hxa-stats__list { padding: 0 14px; }
  .hxa-stats__item a { flex-direction: column; gap: 6px; padding: 16px 6px; text-align: center; }
  .hxa-stats__num { text-align: center; font-size: 2rem; }
  .hxa-stats__label { font-size: .78rem; }
  .home-alt--a #exames { padding-top: 48px; }
}

/* =================================================================
   Opção B: split hero, organic shapes, floating exam cards
   ================================================================= */
.hxb { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 128px; background: linear-gradient(180deg, #fff 0%, var(--sage-50) 100%); }
.hxb__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hxb__blob { position: absolute; display: block; border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%; animation: hx-morph 18s ease-in-out infinite alternate, hx-drift 26s ease-in-out infinite alternate; }
.hxb__blob--1 { width: 680px; height: 640px; right: -160px; top: -180px; background: radial-gradient(circle at 35% 35%, var(--sage-100), rgba(160, 187, 181, .55) 70%); }
.hxb__blob--2 { width: 440px; height: 420px; left: -180px; bottom: -160px; background: var(--sage-100); animation-duration: 22s, 30s; animation-direction: alternate-reverse; }
.hxb__blob--3 { width: 220px; height: 210px; left: 40%; top: 6%; background: rgba(160, 187, 181, .22); animation-duration: 14s, 20s; }
@keyframes hx-morph {
  0% { border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%; }
  50% { border-radius: 63% 37% 41% 59% / 58% 54% 46% 42%; }
  100% { border-radius: 38% 62% 52% 48% / 36% 60% 40% 64%; }
}
@keyframes hx-drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-36px, 28px) rotate(20deg); } }
.hxb__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hxb__title { margin: .1em 0 .55em; color: var(--sage-900); font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.028em; text-wrap: balance; }
.hxb__cta .btn { min-height: 52px; }
.hxb__visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; justify-self: center; }
.hxb__rings { position: absolute; inset: -14%; width: 128%; height: 128%; overflow: visible; fill: none; stroke: var(--sage); stroke-width: 1.4; pointer-events: none; }
.hxb__rings circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: hx-ring 6.6s cubic-bezier(.2, .6, .3, 1) infinite; }
.hxb__rings circle:nth-child(2) { animation-delay: 2.2s; }
.hxb__rings circle:nth-child(3) { animation-delay: 4.4s; }
@keyframes hx-ring { 0% { transform: scale(1.1); opacity: 0; } 12% { opacity: .75; } 100% { transform: scale(1.62); opacity: 0; } }
.hxb__photo { position: absolute; inset: 5%; overflow: hidden; background: var(--sage-100); box-shadow: var(--shadow-lg);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; animation: hx-pop 1.1s cubic-bezier(.2, .7, .2, 1) both .1s, hx-morph-soft 16s ease-in-out infinite alternate 1.2s; }
.hxb__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@keyframes hx-pop { from { transform: scale(.93); } to { transform: none; } }
@keyframes hx-morph-soft {
  0% { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; }
  100% { border-radius: 56% 44% 45% 55% / 44% 56% 44% 56%; }
}
.hxb__cards { list-style: none; margin: 0; padding: 0; }
.hxb__card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 290px; padding: 12px 18px 12px 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(28, 39, 37, .16);
  animation: hx-up .8s cubic-bezier(.2, .7, .2, 1) both var(--d, 1s), hx-float 6s ease-in-out infinite calc(var(--d, 1s) + .8s); transition: box-shadow .2s; }
.hxb__card:hover, .hxb__card:focus-within { box-shadow: 0 22px 50px rgba(28, 39, 37, .24); }
.hxb__card--1 { left: -8%; top: 7%; }
.hxb__card--2 { right: -9%; top: 31%; animation-duration: .8s, 7s; }
.hxb__card--3 { left: 2%; bottom: 3%; animation-duration: .8s, 6.5s; }
@keyframes hx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hxb__card-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sage-100); color: var(--sage-700); }
.hxb__card-icon .icon { width: 22px; height: 22px; }
.hxb__card-text { display: grid; gap: 2px; min-width: 0; }
.hxb__card-tag { color: var(--sage-600); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hxb__card-link { color: var(--ink); font-family: var(--font-head); font-size: .92rem; font-weight: 800; line-height: 1.25; text-decoration: none; }
.hxb__card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hxb__card-link:hover { color: var(--sage-700); }
.hxb__wave { position: absolute; left: 0; bottom: -1px; z-index: 1; width: 200%; max-width: none; height: 84px; fill: #fff; animation: hx-wave 16s linear infinite; pointer-events: none; }
@keyframes hx-wave { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .hxb { padding: 28px 0 104px; }
  .hxb__grid { grid-template-columns: 1fr; gap: 40px; }
  .hxb__cta .btn { flex: 1 1 100%; }
  .hxb__visual { max-width: 440px; }
  .hxb__blob--1 { width: 460px; height: 440px; right: -220px; top: -140px; }
  .hxb__blob--3 { display: none; }
}
@media (max-width: 600px) {
  .hxb__title { font-size: clamp(2.05rem, 1.4rem + 3vw, 2.6rem); }
  .hxb__visual { width: 88%; }
  .hxb__card { max-width: 210px; padding: 9px 12px 9px 9px; gap: 9px; border-radius: 14px; }
  .hxb__card-icon { width: 36px; height: 36px; border-radius: 10px; }
  .hxb__card-link { font-size: .8rem; }
  .hxb__card-tag { font-size: .62rem; }
  /* phone: photo first, exam cards stacked under it (no card over faces) */
  .hxb__visual { width: 100%; aspect-ratio: auto; }
  .hxb__photo { position: relative; inset: auto; width: 86%; aspect-ratio: 1 / 1; margin: 0 auto; }
  .hxb__rings { display: none; }
  .hxb__cards { position: relative; z-index: 2; display: grid; gap: 10px; margin-top: -28px; }
  .hxb__card { position: relative; inset: auto; max-width: none; }
  .hxb__card--2 { margin-left: 18px; margin-right: -6px; }
  .hxb__card--3 { margin-left: 6px; margin-right: 12px; }
  .hxb__wave { height: 56px; }
}

/* =================================================================
   Opção C: editorial / minimal
   ================================================================= */
.hxc { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 72px; background: #fff; }
.hxc::before { content: ""; position: absolute; z-index: -1; right: -12vw; top: -30vw; width: 62vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--sage-100), rgba(232, 240, 238, 0)); pointer-events: none; }
.hxc__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr); gap: 64px; align-items: end; }
.hxc__title { margin: .15em 0 .4em; color: var(--sage-900); font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.4rem); font-weight: 300; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hx-mark { padding: 0 .04em; color: inherit; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--sage), var(--sage-200)) no-repeat 0 90% / 0% .14em; animation: hx-underline 1.1s cubic-bezier(.65, 0, .2, 1) forwards 1.25s; }
@keyframes hx-underline { to { background-size: 100% .14em; } }
.hxc__rotator { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 30px; font-family: var(--font-head); font-size: clamp(1.05rem, .9rem + .6vw, 1.4rem); font-weight: 600; }
.hxc__rot-label { color: var(--muted); text-decoration: none; }
.hxc__rot-label::after { content: " →"; color: var(--sage-600); }
.hxc__rot-label:hover { color: var(--sage-700); text-decoration: underline; }
.hxc__words { display: inline-grid; overflow: hidden; color: var(--sage-700); font-weight: 800; letter-spacing: .02em; }
.hxc__word { grid-area: 1 / 1; opacity: 0; transform: translateY(105%); transition: transform .65s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.hxc__word.is-active { opacity: 1; transform: none; }
.hxc__word.is-out { opacity: 0; transform: translateY(-105%); }
.hxc__cta .btn { min-height: 52px; }
.hxc__figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 28px 28px; background: var(--sage-100); box-shadow: var(--shadow-lg); }
.hxc__figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.14); }
.hx-rise { animation: hx-clip 1.3s cubic-bezier(.7, 0, .2, 1) both .15s; }
@keyframes hx-clip { from { clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); } to { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); } }

.hxc-trust { padding: 26px 0; background: var(--sage-50); border-block: 1px solid var(--line); }
.hxc-trust__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; }
.hxc-avatars { display: flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; }
.hxc-avatars__row { display: flex; }
.hxc-avatars__item { display: grid; place-items: center; width: 56px; height: 56px; margin-left: -14px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: var(--sage-200); box-shadow: 0 4px 12px rgba(28, 39, 37, .12); color: var(--sage-900); font-family: var(--font-head); font-size: .9rem; font-weight: 800; transition: transform .3s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k, 0) * 35ms); }
.hxc-avatars__item:first-child { margin-left: 0; }
.hxc-avatars__item img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hxc-avatars:hover .hxc-avatars__item { transform: translateY(-5px); }
.hxc-avatars__text strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.hxc-avatars__text span { display: inline-flex; align-items: center; gap: .35em; color: var(--sage-700); font-size: .92rem; font-weight: 600; }
.hxc-trust__conv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; min-width: 0; }
.hxc-trust__conv .eyebrow { margin: 0; }
.hxc-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hxc-marquee__track { display: flex; flex: none; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; animation: hx-marquee 30s linear infinite; }
.hxc-marquee:hover .hxc-marquee__track, .hxc-marquee:focus-within .hxc-marquee__track { animation-play-state: paused; }
@keyframes hx-marquee { to { transform: translateX(-100%); } }
.hxc-marquee a { display: flex; align-items: center; justify-content: center; width: 132px; height: 62px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.hxc-marquee img { max-height: 42px; width: auto; object-fit: contain; }

/* Editorial touches on the sections below: numbered eyebrows, light oversized titles. */
.home-alt--c .site-main { counter-reset: hxsec; }
.home-alt--c :is(.section__head > div, .split__text, .team-band__card, .visit__info) > .eyebrow::before { counter-increment: hxsec; content: counter(hxsec, decimal-leading-zero) " — "; color: var(--sage); }
.home-alt--c .section__title { font-weight: 300; letter-spacing: -.035em; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); }

@media (max-width: 960px) {
  .hxc { padding: 28px 0 56px; }
  .hxc__grid { grid-template-columns: 1fr; gap: 36px; }
  .hxc__cta .btn { flex: 1 1 100%; }
  .hxc__figure { aspect-ratio: 4 / 3.4; border-radius: 220px 220px 24px 24px; }
  .hxc-trust__grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
  .hxc__title { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 2.9rem); }
  .hxc__figure { border-radius: 160px 160px 20px 20px; }
  .hxc-trust__conv { grid-template-columns: 1fr; gap: 12px; }
  .hxc-avatars { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hxc-avatars__item { width: 46px; height: 46px; margin-left: -12px; }
}

/* ---------- Reduced motion: no entrance, no loops; everything visible and static ---------- */
@media (prefers-reduced-motion: reduce) {
  .hx-in, .hx-words .hx-w, .hx-ready [data-reveal].is-in, .hxa__slide img, .hxa__cue, .hxa__mouse::after,
  .hxb__blob, .hxb__photo, .hxb__rings circle, .hxb__card, .hxb__wave, .hx-mark, .hx-rise, .hxc-marquee__track { animation: none !important; }
  .hxb__rings { display: none; }
  .hx-mark { background-size: 100% .14em; }
  .hxc__figure img { transform: none; }
  .hxc-marquee { -webkit-mask-image: none; mask-image: none; }
  .hxc-marquee__track { flex-wrap: wrap; flex: 1 1 auto; }
  .hxc-marquee__track[aria-hidden="true"] { display: none; }
}
