/* ==========================================================================
   Capital Diagnóstico por Imagem — design system
   Direção: clínica editorial. Papel claro, tinta profunda, cor da marca
   usada com parcimônia. Movimento só onde explica, responde ou orienta.
   ========================================================================== */

:root {
  /* Cor */
  --paper: #f4f2ed;
  --paper-2: #ecE9e2;
  --card: #fbfaf7;
  --ink: #0c1b2a;
  --ink-2: #33414f;
  --muted: #6a7581;
  --line: rgb(12 27 42 / 0.12);
  --line-strong: rgb(12 27 42 / 0.22);

  --teal: #008a7e;
  --blue: #0062b3;
  --navy: #003c8b;
  --mint: #6fd6c8;

  --ink-bg: #0b1724;
  --ink-line: rgb(244 242 237 / 0.14);
  --ink-muted: rgb(244 242 237 / 0.62);

  /* Tipografia */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Movimento (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 72px;
  --radius: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: var(--ink-muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgb(0 138 126 / 0.14); }

.display {
  font-size: clamp(2.6rem, 6.6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 400;
  text-wrap: balance;
}
.display em { font-size: 1.06em; letter-spacing: -0.02em; color: var(--blue); }
.display--light { color: var(--paper); }
.display--light em { color: var(--mint); }

.title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-wrap: balance;
}
.title em { font-size: 1.06em; color: var(--blue); }

.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

/* ---------- Botões ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 40px; padding-inline: 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--line { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.btn--ghost { --h: 40px; padding-inline: 14px; font-size: 14px; color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn .arrow { transition: transform 200ms var(--ease-out); }
.chev { transition: transform 200ms var(--ease-out); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy); }
  .btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .btn--ghost:hover, .btn--ghost[aria-expanded="true"] { background: rgb(12 27 42 / 0.06); }
  .btn--light:hover { background: #fff; }
  .btn:hover .arrow { transform: translateX(3px); }
}

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
}
.link svg { transition: transform 200ms var(--ease-out); }
.link--light { color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .link:hover svg { transform: translateX(3px); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.header.is-scrolled {
  background: rgb(244 242 237 / 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__logo img { width: 158px; }
.nav { display: none; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: rgb(12 27 42 / 0.05); } }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__actions .popover { display: none; }

.burger { width: 40px; height: 40px; border-radius: 999px; display: grid; place-content: center; gap: 5px; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 160ms var(--ease-out); }
.burger:active { transform: scale(0.95); }
.burger span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; }

@media (min-width: 1040px) {
  .nav { display: flex; }
  .header__actions { margin-left: 0; }
  .header__actions .popover { display: block; }
  .burger { display: none; }
}

/* ---------- Popover (Resultados) ---------- */
.popover { position: relative; }
.popover__panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 300px; padding: 8px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgb(12 27 42 / 0.25), 0 4px 10px -4px rgb(12 27 42 / 0.08);
  transform-origin: top right;
  opacity: 0; transform: scale(0.97) translateY(-4px);
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s 150ms;
}
.popover.is-open .popover__panel {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 180ms ease, transform 200ms var(--ease-out), visibility 0s;
}
.popover__label { padding: 8px 12px 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.popover__item { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; transition: background-color 150ms ease; }
.popover__item span { font-size: 14.5px; font-weight: 500; }
.popover__item small { font-size: 12.5px; color: var(--muted); }
.popover__item:hover, .popover__item:focus-visible { background: rgb(12 27 42 / 0.05); }

/* ---------- Sheet (menu móvel) ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s 400ms; }
.sheet.is-open { visibility: visible; transition: visibility 0s; }
.sheet__backdrop { position: absolute; inset: 0; background: rgb(11 23 36 / 0.4); opacity: 0; transition: opacity 300ms ease; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: absolute; inset: 8px 8px 8px auto;
  width: min(420px, calc(100% - 16px));
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px;
  padding: 16px 20px 20px;
  transform: translateX(calc(100% + 16px));
  transition: transform 400ms var(--ease-drawer);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.sheet__top img { width: 140px; }
.sheet__close { width: 40px; height: 40px; border-radius: 999px; display: grid; place-content: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 160ms var(--ease-out); }
.sheet__close:active { transform: scale(0.95); }
.sheet__nav { display: grid; margin-top: 28px; }
.sheet__nav a { padding: 14px 0; font-size: 26px; letter-spacing: -0.03em; border-bottom: 1px solid var(--line); }
.sheet__foot { margin-top: auto; display: grid; gap: 14px; text-align: center; color: var(--muted); padding-top: 24px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(32px, 7vw, 96px)); padding-bottom: clamp(40px, 5vw, 64px); position: relative; }
.hero__grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: end; }
.hero__copy { display: grid; gap: 28px; justify-items: start; }
.hero__copy .display { font-size: clamp(2.7rem, 7.6vw, 7.6rem); }
.hero__copy .line { display: block; }
.hero__sub { display: grid; gap: 28px; justify-items: start; align-content: end; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__visual { position: relative; }
.lens { position: relative; aspect-ratio: 1162 / 561; }
.lens__img { width: 100%; height: 100%; }
.lens__scan {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../assets/img/lente-ressonancia.png") center / 100% 100% no-repeat;
  mask: url("../assets/img/lente-ressonancia.png") center / 100% 100% no-repeat;
  overflow: hidden;
}
.lens__scan span {
  position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.06) 70%, rgb(255 255 255 / 0.55) 98%, rgb(255 255 255 / 0.9) 100%);
  transform: translateY(-100%);
  opacity: 0;
}
.hero__caption {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
}

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.facts > div { padding: 20px 16px 0 0; display: grid; gap: 6px; align-content: start; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-size: 15px; }
.facts__badge { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.facts__badge img { width: 34px; grid-row: span 2; }
.facts__badge dd { font-size: 13.5px; line-height: 1.35; }
.facts__badge dd .mono { color: var(--muted); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); }
  .hero__copy { grid-column: 1 / -1; }
  .hero__sub { padding-bottom: 46px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .facts > div:nth-child(odd) { padding-right: 16px; }
  .facts > div:nth-child(n+3) { margin-top: 12px; border-top: 1px solid var(--line); }
}

/* Entrada do hero — vista uma vez por visita, então tem mais respiro */
.js .hero__in { opacity: 0; transform: translateY(14px); }
.js .is-ready .hero__in {
  animation: rise 700ms var(--ease-out) var(--d, 0ms) both;
}
.js .hero__in.eyebrow, .js .hero__in.facts { transform: none; }
.js .is-ready .hero__in.eyebrow, .js .is-ready .hero__in.facts { animation-name: fade; animation-duration: 600ms; }

.js .lens__img { clip-path: inset(0 0 100% 0); }
.js .is-ready .lens__img { animation: reveal 1150ms var(--ease-in-out) 80ms both; }
.js .is-ready .lens__scan span { animation: scan 1500ms var(--ease-in-out) 700ms both; }
.js .hero__caption { opacity: 0; }
.js .is-ready .hero__caption { animation: fade 600ms ease 900ms both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan {
  0% { transform: translateY(-100%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(460%); opacity: 0; }
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(80px, 11vw, 160px); }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); justify-items: start; }
.section__note { color: var(--muted); max-width: 40ch; }
.section--ink { background: var(--ink-bg); color: var(--paper); }

/* Revelação por scroll: uma entrada por container, uma vez só */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms);
}

