/* ============================================================
   summary.daki.app 랜딩 (v2) — Navy 전환형 랜딩
   정착 상태(PE 베이스라인). 인트로/캐러셀/CTA JS 가 이 위에 얹힘.
   이 파일은 YT 랜딩 템플릿(index.html)에서만 로드됨 → .yt-page 스코프 안전.
   ============================================================ */

:root {
  --nv-bg: #080c20;
  --nv-plate: #161d3a;
  --nv-plate-bd: rgba(255, 255, 255, 0.10);
  --nv-ink: #f3ede0;            /* cream */
  --nv-ink-2: #c2cae3;          /* muted blue-grey */
  --nv-ink-3: rgba(255, 255, 255, 0.5);
  --nv-red: #e0352a;
  --nv-red-soft: #ff6b5e;
  --nv-gold: #ffc83d;
}

html { background: var(--nv-bg); }

/* ---- 페이지 navy + glow ---- */
.yt-page {
  background:
    radial-gradient(1100px 600px at 50% -8%, rgba(56, 92, 200, 0.18), transparent 60%),
    radial-gradient(900px 520px at 50% 118%, rgba(224, 53, 42, 0.10), transparent 60%),
    var(--nv-bg);
  color: var(--nv-ink);
  overflow-x: clip;   /* 가로 오버플로우 차단(슬로건·카드·리뷰 잘림 방지) */
}

/* ---- 헤더 navy ---- */
.yt-header {
  background: rgba(8, 12, 32, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
}
.yt-logo,
.yt-logo-text { color: var(--nv-ink); }
.yt-logo-img { width: 28px; height: 28px; border-radius: 8px; display: block; flex-shrink: 0; }

.yt-tabs { background: rgba(255, 255, 255, 0.06); }
.yt-tab-btn { color: var(--nv-ink-2); }
.yt-tab-btn:hover { color: #fff; }
.yt-tab-btn.active { background: rgba(255, 255, 255, 0.13); color: #fff; box-shadow: none; }

/* 헤더 설치 CTA (주 액션) */
.btn-install-header {
  background: linear-gradient(135deg, var(--nv-red), var(--nv-red-soft));
  color: #fff; border: none; cursor: pointer; font-family: inherit;
  padding: 8px 18px; border-radius: 9px;
  font-size: 0.86rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(224, 53, 42, 0.35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-install-header:hover {
  transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(224, 53, 42, 0.45);
}

/* 로그인 = 작은 보조 링크 */
.btn-login {
  color: var(--nv-ink-2); background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.86rem; font-weight: 600; padding: 8px 6px;
}
.btn-login:hover { color: #fff; background: transparent; }

/* lang selector — style.css 의 base(.lang-selector: 크림 텍스트·반투명 pill, option #11162a/#F4EEDF)가
   이미 navy 친화. 여기서 override 하지 않음(옛 override 가 option 을 #1a1a1a 로 만들어 다크 드롭다운에서
   안 보이던 버그). 가독성 위해 pill 대비만 살짝 강화. */
.yt-header .lang-selector { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.20); }

/* ---- 히어로: 슬로건 + 5기능 스트립 ---- */
.landing-hero2 {
  text-align: center;
  padding: clamp(48px, 9vh, 96px) 24px clamp(28px, 5vh, 52px);
  position: relative;
}
.lh2-slogan {
  font-family: var(--lh2-slogan-font, inherit);
  font-size: calc(clamp(1.7rem, 5.4vw, 3.3rem) * var(--lh2-slogan-mult, 1));
  font-weight: var(--lh2-slogan-weight, 800); letter-spacing: -0.01em; line-height: 1.2;
  color: var(--nv-ink);
  margin: 0 auto clamp(28px, 5vh, 48px);
  max-width: min(20em, 100%); text-wrap: balance;
}
.lh2-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(14px, 3vw, 40px);
}
.lh2-feat { display: flex; flex-direction: column; align-items: center; gap: 13px; width: 112px; }
.lh2-ic {
  display: flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; border-radius: 22px;
  background: var(--nv-plate); border: 1px solid var(--nv-plate-bd);
  color: var(--accent, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.38);
}
.lh2-ic svg { width: 30px; height: 30px; }
.lh2-lbl { font-size: 0.94rem; font-weight: 700; color: var(--nv-ink-2); line-height: 1.2; }
.lh2-hint {
  margin: 22px auto 0; color: var(--nv-ink-3); font-size: 0.82rem; max-width: 40em;
}
.lh2-hint[hidden] { display: none; }

/* ---- 7장 카드 캐러셀 ----
   PE 베이스라인: 네이티브 가로 스크롤+스냅(no-JS 도 7장 전부 도달).
   JS 가 .js-on 부여 → transform 캐러셀(센터 카드 강조)로 업그레이드. */
.landing-cards { padding: clamp(8px, 2vh, 24px) 0 clamp(24px, 4vh, 44px); }
.lcard-carousel {
  position: relative;   /* 좌우 화살표 absolute 기준 */
  width: 100%; padding: 14px 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.lcard-carousel::-webkit-scrollbar { display: none; }
.lcard-carousel.js-on { overflow: hidden; scroll-snap-type: none; cursor: grab; }
.lcard-carousel.js-on:active { cursor: grabbing; }
.lcard-track {
  display: flex; gap: clamp(14px, 2vw, 28px); will-change: transform; touch-action: pan-y;
  padding-inline: max(16px, calc((100% - min(86vw, 660px)) / 2));   /* 첫/끝 카드도 센터 스냅 */
}
.lcard-carousel.js-on .lcard-track { padding-inline: 0; }   /* JS=centerTx 계산이라 패딩 0 */
.lcard { scroll-snap-align: center; }
.lcard {
  flex: 0 0 auto; width: min(90vw, 740px); margin: 0;
  transition: opacity .4s ease, transform .4s ease;
}
.lcard img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  background: #11152b; -webkit-user-drag: none; user-select: none;
}
/* 중앙 카드만 노출(사이드 숨김) → 중앙이 훨씬 크게. 넛지 때만 옆 카드 살짝 peek. */
.lcard.is-side { opacity: 0; transform: scale(0.9); pointer-events: none; }
.lcard.is-active { opacity: 1; transform: scale(1); }
.lcard-carousel.is-nudging .lcard.is-side { opacity: 0.5; transform: scale(0.94); }

/* 좌우 투명 화살표 (JS 가 생성) */
.lcard-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .15s, opacity .2s, transform .15s;
}
.lcard-arrow:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.lcard-arrow:disabled { opacity: 0; pointer-events: none; }
.lcard-arrow--prev { inset-inline-start: clamp(8px, 3vw, 40px); }
.lcard-arrow--next { inset-inline-end: clamp(8px, 3vw, 40px); }
.lcard-arrow svg { width: 26px; height: 26px; }
.lcard-arrow--next.is-hinting { animation: lcardArrowHint 1.2s ease 2; }
@keyframes lcardArrowHint { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(-50%) translateX(6px); } }

.lcard-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.lcard-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.25); transition: background .2s, width .2s;
}
.lcard-dot.is-on { background: var(--nv-red-soft); width: 22px; border-radius: 4px; }

