/* CSS custom properties — overridden at runtime by main.js */
:root {
  --primary-color: #45b553;
  --bg-gradient-start: #0a1a00;
  --bg-gradient-end: #1a3a00;
}

body, html {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.disclaimer-text {
  font-size: 10px;
  line-height: 1.5;
  color: #404040;
  text-align: center;
  padding: 0 1rem;
  margin-top: 25px;
}

/* ===== MOBILE LAYOUT ===== */
@media only screen and (max-width: 767px) {
  body, html {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .bg-mobile {
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .bg-pc { display: none !important; }

  .main-wrapper {
    width: 100%;
    height: 50vh;
  }

  .main-wrapper .logo_box {
    text-align: center;
    height: 2.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.9375rem;
    position: relative;
    z-index: 2;
  }

  .main-wrapper .logo_box img {
    height: 3.2rem;
    vertical-align: middle;
    padding-top: 2rem;
  }

  .DownloadApp_container .my-swipe.van-swipe {
    display: flex;
    flex: 1;
    height: 47vh;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }

  .DownloadApp_container .my-swipe.van-swipe .van-swipe__track {
    transition-duration: 500ms;
    display: flex;
    height: 100%;
    overflow: visible !important;
  }

  .DownloadApp_container .van-swipe-item {
    width: 100vw !important;
    height: auto !important;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .DownloadApp_container .van-swipe-item .download_slide_img {
    width: auto !important;
    height: auto !important;
    max-width: 90vw;
    max-height: 60vh;
    object-fit: contain !important;
    margin: auto;
    display: block;
    margin-top: -4vh;
  }

  .DownloadApp_container .van-swipe__indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    display: flex;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    cursor: grab;
  }

  .DownloadApp_container .van-swipe__indicators .van-swipe__indicator {
    margin: auto;
    margin-right: 0.875rem;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: #a19f9f;
    opacity: 0.3;
    transition: opacity 0.2s, background-color 0.2s;
  }

  .DownloadApp_container .van-swipe__indicators .van-swipe__indicator--active {
    width: 1.25rem !important;
    height: 0.75rem !important;
    border: 0.0625rem solid #eee;
    border-radius: 0.4688rem;
    background-color: #fff !important;
    box-shadow: 0 0.0625rem 0.25rem 0 rgba(0,0,0,0.1);
    opacity: 1;
  }

  .DownloadApp_Footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #fff;
    padding: 1rem;
    box-sizing: border-box;
    margin: 1rem 0 0 0;
  }

  .DownloadApp_Footer .btn {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 auto;
  }

  .DownloadApp_Footer .btn .down_btn3 {
    height: 3.25rem;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1rem;
    border: 0;
    cursor: pointer;
  }

  .DownloadApp_Footer .btn .down_btn4 {
    margin-top: 0.9375rem;
    height: 3.25rem;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1rem;
    border: 0;
    text-decoration: none;
  }

  .DownloadApp_Footer .bottom {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .DownloadApp_Footer .bottom .icon {
    padding: 0.8rem 0;
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
  }

  .foot { margin-top: 0; }
  .foot-i { justify-content: center; display: flex; }
  .foot-img { width: 85vw; text-align: center; }

  /* Tutorial overlay */
  .van-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2007;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
  }

  .van-popup--bottom {
    height: 77%;
    z-index: 2008;
    border-radius: 16px 16px 0 0;
    bottom: 0;
    left: 0;
    width: 100%;
    position: fixed;
    max-height: 100%;
    overflow-y: auto;
    background-color: #fff;
  }

  .van-popup--bottom .q1Mask-wrapper { position: absolute; display: block; }
  .van-popup--bottom .q1Mask-wrapper .q1Mask-header {
    height: 1.2rem;
    background-color: white;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
    line-height: 1.2rem;
    text-align: center;
    position: fixed;
  }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-header::before {
    position: absolute;
    content: "";
    display: block;
    width: 2.25rem;
    height: 0.25rem;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0.125rem;
    background-color: rgba(0,0,0,0.14);
  }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-img {
    width: 100%;
    height: 100%;
    padding: 0 0 3.125rem;
  }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-img .q1Mask-img_connect { width: 100%; }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-img p {
    color: #333;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5625rem 0 0;
    margin: 1em 0;
  }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-img img { width: 100%; }

  /* iOS Modal */
  .TestFlightInfoModal_testFlightModal__iBnYU {
    width: 100%;
    height: 100vh;
    background: rgba(51,51,51,0.5);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 6;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu {
    width: 298px;
    min-height: 358px;
    top: 50%;
    margin: 0 auto;
    transform: translateY(calc(-50% + 0.5px));
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    height: auto;
    max-height: 90%;
    border-radius: 30px;
    background-color: #fff;
  }

  .TestFlightInfoModal_close__2b1rI {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
  }

  .TestFlightInfoModal_scroll__1tHVy { overflow-y: scroll; width: 100%; }

  .TestFlightInfoModal_titleBox__PsTLP {
    width: 100%;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }

  .TestFlightInfoModal_title__32q9V { width: 80%; }

  .TestFlightInfoModal_stepBlock__zXUCQ {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    padding: 16px 12px 12px;
    border-radius: 12px;
    margin-top: 15px;
  }

  .TestFlightInfoModal_flex__1yqBi { display: flex; }
  .TestFlightInfoModal_stepNumber__9mhnb {
    font-size: 18px;
    line-height: 40px;
    font-weight: 500;
    height: 40px;
    color: #4c9eea;
    background-color: #e3ecf3;
    border-radius: 8px;
    padding: 0 4px;
  }

  .TestFlightInfoModal_contentBlock__383F0 {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-left: 4px;
  }

  .TestFlightInfoModal_subtitle__8NzRg { font-size: 12px; line-height: 21px; color: #333; font-weight: 600; }
  .TestFlightInfoModal_text__2ishG { font-size: 10px; line-height: 18px; color: #333; }
  .TestFlightInfoModal_tips__2Gxiw { font-size: 12px; line-height: 18px; color: #999; text-align: center; margin-top: 12px; }
  .TestFlightInfoModal_mt15__2Pqtx { margin-top: 15px; width: 100%; }

  .TestFlightInfoModal_btn__2-4Jj {
    margin-top: 11px;
    width: 100%;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
  }

  .button_wrapper { cursor: pointer; }
}

/* ===== PC LAYOUT ===== */
@media only screen and (min-width: 768px) {
  img {
    overflow-clip-margin: content-box;
    overflow: clip;
    pointer-events: none;
  }

  .bg-mobile { display: none !important; }

  .bg-pc {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .logo-pc img {
    max-width: 11rem;
    height: auto;
    padding-left: 10vw;
    padding-top: 3vw;
  }

  .logo-container-pc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20vw;
    margin-top: -3vh;
  }

  .downloadApp_left {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Left slogan swiper */
  .downloadApp_left .pcSwiper_2.van-swipe {
    height: 200px;
    width: 440px;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }

  .downloadApp_left .van-swipe__track--vertical {
    display: flex;
    flex-direction: column;
  }

  .downloadApp_left .van-swipe-item {
    height: 200px;
    flex-shrink: 0;
  }

  .downloadApp_left .van-swipe-item .download_slide_pc_img {
    width: 100%;
    height: 200px;
    object-fit: contain;
  }

  /* QR + buttons block */
  .downloadApp_block {
    display: flex;
    align-items: center;
  }

  .downloadApp_block .downloadApp_qrcode {
    background-color: #fff;
    box-shadow: 4px 4px 16px 0 rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }

  .downloadApp_block .downloadApp_btns {
    margin-left: 21px;
    display: flex;
    flex-direction: column;
  }

  .downloadApp_block .downloadApp_btn {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .downloadApp_block .downloadApp_btn .downloadApp_icon {
    width: 32px;
    margin-right: 9px;
  }

  .downloadApp_block .downloadApp_btn .downloadApp_version { color: #333; }
  .downloadApp_block .downloadApp_btn .downloadApp_version .downloadApp_version_text1 {
    font-size: 16px;
    margin: 0 0 1px;
    line-height: 18px;
  }
  .downloadApp_block .downloadApp_btn .downloadApp_version .downloadApp_version_text2 {
    font-size: 12px;
    line-height: 14px;
    margin: 0;
  }

  .downloadApp_left .button_wrapper.downloadApp_webButton {
    height: 52px;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    border: 0;
    text-decoration: none;
    box-sizing: border-box;
  }

  /* Right image swiper */
  .downloadApp_right .pcSwiper.van-swipe {
    height: 700px;
    width: 550px;
    overflow: hidden;
    position: relative;
  }

  .downloadApp_right .van-swipe__track--vertical {
    display: flex;
    flex-direction: column;
  }

  .downloadApp_right .van-swipe-item {
    height: 700px;
    flex-shrink: 0;
  }

  .downloadApp_right .van-swipe-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: none;
    display: block;
  }

  /* Hide right-side indicators; navigation via left indicators */
  #pc .van-swipe__indicators {
    display: none !important;
  }

  .foot-pc {
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.8rem;
    width: 100%;
    color: #404040;
    font-size: 0.8rem;
    padding-left: 8vw;
  }
}
