/* LBD 둘러보기 — 첫 화면 도입 상담 + 스크롤 큐 + 카드 4장 + 영상·보고서 창.
   원본: Claude Design 참고 구현 lbd-hero-entry(2026-11-26). 전역(body·a·img·GNB·히어로 레이아웃) 규칙은 기존 랜딩 것을 쓰고 옮기지 않았다. */
:root {
  --lbd-bg: #0E1830;
  --lbd-bg-deep: #0B1428;
  --lbd-surface: #121D38;
  --lbd-modal: #1A2440;
  --lbd-modal-canvas: #2A3452;
  --lbd-line: rgba(255, 255, 255, .08);
  --lbd-card-line: rgba(143, 168, 232, .18);
  --lbd-card-line-hover: rgba(143, 168, 232, .5);
  --lbd-text: #C9D2E6;
  --lbd-text-strong: #FFFFFF;
  --lbd-text-sub: #B4BFD6;
  --lbd-text-muted: #8B97B5;
  --lbd-accent: #8FA8E8;      /* 헤드라인 강조, 링크 */
  --lbd-primary: #3D5BD9;     /* 주 버튼 */
  --lbd-primary-hover: #3550C4;
  --lbd-eyebrow: #F2B544;
  --lbd-radius-card: 14px;
  --lbd-radius-btn: 10px;
  --lbd-font: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
}

body.lbd-modal-open { overflow: hidden; }
.lbd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- Buttons ---------- */
.lbd-btn {
  font-family: var(--lbd-font); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: var(--lbd-radius-btn);
  font-size: 17px; font-weight: 700; white-space: nowrap;
  transition: background-color .15s ease;
}
.lbd-btn--primary { background: var(--lbd-primary); color: #fff; }
.lbd-btn--primary:hover { background: var(--lbd-primary-hover); }
.lbd-btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }
.lbd-btn:focus-visible, .lbd-card:focus-visible, .lbd-cue:focus-visible, .lbd-icon-btn:focus-visible {
  outline: 2px solid var(--lbd-accent); outline-offset: 3px;
}

/* 첫 화면: 도입 상담 한 개 + 보조 문구 */
.lbd-hero-hint { font-size: 15px; color: var(--lbd-text-muted); align-self: center; }
.hero-actions.lbd-hero-cta { align-items: center; gap: 20px; }
@media (max-width: 800px) { .hero-actions.lbd-hero-cta { flex-direction: column; gap: 12px; } }

/* 카드 띠: 히어로와 같은 어두운 바탕을 이어 간다 */
.lbd-band { background-color: var(--lbd-bg); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 92px 92px; color: var(--lbd-text); font-family: var(--lbd-font); }
.lbd-band a { text-decoration: none; color: inherit; }
.lbd-band img, .lbd-modal img { display: block; max-width: 100%; }