/* ---- 별점 + 후기 (전환형) ---- */
.landing-reviews2 {
  padding: clamp(28px, 5vh, 56px) 24px clamp(64px, 10vh, 96px);
  max-width: 980px; margin: 0 auto;
}
.lr2-head { text-align: center; margin-bottom: clamp(28px, 5vh, 44px); }
.lr2-score-block { display: inline-flex; align-items: center; gap: 14px; }
.lr2-score { font-size: clamp(2.8rem, 7vw, 3.6rem); font-weight: 800; color: var(--nv-ink); line-height: 1; }
.lr2-score-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.lr2-stars { color: var(--nv-gold); font-size: 1.35rem; letter-spacing: 3px; line-height: 1; }
.lr2-store { display: inline-flex; align-items: center; gap: 5px; color: var(--nv-ink-2); font-size: 0.86rem; font-weight: 600; }
.lr2-store:hover { color: #fff; text-decoration: underline; }
.lr2-headline { margin: 18px 0 0; font-size: clamp(1.4rem, 3.6vw, 2.05rem); font-weight: 800; color: var(--nv-ink); letter-spacing: -0.01em; }
.lr2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lr2-card {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px; padding: 28px 26px 22px; margin: 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lr2-qmark { position: absolute; top: 2px; inset-inline-end: 18px; font-size: 4.5rem; line-height: 1; color: rgba(255, 255, 255, 0.06); font-family: Georgia, serif; }
.lr2-cardstars { color: var(--nv-gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.lr2-card p { color: var(--nv-ink); font-size: 1.02rem; line-height: 1.75; margin: 0 0 18px; position: relative; }
.lr2-by { display: flex; align-items: center; gap: 10px; }
.lr2-avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: rgba(255, 255, 255, 0.92); flex-shrink: 0; }
.lr2-avatar--a { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.lr2-avatar--b { background: linear-gradient(135deg, #2f6bff, #22d3ee); }
.lr2-by-text { display: flex; flex-direction: column; line-height: 1.25; }
.lr2-by-text strong { color: var(--nv-ink); font-size: 0.9rem; font-weight: 700; }
.lr2-by-src { color: var(--nv-ink-3); font-size: 0.78rem; }
.lr2-check { margin-inline-start: auto; color: #34d399; display: inline-flex; }
.lr2-cta { text-align: center; margin-top: clamp(32px, 5vh, 48px); }
.lr2-cta-btn {
  background: linear-gradient(135deg, var(--nv-red), var(--nv-red-soft)); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 1.02rem; padding: 15px 42px; border-radius: 999px;
  box-shadow: 0 12px 32px rgba(224, 53, 42, 0.45); transition: transform .15s, box-shadow .15s, filter .15s;
}
.lr2-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 40px rgba(224, 53, 42, 0.55); }

/* ---- 플로팅 설치 CTA (공유 페이지 패턴) ---- */
.install-fab {
  position: fixed; inset-inline-end: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px; border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--nv-red), var(--nv-red-soft));
  color: #fff; font-weight: 800; font-size: 0.95rem; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(224, 53, 42, 0.5);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.install-fab:hover {
  transform: translateY(-2px); filter: brightness(1.06);
  box-shadow: 0 14px 36px rgba(224, 53, 42, 0.6);
}
.install-fab-ic { display: inline-flex; }

/* ---- 설치 시트 ---- */
.install-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.install-sheet[hidden] { display: none; }
.install-sheet-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.install-sheet-panel {
  position: relative; z-index: 1; width: min(440px, 94vw);
  background: #11162e; border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px 20px 0 0;
  padding: 26px 22px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 560px) {
  .install-sheet { align-items: center; }
  .install-sheet-panel { border-radius: 20px; }
}
@keyframes sheet-up { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.install-sheet-panel h3 { color: var(--nv-ink); font-size: 1.15rem; font-weight: 800; margin: 0 0 18px; text-align: center; }
.install-sheet-close {
  position: absolute; top: 14px; inset-inline-end: 16px;
  background: none; border: none; color: var(--nv-ink-3); font-size: 1.05rem; cursor: pointer; line-height: 1;
}
.install-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; margin-bottom: 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--nv-ink); font-size: 0.95rem; font-weight: 700; font-family: inherit; cursor: pointer; text-align: start;
  transition: background .15s, border-color .15s;
}
.install-opt:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }
.install-opt-ic { display: inline-flex; width: 24px; justify-content: center; flex-shrink: 0; }
.install-opt.is-recommended { border-color: var(--nv-red-soft); background: rgba(224, 53, 42, 0.10); }
.install-opt-badge {
  margin-inline-start: auto; background: var(--nv-red); color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
body.sheet-open { overflow: hidden; }

/* ---- 반응형 ---- */
@media (max-width: 640px) {
  .lr2-grid { grid-template-columns: 1fr; }
  .lh2-feat { width: 72px; }
  .lh2-ic { width: 50px; height: 50px; border-radius: 14px; }
  .lh2-lbl { font-size: 0.74rem; }
  .install-fab { padding: 14px; }
  .install-fab-tx { display: none; }   /* 모바일 = 아이콘 FAB */

  /* 헤더 컴팩트 — 390px 에서 로고+탭+CTA+언어가 한 줄에 맞도록 */
  .yt-header { padding: 10px 12px; gap: 6px; }
  .yt-logo-play { width: 24px; height: 24px; }
  .yt-logo-text { font-size: 0.95rem; white-space: nowrap; }
  .yt-tabs { padding: 2px; }
  .yt-tab-btn { padding: 6px 11px; font-size: 0.8rem; }
  .yt-header-actions { gap: 8px; }
  .btn-install-header { padding: 7px 12px; font-size: 0.8rem; }
  .btn-login { display: none; }                 /* 모바일: 로그인은 앱/시트 경유(헤더 공간 확보) */
  .yt-header .lang-selector { display: none; }  /* 모바일: 언어는 nginx Accept-Language 자동(헤더 공간 확보) */
}

/* ---- 인트로 오버레이 (세션 1회) ----
   가드(head)가 html.intro-pending 부여 → 본문 숨김. JS 가 오버레이 시퀀스+settle 후 reveal. */
html.intro-pending .yt-header,
html.intro-pending .landing-hero2,
html.intro-pending .landing-cards,
html.intro-pending .landing-reviews2,
html.intro-pending .install-fab { opacity: 0; }
html.intro-settling .yt-header,
html.intro-settling .landing-hero2,
html.intro-settling .landing-cards,
html.intro-settling .landing-reviews2,
html.intro-settling .install-fab { opacity: 1; transition: opacity .55s ease; }

.landing-intro-overlay {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  background: #000;   /* 스플래시(검정 캔버스)와 동일 → 이음새 없이 블렌드. settle 시 navy 페이지로 크로스페이드 */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 4vh, 38px);
}
.landing-intro-overlay.lio-settling { opacity: 0; transition: opacity .5s ease .12s; }

/* BI = 스플래시 iframe (자체 애니메이션) — wrap 은 빠르게 페이드인만 */
.lio-bi { width: min(86vw, 560px); height: 190px; opacity: 0; }
.landing-intro-overlay.lio-bi-in .lio-bi { opacity: 1; transition: opacity .4s ease; }
.lio-bi-frame { width: 100%; height: 100%; border: 0; display: block; background: transparent; pointer-events: none; }

.lio-slogan {
  font-family: var(--lh2-slogan-font, inherit);
  font-size: calc(clamp(1.8rem, 5.4vw, 3.3rem) * var(--lh2-slogan-mult, 1));
  font-weight: var(--lh2-slogan-weight, 800); letter-spacing: -0.01em;
  color: var(--nv-ink); text-align: center; max-width: min(20em, 92vw); line-height: 1.2;
}
.lio-ch { display: inline-block; opacity: 0; white-space: pre; }
.landing-intro-overlay.lio-slo-in .lio-ch { opacity: 1; transition: opacity .05s linear; transition-delay: calc(var(--i) * 55ms); }

.lio-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 40px); }
.lio-strip .lio-feat { opacity: 0; transform: translateY(10px); }
.landing-intro-overlay.lio-feat-in .lio-feat {
  opacity: 1; transform: none;
  transition: opacity .42s ease, transform .42s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 180ms);
}

