/* Dra. Beatriz Araujo Conrado · Hepatologia
   Paleta tirada do atlas de anatomia: tecido hepático, porta, artéria, vias biliares. */
:root {
  --bg: #EEF1EF;          /* porcelana fria */
  --surface: #F8FAF9;
  --ink: #121A1D;         /* grafite clínico */
  --ink-2: #3E4A48;
  --muted: #5D6967;
  --line: #D3DBD8;
  --hep: #5C2511;         /* marrom da marca (antes vinho #8E2A35) */
  --hep-soft: #B97A5B;
  --portal: #3D6FD1;
  --artery: #D2475A;
  --bile: #6FA650;
  --hv: #4B4FA6;
  --night: #0E1517;
  --brand: #5C2511;       /* marrom da identidade visual da Dra. */

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --r: 22px;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 96px; scroll-padding-bottom: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: var(--hep); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2.5px solid var(--portal); outline-offset: 3px; border-radius: 6px; }
.elasto :focus-visible, .foot :focus-visible, .tally :focus-visible { outline-color: #BFE9FF; }

/* ---------- Botões ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 500 15.5px/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 62px; padding: 0 32px; font-size: 16.5px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(18, 26, 29, .55); }
.btn-ink:hover { background: var(--hep); box-shadow: 0 14px 30px -12px rgba(92, 37, 17, .6); }
.btn-hep { background: var(--hep); color: #fff; }
.btn-hep:hover { background: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost span { transition: transform .3s var(--ease); }
.btn-ghost:hover span { transform: translateY(3px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E2B596; color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 14px 14px auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--wrap) + 40px); margin-inline: auto;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(248, 250, 249, .72);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(211, 219, 216, .7);
  transition: transform .45s var(--ease), background .3s;
}
.nav.is-hidden { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 46px; height: 37px; flex: none; background: var(--brand);
  -webkit-mask: url(../img/logo-marca.png) center / contain no-repeat; mask: url(../img/logo-marca.png) center / contain no-repeat;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font: 600 15px/1.15 var(--f-display); letter-spacing: -.01em; }
.brand-text small { font: 500 12px/1.2 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--hep); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a[aria-current="true"] { color: var(--ink); }

.menu-btn { display: none; }
.menu-panel { display: none; }
@media (max-width: 1080px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 500 14px/1 var(--f-body);
  }
  .menu-btn .bars { position: relative; width: 16px; height: 10px; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
  .menu-btn .bars::before { top: 1px; }
  .menu-btn .bars::after { top: 7px; }
  .menu-btn[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
  .menu-panel {
    display: block; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 8px;
    box-shadow: 0 30px 60px -30px rgba(18, 26, 29, .45);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-panel.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .menu-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; border-radius: 16px; text-decoration: none; font: 520 19px/1 var(--f-display); letter-spacing: -.01em; }
  .menu-panel a:hover, .menu-panel a[aria-current="true"] { background: var(--bg); color: var(--hep); }
  .menu-panel a::after { content: "→"; font-family: var(--f-body); color: var(--muted); }
}
@media (max-width: 560px) {
  .menu-btn .menu-label { display: none; }
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
  .nav { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  padding: 120px var(--pad) 70px;
  max-width: calc(var(--wrap) + 160px); margin-inline: auto;
}
.hero::before { /* halo atrás do órgão */
  content: ""; position: absolute; right: -10%; top: 8%; width: 70vw; max-width: 980px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(185, 122, 91, .18), rgba(61, 111, 209, .06) 55%, transparent 72%);
  pointer-events: none; z-index: 0;
}
.hero-stage { position: absolute; inset: 70px 0 0 44%; z-index: 1; }
.hero-stage canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-stage.is-ready canvas { opacity: 1; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leaders line { stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; }
.leaders circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  background: rgba(248, 250, 249, .86); border: 1px solid var(--line);
  font: 500 12px/1 var(--f-mono); letter-spacing: .02em; white-space: nowrap;
  opacity: 0; transition: opacity .6s var(--ease);
  will-change: transform;
}
.hero-stage.is-labeled .tag { opacity: 1; }
.tag i, .hero-hint i, .area h3 i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.liver-fallback { display: none; }
.no-webgl .liver-fallback {
  display: block; position: absolute; inset: 15% 8% 20% 10%;
  background: radial-gradient(60% 70% at 35% 45%, #d77380, #8e2a35 70%);
  border-radius: 58% 42% 30% 70% / 55% 45% 40% 60%; opacity: .85;
}

.hero-copy { position: relative; z-index: 2; max-width: 600px; pointer-events: none; }
.hero-copy a, .hero-copy .cred { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--hep);
  margin-bottom: 22px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hep); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--hep); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.display {
  font-family: var(--f-display);
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: .94; letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
}
.display span { display: block; }
.display .l1 { font-weight: 650; }
.display .l2 { font-weight: 300; color: var(--hep); }
.lede { margin-top: 28px; max-width: 520px; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cred { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 460px; }
.cred img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--hep-soft); }
.cred b { display: block; font: 600 16px/1.3 var(--f-display); }
.cred .mono { color: var(--muted); }
.hero-hint { position: absolute; right: var(--pad); bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.hero-hint i { margin-left: 8px; }

/* Entrada do hero */
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .1s; }
.hero-copy > :nth-child(2) { animation-delay: .22s; }
.hero-copy > :nth-child(3) { animation-delay: .4s; }
.hero-copy > :nth-child(4) { animation-delay: .52s; }
.hero-copy > :nth-child(5) { animation-delay: .64s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Seções ---------- */
section { position: relative; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 560; }
.sec-sub { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 600px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Sinais: checklist */
.signs { padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }
.signs-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.signs-side { position: sticky; top: 110px; }
.signs-side .sec-head { margin-bottom: 28px; }
.tally { background: var(--ink); color: #E8EEEC; border-radius: var(--r); padding: 24px 24px 22px; max-width: 460px; }
.tally-count { display: flex; align-items: baseline; gap: 12px; }
.tally-count b { font: 600 52px/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; min-width: 1ch; }
.tally-count span { color: #AEBAB7; font-size: 15px; }
.tally-bar { height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .12); margin: 16px 0 14px; overflow: hidden; }
.tally-bar span { display: block; height: 100%; width: 0; background: var(--hep-soft); border-radius: inherit; transition: width .5s var(--ease); }
.tally-msg { color: #CBD4D2; font-size: 15.5px; margin-bottom: 18px; min-height: 3em; }
.tally-note { margin-top: 14px; font-size: 12.5px; color: #7F8D8A; }

.checklist { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.sign {
  position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; row-gap: 6px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .35s var(--ease), transform .35s var(--ease), opacity .9s var(--ease);
}
.sign:hover { border-color: var(--hep-soft); }
.sign input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sign .box { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #B9C4C1; background: #fff; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.sign .box::after { content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(.4); opacity: 0; transition: transform .3s var(--ease), opacity .2s; }
.sign .tagline { color: var(--hep); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.sign .txt { grid-column: 2; font: 500 clamp(17px, 1.45vw, 19.5px)/1.35 var(--f-display); letter-spacing: -.01em; }
.sign:has(input:checked) { border-color: var(--hep); background: #fff; box-shadow: 0 14px 34px -24px rgba(92, 37, 17, .55); }
.sign:has(input:checked) .box { background: var(--hep); border-color: var(--hep); }
.sign:has(input:checked) .box::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.sign:has(input:focus-visible) { outline: 2.5px solid var(--portal); outline-offset: 3px; }

/* Áreas */
.areas { padding: clamp(70px, 9vw, 120px) 0 clamp(100px, 12vw, 160px); }
.areas-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.sticky-head { position: sticky; top: 120px; }
.area-list { display: flex; flex-direction: column; }
.area { padding: 30px 0 32px; border-top: 1px solid var(--line); }
.area:last-child { border-bottom: 1px solid var(--line); }
.area h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 560; transition: color .3s, transform .4s var(--ease); }
.area p { margin-top: 12px; color: var(--ink-2); max-width: 520px; padding-left: 23px; }
.area:hover h3 { color: var(--hep); transform: translateX(6px); }

/* ---------- Elastografia ---------- */
.elasto { background: var(--night); color: #E8EEEC; padding-top: clamp(90px, 11vw, 140px); border-radius: 36px 36px 0 0; overflow: clip; }
.elasto::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 25% 30%, rgba(201, 90, 102, .14), transparent 70%), radial-gradient(40% 30% at 85% 70%, rgba(61, 111, 209, .12), transparent 70%); pointer-events: none; }
.eyebrow-light { color: #E2B596; }
.elasto .h2 { max-width: 900px; }
.elasto .sec-sub { color: #AEBAB7; }
.elasto-intro { position: relative; }
.elasto-track { position: relative; height: 420vh; margin-top: 40px; }
.elasto-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  max-width: calc(var(--wrap) + 120px); margin-inline: auto; padding: 80px var(--pad) 40px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: center;
}
.elasto-stage { position: relative; height: min(80vh, 760px); display: flex; flex-direction: column; gap: 14px; }
.elasto-stage canvas { width: 100%; flex: 1; min-height: 0; display: block; }
.hud {
  position: relative; padding: 18px 20px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hud-row { display: flex; justify-content: space-between; color: #8FA09C; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
#hud-state { color: #BFE9FF; }
.gauge { margin-top: 14px; }
.gauge-bar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #5FB4A0, #A9C46A 30%, #E2B65B 55%, #DD7A5C 75%, #B2394A); }
.needle { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 0 18px rgba(191, 233, 255, .8); transition: left .15s linear; }
.gauge-scale, .gauge-cap { display: flex; justify-content: space-between; margin-top: 8px; color: #8FA09C; font-size: 12px; }
.gauge-cap { margin-top: 2px; color: #8A9A97; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.readout { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); opacity: .35; transition: opacity .5s, border-color .5s, background .5s; }
.readout span { color: #BFE9FF; display: block; }
.readout b { display: block; font: 560 18px/1.2 var(--f-display); margin-top: 4px; }
.readout em { font-style: normal; color: #8FA09C; font-size: 13px; }
.readout.is-on { opacity: 1; border-color: rgba(191, 233, 255, .35); background: rgba(191, 233, 255, .06); }

.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
.step { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.step h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; font-weight: 560; }
.step p { margin-top: 18px; color: #AEBAB7; font-size: 18px; max-width: 440px; }
.steps-col { display: flex; flex-direction: column; gap: 34px; }
.step-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.step-track button {
  min-height: 44px; appearance: none; background: none; border: 0; cursor: pointer; text-align: left; color: #8A9A97;
  font: 500 13px/1.2 var(--f-body); padding: 12px 0 0; position: relative; transition: color .3s;
}
.step-track button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; }
.step-track button::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--f, 0) * 100%); background: #BFE9FF; border-radius: 2px; }
.step-track button span { display: block; color: inherit; margin-bottom: 4px; font-size: 12px; }
.step-track button.is-on, .step-track button.is-done { color: #E8EEEC; }
.step-track button:hover { color: #fff; }

.elasto-facts { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 30px; padding-bottom: clamp(90px, 11vw, 130px); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.facts b { display: block; font: 560 22px/1.2 var(--f-display); }
.facts span { color: #8FA09C; font-size: 14.5px; }

/* ---------- Atendimento ---------- */
.care { padding: clamp(100px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.care-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 16px; transition: transform .45s var(--ease), box-shadow .45s;
}
.care-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -40px rgba(18, 26, 29, .45); }
.care-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); color: var(--hep); }
.care-ico svg { width: 26px; height: 26px; }
.care-card h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 560; }
.care-card > p { color: var(--ink-2); }
.ticks { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 2px solid var(--hep); border-bottom: 2px solid var(--hep); transform: rotate(-45deg) translateY(-3px); }
.care-card .btn { align-self: flex-start; margin-top: auto; }

/* Galeria do consultório */
.gallery { margin-top: clamp(60px, 7vw, 96px); }
.gallery-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 560; margin-bottom: 26px; }
.gallery-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1.15fr 1fr 1fr .85fr; grid-template-rows: repeat(2, clamp(180px, 19vw, 260px));
  grid-template-areas: "desk wait wait room" "desk recep lounge room";
}
.gallery-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  padding: 7px 12px; border-radius: 999px; background: rgba(18, 26, 29, .72); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 13px; line-height: 1.3;
}
.g-desk { grid-area: desk; }
.g-desk img { object-position: 40% 60%; }
.g-wait { grid-area: wait; }
.g-room { grid-area: room; }
.g-desk2 { grid-area: recep; }
.g-lounge { grid-area: lounge; }
.gallery-grid figure.reveal:nth-child(2) { transition-delay: .08s; }
.gallery-grid figure.reveal:nth-child(3) { transition-delay: .16s; }
.gallery-grid figure.reveal:nth-child(4) { transition-delay: .24s; }
.gallery-grid figure.reveal:nth-child(5) { transition-delay: .32s; }

/* Vídeos: carrossel com player próprio (só play e pausa) */
.clips { padding: 0 0 clamp(90px, 11vw, 140px); overflow: hidden; }
.clips-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.clips-head .h2 { max-width: 760px; }
.clips-nav { display: flex; gap: 10px; flex: none; }
.clips-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: border-color .25s, color .25s, opacity .25s, transform .3s var(--ease);
}
.clips-arrow svg { width: 20px; height: 20px; }
.clips-arrow:hover:not(:disabled) { border-color: var(--hep); color: var(--hep); }
.clips-arrow:active:not(:disabled) { transform: scale(.94); }
.clips-arrow:disabled { opacity: .35; cursor: default; }
.clips-track {
  --edge: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  display: flex; gap: clamp(14px, 1.6vw, 22px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 12px; scrollbar-width: none;
}
.clips-track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .clips-track { scroll-snap-type: x proximity; } }
.clips-track:focus-visible { outline: 2px solid var(--hep); outline-offset: -2px; border-radius: 12px; }
.clip { flex: 0 0 clamp(236px, 23vw, 292px); scroll-snap-align: start; margin: 0; }
.clip.reveal:nth-child(2) { transition-delay: .08s; }
.clip.reveal:nth-child(3) { transition-delay: .16s; }
.clip.reveal:nth-child(4) { transition-delay: .24s; }
.clip-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: var(--night); box-shadow: 0 30px 60px -36px rgba(92, 37, 17, .55);
}
/* o player do YouTube fica maior que a moldura: a faixa de título e o rodapé dele ficam fora da área visível */
.clip-yt { position: absolute; left: 0; right: 0; top: -80px; height: calc(100% + 160px); z-index: 0; }
.clip-yt iframe { display: block; width: 100%; height: 100%; border: 0; }
.clip-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  transition: opacity .18s ease, transform 1.2s var(--ease);
}
.clip:hover .clip-poster { transform: scale(1.03); }
/* a capa sai com atraso: cobre o ícone que o YouTube pisca ao começar a tocar */
.clip.is-playing .clip-poster { opacity: 0; transition: opacity .45s var(--ease) .9s, transform 1.2s var(--ease); }
.clip-play {
  position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; cursor: pointer; color: var(--hep);
  display: grid; place-items: end start; padding: 0 0 24px 18px; background: linear-gradient(to top, rgba(18, 26, 29, .42), transparent 34%);
  transition: background .4s var(--ease);
}
.clip.is-playing .clip-play { background: transparent; }
.clip-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 22px; }
.clip-icon {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(248, 250, 249, .93); box-shadow: 0 16px 34px -14px rgba(18, 26, 29, .7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.clip-icon svg { width: 22px; height: 22px; }
.clip-icon .i-play { transform: translateX(1.5px); }
.clip-icon .i-pause, .clip.is-playing .clip-icon .i-play { display: none; }
.clip.is-playing .clip-icon .i-pause { display: block; }
.clip-play:hover .clip-icon { transform: scale(1.07); }
.clip.is-playing .clip-icon { opacity: 0; transform: scale(.85); }
.clip.is-playing .clip-play:hover .clip-icon, .clip.is-playing .clip-play:focus-visible .clip-icon { opacity: 1; transform: none; }
.clip.is-loading .clip-icon::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(248, 250, 249, .95); border-right-color: transparent; animation: clip-spin .8s linear infinite;
}
@keyframes clip-spin { to { transform: rotate(360deg); } }
/* se o celular exigir o toque direto no vídeo, a camada sai da frente */
.clip.needs-tap .clip-play, .clip.needs-tap .clip-poster { opacity: 0; pointer-events: none; }
.clip-bar {
  position: absolute; left: 18px; right: 18px; bottom: 10px; z-index: 3; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .3); overflow: hidden; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.clip.is-started .clip-bar { opacity: 1; }
.clip-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s linear; }
.clip-title { margin-top: 16px; font: 560 18px/1.3 var(--f-display); letter-spacing: -.01em; max-width: 24ch; }

/* Endereço + mapa */
.place {
  margin-top: 26px; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
}
.place-info { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; }
.place-info .eyebrow { margin-bottom: 14px; }
.place-info h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 560; }
.place address { font-style: normal; margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.place address .mono { color: var(--muted); }
.place-note { margin-top: 12px; color: var(--muted); font-size: 15px; }
.place-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 26px; }
.place-book { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.place-book-title { font: 500 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 4px; }
.place-book a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0;
  color: var(--ink); text-decoration: none; font-size: 15.5px; border-bottom: 1px dashed var(--line);
  transition: color .25s var(--ease);
}
.place-book a:last-child { border-bottom: 0; }
.place-book a svg { width: 20px; height: 20px; flex: none; color: var(--hep); }
.place-book a span { flex: 1; }
.place-book a i { font-style: normal; color: var(--muted); transition: transform .3s var(--ease), color .25s; }
.place-book a:hover { color: var(--hep); }
.place-book a:hover i { color: var(--hep); transform: translate(2px, -2px); }
.place-map { position: relative; min-height: 380px; background: var(--bg); }
.place-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75) contrast(1.02); }

/* Primeira consulta */
.journey { margin-top: clamp(70px, 8vw, 110px); }
.journey-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 560; margin-bottom: 34px; }
.journey-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 34px); position: relative; }
.journey-list::before { /* vaso que liga as etapas */
  content: ""; position: absolute; left: 18px; right: 18px; top: 17px; height: 2px;
  background: linear-gradient(90deg, var(--portal), var(--artery) 50%, var(--bile));
  transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; opacity: .6;
}
.journey-list.is-drawn::before { transform: scaleX(1); }
.journey-list li { position: relative; }
.j-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); font-size: 13px; position: relative; z-index: 1; margin-bottom: 18px; }
.journey-list h4 { margin: 0; font: 560 20px/1.25 var(--f-display); letter-spacing: -.015em; }
.journey-list p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.journey-list li:nth-child(2) { transition-delay: .12s; }
.journey-list li:nth-child(3) { transition-delay: .24s; }
.journey-list li:nth-child(4) { transition-delay: .36s; }

