/* ============================================================
   Revix /welcome — Layout / Typography / Floating cleanup
   base_public.html 의 landing.css 뒤에 1줄 추가:
     <link rel="stylesheet" href="{{ url_for('static', filename='css/landing-overrides.css') }}">
   ============================================================ */

/* ---------- 1. 로고(워드마크) 크게 + 스파클 ---------- */
.lp-nav .wordmark {
  font-size: 26px;
  letter-spacing: -0.03em;
  gap: 4px;
}
.lp-nav .wordmark .wordmark-dot {
  /* 점 → 스파클(★ 4점) 로 교체 */
  width: 14px; height: 14px; background: transparent;
  transform: translateY(-10px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'><path d='M12 2l1.6 6.4L20 10l-6.4 1.6L12 18l-1.6-6.4L4 10l6.4-1.6z'/></svg>");
  background-repeat: no-repeat; background-size: contain;
  border-radius: 0;
}

/* ---------- 2. 히어로 카피 영역 폭/간격 정리 ---------- */
.lp-hero--bg {
  min-height: 100vh;
  padding-block: calc(64px + 40px) 64px;
  word-break: keep-all;       /* 한글 어절 단위 줄바꿈(잘림 방지) — 자식 상속 */
  overflow-wrap: break-word;
}
.lp-hero--bg .lp-hero-grid {
  grid-template-columns: minmax(0, 560px);  /* 카피 폭 고정 → 카드와 안 겹침 */
  max-width: 1360px;
}

/* H1 — 깔끔한 2줄(40~64px 클램프, 줄간격 타이트) */
.lp-hero--bg .hero-title {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 0 0 20px;
  word-break: keep-all;       /* 한글 단어 단위 줄바꿈 */
}
.lp-hero--bg p.sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-500);
  margin: 0 0 28px;
  max-width: 480px;
}

