/* Mobile-only presentation. Desktop remains governed by the original stylesheet. */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  nav.site-nav {
    min-height: 78px;
    padding: 15px 20px !important;
    gap: 14px;
  }

  nav.site-nav > a {
    min-width: 0;
    flex: 1;
  }

  nav.site-nav > a span:first-child {
    font-size: 1rem !important;
    line-height: 1.15;
    letter-spacing: .07em !important;
    white-space: nowrap;
  }

  nav.site-nav > a span:last-child {
    margin-top: 5px;
    font-size: .5rem !important;
    line-height: 1.2;
    letter-spacing: .19em !important;
    white-space: nowrap;
  }

  nav.site-nav .nav-cta {
    min-height: 40px;
    padding: 0 0 2px;
    font-size: .65rem;
    letter-spacing: .12em;
    white-space: nowrap;
  }

  /* Mobile conversion flow: offer first, portrait second. */
  #inicio > div {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding-top: 78px;
  }

  #inicio > div > div:first-child {
    order: 1 !important;
    flex: none !important;
    padding: 38px 22px 34px !important;
  }

  #inicio > div > div:nth-child(2) {
    order: 0 !important;
    width: 100%;
    height: clamp(410px, 112vw, 500px) !important;
    min-height: 410px !important;
    max-height: 500px !important;
    flex: none !important;
  }

  #inicio > div > div:first-child > div:first-child {
    margin-bottom: 18px !important;
    gap: 12px;
  }

  #inicio > div > div:first-child > div:first-child span:first-child {
    width: 28px;
  }

  #inicio > div > div:first-child > div:first-child span:last-child {
    font-size: .68rem;
    line-height: 1.45;
    letter-spacing: .16em;
  }

  #inicio h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 11.5vw, 3.25rem) !important;
    line-height: .92 !important;
    letter-spacing: -.035em !important;
  }

  #inicio h1 em {
    display: inline-block;
    margin-top: 4px;
  }

  #inicio p.mt-8 {
    max-width: 34ch;
    margin-top: 22px !important;
    font-size: 1rem;
    line-height: 1.65;
  }

  /* Benefits become a compact three-column strip on phones. */
  #inicio > div > div:first-child > div:nth-of-type(2) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1px;
    margin-top: 24px !important;
  }

  #inicio > div > div:first-child > div:nth-of-type(2) > div {
    min-height: 82px;
    padding: 13px 9px !important;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    text-align: center;
    font-size: .72rem;
    line-height: 1.35;
  }

  #inicio > div > div:first-child > div:nth-of-type(3) {
    width: 100%;
    margin-top: 24px !important;
    gap: 16px;
  }

  #inicio .btn.hero-primary {
    width: 100% !important;
    min-height: 54px;
    padding: 16px 18px !important;
    justify-content: center !important;
    text-align: center;
    font-size: .72rem;
  }

  #inicio > div > div:first-child > p:last-child {
    margin-top: 16px !important;
    font-size: .72rem;
  }

  #inicio .doctor-photo {
    object-position: 66% 14% !important;
    transform: none !important;
  }

  #inicio > div > div:nth-child(2) > div:nth-last-child(1) {
    padding: 22px !important;
    background: linear-gradient(180deg, rgba(55, 61, 42, .12), rgba(55, 61, 42, .96) 32%);
    backdrop-filter: none;
  }

  #inicio > div > div:nth-child(2) > div:nth-last-child(1) > p {
    max-width: 14ch;
    font-size: 1.55rem !important;
    line-height: 1.08;
  }

  #inicio > div > div:nth-child(2) > div:nth-last-child(1) > div {
    margin-top: 16px !important;
    padding-top: 14px !important;
    gap: 7px 14px;
    font-size: .62rem;
    line-height: 1.35;
    letter-spacing: .12em;
  }

  #inicio + div,
  #inicio ~ div.border-y,
  div[class*="border-y"][class*="px-6"][class*="py-5"][class*="lg:px-16"] {
    display: none !important;
    padding: 18px 22px !important;
  }

  #inicio + div > div {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    line-height: 1.45;
  }

  #inicio + div > div > span:not([aria-hidden="true"]) {
    position: relative;
    padding-left: 16px;
  }

  #inicio + div > div > span:not([aria-hidden="true"])::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a67f3d;
  }

  #trabalho,
  #casos-em-video,
  #doutor,
  #faq {
    scroll-margin-top: 86px;
  }

  .video-proof-section {
    padding: 58px 22px;
  }

  .video-proof-grid {
    width: calc(100vw - 22px);
  }

  .video-proof-card,
  .video-proof-card.is-featured {
    flex-basis: min(84vw, 380px);
    height: min(128vw, 540px);
  }

  .btn,
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 359px) {
  nav.site-nav {
    padding-inline: 16px !important;
  }

  nav.site-nav > a span:first-child {
    font-size: .9rem !important;
  }

  nav.site-nav > a span:last-child {
    letter-spacing: .13em !important;
  }

  #inicio > div > div:first-child {
    padding-inline: 18px !important;
  }

  #inicio h1 {
    font-size: 2.5rem !important;
  }
}
