/**
 * Email page — mobile scroll stability + compact funnel layout.
 * Loaded after mobile-product.css and email-mobile-why.css.
 */
br.gt-mobile-br {
  display: none;
}

@media (max-width: 1024px) {
  br.gt-mobile-br {
    display: block !important;
    height: 0;
    line-height: 0;
    margin: 0;
    padding: 0;
  }

  .email-page .scale__title {
    line-height: 1.22;
  }

  .email-page .scale__title span {
    display: inline;
  }

  .email-page .faq__title {
    font-size: clamp(22px, 6.2vw, 28px) !important;
    line-height: 1.22;
  }

  .email-page .faq__visual {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 11vw;
    box-sizing: content-box;
    overflow: visible !important;
  }

  .email-page .faq__visual img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transform: scale(1.28) !important;
    transform-origin: center center;
  }

  .email-page .why__title {
    line-height: 1.22;
    width: calc(100% + 20px);
    max-width: none;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 2px;
    padding-right: 2px;
    box-sizing: border-box;
  }

  .email-page .why__title br {
    display: none !important;
  }

  .email-page .why__title .why-title__line {
    display: block !important;
    width: 100%;
    text-align: center;
  }

  .email-page .why__title .why-title__line:first-child {
    white-space: nowrap !important;
  }

  .email-page .why__title {
    margin-bottom: var(--gt-space-heading-gap) !important;
  }

  .email-page .why__lead,
  .email-page .why__lead.gt-words,
  .email-page .why__lead .gt-word {
    font-size: var(--gt-text-base) !important;
    line-height: 1.5 !important;
    letter-spacing: normal;
  }

  .email-page .why__lead {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: var(--gt-space-content-gap);
    text-align: center;
  }

  /* Benefits — tab 1 art matches other tabs; one clip radius on mobile */
  .email-page .benefits__visual,
  .email-page .benefits__visual-frame,
  .email-page #benefitsVisual {
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .email-page #benefitsVisual {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
  }

  .email-page.sms-page .scale-card:nth-child(3) .scale-card__media {
    padding: 8px 14px 8px 6px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .email-page.sms-page .scale-card:nth-child(3) .scale-card__media img {
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    height: auto !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .journey:not(.journey--scroll-stack) .journey-card,
  .scale-card,
  .scale-card.is-active,
  .scale-card__media,
  .scale-card__media img,
  .scale-card__copy,
  .why__cards,
  .why-card {
    will-change: auto !important;
    transition: none !important;
  }

  .gt-words .gt-word,
  [data-animate-words] .gt-word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .sms-page .funnel {
    min-height: 0 !important;
    height: auto !important;
  }

  .sms-page .funnel__panel {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .sms-page .funnel__list {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 16px 16px 8px !important;
    gap: 14px !important;
  }

  .sms-page .funnel__visual {
    flex: 0 0 auto !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100% !important;
    max-height: 200px !important;
    padding: 4px 12px 12px !important;
    overflow: hidden !important;
  }

  .sms-page .funnel__visual img {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 188px !important;
    object-fit: contain !important;
    object-position: center bottom !important;
  }
}

@media (max-width: 768px) {
  .sms-page .hero {
    min-height: 100svh;
    height: auto !important;
    max-height: none !important;
  }

  .sms-page .funnel__visual {
    max-height: 168px !important;
  }

  .sms-page .funnel__visual img {
    max-height: 156px !important;
  }

  /* Scale — card 3 (Rich Email Content): keep art inside inner band */
  .email-page.sms-page .scale-card:nth-child(3) .scale-card__media {
    padding: 8px 14px 8px 6px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .email-page.sms-page .scale-card:nth-child(3) .scale-card__media img {
    width: auto !important;
    max-width: 98% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    height: auto !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  @media (max-width: 480px) {
    .email-page .why__lead,
    .email-page .why__lead.gt-words,
    .email-page .why__lead .gt-word {
      font-size: 4.2vw !important;
      line-height: 1.5 !important;
    }
  }

  /*
   * Email journey phones (mobile only) — edit each card’s phone block below.
   * HTML: Card 1 OTP = .journey__phone--c | Card 2 Transactional = .journey__phone--a | Card 3 Marketing = .journey__phone--b
   * idle = list layout before pin; stack = pinned stack animation (.is-active = visible phone).
   */
  .email-page.sms-page .journey.journey--scroll-stack .journey__phone--a,
  .email-page.sms-page .journey.journey--scroll-stack .journey__phone--b,
  .email-page.sms-page .journey.journey--scroll-stack .journey__phone--c {
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transform-origin: left top !important;
    object-fit: contain !important;
    object-position: left top !important;
  }

  /* --- Card 1: OTP Authentication (.journey__phone--c) --- */
  .email-page.sms-page
    .journey.journey--scroll-stack.journey--stack-idle:not(.journey--mob-runway-reserved)
    .journey__phone--c.is-active {
    width: 100% !important;
    max-width: 100% !important;
    height: var(--journey-mob-phone-h, 280px) !important;
    max-height: var(--journey-mob-phone-h, 280px) !important;
    min-height: var(--journey-mob-phone-h, 280px) !important;
    top: 0 !important;
    left: 0 !important;
  }

  .email-page.sms-page
    .journey.journey--scroll-stack.journey--stack-idle.journey--mob-runway-reserved
    .journey__phone--c.is-active,
  .email-page.sms-page .journey.journey--scroll-stack:not(.journey--stack-idle) .journey__phone--c.is-active {
    width: 40% !important;
    max-width: 40% !important;
    height: var(--journey-mob-phone-h, 280px) !important;
    max-height: var(--journey-mob-phone-h, 280px) !important;
    min-height: var(--journey-mob-phone-h, 280px) !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* --- Card 2: Transactional Email (.journey__phone--a) --- */
  .email-page.sms-page
    .journey.journey--scroll-stack.journey--stack-idle:not(.journey--mob-runway-reserved)
    .journey__phone--a.is-active {
    width: 100% !important;
    max-width: 100% !important;
    height: var(--journey-mob-phone-h, 280px) !important;
    max-height: var(--journey-mob-phone-h, 280px) !important;
    min-height: var(--journey-mob-phone-h, 280px) !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* Stack: beats mobile-product :has() + @768 .sms-page max-height caps on img */
  .email-page.sms-page
    .journey.journey--scroll-stack.journey--stack-idle.journey--mob-runway-reserved
    .journey__body:has(.journey__phone--a) .journey__phone--a.is-active,
  .email-page.sms-page .journey.journey--scroll-stack:not(.journey--stack-idle)
    .journey__body:has(.journey__phone--a) .journey__phone--a.is-active {
    width: 94% !important;
    max-width: 59% !important;
    height: calc(var(--journey-mob-phone-h, 280px) + 60px) !important;
    max-height: calc(var(--journey-mob-phone-h, 280px) + 60px) !important;
    min-height: calc(var(--journey-mob-phone-h, 280px) + 60px) !important;
    top: -28px !important;
    left: -38px !important;
  }

  /* --- Card 3: Marketing Email (.journey__phone--b) --- */
  .email-page.sms-page
    .journey.journey--scroll-stack.journey--stack-idle:not(.journey--mob-runway-reserved)
    .journey__phone--b.is-active {
    width: 100% !important;
    max-width: 100% !important;
    height: var(--journey-mob-phone-h, 280px) !important;
    max-height: var(--journey-mob-phone-h, 280px) !important;
    min-height: var(--journey-mob-phone-h, 280px) !important;
    top: 0 !important;
    left: 0 !important;
    object-position: -21px 22px !important;
  }

  .email-page.sms-page
    .journey.journey--scroll-stack.journey--stack-idle.journey--mob-runway-reserved
    .journey__body:has(.journey__phone--b) .journey__phone--b.is-active,
  .email-page.sms-page .journey.journey--scroll-stack:not(.journey--stack-idle)
    .journey__body:has(.journey__phone--b) .journey__phone--b.is-active {
    width: 52% !important;
    max-width: 52% !important;
    height: calc(var(--journey-mob-phone-h, 280px) + 56px) !important;
    max-height: calc(var(--journey-mob-phone-h, 280px) + 56px) !important;
    min-height: calc(var(--journey-mob-phone-h, 280px) + 56px) !important;
    top: -28px !important;
    left: -4px !important;
    object-position: -21px 22px !important;
  }

  .email-page.sms-page
    .journey.journey--scroll-stack.journey--stack-idle.journey--mob-runway-reserved
    .journey__body,
  .email-page.sms-page .journey.journey--scroll-stack:not(.journey--stack-idle) .journey__body {
    min-height: max(
      var(--journey-mob-shell-h, var(--journey-mob-phone-h, 280px)),
      calc(var(--journey-mob-phone-h, 280px) + 60px)
    ) !important;
    overflow: visible !important;
  }

  .email-page .benefit:nth-child(2) h3 br.gt-mobile-br,
  .email-page .benefit:nth-child(3) h3 br.gt-mobile-br,
  .email-page .benefit:nth-child(4) h3 br.gt-mobile-br {
    display: none !important;
  }

  .email-page .benefit:nth-child(2) h3,
  .email-page .benefit:nth-child(3) h3,
  .email-page .benefit:nth-child(4) h3 {
    line-height: 1.22 !important;
    margin-bottom: 6px !important;
  }

  .email-page .benefit:nth-child(2) h3 .benefit-title__line,
  .email-page .benefit:nth-child(3) h3 .benefit-title__line,
  .email-page .benefit:nth-child(4) h3 .benefit-title__line {
    display: block !important;
    white-space: nowrap !important;
    line-height: 1.22 !important;
  }
}