/* hero-features 3카드 — 아이콘 더 크고 컬러 배지 진하게 */
.lp-hero--bg .hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  max-width: 520px;
  margin: 8px 0 32px;
  padding: 0;
  list-style: none;
}
.lp-hero--bg .hero-features li {
  display: flex; flex-direction: column; gap: 6px;
  background: transparent; padding: 0;
}
.lp-hero--bg .hero-features .hf-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.lp-hero--bg .hero-features .hf-icon--chart { background: var(--accent-pale); color: var(--accent); }
.lp-hero--bg .hero-features .hf-icon--heart { background: #ffe4e6; color: #f43f5e; }
.lp-hero--bg .hero-features .hf-icon--star  { background: #fef3c7; color: #d97706; }
.lp-hero--bg .hero-features strong { font-size: 15px; font-weight: 800; }
.lp-hero--bg .hero-features .hf-sub { font-size: 12.5px; color: var(--ink-400); }

/* ---------- 3. CTA — 민트 그라데이션 ---------- */
.lp-hero--bg .cta-row { gap: 14px; margin-top: 4px; }
.lp-hero--bg .cta-row .btn-primary {
  background: linear-gradient(135deg, oklch(0.58 0.22 260) 0%, oklch(0.50 0.20 260) 100%);
  color: #fff;
  border: none;
  height: 56px; padding: 0 32px;
  border-radius: 100px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(37,99,235,0.32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-hero--bg .cta-row .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,99,235,0.4);
  background: linear-gradient(135deg, oklch(0.52 0.22 260) 0%, oklch(0.44 0.19 260) 100%);
}
.lp-hero--bg .btn-link-play {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-700); font-weight: 600; font-size: 15px;
  text-decoration: none;
}
.lp-hero--bg .btn-link-play .play-bubble {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-pale); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 4. 브랜드 스트립 — 톤다운 + 1줄 ---------- */
.lp-hero--bg .hero-trust { margin-top: 36px; }
.lp-hero--bg .hero-trust-label {
  display: block; font-size: 12px; color: var(--ink-400);
  margin-bottom: 12px;
}
.lp-hero--bg .brand-strip {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  align-items: center;
}
.lp-hero--bg .brand-strip span {
  font-size: 13px; font-weight: 700;
  color: var(--ink-300);              /* 더 흐리게 */
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- 5. 우측 플로팅 카드 — 크게 / 컬러 배지 ---------- */
.lp-hero-cards {
  top: 14%;
  right: 5%;
  gap: 18px;
}
.lp-hero-cards .lp-hcard:nth-child(1),
.lp-hero-cards .lp-hcard:nth-child(2),
.lp-hero-cards .lp-hcard:nth-child(3) {
  margin: 0;                          /* 들쭉날쭉한 마진 제거 */
}
.lp-hero-cards .lp-hcard:nth-child(2) { margin-right: 32px; } /* 가운데만 살짝 들여쓰기 */

.lp-hcard {
  min-width: 230px;
  padding: 14px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.04);
  box-shadow: 0 14px 36px rgba(15,23,42,0.08);
  gap: 14px;
}
/* 카드 안 아이콘을 컬러 원형 배지로 통일 */
.lp-hcard-emoji,
.lp-hcard .lp-hcard-ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.lp-hcard--heart  .lp-hcard-emoji { background: #ffe4e6; }
.lp-hcard--repeat .lp-hcard-ic    { background: #d1fae5; }
.lp-hcard--star   .lp-hcard-ic    { background: #fef3c7; }

.lp-hcard strong { font-size: 14px; font-weight: 800; }
.lp-hcard .lp-hcard-label { font-size: 12px; font-weight: 600; color: var(--ink-400); }
.lp-hcard .lp-hcard-num { font-size: 20px; font-weight: 900; }

/* 반응형 — 1280px 이상에서만 풀 사이즈, 1100~1280은 축소, 1100↓는 숨김 */
@media (max-width: 1280px) {
  .lp-hero-cards { transform: scale(0.88); transform-origin: top right; }
}
@media (max-width: 1100px) {
  .lp-hero-cards { display: none; }   /* 어중간 구간 깔끔히 제거 */
}
@media (max-width: 720px) {
  /* 모바일: 상단 콘텐츠 + 하단 일러스트 스테이지 구성 */
  .lp-hero--bg {
    min-height: auto;
    padding: calc(64px + 16px) 20px 0;
    background-size: 100% auto;        /* 가로폭 채우기 */
    background-position: center bottom; /* 세로형 화면에서 하단 정렬 */
    background-repeat: no-repeat;
    background-color: #f4f7f4;
    display: block;                    /* flex center 해제 */
  }
  /* 그라데이션: 상단 불투명 → 65% 지점부터 투명 (하단 일러스트 보임) */
  .lp-hero--bg::before {
    background: linear-gradient(180deg,
      rgba(245,248,245,0.98) 0%,
      rgba(245,248,245,0.96) 35%,
      rgba(245,248,245,0.55) 55%,
      rgba(245,248,245,0) 70%,
      rgba(245,248,245,0) 100%);
  }
  /* 콘텐츠 그리드: 1열 + 하단 일러스트 자리 확보 (3:2 비율 ≈ vw × 0.62) */
  .lp-hero--bg .lp-hero-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding-bottom: calc(100vw * 0.62);
  }
  .lp-hero--bg .hero-title { font-size: 32px; line-height: 1.15; margin-bottom: 14px; }
  .lp-hero--bg p.sub { font-size: 15px; line-height: 1.55; margin-bottom: 22px; }

  .lp-hero--bg .hero-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
    margin: 4px 0 24px;
  }
  .lp-hero--bg .hero-features .hf-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 4px; }
  .lp-hero--bg .hero-features strong { font-size: 12.5px; }
  .lp-hero--bg .hero-features .hf-sub { font-size: 11px; line-height: 1.35; }

  /* CTA — 세로 스택, 풀-와이드 */
  .lp-hero--bg .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .lp-hero--bg .cta-row .btn-primary {
    height: 52px; padding: 0 24px; width: 100%;
    font-size: 15px;
  }
  .lp-hero--bg .btn-link-play { justify-content: center; }

  /* 신뢰 영역 — 가독성 확보 */
  .lp-hero--bg .hero-trust { margin-top: 28px; }
  .lp-hero--bg .hero-trust-label { font-size: 12px; margin-bottom: 10px; }
  .lp-hero--bg .brand-strip {
    gap: 6px 16px;
    justify-content: flex-start;
  }
  .lp-hero--bg .brand-strip span {
    font-size: 11px;
    color: var(--ink-500);
  }
}

/* 작은 폰(≤390px) — 타이틀·피처 더 축소 */
@media (max-width: 390px) {
  .lp-hero--bg .hero-title { font-size: 28px; }
  .lp-hero--bg .hero-features strong { font-size: 11.5px; }
  .lp-hero--bg .hero-features .hf-sub { font-size: 10.5px; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE HERO REDESIGN — 인라인 일러스트 + 카드형 피처 + 2-행 nav
   모바일에서는 위 720/390 규칙을 아래 블록이 덮어씀.
   ════════════════════════════════════════════════════════════ */
.hero-art-inline { display: none; }
.lp-nav-mobile-ctarow { display: none; }

@media (max-width: 720px) {
  /* ── 1) 모바일 nav: Toss-style — 로고(좌) + 햄버거(우) 두 요소만 ── */
  .nav-hamburger {
    display: inline-flex !important;
    margin-left: auto;
    order: 3;
  }
  .lp-nav-mobile-ctarow { display: none !important; }

  /* 모바일에서 sticky nav 항상 솔리드 (랜딩의 transparent override) */
  .lp-landing .lp-nav,
  .lp-nav {
    background: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid var(--ink-100) !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
  }

  .lp-nav-inner {
    padding: 10px 16px !important;
    gap: 8px !important;
  }
  /* CTA 그룹·중앙 메뉴 모두 햄버거 드로어로 — top bar에서는 제거 */
  .lp-nav .nav-desktop.nav-cta { display: none !important; }
  .lp-nav .nav-desktop.nav-center { display: none !important; }

  /* 햄버거 드로어: 브랜드 민트 컬러 (기본 --accent 파랑 오버라이드) */
  .nav-mobile .nav-mobile-cta {
    background: #10b981 !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(16,185,129,0.28);
  }
  .nav-mobile .nav-mobile-cta:hover,
  .nav-mobile .nav-mobile-cta:active {
    background: #059669 !important;
  }
  /* 드로어 링크 hover에 살짝 민트 톤 */
  .nav-mobile a:hover { background: #ecfdf5; color: #047857; }

  /* ── 2) 히어로 배경 이미지 제거 (인라인 img가 대체) ── */
  .lp-hero--bg {
    padding: 20px 20px 24px !important;
    background-image: none !important;
    background-color: #f7f9f7 !important;
    margin-top: 0 !important;
    display: block !important;
  }
  .lp-hero--bg::before { background: none !important; }
  .lp-hero--bg .lp-hero-grid {
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  /* ── 3) 헤드라인·sub ── */
  .lp-hero--bg .hero-title {
    font-size: clamp(28px, 7.5vw, 36px) !important;
    line-height: 1.18;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
  }
  .lp-hero--bg p.sub {
    font-size: 14px; line-height: 1.55;
    color: var(--ink-500);
    margin: 0;
    position: relative;
    z-index: 1;
  }

  /* ── 4) 인라인 일러스트: 모바일 전용 세로 이미지 — 위 텍스트와 겹침 ── */
  .hero-art-inline {
    display: block;
    width: calc(100% + 40px);
    max-width: none;
    max-height: 440px;
    height: auto;
    object-fit: contain;
    margin: -24px -20px -16px;
    position: relative;
    z-index: 0;
    user-select: none;
    -webkit-user-drag: none;
  }

  /* ── 5) feature 3카드: 흰 박스 + 그림자 ── */
  .lp-hero--bg .hero-features {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
  }
  .lp-hero--bg .hero-features li {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    padding: 12px 8px 10px;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  .lp-hero--bg .hero-features .hf-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    margin: 0 0 4px;
  }
  .lp-hero--bg .hero-features strong { font-size: 12.5px; font-weight: 800; }
  .lp-hero--bg .hero-features .hf-sub { font-size: 11px; line-height: 1.4; color: var(--ink-400); }

  /* ── 6) CTA: 메인 + 보조(연-민트 pill) 둘 다 풀와이드 ── */
  .lp-hero--bg .cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 0;
  }
  .lp-hero--bg .cta-row .btn-primary {
    width: 100%;
    height: 52px;
    padding: 0 24px;
    font-size: 15.5px;
    border-radius: 100px;
    box-shadow: 0 10px 24px rgba(16,185,129,0.28);
  }
  .lp-hero--bg .btn-link-play {
    width: 100%;
    justify-content: center;
    background: #ecfdf5;
    color: #047857;
    height: 44px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    padding: 0;
  }
  .lp-hero--bg .btn-link-play .play-bubble {
    background: transparent;
    width: 22px; height: 22px;
  }

  /* ── 7) 신뢰 영역: 가운데 정렬, 브랜드 strip 1~2행 ── */
  .lp-hero--bg .hero-trust {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(15,23,42,0.06);
    text-align: center;
  }
  .lp-hero--bg .hero-trust-label {
    font-size: 13px;
    color: var(--ink-500);
    margin-bottom: 14px;
  }
  .lp-hero--bg .hero-trust-label strong {
    color: var(--ink-800);
    font-weight: 800;
  }
  .lp-hero--bg .brand-strip {
    justify-content: center !important;
    gap: 14px 28px !important;
  }
  .lp-hero--bg .brand-strip span {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--ink-300) !important;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 390px) {
  .lp-hero--bg .hero-features li { padding: 14px 4px 12px; }
  .lp-hero--bg .hero-features strong { font-size: 11.5px !important; }
  .lp-hero--bg .hero-features .hf-sub { font-size: 10.5px !important; }
  .lp-hero--bg .brand-strip { gap: 10px 18px !important; }
  .lp-hero--bg .brand-strip span { font-size: 12px !important; }
}

