/* ==========================================================================
   Gmarket Official Mobile Landing Page (Android-Focused, Above-the-Fold)
   Pixel-Perfect Korean E-Commerce Visual Architecture
   ========================================================================== */

:root {
  --gm-green: #00b050;
  --gm-green-hover: #009243;
  --gm-green-deep: #007a37;
  --gm-green-soft: #eaf8f0;
  --gm-green-glow: rgba(0, 176, 80, 0.28);
  --gm-blue: #0070c0;
  --gm-blue-soft: #eaf3fb;
  --gm-pink: #ff3377;
  --gm-pink-soft: #ffeef4;
  --gm-purple: #794aff;
  --gm-purple-soft: #f4efff;
  
  --bg-page: #f0f4f1;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-sub: #4b5563;
  --text-muted: #8c9ba5;
  --border-light: #e6ece8;
  
  --font-kr: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-hand: "Nanum Pen Script", "Caveat", cursive, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 18px rgba(0, 32, 16, 0.05);
  --shadow-btn: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-btn-hover: 0 12px 28px rgba(0, 176, 80, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
}

body {
  font-family: var(--font-kr);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

/* Mobile Shell: Centered on desktop, 100% full-width on mobile */
.mobile-app-shell {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 70px;
}

/* ==========================================================================
   Header Bar (Compact, 46px)
   ========================================================================== */
.native-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 176, 80, 0.1);
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-svg-logo {
  height: 27px;
  width: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-preview {
  font-size: 11px;
  font-weight: 700;
  color: var(--gm-blue);
  background: var(--gm-blue-soft);
  border: 1px solid rgba(0, 112, 192, 0.25);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.btn-header-install {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #00c85d 0%, #00b050 100%);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 2px 6px var(--gm-green-glow);
}

/* ==========================================================================
   Hero Stage (Optimized for Instant Above-the-Fold View)
   ========================================================================== */
.hero-stage {
  position: relative;
  background: linear-gradient(180deg, #dcf2e6 0%, #edf8f2 50%, #ffffff 100%);
  padding: 6px 14px 4px;
  text-align: center;
}

/* Top Mini Row */
.hero-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.tag-no1-korea {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 176, 80, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gm-green-deep);
}

.tag-no1-korea .green-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gm-green);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.handwrite-better-shopping {
  font-family: var(--font-hand);
  font-size: 17px;
  font-weight: 700;
  color: #009645;
  transform: rotate(-2.5deg);
}

/* Hero Key Visual (Wink Model + Phone + Cart + Seoul Skyline) */
.hero-visual-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 32, 16, 0.06);
}

.hero-main-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Right sticker from photo */
.sticker-bubble-meet {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 10px 10px 0 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 176, 80, 0.25);
}

.sticker-bubble-meet span {
  font-family: var(--font-hand);
  font-size: 14px;
  font-weight: 700;
  color: var(--gm-green-deep);
}

/* Hero Titles */
.hero-typography {
  padding: 8px 10px 6px;
  text-align: center;
}

.hero-main-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.6px;
  color: var(--text-main);
}

.hero-main-title .highlight-lead {
  color: var(--gm-green);
  display: inline-block;
}

.hero-sub-title {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-top: 4px;
  letter-spacing: -0.2px;
}

.heart-pulse {
  color: var(--gm-pink);
  display: inline-block;
  animation: heartPulse 1.8s infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.2); }
  70% { transform: scale(1); }
}

/* ==========================================================================
   PRIMARY CTA: Android Download Button (Top Center, No Scrolling Needed!)
   ========================================================================== */
.primary-download-zone {
  padding: 8px 16px 12px;
  position: relative;
  z-index: 10;
}

/* Super Grand Black Capsule Android Button */
.btn-android-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1117;
  color: #ffffff;
  text-decoration: none;
  height: 60px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(0, 176, 80, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

/* Top glass glare */
.btn-android-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.btn-android-main:active {
  transform: scale(0.975);
  background: #181d24;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-android-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.google-play-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-text-block {
  text-align: left;
}

.btn-title-kr {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.btn-desc-kr {
  font-size: 11px;
  color: #00d26a;
  font-weight: 700;
  margin-top: 1px;
}

.btn-arrow-icon {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
}

/* Doodle note below button matching photo */
.doodle-guide-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  padding-right: 14px;
}

.doodle-arrow-svg {
  width: 22px;
  height: 22px;
  stroke: var(--gm-green);
  stroke-width: 2.2;
  fill: none;
}

.doodle-text-kr {
  font-family: var(--font-hand);
  font-size: 17px;
  font-weight: 700;
  color: var(--gm-green);
}

/* ==========================================================================
   4 Features Strip (2x2 Compact Grid, Fully visible on first screen!)
   ========================================================================== */
.features-compact-zone {
  padding: 4px 16px 14px;
}

.features-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compact-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  border: 1px solid #ebf1ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: transform 0.12s;
}

