@font-face {
  font-family: Poppins;
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/assets/fonts/montserrat-latin-300-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F5F5F5;
  --surface: #FFF;
  --ink: #0D0D0D;
  --graphite: #1A1A1A;
  --muted: #4A4A4A;
  --silver: #C0C0C0;
  --line: #D9D9D9;
  --line-dark: #6D6D6D;
  --heading-font: Poppins, Arial, sans-serif;
  --body-font: Montserrat, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --space: clamp(3rem, 6.5vw, 5.75rem);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body-font);
}
a { color: inherit; text-underline-offset: .23em; }
a, button, summary { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
:focus-visible { outline: 3px solid var(--muted); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); }
h1, h2 { font-weight: 600; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.05rem, 4.6vw, 3.9rem); line-height: 1.12; letter-spacing: -.04em; overflow-wrap: break-word; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.9rem); line-height: 1.17; letter-spacing: -.036em; }
h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; }
strong, b { font-weight: 600; }
p, li { overflow-wrap: break-word; }
p { color: var(--muted); }
p + p { margin-top: .75rem; }
main [id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 76rem); margin-inline: auto; }
.lede { max-width: 35rem; font-size: clamp(1.08rem, 2vw, 1.24rem); }
.overline {
  margin: 0 0 .8rem;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.small { font-size: .875rem; font-weight: 300; }
.skip-link {
  position: absolute;
  z-index: 10;
  inset: .5rem auto auto var(--gutter);
  padding: .65rem .9rem;
  background: var(--paper);
  transform: translateY(calc(-100% - 1rem));
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand-header img { width: clamp(12rem, 21vw, 16rem); height: auto; }
.brand-feature, .brand-footer { display: block; width: fit-content; }
.brand-feature { margin-bottom: 1.2rem; }
.brand-feature img { width: 10rem; height: auto; }
.brand-footer { margin-bottom: .85rem; }
.brand-footer img { width: 14rem; height: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(.2rem, 1.1vw, 1.2rem); }
.site-header nav a, .patient-link, .menu-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .6rem;
  color: var(--ink);
  font: 500 .875rem/1.2 var(--body-font);
  text-decoration: none;
}
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-header nav a:hover, .patient-link:hover, .menu-toggle:hover { background: #E8E8E8; border-color: var(--muted); }
.patient-link, .menu-toggle {
  flex-shrink: 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--surface);
}
.patient-link { padding-inline: .8rem; }
.menu-toggle { display: none; cursor: pointer; }

.home, .inner-page { padding-top: clamp(1.25rem, 3.5vw, 3rem); }
.home-hero, .scanner-feature, .error-feature {
  display: grid;
  color: var(--paper);
  background: var(--graphite);
  border-radius: var(--radius);
}
.home-hero { grid-template-columns: 1.34fr 1fr; min-height: clamp(29rem, 45vw, 36rem); }
.hero-copy {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  align-self: stretch;
  align-content: center;
  padding: clamp(1.25rem, 4.25vw, 3.75rem);
}
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/assets/identidade/monograma-escuro.webp") right 1rem bottom 1.1rem / auto 78% no-repeat;
  opacity: .05;
  pointer-events: none;
}
.error-feature {
  display: block;
  padding: clamp(1.5rem, 4.5vw, 4rem);
}
.home-hero h1 { max-width: 14ch; font-size: clamp(2rem, 4.6vw, 3.9rem); }
.home-hero .lede { margin-top: 1.15rem; }
.home-hero p, .scanner-feature p, .error-feature p { color: var(--paper); }
.hero-copy .overline span { display: block; margin-top: .25rem; color: var(--silver); font-size: .875rem; font-weight: 500; letter-spacing: .05em; }
.hero-portrait { position: relative; display: block; min-height: 100%; overflow: hidden; border-radius: 0 var(--radius) var(--radius) 0; }
.hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 37%; }
.actions, .link-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; }
.actions { margin-top: 1.25rem; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}
.action:hover { background: var(--graphite); border-color: var(--silver); }
.action-light, .error-feature .action { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.action-light:hover, .error-feature .action:hover { background: #E8E8E8; border-color: var(--silver); }
.text-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: inherit;
  font-weight: 600;
}
.text-action:hover { text-decoration-thickness: 2px; }
.home-hero :focus-visible, .scanner-feature :focus-visible, .error-feature :focus-visible, .site-footer :focus-visible {
  outline-color: var(--paper);
}
.hero-details { font-weight: 300; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.hero-details a { display: flex; align-items: center; width: fit-content; min-height: 44px; }

.content-section { margin-block: var(--space); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  align-items: end;
  gap: .7rem 2rem;
  margin-bottom: 1.5rem;
}
.section-heading h2::after, .split-section h2::after, .editorial-article h2::after,
.scanner-feature h2::after, .scanner-prep h2::after, .patient-feature h2::after {
  display: block;
  content: "";
  width: 3rem;
  height: 1px;
  margin-top: .7rem;
  background: var(--silver);
}
.section-heading p:not(.overline) { max-width: 34rem; }
.section-heading .text-action { justify-self: end; }
.line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 0;
}
.line-grid > * { padding: 1.3rem 1.45rem; }
.line-grid > * + * { border-inline-start: 1px solid var(--line); }
.line-grid > :first-child { padding-inline-start: 0; }
.line-grid p, .topic-grid p, .timeline p { margin-top: .45rem; }
.line-grid + .text-action { margin-top: .65rem; }
.care-links h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.scanner-feature {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 1.6rem 2.5rem;
  padding: clamp(1.5rem, 4.5vw, 4rem);
}
.scanner-feature h1, .scanner-feature h2 { margin-bottom: .75rem; }
.scanner-feature p:not(.overline) { max-width: 35rem; }
.scanner-feature > img { width: auto; height: clamp(16rem, 32vw, 25rem); justify-self: center; border-radius: 8px; }
.scanner-feature .text-action { margin-top: .5rem; }
.scanner-feature .actions .text-action { margin: 0; }
.patient-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.patient-feature h2 { margin-bottom: .65rem; }
.patient-feature .actions { margin-top: 0; justify-content: flex-end; }

.page-title { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-title .lede { margin-top: .8rem; }
.in-page-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.25rem; border-block: 1px solid var(--line); }
.in-page-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; }
.topic-grid, .modality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.topic-grid article, .modality-card {
  padding: clamp(1.15rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.topic-grid .featured-topic { grid-column: 1 / -1; background: #EBEBEB; }
.topic-grid .text-action { margin-top: .65rem; }
.split-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.25rem 2rem; }
.split-section h2 + p { margin-top: .65rem; }
.timeline { counter-reset: steps; list-style: none; margin: 0; padding: 0; }
.timeline li {
  counter-increment: steps;
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .85rem;
  padding-bottom: 1.35rem;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 2rem auto 0 .97rem;
  border-left: 1px solid var(--silver);
}
.timeline li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--silver);
  border-radius: 50%;
  font: 500 .875rem/1 var(--body-font);
}
.timeline h3 { padding-top: .2rem; }
.timeline .link-row { margin-top: .25rem; }
.faq-list { min-width: 0; border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border: 0;
  background: transparent;
  color: inherit;
  padding: .85rem .5rem;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.faq-item button:hover { background: #E8E8E8; }
.faq-item button::after {
  content: "";
  width: .6rem;
  height: .6rem;
  flex-shrink: 0;
  margin-right: .35rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.12rem) rotate(45deg);
}
.faq-item button[aria-expanded="true"]::after { transform: translateY(.12rem) rotate(225deg); }
.faq-item p { padding: 0 .5rem 1rem; }
.faq-list > .text-action { margin: .5rem; }
.modality-card { display: grid; justify-items: start; align-content: start; gap: .75rem; }
.modality-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.modality-card .action { margin-top: .25rem; }
.modality-card:target, .modality-card:focus-within { border-color: var(--muted); }
.booking-note { margin-top: .75rem; }
.booking-note + .content-section { padding-top: 1.6rem; border-top: 1px solid var(--line); }
.scanner-prep {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: start;
  gap: 1.25rem 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}
.scanner-prep img { width: auto; height: clamp(16rem, 36vw, 27rem); justify-self: center; border-radius: 8px; }
.scanner-prep h2 + p { margin-top: .8rem; }
.scanner-steps { padding-left: 0; list-style: none; }
.health-articles { max-width: 50rem; }
.health-articles article { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.health-articles article h2 { margin-bottom: .8rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.health-articles article > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.privacy-content { margin-top: 0; }
.checklist { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
.site-notice {
  color: var(--ink);
  background: #EBEBEB;
  border-inline-start: 3px solid var(--muted);
  border-radius: 4px;
  padding: .75rem .9rem;
}
.site-notice + .topic-grid { margin-top: 1rem; }

.breadcrumbs { margin-bottom: 1.25rem; color: var(--muted); font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: .6rem; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.editorial-article { max-width: 49rem; }
.editorial-article .lede { max-width: 43rem; }
.editorial-article .byline { margin-top: .85rem; }
.editorial-article > section { margin-block: clamp(1.75rem, 4vw, 2.75rem); }
.editorial-article h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); margin-bottom: .8rem; }
.editorial-references ul, .related-content ul { margin: 0; padding-inline-start: 1.25rem; }
.editorial-references li + li, .related-content li + li { margin-top: .35rem; }
.editorial-heading .action { margin-top: 1rem; }
.clinic-map { min-width: 0; align-self: start; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper); }
.clinic-map summary { padding: .8rem 1rem; color: var(--ink); cursor: pointer; font-weight: 600; }
.clinic-map [data-map-src] { padding: 0 1rem 1rem; }
.clinic-map iframe { display: block; width: 100%; border: 0; border-radius: 8px; }
#localizacao address, .footer-location address { font-style: normal; color: var(--muted); }
#localizacao address { margin-block: .65rem; }
.footer-location { margin-top: .25rem; font-size: .875rem; }
.footer-location a { margin-inline-end: 1rem; }
.back-to-top { margin-block-start: .35rem; font-size: .875rem; }

.site-footer {
  width: 100%;
  margin-top: var(--space);
  border-top: 1px solid var(--line-dark);
  padding: clamp(2rem, 4vw, 3.5rem) max(var(--gutter), calc((100% - 76rem) / 2));
  background: var(--ink);
  color: var(--paper);
}
.site-footer p, .footer-identity span, .footer-location address { color: var(--silver); }
.site-footer .clinic-map, .site-footer .site-notice {
  color: var(--paper);
  border-color: var(--line-dark);
  background: var(--graphite);
}
.site-footer .clinic-map summary { color: var(--paper); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 1.25rem clamp(1.25rem, 5vw, 4rem); }
.footer-identity, .site-footer nav { display: grid; align-content: start; justify-items: start; }
.footer-identity { gap: .25rem; }
.footer-identity span { font-size: .875rem; font-weight: 300; }
.site-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .85rem; }
.site-footer nav a { display: flex; align-items: center; min-height: 44px; font-size: .875rem; overflow-wrap: anywhere; }
.site-footer > p { margin-top: 1.2rem; }
.site-footer nav [data-email-user] { grid-column: 1 / -1; }
.mobile-booking { display: none; }

@media (max-width: 960px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .55rem; padding-block: .55rem; min-height: 4.4rem; }
  .site-brand { grid-column: 1; grid-row: 1; justify-self: start; min-width: 44px; }
  .brand-header img { width: auto; height: 2.35rem; }
  .brand-feature img { width: auto; height: 2.1rem; }
  .brand-footer img { width: auto; height: 3rem; }
  .patient-link { grid-column: 3; grid-row: 1; }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; padding-top: .35rem; border-top: 1px solid var(--line); }
  .menu-loading .menu-toggle, .menu-ready .menu-toggle { display: inline-flex; }
  .menu-loading .site-header nav { display: none; }
  .menu-ready .menu-toggle[aria-expanded="false"] + nav { display: none; }
  .menu-ready .site-header nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header nav a { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .home-hero, .scanner-feature, .patient-feature, .section-heading, .split-section, .scanner-prep, .footer-main { grid-template-columns: 1fr; }
  .home-hero { min-height: 0; }
  .hero-copy::before { background-size: auto 62%; }
  .home-hero h1 { max-width: 14ch; }
  .hero-portrait { min-height: 0; aspect-ratio: 1.28; border-radius: 0 0 var(--radius) var(--radius); }
  .hero-portrait img { object-position: center 26%; }
  .section-heading .text-action { justify-self: start; }
  .patient-feature .actions { justify-content: flex-start; }
  .line-grid { grid-template-columns: 1fr; }
  .line-grid > *, .line-grid > :first-child { padding: .9rem 0; }
  .line-grid > * + * { border-inline-start: 0; border-top: 1px solid var(--line); }
  .scanner-feature > img, .scanner-prep img { height: min(24rem, 95vw); }
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .mobile-booking {
    position: fixed;
    z-index: 2;
    inset: auto var(--gutter) calc(.65rem + env(safe-area-inset-bottom)) auto;
    display: inline-flex;
    border-color: var(--silver);
    box-shadow: 0 2px 12px #0D0D0D40;
  }
}
@media (max-width: 520px) {
  .modality-grid, .topic-grid { grid-template-columns: 1fr; }
  .patient-link { padding-inline: .55rem; }
  .footer-main nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .6rem; }
}
@media (max-width: 360px) {
  .patient-link, .menu-toggle { font-size: .85rem; padding-inline: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
