/* ==========================================================================
   Unique Performance · seções da home v3 e das LPs · prefixo hm-
   Carrega depois de tokens.css e ds.css. Só layout e composição das seções;
   os componentes vêm do ds.css. Nenhuma cor fixa: só tokens.
   ========================================================================== */

/* Hero: texto nas colunas 1–7, card do formulário nas 8–12 (≥ 1024 px). ---- */
.hm-hero {
  --t-reveal: 480ms; /* entrada do hero: 4 passos de 80 ms + 480 ms = 800 ms */
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hm-hero__grid {
  display: grid;
  gap: var(--s-4);
}

.hm-hero__copy {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  align-content: start;
}

.hm-hero__title--long {
  font-size: clamp(2rem, 1.9vw + 1.1rem, 3.375rem);
  line-height: 1.08;
}

.hm-hero__copy > :nth-child(2) {
  --delay: 80ms;
}

.hm-hero__copy > :nth-child(3) {
  --delay: 160ms;
}

.hm-hero__apoio {
  --delay: 200ms;
  max-width: 34rem;
  color: var(--text-soft);
}

.hm-hero__form {
  --delay: 240ms;
  min-width: 0;
}

.hm-hero__chips {
  --delay: 320ms;
  display: grid;
  gap: var(--s-2);
}

@media (min-width: 64rem) {
  .hm-hero__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--s-4);
    row-gap: var(--s-5);
    align-items: start;
  }

  .hm-hero__copy {
    grid-column: 1 / span 7;
    gap: var(--s-4);
    padding-top: var(--s-2);
  }

  .hm-hero__form {
    grid-column: 8 / span 5;
    grid-row: 1 / span 2;
    margin-top: calc(2.125rem + var(--s-4)); /* altura da pílula + o vão: o card alinha ao topo do H1 */
  }

  .hm-hero__chips {
    grid-column: 1 / span 7;
    align-self: end;
  }
}

/* Muro de trabalhos: sobrepõe a base do hero em 48 px e faz a passagem do
   escuro para o claro (a segunda fileira fica sobre a divisa). ------------- */
.hm-wall {
  --marquee-t: 70s; /* uma volta a cada 60–80 s */
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-3);
  margin-top: -3rem;
  padding-bottom: var(--s-6);
  background: linear-gradient(to bottom, transparent 3rem, var(--bg-deep) 3rem, var(--bg-deep) calc(100% - 9rem), var(--paper) calc(100% - 9rem));
}

.hm-wall__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

.hm-wall__head .ds-pill {
  margin: 0;
}

/* Home: cabeça completa (pílula, H2, subtítulo) com o link alinhado à base. */
.hm-wall__head--full {
  align-items: end;
  margin-bottom: var(--s-2);
}

.hm-wall__title {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  max-width: 44rem;
}

/* Por que médicos escolhem a Unique: continua o escuro do hero, com uma linha
   de divisa; o muro sobrepõe a base dela como sobrepunha a do hero. --------- */
.hm-why {
  padding-top: 0;
  padding-bottom: calc(var(--section-y) * 0.75 + 3rem);
}

.hm-why > .ds-wrap {
  padding-top: var(--section-y);
  border-top: 1px solid var(--border);
}

.hm-why__list .ds-card {
  display: grid;
  align-content: start;
}

.hm-wall__row {
  padding-block: 0.5rem; /* espaço para a moldura subir 6 px no hover */
}

.hm-wall__item {
  position: relative;
  box-shadow: var(--shadow-2);
  transition: transform var(--t-base) var(--ease-out);
}

.hm-wall__item .ds-browser__bar,
.hm-wall__item .ds-browser__view {
  display: flex;
}

.hm-wall__item .ds-browser__view {
  display: block;
}

/* Etiqueta com nome e especialidade: aparece no hover e no foco. */
.hm-wall__tag {
  position: absolute;
  inset: auto 0.625rem 0.625rem;
  display: grid;
  gap: 0.125rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-control);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  font-size: var(--fs-xs);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.hm-wall__tag span {
  color: var(--on-dark-soft);
}

