/* Adjustments for the phone layout. */
.daily-portrait__note {
  display: none;
}

@media (max-width: 540px) {
  /* Separate rows keep both ribbon messages readable at every phone width. */
  .campaign-page .campaign-ribbons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    height: auto;
    padding-block: 20px;
    overflow: hidden;
  }

  .campaign-page .campaign-ribbon {
    position: relative;
    left: auto;
    top: auto;
    width: 116%;
    height: 44px;
    margin-inline: -8%;
  }

  .campaign-page .campaign-ribbon--orange {
    transform: rotate(2.5deg);
  }

  .campaign-page .campaign-ribbon--blue {
    transform: rotate(-2.5deg);
  }

  .campaign-page .daily-portrait__note {
    display: block;
    position: absolute;
    z-index: 1;
    left: 22px;
    top: 50%;
    width: 43%;
    max-width: 175px;
    margin: 0;
    transform: translateY(-50%) rotate(-3deg);
    font-size: clamp(20px, 6vw, 25px);
    line-height: 1.25;
    color: #486c88;
  }

  .campaign-page .daily-portrait__note strong {
    font-weight: 600;
  }

  /* Matching halves of one soft wash connect the glass and the method. */
  .campaign-page #o-que-voce-carrega {
    background-color: #fff;
    background-image: radial-gradient(
      ellipse 110% 280px at 50% 100%,
      rgb(220 236 248 / .9) 0%,
      rgb(234 244 251 / .65) 48%,
      transparent 90%
    );
  }

  .campaign-page #funcionamento {
    background-color: #fff;
    background-image: radial-gradient(
      ellipse 110% 280px at 50% 0%,
      rgb(220 236 248 / .9) 0%,
      rgb(234 244 251 / .65) 48%,
      transparent 90%
    );
  }

  .campaign-page .overflow-layout:has(.overflow-glass--tize) {
    padding-bottom: 8px;
  }

  .campaign-page .method-section {
    padding-top: 8px;
  }

  .campaign-page .method-line {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, 48px);
    width: 100%;
    gap: 32px 0;
    font-size: clamp(34px, 10vw, 42px);
    font-weight: 750;
    line-height: 1.1;
    margin: 0 0 32px;
  }

  .campaign-page .method-line > span {
    grid-column: 1;
    min-width: 0;
    white-space: nowrap;
  }

  .campaign-page .method-line > span:nth-of-type(1) {
    grid-row: 1;
    justify-self: start;
  }

  .campaign-page .method-line > span:nth-of-type(2) {
    grid-row: 2;
    justify-self: center;
  }

  .campaign-page .method-line > span:nth-of-type(3) {
    grid-row: 3;
    justify-self: end;
  }

  .campaign-page .method-line > b {
    position: absolute;
    display: block;
    width: clamp(40px, 12vw, 52px);
    height: 24px;
    font-size: 0;
    opacity: .58;
    pointer-events: none;
  }

  .campaign-page .method-line > b:first-of-type {
    top: 46px;
    left: clamp(33px, 11vw, 46px);
  }

  .campaign-page .method-line > b:last-of-type {
    top: 126px;
    left: calc(50% - 5px);
  }

  .campaign-page .method-line > b::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask-image: url('../assets/icons/method-curve-arrow.svg');
    mask-image: url('../assets/icons/method-curve-arrow.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .campaign-page .method-line > b::after {
    content: none;
  }

  .campaign-page .method-grid .app-tour__label {
    font-size: clamp(24px, 7.2vw, 29px);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 10px;
  }
}
