/*
 * Candidata opt-in do Hero responsivo.
 * Nenhuma regra atua sem ?hero-responsive=1 e o desktop >= 1366px permanece
 * exatamente sob as regras aprovadas do styles.css.
 */

html.hero-responsive-lab.coherence-lab body::before {
  content: "TESTE \00b7  HERO RESPONSIVO";
}

/* Telefone: primeiro ato comercial, depois prova social no mesmo fundo. */
@media (max-width: 767px) {
  html.hero-responsive-lab #hero.hero-v4 {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: clip;
  }

  html.hero-responsive-lab #hero .hero2-stage {
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  html.hero-responsive-lab #hero .hero2-bg,
  html.hero-responsive-lab #hero .hero2-texture {
    width: 100%;
    height: 100%;
    object-position: 42% center;
  }

  html.hero-responsive-lab #hero .hero2-texture {
    opacity: .16;
  }

  html.hero-responsive-lab #hero .hero2-stage::after {
    z-index: 3;
    background:
      linear-gradient(90deg, rgba(32, 4, 8, .68) 0%, rgba(24, 4, 7, .32) 58%, rgba(8, 3, 3, .04) 100%),
      linear-gradient(180deg, rgba(10, 3, 4, .02) 0%, rgba(17, 4, 6, .08) 24%, rgba(10, 3, 4, .58) 40%, rgba(8, 3, 3, .08) 72%, rgba(8, 3, 3, .22) 100%),
      radial-gradient(circle at 92% 5%, rgba(255, 164, 52, .18), transparent 25%);
  }

  html.hero-responsive-lab #hero .hero2-singer {
    z-index: 2;
    top: -14px;
    right: -20vw;
    left: auto;
    width: min(91vw, 374px);
    max-width: none;
    opacity: .98;
    filter: saturate(1.03) contrast(1.03) drop-shadow(-14px 20px 40px rgba(0, 0, 0, .30));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  }

  html.hero-responsive-lab #hero .hero2-arcs {
    z-index: 4;
    left: -68%;
    width: 180%;
    opacity: .38;
  }

  /* O arco principal cruzava o canto inferior esquerdo do card e parecia uma
     falha na borda. Os demais fios dourados preservam o movimento do Hero. */
  html.hero-responsive-lab #hero .hero2-arcs path:first-child {
    display: none;
  }

  html.hero-responsive-lab #hero .hero2-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 22px 14px 42px;
    box-sizing: border-box;
  }

  html.hero-responsive-lab #hero .hero2-brand {
    position: relative;
    z-index: 7;
    top: auto;
    left: auto;
    order: 1;
    width: clamp(118px, 34vw, 145px);
    filter: brightness(1.16) saturate(1.16) contrast(1.04);
  }

  html.hero-responsive-lab #hero .hero2-copy {
    position: relative;
    z-index: 7;
    top: auto;
    left: auto;
    order: 2;
    width: 100%;
    margin-top: clamp(164px, 44vw, 194px);
  }

  html.hero-responsive-lab #hero .hero-v4 h1 {
    max-width: none;
    font-size: clamp(55px, 15.6vw, 67px);
    line-height: .88;
    letter-spacing: -.058em;
    text-wrap: balance;
  }

  html.hero-responsive-lab #hero .hero2-kicker {
    max-width: 360px;
    margin-top: 25px;
    padding-left: 40px;
    font-size: clamp(10px, 2.75vw, 11.5px);
    font-weight: 720;
    line-height: 1.58;
    letter-spacing: .16em;
  }

  html.hero-responsive-lab #hero .hero2-kicker::before {
    left: 0;
    width: 26px;
  }

  html.hero-responsive-lab #hero .hero2-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    width: 100%;
    max-width: none;
    margin-top: 29px;
  }

  html.hero-responsive-lab #hero .hero2-button-primary,
  html.hero-responsive-lab #hero .hero2-button-secondary {
    width: 100%;
    min-height: 57px;
    font-size: 12.5px;
  }

  html.hero-responsive-lab #hero .hero2-testimonial {
    position: relative;
    z-index: 7;
    top: auto;
    right: auto;
    order: 3;
    display: grid;
    width: 100%;
    min-height: 0;
    margin-top: 29px;
    padding: 16px 15px 16px 18px;
    grid-template-columns: minmax(0, 1fr) clamp(66px, 20vw, 82px);
    gap: 12px;
    box-sizing: border-box;
    transform: none;
    border-color: rgba(225, 162, 65, .42);
    background:
      radial-gradient(circle at 10% 0%, rgba(149, 32, 37, .19), transparent 44%),
      linear-gradient(135deg, rgba(28, 5, 7, .72), rgba(8, 2, 3, .48));
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
    backdrop-filter: blur(8px) saturate(1.08);
  }

  html.hero-responsive-lab #hero .hero2-testimonial > img {
    height: clamp(82px, 24vw, 100px);
  }

  html.hero-responsive-lab #hero .hero2-testimonial p:first-child {
    margin-bottom: 8px;
    font-size: 9.5px;
  }

  html.hero-responsive-lab #hero .hero2-testimonial p:nth-child(2) {
    max-width: none;
    font-size: clamp(14.5px, 4vw, 17px);
    line-height: 1.34;
  }

  html.hero-responsive-lab #hero .hero2-testimonial p:nth-child(3),
  html.hero-responsive-lab #hero .hero2-testimonial p + p + p {
    margin-top: 8px;
    font-size: 10.5px;
  }

  html.hero-responsive-lab #hero .hero2-proof-row {
    position: relative;
    z-index: 7;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    order: 4;
    display: grid;
    width: 100%;
    margin-top: 31px;
    grid-template-columns: 1fr;
    gap: 27px;
  }

  html.hero-responsive-lab #hero .hero2-trust {
    min-height: 0;
    padding-left: 18px;
  }

  html.hero-responsive-lab #hero .hero2-trust p {
    font-size: 14.5px;
    line-height: 1.44;
  }

  html.hero-responsive-lab #hero .hero2-trust p:first-child {
    margin-top: 3px;
    font-size: 11px;
  }

  html.hero-responsive-lab #hero .hero2-trust-rule {
    width: min(100%, 240px);
  }

  html.hero-responsive-lab #hero .hero2-logos {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(226, 176, 79, .60);
  }

  html.hero-responsive-lab #hero .hero2-logos li {
    min-width: 0;
    min-height: 92px;
    padding: 8px 10px;
    grid-template-rows: 22px 1fr;
    border-bottom: 1px solid rgba(226, 176, 79, .30);
    box-sizing: border-box;
  }

  html.hero-responsive-lab #hero .hero2-logos li:nth-child(2),
  html.hero-responsive-lab #hero .hero2-logos li:nth-child(4) {
    border-right: 1px solid rgba(226, 176, 79, .60);
  }

  html.hero-responsive-lab #hero .hero2-logos span {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(15px, 4.4vw, 18px);
    text-overflow: ellipsis;
  }

  html.hero-responsive-lab #hero .hero2-logos img,
  html.hero-responsive-lab #hero .hero2-logos .alconpat-mark {
    width: auto;
    max-width: 84px;
    height: auto;
    max-height: 50px;
  }

  html.hero-responsive-lab #hero .hero2-status {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    order: 5;
    margin-top: 14px;
  }
}

