/* Restore / Retouch: mobile composition, loaded after the shared desktop styles. */
@media (max-width: 900px) {
  :root { --mobile-gutter: 20px; }
  html { scroll-padding-top: 80px; }
  body { font-size: 16px; }
  main > section .page-shell,
  .site-header .site-header-inner,
  #restore-aplicacoes .page-shell,
  .products-ecosystem > .page-shell {
    width: calc(100% - var(--mobile-gutter) * 2) !important;
    max-width: 680px !important;
    margin-inline: auto !important;
    min-width: 0;
  }
  main > section:not(.hero):not(.product-entry):not(.social) {
    padding-block: 52px !important;
  }
  main > section[id] { scroll-margin-top: 24px; }
  main > section :is(h2, .gradient-heading) {
    margin-inline: auto;
    font-size: clamp(1.8rem, 7.8vw, 2.35rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -.04em !important;
    text-align: center !important;
    text-wrap: balance;
  }
  main :is(.products-heading, .protocol-pain-heading, .reglow-explainer-heading,
    .individualized-editorial-copy, .exomine-solutions-heading) {
    max-width: 620px;
    margin-inline: auto !important;
    text-align: center !important;
  }
  main :is(.eyebrow, .body-copy, .section-intro, .section-lead,
    .individualized-intro, .purchase-banner-description) { text-align: center !important; }
  main :is(.body-copy, .section-intro, .individualized-intro,
    .products-heading > p:last-child, .protocol-pain-heading > p:last-child,
    .reglow-explainer-heading > p) {
    max-width: 600px;
    margin-inline: auto !important;
    font-size: .96rem !important;
    line-height: 1.65 !important;
  }
  main .eyebrow { font-size: .68rem !important; line-height: 1.5 !important; letter-spacing: .13em; }
  main :is(.products-heading, .reglow-explainer-heading) { margin-bottom: 28px !important; }

  /* Header and a menu that stays inside the same page margins. */
  .site-header { position: absolute; min-height: 68px; }
  .site-header .site-header-inner { position: relative; min-height: 68px !important; }
  .site-header .brand-mark { width: 34px; height: 34px; }
  .js .site-header .menu-toggle { min-height: 42px; padding: 9px 12px; }
  .js .site-header nav { top: 100%; right: 0; width: min(360px, 100%); max-width: 100%; }
  .site-header nav a { min-height: 44px; }

  /* Centred calls to action, with the arrow next to the label. */
  main :is(.section-cta, .section-cta-left) { width: 100%; margin: 26px auto 0 !important; justify-content: center !important; text-align: center; }
  main :is(.button, .product-cta, .reglow-kit-cta, .purchase-banner-button,
    .upgrade-product-cta, .other-solutions-button) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 360px !important;
    min-height: 56px !important;
    margin-inline: auto !important;
    padding: 14px 18px !important;
    gap: 10px !important;
    font-size: .92rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }
  main :is(.button, .product-cta, .purchase-banner-button, .upgrade-product-cta,
    .other-solutions-button) > span:last-child,
  main .button > span[aria-hidden="true"]:last-child { flex: 0 0 auto; margin-left: 0 !important; }

  /* The opening video is an inline frame on every narrow screen. */
  #restore { min-height: 0 !important; height: auto !important; padding: 0 0 44px !important; }
  #restore .hero-content { padding: 96px 0 0 !important; text-align: center; }
  #restore .hero-content h1 {
    max-width: 640px !important;
    margin: 0 auto 20px !important;
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -.045em !important;
    text-align: center;
    text-wrap: balance;
  }
  .hero .hero-content > p { max-width: 600px !important; margin: 0 auto !important; font-size: .96rem !important; line-height: 1.65 !important; text-align: center; }
  #restore > .hero-background-video, .hero > .hero-shade { display: none !important; }
  #restore .hero-mobile-media { display: block !important; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; height: auto; margin: 24px auto 0 !important; border-radius: 20px !important; overflow: hidden; }
  #restore .hero-mobile-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
  #retouch { display: flex; flex-direction: column; min-height: 0 !important; height: auto !important; padding: 52px 0 44px !important; }
  #retouch .hero-content { order: 1; padding: 0 !important; text-align: center; }
  #retouch .hero-title { max-width: 620px; margin: 0 auto 22px; }
  #retouch .hero-background-product { position: relative !important; order: 2; inset: auto !important; display: block; width: min(74%, 280px); height: 250px; max-height: 250px; padding: 0; margin: 28px auto 0; object-fit: contain; }
  #retouch .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: 100%; max-width: 520px; margin: 24px auto 0 !important; padding: 16px 4px !important; gap: 0 !important; }
  #retouch .hero-stats article { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 10px !important; text-align: center; }
  #retouch .hero-stats strong { display: grid; place-items: center; min-height: 2.4em; font-size: 1.15rem !important; line-height: 1.2; white-space: normal !important; }
  #retouch .hero-stats span { margin-top: 6px; text-transform: none; font-size: .6rem !important; line-height: 1.45 !important; }

  /* Educational video, product banners and protocol. */
  #restore-aplicacoes .individualized-editorial-grid { grid-template-columns: minmax(0, 1fr); gap: 30px !important; justify-items: center; }
  #restore-aplicacoes .individualized-video-card { width: min(76vw, 250px) !important; margin-inline: auto; }
  #restore-individualized-title br { display: none; }
  #restore-aplicacoes .individualized-intro { margin-top: 22px !important; }
  #restore-aplicacoes .individualized-note { max-width: 560px; margin: 18px auto 0 !important; padding: 0 !important; text-align: center; font-size: .78rem; line-height: 1.55; }
  #restore-aplicacoes .individualized-note::before { display: none; }
  .product-entry { padding: 28px 0 !important; }
  .product-entry .entry-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 520px !important; }
  #restore-protocolo .protocol-device-hint { margin-inline: auto; justify-content: center; }
  #restore-protocolo .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin-top: 24px; }
  #restore-protocolo .timeline::before { display: none; }
  #restore-protocolo .timeline-trigger { display: flex !important; flex-direction: column !important; align-items: center; justify-content: center; min-height: 108px !important; padding: 12px 8px !important; gap: 9px; text-align: center !important; }
  #restore-protocolo .timeline-trigger > span { flex: 0 0 32px; width: 32px; height: 32px; }
  #restore-protocolo .timeline-trigger > strong { display: grid; place-items: center; min-height: 2.6em; font-size: .8rem !important; line-height: 1.3; }
  .protocol-step-summary { min-height: 0; padding: 22px 18px; }
  .protocol-source-note { margin-top: 22px; }
  #restore-protocolo .protocol-upgrade { grid-template-columns: minmax(0, 1fr); margin-top: 36px !important; padding: 26px 20px !important; gap: 24px; text-align: center; }
  .protocol-upgrade-copy h3 { font-size: 1.7rem; line-height: 1.16; }
  .protocol-upgrade-copy > p { margin-inline: auto; }
  .protocol-upgrade-products { width: 100%; margin: 0; }
  .protocol-upgrade-products .upgrade-product { width: 100%; max-width: 340px; margin: 0 auto; }
  .protocol-upgrade .upgrade-product img { height: 190px !important; }

  /* A balanced heading and centred benefit cards on the pink section. */
  #fat-overview-title { max-width: 620px; font-size: clamp(1.6rem, 7.5vw, 2.4rem) !important; }
  #fat-overview-title > .opportunity-title-line { font-size: .76em; }
  .fat-overview .pain-intro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
  .fat-overview .pain-intro-grid article { padding: 26px 22px !important; text-align: center; }
  .fat-overview .pain-intro-grid article > .benefit-icon { margin: 0 auto 16px; }
  .fat-overview .pain-stat { margin-bottom: 16px !important; font-size: 1.65rem !important; }
  .fat-overview .pain-intro-grid article > strong { margin-top: 0; }
  .fat-overview .pain-intro-grid article > p { font-size: .9rem; line-height: 1.65; }

  /* Equal component cards and a centred final item for the seven-piece grid. */
  .reglow-kit-card { grid-template-columns: minmax(0, 1fr) !important; }
  .reglow-kit-media { min-height: 0 !important; padding: 24px !important; }
  .reglow-kit-media--editorial .reglow-kit-editorial-image { width: 100% !important; max-width: 340px; height: 250px !important; max-height: 250px !important; object-fit: contain; margin-inline: auto; }
  .reglow-kit-content { padding: 28px 20px !important; text-align: center; }
  .reglow-kit-content .product-tag { display: inline-flex; justify-content: center; max-width: 100%; margin-inline: auto; font-size: .65rem; }
  .reglow-kit-content h3 { margin-inline: auto; font-size: clamp(1.65rem, 7.4vw, 2.1rem) !important; line-height: 1.12; }
  .reglow-kit-content > p { margin-inline: auto; line-height: 1.6; }
  .reglow-kit-items { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: 100%; max-width: 520px; margin: 22px auto !important; gap: 10px !important; overflow: visible; }
  .reglow-kit-items article { padding: 12px 8px !important; min-width: 0; }
  .reglow-kit-items article > span { height: 104px !important; max-height: 104px !important; margin-bottom: 8px; }
  main .reglow-kit-items img { display: block; width: 100%; height: 104px !important; max-height: 104px !important; object-fit: contain; }
  .reglow-kit-items > article:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc((100% - 10px) / 2); justify-self: center; }
  .reglow-kit-content .kit-included-detail { font-size: .9rem !important; text-align: center; }
  .reglow-kit-solution { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 16px !important; text-align: center; }
  .reglow-kit-solution > span { margin: 0 auto; }
  .reglow-kit-content .reglow-kit-cta { margin-top: 24px; }

  /* Technology and clinical imagery retain their proportions. */
  .fat-technology-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .fat-technology-grid figure { width: 100%; margin: 0 auto; }
  .fat-technology-grid figure img { height: 260px; }
  .fat-technology-points { width: 100%; max-width: 560px; margin-inline: auto; }
  .fat-technology-points article { flex-direction: column; align-items: center; gap: 12px; padding: 22px 0; text-align: center; }
  #tecnologia .fat-technology-points h3 { color: var(--fat-ink); font-size: 1.2rem; }
  #tecnologia .fat-technology-points p,
  #tecnologia .reglow-explainer-heading > p,
  #tecnologia figcaption { color: #655e67; }
  #tecnologia .fat-technology-points article > span { background: #f7edf4; }
  .story-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .story .result-card { width: 100%; min-width: 0; margin: 0 auto; }
  .story .result-card figcaption { text-align: center; }
  #restore-beneficios .case-arrow { width: 44px !important; height: 44px !important; }
  #restore-beneficios .case-arrow-prev { left: 8px !important; }
  #restore-beneficios .case-arrow-next { right: 8px !important; }
  .case-navigation { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .purchase-banner-content { display: flex; flex-direction: column; gap: 24px !important; text-align: center; }
  .purchase-banner-description { margin-top: 14px; }
  .fat-comparison .milestone-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; }
  .fat-milestone-number { font-size: 4.5rem; margin-bottom: 12px; }
  .fat-kit-pair { width: 100%; max-width: 520px; justify-content: center; margin: 0 auto; gap: 12px; }
  .fat-kit-pair img { min-width: 0; max-height: 220px; }
  .fat-comparison-table-wrap { margin-top: 30px; }
  .fat-comparison-table caption { text-align: center; font-size: 1.1rem; padding: 22px 14px; }
  .fat-comparison-table :is(th, td) { padding: 14px 8px; font-size: .76rem; line-height: 1.5; vertical-align: middle; text-align: center; }

  /* Compact solution banners, with balanced text and product columns. */
  .exomine-solutions-heading { text-align: center; }
  body main #exomine-solutions-title { font-size: clamp(1.8rem, 7.8vw, 2.35rem) !important; }
  .exomine-solutions-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .exomine-solution-banner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 238px; padding: 22px 16px; gap: 10px; }
  .exomine-solution-copy { text-align: center; }
  .exomine-solution-brand { margin-bottom: 12px; font-size: .58rem; letter-spacing: .06em; }
  body main .exomine-solution-banner h3 { font-size: clamp(1.3rem, 6vw, 1.8rem) !important; margin-bottom: 12px !important; white-space: normal; }
  .exomine-solution-copy p { margin-inline: auto; font-size: .82rem; line-height: 1.55; }
  .exomine-solution-link { justify-content: center; margin-top: 16px; font-size: .75rem; line-height: 1.4; white-space: normal; }
  .exomine-solution-visual img { height: 160px; }

  /* Readable FAQ rows and compact, equally sized file cards. */
  .faq h2 { margin-bottom: 28px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 12px !important; }
  .faq summary { display: flex; align-items: center; justify-content: space-between; min-height: 70px !important; padding: 18px !important; gap: 16px; font-size: .94rem !important; line-height: 1.4 !important; text-align: left; }
  .faq summary > span { flex: 0 0 18px; width: 18px; text-align: center; }
  .faq details p { text-align: left; }
  .downloads-grid { grid-template-columns: minmax(0, 1fr); gap: 28px !important; }
  .downloads-grid > div { min-width: 0; }
  .downloads-grid h3 { margin: 0 auto 24px; font-size: 1.65rem; line-height: 1.15; text-align: center; }
  .technical-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; width: 100%; max-width: 620px; margin-inline: auto; }
  .technical-downloads > a { display: flex; flex-direction: column; min-width: 0; }
  .technical-downloads .download-image { flex: 0 0 150px; width: 100%; height: 150px !important; min-height: 0; padding: 12px; }
  .technical-downloads .download-image img { display: block; width: 100%; height: 126px !important; max-height: 126px; object-fit: contain; }
  .technical-downloads > a strong { flex: 1; min-height: 68px; padding: 12px 10px 4px; font-size: .8rem; line-height: 1.3; }
  .technical-downloads > a small { display: flex; align-items: flex-start; justify-content: center; min-height: 46px; padding: 0 10px 12px; font-size: .7rem; line-height: 1.45; }

  /* A centred social section and footer, including all three trust marks. */
  .social { padding: 52px 0 0 !important; }
  .social-grid { display: flex; flex-direction: column-reverse; align-items: center !important; min-height: 0 !important; gap: 24px !important; text-align: center; }
  .social-grid > div { width: 100%; }
  .social-grid > img { width: min(56vw, 230px) !important; max-width: 100%; align-self: center; margin: 0 auto -12px !important; }
  .social a { justify-content: center; }
  .closing-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .closing-cta-grid { grid-template-columns: minmax(0, 1fr); gap: 28px !important; padding-bottom: 32px !important; text-align: center; }
  .closing-cta-title { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); padding: 0 0 28px; }
  .closing-cta-title .brand-mark { display: flex; margin: 0 auto 22px; }
  .closing-cta h2 { max-width: 420px; }
  .closing-cta-copy { border: 0; padding: 0; text-align: center; }
  .closing-cta-copy > p { max-width: 520px; margin: 0 auto 24px; font-size: 1rem !important; line-height: 1.6 !important; }
  .closing-cta .closing-whatsapp { margin-inline: auto; }
  .company-info { grid-template-columns: minmax(0, 1fr); gap: 20px !important; padding-top: 28px; text-align: center; }
  .company-info > div, .company-info address { justify-content: center; align-items: center; margin-inline: auto; }
  .company-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .company-links a { display: flex; align-items: center; min-height: 44px; }
  .closing-cta .footer-trust-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 24px; }
  .footer-trust-badges .trust-badge { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 9px; text-align: center; }
  .footer-trust-badges .trust-badge svg { width: 34px; height: 34px; flex: 0 0 34px; }
  .footer-trust-badges .trust-badge span { font-size: .72rem; line-height: 1.35; }
  .footer-other-solutions { padding-top: 28px; }
  .floating-whatsapp { width: 48px !important; height: 48px !important; right: max(10px, env(safe-area-inset-right)) !important; bottom: max(12px, env(safe-area-inset-bottom)) !important; }
  .floating-whatsapp > span { width: 38px !important; height: 38px !important; }
}

@media (max-width: 600px) {
  .fat-overview .pain-intro-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .fat-comparison-table thead th:first-child { width: 38%; }
  .fat-comparison-table :is(th, td) { padding-inline: 5px; overflow-wrap: normal; word-break: normal; }
}
@media (min-width: 700px) and (max-width: 900px) {
  .technical-downloads { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; max-width: none; }
}
@media (max-width: 360px) {
  :root { --mobile-gutter: 16px; }
  #fat-overview-title > .opportunity-title-line { font-size: .72em; }
  .reglow-kit-content { padding: 24px 16px !important; }
  .technical-downloads .download-image { flex-basis: 136px; height: 136px !important; }
  .technical-downloads .download-image img { height: 112px !important; max-height: 112px; }
  .footer-trust-badges .trust-badge span { font-size: .68rem; }
}
