/* ═══════════════════════════════════════════════════════════
   MOMENTOR DESIGN SYSTEM v1.0
   통합 반응형 CSS — index.html override용
   ═══════════════════════════════════════════════════════════ */

/* ── 1. CSS 변수 ── */
:root {
  /* Spacing scale (8px grid) */
  --sp-1: 8px;   --sp-2: 16px;  --sp-3: 24px;  --sp-4: 32px;
  --sp-5: 40px;  --sp-6: 48px;  --sp-8: 64px;  --sp-10: 80px;
  --sp-12: 96px; --sp-14: 112px; --sp-16: 128px; --sp-20: 160px;

  /* Typography scale */
  --fs-caption: 12px;
  --fs-label:   13px;
  --fs-body:    16px;
  --fs-lead:    18px;
  --fs-h3:      22px;
  --fs-h2:      28px;
  --fs-h1:      clamp(28px, 4vw, 48px);
  --fs-display: clamp(32px, 5vw, 56px);

  /* Line heights */
  --lh-tight:   1.08;
  --lh-heading: 1.18;
  --lh-body-mobile: 1.80;
  --lh-body-pc:     1.75;

  /* Letter spacing */
  --ls-display: -0.03em;
  --ls-heading: -0.02em;
  --ls-body:    -0.012em;
  --ls-label:    0.12em;
  --ls-wide:     0.20em;

  /* Font weights */
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;

  /* Layout */
  --max-content: 1200px;
  --max-text:    800px;
  --max-prose:   65ch;
  --side-pad-mobile: 24px;
  --side-pad-pc:     80px;

  /* Touch target */
  --touch-min: 54px;

  /* Colors */
  --mint:     rgba(100, 220, 185, 0.9);
  --mint-dim: rgba(100, 220, 185, 0.55);
  --mint-glow: rgba(100, 220, 185, 0.15);
  --bg-card:  rgba(10, 9, 5, 0.85);
  --gold-border: rgba(201, 168, 76, 0.12);
}


/* ══════════════════════════════════════════════
   2. 모바일 기본 (767px 이하)
   ══════════════════════════════════════════════ */

/* 기본 body */
body {
  font-size: var(--fs-body);
  line-height: var(--lh-body-mobile);
  letter-spacing: var(--ls-body);
  -webkit-text-size-adjust: 100%;
}

