/* =========================================================
   MAPPLY 2.9 — MOBILE-FIRST FINISHING PASS
   ========================================================= */

.hero-network-signal-guides {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.hero-network-signal-guides:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.34);
  outline-offset: 4px;
}

.hero-network-avatar {
  position: relative;
  display: block;
  width: 33px;
  height: 33px;
  margin-left: -8px;
  flex: 0 0 auto;
}

.hero-network-avatar > img:first-child {
  width: 33px;
  height: 33px;
  margin: 0;
  object-fit: cover;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(31, 76, 132, 0.16);
}

.hero-network-avatars .hero-network-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  width: 15px;
  height: 15px;
  margin: 0;
  object-fit: contain;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 7px rgba(45, 67, 101, 0.22);
}

.summary-community-avatars span {
  position: relative;
  overflow: visible;
}

.summary-community-avatars span > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.summary-community-avatars .summary-avatar-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 3;
  width: 19px;
  height: 19px;
  object-fit: contain;
  border: 2px solid #ffffff;
  border-radius: 50%;
  filter: drop-shadow(0 3px 5px rgba(46, 67, 99, 0.2));
}

@media (max-width: 820px) {
  html body .site-header[data-site-header] {
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  html body .site-header[data-site-header] .header-inner {
    width: 100% !important;
    max-width: none !important;
    min-height: 66px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 8px 12px !important;
    border-radius: 0 0 18px 18px !important;
  }

  .header-cta {
    display: none !important;
  }

  .primary-navigation {
    top: 70px !important;
  }

  .page-shell {
    width: min(calc(100% - 12px), var(--page-width)) !important;
    padding-top: 74px !important;
  }

  .hero-top-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .hero-visual {
    display: flex;
    order: 1;
    flex-direction: column;
    width: 100% !important;
    margin: 0 auto !important;
    min-height: 0;
  }

  .hero-copy {
    order: 2;
    width: 100% !important;
    padding-top: 0 !important;
  }

  .hero-phone-stage {
    order: 1;
    width: min(560px, 100%);
    height: 500px;
  }

  .hero-network-signal-guides {
    position: relative !important;
    inset: auto !important;
    order: 2;
    align-self: center;
    margin-top: 2px;
    animation: networkSignalFloat 5.8s ease-in-out infinite !important;
  }

  .hero-network-signal-maps,
  .hero-map-pin,
  .hero-amazon-reward {
    display: none !important;
  }

  .hero-journey-v26 {
    min-height: 0 !important;
    margin-top: 24px !important;
    padding: 14px !important;
    overflow: hidden !important;
  }

  .hero-journey-background,
  .journey-discover-stage,
  .journey-character-layer,
  .journey-business,
  .journey-reward {
    display: none !important;
  }

  .hero-journey-stage {
    display: grid !important;
    gap: 10px !important;
    min-height: 0 !important;
  }

  .journey-stage-label,
  .journey-stage-label-discover,
  .journey-stage-label-contribute,
  .journey-stage-label-contribute.is-active,
  .journey-stage-label-reward {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 70px !important;
    padding: 11px 13px !important;
    opacity: 0.72;
    transform: none !important;
  }

  .journey-stage-label.is-active {
    opacity: 1;
    transform: translateY(-2px) !important;
  }

  .journey-stage-label > span {
    width: 38px;
    height: 38px;
    font-size: 0.78rem;
  }

  .journey-stage-label strong {
    font-size: 0.86rem !important;
  }

  .journey-stage-label small {
    font-size: 0.68rem !important;
    line-height: 1.38;
  }

  .journey-live-status {
    position: relative !important;
    inset: auto !important;
    justify-content: center;
    width: 100% !important;
    margin-top: 10px;
    transform: none !important;
  }

  .about {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .about-copy {
    order: 1;
  }

  .about-visual {
    order: 2;
    width: min(560px, 100%) !important;
    min-height: 410px !important;
    margin: 0 auto !important;
    overflow: hidden;
    border-radius: 24px;
  }

  .about-frame {
    top: 2%;
    left: 4%;
    width: 66%;
    max-height: 385px;
  }

  .about-screen {
    right: 3%;
    bottom: 2%;
    width: 54%;
    max-height: 300px;
  }

  .about-floating-rating {
    top: 9%;
    right: 3%;
    width: 118px;
  }

  .about-floating-pin {
    bottom: 14%;
    left: 4%;
    width: 38px;
  }

  .reward-steps li {
    padding-right: 48px;
  }

  .reward-step-number {
    position: absolute;
    top: 13px;
    right: 15px;
    opacity: 0.62;
  }

  .testimonial-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 14px !important;
    min-height: 0;
  }

  .summary-community-avatars {
    grid-column: 1 / -1;
    justify-content: center;
    padding-left: 0;
  }

  .testimonial-summary-rating {
    padding-right: 12px;
    border-right: 1px solid var(--line) !important;
  }

  .summary-count {
    grid-column: auto !important;
    min-width: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 66px;
  }

  .brand-copy small {
    display: none !important;
  }

  .brand-logo {
    width: 36px !important;
  }

  .nav-toggle {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  .primary-navigation {
    right: 7px !important;
    left: 7px !important;
  }

  .card,
  .get-started,
  .site-footer {
    margin-bottom: 14px !important;
    border-radius: 20px !important;
  }

  .hero {
    padding: 16px 13px 18px !important;
  }

  .hero-phone-stage {
    width: 100%;
    height: 345px !important;
    overflow: visible;
  }

  .hero-phone-main {
    width: 148px !important;
    border-width: 3px;
    border-radius: 27px;
  }

  .hero-phone-left,
  .hero-phone-right {
    top: 40px !important;
    width: 110px !important;
    border-width: 3px;
    border-radius: 23px;
  }

  .hero-phone-left {
    left: 1% !important;
    transform: rotate(-6deg) translateZ(-20px);
  }

  .hero-phone-right {
    right: 1% !important;
    transform: rotate(6deg) translateZ(-20px);
  }

  .hero-network-signal-guides {
    width: auto;
    min-height: 50px;
    margin: 4px auto 0;
    padding: 7px 10px;
  }

  .hero-network-avatar,
  .hero-network-avatar > img:first-child {
    width: 30px;
    height: 30px;
  }

  .hero-network-avatars .hero-network-avatar-badge {
    width: 14px;
    height: 14px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-eyebrow {
    display: flex !important;
    width: fit-content !important;
    max-width: 100%;
    min-height: 40px;
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .eyebrow-icon {
    width: 22px;
    height: 22px;
  }

  .eyebrow-level {
    width: 45px;
  }

  .hero-stars {
    align-items: center !important;
    flex-direction: row !important;
    width: fit-content !important;
    max-width: 100%;
    gap: 8px;
    font-size: 0.69rem;
    text-align: left;
  }

  .hero-stars > img {
    width: 91px;
    height: 31px;
    flex: 0 0 auto;
  }

  .mapply-v28 .hero h1 {
    margin-top: 16px;
    font-size: clamp(2rem, 10vw, 2.55rem) !important;
    line-height: 1.01;
    letter-spacing: -0.048em;
  }

  .hero-lead {
    margin-top: 17px;
    font-size: 0.91rem !important;
    line-height: 1.62 !important;
  }

  .hero-business-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
    margin-top: 18px;
  }

  .hero-business-proof > span {
    min-height: 76px;
    padding: 10px 6px 9px 9px;
    text-align: left;
    border-radius: 13px;
  }

  .hero-business-proof strong {
    font-size: 0.73rem;
  }

  .hero-business-proof small {
    font-size: 0.53rem;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
    margin-top: 16px;
  }

  .hero-actions .button {
    min-height: 47px;
    padding: 9px 10px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .hero-actions .button img,
  .hero-actions .button svg {
    width: 17px;
    height: 17px;
  }

  .hero-platform-badges {
    margin-top: 11px;
  }

  .hero-platform-badges span {
    min-height: 40px;
  }

  .hero-platform-badges img {
    height: 21px;
  }

  .section-heading {
    margin-bottom: 23px;
  }

  .section-heading h2,
  .network-story-panel > h3,
  .business-impact-story h3 {
    font-size: clamp(1.7rem, 8.2vw, 2.15rem) !important;
    line-height: 1.07;
    overflow-wrap: anywhere;
  }

  .section-heading p {
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .eligibility-note {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 9px;
    padding: 12px;
  }

  .eligibility-icon {
    width: 42px;
    height: 42px;
  }

  .eligibility-note strong {
    font-size: 0.83rem;
    line-height: 1.3;
  }

  .eligibility-note small {
    font-size: 0.66rem;
  }

  .eligibility-level {
    grid-column: auto !important;
    width: 64px !important;
    max-height: 34px;
  }

  .reward-steps li {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 11px;
    min-height: 0;
    padding: 15px 42px 15px 14px !important;
  }

  .reward-step-icon {
    width: 42px;
    height: 42px;
  }

  .reward-steps h3 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .reward-steps p {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.48;
  }

  .reward-step-number {
    top: 12px;
    right: 12px;
    font-size: 1.05rem;
  }

  .about-visual {
    min-height: 320px !important;
  }

  .about-frame {
    width: 64%;
    max-height: 300px;
  }

  .about-screen {
    width: 50%;
    max-height: 230px;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
  }

  .about-stats article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    min-height: 88px;
    padding: 11px;
  }

  .about-stats article > img {
    width: 36px;
    height: 36px;
  }

  .about-stats strong {
    font-size: 0.78rem;
  }

  .about-stats span {
    font-size: 0.62rem;
  }

  .testimonial-track,
  .testimonial-card {
    min-height: 318px !important;
  }

  .testimonial-card {
    padding: 24px 27px !important;
  }

  .testimonial-card blockquote {
    margin-top: 16px;
    font-size: 1rem !important;
    line-height: 1.48;
  }

  .testimonial-person {
    margin-top: 20px;
  }

  .testimonial-avatar,
  .testimonial-avatar-image {
    width: 58px;
    height: 58px;
  }

  .testimonial-avatar-badge {
    right: -5px;
    bottom: -4px;
    width: 31px;
    height: 31px;
  }

  .testimonial-summary {
    padding: 15px 13px;
    text-align: center;
  }

  .testimonial-summary-rating strong {
    font-size: 0.9rem;
  }

  .testimonial-summary-rating small,
  .summary-count small {
    font-size: 0.66rem;
  }

  .summary-count strong {
    font-size: 1.45rem;
  }

  .business-impact-live {
    padding: 16px !important;
  }

  .impact-example-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .impact-example-metrics > span {
    padding: 10px 5px;
  }

  .impact-example-metrics strong {
    font-size: 0.8rem;
  }

  .impact-example-metrics small {
    font-size: 0.5rem;
  }

  .get-started {
    padding: 22px 17px !important;
  }

  .get-started h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem) !important;
    line-height: 1.08;
  }

  .get-started p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .get-started-visual {
    display: none !important;
  }

  .get-started-actions {
    gap: 8px;
  }

  .get-started-actions .button {
    min-height: 50px;
  }
}

@media (max-width: 390px) {
  .hero-phone-stage {
    height: 318px !important;
  }

  .hero-phone-main {
    width: 137px !important;
  }

  .hero-phone-left,
  .hero-phone-right {
    top: 38px !important;
    width: 100px !important;
  }

  .hero-eyebrow .eyebrow-level {
    display: none;
  }

  .hero-business-proof {
    gap: 5px;
  }

  .hero-business-proof > span {
    min-height: 72px;
    padding-inline: 7px 4px;
  }

  .hero-actions {
    grid-template-columns: 1fr !important;
  }

  .eligibility-note {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }

  .eligibility-level {
    display: none;
  }
}