.hm-wall__item:focus-visible .hm-wall__tag {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .hm-wall__item:hover {
    transform: translateY(-6px);
  }

  .hm-wall__item:hover .hm-wall__tag {
    opacity: 1;
    transform: none;
  }
}

/* Sem hover (toque): a etiqueta fica sempre à vista, senão o nome nunca aparece. */
@media (hover: none) {
  .hm-wall__tag {
    opacity: 1;
    transform: none;
  }
}

/* Onde o consultório perde pacientes: linha com 4 marcos. ------------------- */
.hm-pains__track {
  --mark: 0.6875rem; /* diâmetro do marco */
  --draw: 1100ms; /* a linha se desenha; os marcos acendem ao longo dela */
  position: relative;
}

.hm-pains__line {
  position: absolute;
  top: 0;
  left: calc(var(--mark) / 2 - 1px);
  width: 2px;
  height: 100%;
  overflow: visible;
}

.hm-pains__line line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.hm-pains__h {
  display: none;
}

.hm-pains__list {
  display: grid;
  gap: var(--s-4);
}

.hm-pain {
  display: grid;
  gap: var(--s-2);
  padding-left: var(--s-4);
}

.hm-pain__mark {
  position: relative;
  display: flex;
  align-items: center;
}

.hm-pain__mark .ds-label {
  color: var(--accent);
}

.hm-pain__dot {
  position: absolute;
  left: calc(-1 * var(--s-4));
  width: var(--mark);
  height: var(--mark);
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
}

.hm-pain .ds-card {
  height: 100%;
  padding: var(--s-3);
}

.hm-pain .ds-card .ds-h3 {
  margin-top: 0;
}

.hm-pains__close {
  display: grid;
  gap: var(--s-2);
  justify-items: start;
  margin-top: var(--s-6);
}

.hm-pains__close em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

@media (min-width: 60rem) {
  .hm-pains__line {
    top: calc(var(--mark) / 2 + 0.25rem - 1px);
    left: 0;
    width: 100%;
    height: 2px;
  }

  .hm-pains__h {
    display: inline;
  }

  .hm-pains__v {
    display: none;
  }

  .hm-pains__list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
  }

  .hm-pain {
    grid-template-rows: auto 1fr;
    padding-left: 0;
  }

  .hm-pain__mark {
    padding-top: calc(var(--mark) + 1rem);
  }

  .hm-pain__dot {
    top: 0.25rem;
    left: 0;
  }
}

/* Entrada (só com JS): a linha se desenha, cada marco acende na sua vez e o
   card dele chega 80 ms depois. */
html.js .hm-pains__track line {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--draw) var(--ease-in-out);
}

html.js .hm-pains__track .hm-pain__dot {
  background: var(--surface);
  transition: background-color var(--t-base) var(--ease-out);
  transition-delay: calc(var(--i) * var(--draw) / 4);
}

html.js .hm-pains__track .hm-pain__mark .ds-label,
html.js .hm-pains__track .ds-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  transition-delay: calc(var(--i) * var(--draw) / 4 + 80ms);
}

html.js .hm-pains__track.is-in line {
  stroke-dashoffset: 0;
}

html.js .hm-pains__track.is-in .hm-pain__dot {
  background: var(--accent);
}

html.js .hm-pains__track.is-in .hm-pain__mark .ds-label,
html.js .hm-pains__track.is-in .ds-card {
  opacity: 1;
  transform: none;
}

/* Depois da entrada o card volta a responder ao hover na hora (holofote, subida). */
html.js .hm-pains__track.is-in .ds-card:hover {
  transition-delay: 0ms;
}

.hm-pain:nth-child(1) {
  --i: 0;
}

.hm-pain:nth-child(2) {
  --i: 1;
}