/* ---------- Resultados ---------- */
.results { padding-top: clamp(48px, 6vw, 96px); }
.results__grid { display: grid; gap: 12px; }
.rcard {
  position: relative; display: grid; gap: 10px; align-content: start;
  min-height: 220px; padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease;
}
.rcard:active { transform: scale(0.985); }
.rcard__tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.rcard__title { margin-top: auto; padding-top: 32px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; }
.rcard__desc { font-size: 14.5px; color: var(--ink-2); max-width: 34ch; }
.rcard__go {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-content: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out);
}
.rcard--primary { background: var(--blue); color: #fff; box-shadow: none; }
.rcard--primary .rcard__tag, .rcard--primary .rcard__desc { color: rgb(255 255 255 / 0.76); }
.rcard--primary .rcard__go { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
.rcard--quiet { background: transparent; }

@media (hover: hover) and (pointer: fine) {
  .rcard:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .rcard:hover .rcard__go { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
  .rcard--primary:hover { background: var(--navy); box-shadow: none; }
  .rcard--primary:hover .rcard__go { background: #fff; color: var(--blue); }
}
@media (min-width: 760px) {
  .results__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .rcard { min-height: 280px; }
}

/* ---------- Exames ---------- */
.exams { padding-top: clamp(40px, 6vw, 80px); }
.exam-list { border-top: 1px solid var(--line-strong); }
.exam {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 44px 1fr auto; gap: 6px 16px; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-strong);
}
.exam::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1;
  background: var(--card); border-radius: 14px;
  opacity: 0; transform: scaleY(0.92);
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}
.exam__n { color: var(--muted); font-size: 12px; }
.exam__name { font-size: clamp(1.7rem, 3.6vw, 3rem); letter-spacing: -0.035em; line-height: 1.05; }
.exam__desc { grid-column: 2 / 3; color: var(--ink-2); font-size: 15px; max-width: 48ch; }
.exam__go {
  grid-column: 3; grid-row: 1; align-self: center;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-content: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.exam__go svg { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .exam:hover::before { opacity: 1; transform: none; }
  .exam:hover .exam__go { background: var(--ink); color: var(--paper); box-shadow: none; }
  .exam:hover .exam__go svg { transform: translateX(2px); }
}
@media (min-width: 900px) {
  .exam { grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; padding: 34px 0; }
  .exam__desc { grid-column: 3; grid-row: 1; }
  .exam__go { grid-column: 4; }
}

/* ---------- A clínica ---------- */
.about__grid { display: grid; gap: clamp(40px, 6vw, 80px); }
.about__lead { display: grid; gap: 28px; }
.statement { font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.statement em { color: var(--mint); font-size: 1.05em; }
.about__body { display: grid; gap: 18px; color: var(--ink-muted); max-width: 58ch; align-content: start; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink-line); }
.stats > div { padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--ink-line); }
.stats dt { order: 2; font-size: 13px; color: var(--ink-muted); max-width: 18ch; }
.stats dd { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stats sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.2em; color: var(--mint); }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.25fr 1fr; }
  .about__lead { grid-column: 1 / -1; max-width: 980px; }
  .about__body { grid-column: 2; grid-row: 2; }
  .about__grid .stats { grid-column: 1; grid-row: 2; align-self: start; }
}

