/* Córtex — Dra. Fernanda Petrechen
   Redesign editorial: uma só folha de estilos, sem dependência dos experimentos V8–V11. */
@font-face {
  font-family: 'DM Sans';
  src: url('./assets/fonts/dm-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('./assets/fonts/fraunces-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-synthesis: none;
  color: #2d2730;
  background: #fbf9f7;
  --paper: #fbf9f7;
  --ink: #2d2730;
  --muted: #635963;
  --plum: #674078;
  --plum-dark: #4c2b5a;
  --lilac: #f4eef5;
  --blue: #e8f2f1;
  --blue-ink: #315d62;
  --serif: 'Fraunces', Georgia, serif;
  --max: 1180px;
  --edge: clamp(20px, 4.4vw, 64px);
  --body: clamp(16px, 1.24vw, 18px);
  --ease: cubic-bezier(.21,.67,.25,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { margin: 0; overflow-x: clip; }
::selection { background: #e4d3e9; color: #34203e; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; max-width: 100%; }
h1,h2,h3,p,ul,ol,li,figure,dl,dt,dd { margin: 0; }
button,a,summary { touch-action: manipulation; }
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline: 3px solid #527f88;
  outline-offset: 4px;
}
.shell {
  width: min(calc(100% - var(--edge) * 2), var(--max));
  margin-inline: auto;
}
:where(h1,h2,h3) { font-family: var(--serif); font-weight: 400; }
h1 em,h2 em { font-style: italic; font-weight: 400; color: #855293; }
h2 { font-size: clamp(40px,4.5vw,57px); line-height: 1.12; text-wrap: balance; }
p { font-size: var(--body); line-height: 1.66; }
#atendimentos,#como-funciona,#sobre,#contato { scroll-margin-top: 99px; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1200;
  top: 10px; left: 12px;
  padding: 12px 18px; border-radius: 5px;
  background: white; color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }

/* Loading original aprovado, quatro segundos com a marca raster. */
.site-is-loading { overflow: hidden; }
.site-is-loading body > :not(.site-loader) { visibility: hidden; }
.site-loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.site-is-loading .site-loader {
  opacity: 1; visibility: visible;
  pointer-events: auto; transition: none;
}
.site-loader img {
  width: clamp(105px,14vw,155px);
  height: auto;
  animation: loader-breathe 3s ease-in-out infinite;
}
@keyframes loader-breathe {
  0%,100% { opacity: .84; transform: scale(.985); }
  50% { opacity: 1; transform: scale(1.012); }
}

/* Header: 3 áreas, a linha só aparece com scroll. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 249 247 / .985);
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.site-header.scrolled {
  background: rgb(251 249 247 / .94);
  border-bottom-color: rgb(109 84 117 / .13);
  backdrop-filter: blur(9px);
}
.header-inner {
  min-height: 78px;
  display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center; gap: clamp(16px,3vw,44px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; justify-self: start; min-width: 0; }
.brand img { width: 52px; height: auto; flex: none; object-fit: contain; }
.brand-name { min-width: 0; display: grid; gap: 3px; line-height: 1.18; }
.brand-name strong { font-size: clamp(14px,1.24vw,16px); font-weight: 700; white-space: nowrap; }
.brand-name span { font-size: 11px; color: var(--muted); }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px,2.2vw,29px); }
.desktop-nav a { font-size: 13px; font-weight: 600; color: #5f5362; }
.desktop-nav a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 6px; }
.header-cta,.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px clamp(18px,2.1vw,27px);
  min-height: 50px;
  font-family: inherit; font-weight: 700;
  border: 1px solid transparent; border-radius: 7px;
  font-size: 14px; line-height: 1.4; text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.header-cta {
  min-height: 44px; padding-inline: 16px;
  background: var(--plum); color: #fff;
  font-size: 12px; white-space: nowrap;
}
.button-primary { background: var(--plum); color: white; }
.header-cta:hover,.button-primary:hover { background: var(--plum-dark); color: white; transform: translateY(-1px); }
.header-cta:active,.button:active { transform: translateY(1px); }
.button-light { background: var(--paper); color: #392243; }
.button-light:hover { background: #f1e6f2; color: #392243; }
.text-link {
  display: inline-flex; align-items: center;
  min-height: 44px; width: fit-content;
  color: var(--plum); font-size: 14px; font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #a58ab0;
  text-underline-offset: 6px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.text-link:hover { color: var(--plum-dark); text-decoration-color: currentColor; }
.mobile-menu { display: none; }

/* Hero — relação 48/52, texto aberto e fotografia protagonista. */
.hero {
  display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
  gap: clamp(32px,5.2vw,79px);
  align-items: center;
  padding-block: clamp(69px,7.2vw,105px) clamp(115px,10.2vw,152px);
}
.hero-copy { min-width: 0; }
.hero-specialties {
  max-width: 43ch;
  margin-bottom: clamp(23px,3vw,37px);
  color: #67586a; font-weight: 600;
  font-size: clamp(14px,1.13vw,16px);
  line-height: 1.58;
}
.hero-specialties span { padding-inline: 3px; color: #8c728f; }
.hero h1 {
  max-width: 11.7ch;
  margin-bottom: clamp(24px,3vw,37px);
  font-size: clamp(57px,5.55vw,82px);
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: 0;
}
.hero-description { max-width: 46ch; color: #5d525f; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 9px 23px;
  align-items: center;
  margin-top: clamp(24px,3vw,36px);
}
.hero-hint { max-width: 42ch; margin-top: 15px; font-size: 12px; color: #796d7a; }
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 585px;
  justify-self: end;
  padding: 0 16px 18px 0;
  isolation: isolate;
}
.hero-visual::before {
  content: '';
  position: absolute; z-index: -1;
  inset: 17px 0 0 19px;
  background: #e8d9ec;
  border-radius: 132px 5px 5px 5px;
}
.hero-image-mat {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #efe8ed;
  border-radius: 132px 5px 5px 5px;
}
.hero-image-mat img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}
.visual-stamp {
  position: absolute; z-index: 2;
  width: min(20.5%,116px); aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  left: -8%; bottom: 9%;
  padding: 10px;
  border-radius: 50%; border: 1px solid rgb(112 70 128 / .15);
  background: #f1e7f3;
  color: #69427b;
  font-family: var(--serif);
  font-size: clamp(10px,1.05vw,14px);
  line-height: 1.28;
  text-align: center;
  box-shadow: 0 10px 24px rgb(73 49 79 / .08);
}
.visual-stamp em { font-style: italic; display: inline; }

/* Faixa contínua, sem chips, bordas ou separadores pesados. */
.signal-band { background: var(--blue); }
.signal-inner { padding-block: clamp(38px,4.4vw,60px); }
.signal-inner h2 {
  margin-bottom: 17px; max-width: 42ch;
  font-family: var(--serif); font-size: clamp(22px,2.25vw,28px);
  line-height: 1.3;
  color: #3b6063;
}
.signal-items {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 7px 0; padding: 0; list-style: none;
}
.signal-items li { color: #416166; font-size: clamp(14px,1.23vw,16px); line-height: 1.56; }
.signal-items li:not(:last-child)::after {
  content: '·'; display: inline; padding-inline: 13px; color: #779da0;
}

/* Texto do atendimento: uma voz, uma coluna, sem duas caixas. */
.editorial-intro { padding-block: clamp(110px,11vw,154px) clamp(70px,8vw,103px); }
.narrative { max-width: 710px; }
.editorial-intro h2 { max-width: 660px; margin-bottom: 28px; }
.editorial-intro p { max-width: 615px; color: var(--muted); }
.general-section { padding-block: 0 clamp(122px,11vw,160px); }
.general-section h2 { font-size: clamp(39px,3.9vw,51px); margin-bottom: 22px; }
.general-section p { max-width: 660px; color: var(--muted); }
.consult-prep { margin-top: clamp(35px,4vw,57px); }
.consult-prep h3 { font-size: clamp(23px,2.1vw,27px); margin-bottom: 17px; line-height: 1.28; }
.consult-prep ul { max-width: 645px; padding-left: 21px; }
.consult-prep li {
  padding-left: 4px; margin-bottom: 9px;
  color: #584d5c; font-size: var(--body);
  line-height: 1.58;
}
.consult-prep li::marker { color: #a18bab; }
.consult-prep .consult-closing { margin-top: 20px; color: #68457a; font-weight: 600; }

/* Dermatologia como cena contínua: a fotografia ocupa a borda direita,
   e a lista clínica permanece na mesma área de leitura do texto. */
.derm-section {
  position: relative;
  background: #e9f2f1;
  overflow: hidden;
  isolation: isolate;
}
.derm-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(790px, 61vw, 930px);
  padding-block: clamp(88px, 9vw, 126px);
}
.derm-copy {
  position: relative;
  z-index: 2;
  width: 44%;
  max-width: 500px;
}
.derm-copy h2 {
  max-width: 13ch;
  margin-bottom: 25px;
  font-size: clamp(41px, 4.25vw, 56px);
  line-height: 1.1;
  color: #305962;
}
.derm-copy h2 em { color: #47767d; }
.derm-copy p { max-width: 43ch; color: #496068; }
.derm-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(-1 * max(var(--edge), (100vw - var(--max)) / 2));
  z-index: 1;
  width: calc(52% + max(var(--edge), (100vw - var(--max)) / 2));
  height: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 0 clamp(20px, 3vw, 48px);
  box-shadow: none;
  background: transparent;
}
.derm-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: none;
}
.skin-signs {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: 42%;
  max-width: 490px;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.skin-signs > div { margin-bottom: clamp(19px, 2vw, 25px); }
.skin-signs > div:last-child { margin-bottom: 0; }
.skin-signs dt { color: #295b64; font-size: clamp(18px, 1.47vw, 20px); font-weight: 700; margin-bottom: 6px; }
.skin-signs dd { color: #476066; font-size: clamp(15px, 1.15vw, 16px); line-height: 1.58; max-width: 37ch; }

/* O processo é uma história linear, não três cartões. */
.journey-section { background: var(--lilac); }
.journey-inner { padding-block: clamp(120px,10vw,155px) clamp(114px,9vw,137px); }
.journey-intro {
  display: flex; flex-wrap: wrap; gap: 22px clamp(46px,7vw,101px);
  align-items: end; justify-content: space-between;
  margin-bottom: clamp(59px,7vw,93px);
}
.journey-intro h2 { max-width: 590px; }
.journey-intro p { max-width: 350px; color: var(--muted); }
.journey-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(25px,4vw,64px);
  padding: 0; list-style: none;
  counter-reset: journey;
  position: relative;
}
.journey-steps::before {
  content: ''; position: absolute; left: 0; right: 0;
  top: 22px; height: 1px; background: #d0bfce;
}
.journey-steps li { position: relative; counter-increment: journey; padding-top: 0; min-width: 0; }
.journey-steps li::before {
  content: counter(journey, decimal-leading-zero);
  display: flex; align-items: center;
  width: 54px; height: 45px;
  margin-bottom: 23px;
  position: relative; z-index: 1;
  background: var(--lilac);
  color: #966aa1; font-family: var(--serif);
  font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums;
}
.journey-steps h3 { max-width: 20ch; margin-bottom: 11px; font-size: clamp(24px,2.17vw,31px); line-height: 1.23; }
.journey-steps p { max-width: 34ch; color: var(--muted); font-size: clamp(15px,1.13vw,17px); line-height: 1.63; }

/* A consulta é texto de transição, o accordion é uma coluna única. */
.resources-section { padding-block: clamp(126px,11vw,169px); }
.resources-content { width: min(100%,820px); margin-inline: auto; }
.resources-content h2 { max-width: 650px; margin-bottom: 25px; }
.resources-content > p { max-width: 650px; color: var(--muted); }
.resource-start { margin-top: 38px; font-weight: 650; color: #684378 !important; }
.procedure-list { margin-top: 26px; }
.procedure-list details { border-bottom: 1px solid #ded4dd; }
.procedure-list summary {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 65px; gap: 20px;
  padding: 15px 4px; list-style: none; cursor: pointer;
  font-size: clamp(16px,1.35vw,19px);
  font-weight: 650; line-height: 1.4;
  color: #3c313f;
}
.procedure-list summary::-webkit-details-marker { display: none; }
.procedure-list summary:hover { color: var(--plum); }
.procedure-list details[open] summary { color: var(--plum); }
.disclosure-icon { position: relative; width: 18px; height: 18px; flex: 0 0 18px; color: #694878; }
.disclosure-icon::before,.disclosure-icon::after { content: ''; position: absolute; top: 8px; left: 3px; width: 12px; height: 2px; background: currentColor; }
.disclosure-icon::after { transform: rotate(90deg); transition: transform .17s ease; }
details[open] .disclosure-icon::after { transform: rotate(0deg); }
.procedure-list details p { max-width: 650px; padding: 0 36px 26px 4px; color: var(--muted); font-size: 15px; line-height: 1.68; }
.resources-cta { margin-top: 25px; }

/* Sobre: retrato atravessa a margem esquerda e integra-se ao fundo da seção. */
.about-section {
  background: #f3eef4;
  overflow: hidden;
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  column-gap: clamp(48px, 6vw, 95px);
  min-height: 750px;
  padding-block: clamp(80px, 7vw, 116px);
}
.about-photo {
  width: calc(100% + max(var(--edge), (100vw - var(--max)) / 2));
  max-width: none;
  height: clamp(600px, 55vw, 740px);
  margin-left: calc(-1 * max(var(--edge), (100vw - var(--max)) / 2));
  aspect-ratio: auto;
  overflow: hidden;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.about-copy { position: relative; z-index: 2; }
.about-copy h2 { max-width: 14ch; margin-bottom: 30px; }
.about-copy > p { max-width: 530px; color: var(--muted); }
.about-copy .credentials {
  margin-top: 28px;
  margin-bottom: 19px;
  color: #58465c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.62;
}
.about-copy .credentials span { color: #927597; padding-inline: 3px; }

/* CTA: uma cena plum com foto full-bleed à direita, não dois painéis. */
.closing-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #392642;
  color: #fcf8fb;
}
.closing-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    #392642 0%,
    #392642 39%,
    rgb(57 38 66 / .94) 46%,
    rgb(57 38 66 / .55) 55%,
    rgb(57 38 66 / 0) 76%);
}
.closing-inner {
  display: flex;
  align-items: center;
  min-height: clamp(670px, 54vw, 810px);
  padding-block: clamp(92px, 9vw, 125px);
}
.closing-copy {
  position: relative;
  z-index: 2;
  width: min(48%, 540px);
  min-width: 0;
}
.closing-copy h2 {
  max-width: 12.5ch;
  font-size: clamp(42px, 4.65vw, 63px);
  line-height: 1.11;
}
.closing-copy h2 em { color: #c5e0e2; }
.closing-copy p { max-width: 45ch; margin: 26px 0 31px; color: #e9dce9; }
.closing-copy .button-light { max-width: 100%; white-space: normal; text-wrap: balance; }
.closing-photo {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(56vw, 830px);
  height: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.closing-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 39%;
  filter: none;
}

/* Rodapé sem colunas artificiais. */
.site-footer { background: var(--paper); }
.footer-inner { display: grid; justify-items: center; gap: 17px; padding-block: 36px 43px; text-align: center; }
.footer-brand { display: grid; justify-items: center; gap: 6px; }
.footer-brand img { width: 55px; height: auto; }
.footer-brand strong { font-size: 14px; }
.footer-brand span,.footer-inner p { color: var(--muted); font-size: 12px; line-height: 1.55; max-width: 50ch; }

/* Tablet */
@media (max-width: 1050px) {
  :root { --edge: clamp(27px,4.3vw,48px); }
  .desktop-nav { gap: 14px; }
  .header-inner { gap: 17px; }
  .hero { gap: 41px; }
  .hero h1 { font-size: clamp(48px,5.7vw,63px); }
  .visual-stamp { left: -4%; }
  .derm-copy h2 { font-size: clamp(39px,4vw,50px); }
  .skin-signs > div { margin-bottom: 15px; }
  .journey-intro { display: block; }
  .journey-intro h2 { margin-bottom: 22px; }
  .journey-intro p { max-width: 600px; }
  .about-inner { gap: 42px; }
}

/* Mobile navigation starts before desktop header crowds. */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: minmax(0,1fr) auto auto; min-height: 76px; gap: clamp(9px,2.4vw,17px); }
  .brand img { width: clamp(39px,5.5vw,50px); }
  .brand-name strong { font-size: clamp(12px,1.8vw,15px); }
  .brand-name span { font-size: 10px; }
  .header-cta { font-size: 12px; padding-inline: 12px; min-height: 42px; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary {
    display: flex; justify-content: center; align-items: center;
    min-width: 49px; min-height: 44px;
    font-size: 13px; color: #3c3041;
    font-weight: 650; list-style: none; cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-nav {
    position: absolute; right: 0; top: calc(100% + 12px);
    display: flex; flex-direction: column;
    width: min(82vw,274px);
    padding: 9px 18px; z-index: 60;
    border-radius: 8px; background: #fffcff;
    box-shadow: 0 11px 40px rgb(48 34 55 / .17);
    border: 1px solid #e8dce9;
  }
  .mobile-nav a {
    display: flex; align-items: center;
    min-height: 49px; padding-inline: 5px;
    font-size: 15px; font-weight: 600;
    color: #4f4054;
  }
  .mobile-nav a + a { border-top: 1px solid #eee5ed; }
}

/* Compact tablet: photo below content in a planned editorial order. */
/* Mobile: o texto precede a fotografia, mas ambos pertencem à mesma cena. */
@media (max-width: 740px) {
  :root { --edge: clamp(20px,5.6vw,24px); }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 38px; padding-block: 40px 92px; }
  .hero-copy { width: 100%; }
  .hero-specialties { margin-bottom: 21px; font-size: 14px; }
  .hero h1 { max-width: 13.3ch; font-size: clamp(42px,9.6vw,58px); margin-bottom: 21px; line-height: 1.07; }
  .hero-description { max-width: 43ch; font-size: 16px; line-height: 1.63; }
  .hero-actions { margin-top: 23px; gap: 5px 23px; }
  .hero-hint { margin-top: 12px; font-size: 12px; }
  .hero-visual { max-width: 590px; width: calc(100% - 12px); align-self: center; margin-inline: 0 auto; padding: 0 12px 14px 0; }
  .hero-image-mat { border-radius: 94px 4px 4px 4px; aspect-ratio: 4 / 5; }
  .hero-visual::before { inset: 13px 0 0 14px; border-radius: 94px 4px 4px 4px; }
  .visual-stamp { left: -2%; bottom: 9%; width: min(20%,91px); font-size: clamp(9px,2.3vw,12px); padding: 7px; }
  .signal-inner { padding-block: 33px 42px; }
  .signal-inner h2 { font-size: clamp(22px, 5.2vw, 26px); margin-bottom: 15px; }
  .signal-items { row-gap: 5px; }
  .signal-items li { font-size: 14px; }
  .signal-items li:not(:last-child)::after { padding-inline: 9px; }
  .editorial-intro { padding-block: 83px 77px; }
  .editorial-intro h2 { max-width: 18ch; margin-bottom: 18px; }
  .general-section { padding-bottom: 87px; }
  .general-section h2 { font-size: clamp(32px, 8.2vw, 39px); }
  .consult-prep { margin-top: 37px; }
  .consult-prep h3 { font-size: 24px; }
  .consult-prep li { font-size: 16px; }
  .derm-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
    padding-block: 79px 83px;
    gap: 0;
  }
  .derm-copy { order: 1; width: 100%; max-width: 570px; }
  .derm-copy h2 { font-size: clamp(34px, 8.5vw, 40px); max-width: 15ch; margin-bottom: 18px; }
  .derm-copy p { max-width: 42ch; }
  .derm-photo {
    position: relative;
    top: auto; right: auto; bottom: auto;
    order: 2;
    flex: none;
    align-self: stretch;
    width: calc(100% + var(--edge) * 2);
    height: auto;
    max-width: none;
    aspect-ratio: 4 / 5;
    margin: 28px 0 0 calc(-1 * var(--edge));
    border: none;
    border-radius: 0;
  }
  .derm-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  .skin-signs { order: 3; width: 100%; max-width: 530px; margin-top: 31px; }
  .skin-signs > div { margin-bottom: 24px; }
  .skin-signs dt { font-size: 18px; }
  .skin-signs dd { font-size: 15px; max-width: 40ch; }
  .journey-inner { padding-block: 85px 91px; }
  .journey-intro { margin-bottom: 42px; }
  .journey-intro h2 { margin-bottom: 16px; max-width: 15ch; }
  .journey-steps { display: flex; flex-direction: column; gap: 0; padding-left: 59px; }
  .journey-steps::before { top: 15px; bottom: 37px; left: 17px; width: 1px; height: auto; right: auto; }
  .journey-steps li { padding: 0 0 35px; }
  .journey-steps li:last-child { padding-bottom: 0; }
  .journey-steps li::before {
    position: absolute; top: 0; left: -59px;
    width: 37px; height: 36px;
    font-size: 28px; padding-right: 3px; margin: 0;
  }
  .journey-steps h3 { font-size: clamp(24px, 6vw, 29px); margin-bottom: 8px; }
  .journey-steps p { font-size: 15px; max-width: 38ch; }
  .resources-section { padding-block: 91px 100px; }
  .resources-content h2 { max-width: 18ch; margin-bottom: 20px; }
  .resource-start { margin-top: 28px; }
  .procedure-list { margin-top: 20px; }
  .procedure-list summary { min-height: 66px; padding: 15px 0; }
  .procedure-list details p { padding-left: 0; }
  .about-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding-block: 0 88px;
  }
  .about-photo {
    order: 1;
    position: relative;
    flex: none;
    align-self: stretch;
    width: calc(100% + var(--edge) * 2);
    height: auto;
    max-width: none;
    aspect-ratio: 4 / 5;
    margin: 0 0 0 calc(-1 * var(--edge));
    border: 0;
    border-radius: 0;
  }
  .about-photo img { object-position: center 26%; }
  .about-copy { order: 2; align-self: stretch; max-width: 620px; padding-top: 48px; }
  .about-copy h2 { max-width: 18ch; margin-bottom: 20px; }
  .closing-section::after { content: none; }
  .closing-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-block: 82px 0;
  }
  .closing-copy { order: 1; width: 100%; max-width: 620px; padding-bottom: 28px; }
  .closing-copy h2 { max-width: 15ch; font-size: clamp(36px, 8.6vw, 44px); }
  .closing-copy p { max-width: 39ch; margin-block: 20px 26px; }
  .closing-copy .button { font-size: 13px; padding: 12px 17px; }
  .closing-photo {
    position: relative;
    order: 2;
    flex: none;
    top: auto; right: auto; bottom: auto;
    align-self: stretch;
    width: calc(100% + var(--edge) * 2);
    height: auto;
    max-width: none;
    aspect-ratio: 4 / 5;
    margin: 0 0 0 calc(-1 * var(--edge));
    border: none;
    border-radius: 0;
  }
  .closing-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #392642 0%, rgb(57 38 66 / 0) 23%);
  }
  .closing-photo img { object-position: center 40%; }
  .footer-inner { padding-block: 34px 41px; }
}
@media (max-width: 390px) {
  .header-inner { gap: 8px; }
  .brand { gap: 5px; }
  .brand img { width: 39px; }
  .brand-name strong { font-size: 12px; }
  .brand-name span { font-size: 10px; }
  .header-cta { font-size: 11px; padding-inline: 9px; }
  .mobile-menu summary { min-width: 40px; font-size: 12px; }
  .hero h1 { font-size: clamp(41px,10.5vw,45px); }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { min-height: 51px; }
  .visual-stamp { width: min(21%,77px); font-size: 9px; }
}
@media (max-width: 320px) {
  .brand-name strong { font-size: 11px; }
  .header-cta { padding-inline: 7px; font-size: 10px; }
  .hero h1 { font-size: 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .button { width: 100%; }
  .visual-stamp { font-size: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header { will-change: background-color; }
  .hero-visual.in-view img { animation: portrait-enter 800ms var(--ease) both; }
  @keyframes portrait-enter {
    from { opacity: .89; transform: scale(1.017); }
    to { opacity: 1; transform: scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
/* Fallback para telas de 280–320 px: manter o selo circular sem estourar texto. */
@media (max-width: 320px) {
  .visual-stamp {
    padding: 3px;
    font-size: 7px;
    line-height: 1.13;
  }
}