.hm-pain:nth-child(3) {
  --i: 2;
}

.hm-pain:nth-child(4) {
  --i: 3;
}

/* A jornada: 4 passos, cada um com a sua tela. --------------------------------
   Base (celular e sem JS): pares tela + texto, na ordem. Com JS em tela larga:
   as telas se empilham numa moldura fixa e trocam conforme o passo lido. */
.hm-journey__grid {
  display: grid;
  gap: var(--s-3);
}

.hm-journey__stage,
.hm-journey__steps {
  display: contents;
}

.hm-journey__steps::before,
.hm-journey__steps::after,
.hm-journey__steps .hm-step::before {
  display: none;
}

.hm-screen:nth-child(1) { order: 1; }
.hm-screen:nth-child(2) { order: 3; }
.hm-screen:nth-child(3) { order: 5; }
.hm-screen:nth-child(4) { order: 7; }
.hm-step:nth-child(1) { order: 2; }
.hm-step:nth-child(2) { order: 4; }
.hm-step:nth-child(3) { order: 6; }
.hm-step:nth-child(4) { order: 8; }

.hm-screen {
  max-width: 30rem;
  box-shadow: var(--shadow-form);
}

.hm-step {
  display: grid;
  gap: var(--s-1);
  align-content: center;
  margin-bottom: var(--s-5);
}

.hm-step__num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hm-journey__cta {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  margin-top: var(--s-4);
}

.hm-journey__cta .ds-text {
  max-width: var(--measure);
  color: var(--text-soft);
}

@media (min-width: 60rem) {
  .hm-journey__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: var(--s-8);
    row-gap: var(--s-8);
    align-items: center;
  }

  .hm-screen {
    max-width: none;
  }

  .hm-step {
    margin-bottom: 0;
  }

  /* Moldura fixa: só com JS (o home.js escreve data-active na seção). */
  html.js .hm-journey__grid {
    align-items: start;
    row-gap: 0;
  }

  html.js .hm-journey__stage {
    position: sticky;
    top: calc(50vh - 11rem);
    display: grid;
  }

  html.js .hm-screen {
    grid-area: 1 / 1;
    order: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  }

  /* As telas já lidas saem para cima. */
  html.js .hm-journey[data-active="2"] .hm-screen:nth-child(-n + 1),
  html.js .hm-journey[data-active="3"] .hm-screen:nth-child(-n + 2),
  html.js .hm-journey[data-active="4"] .hm-screen:nth-child(-n + 3) {
    transform: translateY(-12px);
  }

  html.js .hm-journey:not([data-active]) .hm-screen:nth-child(1),
  html.js .hm-journey[data-active="1"] .hm-screen:nth-child(1),
  html.js .hm-journey[data-active="2"] .hm-screen:nth-child(2),
  html.js .hm-journey[data-active="3"] .hm-screen:nth-child(3),
  html.js .hm-journey[data-active="4"] .hm-screen:nth-child(4) {
    opacity: 1;
    transform: none;
  }

  html.js .hm-journey__steps {
    display: grid;
    gap: 0;
  }

  html.js .hm-journey__steps::before,
  html.js .hm-journey__steps::after,
  html.js .hm-journey__steps .hm-step::before {
    display: block;
  }

  html.js .hm-step {
    order: 0;
    min-height: 58vh;
  }

  /* O número do passo ativo fica em destaque; os outros, a 40%. */
  html.js .hm-step__num {
    opacity: 0.4;
    transition: opacity var(--t-base) var(--ease-out);
  }

  html.js .hm-journey:not([data-active]) .hm-step:nth-child(1) .hm-step__num,
  html.js .hm-journey[data-active="1"] .hm-step:nth-child(1) .hm-step__num,
  html.js .hm-journey[data-active="2"] .hm-step:nth-child(2) .hm-step__num,
  html.js .hm-journey[data-active="3"] .hm-step:nth-child(3) .hm-step__num,
  html.js .hm-journey[data-active="4"] .hm-step:nth-child(4) .hm-step__num {
    opacity: 1;
  }

  html.js .hm-step.ds-timeline__item::before {
    top: 50%;
    margin-top: -4px;
  }
}