.about__cta { justify-self: start; margin-top: 12px; }

/* Filme (YouTube com capa leve: o player só carrega no clique) */
.film { grid-column: 1 / -1; display: grid; gap: 14px; margin-top: clamp(24px, 4vw, 48px); }
.film__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius);
  background: #2b5ea8;
  isolation: isolate;
}
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__poster {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 50% 40%, rgb(255 255 255 / 0.10), transparent 60%),
    linear-gradient(160deg, #3266b0 0%, #23508f 100%);
  color: var(--paper);
  transition: opacity 400ms var(--ease-out), visibility 0s 400ms;
}
.film__mark { width: min(46%, 520px); height: auto; transition: transform 600ms var(--ease-out); }
.film__meta {
  position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: 16px; text-align: left;
}
.film__play {
  display: grid; place-content: center;
  width: clamp(52px, 6vw, 68px); aspect-ratio: 1; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  padding-left: 3px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.film__poster:active .film__play { transform: scale(0.95); }
.film__text { display: grid; gap: 2px; }
.film__text .mono { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.film__text span:last-child { font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: -0.02em; }
.film__caption { display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
.film__frame.is-playing .film__poster { opacity: 0; visibility: hidden; pointer-events: none; }
.film__frame.is-loading .film__play { animation: film-pulse 1s ease-in-out infinite; }
@keyframes film-pulse { 50% { opacity: 0.6; } }
@media (hover: hover) and (pointer: fine) {
  .film__poster:hover .film__play { transform: scale(1.06); background: #fff; }
  .film__poster:hover .film__mark { transform: scale(1.015); }
}
@media (max-width: 599px) {
  .film__text span:last-child { display: none; }
}

/* A clínica: galeria do espaço */
.space__grid { display: grid; gap: 12px; }
.space__col { display: grid; gap: 12px; align-content: start; }
.shot { display: grid; gap: 10px; }
.shot__media { overflow: hidden; border-radius: 14px; background: var(--paper-2); }
.shot__media img { width: 100%; height: auto; object-position: var(--pos, 50% 50%); }
.shot__cap { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
@media (min-width: 760px) {
  .space__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .space__col { gap: 28px; }
  .space__col:nth-child(2) { margin-top: clamp(64px, 9vw, 140px); }
  .space__col:nth-child(3) { margin-top: clamp(24px, 3vw, 48px); }
}
@media (max-width: 759px) {
  .space__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space__col { display: contents; }
  .shot__media { aspect-ratio: 3 / 4; }
  .shot__media img { height: 100%; object-fit: cover; }
  .shot__cap span:last-child { display: none; }
}

/* Revelação de imagem por recorte — uma vez, ao entrar na tela */
.js [data-reveal-clip] .shot__media { clip-path: inset(0 0 100% 0); }
.js [data-reveal-clip] .shot__media img { transform: scale(1.08); }
.js [data-reveal-clip] .shot__cap { opacity: 0; }
.js [data-reveal-clip].is-in .shot__media { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-in-out) var(--d, 0ms); }
.js [data-reveal-clip].is-in .shot__media img { transform: none; transition: transform 1400ms var(--ease-out) var(--d, 0ms); }
.js [data-reveal-clip].is-in .shot__cap { opacity: 1; transition: opacity 500ms ease calc(var(--d, 0ms) + 600ms); }

/* ---------- Corpo clínico ---------- */
.section__head--split { width: 100%; }
@media (min-width: 1040px) {
  .section__head--split { grid-template-columns: 1fr auto; align-items: end; justify-items: stretch; }
}

/* Segmented control — cópia “ativa” recortada com clip-path (transição de cor perfeita) */
.seg { position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
.seg::-webkit-scrollbar { display: none; }
@media (min-width: 1040px) { .seg { -webkit-mask: none; mask: none; } }
.seg__track {
  display: inline-flex; gap: 2px; padding: 4px;
  border-radius: 999px; background: var(--paper-2);
  white-space: nowrap;
}
.seg__track > * { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.seg__track button { transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .seg__track button:hover { color: var(--ink); } }
.seg__track--active {
  position: absolute; left: 0; top: 0; pointer-events: none;
  background: var(--ink);
  clip-path: inset(4px calc(100% - 80px) 4px 4px round 999px);
}
.seg__track--active.is-ready { transition: clip-path 280ms var(--ease-out); }
.seg__track--active > * { color: var(--paper); }

.doctors { border-top: 1px solid var(--line-strong); transition: opacity 200ms ease, filter 200ms ease; }
.doctors.is-swapping { opacity: 0; filter: blur(2px); transition-duration: 120ms; }
.doctors li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.doctors li[hidden] { display: none; }
.doc__name { font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -0.02em; }
.doc__tag { grid-column: 2; grid-row: 1; justify-self: end; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px; background: rgb(0 138 126 / 0.1); color: var(--teal); white-space: nowrap; }
.doc__area { grid-column: 1; font-size: 14px; color: var(--muted); }
.doc__crm { grid-column: 2; justify-self: end; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.doctors li:not(:has(.doc__tag)) .doc__crm { grid-row: 1; }
.team__note { margin-top: 24px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .doctors li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 150px 140px; align-items: center; padding: 20px 0; }
  .doc__name { grid-column: 1; grid-row: 1; }
  .doc__area { grid-column: 2; grid-row: 1; }
  .doc__tag { grid-column: 3; grid-row: 1; justify-self: start; }
  .doc__crm { grid-column: 4; grid-row: 1; }
}

/* ---------- Conteúdo ---------- */
.journal { background: var(--paper-2); }
.posts { display: grid; gap: 40px 20px; }
.post { display: grid; gap: 12px; align-content: start; }
.post__media { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--line); margin-bottom: 8px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 700ms var(--ease-out), filter 400ms ease; }
.post__meta { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.post__title { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; max-width: 28ch; }
@media (hover: hover) and (pointer: fine) {
  .post:hover .post__media img { transform: scale(1.03); filter: saturate(1); }
}
@media (min-width: 760px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Convênios ---------- */
.plans__grid { display: grid; gap: 8px; }
.plans__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.plans__list li {
  padding: 26px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -0.03em;
}
.plans__list li:nth-child(odd) { padding-right: 16px; }
.plans__list li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
@media (min-width: 900px) {
  .plans__grid { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
  .plans__grid .section__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}

/* ---------- Unidade ---------- */
.visit__head { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 96px); }
.visit__grid { display: grid; gap: 40px; border-top: 1px solid var(--ink-line); padding-top: 32px; }
.visit__col { display: grid; gap: 14px; align-content: start; color: var(--ink-muted); }
.visit__col h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper); }
.visit__col .link { justify-self: start; margin-top: 4px; }
.visit__phones { display: grid; gap: 6px; font-size: 15px; }
.visit__phones a { transition: color 150ms ease; justify-self: start; }
.visit__phones a:hover { color: var(--paper); }
.hours { display: grid; gap: 10px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink-line); }
.hours dd { color: var(--paper); }
.visit__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(48px, 6vw, 80px); color: var(--ink-muted); font-size: 15px; }
.visit__cta p { max-width: 44ch; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink-bg); color: var(--ink-muted); border-top: 1px solid var(--ink-line); padding-block: 40px; font-size: 13px; }
.footer__inner { display: grid; gap: 20px; align-items: center; }
.footer__inner img { width: 140px; filter: brightness(0) invert(0.94); opacity: 0.9; }
.footer__social { display: flex; gap: 20px; }
.footer__social a { transition: color 150ms ease; }
.footer__social a:hover { color: var(--paper); }
.footer__legal { line-height: 1.7; }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: auto 1fr auto; }
  .footer__social { justify-self: center; }
  .footer__legal { text-align: right; }
}