/* ---------- Scroll cue ---------- */
/* 스크롤 큐 — 히어로 안 맨 아래. 글씨 위로 빛이 훑고 지나가고(2.2초), 화살표 3개가 위에서부터 차례로 켜지며 내려간다(1.5초) */
.hero-reference .lbd-cue-wrap { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; }
.lbd-cue { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 8px 24px; text-decoration: none; font-family: var(--lbd-font); }
.lbd-cue__text {
  font-size: 18px; font-weight: 800; letter-spacing: -.2px;
  background: linear-gradient(100deg, #8fa8e8 0%, #8fa8e8 35%, #ffffff 50%, #8fa8e8 65%, #8fa8e8 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(143, 168, 232, .55));
  animation: lbd-shine 2.2s linear infinite;
}
.lbd-cue__chev { display: grid; justify-items: center; margin-top: 2px; color: #9fb8ff; }
.lbd-cue__chev svg { display: block; margin-top: -12px; opacity: .15; animation: lbd-cascade 1.5s ease-in-out infinite; }
.lbd-cue__chev svg:first-child { margin-top: 0; }
.lbd-cue__chev svg:nth-child(2) { animation-delay: .18s; }
.lbd-cue__chev svg:nth-child(3) { animation-delay: .36s; }
@keyframes lbd-shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@keyframes lbd-cascade { 0%, 100% { opacity: .15; transform: translateY(-3px); } 40% { opacity: 1; transform: translateY(3px); filter: drop-shadow(0 0 6px #9fb8ff); } }

/* ---------- Look section ---------- */
.lbd-look { padding-top: 8px; padding-bottom: 96px; scroll-margin-top: 80px; }
.lbd-look__head { padding-top: 56px; }
.lbd-look__head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.6px; color: var(--lbd-text-strong); }
.lbd-look__head p { margin: 10px 0 0; font-size: 16px; color: var(--lbd-text-muted); }

.lbd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
@media (max-width: 1100px) { .lbd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .lbd-cards { grid-template-columns: 1fr; } }

/* <a>와 <button> 카드가 같은 모양이 되도록 리셋 */
.lbd-card {
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; margin: 0;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--lbd-radius-card); background: var(--lbd-surface); border: 1px solid var(--lbd-card-line);
  transition: transform .18s ease, border-color .18s ease;
}
.lbd-card:hover { transform: translateY(-3px); border-color: var(--lbd-card-line-hover); }

.lbd-card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lbd-bg-deep); }
.lbd-card__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.lbd-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.lbd-card__tag { font-size: 12px; font-weight: 700; color: var(--lbd-eyebrow); }
.lbd-card__title { font-size: 18px; font-weight: 800; line-height: 1.4; color: var(--lbd-text-strong); }
.lbd-card__desc { font-size: 14px; line-height: 1.55; color: var(--lbd-text-muted); }
.lbd-card__go { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: var(--lbd-accent); }
.lbd-card:hover .lbd-card__go { color: #fff; }

.lbd-badge { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 4px; background: rgba(0,0,0,.75); font-size: 12px; font-weight: 700; color: #fff; }
.lbd-play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: flex; align-items: center; justify-content: center; padding-left: 3px;
  border-radius: 50%; background: rgba(255,255,255,.95); color: var(--lbd-bg);
  box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .18s ease;
}
.lbd-card:hover .lbd-play { transform: scale(1.08); }

/* 체험 카드: 가이드 4장면 크로스페이드 (12초 주기, 장면당 3초) */
.lbd-tour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lbd-tour__frame { opacity: 0; animation: lbd-tour 12s linear infinite both; animation-delay: calc(var(--i) * 3s); }
@keyframes lbd-tour { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
.lbd-tap { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; }
.lbd-tap__ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(111,140,240,.55); animation: lbd-tap 1.6s ease-out infinite; }
.lbd-tap__dot { position: absolute; inset: 7px; border-radius: 50%; background: var(--lbd-primary); border: 2px solid #fff; }
@keyframes lbd-tap { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

/* 결과 카드: 브라우저 프레임 */
.lbd-card__thumb--browser { padding: 14px 14px 0; }
.lbd-browser { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 6px 6px 0 0; border: 1px solid rgba(255,255,255,.14); border-bottom: 0; background: #F5F6F9; }
.lbd-browser__bar { flex: 0 0 14px; display: flex; align-items: center; gap: 4px; padding-left: 7px; background: #1C2948; }
.lbd-browser__bar i { width: 5px; height: 5px; border-radius: 50%; background: #45527A; }
.lbd-browser img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 30%; }

/* 보고서 카드: 표지 + 뒤 2장 부채꼴 */
.lbd-card__thumb--report { background: radial-gradient(circle at 50% 35%, #22325C, var(--lbd-bg-deep) 78%); }
.lbd-card__thumb > img.lbd-page { height: auto; object-fit: fill; } /* 위 썸네일 공통 규칙(가득 채우기)을 보고서 쪽에는 쓰지 않는다 */
.lbd-page { position: absolute; left: 50%; border-radius: 2px; transition: transform .25s ease; }
.lbd-card__thumb > .lbd-page--front { top: 7%; width: 36%; margin-left: -18%; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.lbd-card__thumb > .lbd-page--left { top: 12%; width: 32%; margin-left: -37%; transform: rotate(-7deg); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.lbd-card__thumb > .lbd-page--right { top: 12%; width: 32%; margin-left: 5%;  transform: rotate(7deg);  box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.lbd-card:hover .lbd-card__thumb > .lbd-page--left { transform: rotate(-10deg) translateX(-6px); }
.lbd-card:hover .lbd-card__thumb > .lbd-page--right { transform: rotate(10deg) translateX(6px); }

/* ---------- Modal ---------- */
.lbd-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 40px; }
.lbd-modal[hidden] { display: none; }
.lbd-modal__backdrop { position: absolute; inset: 0; background: rgba(5,10,22,.85); }
.lbd-modal__dialog { position: relative; width: 100%; color: var(--lbd-text); animation: lbd-pop .2s ease-out; }
@keyframes lbd-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.lbd-modal__head { display: flex; align-items: center; gap: 16px; }
.lbd-modal__head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.lbd-modal__head--bare { justify-content: space-between; margin-bottom: 14px; }
.lbd-icon-btn { appearance: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; }
.lbd-icon-btn:hover { background: rgba(255,255,255,.16); }

.lbd-modal__dialog--video { max-width: 1040px; }
.lbd-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.lbd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lbd-modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--lbd-text-muted); }

.lbd-modal--report { align-items: stretch; }
.lbd-modal__dialog--report {
  max-width: 880px; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: var(--lbd-modal); border: 1px solid rgba(255,255,255,.1);
}
.lbd-modal__dialog--report .lbd-modal__head { flex: 0 0 auto; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--lbd-line); }
.lbd-modal__titles { flex: 1; min-width: 0; }
.lbd-modal__titles p { margin: 2px 0 0; font-size: 13px; color: var(--lbd-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbd-report { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 28px; background: var(--lbd-modal-canvas); }
.lbd-report img { width: 100%; max-width: 680px; height: auto; aspect-ratio: 595 / 842; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); }

/* 보고서·공유 탭의 버튼 2개 */
.lbd-tab-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.dc-layout .lbd-tab-actions .button { min-height: 46px; padding: 11px 18px; font-size: 15px; }
.dc-layout .lbd-tab-actions .lbd-ghost { background: #fff; color: var(--ink); border: 1px solid #c9d6e6; }
.dc-layout .lbd-tab-actions .lbd-ghost:hover { background: var(--soft); color: var(--ink); border-color: #9fb4cf; }
.lbd-files { margin-top: 14px; font-size: 13px; color: var(--muted); }
.lbd-files a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.lbd-inline { color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }

@media (max-width: 900px) {
  .lbd-modal { padding: 16px; }
  .lbd-modal__dialog--report .lbd-btn { display: none; }
  .lbd-report { padding: 16px; gap: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lbd-cue__text, .lbd-cue__chev svg, .lbd-tap__ring, .lbd-modal__dialog { animation: none; }
  .lbd-tour__frame { animation: none; opacity: 0; } /* 첫 장면(base)만 고정 */
  .lbd-card, .lbd-page, .lbd-play { transition: none; }
}

/* 히어로 높이(화면 높이 − 상단 메뉴)는 options.css 가 정한다. 여기서는 맨 아래 116px 를 스크롤 큐 자리로 비운다 — 카드 제목은 첫 화면에 보이지 않는다 */
.dc-layout.hero-option .hero-reference { position: relative; }
@media (min-width: 1001px) {
  .dc-layout.hero-option .hero-reference { padding-bottom: 116px; }
  .dc-layout.hero-option-a .reference-product { max-width: calc((100svh - 264px) * 1.389); }
}
/* 좁은 화면은 히어로 높이가 내용만큼이라, 최소 높이를 화면(− 상단 메뉴 67px)으로 두고 큐 자리 120px 를 비운다 */
@media (max-width: 1000px) {
  .dc-layout.hero-option .hero-reference { min-height: calc(100svh - 67px); padding-bottom: 120px; }
  /* 3D 영상은 화면 높이에서 글씨·큐 자리(약 620px)를 뺀 만큼만 — 태블릿 세로에서도 큐가 첫 화면에 들어온다 */
  .dc-layout.hero-option .hero-reference .reference-product { max-width: max(280px, min(100%, calc((100svh - 620px) * 1.389))); margin-inline: auto; }
}

@media (max-width: 760px) { .lbd-look__q { display: block; } .lbd-look__head h2 { font-size: 24px; line-height: 1.4; } } /* 좁은 화면에서는 질문 뒤에서 줄을 바꾼다 */