/* ---- reduce-motion: 인트로 비활성 + 카드 전환 즉시 ---- */
@media (prefers-reduced-motion: reduce) {
  .landing-intro-overlay { display: none; }
  .lcard, .lcard-dot, .install-fab, .btn-install-header { transition: none; }
}

/* ============================================================
   Pricing 탭 + Footer navy 조화 (style.css 라이트 테마 오버라이드)
   ============================================================ */
.pricing-title { color: var(--nv-ink); }
.pricing-subtitle { color: var(--nv-ink-2); }
.pricing-section-title { color: var(--nv-ink); }
.pricing-section-desc { color: var(--nv-ink-3); }

.price-card { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.10); }
.price-card h4 { color: var(--nv-ink); }
.price-card .card-desc { color: var(--nv-ink-2); }
.price-card ul { color: var(--nv-ink-2); }
.price-card li b, .price-card li strong { color: var(--nv-ink); }
.price { color: var(--nv-red-soft); }
.price span { color: var(--nv-ink-2); }
.price-card--free { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.10); }
.price-card--free h4 { color: var(--nv-ink); }
.price--free { color: var(--nv-ink-2) !important; }
.price-after { color: var(--nv-ink-3); }
.price-after .price-regular { color: var(--nv-ink-2); }
.price-card.featured {
  background: rgba(224, 53, 42, 0.07); border-color: var(--nv-red);
  box-shadow: 0 8px 30px rgba(224, 53, 42, 0.18);
}