/* 모바일 H1 */
.hero-headline,
.home-headline {
  font-size: clamp(28px, 7.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* 모바일 섹션 간격 */
.home-section {
  padding: 60px var(--side-pad-mobile);
}
.hero-section {
  padding: 56px var(--side-pad-mobile) 40px;
}
.mid-cta-section {
  padding: 60px var(--side-pad-mobile);
}

/* 모바일 터치 타겟: 모든 버튼/링크 최소 54px */
button,
.btn-begin,
.btn-calculate,
.btn-unseal,
.btn-paywall-cta,
.bnav-btn,
.chapter-tab,
.accordion-header,
a[href],
[role="button"],
[onclick] {
  min-height: var(--touch-min);
}

/* W2 fix: btn-begin 54px 강제 (기존 padding 스타일 override) */
.btn-begin {
  min-height: 54px !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* 버튼 내부 정렬 */
button,
.btn-begin,
.btn-calculate,
.btn-unseal {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 모바일 텍스트 블록: 좌우 24px 확보 */
.hero-sub,
.hero-tagline-sub,
.home-section-label,
.result-section-label,
.ch-identity, .ch-social, .ch-desc, .ch-traits {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

/* 모바일 카드 간격 */
.review-card,
.discover-card,
.how-step {
  margin-bottom: 16px;
}


/* ══════════════════════════════════════════════
   3. 하단 고정 CTA — Glassmorphism (모바일)
   ══════════════════════════════════════════════ */

#bottom-nav {
  /* 기존 bottom-nav에 blur 효과 추가 */
  background: rgba(5, 4, 2, 0.72) !important;
  backdrop-filter: blur(20px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.1) !important;
}

/* Seal CTA 영역 (결과 화면 하단 고정) */
#result-sticky-cta,
.result-sticky-footer,
#sticky-cta {
  background: linear-gradient(
    180deg,
    rgba(5, 4, 2, 0) 0%,
    rgba(5, 4, 2, 0.85) 30%,
    rgba(5, 4, 2, 0.96) 100%
  ) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}


/* ══════════════════════════════════════════════
   4. PC 레이아웃 (1024px+)
   ══════════════════════════════════════════════ */

@media (min-width: 1024px) {

  /* ── 4-1. 폰트 시스템 ── */
  body {
    font-size: var(--fs-lead);      /* 18px */
    line-height: var(--lh-body-pc); /* 1.75 */
  }

  /* H1 — W1 fix: !important로 기존 inline animation specificity 제압 */
  .hero-headline,
  .home-headline {
    font-size: clamp(36px, 3.5vw, 48px) !important;
    line-height: var(--lh-tight) !important;
    letter-spacing: var(--ls-display) !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* H2 */
  .section-heading,
  .chapter-headline,
  .mid-cta-headline {
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    margin-bottom: 32px;
  }

  /* H3 */
  .home-section-label,
  .result-section-label,
  .chapter-subtitle {
    font-size: var(--fs-label);
    letter-spacing: var(--ls-wide);
    font-weight: var(--fw-medium);
    margin-bottom: 24px;
  }

  /* 본문 */
  .hero-sub,
  .hero-tagline-sub,
  .home-sub,
  .mid-cta-text {
    font-size: var(--fs-lead);
    line-height: 1.78;
    max-width: var(--max-prose);
    letter-spacing: var(--ls-body);
  }

  /* 챕터 본문 */
  .ch-identity, .ch-social, .ch-desc, .ch-traits {
    font-size: 18px;
    line-height: 1.82;
    letter-spacing: var(--ls-body);
    max-width: 68ch;
  }

  /* ── 4-2. 카드 내 타이포 일관성 ── */
  .discover-title,
  .how-title,
  .review-author,
  .review-name {
    font-size: 18px;
    font-weight: var(--fw-medium);
    letter-spacing: -0.014em;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .discover-desc,
  .how-desc,
  .review-text,
  .review-body {
    font-size: 15px;
    line-height: 1.78;
    opacity: 0.78;
    letter-spacing: -0.008em;
  }
  .discover-label,
  .how-num,
  .review-date,
  .review-verified {
    font-size: 12px;
    letter-spacing: var(--ls-label);
    opacity: 0.5;
    font-weight: var(--fw-medium);
  }

  /* 중요 숫자 강조 */
  #res-rarity-pct,
  .rarity-banner-pct,
  .rarity-pct,
  .compat-score-value,
  #compat-score-display {
    font-weight: var(--fw-semi);
    letter-spacing: -0.025em;
    color: var(--mint);
    text-shadow: 0 0 24px var(--mint-glow);
  }

  /* ── 4-3. 레이아웃 ── */

  /* 콘텐츠 최대 너비 1200px */
  .hero-section,
  .home-section,
  .mid-cta-section,
  .pc-faq-section {
    max-width: var(--max-content);
    margin-left: auto;
    margin-right: auto;
  }

  /* 읽기 전용 텍스트 블록 800px */
  .result-section {
    max-width: var(--max-text);
    margin: 24px auto;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 56px 64px;
    box-shadow:
      inset 0 1px 0 rgba(201,168,76,0.08),
      0 24px 48px rgba(0,0,0,0.4);
  }

  /* 섹션 간격 */
  .home-section {
    padding: 96px var(--side-pad-pc);
  }
  .hero-section {
    padding: 160px var(--side-pad-pc) 96px;
    min-height: 85vh;
    gap: 96px;
  }
  .mid-cta-section {
    padding: 96px var(--side-pad-pc);
  }
  .pc-faq-section {
    padding: 80px var(--side-pad-pc);
  }

  /* 섹션 구분선 */
  .home-section + .home-section,
  .home-section + .mid-cta-section,
  .mid-cta-section + .home-section {
    border-top: 1px solid rgba(201,168,76,0.06);
  }

  /* ── 4-4. 카드 레이아웃 강화 ── */
  .review-card,
  .discover-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    padding: 32px 28px;
  }

  .how-step {
    background: rgba(10, 9, 5, 0.7);
    border: 1px solid rgba(201,168,76,0.08);
    border-radius: 12px;
    padding: 32px 24px;
    border-top: none;
  }

  /* ── 4-5. 호버 인터랙션 ── */
}

/* hover 지원 기기만 (터치 제외) */
@media (min-width: 1024px) and (hover: hover) {

  /* 카드 lift */
  .review-card,
  .discover-card {
    transition:
      transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      border-color 0.25s ease,
      box-shadow 0.25s ease;
    cursor: default;
  }
  .review-card:hover,
  .discover-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201,168,76,0.24);
    box-shadow:
      0 16px 48px rgba(0,0,0,0.5),
      0 0 0 1px rgba(201,168,76,0.08);
  }

  .how-step {
    transition:
      transform 0.22s ease,
      border-color 0.22s ease,
      background 0.22s ease;
  }
  .how-step:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.18);
    background: rgba(14, 12, 7, 0.9);
  }

  /* 버튼 */
  .btn-begin,
  .btn-calculate {
    transition:
      background 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.15s ease;
  }
  .btn-begin:hover,
  .btn-calculate:hover {
    box-shadow: 0 8px 32px rgba(201,168,76,0.28);
    transform: translateY(-2px);
  }

  .btn-unseal,
  .btn-paywall-cta {
    transition: box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
  }
  .btn-unseal:hover,
  .btn-paywall-cta:hover {
    box-shadow: 0 8px 32px rgba(201,168,76,0.35);
    transform: translateY(-2px);
  }

  /* FAQ */
  .accordion-header {
    transition: background 0.15s ease;
  }
  .accordion-header:hover {
    background: rgba(201,168,76,0.04);
  }
  .accordion-header:hover .accordion-title {
    color: rgba(201,168,76,0.85);
  }

  /* PC 네비 */
  .pc-nav-link:hover {
    color: rgba(201,168,76,0.8);
  }
}