.compact-feature-item:active {
  transform: scale(0.97);
  background: #f7faf8;
}

.mini-circle-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  font-size: 18px;
}

.bg-crown {
  background: linear-gradient(135deg, #00d26a 0%, #00b050 100%);
}

.bg-truck {
  background: linear-gradient(135deg, #2f80ed 0%, #0070c0 100%);
}

.bg-heart {
  background: linear-gradient(135deg, #ff5287 0%, #ff2d6e 100%);
}

.bg-star {
  background: linear-gradient(135deg, #9b51e0 0%, #794aff 100%);
}

.mini-feature-info {
  text-align: left;
}

.mini-feature-title {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.mini-feature-sub {
  font-size: 10px;
  color: #6b7280;
  line-height: 1.2;
  margin-top: 2px;
}

/* ==========================================================================
   Down Arrow Trigger & Expandable Perks (Below First Screen)
   ========================================================================== */
.more-perks-section {
  text-align: center;
  padding: 12px 16px 24px;
  background: #f7faf8;
  border-top: 1px dashed rgba(0, 176, 80, 0.2);
}

.btn-bounce-arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.green-circle-down {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gm-green);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--gm-green-glow);
  animation: bounceDown 1.9s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(2px); }
}

.more-perks-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

/* Expandable Drawer */
.perks-details-wrapper {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-banner-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e5ede7;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.coupon-tag-side {
  background: linear-gradient(135deg, #00c85d 0%, #00b050 100%);
  color: #ffffff;
  padding: 12px 10px;
  min-width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coupon-value {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.coupon-code {
  font-size: 9.5px;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.95;
}

.coupon-content-side {
  flex: 1;
  padding: 10px 12px;
  text-align: left;
}

.coupon-title-kr {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.coupon-desc-kr {
  font-size: 10.5px;
  color: #6b7280;
  margin-top: 2px;
}

.btn-coupon-claim {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gm-green);
  background: var(--gm-green-soft);
  border: 1px solid rgba(0, 176, 80, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-top: 5px;
  cursor: pointer;
}

/* Products Ranking Showcase */
.showcase-block {
  margin-top: 8px;
  text-align: left;
}

.showcase-head-kr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.showcase-title-kr {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.showcase-badge-live {
  font-size: 9.5px;
  font-weight: 700;
  color: #ef4444;
  background: #fee2e2;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.products-mini-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product-mini-card {
  background: #ffffff;
  border-radius: var(--radius-xs);
  padding: 8px;
  border: 1px solid #eef2f0;
  text-align: center;
  cursor: pointer;
}

.product-emoji {
  font-size: 24px;
  margin-bottom: 3px;
}

.product-name-kr {
  font-size: 10.5px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-kr {
  font-size: 11.5px;
  font-weight: 800;
  color: #ef4444;
  margin-top: 1px;
}

/* ==========================================================================
   Footer & Original Box Elements
   ========================================================================== */
.native-footer {
  background: #ffffff;
  padding: 16px 14px 24px;
  border-top: 1px solid #edf2ef;
  text-align: center;
}

.bottom-box-decor-img {
  width: 100%;
  max-height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}

.footer-notice {
  font-size: 10.5px;
  color: #9ca3af;
  line-height: 1.55;
}

/* ==========================================================================
   Sticky Bottom Bar (Always Accessible Android CTA)
   ========================================================================== */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px env(safe-area-inset-bottom, 8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

.sticky-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-logo-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gm-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 3px 8px var(--gm-green-glow);
}

.sticky-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #111827;
}

.sticky-highlight {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gm-green);
}

.btn-sticky-android {
  background: #0d1117;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sticky-android:active {
  transform: scale(0.96);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(17, 24, 39, 0.94);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.toast-msg.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