/* Telefone largo / tablet pequeno: usa melhor a largura sem antecipar o tablet. */
@media (min-width: 560px) and (max-width: 767px) {
  html.hero-responsive-lab #hero .hero2-singer {
    right: -5vw;
    width: min(62vw, 460px);
  }

  html.hero-responsive-lab #hero .hero2-brand {
    width: clamp(150px, 24vw, 174px);
  }

  html.hero-responsive-lab #hero .hero2-copy {
    margin-top: clamp(150px, 24vw, 184px);
  }

  html.hero-responsive-lab #hero .hero-v4 h1 {
    font-size: clamp(72px, 10.5vw, 82px);
  }

  html.hero-responsive-lab #hero .hero2-kicker {
    max-width: 500px;
    font-size: clamp(11px, 1.75vw, 13px);
  }

  html.hero-responsive-lab #hero .hero2-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.hero-responsive-lab #hero .hero2-proof-row {
    align-items: end;
    grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
    gap: 24px;
  }
}

/* Tablet retrato: composicao editorial em um palco, sem herdar o desktop. */
@media (min-width: 768px) and (max-width: 1099px) {
  html.hero-responsive-lab #hero.hero-v4 {
    width: 100%;
    height: auto;
    min-height: max(100svh, 980px);
    margin: 0;
    overflow: clip;
  }

  html.hero-responsive-lab #hero .hero2-stage,
  html.hero-responsive-lab #hero .hero2-shell {
    width: 100%;
    height: 100%;
    min-height: max(100svh, 980px);
  }

  html.hero-responsive-lab #hero .hero2-stage::after {
    z-index: 3;
    background:
      linear-gradient(90deg, rgba(41, 5, 10, .55) 0%, rgba(24, 4, 7, .16) 58%, rgba(8, 3, 3, 0) 100%),
      linear-gradient(180deg, transparent 54%, rgba(8, 3, 3, .22) 100%),
      radial-gradient(circle at 91% 5%, rgba(255, 164, 52, .20), transparent 25%);
  }

  html.hero-responsive-lab #hero .hero2-singer {
    z-index: 2;
    top: -2.5vw;
    right: -3vw;
    left: auto;
    width: clamp(450px, 59vw, 620px);
    opacity: 1;
    filter: saturate(1.05) contrast(1.03) drop-shadow(-16px 24px 48px rgba(0, 0, 0, .30));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  }

  html.hero-responsive-lab #hero .hero2-arcs {
    z-index: 4;
    opacity: .46;
  }

  html.hero-responsive-lab #hero .hero2-brand {
    z-index: 7;
    top: clamp(38px, 4.5svh, 62px);
    left: 5.5%;
    width: clamp(165px, 22vw, 220px);
  }

  html.hero-responsive-lab #hero .hero2-copy {
    z-index: 7;
    top: clamp(182px, 19svh, 270px);
    left: 5.5%;
    width: 59%;
  }

  html.hero-responsive-lab #hero .hero-v4 h1 {
    max-width: 540px;
    font-size: clamp(80px, 9.7vw, 100px);
    line-height: .88;
  }

  html.hero-responsive-lab #hero .hero2-kicker {
    max-width: 520px;
    margin-top: clamp(25px, 2.7svh, 34px);
    padding-left: 42px;
    font-size: clamp(11px, 1.45vw, 15px);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: .16em;
  }

  html.hero-responsive-lab #hero .hero2-kicker::before {
    left: 0;
    width: 29px;
  }

  html.hero-responsive-lab #hero .hero2-actions {
    gap: 14px;
    margin-top: clamp(27px, 3svh, 38px);
  }

  html.hero-responsive-lab #hero .hero2-button-primary,
  html.hero-responsive-lab #hero .hero2-button-secondary {
    width: clamp(185px, 25vw, 250px);
    min-height: 57px;
    font-size: clamp(10.5px, 1.3vw, 13px);
    padding-right: 42px;
    padding-left: 42px;
  }

  html.hero-responsive-lab #hero .hero2-testimonial {
    z-index: 7;
    top: clamp(640px, 63svh, 900px);
    right: 5.5%;
    display: grid;
    width: clamp(310px, 40vw, 395px);
    min-height: 0;
    padding: 16px 17px 16px 20px;
    grid-template-columns: minmax(0, 1fr) clamp(68px, 9vw, 88px);
    gap: 13px;
    transform: none;
    box-sizing: border-box;
  }

  html.hero-responsive-lab #hero .hero2-testimonial > img {
    height: clamp(84px, 11vw, 108px);
  }

  html.hero-responsive-lab #hero .hero2-testimonial p:nth-child(2) {
    font-size: clamp(14.5px, 1.85vw, 18px);
  }

  html.hero-responsive-lab #hero .hero2-testimonial p:nth-child(3) {
    font-size: clamp(10.5px, 1.25vw, 12.5px);
  }

  html.hero-responsive-lab #hero .hero2-proof-row {
    z-index: 7;
    right: 5.5%;
    bottom: clamp(34px, 4svh, 56px);
    left: 5.5%;
    width: auto;
    grid-template-columns: clamp(220px, 30vw, 300px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 34px);
  }

  html.hero-responsive-lab #hero .hero2-trust {
    min-height: 145px;
    padding-left: 20px;
  }

  html.hero-responsive-lab #hero .hero2-trust p {
    font-size: clamp(13px, 1.65vw, 16px);
  }

  html.hero-responsive-lab #hero .hero2-logos {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(226, 176, 79, .60);
  }

  html.hero-responsive-lab #hero .hero2-logos li {
    min-width: 0;
    min-height: 76px;
    padding: 6px 8px;
    grid-template-rows: 20px 1fr;
    border-bottom: 1px solid rgba(226, 176, 79, .30);
    box-sizing: border-box;
  }

  html.hero-responsive-lab #hero .hero2-logos li:nth-child(2),
  html.hero-responsive-lab #hero .hero2-logos li:nth-child(4) {
    border-right: 1px solid rgba(226, 176, 79, .60);
  }

  html.hero-responsive-lab #hero .hero2-logos span {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(14px, 1.85vw, 18px);
    text-overflow: ellipsis;
  }

  html.hero-responsive-lab #hero .hero2-logos img,
  html.hero-responsive-lab #hero .hero2-logos .alconpat-mark {
    width: auto;
    max-width: 80px;
    height: auto;
    max-height: 46px;
  }

  html.hero-responsive-lab #hero .hero2-status {
    right: 5.5%;
    bottom: 10px;
    left: 5.5%;
  }
}

