/* Seção adaptada de referencia-rzor/sessao-eleva-app. Estilos isolados. */
.app-tour-section {
  --purple: #660099;
  --ink: #2f1041;
  --muted: #71617d;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 24px 0;
  background:
    linear-gradient(to bottom, transparent calc(100% - 150px), #ebebeb 100%),
    linear-gradient(112deg, #f3e5ff 0%, #f8edff 57%, #fbeaf7 100%);
  color: var(--ink);
  font-family: inherit;
}

.app-tour-section *, .app-tour-section *::before, .app-tour-section *::after { box-sizing: border-box; }
.app-tour-section::before, .app-tour-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: #e4c4f5;
  opacity: .58;
}
.app-tour-section::before { width: 370px; height: 370px; left: 11%; top: 235px; border-radius: 45% 55% 62% 38%; transform: rotate(-24deg); }
.app-tour-section::after { width: 280px; height: 280px; right: -140px; top: 12%; border-radius: 50%; opacity: .28; }
.app-tour-container { position: relative; max-width: 1240px; margin: 0 auto; }
.app-tour-header { position: relative; z-index: 3; }
.app-tour-heading { margin: 0 0 22px; font-size: clamp(28px, 3.15vw, 42px); line-height: 1.15; font-weight: 750; letter-spacing: -.045em; }
.app-tour-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.app-tour-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 25px;
  background: #ffffffb8;
  color: #675b78;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: color .2s, background .2s, box-shadow .2s;
}
.app-tour-tab:hover { background: var(--light); color: var(--purple); }
.app-tour-tab[aria-selected="true"] { background: var(--purple); color: white; box-shadow: 0 5px 15px #6600991a; }
.app-tour-tab:focus-visible { outline: 3px solid #aa6ad2; outline-offset: 4px; }
.app-tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1.03fr) minmax(0, .58fr);
  align-items: center;
  column-gap: 32px;
  min-height: 555px;
  padding-top: 24px;
}
.app-tour-panels { display: grid; min-width: 0; }
.app-tour-panel { grid-area: 1 / 1; min-width: 0; }
/* Reserva a altura do maior texto para que os celulares não mudem de posição. */
.app-tour-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.app-tour-panel:focus-visible { outline: 2px solid #ac75ca; outline-offset: -3px; border-radius: 16px; }
/* O celular define a altura da área; a folga acomoda sua rotação e sombra. */
.app-tour-primaryStage { position: relative; min-width: 0; padding: 14px 0 48px; }
.app-tour-phone {
  position: relative;
  padding: 5px;
  border: 1px solid #bdb8c6;
  border-radius: 38px;
  background: linear-gradient(115deg, #efedf1 0%, #8b8692 15%, #f7f6f9 50%, #7d7785 88%, #f2f0f5 100%);
  box-shadow: 0 20px 34px #33164a24, 0 3px 7px #2d18333b, inset 0 0 0 1px #f9f8fc;
}
.app-tour-primaryPhone { position: relative; left: 18px; width: 280px; transform: rotate(-3deg); }
.app-tour-phoneScreen { overflow: hidden; border: 5px solid #151019; border-radius: 31px; background: #fff; }
.app-tour-screenStack { position: relative; aspect-ratio: 1080 / 2340; overflow: hidden; }
.app-tour-screenStack .app-tour-screenshot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease-in-out; }
.app-tour-screenStack .app-tour-screenshot.is-current { opacity: 1; }
.app-tour-phoneNotch { position: absolute; z-index: 1; top: 10px; left: 50%; width: 36%; height: 16px; border-radius: 0 0 12px 12px; background: #151019; transform: translateX(-50%); }
.app-tour-secondaryStage { display: flex; justify-content: center; min-width: 0; padding-bottom: 38px; }
.app-tour-secondaryPhone { width: 100%; max-width: 188px; border-radius: 28px; transform: rotate(4deg); }
.app-tour-secondaryPhone .app-tour-phoneScreen { border-width: 3px; border-radius: 22px; }
.app-tour-secondaryPhone .app-tour-phoneNotch { top: 8px; height: 11px; border-radius: 0 0 8px 8px; }
.app-tour-floatingCard {
  position: absolute;
  z-index: 2;
  top: 180px;
  right: -4px;
  width: 266px;
  padding: 19px;
  border: 1px solid #f2eafb;
  border-radius: 18px;
  background: #fffffffa;
  box-shadow: 0 16px 34px #7b439526, 0 3px 9px #44225f08;
}
.app-tour-floatingCard[hidden] { display: none; }
.app-tour-cardEyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #6f627f; font-size: 11px; line-height: 1.4; }
.app-tour-cardSymbol { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 8px; background: #fce7f7; color: var(--magenta); }
.app-tour-cardSymbol svg { width: 17px; height: 17px; }
.app-tour-cardTitle { margin: 0 0 12px; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.app-tour-statusBadge { display: inline-block; padding: 5px 8px; border-radius: 7px; background: var(--light); color: var(--purple); font-size: 10px; line-height: 1.35; font-weight: 600; }
.app-tour-progressLabel { display: flex; justify-content: space-between; gap: 8px; margin-top: 17px; color: var(--muted); font-size: 10px; }
.app-tour-progressLabel strong { font-weight: 600; color: #6b5e79; }
.app-tour-progressTrack { overflow: hidden; height: 5px; margin-top: 7px; border-radius: 99px; background: #f0eaf5; }
.app-tour-progressTrack span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b0008d, #660099); }
.app-tour-cardFootnote { margin: 12px 0 0; color: #6f627f; font-size: 10px; }
.app-tour-questionBubble { margin: 0 0 9px 18px; padding: 10px; border: 1px solid #eee5f5; border-radius: 10px 10px 2px 10px; color: #73647f; font-size: 10px; line-height: 1.5; }
.app-tour-answerBubble { margin-right: 15px; padding: 12px; border-radius: 10px 10px 10px 2px; background: linear-gradient(120deg, #660099, #97089d); color: #fff; font-size: 10px; line-height: 1.6; }
.app-tour-signaturePreview { position: relative; display: flex; align-items: center; height: 74px; margin-bottom: 12px; padding: 8px 28px 8px 0; border-bottom: 1px solid #eadbf6; color: var(--purple); }
.app-tour-signaturePreview > svg { width: 100%; height: 60px; }
.app-tour-signatureCheck { position: absolute; right: 0; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--purple); color: #fff; }
.app-tour-signatureCheck svg { width: 20px; height: 20px; }
.app-tour-copy { min-width: 0; padding: 0 0 54px; }
.app-tour-panelTitle { margin: 0 0 29px; font-size: clamp(23px, 2vw, 28px); line-height: 1.3; letter-spacing: -.035em; font-weight: 700; white-space: pre-line; }
.app-tour-benefits { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.app-tour-benefit { display: flex; align-items: flex-start; gap: 12px; }
.app-tour-check { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; margin-top: 1px; border-radius: 50%; background: var(--purple); color: #fff; }
.app-tour-check svg { width: 20px; height: 20px; }
.app-tour-benefitTitle { margin: 0 0 5px; font-size: 15px; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; }
.app-tour-benefitText { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

@keyframes appTourCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: no-preference) {
  .app-tour-primaryStage .app-tour-floatingCard {
    animation: appTourCardFloat 4.5s ease-in-out infinite;
  }
}

@media (max-width: 1100px) {
  .app-tour-layout { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 36px; }
  .app-tour-secondaryStage { display: none; }
  .app-tour-floatingCard { right: -8px; }
  .app-tour-copy { padding-bottom: 42px; }
}

@media (max-width: 820px) {
  .app-tour-section { padding: 44px 22px 0; }
  .app-tour-layout { gap: 26px; min-height: 535px; }
  .app-tour-primaryPhone { width: 255px; left: 0; }
  .app-tour-floatingCard { top: 185px; right: -4px; width: 225px; padding: 15px; }
  .app-tour-panelTitle { font-size: 24px; }
  .app-tour-benefits { gap: 22px; }
  .app-tour-benefit { gap: 10px; }
}

@media (max-width: 640px) {
  .app-tour-section { padding: 36px 20px 0; }
  .app-tour-section::before { left: -100px; top: 400px; width: 360px; height: 360px; }
  .app-tour-heading { max-width: 330px; margin-bottom: 21px; font-size: 31px; }
  .app-tour-tabs { gap: 8px; }
  .app-tour-tab { min-height: 42px; padding: 10px 17px; font-size: 13px; }
  .app-tour-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 29px; min-height: 0; }
  .app-tour-panels { grid-row: 1; }
  .app-tour-copy { padding-bottom: 0; }
  .app-tour-panelTitle { margin-bottom: 23px; font-size: 25px; }
  .app-tour-benefits { gap: 19px; }
  .app-tour-benefitTitle { font-size: 14px; }
  .app-tour-benefitText { font-size: 13px; }
  .app-tour-primaryStage { justify-self: center; width: min(100%, 365px); height: auto; padding: 13px 0 40px; }
  .app-tour-primaryPhone { position: relative; top: auto; left: auto; width: 236px; margin: 0 auto; }
  .app-tour-floatingCard {
    top:auto;
    right:6px;
    bottom:58px;
    width:min(180px,58%);
    padding:12px;
    border-radius:14px;
  }
  .app-tour-cardEyebrow { gap:5px; margin-bottom:8px; font-size:8px; }
  .app-tour-cardSymbol { width:21px; height:21px; flex-basis:21px; border-radius:7px; }
  .app-tour-cardSymbol svg { width:14px; height:14px; }
  .app-tour-cardTitle { margin-bottom:8px; font-size:11px; line-height:1.32; }
  .app-tour-statusBadge { padding:4px 6px; font-size:8px; }
  .app-tour-cardFootnote { margin-top:8px; font-size:8px; line-height:1.5; }
  .app-tour-progressLabel { margin-top:10px; font-size:8px; }
  .app-tour-progressTrack { height:4px; margin-top:5px; }
  .app-tour-questionBubble { margin:0 0 6px 10px; padding:7px; font-size:8px; }
  .app-tour-answerBubble { margin-right:7px; padding:8px; font-size:8px; line-height:1.45; }
  .app-tour-signaturePreview { height:50px; margin-bottom:8px; padding-right:22px; }
  .app-tour-signaturePreview > svg { height:42px; }
  .app-tour-signatureCheck { width:22px; height:22px; }
  .app-tour-signatureCheck svg { width:16px; height:16px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-tour-screenStack .app-tour-screenshot { transition: none; }
  .app-tour-tab { transition: none; }
}

/* Integração com a landing page dedicada ao aplicativo. */
.app-tour-section{padding-top:58px;margin-top:0}
.app-tour-heading{margin-top:15px;margin-bottom:16px;font-size:clamp(32px,3.5vw,48px);font-weight:600}
.app-tour-intro{font-size:14px;color:var(--muted);max-width:610px;margin:0 0 25px;line-height:1.7}
.app-tour-tab{font-size:13px;padding:12px 24px}
.app-tour-cardFootnote{line-height:1.65}
.app-tour-phoneNotch{pointer-events:none}
.app-tour-phoneScreen:focus-within{outline:3px solid #a467d7;outline-offset:4px}
.app-tour-primaryStage .screen-zoom:focus-visible{outline-offset:-4px}
@media(max-width:700px){.app-tour-section{margin-top:0;padding-top:39px}.app-tour-heading{font-size:34px}.app-tour-intro{font-size:13px}.app-tour-tab{font-size:12px;padding:11px 16px}}
@media(max-width:380px){.app-tour-tabs{gap:7px}.app-tour-tab{font-size:11px;padding:10px 12px}.app-tour-panelTitle{font-size:23px}}

/* Cabeçalho centralizado da segunda seção. */
.app-tour-header{text-align:center}
.app-tour-heading,.app-tour-intro{margin-inline:auto}
.app-tour-tabs{justify-content:center}

/* Cabeçalho centralizado da seção de recursos. */
.resources .heading-split{
  display:block;
  max-width:780px;
  margin-inline:auto;
  text-align:center;
}
.resources .heading-split>p{
  max-width:620px;
  margin:20px auto 0;
}

/* Transição suave entre recursos e a seção do dia a dia. */
.scenarios{
  background:linear-gradient(
    to bottom,
    #ebebeb 0,
    #f3e5ff 150px,
    #f3e5ff calc(100% - 150px),
    #ebebeb 100%
  );
}

/* Mockup completo, sem sobreposição da legenda no rodapé do celular. */
.start-visual{
  height:auto;
  min-height:600px;
  padding:38px 24px 24px;
  gap:22px;
}
.start-phone{flex:none}
.start-caption{
  position:static;
  width:auto;
  padding:0;
  background:transparent;
  box-shadow:none;
}

@media(max-width:700px){
  .start-visual{
    height:auto;
    min-height:535px;
    padding:26px 20px 22px;
    gap:20px;
  }

  /* Cards em duas colunas na versão mobile. */
  .resources .resource-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:30px 0 0;
    padding:0;
    overflow:visible;
    scroll-snap-type:none;
    touch-action:auto;
  }
  .resources .resource-card{
    min-width:0;
    min-height:270px;
    padding:16px 12px;
    border-radius:16px;
    align-items:center;
    text-align:center;
  }
  .resources .resource-top{
    width:100%;
    gap:7px;
    flex-direction:column;
    align-items:center;
    font-size:9px;
    text-align:center;
  }
  .resources .resource-icon{
    width:34px;
    height:34px;
    align-self:center;
    border-radius:10px;
  }
  .resources .resource-icon svg{width:18px;height:18px}
  .resources .resource-card h3{
    margin-top:14px;
    font-size:16px;
    line-height:1.22;
  }
  .resources .resource-card>p{
    margin-top:8px;
    font-size:11px;
    line-height:1.55;
  }
  .resources .resource-card .text-link{
    gap:5px;
    padding-top:14px;
    font-size:9px;
  }
  .resources .resource-card .text-link svg{width:14px;height:14px}

  /* Seção de certificado mais compacta e legível no mobile. */
  .certificate{
    padding:28px 20px;
    gap:24px;
    text-align:center;
  }
  .certificate .eyebrow{text-align:center}
  .certificate-copy>p{
    max-width:300px;
    margin:16px auto 0;
    font-size:13px;
    line-height:1.65;
  }
  .certificate-point{
    flex-direction:column;
    align-items:center;
    gap:8px;
    margin-top:20px;
  }
  .certificate-point>span{padding:8px}
  .certificate-point h3{font-size:12px}
  .certificate-point p{font-size:11px}
  .certificate .button{
    width:100%;
    min-height:48px;
    margin-top:20px;
  }
  .certificate-copy>small{
    margin:12px auto 0;
    font-size:9px;
  }
  .certificate-visual{
    max-width:none;
    padding:20px 14px;
    border-radius:20px;
  }
  .certificate-cloud{margin-top:22px}
  .certificate-cloud svg{
    width:45px;
    height:45px;
    margin-bottom:10px;
  }
  .certificate-cloud strong{font-size:18px}
  .certificate-connection{margin:18px 20px 16px}
  .certificate-endpoints{gap:10px}
  .certificate-endpoints>div{padding:14px 6px}
  .diagram-footnote{margin-top:18px}

  /* FAQ compacta em formato de lista de aplicativo. */
  .faq{gap:18px}
  .faq .section-heading{
    max-width:320px;
    margin-inline:auto;
    text-align:center;
  }
  .faq .section-heading h2{margin-top:10px}
  .faq .section-heading>p{
    max-width:280px;
    margin:10px auto 0;
    font-size:12px;
  }
  .faq-list{
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:var(--light);
  }
  .faq-item:last-child{border-bottom:0}
  .faq-item summary{
    min-height:50px;
    padding:14px;
    gap:10px;
    font-size:11.5px;
    line-height:1.4;
  }
  .faq-item summary span{
    width:20px;
    height:20px;
    font-size:17px;
  }
  .faq-item>p{
    padding:0 14px 14px;
    font-size:11px;
    line-height:1.55;
  }

  /* Bloco de download compacto no mobile. */
  .download-section{
    padding:28px 16px;
    border-radius:22px;
  }
  .download-app-icon{
    padding:7px;
    margin-bottom:16px;
    border-radius:19px;
  }
  .download-app-icon img{
    width:56px;
    height:56px;
    border-radius:15px;
  }
  .download-section .eyebrow{font-size:9px}
  .download-section h2{
    margin-top:12px;
    font-size:27px;
    line-height:1.1;
  }
  .download-section>p{
    margin-top:12px;
    font-size:12px;
  }
  .download-section .store-links{
    gap:9px;
    margin-top:20px;
  }
  .download-section .google-play{
    width:132px;
    height:40px;
  }
  .download-section .google-play img{margin:-6px 0}
  .download-section .app-store{width:120px}
  .download-section>.download-note{
    margin-top:15px;
    font-size:9px;
    line-height:1.6;
  }

  /* Seção "Comece pelo app" compacta no mobile. */
  .getting-started{gap:24px}
  .start-steps{
    margin:24px 0 20px;
    gap:16px;
  }
  .start-steps li{gap:12px}
  .start-steps li>span{
    width:30px;
    height:30px;
  }
  .start-steps h3{font-size:13px}
  .start-steps p{
    margin-top:3px;
    font-size:11px;
    line-height:1.5;
  }
  .start-copy .text-link{font-size:12px}
  .start-visual{
    min-height:450px;
    padding:22px 16px 18px;
    gap:14px;
    border-radius:24px;
  }
  .start-phone{width:165px}
  .start-caption{
    font-size:11px;
    line-height:1.5;
  }
}

/* Tipografia dos títulos alinhada ao padrão usado na homepage. */
.hero h1,
.app-tour-heading,
.section-heading h2,
.certificate h2,
.start-copy h2,
.download-section h2{
  font-family:"Plus Jakarta Sans","Space Grotesk",Nunito,Inter,sans-serif;
  font-weight:500;
}

.hero h1{font-size:clamp(40px,4.25vw,60px)}

.hero-title-line,
.hero-title-accent{display:block}
.hero h1>.hero-title-line{color:inherit;white-space:nowrap}
.hero h1>.hero-title-accent{color:#f7cef0}
.hero-caption{
  bottom:6px;
  border-color:#d6afe8;
  background:var(--light);
}

/* Elevação 3D aplicada diretamente aos mockups da hero. */
.hero-visual{
  isolation:isolate;
  perspective:1100px;
}
.hero-phone{
  transform-style:preserve-3d;
  box-shadow:
    -5px 27px 42px #21043242,
    0 11px 19px #2b0b4333,
    0 3px 6px #16022138,
    inset 0 0 0 1px #ffffff82;
}
.hero-phone::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:5px -5px -7px 5px;
  border-radius:inherit;
  background:linear-gradient(145deg,#8f8298,#46364f 62%,#2b2031);
  box-shadow:4px 10px 16px #1902263d;
  transform:translateZ(-12px);
}
.hero-orbit{z-index:0}
.hero-phone-front{
  transform:rotateZ(-7deg) rotateY(4deg) translateZ(16px);
}
.hero-phone-back{
  z-index:1;
  transform:rotateZ(9deg) rotateY(-3deg) translateZ(6px);
}

@keyframes heroCaptionFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-9px)}
}

@media(prefers-reduced-motion:no-preference){
  .hero-caption{
    animation:heroCaptionFloat 4s ease-in-out infinite;
    will-change:transform;
  }
}

.app-tour-heading,
.section-heading h2,
.certificate h2,
.start-copy h2,
.download-section h2{
  font-size:clamp(30px,3.4vw,46px);
  line-height:1.22;
  letter-spacing:-.02em;
}

@media(max-width:700px){
  .hero h1{font-size:clamp(27px,8.4vw,45px)}
  .hero-phone-front{width:165px;left:12%}
  .hero-phone-back{width:146px;right:8%}
  .hero-caption{right:0}
  .app-tour-heading,
  .section-heading h2,
  .certificate h2,
  .start-copy h2,
  .download-section h2{
    font-size:clamp(27px,7.5vw,32px);
    line-height:1.12;
  }
}

@media(max-width:380px){
  .hero-phone-front{width:150px;left:6%}
  .hero-phone-back{width:134px;right:4%}
}