/* Mocks das telas (HTML/CSS, aria-hidden): só formas e rótulos genéricos. --- */
.hm-mock {
  position: relative;
  display: grid;
  gap: 0.625rem;
  align-content: center;
  padding: clamp(0.875rem, 3vw, 1.5rem);
  overflow: hidden;
  font-size: var(--fs-label);
}

.hm-mock--print {
  padding: 0;
}

.hm-mock--print picture {
  display: block;
}

.hm-mock--print img {
  width: 100%;
}

/* Na moldura fixa todas as telas têm o mesmo tamanho; fora dela, cada uma tem a altura do conteúdo. */
@media (min-width: 60rem) {
  html.js .hm-mock {
    aspect-ratio: 4 / 3;
  }

  html.js .hm-mock--print {
    display: block;
  }

  html.js .hm-mock--print picture,
  html.js .hm-mock--print img {
    height: 100%;
    object-fit: cover;
    object-position: left top; /* o print é 2:1 e a tela 4:3: fica o lado da marca e do título */
  }
}

.hm-mock__line {
  display: block;
  height: 0.5rem;
  border-radius: var(--r-pill);
  background: var(--border);
}

.hm-mock__line--s { width: 32%; }
.hm-mock__line--m { width: 56%; }
.hm-mock__line--l { width: 88%; }

.hm-mock__field,
.hm-mock__result,
.hm-mock__post,
.hm-mock__col {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
}

.hm-mock__field {
  border-radius: var(--r-pill);
}

.hm-mock__result--on {
  border-color: var(--accent);
  background: var(--hover-fill);
}

.hm-mock__flag {
  justify-self: start;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hm-mock__flag--soft {
  padding: 0;
  background: none;
  color: var(--text-soft);
}

.hm-mock--ad {
  justify-items: center;
}

.hm-mock__post {
  width: min(100%, 15rem);
  gap: 0.625rem;
}

.hm-mock__who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hm-mock__who > span {
  display: grid;
  flex: 1;
  gap: 0.25rem;
}

.hm-mock__avatar {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--hover-fill);
}

.hm-mock__video {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: var(--hover-fill);
  color: var(--text-soft);
}

.hm-mock__video svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hm-mock__caption {
  display: grid;
  gap: 0.375rem;
}