@media (min-width: 768px) and (max-width: 1099px) and (orientation: landscape) {
  html.hero-responsive-lab #hero.hero-v4,
  html.hero-responsive-lab #hero .hero2-stage,
  html.hero-responsive-lab #hero .hero2-shell {
    min-height: max(100svh, 800px);
  }

  html.hero-responsive-lab #hero .hero2-brand {
    top: 32px;
    left: 5.5%;
    width: clamp(160px, 18vw, 190px);
  }

  html.hero-responsive-lab #hero .hero2-singer {
    top: -3%;
    right: -1%;
    width: clamp(420px, 53vw, 570px);
  }

  html.hero-responsive-lab #hero .hero2-copy {
    top: 130px;
    left: 5.5%;
    width: 55%;
  }

  html.hero-responsive-lab #hero .hero-v4 h1 {
    font-size: clamp(68px, 7.5vw, 82px);
  }

  html.hero-responsive-lab #hero .hero2-kicker {
    margin-top: 18px;
    font-size: clamp(10.5px, 1.2vw, 13px);
  }

  html.hero-responsive-lab #hero .hero2-actions {
    margin-top: 20px;
  }

  html.hero-responsive-lab #hero .hero2-button-primary,
  html.hero-responsive-lab #hero .hero2-button-secondary {
    width: clamp(185px, 23vw, 250px);
    min-height: 54px;
  }

  html.hero-responsive-lab #hero .hero2-testimonial {
    top: 435px;
    width: clamp(300px, 36vw, 390px);
  }

  html.hero-responsive-lab #hero .hero2-proof-row {
    right: 5.5%;
    bottom: 24px;
    left: 5.5%;
    grid-template-columns: clamp(210px, 27vw, 285px) minmax(0, 1fr);
    gap: 22px;
  }
}

