/* A primeira dobra preserva a escala editorial com espaço seguro entre linhas. */
.hero h1 {
  line-height: 1.03;
}

/* Ajustes mobile: a composição editorial vira uma sequência limpa e legível. */
@media (max-width: 640px) {
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 108px;
    height: 46px;
    padding: 0 15px;
    border: 1px solid rgba(15, 20, 51, .24);
    background: transparent;
    color: var(--navy);
    font: 700 10px/1 var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
  }

  .burger:active { background: var(--navy); color: var(--paper); }
  .burger:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .nav { z-index: 10; }
  .menu { z-index: 11; border-top: 1px solid var(--line); }
  .menu.open { display: flex; }
  .burger-icon { position: relative; display: block; width: 16px; height: 12px; }
  .burger-icon::before, .burger-icon::after { position: absolute; left: 0; width: 16px; height: 1px; background: currentColor; content: ""; transform-origin: center; transition: top .2s ease, transform .2s ease; }
  .burger-icon::before { top: 3px; }
  .burger-icon::after { top: 9px; }
  .burger.is-open .burger-icon::before { top: 6px; transform: rotate(45deg); }
  .burger.is-open .burger-icon::after { top: 6px; transform: rotate(-45deg); }

  .insight-index {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 21px;
    color: var(--gold);
    font: 700 11px/1 var(--sans);
    letter-spacing: .16em;
    font-variant-numeric: tabular-nums;
  }

  .insight-index::before { color: var(--muted); content: "ETAPA"; font: 700 9px/1 var(--sans); letter-spacing: .14em; }
  .insight-index::after { width: 28px; height: 1px; background: currentColor; content: ""; opacity: .65; }
  html,
  body,
  .site-body {
    overflow-x: clip;
  }

  .hero {
    min-height: 0;
  }

  .hero::before,
  .hero::after,
  .portrait-frame::before,
  .portrait-frame::after {
    display: none;
  }

  .hero-grid {
    gap: 32px;
    padding: 38px 0 0;
  }

  .hero h1 {
    font-size: clamp(54px, 15.5vw, 71px);
    line-height: 1.06;
    text-wrap: balance;
  }

  .hero-copy > p {
    max-width: 32rem;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero .kicker {
    gap: 10px;
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: .15em;
  }

  .actions {
    gap: 10px;
    margin-top: 26px;
  }

  .actions .btn {
    min-height: 56px;
  }

  .trust-line {
    margin: 24px 0 34px;
    padding-top: 16px;
    font-size: 11px;
    line-height: 1.45;
  }

  .portrait-frame {
    width: 100%;
    min-height: 0;
    height: min(112vw, 520px);
    margin: 0;
    overflow: hidden;
    background: var(--navy);
    isolation: isolate;
  }

  .portrait-frame picture,
  .portrait-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: none;
    object-fit: cover;
    object-position: 82% center;
    transform: none;
  }

  .portrait-note {
    right: 16px;
    bottom: 16px;
    width: min(84%, 315px);
    max-width: calc(100% - 32px);
    padding: 20px;
    box-sizing: border-box;
  }

  .portrait-note strong {
    font-size: clamp(32px, 9vw, 42px);
    line-height: .95;
  }

  /* Páginas internas: sem dobras gráficas sobre CTAs ou texto. */
  .page-hero,
  .route-como-funciona .page-hero {
    min-height: 0;
    padding: 52px 0;
  }

  .page-hero::before,
  .page-hero::after,
  .route-como-funciona .page-hero::before,
  .route-como-funciona .page-hero::after {
    display: none;
  }

  .page-hero h1 {
    font-size: clamp(44px, 12.2vw, 54px);
    line-height: .98;
    text-wrap: balance;
  }

  .page-hero .actions {
    margin-top: 26px;
  }

  .planning-banner {
    padding: 34px 0 62px;
  }

  .planning-banner .wrap {
    gap: 30px;
  }

  .insight-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    height: min(88dvh, 760px);
    max-height: none;
    margin: 0;
    border: 0;
    background: transparent;
  }

  .insight-dialog-panel {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: calc(68px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    overscroll-behavior: contain;
  }

  .insight-dialog-close {
    top: calc(16px + env(safe-area-inset-top));
    right: calc(16px + env(safe-area-inset-right));
    min-height: 44px;
    touch-action: manipulation;
  }

  .service-card,
  .journey-card {
    touch-action: manipulation;
  }

  .service-card {
    min-height: 218px;
    gap: 28px;
  }

  .service-card-index {
    color: var(--gold);
    font: 700 12px/1 var(--sans);
    letter-spacing: .14em;
  }

  .service-card-action {
    font-size: 10px;
    letter-spacing: .14em;
  }

  .service-card:active,
  .journey-card:active {
    transform: translateY(1px) scale(.995);
  }

  /* Escala tipográfica mobile: mais legível, reta e sem colisões. */
  body {
    font-size: 16px;
  }

  .hero h1,
  .page-hero h1,
  .section-head h2,
  .insight-dialog h2,
  .cta-band h2,
  .portrait-note strong,
  .planning-banner-copy h2,
  .editorial-note h2,
  .client-card h1,
  .quote-block,
  .service-card-body strong,
  .journey-card h3,
  .faq summary {
    letter-spacing: -.01em;
    line-height: 1.06;
    overflow-wrap: normal;
  }

  .hero h1 em,
  .page-hero h1 em,
  .section-head h2 em,
  .insight-dialog h2 em,
  .cta-band h2 em,
  .portrait-note strong em,
  .planning-banner-copy h2 em,
  .editorial-note h2 em,
  .client-card h1 em,
  .quote-block em,
  .service-card-body strong em,
  .journey-card h3 em,
  .faq summary em {
    font-style: normal;
  }

  .kicker,
  .btn,
  .menu a,
  .burger,
  .service-card-action,
  .card-hint,
  .card-detail a,
  .form label,
  .insight-dialog-close,
  .insight-index {
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
  }

  .hero .kicker {
    font-size: 12px;
    line-height: 1.5;
  }

  .trust-line,
  .portrait-note span,
  .form small,
  .form-status,
  .legal-note,
  .footer-bottom,
  .journey-card > span,
  .step::before {
    font-size: 13px !important;
    font-style: normal;
    line-height: 1.55;
  }

  .service-card-body > span:last-child,
  .journey-card p,
  .faq p,
  .footer a,
  .footer p {
    font-size: 15px;
    font-style: normal;
    line-height: 1.65;
  }

  .insight-index::before {
    font-size: 11px;
    font-style: normal;
  }
}