.hm-mock__btn {
  justify-self: stretch;
  margin-top: 0.25rem;
  padding: 0.375rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.hm-mock--crm {
  align-content: space-between;
}

.hm-mock__chat {
  display: grid;
  gap: 0.5rem;
}

.hm-mock__bubble {
  display: grid;
  gap: 0.375rem;
  justify-self: start;
  max-width: 78%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
  background: var(--hover-fill);
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.35;
}

.hm-mock__bubble--out {
  justify-self: end;
  width: 46%;
  border-radius: 12px 12px 2px 12px;
  background: none;
}

.hm-mock__board {
  --pad: 0.375rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hm-mock__col {
  align-content: start;
  min-height: 5.5rem;
  padding: var(--pad);
  border-radius: 0;
  border-right-width: 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-mock__col:first-child {
  border-radius: var(--r-control) 0 0 var(--r-control);
}

.hm-mock__col:nth-child(4) {
  border-right-width: 1px;
  border-radius: 0 var(--r-control) var(--r-control) 0;
}

/* O card do lead: parado na última coluna; com a tela ativa, avança de coluna em coluna. */
.hm-mock__lead {
  --step: calc(100% + 2 * var(--pad));
  position: absolute;
  bottom: var(--pad);
  left: calc(75% + var(--pad));
  width: calc(25% - 2 * var(--pad));
  height: 2.25rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--hover-fill);
}

.hm-mock__lead::before {
  content: "";
  position: absolute;
  inset: 0.5rem 30% auto 0.375rem;
  height: 0.375rem;
  border-radius: var(--r-pill);
  background: var(--accent);
}

html.js .hm-journey[data-active="4"] .hm-mock__lead {
  animation: hm-lead 2.6s var(--ease-in-out) 0.5s both;
}

html.js .hm-journey[data-active="4"] .hm-mock__bubble {
  animation: ds-rise var(--t-slow) var(--ease-out) both;
}

html.js .hm-journey[data-active="4"] .hm-mock__bubble--out {
  animation-delay: 260ms;
}

@keyframes hm-lead {
  0%,
  12% {
    transform: translateX(calc(-3 * var(--step)));
  }
  34%,
  46% {
    transform: translateX(calc(-2 * var(--step)));
  }
  66%,
  78% {
    transform: translateX(calc(-1 * var(--step)));
  }
  100% {
    transform: none;
  }
}

/* Abaixo da dobra o navegador só monta a seção quando ela se aproxima da tela.
   As dores ficam de fora: estão entre o hero e o portfólio, e a altura estimada
   (900 px) diferente da real fazia o clique num chip passar do portfólio. */
.hm-work,
.hm-ethics,
.hm-scope,
.hm-proof,
.hm-method,
.hm-plans,
.hm-faq,
.hm-final,
.hm-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Depoimentos e bastidores. --------------------------------------------------- */
.hm-proof__videos .ds-carousel__track {
  grid-auto-columns: min(62%, 15rem);
}

.hm-proof__k {
  margin-block: var(--s-8) var(--s-3);
  color: var(--accent);
}

.hm-backstage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  align-items: start;
}

.hm-backstage figure {
  display: grid;
  gap: var(--s-1);
}

.hm-backstage img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  object-fit: cover;
}

.hm-backstage figcaption {
  color: var(--text-soft);
}

/* Alturas alternadas: as fotos pares descem meio passo. */
.hm-backstage li:nth-child(even) {
  margin-top: var(--s-5);
}

.hm-backstage li:nth-child(2) img,
.hm-backstage li:nth-child(3) img {
  aspect-ratio: 3 / 4;
}

.hm-backstage li:nth-child(2) [data-in] {
  --delay: 80ms;
}

.hm-backstage li:nth-child(3) [data-in] {
  --delay: 160ms;
}

.hm-backstage li:nth-child(4) [data-in] {
  --delay: 240ms;
}

@media (min-width: 48rem) {
  .hm-backstage {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
  }
}

.hm-team picture,
.hm-team img {
  width: 100%;
  margin-bottom: var(--s-2);
  border-radius: var(--r-card);
}

/* Como começamos: título à esquerda, linha do tempo à direita. ------------------ */
.hm-method__grid,
.hm-faq__grid {
  display: grid;
  gap: var(--s-2);
}

.hm-stage {
  display: grid;
  gap: var(--s-1);
}

.hm-stage__facts {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-1) 0 0;
}

.hm-stage__facts dd {
  max-width: 34rem;
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: var(--fs-small);
}

@media (min-width: 60rem) {
  .hm-method__grid,
  .hm-faq__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: var(--s-8);
    align-items: start;
  }

  .hm-method__grid .ds-head,
  .hm-faq__grid .ds-head {
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
    margin-bottom: 0;
  }

  .hm-stage__facts {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }
}

/* Planos (sem preço). ------------------------------------------------------------ */
.hm-plans__grid {
  display: grid;
  gap: var(--s-3);
  align-items: stretch;
}

.hm-plan {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-3);
}

.hm-plan__badge {
  align-self: flex-start;
}

.hm-plan__name {
  color: var(--title);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--fw-h2);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.hm-plan .ds-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.hm-plan__cta {
  margin-top: auto;
}

