﻿@media (max-width: 980px) {
  html {
    scroll-snap-type: none !important;
  }

  .slide {
    min-height: auto;
    height: auto;
    border-bottom: 0;
    scroll-snap-align: none !important;
  }

  .slide::after {
    content: none;
    display: none;
  }

  .slide.hero-store {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .slide.hero-store .slide-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-height: auto;
    height: auto;
    padding: 28px 0 0;
  }

  .slide.hero-store .hero-copy {
    order: 1;
    width: 100%;
    padding-bottom: 0;
  }

  .slide.hero-store .hero-logos,
  .slide.hero-store .partner-logos {
    order: 2;
    display: grid;
    grid-template-columns: 66px 88px 72px 54px;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    height: auto;
    margin: 14px 0 0;
    position: static;
  }

  .slide.hero-store .hero-logos img,
  .slide.hero-store .partner-logos img,
  .slide.hero-store .hero-logos .fd-logo,
  .slide.hero-store .hero-logos .saenggak-logo,
  .slide.hero-store .hero-logos .barogo-logo,
  .slide.hero-store .hero-logos .g-logo {
    position: static;
    width: 100%;
    height: 32px;
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
  }

  .slide.hero-store .hero-visual,
  .slide.hero-store:not(.faq-slide):not(.partner-slide) .hero-visual {
    order: 3;
    position: static;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .slide.hero-store .hero-visual .hero-owners,
  .slide.hero-store:not(.faq-slide):not(.partner-slide) .hero-visual .hero-owners {
    position: static;
    width: min(390px, 94vw);
    max-width: 100%;
    max-height: none;
    margin: 0;
    object-fit: contain;
  }
}

@media (max-width: 620px) {
  .slide.hero-store,
  .slide.hero-store .slide-inner {
    min-height: 0;
  }

  .slide.hero-store .hero-copy h1 {
    font-size: clamp(32px, 8.6vw, 38px);
  }

  .slide.hero-store .hero-copy .lead,
  .slide.hero-store .hero-copy .body-copy {
    font-size: 20px;
  }

  .slide.hero-store .hero-visual .hero-owners,
  .slide.hero-store:not(.faq-slide):not(.partner-slide) .hero-visual .hero-owners {
    width: min(340px, 86vw);
    margin-top: -2px;
  }
}

@media (max-width: 980px) {
  body .slide,
  body .slide.hero-store {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    scroll-snap-align: none !important;
  }

  body .slide::before,
  body .slide::after,
  body .slide.hero-store::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
  }

  body .slide.hero-store .slide-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 34px 0 0 !important;
    overflow: visible !important;
  }

  body .slide.hero-store .hero-copy {
    order: 1 !important;
    width: 100% !important;
    align-self: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .slide.hero-store .hero-logos,
  body .slide.hero-store .partner-logos {
    order: 2 !important;
    display: grid !important;
    grid-template-columns: 50px 50px 50px 50px !important;
    align-items: center !important;
    gap: 14px !important;
    width: max-content !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 14px 0 0 !important;
    position: relative !important;
  }

  body .slide.hero-store .hero-logos img,
  body .slide.hero-store .partner-logos img,
  body .slide.hero-store .hero-logos .fd-logo,
  body .slide.hero-store .hero-logos .saenggak-logo,
  body .slide.hero-store .hero-logos .barogo-logo,
  body .slide.hero-store .hero-logos .g-logo {
    position: static !important;
    width: 100% !important;
    height: 44px !important;
    max-width: 100% !important;
    max-height: 44px !important;
    object-fit: contain !important;
  }

  body .slide.hero-store .hero-visual,
  body .slide.hero-store:not(.faq-slide):not(.partner-slide) .hero-visual {
    order: 3 !important;
    position: static !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body .slide.hero-store .hero-visual .hero-owners,
  body .slide.hero-store:not(.faq-slide):not(.partner-slide) .hero-visual .hero-owners {
    position: static !important;
    width: min(390px, 92vw) !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
  }
}

@media (max-width: 620px) {
  body .slide.hero-store .hero-visual .hero-owners,
  body .slide.hero-store:not(.faq-slide):not(.partner-slide) .hero-visual .hero-owners {
    width: min(380px, 92vw) !important;
  }
}

@media (max-width: 980px) {
  body .card-benefit .card-visual,
  body .agency-search .agency-search-visual {
    position: relative !important;
    display: block !important;
    width: min(402px, 100%) !important;
    min-height: 500px !important;
    height: 500px !important;
    margin: 12px auto 0 !important;
    overflow: visible !important;
  }

  body .agency-search .agency-search-visual {
    min-height: 590px !important;
    height: 590px !important;
  }

  body .card-benefit .card-phone,
  body .agency-search .agency-phone {
    position: absolute !important;
    inset: auto !important;
    left: 16% !important;
    top: 0 !important;
    width: min(210px, 50vw) !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    translate: none !important;
    z-index: 1 !important;
  }

  body .card-benefit .store-team-img {
    position: absolute !important;
    inset: auto !important;
    left: 38% !important;
    top: 116px !important;
    width: min(250px, 60vw) !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 3 !important;
    transform-origin: 50% 82% !important;
    animation: store-person-mobile-arrive 680ms cubic-bezier(0.2, 0.82, 0.22, 1) both,
      store-person-mobile-idle 3800ms ease-in-out 680ms infinite !important;
    will-change: transform, opacity !important;
  }

  body .agency-search .rider-front-img {
    position: absolute !important;
    inset: auto !important;
    left: 40% !important;
    top: 320px !important;
    width: min(365px, 86vw) !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 3 !important;
    transform-origin: 50% 84% !important;
    animation: rider-mobile-arrive 720ms cubic-bezier(0.2, 0.82, 0.22, 1) both,
      rider-mobile-idle 3600ms ease-in-out 720ms infinite !important;
  }

  body .delivery-apps {
    display: grid !important;
    grid-template-columns: repeat(3, 48px) !important;
    justify-content: start !important;
    gap: 10px !important;
    width: max-content !important;
    max-width: 100% !important;
  }

  body .delivery-apps img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
  }

  body .representative-img {
    width: min(390px, 92vw) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 430px) {
  body .card-benefit .card-visual,
  body .agency-search .agency-search-visual {
    min-height: 500px !important;
    height: 500px !important;
  }

  body .agency-search .agency-search-visual {
    min-height: 590px !important;
    height: 590px !important;
  }

  body .card-benefit .card-phone,
  body .agency-search .agency-phone {
    left: 12% !important;
    width: min(205px, 52vw) !important;
  }

  body .card-benefit .card-phone {
    left: 58% !important;
  }

  body .card-benefit .store-team-img {
    left: 18% !important;
    top: 116px !important;
    width: min(260px, 66vw) !important;
  }

  body .agency-search .rider-front-img {
    left: 40% !important;
    top: 320px !important;
    width: min(365px, 86vw) !important;
  }
}

@keyframes store-person-mobile-arrive {
  from {
    opacity: 0;
    transform: translate3d(-10px, 24px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes store-person-mobile-idle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  45% {
    transform: translate3d(-4px, -7px, 0) rotate(-0.5deg);
  }

  72% {
    transform: translate3d(2px, -3px, 0) rotate(0.45deg);
  }
}

@keyframes rider-mobile-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes rider-mobile-idle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  45% {
    transform: translate3d(0, -8px, 0) rotate(-0.7deg);
  }

  70% {
    transform: translate3d(0, -3px, 0) rotate(0.5deg);
  }
}

/* New top hero only. Existing #store mobile rules stay unchanged below it. */
@media (max-width: 980px) {
  .payment-flow-hero__inner {
    width: 100%;
    min-height: auto;
    display: block;
    padding: 44px 0 0;
  }

  .payment-flow-hero__copy {
    width: min(100% - 40px, 640px);
    margin: 0 auto;
    padding: 0;
  }

  .payment-flow-hero__copy h1 {
    max-width: 12ch;
    font-size: clamp(42px, 7vw, 58px);
  }

  .payment-flow-hero__summary {
    font-size: 21px;
  }

  .payment-flow-hero__visual {
    position: relative;
    inset: auto;
    height: clamp(440px, 62vw, 590px);
    margin-top: 24px;
  }

  .payment-flow-hero__visual::after {
    background: linear-gradient(180deg, #f7fbf7 0%, rgba(247, 251, 247, 0.28) 20%, rgba(247, 251, 247, 0) 46%);
  }

  .payment-flow-hero__owner-frame {
    object-position: 62% center;
  }

  .payment-flow-hero__steps {
    right: 24px;
    bottom: 24px;
    left: 24px;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .payment-flow-hero__steps li {
    min-height: 68px;
    padding: 12px 10px;
    border-radius: 16px;
    font-size: 17px;
  }

  .payment-flow-hero__path {
    right: 86px;
    bottom: 93px;
    width: 280px;
  }
}

@media (max-width: 620px) {
  .payment-flow-hero__inner {
    padding-top: 34px;
  }

  .payment-flow-hero__copy {
    width: calc(100% - 36px);
  }

  .payment-flow-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .payment-flow-hero__copy h1 {
    font-size: clamp(36px, 10.8vw, 48px);
    line-height: 1.1;
  }

  .payment-flow-hero__summary {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.5;
  }

  .payment-flow-hero__visual {
    height: clamp(350px, 112vw, 470px);
    margin-top: 12px;
  }

  .payment-flow-hero__owner-frame {
    object-position: 64% center;
  }

  .payment-flow-hero__steps {
    right: auto;
    bottom: 140px;
    left: 32px;
    width: 150px;
    height: 50px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .payment-flow-hero__steps li {
    grid-area: 1 / 1;
    min-height: 50px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(22, 74, 36, 0.16);
    animation-duration: 12s;
    animation-delay: 0s;
    opacity: 0 !important;
    visibility: hidden !important;
    animation: none !important;
  }

  .payment-flow-hero__steps li.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
  }

  .payment-flow-hero__steps li:nth-child(1) {
    animation-name: payment-mobile-paid;
    animation-delay: 0s !important;
  }

  .payment-flow-hero__steps li:nth-child(2) {
    animation-name: payment-mobile-five;
    animation-delay: 0s !important;
  }

  .payment-flow-hero__steps li:nth-child(3) {
    animation-name: payment-mobile-deposit;
    animation-delay: 0s !important;
  }

  .payment-flow-hero__step-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 12px;
    animation: none !important;
  }

  .payment-flow-hero__steps li.is-active .payment-flow-hero__step-icon {
    animation: none !important;
  }

  .payment-flow-hero__steps li.is-active .payment-flow-hero__step-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(3, 199, 90, 0.62);
    border-radius: 50%;
    pointer-events: none;
    animation: payment-active-ring-pulse 1.4s ease-out infinite;
  }

  .payment-flow-hero__path {
    right: auto;
    bottom: 31px;
    left: 11px;
    width: 10px;
    height: 152px;
    border-width: 2px;
  }

  .payment-flow-hero__path::before {
    transform: scaleY(0.03);
    transform-origin: center top;
    animation: payment-path-fill-mobile 12s ease-in-out infinite;
  }

  .payment-flow-hero__visual::before {
    left: 44%;
    bottom: 24%;
    width: 120px;
    height: 96px;
  }

  .payment-flow-hero__path::after {
    top: 0;
    left: 50%;
    width: 13px;
    height: 13px;
    border-width: 3px;
    transform: translate(-50%, -50%);
    animation: payment-path-dot-mobile 12s ease-in-out infinite;
  }
}

@keyframes payment-mobile-paid {
  0% { opacity: 0; }
  3%, 28% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@keyframes payment-mobile-five {
  0%, 28% { opacity: 0; }
  33%, 61% { opacity: 1; }
  66%, 100% { opacity: 0; }
}

@keyframes payment-mobile-deposit {
  0%, 61% { opacity: 0; }
  66%, 94% { opacity: 1; }
  99%, 100% { opacity: 0; }
}

@keyframes payment-path-fill-mobile {
  0% { transform: scaleY(0.03); }
  88%, 96% { transform: scaleY(1); }
  100% { transform: scaleY(0.03); }
}

@keyframes payment-path-dot-mobile {
  0% { top: 0; }
  88%, 96% { top: calc(100% - 13px); }
  100% { top: 0; }
}

@keyframes payment-active-ring-pulse {
  0% { transform: scale(0.82); opacity: 0; }
  28% { opacity: 0.75; }
  100% { transform: scale(1.42); opacity: 0; }
}

@media (max-width: 340px) {
  .payment-flow-hero__copy h1 {
    font-size: 34px;
  }

  .payment-flow-hero__visual {
    height: 350px;
  }
}

@media (max-width: 980px) {
  body .quick-actions {
    right: max(18px, env(safe-area-inset-right)) !important;
    left: auto !important;
    bottom: max(20px, env(safe-area-inset-bottom)) !important;
    top: auto !important;
    width: auto !important;
    max-width: calc(100vw - 36px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 50px) !important;
    gap: 8px !important;
    padding: 8px !important;
    transform: none !important;
    overflow: visible !important;
  }

  body .quick-action {
    width: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
}
@media (max-width: 980px) {
  body .hero-owners,
  body .rider-img,
  body .representative-img,
  body .agency-team-img,
  body .store-team-img,
  body .rider-front-img,
  body .hero-logos img,
  body .delivery-apps img,
  body .card-lines img {
    animation-name: image-unified-rise, image-unified-float !important;
    animation-duration: 720ms, 5200ms !important;
    animation-delay: var(--image-delay, 0ms), calc(var(--image-delay, 0ms) + 720ms) !important;
    animation-timing-function: cubic-bezier(0.2, 0.82, 0.22, 1), ease-in-out !important;
    animation-iteration-count: 1, infinite !important;
    animation-fill-mode: both, none !important;
    will-change: opacity, translate !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .hero-owners,
  body .rider-img,
  body .representative-img,
  body .agency-team-img,
  body .store-team-img,
  body .rider-front-img,
  body .hero-logos img,
  body .delivery-apps img,
  body .card-lines img {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 980px) {
  body.js-anim-ready .card-benefit .store-team-img,
  body.js-anim-ready .agency-search .rider-front-img,
  .js-anim-ready body .card-benefit .store-team-img,
  .js-anim-ready body .agency-search .rider-front-img,
  .js-anim-ready .card-benefit .store-team-img,
  .js-anim-ready .agency-search .rider-front-img {
    translate: none !important;
    scale: 1 !important;
    transition-property: opacity !important;
  }
}
/* mobile artwork transform reset */
@media (max-width: 980px) {
  body .card-benefit .store-team-img {
    transform: none !important;
  }

  body .card-benefit .store-team-img,
  body .agency-search .rider-front-img {
    translate: none !important;
    scale: 1 !important;
    animation: none !important;
    transition-property: opacity !important;
  }
}

/* Normalize mobile sections across short/tall devices. */
@media (max-width: 980px) {
  body .slide,
  body .slide.hero-store,
  body .slide:not(.faq-slide):not(.partner-slide):not(.advance-pay),
  body .slide.advance-pay {
    height: auto !important;
    min-height: auto !important;
  }

  body .slide .slide-inner,
  body .slide.hero-store .slide-inner {
    width: min(100% - 28px, 420px) !important;
    height: auto !important;
    min-height: auto !important;
    margin-inline: auto !important;
    padding-top: 42px !important;
    padding-bottom: 46px !important;
    overflow: visible !important;
  }

  body .slide.hero-store .slide-inner {
    padding-top: 30px !important;
  }

  body .slide:not(.hero-store) .copy-block,
  body .slide:not(.hero-store) .visual-group,
  body .agency-owner .copy-block,
  body .pay-card .copy-block,
  body .advance-pay .copy-block,
  body .card-benefit .copy-block,
  body .agency-search .copy-block {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  body .agency-owner .rider-img,
  body .pay-card .representative-img,
  body .advance-pay .agency-team-img {
    position: static !important;
    width: min(360px, 92vw) !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    margin: 18px auto 0 !important;
    transform: none !important;
    translate: none !important;
  }

  body .card-benefit .card-visual,
  body .agency-search .agency-search-visual {
    position: relative !important;
    width: min(360px, 100%) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 16px auto 0 !important;
    overflow: visible !important;
  }

  body .card-benefit .card-visual {
    aspect-ratio: 1 / 1.16 !important;
  }

  body .agency-search .agency-search-visual {
    aspect-ratio: 1 / 1.46 !important;
  }

  body .card-benefit .card-phone {
    left: 72% !important;
    top: 0 !important;
    width: min(190px, 48vw) !important;
    transform: translateX(-50%) !important;
    z-index: 1 !important;
  }

  body .card-benefit .store-team-img {
    left: clamp(58px, 18vw, 76px) !important;
    top: auto !important;
    bottom: 12px !important;
    width: min(250px, 64vw) !important;
    transform: none !important;
    z-index: 3 !important;
  }

  body .agency-search .agency-phone {
    left: 10% !important;
    top: 0 !important;
    width: min(188px, 48vw) !important;
    transform: none !important;
    z-index: 1 !important;
  }

  body .agency-search .rider-front-img {
    left: clamp(28px, 9vw, 42px) !important;
    top: auto !important;
    bottom: -26px !important;
    width: min(330px, 82vw) !important;
    transform: none !important;
    z-index: 3 !important;
  }

  body .quick-actions {
    right: max(18px, env(safe-area-inset-right)) !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 380px) {
  body .slide .slide-inner,
  body .slide.hero-store .slide-inner {
    width: min(100% - 24px, 420px) !important;
  }

  body .card-benefit .card-phone,
  body .agency-search .agency-phone {
    width: min(178px, 49vw) !important;
  }

  body .card-benefit .store-team-img {
    width: min(236px, 65vw) !important;
  }

  body .agency-search .rider-front-img {
    width: min(310px, 82vw) !important;
  }
}

@media (max-width: 980px) {
  body .slide.card-benefit:not(.hero-store):not(.faq-slide):not(.partner-slide) .slide-inner,
  body .slide.agency-search:not(.hero-store):not(.faq-slide):not(.partner-slide) .slide-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body .slide.card-benefit:not(.hero-store):not(.faq-slide):not(.partner-slide) .card-visual,
  body .slide.agency-search:not(.hero-store):not(.faq-slide):not(.partner-slide) .agency-search-visual {
    position: relative !important;
    width: min(360px, 100%) !important;
    max-width: 100% !important;
    margin: 16px auto 0 !important;
    overflow: visible !important;
  }

  body .slide.card-benefit:not(.hero-store):not(.faq-slide):not(.partner-slide) .card-visual {
    aspect-ratio: 1 / 1.16 !important;
  }

  body .slide.agency-search:not(.hero-store):not(.faq-slide):not(.partner-slide) .agency-search-visual {
    aspect-ratio: 1 / 1.46 !important;
  }

  body .slide.card-benefit .store-team-img,
  body .slide.agency-search .rider-front-img {
    transform: none !important;
    translate: none !important;
  }
}