/* ---------- Sobre ---------- */
.about { padding: clamp(60px, 8vw, 100px) 0 clamp(90px, 11vw, 140px); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.portrait { margin: 0 0 30px; position: relative; isolation: isolate; justify-self: center; width: min(100%, 440px); }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 28px; object-fit: cover; object-position: 50% 20%; background: var(--line); box-shadow: 0 40px 80px -40px rgba(92, 37, 17, .45); }
.portrait::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 28px; border: 1px solid var(--hep-soft); opacity: .55; z-index: -1; }
.portrait-tag {
  position: absolute; left: -18px; bottom: 28px; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; border-radius: 16px; background: rgba(248, 250, 249, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(18, 26, 29, .5);
}
.portrait-tag b { font: 600 16px/1.2 var(--f-display); letter-spacing: -.01em; }
.portrait-tag .mono { color: var(--hep); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.chips li.mono { font-size: 12px; color: var(--ink); }
.about-copy p { color: var(--ink-2); margin-top: 16px; max-width: 560px; }
.about-copy .about-lead { font: 400 clamp(20px, 1.8vw, 24px)/1.4 var(--f-display); color: var(--ink); margin-top: 22px; letter-spacing: -.01em; }
.insta { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font: 500 15px/1 var(--f-mono); text-decoration: none; color: var(--hep); padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s, background .3s; }
.insta:hover { border-color: var(--hep); background: var(--surface); }
.insta svg { width: 20px; height: 20px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.socials .insta { margin-top: 0; min-height: 44px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 11vw, 140px); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font: 520 clamp(19px, 1.7vw, 22px)/1.3 var(--f-display); letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--hep), var(--hep)) center/14px 2px no-repeat, linear-gradient(var(--hep), var(--hep)) center/2px 14px no-repeat; transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 44px 26px 0; color: var(--ink-2); }

