/* =========================================================
   Versão mobile e tablet (até 1023px)
   Layout fluido próprio. Acima de 1024px vale o palco de 1920px.
   ========================================================= */
@media (max-width: 1023px) {

  /* ---------- Base ---------- */
  .site { width: 100%; zoom: 1; }
  .sec { width: 100%; height: auto !important; }
  .stage {
    width: 100%; max-width: 720px; height: auto; margin: 0 auto;
    padding: 0 20px; display: flex; flex-direction: column;
  }
  .stage > * { position: relative; left: auto !important; top: auto !important; width: auto; height: auto; }
  .bleed { left: 0; top: 0; bottom: 0; width: 100%; height: auto !important; transform: none; }

  .btn { height: 54px; padding: 0 28px; font-size: 16px; align-self: stretch; max-width: 380px; }
  .btn-arrow { width: 26px; height: 26px; }

  /* ---------- Menu ---------- */
  .s1-burger {
    position: fixed !important; top: 16px !important; left: auto !important; right: 16px; z-index: 60;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--azul); box-shadow: 0 6px 20px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .15);
  }
  .s1-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s ease, opacity .25s ease; }
  .menu-open .s1-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .s1-burger span:nth-child(2) { opacity: 0; }
  .menu-open .s1-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .s1-menu {
    position: fixed !important; left: 0 !important; top: 0 !important; right: 0; bottom: 0; z-index: 50;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
    padding: 96px 24px 48px; background: var(--azul);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
  }
  .menu-open .s1-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease; }
  .menu-open { overflow: hidden; }
  .s1-menu > * { position: relative; }
  .s1-nav { position: relative; left: auto; top: auto; width: auto; flex-direction: column; align-items: center; gap: 22px; font-size: 24px; }
  .s1-leitor { left: auto; top: auto; width: auto; height: auto; display: inline-flex; align-items: center; gap: 12px; }
  .s1-leitor img, .s1-leitor span { position: static; width: auto; }
  .s1-leitor img { width: 21.4204px; height: 23.4604px; }
  .s1-leitor span { font-size: 20px; line-height: 1.2; }
  .s1-cta { left: auto; top: auto; width: 100%; max-width: 320px; }
  .s1-cta .btn-txt { width: auto; }

  /* ---------- 1. Hero ---------- */
  .s1-bg { display: none; }
  .s1::before {
    content: ''; position: absolute; inset: 0; background: var(--azul);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 210px), 0 calc(100% - 120px));
  }
  .s1 .stage { padding-top: 22px; }
  .s1-logo { align-self: flex-start; }
  .s1-logo img { width: 168px; height: auto; }
  .s1-content { width: auto; margin-top: 44px; display: flex; flex-direction: column; }
  .s1-content h1 { font-size: clamp(29px, 7.6vw, 46px); line-height: 1.18; }
  .s1-content h1 br { display: none; }
  .s1-content p { width: auto; margin-top: 16px; font-size: 16px; line-height: 27px; }
  .s1-btn { margin-top: 28px; }
  .s1-livro { width: auto; height: auto; margin-top: 40px; align-self: center; }
  .s1-livro img { width: min(62vw, 300px); height: auto; }

  /* ---------- 2. Manifesto + vídeo ---------- */
  .s2 .stage { padding-top: 56px; padding-bottom: 64px; }
  .s2-title { width: auto; }
  .s2-title .t1 { font-size: clamp(32px, 9vw, 54px); line-height: 1.1; }
  .s2-title .t2 { font-size: clamp(21px, 5.6vw, 32px); line-height: 1.35; margin: 0 !important; }
  .s2-title .t2:nth-child(3) { margin-top: 14px !important; }
  .s2-text { width: auto; height: auto; margin-top: 28px; }
  .s2-text p { font-size: 16px; line-height: 28px; }
  .s2-video { width: 100%; height: auto; aspect-ratio: 815 / 527; margin-top: 36px; border-radius: 16px; order: 3; }
  .s2-shade { width: 100%; height: 53.5%; border-radius: 16px 16px 0 0; }
  .s2-yt { display: none; }
  .s2-play { left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; }
  .s2-play img { width: 68px; height: 48px; }

  /* ---------- 3. Capítulos ---------- */
  .s3 .stage { padding-top: 56px; padding-bottom: 64px; }
  .s3-title { width: auto; height: auto; }
  .s3-title h2 { font-size: clamp(25px, 6.6vw, 38px); line-height: 1.2; }
  .s3-sub { width: auto; height: auto; margin-top: 14px; font-size: 18px; line-height: 1.45; }
  .s3-cap { width: auto; height: auto; margin-top: 40px; align-self: flex-start; font-size: 26px; }
  .s3-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
  .s3-line { position: absolute !important; left: 38px !important; top: 0 !important; width: 12px; height: 100%; display: none; }
  .s3-list::before { content: ''; position: absolute; left: 18px; top: 10px; bottom: 10px; width: 12px; background: var(--ciano); }
  .s3-list { position: relative; }
  .s3-list li {
    position: relative; top: auto !important; left: auto; width: auto; height: auto; margin: 0;
    padding: 14px 16px; border-radius: 18px;
  }
  .s3-list li:hover { transform: none; }
  .s3-list p { white-space: normal; }
  .s3-list .h { padding-left: 0; font-size: 17px; line-height: 1.4; }
  .s3-list .d, .s3-list .d6 { padding-left: 0; margin-top: 4px; font-size: 15px; line-height: 1.5; }
  .s3-list .d6 b { font-size: 15px; line-height: 1.5; }
  .s3-list .c6 > div { transform: none; }
  .s3-pages { width: 100%; aspect-ratio: 594 / 470; margin-top: 44px; }
  .s3-pages .pg { height: auto; aspect-ratio: 1653 / 2480; }
  .s3-pages .pg1 { left: 0; top: 0; width: 51.84%; }
  .s3-pages .pg2 { left: 20.27%; top: 2.5%; width: 49.08%; }
  .s3-pages .pg3 { left: 39.07%; top: 4.84%; width: 46.71%; }
  .s3-pages .pg4 { left: 56.29%; top: 7.66%; width: 43.71%; }
  .s3-cta { margin-top: 36px; align-self: center; width: 100%; }

  /* ---------- 4. Área do aluno ---------- */
  .s4 { z-index: 2; }
  .s4 .stage {
    margin: 56px auto 0; width: calc(100% - 32px); padding: 40px 22px 44px;
    background: #fff; border-radius: 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
    align-items: center; text-align: center;
  }
  .s4-card { display: none; }
  .s4-icon { order: 1; }
  .s4-title { order: 2; width: auto; margin-top: 18px; }
  .s4-title .a { font-size: 21px; line-height: 1.4; }
  .s4-title .b { font-size: clamp(25px, 6.6vw, 34px); line-height: 1.25; }
  .s4-text { order: 3; width: auto; margin-top: 18px; font-size: 16px; line-height: 1.55; }
  .s4-check { margin-top: 32px; }
  .s4-check:nth-of-type(2) { order: 4; }
  .s4-check:nth-of-type(3) { order: 6; }
  .s4-check:nth-of-type(4) { order: 8; }
  .s4-col { width: auto; max-width: 340px; margin-top: 10px; transform: none; font-size: 17px; line-height: 1.55; }
  .s4-col:nth-of-type(3) { order: 5; }
  .s4-col:nth-of-type(4) { order: 7; }
  .s4-col:nth-of-type(5) { order: 9; }
  .s4-col p:not(.b) { display: inline; }
  .s4-col p:not(.b) + p::before { content: ' '; }

  /* ---------- 5. Autor ---------- */
  .s5 { margin-top: 64px; }
  .s5-bg { top: 0 !important; }
  .s5 .stage { padding-top: 56px; }
  .s5-kicker { order: 1; width: auto; height: auto; font-size: 20px; letter-spacing: 2px; }
  .s5-nome { order: 2; width: auto; height: auto; margin-top: 6px; font-size: clamp(30px, 8vw, 40px); line-height: 1.15; }
  .s5-text { order: 3; width: auto; margin-top: 22px; font-size: 16px; line-height: 27px; }
  .s5-foto { order: 4; width: 280px; height: 374px; margin-top: 36px; align-self: center; }
  .s5-tag { position: absolute !important; order: 5; left: calc(50% + 70px) !important; top: auto !important; bottom: 219px; width: 100px; height: auto; }

  /* ---------- 6. Para quem ---------- */
  .s6 .stage { padding-top: 56px; padding-bottom: 24px; }
  .s6-title { order: 1; width: auto; font-size: clamp(26px, 7vw, 38px); line-height: 1.2; }
  .s6-list { order: 2; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
  .s6-list li {
    position: relative; top: auto !important; left: auto; width: auto; height: auto;
    gap: 14px; padding: 14px 16px !important; align-items: flex-start;
  }
  .s6-list .ck { padding: 2px 0 0; }
  .s6-list .ck img { width: 26px; height: 26px; }
  .s6-list p { width: auto !important; font-size: 17px; line-height: 1.45; }
  .s6-pg { order: 3; width: 100%; height: auto; justify-content: flex-start; }
  .s6-pg1 { margin-top: 36px; padding-left: 4%; }
  .s6-pg2 { margin-top: -62%; padding-left: 38%; }
  .s6-pg .r, .s6-pg1 .r, .s6-pg2 .r { width: 50%; height: auto; aspect-ratio: 1653 / 2480; }
  .s6-pg2 { padding-bottom: 8%; }

  /* ---------- 7. CTA ---------- */
  .s7 .stage { padding: 24px 20px 0; }
  .s7-card { position: absolute !important; left: 16px !important; right: 16px; top: 120px !important; bottom: 0; width: auto; height: auto; border-radius: 28px; }
  .s7-art img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
  .s7-livro { order: 1; width: auto; height: auto; align-self: center; z-index: 1; }
  .s7-livro img { width: min(48vw, 230px); height: auto; }
  .s7-text { order: 2; width: auto; margin-top: 24px; padding: 0 12px; font-size: 17px; line-height: 1.5; }
  .s7-text .h { display: inline; font-size: clamp(26px, 7vw, 38px); line-height: 1.2; }
  .s7-text .h:first-child::after { content: ' '; }
  .s7-text .e { line-height: 14px; }
  .s7-btn { order: 3; margin: 28px 12px 40px; align-self: stretch; }

  /* ---------- Depoimentos ---------- */
  .s8 { margin-top: 64px; }
  .s8 .stage { max-width: none; padding: 56px 0 60px; }
  .s8-title { width: auto; padding: 0 20px; font-size: clamp(28px, 7.4vw, 36px); line-height: 1.25; }
  .deps {
    display: flex; gap: 16px; margin-top: 32px; padding: 6px 20px 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .deps::-webkit-scrollbar { display: none; }
  .deps { align-items: flex-start; }
  .dep { position: relative; flex: none; left: auto; top: auto; width: min(78vw, 330px); height: auto; padding: 16px 0 0 12px; scroll-snap-align: start; }
  .dep:hover { transform: none; }
  .dep > * { position: relative; }
  .dep-box { position: absolute; left: 12px; top: 16px; right: 0; bottom: 0; width: auto; height: auto; }
  .dep-foto { position: absolute; left: 0; top: 0; width: 112px; height: 112px; }
  .dep-foto-dark { width: 112px; height: 112px; }
  .dep-nome { position: absolute; left: 124px; top: 16px; width: auto; right: 12px; height: 96px; font-size: 19px; }
  .dep-txt { left: auto; top: auto; width: auto; margin-top: 108px; padding: 4px 22px 0; font-size: 14px; line-height: 1.6; max-height: calc(1.6em * 9 + 4px); }
  .dep-mais { position: relative; left: auto; top: auto !important; margin: 12px 22px 24px; }
  .dep, .dep-box { height: auto; }
  .dep:not(.is-clamped) .dep-txt { padding-bottom: 24px; }
  /* Sinais de rolagem lateral: peek do próximo card, bolinhas, dica e empurrãozinho */
  .deps-nav { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
  .deps-dots { display: flex; gap: 8px; }
  .deps-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
    background: rgba(24, 29, 55, .25); transition: width .3s ease, background .3s ease;
  }
  .deps-dots button.is-active { width: 26px; background: var(--azul); }
  .deps-hint { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 'Inter', sans-serif; color: var(--cinza); transition: opacity .4s ease; }
  .deps-hint svg { animation: depsHint 1.4s ease-in-out infinite; }
  .deps-nav.is-used .deps-hint { opacity: 0; }
  @keyframes depsHint { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
  .deps.nudge .dep { animation: depsNudge 1.1s cubic-bezier(.3, .6, .3, 1) .2s 1; }
  @keyframes depsNudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-56px); } 70% { transform: translateX(6px); } }

  /* ---------- Galeria ---------- */
  .s9 .stage { padding-top: 56px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: clamp(140px, 40vw, 280px); grid-auto-flow: dense; gap: 10px; }
  .s9-title { grid-column: 1 / -1; width: auto; margin-bottom: 18px; }
  .s9-title .a { font-size: clamp(28px, 7.4vw, 36px); line-height: 1.25; }
  .s9-title .b { font-size: clamp(19px, 5vw, 26px); line-height: 1.35; margin-top: 4px; }
  .gal { width: auto !important; height: auto !important; border-radius: 12px; }
  .gal img { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover; }
  .g1 { grid-column: 1 / -1; grid-row: span 2; }
  .g2 { grid-row: span 2; }
  .g2 img { object-position: 0 50%; }
  .g5 { grid-column: 1 / -1; }
  .g7 img { object-position: 50% 30%; }

  /* ---------- FAQ ---------- */
  .s10 .stage { padding: 64px 20px 64px; display: block; }
  .s10-title { width: auto; height: auto; margin: 0 0 24px; font-size: 38px; }
  .faq { width: auto; margin: 0; gap: 14px; }
  .faq-q { padding: 18px 56px 18px 20px; font-size: 17px; line-height: 23px; }
  .faq-item.is-open .faq-q { padding: 22px 56px 0 20px; }
  .faq-ico, .faq-item.is-open .faq-ico { left: auto; right: 20px; top: 10px; transform: none; }
  .faq-a p { width: auto; padding: 12px 20px 22px; font-size: 15px; line-height: 1.6; }

  /* ---------- Rodapé ---------- */
  .s11 .stage { padding: 44px 20px 36px; align-items: center; text-align: center; }
  .s11-logo { order: 1; }
  .s11-logo img { width: 200px; height: auto; }
  .s11-links { order: 2; width: auto; height: auto; margin-top: 28px; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 22px; line-height: 1.6; }
  .s11-links span { display: none; }
  .s11-copy { order: 3; width: auto; height: auto; margin-top: 24px; font-size: 14px; line-height: 22px; }
  .s11-cred { order: 4; width: auto; height: auto; margin-top: 22px; }
  .s11-natu { order: 5; margin-top: 2px; }
}

/* Tablet: um pouco mais de respiro */
@media (min-width: 640px) and (max-width: 1023px) {
  .stage { padding: 0 32px; }
  .s1 .stage { padding-top: 28px; }
  .s1-content p, .s2-text p, .s5-text { font-size: 18px; line-height: 30px; }
  .s3-list .h { font-size: 19px; }
  .s3-list .d, .s3-list .d6, .s3-list .d6 b { font-size: 16px; }
  .s4 .stage { padding: 52px 40px 56px; }
  .s6-list p { font-size: 19px; }
  .s7 .stage { padding: 24px 32px 0; }
}
