/* ══════════════════════════════════════
   EROS SYSTEM — Mobile Responsive
   Target: max-width 767px
   ══════════════════════════════════════ */

@media (max-width: 767px) {

  /* ── Hero ── */
  .hero { min-height: auto; padding: 100px 0 48px; }
  .hero-content { max-width: 100%; padding: 0 20px; }
  .hero-content .reveal { margin-bottom: 20px; }

  .hero-badge { font-size: 12px; padding: 6px 14px; }

  .hero-title {
    font-size: 24px !important; line-height: 1.35;
    word-break: keep-all;
  }
  .hero-highlight { white-space: normal; }

  .hero-sub { font-size: 14px !important; line-height: 1.6; }
  .hero-notice { font-size: 13px; }

  .hero-stats { flex-direction: column; gap: 10px; align-items: stretch; }
  .stat-card { min-width: unset; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
  .stat-value { font-size: 24px; margin-bottom: 0; }
  .stat-label { font-size: 13px; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta a { width: 100%; text-align: center; padding: 14px; font-size: 14px; }

  .hero-rings .ring { opacity: 0.5; }

  .scroll-hint { margin-top: 8px; }
  .scroll-hint i { font-size: 14px; }

  /* ── Section 공통 ── */
  .section { padding: 48px 0; }
  .container { padding: 0 20px; }
  .section-title { font-size: 22px !important; word-break: keep-all; }
  .section-desc { font-size: 13px; }
  .section-subtitle { font-size: 12px; }
  .subsection-title { font-size: 16px; margin: 36px 0 16px; }

  /* ── Story Timeline ── */
  .story-timeline { padding-left: 44px; }
  .story-timeline::before { left: 14px; }
  .story-step-marker { left: -44px; width: 32px; height: 32px; }
  .story-step-marker i { font-size: 12px; }
  .story-step-content { padding: 20px; }
  .story-step-content p { font-size: 13px; line-height: 1.7; }
  .story-step-title { font-size: 15px; }
  .story-quote { font-size: 18px !important; }

  .formula-box { padding: 20px 16px; overflow-x: auto; }
  .formula { font-size: 12px !important; white-space: nowrap; }
  .formula-note, .formula-disclaimer { font-size: 11px; }

  /* ── System Section ── */
  .step-flow { grid-template-columns: 1fr; gap: 12px; }
  .step-flow-card { padding: 20px; }
  .step-flow-num { font-size: 24px; margin-bottom: 8px; }
  .step-flow-card h4 { font-size: 14px; }
  .step-flow-card p { font-size: 12px; }

  .compare-grid { grid-template-columns: 1fr; gap: 12px; }
  .compare-card { padding: 20px; }

  .science-grid-2 { grid-template-columns: 1fr; gap: 10px; }
  .science-card-sm { padding: 16px 20px; }
  .science-card-sm h4 { font-size: 13px; }

  .system-conclusion { padding: 24px; }
  .system-conclusion p { font-size: 14px; }
  .system-conclusion-accent { font-size: 15px !important; }

  /* ── Problem Cards ── */
  .problem-grid, .problem-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .problem-card { padding: 24px; }
  .problem-card h3 { font-size: 18px; }
  .problem-card p { font-size: 13px; }

  /* ── Before/After ── */
  .ba-list { gap: 12px; }
  .ba-item {
    flex-direction: column; gap: 0; padding: 0;
    border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; background: var(--bg-card);
  }
  .ba-before {
    font-size: 13px; padding: 16px; line-height: 1.6;
    background: var(--bg-sub); border-bottom: 1px solid var(--border);
    text-decoration-thickness: 1.5px;
  }
  .ba-before br { display: none; }
  .ba-arrow { display: none; }
  .ba-after {
    font-size: 13px; padding: 16px; line-height: 1.6;
    background: var(--bg-card);
  }
  .ba-after br { display: none; }
  .ba-icon { font-size: 11px; vertical-align: middle; }

  .ba-messages { grid-template-columns: 1fr; gap: 10px; }
  .ba-msg { padding: 16px; }
  .ba-msg-icon { font-size: 18px; margin-bottom: 8px; }
  .ba-msg strong { font-size: 14px; }
  .ba-msg p { font-size: 12px; }

  /* ── Review Slider ── */
  .review-slide { width: 280px; }
  .review-card { padding: 20px; }
  .review-text { font-size: 13px; }

  /* ── Price Cards → 슬라이드 ── */
  #pricing .container { position: relative; }
  .price-highlight-grid {
    display: flex; overflow: hidden;
    gap: 0; grid-template-columns: unset;
    touch-action: pan-y;
  }
  .price-card {
    flex: 0 0 100%; padding: 24px; min-width: 100%;
    transition: transform 0.35s ease;
  }
  .price-more { margin-top: 12px; }

  /* 인디케이터 */
  .price-dots {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 16px;
  }
  .price-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border); transition: all 0.3s;
    cursor: pointer;
  }
  .price-dot.active {
    background: var(--brand-light); width: 24px; border-radius: 4px;
  }

  .price-scroll-hint {
    display: block; text-align: center; font-size: 11px;
    color: var(--text-tertiary); margin-top: 8px;
  }

  /* ── Column Section ── */
  .tags {
    display: flex !important; flex-wrap: nowrap !important; overflow: hidden;
    gap: 0; touch-action: pan-y;
  }
  .tag, .tag-more {
    flex: 0 0 100%; min-width: 100%;
    font-size: 14px; padding: 16px 20px; border-radius: 10px;
    background: var(--bg-sub); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.35s ease; box-sizing: border-box;
    margin: 0;
  }
  .tag-more { color: var(--brand-light); }

  .tag-dots {
    display: flex !important; justify-content: center; gap: 6px;
    margin: 12px 0 16px;
  }
  .tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); transition: all 0.3s; cursor: pointer;
  }
  .tag-dot.active {
    background: var(--brand-light); width: 18px; border-radius: 3px;
  }

  .blog-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg-sub);
    width: 100%; font-size: 14px; margin-bottom: 32px;
  }
  .value-cards { grid-template-columns: 1fr; gap: 12px; }

  /* ── CTA ── */
  .section-cta { padding: 48px 0; }
  .cta-box { background: none; border: none; border-radius: 0; padding: 0; }
  .cta-box::before { display: none; }
  .cta-inner { flex-direction: column; gap: 24px; text-align: center; }
  .cta-left { text-align: center; }
  .cta-title { font-size: 20px !important; }
  .cta-sub { font-size: 13px; margin-bottom: 16px; }
  .cta-trust { justify-content: center; gap: 12px; }
  .cta-right { width: 100%; min-width: unset; }
  .cta-btn-main { padding: 14px; font-size: 14px; }
  .btn-cta-kakao { padding: 12px; font-size: 13px; }
  .cta-disclaimer { font-size: 11px; }

  /* ── Header / Nav Drawer ── */
  .nav-desktop { display: none !important; }
  .nav-toggle { display: flex !important; }

  .nav-mobile {
    position: fixed !important; top: 0; right: 0; width: 75vw; max-width: 300px;
    height: 100vh; background: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex !important; flex-direction: column;
    padding: 80px 28px 40px; gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    z-index: 201; box-shadow: -8px 0 32px rgba(0,0,0,0.4);
  }
  .nav-mobile.open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-close {
    position: absolute; top: 20px; right: 20px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-sub); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .nav-mobile a {
    padding: 16px 0; font-size: 16px; font-weight: 500;
    color: var(--text-secondary); border-bottom: 1px solid var(--border);
    text-decoration: none;
  }
  .nav-mobile a:last-child { border-bottom: none; }
  .nav-mobile a.nav-cta {
    margin-top: 24px; text-align: center; border-bottom: none;
    border-radius: 10px; padding: 14px;
  }
  .nav-mobile a.nav-active { color: var(--brand-light); }

  /* 오버레이 */
  .nav-overlay {
    display: block !important;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }

  .nav-close { display: flex !important; }

  /* ── Footer ── */
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-direction: column; gap: 16px; }

  /* ── Bottom Bar ── */
  .bb-collapsed { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; padding: 12px 16px; }
  .bb-label .bb-desc { display: none; }
  .bb-label .bb-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
  .bb-input { display: none; }
  .bb-actions { width: auto; gap: 8px; flex-shrink: 0; }
  .bb-btn { padding: 10px 24px; font-size: 13px; white-space: nowrap; border-radius: 8px; }
  .bb-kakao { padding: 10px 14px; font-size: 13px; white-space: nowrap; border-radius: 8px; }

  /* ── Floating ── */
  .floating-btns { right: 16px; bottom: 100px; gap: 8px; }
  .fab { width: 44px; height: 44px; font-size: 16px; }

  /* ── Slider Arrows ── */
  .slider-wrap { position: relative; }
  .slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(15,12,30,0.8); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: opacity 0.2s;
  }
  .slider-prev { left: -4px; }
  .slider-next { right: -4px; }
  .slider-arrow { display: flex; }
  /* ── Modal: 모바일에서 완전 비활성 ── */
  .modal-overlay,
  .modal-overlay.open { display: none !important; }

  /* ── Bottom Bar Expanded ── */
  .bb-expanded { padding: 16px; }
  .bb-form-row { flex-direction: column; gap: 8px; }
  .bb-form-row input, .bb-form-row select { width: 100%; }
  #formMessage { width: 100%; margin-top: 8px; }
  .bb-expanded .btn-primary { width: 100%; margin-top: 8px; }

  .br-pc { display: none; }
  .br-mo { display: inline; }

  /* 인기글 카드 모바일 */
  .column-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .column-card {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  /* 기존 vs EROS 차이 섹션 모바일 */
  .diff-grid {
    flex-direction: column;
    gap: 16px;
  }
  .diff-card {
    padding: 28px 22px;
  }

  /* 대표 프로필 + 갤러리 모바일 */
  .team-avatar {
    width: 120px;
    height: 120px;
  }
  .team-gallery-img {
    width: 160px;
    height: 220px;
  }

  /* 갤러리 모바일 */
  .team-gallery { margin-bottom: 32px; padding: 0 36px; }
  .tg-arrow { width: 30px; height: 30px; font-size: 12px; }
  .tg-prev { left: 0; }
  .tg-next { right: 0; }

  /* 서비스 탭 모바일 */
  .svc-tabs {
    gap: 4px;
  }
  .svc-tab {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  .svc-tab span { display: none; }
  .svc-tab i { font-size: 1.1rem; }
  .svc-tab.active span { display: inline; }
}