/* ══════════════════════════════════════════════
   5. 1440px+ 와이드스크린
   ══════════════════════════════════════════════ */

@media (min-width: 1440px) {
  .hero-section {
    padding: 128px 120px 96px;
    gap: 96px;
  }
  .home-section {
    padding: 100px 120px;
    max-width: 1400px;
  }
  .mid-cta-section {
    padding: 80px 120px;
    max-width: 1400px;
  }
  .hero-headline,
  .home-headline {
    font-size: clamp(44px, 3.8vw, 52px);
  }
}


/* ══════════════════════════════════════════════
   6. 스크롤 애니메이션 클래스
   ══════════════════════════════════════════════ */

@media (min-width: 1024px) {
  .sr-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .sr-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .sr-delay-1 { transition-delay: 0.08s; }
  .sr-delay-2 { transition-delay: 0.16s; }
  .sr-delay-3 { transition-delay: 0.24s; }
}


/* ══════════════════════════════════════════════
   7. 접근성 & 기타
   ══════════════════════════════════════════════ */

/* 포커스 링 */
:focus-visible {
  outline: 2px solid rgba(201,168,76,0.6);
  outline-offset: 3px;
}

/* 애니메이션 선호 없음 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .sr-hidden {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOMENTOR S+ UPGRADE — 긴급 고도화 패치
   ═══════════════════════════════════════════════════════════ */