.footer__privacy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--ink-line); }
.footer__privacy a, .footer__privacy button { color: inherit; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer__privacy a:hover, .footer__privacy button:hover { color: var(--paper); }
}

/* ---------- WhatsApp flutuante ----------
   Círculo em tinta com o símbolo no verde do WhatsApp (reconhecível sem
   destoar). No desktop, o rótulo se revela por clip-path no hover/foco. */
.wa {
  --wa: #25d366;
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.wa__btn {
  position: relative; display: grid; place-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--wa);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset, 0 12px 28px -10px rgb(11 23 36 / 0.55), 0 2px 6px rgb(11 23 36 / 0.18);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.wa:active .wa__btn { transform: scale(0.96); }
/* Ponto de "aberto agora" */
.wa__btn::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--wa); box-shadow: 0 0 0 3px var(--paper);
  opacity: 0; transform: scale(0.5);
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
}
.wa.is-open .wa__btn::after { opacity: 1; transform: none; }
.wa__label { display: none; }

@media (min-width: 640px) {
  .wa { right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
  .wa__label {
    position: absolute; right: 28px; top: 50%;
    display: grid; gap: 1px; white-space: nowrap;
    padding: 9px 44px 9px 20px; border-radius: 999px;
    background: var(--ink); color: var(--paper);
    box-shadow: 0 12px 28px -10px rgb(11 23 36 / 0.45);
    translate: 0 -50%;
    clip-path: inset(0 0 0 100% round 999px);
    transition: clip-path 220ms var(--ease-out);
  }
  .wa__title { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
  .wa__status { font-size: 11.5px; color: var(--ink-muted); }
  .wa.is-open .wa__status { color: var(--mint); }
  .wa__btn { z-index: 1; }
  .wa:focus-visible { outline: none; }
  .wa:focus-visible .wa__btn { outline: 2px solid var(--blue); outline-offset: 3px; }
  .wa:focus-visible .wa__label { clip-path: inset(0 round 999px); }
}
@media (min-width: 640px) and (hover: hover) and (pointer: fine) {
  .wa:hover .wa__label { clip-path: inset(0 round 999px); transition-duration: 300ms; }
}

/* Entrada: depois da abertura da página, uma vez */
.js .wa { opacity: 0; transform: translateY(8px) scale(0.9); }
.js .is-ready .wa { opacity: 1; transform: none; transition: opacity 300ms ease 700ms, transform 500ms var(--ease-out) 700ms; }
/* Não disputar espaço com o aviso de cookies em telas estreitas */
@media (max-width: 759px) {
  .js .is-ready:has(.consent.is-in) .wa { opacity: 0; transform: translateY(8px) scale(0.9); pointer-events: none; transition-delay: 0ms; }
}

/* ---------- Consentimento (LGPD) ----------
   Banner não modal: o site continua navegável. Entra uma vez, de baixo,
   depois da entrada do hero; sai mais rápido do que entra. */
.consent {
  position: fixed; z-index: 70;
  inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
  pointer-events: none;
}
.consent__card {
  pointer-events: auto;
  width: min(100%, 600px);
  background: var(--card); color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgb(11 23 36 / 0.35), 0 2px 6px rgb(11 23 36 / 0.06);
  padding: 22px 22px 18px;
  display: grid; gap: 10px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.consent.is-in .consent__card { opacity: 1; transform: none; transition-duration: 300ms, 500ms; }
.consent__title { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.consent__text { font-size: 14px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.consent__actions { display: grid; gap: 12px; margin-top: 6px; }
.consent__choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent__link {
  justify-self: start; font-size: 13.5px; color: var(--blue);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgb(0 98 179 / 0.35);
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .consent__link:hover { text-decoration-color: currentColor; }
}
@media (min-width: 640px) {
  .consent { inset: auto auto 24px 24px; }
  .consent__card { padding: 24px 24px 20px; }
  .consent__actions { grid-template-columns: 1fr auto; align-items: center; }
  .consent__choice { grid-template-columns: auto auto; }
}

/* Central de preferências: <dialog> nativo (foco preso e Esc de graça) */
.prefs {
  width: min(640px, calc(100% - 24px)); max-height: min(720px, calc(100dvh - 24px));
  padding: 0; border: 0; border-radius: 22px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 32px 64px -24px rgb(11 23 36 / 0.45);
  overflow: hidden;
  opacity: 0; transform: scale(0.96);
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
.prefs.is-open { opacity: 1; transform: none; transition-duration: 200ms, 250ms; }
.prefs::backdrop { background: rgb(11 23 36 / 0.45); opacity: 0; transition: opacity 200ms ease; }
.prefs.is-open::backdrop { opacity: 1; }
.prefs__panel { display: flex; flex-direction: column; max-height: inherit; }
.prefs__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.prefs__title { font-size: 19px; letter-spacing: -0.02em; }
.prefs__body { overflow: auto; overscroll-behavior: contain; padding: 18px 24px 8px; }
.prefs__intro { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.prefs__intro a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(0 98 179 / 0.35); }
.prefs__list { margin-top: 18px; border-top: 1px solid var(--line); }
.prefs__item { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prefs__item:last-child { border-bottom: 0; }
.prefs__name { font-size: 15px; font-weight: 500; }
.prefs__desc { margin-top: 2px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.prefs__always { font-size: 12px; color: var(--teal); white-space: nowrap; }
.prefs__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.prefs__foot [data-consent-accept] { grid-column: 1 / -1; }
@media (max-width: 639px) { .prefs__foot .btn { padding-inline: 12px; } }
@media (min-width: 640px) {
  .prefs__foot { grid-template-columns: auto 1fr auto; }
  .prefs__foot [data-consent-accept] { grid-column: auto; }
  .prefs__foot [data-consent-save] { justify-self: end; }
}

/* Interruptor: o polegar desliza por transform; teclado (espaço) também
   anima porque o estado muda de forma visível e curta */
.switch {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  position: relative; width: 44px; height: 26px; border-radius: 999px;
  background: rgb(12 27 42 / 0.16); cursor: pointer;
  transition: background-color 200ms ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgb(11 23 36 / 0.25);
  transition: transform 200ms var(--ease-out);
}
.switch:checked { background: var(--teal); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 999px; }

/* Páginas legais */
.legal { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px)); padding-bottom: clamp(56px, 8vw, 112px); }
.legal__head { display: grid; gap: 22px; justify-items: start; max-width: 960px; }
.legal__title { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; }
.legal__meta { font-size: 13px; color: var(--muted); }
.legal__grid { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 72px); }
.legal__toc { display: grid; gap: 2px; align-content: start; font-size: 14px; }
.legal__toc a { padding: 6px 0; color: var(--muted); transition: color 150ms ease; }
.legal__toc a:hover { color: var(--ink); }
.legal .prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose strong { color: var(--ink); font-weight: 500; }
.legal .prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(0 98 179 / 0.35); }
.legal__box { padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; justify-items: start; }
.legal__box p { font-size: 14.5px; color: var(--ink-2); }
@media (min-width: 900px) {
  .legal__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 80px; }
  .legal__toc { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.nav a[aria-current="page"] { color: var(--ink); background: rgb(12 27 42 / 0.06); }
.sheet__nav a[aria-current="page"] { color: var(--blue); }
.team__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.team__foot .team__note { margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.crumbs a { transition: color 150ms ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--flush { padding-top: 0; }
.title--light { color: var(--paper); }
.title--light em { color: var(--mint); }

/* Cabeçalho de página */
.phero { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px)); padding-bottom: clamp(48px, 6vw, 88px); }
.phero__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
.phero__copy { display: grid; gap: 26px; justify-items: start; }
.phero .display { font-size: clamp(2.7rem, 7vw, 7rem); }
.phero--text .wrap { display: grid; gap: 26px; justify-items: start; }
.phero--text .display { max-width: 14ch; }
.phero--wide .phero__copy { margin-bottom: clamp(40px, 6vw, 80px); }
.phero--wide .display { max-width: 12ch; }
.phero .facts { margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) {
  .phero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Marca em lente por modalidade */
.mark { width: 100%; }
.lensmark { display: block; width: 100%; height: auto; overflow: visible; }
.lensmark__pattern { opacity: 0.32; }
.js .lensmark { clip-path: inset(0 0 100% 0); }
.js .is-ready .lensmark { animation: reveal 1150ms var(--ease-in-out) 80ms both; }
.js .lensmark__pattern { opacity: 0; }
.js .is-ready .lensmark__pattern { animation: pattern-in 900ms ease 700ms both; }
@keyframes pattern-in { from { opacity: 0; } to { opacity: 0.32; } }

/* Passos do exame */
.steps__grid { display: grid; gap: 8px; }
.steps__list { border-top: 1px solid var(--line-strong); counter-reset: none; }
.steps__list li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps__list .mono { color: var(--muted); font-size: 12px; padding-top: 6px; }
.steps__list h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 400; letter-spacing: -0.03em; }
.steps__list p { grid-column: 2; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
@media (min-width: 900px) {
  .steps__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .steps__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
  .steps__list li { grid-template-columns: 64px minmax(0, 0.8fr) minmax(0, 1.2fr); padding: 32px 0; }
  .steps__list p { grid-column: 3; }
}

/* Busca */
.search {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding-inline: 16px; width: min(100%, 360px);
  border-radius: 999px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--muted);
  transition: box-shadow 150ms ease;
}
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }
.search--wide { width: min(100%, 520px); }
.empty { padding: 32px 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
[data-search-item][hidden], [data-search-group][hidden] { display: none; }
mark { background: rgb(0 98 179 / 0.14); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Tipos de exame */
.types { background: var(--paper-2); }
.groups { display: grid; gap: 40px 32px; }
.group__title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.group li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; letter-spacing: -0.01em; }
.groups .empty { grid-column: 1 / -1; }
@media (min-width: 700px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Destaque de artigo */
.feature { display: grid; gap: 24px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform 160ms var(--ease-out), box-shadow 200ms ease; }
.feature:active { transform: scale(0.99); }
.feature__media { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.feature__body { display: grid; gap: 14px; justify-items: start; padding: 8px; }
.feature__title { font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  .feature:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .feature:hover .feature__media img { transform: scale(1.03); }
}
@media (min-width: 760px) { .feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; } }

/* Faixa de agendamento */
.cta__grid { display: grid; gap: 40px; align-items: end; }
.cta__grid .eyebrow { margin-bottom: 18px; }
.cta__side { display: grid; gap: 18px; justify-items: start; }
.cta__phones { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-muted); font-size: 14px; }
.cta__phones a:hover { color: var(--paper); }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1.3fr 1fr; } .cta__side { justify-items: end; text-align: right; } .cta__phones { justify-content: flex-end; } }

.open-status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-muted); }
.open-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.open-status.is-open { color: var(--mint); }
.open-status.is-open::before { opacity: 1; box-shadow: 0 0 0 4px rgb(111 214 200 / 0.18); }
.open-status--lg { font-size: 14px; color: var(--muted); }
.open-status--lg.is-open { color: var(--teal); }
.open-status--lg.is-open::before { box-shadow: 0 0 0 4px rgb(0 138 126 / 0.14); }

/* Artigo */
.article { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px)); }
.article__head { display: grid; gap: 26px; justify-items: start; max-width: 1080px; }
.article__title { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.02; }
.article__media { margin-top: clamp(40px, 6vw, 72px); }
.article__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.article__grid { display: grid; gap: 48px; padding-block: clamp(48px, 7vw, 104px); }
.article__aside { display: grid; gap: 16px; align-content: start; }
.article__note { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .article__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; }
  .article__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