/* ---------- CTA final ---------- */
.final { padding: 0 0 clamp(90px, 11vw, 140px); }
.final-inner { position: relative; border-top: 1px solid var(--line); padding-top: clamp(70px, 9vw, 110px); }
.final-inner > :not(.lobules) { position: relative; z-index: 1; }
.lobules {
  position: absolute; right: 0; top: 0; width: min(58%, 680px); height: 100%; z-index: 0; overflow: visible; pointer-events: none;
  -webkit-mask-image: radial-gradient(75% 80% at 72% 50%, #000 30%, transparent 78%); mask-image: radial-gradient(75% 80% at 72% 50%, #000 30%, transparent 78%);
}
.lobules .hex { fill: none; stroke: #B9C4C1; stroke-width: 1; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.4s var(--ease); }
.lobules .tp { opacity: 0; transition: opacity .8s var(--ease) 1.4s; }
.lobules .cv { fill: var(--hv); opacity: .5; animation: breathe 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.final-inner.is-in .lobules .hex { stroke-dashoffset: 0; }
.final-inner.is-in .lobules .tp { opacity: .85; }
@keyframes breathe { 50% { transform: scale(1.6); opacity: .2; } }
.lobule-cap { margin-top: 46px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.lobule-cap i { display: inline-block; width: 8px; height: 8px; margin: 0 1px; border-radius: 50%; background: var(--c); vertical-align: -1px; }
.final-title { font-size: clamp(40px, 6vw, 86px); max-width: 1000px; font-weight: 600; }
.final-title span { display: inline; font-weight: 300; color: var(--hep); }

/* ---------- Rodapé ---------- */
.foot { background: var(--ink); color: #CBD4D2; padding: 56px 0 28px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot b { font: 600 20px/1.3 var(--f-display); color: #fff; }
.foot-logo {
  display: block; width: 240px; height: 97px; margin: -8px 0 6px -10px; background: #EADFD6;
  -webkit-mask: url(../img/logo-completo.png) left center / contain no-repeat; mask: url(../img/logo-completo.png) left center / contain no-repeat;
}
.foot p { margin-top: 8px; font-size: 14.5px; }
.foot .mono { color: #9AA8A5; }
.foot-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-links a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .2); padding: 10px 0 2px; }
.foot-links a:hover { color: #fff; border-color: #fff; }
.foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #7F8D8A; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #168C4C; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(18, 26, 29, .5); transition: transform .3s var(--ease);
  transform: scale(0); visibility: hidden;
}
.wa-float.is-on { transform: scale(1); visibility: visible; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; position: relative; z-index: 2; }

/* Onda do botão: o mesmo pulso da elastografia. A sonda "toca" (o ícone afunda)
   e duas ondas saem do botão, a principal e o eco logo atrás. */
.wa-float::before, .wa-float::after, .wa-wave {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 0;
  border: 2.5px solid #168C4C; opacity: 0;
}
.wa-wave { border-color: var(--hep-soft); border-width: 2px; }
.wa-float.is-on::before { animation: wa-wave 4.2s cubic-bezier(.15, .6, .3, 1) 1.2s infinite; }
.wa-float.is-on::after { animation: wa-wave 4.2s cubic-bezier(.15, .6, .3, 1) 1.42s infinite; border-width: 1px; }
.wa-float.is-on .wa-wave { animation: wa-wave 4.2s cubic-bezier(.15, .6, .3, 1) 1.64s infinite; }
.wa-float.is-on svg { animation: wa-tap 4.2s var(--ease) 1.2s infinite; }
@keyframes wa-wave {
  0% { transform: scale(1); opacity: .95; }
  55% { opacity: .22; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes wa-tap {
  0%, 12%, 100% { transform: none; }
  4% { transform: scale(.86) rotate(-8deg); }
}
.wa-float:hover::before, .wa-float:hover::after, .wa-float:hover .wa-wave, .wa-float:hover svg { animation-play-state: paused; }

/* Rótulo que sai do botão: aparece ao passar o mouse, no foco
   e uma vez sozinho quando o botão surge na tela. */
.wa-label {
  position: absolute; right: calc(100% + 12px); top: 50%; z-index: 1; pointer-events: none;
  padding: 10px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); color: #fff; font: 500 14px/1 var(--f-body);
  box-shadow: 0 12px 28px -14px rgba(18, 26, 29, .6);
  opacity: 0; transform: translate(10px, -50%); transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.wa-label::after { /* setinha apontando para o botão */
  content: ""; position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  background: inherit; transform: rotate(45deg); border-radius: 2px;
}
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label, .wa-float.is-peek .wa-label { opacity: 1; transform: translate(0, -50%); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .journey-list { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .journey-list::before { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: 96px; align-items: start; min-height: auto; padding-bottom: 50px; }
  .hero-stage { position: relative; inset: auto; height: 62vw; min-height: 300px; margin: 0 -10px; order: -1; }
  .hero::before { right: -30%; top: 2%; width: 130vw; }
  .tag[data-anchor="cava"], .tag[data-anchor="porta"] { display: none; }
  .tag { font-size: 12px; padding: 5px 9px 5px 7px; }
  .hero-hint { display: none; }
  .hero-copy { max-width: none; }
  .areas-grid, .about-grid, .faq-grid, .signs-layout { grid-template-columns: 1fr; }
  .signs-layout { gap: 0; }
  .signs-side { display: contents; }
  .signs-side .sec-head { order: 1; }
  .checklist { order: 2; }
  .tally { order: 3; position: sticky; bottom: 12px; z-index: 5; max-width: none; margin-top: 14px; padding: 16px 18px; box-shadow: 0 20px 40px -20px rgba(18, 26, 29, .6); }
  .tally-note, .tally-bar { display: none; }
  .tally-msg { min-height: 0; font-size: 14px; margin-bottom: 12px; }
  .tally-count b { font-size: 36px; }
  .tally { padding-right: 78px; }
  .lobules { width: 100%; opacity: .55; }
  .sticky-head { position: static; }
  .care-grid { grid-template-columns: 1fr; }
  .place { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 170px); grid-template-areas: "desk room" "desk room" "wait wait" "recep lounge"; gap: 10px; }
  .gallery-grid figcaption { font-size: 12px; left: 8px; bottom: 8px; padding: 6px 10px; }
  .portrait { width: min(88%, 380px); }
  .portrait-tag { left: -10px; }
  .place-map { min-height: 300px; order: -1; }
  .elasto { border-radius: 26px 26px 0 0; }
  .elasto-track { height: 380vh; }
  .elasto-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 70px; gap: 8px; }
  .elasto-stage { height: 50svh; }
  .hud { padding: 12px 14px; }
  .readouts { display: none; }
  .step h3 { font-size: 28px; }
  .step p { font-size: 16px; margin-top: 10px; }
  .steps-col { gap: 16px; }
  .step-track button { font-size: 0; padding-top: 8px; }
  .step-track button span { font-size: 12px; margin: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { inset: 10px 10px auto; padding: 8px 8px 8px 14px; }
  .brand-text b { font-size: 14px; white-space: nowrap; }
  .hide-sm { display: none; }
  .nav .btn-sm { --h: 44px; padding: 0 16px; font-size: 13.5px; }
  .journey-list { grid-template-columns: 1fr; }
  .sign { padding: 16px; column-gap: 12px; }
  .btn { padding: 0 22px; }
  .hero-cta .btn, .place-cta .btn { width: 100%; justify-content: center; }
  .elasto-stage { height: 46svh; }
  .gauge-cap { display: none; }
  .hud-row { letter-spacing: .06em; }
  .hud-row span:first-child { display: none; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

@media (max-width: 560px) {
  .clips-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .clips-nav { display: none; }
  .clip { flex-basis: 72vw; }
}
@media (prefers-reduced-motion: reduce) {
  .clip.is-loading .clip-icon::after { animation-duration: 2.4s; }
  .wa-float::before, .wa-float::after, .wa-wave { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-copy > * { opacity: 1; transform: none; }
}