/* ── [Critical 1] 골드 버튼 중앙 정렬 ── */
/* PC에서 히어로 좌열 CTA는 left-align 유지, 나머지 섹션은 center */
.mid-cta-section .btn-begin,
.home-section .btn-begin,
.result-cta-section .btn-unseal,
.result-cta-section .btn-paywall-cta,
.final-cta-section .btn-begin,
.final-cta-section .btn-unseal {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  /* PC: 히어로 좌열은 left 유지 */
  .hero-cta-wrap .btn-begin {
    margin-left: 0;
    margin-right: 0;
  }
  /* 나머지 섹션은 center */
  .mid-cta-section .btn-begin,
  .home-section .btn-begin {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ── [Critical 2] 히어로 섹션 상단 패딩 120px+ ── */
@media (min-width: 1024px) {
  .hero-section {
    padding-top: 128px !important;
    min-height: 88vh;
  }
  /* 히어로 visual 이미지 잘림 방지 */
  .hero-visual {
    overflow: visible;
    padding-top: 16px;
  }
  .hero-visual-svg {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
  }
}


/* ── [Critical 3] 카드/섹션 내부 패딩 32px+ ── */
.result-section,
.review-card,
.discover-card,
.how-step,
.pricing-card,
.accordion-item {
  padding: 32px !important;
}

@media (min-width: 1024px) {
  .result-section {
    padding: 56px 64px !important;
  }
  .review-card,
  .discover-card {
    padding: 36px 32px !important;
  }
  .how-step {
    padding: 36px 28px !important;
  }
}


/* ── [System 1] word-break: keep-all (한국어 어색한 줄바꿈 방지) ── */
body,
.ch-identity, .ch-social, .ch-desc, .ch-traits,
.hero-sub, .home-sub, .mid-cta-text,
.how-desc, .discover-desc,
.review-text, .accordion-body {
  word-break: keep-all;
  overflow-wrap: break-word;
}


/* ── [System 2] line-height 1.8 일괄 적용 ── */
.ch-identity, .ch-social, .ch-desc, .ch-traits,
.hero-sub, .home-sub, .mid-cta-text,
.how-desc, .discover-desc,
.review-text, .accordion-body,
p {
  line-height: 1.8;
}


/* ── [System 3] PC 3열 그리드 — How It Works & Discover ── */
@media (min-width: 1024px) {
  /* How It Works: 이미 3열이지만 강제 적용 */
  .home-section:has(.how-step) {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 32px !important;
    align-items: start;
  }
  .home-section:has(.how-step) .home-section-label {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .how-step {
    border-top: 1px solid rgba(201,168,76,0.12);
    border-left: none;
    margin-bottom: 0;
  }

  /* Discover: 3열로 전환 */
  .home-section:has(.discover-card) {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 24px !important;
    align-items: start;
  }
  .home-section:has(.discover-card) .home-section-label {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .discover-card {
    margin-bottom: 0;
  }

  /* Reviews: 3열 */
  .home-reviews-section .reviews-grid,
  .home-reviews-section > div:not(.home-section-label) {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
}


/* ── [Experience 1] 터치 타겟 56px ── */
@media (max-width: 1023px) {
  .btn-begin,
  .btn-calculate,
  .btn-unseal,
  .btn-paywall-cta,
  .bnav-btn,
  .chapter-tab,
  .accordion-header,
  .field-input,
  .field-select,
  input[type="text"],
  input[type="number"],
  input[type="email"],
  select {
    min-height: 56px !important;
  }
  button {
    min-height: 56px;
  }
}


/* ── [Experience 2] 로딩 화면 Fade-in 스켈레톤 ── */
#screen-loading {
  animation: ds-fadeIn 0.4s ease forwards;
}

@keyframes ds-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 결과 화면 진입 fade */
#screen-result.active {
  animation: ds-fadeIn 0.5s ease forwards;
}
#screen-compat-result.active {
  animation: ds-fadeIn 0.4s ease forwards;
}

/* 스켈레톤: 로딩 중 플레이스홀더 */
.skeleton-line {
  background: linear-gradient(
    90deg,
    rgba(201,168,76,0.04) 25%,
    rgba(201,168,76,0.10) 50%,
    rgba(201,168,76,0.04) 75%
  );
  background-size: 200% 100%;
  animation: ds-shimmer 1.6s infinite;
  border-radius: 4px;
  height: 16px;
  margin-bottom: 12px;
}

@keyframes ds-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ── [Experience 3] 입력 폼 보라색 글로우 + 모바일 키보드 처리 ── */
.field-input:focus,
.field-select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-bottom-color: rgba(160, 120, 255, 0.8) !important;
  box-shadow: 0 4px 16px rgba(140, 100, 255, 0.18),
              0 1px 0 rgba(160, 120, 255, 0.4) !important;
  transition: border-bottom-color 0.2s ease, box-shadow 0.2s ease;
}

/* 모바일: 키보드 올라올 때 화면 스크롤 처리 */
@media (max-width: 767px) {
  #screen-input {
    padding-bottom: env(keyboard-inset-height, 300px);
    scroll-padding-bottom: 80px;
  }
}