/* Notebook compacto: conserva o palco desktop, mas recompõe a prova social. */
@media (min-width: 1100px) and (max-width: 1365px) {
  html.hero-responsive-lab #hero .hero2-copy {
    top: 20.5%;
    width: 42%;
  }

  html.hero-responsive-lab #hero .hero-v4 h1 {
    font-size: clamp(76px, 7vw, 90px);
  }

  html.hero-responsive-lab #hero .hero2-kicker {
    margin-top: clamp(20px, 2.6svh, 28px);
    font-size: clamp(11.5px, 1.15vw, 15px);
    line-height: 1.48;
  }

  html.hero-responsive-lab #hero .hero2-actions {
    gap: 12px;
    margin-top: clamp(24px, 3.4svh, 31px);
  }

  html.hero-responsive-lab #hero .hero2-button-primary,
  html.hero-responsive-lab #hero .hero2-button-secondary {
    width: clamp(218px, 18vw, 246px);
    min-height: 54px;
  }

  html.hero-responsive-lab #hero .hero2-testimonial {
    top: 55%;
    right: 2.7%;
    width: clamp(318px, 27vw, 350px);
    min-height: 0;
    padding: 14px 15px 14px 18px;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 11px;
    transform: none;
  }

  html.hero-responsive-lab #hero .hero2-testimonial > img {
    height: 82px;
  }

  html.hero-responsive-lab #hero .hero2-testimonial p:first-child {
    margin-bottom: 7px;
    font-size: 9px;
  }

  html.hero-responsive-lab #hero .hero2-testimonial p:nth-child(2) {
    font-size: 14px;
  }

  html.hero-responsive-lab #hero .hero2-testimonial p:nth-child(3),
  html.hero-responsive-lab #hero .hero2-testimonial p + p + p {
    margin-top: 7px;
    font-size: 9.5px;
  }

  html.hero-responsive-lab #hero .hero2-proof-row {
    right: 3%;
    bottom: 4%;
    left: 52%;
    grid-template-columns: clamp(190px, 17vw, 224px) minmax(0, 1fr);
    gap: 14px;
  }

  html.hero-responsive-lab #hero .hero2-trust {
    min-height: 0;
    padding-left: 18px;
  }

  html.hero-responsive-lab #hero .hero2-trust p {
    font-size: 13px;
    line-height: 1.34;
  }

  html.hero-responsive-lab #hero .hero2-trust p:first-child {
    margin: 3px 0 9px;
    font-size: 10px;
  }

  html.hero-responsive-lab #hero .hero2-trust-rule {
    width: min(100%, 190px);
    margin: 9px 0;
  }

  html.hero-responsive-lab #hero .hero2-logos {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(226, 176, 79, .60);
  }

  html.hero-responsive-lab #hero .hero2-logos li {
    min-width: 0;
    min-height: 57px;
    padding: 4px 7px;
    grid-template-rows: 17px 1fr;
    border-bottom: 1px solid rgba(226, 176, 79, .30);
    box-sizing: border-box;
  }

  html.hero-responsive-lab #hero .hero2-logos li:nth-child(2),
  html.hero-responsive-lab #hero .hero2-logos li:nth-child(4) {
    border-right: 1px solid rgba(226, 176, 79, .60);
  }

  html.hero-responsive-lab #hero .hero2-logos span {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(12px, 1.15vw, 14px);
    text-overflow: ellipsis;
  }

  html.hero-responsive-lab #hero .hero2-logos img,
  html.hero-responsive-lab #hero .hero2-logos .alconpat-mark {
    width: auto;
    max-width: 62px;
    height: auto;
    max-height: 36px;
  }
}

@media print {
  html.hero-responsive-lab.coherence-lab body::before {
    display: none;
  }
}