/* Recomendado: moldura em gradiente sutil (tons de --accent, não o dourado da ação). */
.hm-plan--featured {
  border-color: transparent;
  background: linear-gradient(var(--surface-card), var(--surface-card)) padding-box, linear-gradient(160deg, var(--accent), var(--border) 55%, var(--accent)) border-box;
  box-shadow: var(--shadow-2);
}

.hm-ticks {
  display: grid;
  gap: 0.625rem;
  font-size: var(--fs-small);
}

.hm-ticks li {
  position: relative;
  padding-left: 1.5rem;
}

.hm-ticks li::before,
.hm-yes {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.4rem;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.hm-ticks li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
}

.hm-ticks--soft {
  padding-block: var(--s-1) var(--s-2);
  color: var(--text-soft);
}

.hm-plan__inc {
  border-block: 1px solid var(--border);
}

.hm-plan__inc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  color: var(--title);
  font-size: var(--fs-small);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.hm-plan__inc summary::-webkit-details-marker {
  display: none;
}

.hm-plan__inc summary span {
  transition: transform var(--t-base) var(--ease-out);
}

.hm-plan__inc[open] summary span {
  transform: rotate(45deg);
}

@media (min-width: 60rem) {
  .hm-plans__grid {
    grid-template-columns: repeat(3, 1fr);
    padding-top: var(--s-1);
  }

  .hm-plan--featured {
    margin-top: calc(-1 * var(--s-1)); /* 8 px acima dos outros */
    margin-bottom: var(--s-1);
  }
}

.hm-compare {
  margin-top: var(--s-5);
  border-top: 1px solid var(--border);
}

.hm-compare__body {
  display: grid;
  gap: var(--s-3);
  max-width: none;
}

.hm-compare__table {
  display: none;
  overflow-x: auto;
}

.hm-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.hm-compare th,
.hm-compare td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.hm-compare thead th {
  color: var(--title);
  font-weight: 600;
}

.hm-compare tbody th {
  color: var(--text);
  font-weight: 400;
}

.hm-compare td {
  width: 8.5rem;
  color: var(--text-soft);
}

.hm-compare__list .ds-acc summary {
  font-size: 1.0625rem;
}

@media (min-width: 60rem) {
  .hm-compare__table {
    display: block;
  }

  .hm-compare__list {
    display: none;
  }
}

/* Formulário final. ---------------------------------------------------------------- */
.hm-final__grid {
  display: grid;
  gap: var(--s-5);
}

.hm-final__copy {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}

.hm-final__list {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.hm-final__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2);
  align-items: baseline;
  max-width: 34rem;
  color: var(--text-soft);
}

.hm-final__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.625rem;
  align-items: baseline;
}

.hm-final__form {
  min-width: 0;
}

@media (min-width: 64rem) {
  .hm-final__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--s-4);
    align-items: start;
  }

  .hm-final__copy {
    grid-column: 1 / span 7;
  }

  .hm-final__form {
    grid-column: 8 / span 5;
  }
}

