/* ============================================================
   EVOLION — Mobile layout (≤1024px)
   Desktop .page-viewport stays unchanged above this breakpoint.
   ============================================================ */

.mobile-page {
  display: none;
}

@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .page-viewport {
    display: none !important;
  }

  .mobile-page {
    display: block !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg-dark);
    color: white;
    padding-top: calc(60px + env(safe-area-inset-top, 0px));
  }

  .m-section {
    padding: clamp(36px, 8vw, 48px) clamp(16px, 4vw, 20px);
    position: relative;
    max-width: 100%;
    overflow-x: hidden;
  }

  .m-section--light {
    background: var(--bg-light);
    color: var(--dark);
  }

  #benefits.m-section--light {
    border-top: 2px solid #050505;
    padding-bottom: clamp(20px, 4vw, 28px);
  }

  .m-section--gold {
    background: linear-gradient(184deg, var(--gold-dark) 0%, #43341E 100%);
    color: white;
  }

  .m-section--dark {
    background: linear-gradient(182deg, var(--bg-dark) 36%, #6B6B6B 89%);
    color: white;
  }

  .m-tagline {
    color: var(--gold-dark);
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
  }

  .m-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 10vw, 64px);
    line-height: 1;
    text-shadow: 1px 3px 4px rgba(0, 0, 0, 1);
    text-align: center;
    word-break: break-word;
  }

  .m-title--section {
    font-size: clamp(28px, 8vw, 48px);
    line-height: 1.05;
  }

  .m-title--section-lg {
    font-size: clamp(32px, 9vw, 52px);
    line-height: 1.05;
  }

  .m-title--white { color: white; }
  .m-title--gold { color: var(--gold); }

  .m-subtitle {
    font-family: Poppins, sans-serif;
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    text-shadow: 1px 3px 4px rgba(0, 0, 0, 1);
  }

  .m-kicker {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--gold);
    text-align: center;
    margin: 20px 0 8px;
  }

  .m-body {
    font-family: Montserrat, sans-serif;
    font-size: clamp(14px, 3.8vw, 15px);
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    max-width: min(520px, 100%);
    margin: 0 auto;
    padding: 0 4px;
  }

  .m-body--left { text-align: left; }

  .m-hero {
    --m-hero-bg-height: min(calc(100dvh - 60px - env(safe-area-inset-top, 0px)), 680px);
    padding: clamp(24px, 6vw, 40px) clamp(20px, 5vw, 28px) clamp(32px, 6vw, 40px);
    background: black;
    overflow: hidden;
    min-height: auto;
  }

  .m-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--m-hero-bg-height);
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.35) 55%,
      rgba(0, 0, 0, 0.88) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .m-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--m-hero-bg-height);
    object-fit: cover;
    object-position: center 42%;
    opacity: 0.85;
    z-index: 0;
  }

  .m-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(520px, 100%);
    margin: 0 auto;
    text-align: center;
  }

  .m-hero__content .m-title {
    width: 100%;
    align-self: center;
  }

  .m-hero__content .m-tagline,
  .m-hero__content .m-subtitle,
  .m-hero__content .m-kicker,
  .m-hero__content .m-body {
    width: 100%;
  }

  .m-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 28px auto 0;
  }

  .m-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 3px;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }

  .m-btn--gold {
    background: var(--gold-dark);
    color: white;
  }

  .m-btn--outline {
    background: transparent;
    color: white;
    border: 1px solid var(--gold-dark);
  }

  .m-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .m-feature {
    text-align: center;
  }

  .m-feature .material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-size: 32px;
    color: #C2914C;
    display: block;
    margin-bottom: 6px;
  }

  .m-feature__label {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    color: white;
    display: block;
  }

  .m-banner {
    padding: 20px;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
  }

  .m-banner--gold {
    background: rgba(200, 169, 106, 0.5);
    color: white;
  }

  .m-banner--gradient {
    background: linear-gradient(180deg, rgba(244, 244, 242, 0.5) 0%, rgba(5, 5, 5, 0.5) 95%);
    color: white;
    padding: 12px 16px;
    font-size: 14px;
  }

  .m-banner--light {
    background: #F4F4F2;
    color: var(--dark);
    text-align: left;
    padding: clamp(20px, 5vw, 28px) clamp(16px, 4vw, 24px);
  }

  .m-banner--pre-plans {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .m-banner--pre-plans__text {
    font-family: Inter, sans-serif;
    font-size: clamp(16px, 4.2vw, 20px);
    font-weight: 500;
    line-height: 1.45;
    color: var(--dark);
    margin: 0;
    text-align: left;
  }

  .m-banner--pre-plans__btn {
    align-self: center;
    width: auto;
    min-width: min(200px, 100%);
    padding: 12px 24px;
  }

  .m-banner--launch-marquee {
    background: #765B34;
    padding: 0;
    overflow: hidden;
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  .m-banner--launch-marquee .launch-marquee__track {
    display: flex;
    width: max-content;
    animation: launch-marquee-scroll 22s linear infinite;
  }

  .m-banner--launch-marquee .launch-marquee__segment {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-right: 40px;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 52px;
  }

  .m-banner--launch-marquee .launch-marquee__text {
    color: white;
    font-size: clamp(15px, 4vw, 18px);
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 1.2;
  }

  .m-banner--launch-marquee .launch-marquee__text--emphasis {
    font-weight: 500;
  }

  .m-banner--launch-marquee .launch-marquee__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
  }

  @keyframes launch-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .m-banner--launch-marquee .launch-marquee__track {
      animation: none;
      width: 100%;
      justify-content: center;
      text-align: center;
    }
  }

  .m-heading {
    font-family: Inter, sans-serif;
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .m-heading--sm {
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-dark);
    text-align: center;
    width: 100%;
  }

  .m-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }

  .m-card {
    background: white;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
  }

  .m-card__icon {
    width: clamp(48px, 14vw, 64px);
    height: clamp(42px, 12vw, 56px);
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
  }

  .m-card__title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
  }

  .m-card__text {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
  }

  .m-offer-img {
    width: auto;
    max-width: min(160px, 48vw);
    max-height: min(130px, 22vh);
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 8px;
    object-fit: contain;
  }

  #offer.m-section--dark {
    padding-top: clamp(16px, 3.5vw, 22px);
  }

  .m-offer-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .m-offer-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }

  .m-offer-item img {
    width: 56px;
    height: auto;
    flex-shrink: 0;
  }

  .m-offer-item__title {
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
  }

  .m-offer-item__text {
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
  }

  .m-trust {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(4px, 1.2vw, 8px);
    margin-top: clamp(12px, 3vw, 16px);
    width: 100%;
  }

  .m-trust-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .m-trust-item img {
    width: clamp(28px, 7.5vw, 38px);
    height: auto;
    margin-bottom: 0;
  }

  .m-trust-item span {
    display: block;
    font-family: Montserrat, sans-serif;
    font-size: clamp(8px, 2.2vw, 10px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
  }

  #science.m-section--gold {
    padding: clamp(18px, 4vw, 24px) clamp(10px, 2.5vw, 14px);
  }

  #science .m-heading {
    font-family: Montserrat, sans-serif;
    font-size: clamp(15px, 3.8vw, 18px);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: clamp(16px, 4vw, 20px);
    line-height: 1.2;
  }

  .m-plan-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .m-plan-card--male {
    background: linear-gradient(128deg, #121b24 0%, #16212C 32%, #1a2430 100%);
  }

  .m-plan-card--female {
    background: linear-gradient(139deg, #1a121c 0%, #221924 32%, #241a26 100%);
  }

  .m-plan-card__content {
    position: relative;
    overflow: hidden;
  }

  /* Photo layer — contained above the footer only. */
  .m-plan-card__img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }

  .m-plan-card__img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  .m-plan-card--male .m-plan-card__img-wrap::before {
    background: linear-gradient(
      to right,
      #121b24 0%,
      #16212C 26%,
      rgba(22, 33, 44, 0.9) 38%,
      rgba(22, 33, 44, 0.52) 48%,
      rgba(22, 33, 44, 0.18) 58%,
      transparent 66%
    );
  }

  .m-plan-card--female .m-plan-card__img-wrap::before {
    background: linear-gradient(
      to right,
      #1a121c 0%,
      #221924 26%,
      rgba(34, 25, 36, 0.9) 38%,
      rgba(34, 25, 36, 0.52) 48%,
      rgba(34, 25, 36, 0.18) 58%,
      transparent 66%
    );
  }

  .m-plan-card__img {
    position: absolute;
    top: 0;
    right: -5%;
    left: auto;
    width: 66%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 58% bottom;
    display: block;
    z-index: 1;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 3%,
      rgba(0, 0, 0, 0.58) 7%,
      rgba(0, 0, 0, 0.82) 11%,
      #000 18%,
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 3%,
      rgba(0, 0, 0, 0.58) 7%,
      rgba(0, 0, 0, 0.82) 11%,
      #000 18%,
      #000 100%
    );
  }

  .m-plan-card--male .m-plan-card__img {
    object-position: 50% bottom;
  }

  .m-plan-card--female .m-plan-card__img {
    transform: scaleX(-1);
    object-position: 46% bottom;
    -webkit-mask-image: linear-gradient(
      to left,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 3%,
      rgba(0, 0, 0, 0.58) 7%,
      rgba(0, 0, 0, 0.82) 11%,
      #000 18%,
      #000 100%
    );
    mask-image: linear-gradient(
      to left,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 3%,
      rgba(0, 0, 0, 0.58) 7%,
      rgba(0, 0, 0, 0.82) 11%,
      #000 18%,
      #000 100%
    );
  }

  .m-plan-card__body {
    position: relative;
    z-index: 1;
    padding: 20px;
    padding-right: 8px;
    max-width: 56%;
    min-height: clamp(400px, 112vw, 446px);
  }

  .m-plan-card__title {
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
  }

  .m-plan-card__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(180px, 80%);
    height: 2px;
    background: var(--gold);
  }

  .m-plan-card__desc {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .m-plan-card__list {
    list-style: none;
    margin-bottom: 16px;
  }

  .m-plan-card__list li {
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 0 6px 20px;
    position: relative;
    line-height: 1.4;
  }

  .m-plan-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
  }

  .m-plan-card__gold {
    color: var(--gold);
  }

  .m-body--gold {
    color: var(--gold);
    font-weight: 700;
    font-family: Inter, sans-serif;
    font-size: clamp(16px, 4vw, 18px);
  }

  .m-plan-card__footer {
    position: relative;
    z-index: 2;
    background: rgba(8, 7, 5, 0.95);
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .m-plan-card__label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 9vw, 40px);
    color: var(--gold);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 100%;
  }

  .m-plan-card__footer .m-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    white-space: nowrap;
    border-radius: 4px;
  }

  .m-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
  }

  .m-step {
    text-align: center;
    padding: 0 8px;
  }

  .m-step img {
    width: 42px;
    height: auto;
    margin-bottom: 10px;
  }

  .m-step__title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
  }

  .m-step__text {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
  }

  .m-app-imgs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }

  .app-phone-float--mobile {
    position: relative;
    width: min(280px, 85vw);
    margin: 0 auto;
    aspect-ratio: 321 / 319;
  }

  .app-phone-float--mobile .app-phone-float__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
  }

  .m-app-imgs > img:not(.app-phone-float__img) {
    width: min(320px, 100%);
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
  }

  .m-checklist {
    list-style: none;
    margin: 16px 0;
  }

  .m-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    line-height: 1.45;
  }

  .m-checklist .material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-size: 20px;
    color: var(--gold);
    flex-shrink: 0;
  }

  .m-cta-block {
    text-align: center;
    padding: 48px 20px;
  }

  .m-cta-block .m-title {
    font-size: clamp(48px, 12vw, 64px);
  }

  .m-footer {
    padding: 40px 20px 32px;
    background: black;
    text-align: center;
  }

  .m-footer__logo {
    width: 64px;
    height: auto;
    margin-bottom: 8px;
  }

  .m-footer__brand {
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
  }

  .m-footer__tagline {
    color: var(--gold-dark);
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    margin-bottom: 24px;
  }

  .m-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 20px;
  }

  .m-footer__nav button {
    background: none;
    border: none;
    color: white;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px;
  }

  .m-footer__social {
    width: 160px;
    height: 27px;
    margin: 0 auto 20px;
  }

  .m-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
  }

  .m-problem-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
  }

  .m-problem-item {
    background: var(--bg-light);
    color: var(--dark);
    border-radius: 30px;
    padding: 14px 20px 14px 48px;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    box-shadow: 6px 7px 6px rgba(0, 0, 0, 0.25);
  }

  .m-problem-item .material-icons-outlined {
    font-family: 'Material Icons Outlined';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--dark);
  }

  .m-highlight {
    color: var(--gold);
    font-family: Montserrat, sans-serif;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .m-features {
    gap: 12px;
  }

  .m-feature__label {
    font-size: 10px;
  }

  .m-heading {
    font-size: clamp(18px, 5vw, 22px);
  }

  .m-banner {
    font-size: clamp(13px, 3.5vw, 15px);
    padding: 16px;
  }
}

@media (min-width: 1025px) {
  .mobile-page {
    display: none !important;
  }
}