.prose { max-width: 65ch; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 400; color: var(--ink); }
.prose ul { display: grid; border-top: 1px solid var(--line); }
.prose ul li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 10px; height: 1.5px; background: var(--blue); }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.timeline li { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline .mono { color: var(--blue); font-size: 13px; }
.timeline h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.timeline p { margin: 0; }
.posts--2 { }
@media (min-width: 760px) { .posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A clínica */
.clinic__figure { max-width: 1100px; margin-inline: auto; }
.clinic__intro { display: grid; gap: 40px; }
.statement--ink { color: var(--ink); }
.statement--ink em { color: var(--blue); }
.clinic__body { display: grid; gap: 18px; color: var(--ink-2); max-width: 56ch; align-content: end; }
@media (min-width: 900px) { .clinic__intro { grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: end; } }
.pillars-wrap { background: var(--paper-2); }
.pillars { display: grid; gap: 12px; }
.pillars li { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-height: 260px; }
.pillars .mono { color: var(--muted); font-size: 12px; }
.pillars h3 { margin-top: auto; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 400; letter-spacing: -0.03em; }
.pillars p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.clinic__proof { display: grid; gap: 48px; align-items: center; }
.stats--ink { border-top-color: var(--line-strong); }
.stats--ink > div + div { border-left-color: var(--line-strong); }
.stats--ink dt { color: var(--muted); }
.stats--ink sup { color: var(--teal); }
.badge { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.badge img { width: 72px; }
.badge > div { display: grid; gap: 6px; }
.badge__title { font-size: 1.25rem; letter-spacing: -0.02em; }
.badge__meta { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge p:last-child { color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .clinic__proof { grid-template-columns: 1.2fr 1fr; gap: 80px; } }
.next { display: grid; gap: 12px; }
.next__item { position: relative; display: grid; gap: 40px; padding: 28px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.next__item:active { transform: scale(0.985); }
.next__item .exam__go { position: absolute; top: 24px; right: 24px; }
.next__title { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.05; }
.next__title em { color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .next__item:hover { background: var(--card); }
  .next__item:hover .exam__go { background: var(--ink); color: var(--paper); box-shadow: none; }
}
@media (min-width: 760px) { .next { grid-template-columns: 1fr 1fr; } }

/* Corpo clínico */
.team__bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.seg__track .mono { font-size: 11px; opacity: 0.6; margin-left: 4px; }
.dgrid { display: grid; gap: 12px; transition: opacity 200ms ease, filter 200ms ease; }
.dgrid.is-swapping { opacity: 0; filter: blur(2px); transition-duration: 120ms; }
.dcard { display: grid; gap: 18px; align-content: start; padding: 24px; min-height: 220px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.dcard[hidden] { display: none; }
.dcard__area { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.dcard__name { font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.03em; }
.dcard__name span { color: var(--muted); }
.dcard__extra { font-size: 14px; color: var(--ink-2); }
.dcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dcard__foot .doc__tag { grid-column: auto; grid-row: auto; }
@media (min-width: 640px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .dgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Convênios: índice alfabético */
.alpha { display: grid; gap: 0 32px; }
.alpha__group { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.alpha__letter { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--blue); }
.alpha__group li { padding: 4px 0; font-size: 1.15rem; letter-spacing: -0.02em; }
.mono-num { font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .alpha { display: block; columns: 2; column-gap: 48px; } }
@media (min-width: 1100px) { .alpha { columns: 3; } }

/* Unidade */
.unit { display: grid; gap: 12px; }
.unit__card { display: grid; gap: 20px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.unit__card--address { background: var(--ink-bg); color: var(--paper); box-shadow: none; }
.unit__card--address .eyebrow { color: var(--ink-muted); }
.unit__card--address .btn--primary { background: var(--paper); color: var(--ink); }
.unit__card--address .btn--line { color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-line); }
.unit__big { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -0.035em; }
.unit__meta { color: var(--ink-muted); font-size: 13px; }
.unit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.unit__phones { display: grid; gap: 10px; font-size: 15px; }
.unit__phones a { justify-self: start; transition: color 150ms ease; }
.unit__phones a:hover { color: var(--blue); }
.hours--ink div { border-bottom-color: var(--line); }
.hours--ink dt { color: var(--ink-2); }
.hours--ink dd { color: var(--ink); }
@media (min-width: 900px) {
  .unit { grid-template-columns: 1.4fr 1fr; }
  .unit__card--address { grid-row: span 2; }
}
@media (hover: hover) and (pointer: fine) {
  .unit__card--address .btn--primary:hover { background: #fff; }
  .unit__card--address .btn--line:hover { box-shadow: inset 0 0 0 1px var(--paper); }
}

/* ---------- Movimento reduzido: mantém opacidade, remove deslocamento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__in, .js [data-reveal] { transform: none; }
  .js .is-ready .hero__in { animation-name: fade; animation-duration: 400ms; animation-delay: 0ms; }
  .js .lens__img { clip-path: none; }
  .js .is-ready .lens__img { animation: fade 400ms ease both; }
  .js .is-ready .lens__scan span { animation: none; }
  .js .lensmark { clip-path: none; }
  .js .is-ready .lensmark { animation: fade 400ms ease both; }
  .js .is-ready .lensmark__pattern { animation-delay: 0ms; }
  .feature__media img { transition: none; }
  .film__mark { transition: none; }
  .js [data-reveal-clip] .shot__media { clip-path: none; opacity: 0; }
  .js [data-reveal-clip] .shot__media img { transform: none; }
  .js [data-reveal-clip].is-in .shot__media { opacity: 1; transition: opacity 400ms ease; }
  .js [data-reveal-clip].is-in .shot__media img { transition: none; }
  .film__frame.is-loading .film__play { animation: none; }
  .js .is-ready .hero__caption { animation-delay: 0ms; }
  .js [data-reveal].is-in { transition: opacity 400ms ease; }
  .sheet__panel { transition: opacity 200ms ease; transform: none; opacity: 0; }
  .sheet.is-open .sheet__panel { opacity: 1; }
  .post__media img { transition: none; }
  .btn:active, .rcard:active, .feature:active { transform: none; }
  .consent__card, .prefs { transform: none !important; }
  .js .wa, .js .is-ready .wa { transform: none; }
  .wa__label { transition: none; }
  .switch::after { transition: none; }
}
