/* Mobile-first visual polish. This file changes only presentation, never copy or behavior. */
@media (max-width: 900px) {
  .intro { background-position: center; }
  .intro-content { max-width: 670px; margin-inline: auto; }
  .intro-form { display: flex; flex-direction: column; width: 100%; align-items: stretch; }
  .intro-title { max-width: none; }
  .intro-form-wrapper, .intro-wrapper { max-width: none; }
  .event .container { max-width: 680px; }
}

@media (max-width: 767px) {
  :root { --mobile-gutter: clamp(16px, 5vw, 23px); }
  html { -webkit-text-size-adjust: 100%; }
  html, body, .app { max-width: 100%; }
  body { background: #fcf5f6; }
  .container { width: 100%; padding-inline: var(--mobile-gutter); }

  /* Opening screen: condensed, harmonious vertical rhythm and breathing room. */
  .intro {
    min-height: 0;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 0 51px;
    background:
      radial-gradient(ellipse 260px 340px at 94% 15%, rgba(200, 19, 33, .22), transparent 75%),
      radial-gradient(ellipse 360px 280px at -15% 95%, rgba(194, 25, 38, .27), transparent 75%),
      linear-gradient(158deg,#2a0f12 0%,#4a191f 58%,#672028 100%);
  }
  .intro::before { background-size: 42px 42px; opacity: .58; }
  .intro::after {
    width: 365px; height: 365px; right: -276px; top: 112px;
    box-shadow: 0 0 0 52px rgba(244, 147, 161,.020),0 0 0 104px rgba(244, 147, 161,.012);
  }
  .intro-content { width: 100%; max-width: 520px; margin-inline: auto; align-items: stretch; gap: 29px; }
  .intro-logo {
    width: fit-content; padding: 6px;
    background: rgba(255, 255, 255,.075);
    border: 1px solid rgba(255, 255, 255,.17);
    border-radius: 17px;
    box-shadow: 0 7px 22px rgba(29, 6, 8,.12);
  }
  .intro-logo img { width: 49px; height: 49px; max-width: none !important; border-radius: 12px; box-shadow: none; }
  .intro-form { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .intro-title {
    max-width: 490px;
    margin: 0 0 25px;
    font-size: clamp(31px, 8.8vw, 39px);
    line-height: 1.13;
    letter-spacing: -1.35px;
    font-weight: 800;
    text-align: left;
    overflow-wrap: break-word;
  }
  .intro-title span { color: #c91321; }
  .intro-form-wrapper {
    width: 100%; margin: 0;
    padding: 21px 20px 0;
    border: 1px solid rgba(241, 214, 217,.8);
    border-bottom: 0;
    border-radius: 23px 23px 0 0;
    background: #fff;
    box-shadow: none;
  }
  .intro-wrapper {
    width: 100%; margin: 0;
    padding: 11px 20px 23px;
    gap: 15px;
    border: 1px solid rgba(241, 214, 217,.8);
    border-top: 0;
    border-radius: 0 0 23px 23px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(24, 4, 7,.17);
  }
  .intro-form-wrapper .form-input-main { margin-bottom: 11px; }
  .intro-form-wrapper .form-input-main:last-child { margin-bottom: 0; }
  .form-input-main input,
  .form-input-main select,
  .iti--allow-dropdown input,
  .iti--separate-dial-code input {
    width: 100%; max-width: 100%; min-height: 56px;
    padding: 15px 16px;
    background: #fdf8f9;
    border: 1.5px solid #f3dfe1;
    border-radius: 13px;
    box-shadow: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
  }
  .form-input-main input::placeholder { color: #a08488; opacity: 1; font-weight: 500; }
  .form-input-main input:focus { background: #fff; border-color: #c71422; outline: none; box-shadow: 0 0 0 3px rgba(199, 20, 34,.12); }
  .btn, button[name="submitBtn"] {
    min-height: 55px; max-width: none; padding: 14px 18px;
    gap: 11px; border-radius: 13px;
    font-size: 16px; font-weight: 800; letter-spacing: -.15px;
    background: linear-gradient(110deg,#c91321,#c11220);
    box-shadow: 0 7px 16px rgba(190, 18, 31,.19);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .btn svg, button[name="submitBtn"] svg { width: 17px; height: 16px; }
  .intro-text {
    max-width: none; margin: 0;
    color: #83676b;
    font-size: 13.5px; font-weight: 500;
    line-height: 1.65; text-align: left;
  }
  .intro-text span { color: #bc111f; font-weight: 800; }

  /* Information cards: clearer header, comfortable copy, even CTA heights. */
  .about { padding: 51px 0 64px; background: #fcf5f6; }
  .about-content { align-items: stretch; gap: 22px; }
  .about-content > .about-title {
    text-align: left; font-size: clamp(28px,7vw,34px);
    line-height: 1.16; letter-spacing: -1.15px;
  }
  .about-wrapper { display: flex; flex-direction: column; gap: 14px; }
  .about-card {
    display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 0 16px;
    width: 100%; max-width: none; height: auto;
    margin: 0; padding: 21px;
    border-radius: 21px; border: 1px solid #f4e1e3;
    background: #fff;
    box-shadow: 0 9px 26px rgba(80, 36, 41,.047);
  }
  .about-card:hover { transform: none; box-shadow: 0 9px 26px rgba(80, 36, 41,.047); }
  .about-card > .about-img {
    grid-column: 1; grid-row: 1;
    display: block; width: 70px; height: 70px; max-width: 100%;
    margin: 0; padding: 14px;
    border-radius: 17px;
    object-fit: contain;
  }
  .about-card-wrapper { display: contents; }
  .about-card-title {
    grid-column: 2; grid-row: 1; align-self: center;
    margin: 0; font-size: 19px; line-height: 1.3;
    letter-spacing: -.45px;
    overflow-wrap: break-word;
  }
  .about-card-text {
    grid-column: 1 / -1; grid-row: 2;
    display: flex; flex-direction: column;
    gap: 10px; padding: 16px 0 19px;
    color: #775b5f;
    font-size: 14.5px; font-weight: 500; line-height: 1.69;
  }
  .about-card-text p { margin: 0; overflow-wrap: anywhere; }
  .about-card .about-card-btn {
    grid-column: 1 / -1; grid-row: 3;
    width: 100%; max-width: none; min-height: 51px;
    margin-top: 0; font-size: 15px; border-radius: 12px;
  }
  .about-container {
    margin: 8px 0 0; padding: 29px 22px;
    gap: 21px; border: 1px solid #f7d7db; border-radius: 21px;
    background: linear-gradient(135deg,#fae5e8 0%,#fbeeef 52%,#fcf2f3 100%);
  }
  .about-container .about-title {
    margin: 0; max-width: 410px;
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.19; letter-spacing: -.9px;
    text-align: center;
  }
  .about-container .about-card-btn { min-height: 54px; max-width: 100%; border-radius: 12px; }
  .footer { padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
  .footer-content { min-height: 54px; flex-direction: row; justify-content: space-between; gap: 14px; }
  .footer img { width: 47px; height: 47px; max-width: 47px !important; border-radius: 12px; }
  .footer .copyright { font-size: 11px; line-height: 1.5; color: #d8bcc0; }

  /* Every step after the first screen, including the phone number field. */
  .event {
    min-height: 100svh;
    padding: calc(17px + env(safe-area-inset-top, 0px)) 0 calc(70px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(ellipse at 93% 0%, rgba(199, 20, 34,.19),transparent 45%),
      linear-gradient(157deg,#2b0f13,#592027);
  }
  .event .container { width: 100%; max-width: 520px; padding-inline: var(--mobile-gutter); }
  .event-logo { width: fit-content; margin: 0 auto 18px; padding: 6px; border: 1px solid rgba(255, 255, 255,.17); border-radius: 16px; background: rgba(255, 255, 255,.075); }
  .event-logo img { width: 48px; height: 48px; max-width: 48px !important; }
  .income, .review, .end {
    width: 100%; max-width: none;
    margin-top: 0;
    padding: 25px 20px 23px;
    gap: 20px;
    background: #fff;
    border: 1px solid #f4e2e4;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(32, 9, 11,.21);
  }
  .income-title { padding: 0; border-radius: 0; }
  .income-title-text {
    min-height: auto; margin: 0; gap: 8px;
    font-size: 19px; line-height: 1.4;
    font-weight: 800; text-align: center;
  }
  .income-title-text .income-count {
    display: inline-block; max-width: 100%;
    font-size: clamp(32px,10vw,45px); line-height: 1.1;
    letter-spacing: -1px; overflow-wrap: anywhere;
  }
  .income-list { gap: 10px; }
  .income-item {
    min-height: 65px; padding: 12px 14px;
    gap: 12px; background: #fcf6f7;
    border: 1px solid #f5e5e7; border-radius: 14px;
  }
  .income-item-text { flex: 1; max-width: none; font-size: 14px; line-height: 1.45; }
  .income-item-check { flex: 0 0 28px; width: 28px; height: 28px; }
  .income-item-check img { width: 28px; height: 28px; }
  .review-wrapper { width: 100%; gap: 17px; }
  .review-title, .end-title {
    max-width: 100%; margin: 0;
    font-size: 21px; line-height: 1.4;
    letter-spacing: -.55px; font-weight: 800;
    text-align: center; overflow-wrap: anywhere;
  }
  .review-text { font-size: 17px; font-weight: 700; line-height: 1.55; }
  .review-text .profit-value, .end-title .profit-value { color: #c91321; font-weight: 800; }
  .review-list { width: 100%; padding-top: 14px; font-size: 14.5px; line-height: 1.55; }
  .reviev-item { padding: 10px 0; }
  .reviev-item p { margin: 0; overflow-wrap: anywhere; }
  .review-btn, .end button[name="submitBtn"] { width: 100%; max-width: none; min-height: 55px; }
  .end-form { width: 100%; }
  .end .form-input-main { margin: 0 0 13px; }
  .iti { max-width: 100%; width: 100% !important; }
  .iti__country-list { max-width: min(350px, calc(100vw - 76px)); max-height: min(350px, 52vh); overflow-x: hidden; }
  .iti__country { white-space: normal; }
  .loader-container { width: 100%; }
}

@media (max-width: 360px) {
  .intro-title { font-size: clamp(29px, 8.7vw, 31px); letter-spacing: -1.15px; }
  .intro-content { gap: 25px; }
  .intro-form-wrapper { padding: 18px 16px 0; }
  .intro-wrapper { padding: 10px 16px 19px; }
  .about-card { padding: 18px; gap: 0 13px; grid-template-columns: 64px minmax(0,1fr); }
  .about-card > .about-img { width: 64px; height: 64px; }
  .about-card-title { font-size: 18px; }
  .income, .review, .end { padding: 21px 16px; }
}

@media (min-width: 768px) and (max-width: 900px) {
  .intro { padding-top: 38px; }
  .intro-content { gap: 42px; }
  .intro-title { text-align: center; margin-bottom: 30px; }
  .intro-form-wrapper { padding-top: 30px; border-radius: 25px 25px 0 0; }
  .intro-wrapper { border-radius: 0 0 25px 25px; }
  .intro-form-wrapper, .intro-wrapper { max-width: 550px; margin-inline: auto; }
  .event .container { max-width: 680px; }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover, button[name="submitBtn"]:hover { transform: none; filter: none; }
  button, a, input { -webkit-tap-highlight-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .about-card, .form-input-main input { transition: none; }
}