/* ── [Compliance] z-index 안전 체크 ── */
/* 버튼 클릭 방해 오버레이 없음 확인 — 투명 레이어 pointer-events 차단 */
body::before,
body::after {
  pointer-events: none !important;
}
#screen-home::before,
#screen-home::after {
  pointer-events: none !important;
}


/* ── 버튼 중앙 정렬 픽스 (2026-03-25 이든 직접 지시) ── */

/* "Begin Chapter I / II / III →" 버튼 */
.btn-narrative-next {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  text-align: center;
}

/* "Unseal All Three Chapters — 1 Seal" 버튼 */
.paywall-unlock-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 버튼 래퍼가 있는 경우 */
.ch-paywall-floating {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ═══════════════════════════════════════════════════════════
   MOMENTOR FINAL S+ PATCH — 이든 ULTIMATUM 반영
   2026-03-25
   ═══════════════════════════════════════════════════════════ */

/* ── [Fix 1] 히어로 이미지 절단 방지 ── */
/* nav 실제 높이: 64px (index.html #pc-top-header height:64px 확인) */
:root {
  --nav-height: 64px;
}

@media (min-width: 1024px) {
  .hero-section {
    margin-top: var(--nav-height, 64px) !important;
    padding-top: 80px !important;
    min-height: calc(80vh - var(--nav-height, 64px)) !important;
    max-height: none; /* 내용 잘림 방지 */
    box-sizing: border-box;
  }

  /* 히어로 비주얼 이미지 잘림 방지 */
  .hero-visual {
    max-height: 80vh !important;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-visual img,
  .hero-visual svg,
  .hero-visual canvas,
  .hero-visual-svg {
    max-height: 75vh !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
}


/* ── [Fix 2] 모든 섹션 골드 버튼 + 핵심 콘텐츠 강제 중앙 정렬 ── */

/* 섹션 CTA 래퍼들 */
.result-cta-section,
.final-cta-section,
.mid-cta-section,
.ch-paywall-floating,
.paywall-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* 골드 버튼 전체 */
.btn-unseal,
.btn-paywall-cta,
.paywall-unlock-btn,
.btn-narrative-next,
.sticky-paywall-btn {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: fit-content !important;
  max-width: 480px;
  text-align: center !important;
}

/* btn-begin은 홈 히어로 좌열(PC)만 left, 나머지 center */
.btn-begin {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: fit-content !important;
  text-align: center !important;
}

@media (min-width: 1024px) {
  /* PC 히어로 좌열은 left 유지 */
  .hero-body .btn-begin,
  .hero-cta-wrap .btn-begin {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }
}


/* ── [Upgrade] 텍스트 가독성 전면 개선 ── */

/* 전역 폰트 렌더링 */
*,
*::before,
*::after {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility;
}

/* 본문 색상: #E5E7EB (Slate-200) */
body {
  color: #E5E7EB !important;
}

/* 본문 텍스트 클래스들 */
.ch-desc,
.ch-identity,
.ch-social,
.ch-traits,
.home-sub,
.hero-sub,
.how-desc,
.discover-desc,
.review-text,
.accordion-body,
.mid-cta-text,
p {
  color: #E5E7EB !important;
  font-weight: 400 !important;
}

/* 강조 텍스트: Pure White */
.hero-headline,
.home-headline,
.section-heading,
.chapter-headline,
.result-heading,
h1, h2, h3 {
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

/* 서브 레이블은 골드 유지 */
.home-section-label,
.section-label {
  color: var(--accent, rgba(201,168,76,0.9)) !important;
  font-weight: 500 !important;
}

/* 리뷰 별점, 작은 메타 텍스트 */
.review-name,
.review-meta,
.how-step-num {
  color: rgba(255,255,255,0.6) !important;
}


/* ── [Layout] 섹션 간격 PC 160px / 모바일 80px ── */

/* 모바일 기본 */
section,
.home-section,
.result-section,
.discover-section,
.reviews-section,
.mid-cta-section,
.final-cta-section,
.how-section {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

/* PC — 섹션 상하 여백 200px */
@media (min-width: 1024px) {
  .home-section,
  .discover-section,
  .reviews-section,
  .final-cta-section,
  .how-section {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }
}


/* ── [Layout] 카드 내부 패딩 통일 ── */

/* 모바일: 24px */
.result-section,
.review-card,
.discover-card,
.how-step,
.pricing-card,
.accordion-item,
.ch-paywall-floating {
  padding: 24px !important;
}

/* PC: 40px */
@media (min-width: 1024px) {
  .result-section,
  .review-card,
  .discover-card,
  .how-step,
  .pricing-card {
    padding: 40px !important;
  }
  .accordion-item {
    padding: 24px 40px !important;
  }
}

/* ── [Pricing] Seal Explainer & Labels ── */
.seal-explainer {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 560px;
  padding: 20px 24px;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px;
}
.seal-explainer-main {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 8px;
}
.seal-explainer-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}
.seal-explainer strong {
  color: rgba(201,168,76,0.9);
  font-weight: 600;
}

/* 섹션 라벨 */
.pricing-tier-label {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(201,168,76,0.7);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── [Pricing] Product Badge ── */
.product-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(201,168,76,0.9);
  margin-bottom: 12px;
}

/* Personal 카드 강조 */
.product-card:first-of-type,
.product-select-card:first-of-type {
  border-color: rgba(201,168,76,0.3) !important;
  background: rgba(201,168,76,0.04) !important;
}

/* ── [Reviews] 3개/4개 제한 — 명시적 셀렉터로 강화 ── */
.review-cards-grid .home-review-card:nth-child(n+4) {
  display: none !important;
}

@media (min-width: 1024px) {
  /* PC: 3열 그리드, 4번째 이후 숨김 유지 */
  .review-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

/* ══════════════════════════════════════════════
   NAV AUTH: Sign in / Create account (2026-03-25)
   ══════════════════════════════════════════════ */

/* Logo baseline alignment */
.pc-header-logo {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}
.pc-nav-link {
  top: 0 !important;
}

/* Guest action buttons */
.pc-nav-guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-nav-signin {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s;
  white-space: nowrap;
}
.pc-nav-signin:hover { color: var(--gold); }
.pc-nav-signup {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 40px;
  cursor: pointer;
  padding: 6px 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.pc-nav-signup:hover { background: rgba(201,168,76,0.1); }

/* Compatibility hero card PC top spacing */
@media (min-width: 768px) {
  .compat-hero-card {
    margin-top: 56px !important;
  }
}

/* Mobile nav guest actions */
@media (max-width: 767px) {
  .pc-nav-guest-actions { gap: 6px; }
  .pc-nav-signup { font-size: 10px; padding: 5px 12px; }
  .pc-nav-signin { font-size: 10px; padding: 5px 8px; }
}

/* ══════════════════════════════════════════════
   FIX BATCH: Begin btn center + Sign-in hint + City search (2026-03-25)
   ══════════════════════════════════════════════ */

/* 1. hero-cta-wrap 모바일에서 완전 숨김 (hero-cta-inline이 모바일 CTA 담당) */
@media (max-width: 767px) {
  .hero-cta-wrap {
    display: none !important;
  }
}

/* hero-cta-inline 모바일 가운데 정렬 */
.hero-cta-inline {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

/* 2. Sign in / Not now 정렬 개선 */
#home-signin-hint {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  text-align: center !important;
  padding: 20px 24px !important;
}
#home-signin-hint p {
  margin-bottom: 0 !important;
}
#home-signin-hint button:first-of-type {
  display: block !important;
  width: auto !important;
  min-width: 140px !important;
}
#home-signin-hint button:last-of-type {
  display: block !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  font-size: 0.75rem !important;
  opacity: 0.6 !important;
  transition: opacity 0.2s !important;
}
#home-signin-hint button:last-of-type:hover {
  opacity: 1 !important;
}

/* ── cc-bot-ss: match cc-top-ss font style (2026-03-25) ── */
.cc-bot-ss {
  font-size: 12.5px !important;
  color: var(--text-body) !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
  letter-spacing: .01em !important;
}

/* ── Pricing cards: align tops uniformly (2026-03-25) ── */
.product-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.product-card .product-name {
  margin-top: 8px !important;
}

/* ── DATE OF BIRTH + CALENDAR 토글 겹침 방지 (2026-03-25) ── */
.field-group > div[style*="justify-content:space-between"] {
  flex-wrap: wrap !important;
  gap: 6px 0 !important;
}
.cal-toggle-mini {
  flex-shrink: 0;
}

/* ── cal-mini-btn: 전역 button min-height 56px 예외 처리 (2026-03-25) ── */
.cal-mini-btn {
  min-height: 32px !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
}

/* ══════════════════════════════════════════════════════
   [TITAN S+] PC & Mobile 고도화 (2026-03-25)
   ══════════════════════════════════════════════════════ */

/* ── PC: Hero padding-top 160px ── */
@media (min-width: 1024px) {
  .hero-section {
    padding-top: 160px !important;
  }

  /* 섹션 간 상하 여백 200px */
  .home-section {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }
  .mid-cta-section {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
  }

  /* 그리드 gap 48px 통일 */
  .home-section:has(.how-step) {
    gap: 48px !important;
  }
  .home-section:has(.discover-card) {
    gap: 48px !important;
  }
  .home-reviews-section .reviews-grid,
  .home-reviews-section > div:not(.home-section-label) {
    gap: 48px !important;
  }
  .review-cards-grid {
    gap: 48px !important;
  }

  /* 버튼·타이틀 중앙 정렬 강화 */
  .home-section-label {
    text-align: center !important;
    width: 100% !important;
  }
  .home-section > .btn-begin,
  .home-section > .btn-paywall-cta,
  .hero-section .btn-begin {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 배경 그래픽 z-index 보정 */
  .hero-bg,
  .hero-orb,
  [class*="hero-bg"],
  [class*="hero-orb"] {
    z-index: 0 !important;
    opacity: 0.35 !important;
  }
  .hero-content,
  .hero-text,
  .hero-section > * {
    position: relative;
    z-index: 1;
  }
}

/* ── Mobile: 독서 경험 최적화 ── */
@media (max-width: 1023px) {
  /* 본문 폰트 16px / 줄간격 1.85 / 고대비 화이트 */
  .cc-bot-ss,
  .chapter-content p,
  .result-section p,
  .home-section p,
  .home-section li,
  .discover-card p,
  .pc-faq-a,
  .accordion-body {
    font-size: 16px !important;
    line-height: 1.85 !important;
    color: #F9FAFB !important;
    word-break: keep-all !important;
  }

  /* 좌우 여백 24px */
  .home-section,
  .hero-section,
  .mid-cta-section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* 모바일 터치 타겟 56px 강화 */
  button:not(.ph-back):not(.compat-back-btn):not(.chapter-tab):not(.cal-mini-btn):not(.mark-btn):not(.refresh-btn):not(.filter-btn):not(.auth-btn):not(.google-btn),
  input[type="text"],
  input[type="email"],
  input[type="number"],
  select,
  .field-select,
  .field-input {
    min-height: 56px !important;
  }
}

/* ════════════════════════════════════════════════════════════
   ✦ [S+ TITAN] Momentor 통합 고도화 — 2026-03-25
   PC 공간감 / 모바일 가독성 / 공통 프리미엄 마감
   ════════════════════════════════════════════════════════════ */

/* ── PART 3: 공통 — 폰트 렌더링 ── */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── PART 3: 공통 — 버튼 인터랙션 ── */
button:not(.bnav-btn):not(.chapter-tab):not(.cal-mini-btn):not(.ph-back):not(.compat-back-btn) {
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease, border-color 0.2s ease !important;
}
button:not(.bnav-btn):not(.chapter-tab):not(.cal-mini-btn):not(.ph-back):not(.compat-back-btn):active {
  transform: scale(0.97) !important;
}
@media (hover: hover) {
  button:not(.bnav-btn):not(.chapter-tab):not(.cal-mini-btn):not(.ph-back):not(.compat-back-btn):hover {
    transform: scale(0.98) !important;
  }
}

/* ── PART 3: 공통 — Glassmorphism 카드 ── */
.how-step,
.discover-card,
.home-review-card,
.pc-faq-item {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

/* ── PART 3: 공통 — 섹션 Fade-in & Slide-up ── */
@keyframes titan-fadein {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.home-section,
.mid-cta-section,
.pc-faq-section,
.hero-section {
  animation: titan-fadein 0.8s ease-out both;
}

/* ── PART 1: PC — 히어로 padding-top 160px ── */
@media (min-width: 1024px) {
  .hero-section {
    padding-top: 160px !important;
    min-height: 85vh;
  }

  /* 섹션 간격 200px */
  .home-section {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }

  /* 그리드 gap 48px */
  .home-section:has(.how-step) {
    gap: 48px !important;
  }
  .home-section:has(.discover-card) {
    gap: 48px !important;
  }
  .home-reviews-section .reviews-grid,
  .home-reviews-section > div:not(.home-section-label) {
    gap: 48px !important;
  }

  /* max-width 1200px + 강제 중앙 정렬 */
  .home-section,
  .mid-cta-section,
  .pc-faq-section {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 골드 버튼 & 타이틀 중앙 정렬 강화 */
  .home-section-label,
  .section-title,
  .hero-title,
  .mid-cta-section h2,
  .mid-cta-section p {
    text-align: center !important;
  }
  .home-section > .btn-begin,
  .mid-cta-section > .btn-begin,
  .hero-section .btn-begin {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ── PART 2: 모바일 — 독서 경험 최적화 ── */
@media (max-width: 1023px) {
  /* 본문 폰트·줄간격·색상 */
  .cc-bot-ss,
  .cc-top-ss,
  .result-section p,
  .ch-content p,
  .chapter-content p,
  .prologue-body,
  .compat-prologue-body,
  [class*="chapter-body"],
  [class*="chapter-text"] {
    font-size: 16px !important;
    line-height: 1.85 !important;
    color: #F0F0F0 !important;
    word-break: keep-all !important;
  }

  /* 좌우 여백 24px */
  .container,
  .result-section,
  .compat-input-wrap,
  .ch-content,
  .chapter-content {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* word-break 전역 적용 */
  p, span, div {
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}