/* btn-buy: navy 위 가시성 */
.btn-buy { border-color: var(--nv-red-soft); color: var(--nv-red-soft); }
.btn-buy:hover { background: var(--nv-red); border-color: var(--nv-red); color: #fff; }
.btn-buy--ghost { border-color: rgba(255, 255, 255, 0.22) !important; color: var(--nv-ink) !important; }
.btn-buy--ghost:hover { background: rgba(255, 255, 255, 0.08) !important; color: #fff !important; }

/* 빌링 토글 */
.toggle-label { color: var(--nv-ink-2); }
.toggle-label.active { color: var(--nv-red-soft); }
.toggle-slider { background: rgba(255, 255, 255, 0.2); }

/* Paddle 결제 로딩(?_ptxn) — navy */
.checkout-loading { background: var(--nv-bg); }
.checkout-loading-text { color: var(--nv-ink-2); }

/* Footer navy */
.yt-footer { border-top-color: rgba(255, 255, 255, 0.07); }
.yt-footer p, .footer-copyright { color: var(--nv-ink-3); }
.footer-links a { color: var(--nv-ink-2); }
.footer-links a:hover { color: #fff; }
.footer-divider { color: rgba(255, 255, 255, 0.2); }
.footer-business-toggle summary { color: var(--nv-ink-2); }
.footer-business-table th { color: var(--nv-ink-2); }
.footer-business-table td { color: var(--nv-ink-3); }
.footer-business-table td a, .footer-links a[href^="mailto"] { color: var(--nv-red-soft); }