/* Rodapé. ------------------------------------------------------------------------------ */
.hm-footer {
  padding-block: var(--s-8) calc(var(--s-4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

.hm-footer__grid {
  display: grid;
  gap: var(--s-5);
}

.hm-footer__brand {
  display: grid;
  gap: var(--s-2);
  justify-items: start;
  max-width: 22rem;
}

.hm-footer .ds-label {
  margin-bottom: var(--s-2);
}

.hm-footer__links {
  display: grid;
  gap: 0.25rem;
}

.hm-footer__links a,
.hm-footer__nap a {
  display: inline-block;
  padding-block: 0.375rem;
  color: var(--text-soft);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

.hm-footer__links a:hover,
.hm-footer__nap a:hover {
  color: var(--text);
}

.hm-footer__nap {
  margin-top: var(--s-2);
  font-style: normal;
}

.hm-footer__bottom {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

@media (min-width: 48rem) {
  .hm-footer__grid {
    grid-template-columns: 1.3fr 1.2fr 0.8fr 1fr;
    gap: var(--s-4);
  }
}

/* Aviso de cookies: informa, não bloqueia (decisão de 18/11). Some depois do «Entendi». ------ */
.hm-cookies {
  position: fixed;
  z-index: 45;
  inset: auto var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
  display: flex;
  gap: var(--s-2);
  align-items: center;
  max-width: 30rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
}

.hm-bar.is-on ~ .hm-cookies {
  bottom: calc(4.75rem + env(safe-area-inset-bottom)); /* acima da barra fixa do celular */
}

.hm-cookies[hidden] {
  display: none;
}

.hm-cookies p {
  margin: 0;
}

.hm-cookies a {
  color: inherit;
  text-decoration: underline;
}

.hm-cookies .ds-btn {
  flex: none;
}

/* Barra fixa do celular: aparece depois do hero, some com o formulário à vista. --------- */
.hm-bar {
  position: fixed;
  z-index: 40;
  inset: auto 0 0;
  display: flex;
  gap: var(--s-1);
  align-items: center;
  padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease-spring), visibility 0s var(--t-slow);
}

.hm-bar.is-on {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.hm-bar .ds-btn {
  flex: 1;
}

.hm-bar .ds-iconbtn {
  flex: none;
  width: 3rem;
  height: 3rem;
}

.hm-bar .ds-iconbtn svg {
  width: 1.375rem;
  height: 1.375rem;
}

@media (min-width: 48rem) {
  .hm-bar {
    display: none;
  }
}

/* LPs: o muro parado (carrossel de sites da especialidade) vem logo abaixo do hero. */
.hm-work--lp {
  padding-block: var(--s-8) 0;
}

.hm-work--lp .ds-head {
  margin-bottom: var(--s-3);
}

.hm-work--lp .ds-pill {
  margin: 0;
}

/* Portfólio: frase de fecho abaixo das abas. ---------------------------------- */
.hm-work__fecho {
  max-width: var(--measure);
  margin-top: var(--s-5);
  color: var(--text-soft);
}

/* Comunicação médica (CFM): texto à esquerda, itens num card à direita. ------ */
.hm-ethics {
  padding-top: 0;
}

.hm-ethics__grid {
  display: grid;
  gap: var(--s-5);
  padding-top: var(--section-y);
  border-top: 1px solid var(--border);
}

.hm-ethics__grid .ds-head {
  margin-bottom: 0;
}

.hm-ethics__card {
  display: grid;
  gap: var(--s-4);
}

.hm-ethics__note {
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

@media (min-width: 60rem) {
  .hm-ethics__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--s-8);
    align-items: start;
  }
}

/* LPs: contexto da especialidade. Continua o escuro do hero, com uma linha de
   divisa; H2 à esquerda e o texto à direita no desktop. ---------------------- */
.hm-context {
  padding-top: 0;
}

.hm-context__grid {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--section-y);
  border-top: 1px solid var(--border);
}

.hm-context__text {
  display: grid;
  gap: var(--s-3);
  align-content: start;
}

.hm-context__text .ds-text {
  color: var(--text-soft);
}

@media (min-width: 60rem) {
  .hm-context__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: var(--s-8);
  }
}

/* LPs: «O que estruturamos», 6 frentes em cards. ------------------------------ */
.hm-scope {
  padding-top: 0;
}

.hm-scope__wrap {
  padding-top: var(--section-y);
  border-top: 1px solid var(--border);
}

.hm-scope__list .ds-card {
  display: grid;
  align-content: start;
}

@media (min-width: 48rem) {
  .hm-scope__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .hm-scope__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Grupo na lista do plano (página de venda): «Processo comercial aplicado de:» + subitens. */
.hm-ticks__group {
  font-weight: 600;
}

.hm-ticks--sub {
  margin-top: 0.5rem;
  font-weight: 400;
}

.hm-ticks--sub li::before {
  width: 0.375rem;
  height: 0.375rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  transform: none;
}
