/* app/static/css/landing_tour.css
   랜딩 인터랙티브 튜토리얼 섹션(#tour) 전용 스타일 — landing.html 에서 intro(Hero) 바로 아래.
   실제 TAOL 화면 캡처 위에 번호 포인트·카메라 확대·단계 전환을 얹은 '직접 조작하는' 튜토리얼.
   클래스 접두사 lt-*. 동적 위치(transform)만 JS 가 지정하고 나머지는 모두 여기서. */

.lt-section {
    --lt-bg: #030C1A;
    --lt-bg2: #071A33;
    --lt-navy: #0B2549;
    --lt-blue: #1769E0;
    --lt-sky: #5AA2FF;
    --lt-orange: #E37B3C;
    --lt-green: #22C77A;
    --lt-text: #EAF0FF;
    --lt-muted: #8D9BC4;
    --lt-line: rgba(255, 255, 255, .09);
    --lt-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --lt-nav: 60px;                  /* 상단 고정 navbar 높이 — 섹션 안쪽 여백으로 비켜 감 */

    position: relative;
    width: 100%;
    height: 100vh;                   /* 한 화면 = 섹션. 머리말·컨트롤·무대를 그 안에 맞춘다(무대 크기는 JS) */
    height: 100svh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    padding: calc(var(--lt-nav) + clamp(20px, 4vh, 48px)) clamp(16px, 4vw, 64px) clamp(20px, 4vh, 48px);
    scroll-margin-top: 0;            /* 앵커(#tour) 이동 시 섹션 맨 위 = 화면 맨 위 */
    background: var(--Primary-950, #0A1F42);
    color: var(--lt-text);
    font-family: var(--Font-Family);
    overflow: hidden;
}
.lt-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.lt-section button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.lt-section svg { display: block; }

/* ── 머리말 ─────────────────────────────────────────────────────── */
.lt-head {
    position: relative;
    flex: none;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto clamp(16px, 3vh, 32px);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.lt-title {
    margin: 0;                       /* Bootstrap 제목 기본 margin-bottom(.5rem) 제거 */
    font-size: clamp(30px, 3.4vw, 40px);
    line-height: 1.25;
    letter-spacing: -.03em;
    font-weight: 700;
    color: #fff;
}
.lt-title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--Text-Primary-Main, #1769E0), var(--Text-Orange-500, #F97316));
    /* background: linear-gradient(90deg, var(--lt-sky), var(--lt-orange)); */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lt-sub {
    width: 100%;                     /* 머리말(.lt-head) 폭 전체 */
    margin: 0;
    text-align: center;
    white-space: pre-line;           /* 문장마다 줄바꿈(번역 값의 줄바꿈 문자) */
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.4px;
    color: var(--lt-muted);
}

/* ── 플레이어 레이아웃 ─────────────────────────────────────────── */
.lt-player {
    position: relative;
    flex: 1 1 auto;                  /* 머리말을 뺀 남은 높이 전부 */
    min-height: 0;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;         /* 남는 세로 공간은 위아래로 나눔 */
    gap: clamp(10px, 2vh, 16px);
}
/* 컨트롤·무대 폭 = JS 가 계산한 화면 폭(--lt-stage-w, 캡처 비율 그대로 남은 높이에 맞춘 크기). 가운데 정렬 */
.lt-player > .lt-controls,
.lt-player > .lt-stage {
    flex: none;
    width: var(--lt-stage-w, 100%);
    max-width: 100%;
    align-self: center;
}

/* ── 무대(Stage) ───────────────────────────────────────────────── */
.lt-stage {
    position: relative;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-y;
}

.lt-slides { position: absolute; inset: 0; }
.lt-stage.zoomed .lt-slides { cursor: grab; touch-action: none; }
.lt-stage.panning .lt-slides { cursor: grabbing; }

/* 단계별 프레임(브라우저 모형) */
.lt-frame {
    position: absolute;
    border-radius: 14px;
    background: #0D1B33;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
}
.lt-chrome {
    position: absolute; left: 0; right: 0; top: 0;
    height: 34px;
    display: flex; align-items: center; gap: 12px;
    padding: 0 14px;
    border-radius: 14px 14px 0 0;
    background: #13233F;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lt-dots { display: flex; gap: 6px; flex: none; }
.lt-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.lt-dots i:first-child { background: #FF6B5E; }
.lt-dots i:nth-child(2) { background: #F5BF4F; }
.lt-dots i:nth-child(3) { background: #3FC56F; }
.lt-url {
    flex: 1; min-width: 0;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .25);
    font-size: 12px; color: var(--lt-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lt-url b { color: var(--lt-text); font-weight: 600; }
.lt-viewport { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; overflow: hidden; border-radius: 0 0 14px 14px; background: #F8FAFC; }
.lt-screen { position: absolute; inset: 0; overflow: hidden; }
.lt-cam { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; will-change: transform; }   /* 높이 = 이미지 비율(JS) */
.lt-cam img { width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
/* 포인트 레이어 — .lt-viewport 와 같은 영역이지만 잘림(overflow) 밖이라 설명 카드가 화면 밖으로 나올 수 있다 */
.lt-overlays { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; z-index: 3; pointer-events: none; }
.lt-overlay { position: absolute; inset: 0; pointer-events: none; }

/* 핫스팟 */
.lt-hs { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.lt-dot {
    position: absolute; left: -15px; top: -15px; z-index: 2;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--lt-orange);
    color: #fff;
    font-family: var(--lt-mono); font-size: 12px; font-weight: 700;
    pointer-events: auto;
    box-shadow: 0 0 0 4px rgba(227, 123, 60, .28), 0 6px 18px rgba(0, 0, 0, .45);
}
.lt-section .lt-dot { color: #fff; background: var(--lt-orange); }
.lt-dot::after {
    content: '';
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--lt-orange);
    animation: lt-pulse 1.8s infinite;
    pointer-events: none;
}
@keyframes lt-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.lt-dot:hover { filter: brightness(1.12); }
.lt-ring { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; }
.lt-line { position: absolute; top: -1px; width: 44px; height: 2px; background: linear-gradient(90deg, var(--lt-orange), #FFB27A); }
.lt-hs.r .lt-line { left: 15px; transform-origin: left center; }
.lt-hs.l .lt-line { right: 15px; transform-origin: right center; }
.lt-card {
    position: absolute; top: 0;
    z-index: 3;                      /* 카드가 무대 안으로 밀려 번호 점과 겹쳐도 점(z 2)보다 위 */
    width: min(260px, 44vw);
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(7, 18, 42, .9);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    color: var(--lt-text);
}
.lt-hs.r .lt-card { left: 59px; }
.lt-hs.l .lt-card { right: 59px; }
.lt-card em { font-style: normal; font-family: var(--lt-mono); font-size: 14px; letter-spacing: .16em; color: var(--lt-orange); }
.lt-card strong { display: block; margin: 4px 0; font-size: 18px; color: #fff; }
.lt-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #B9C5E8; }
.lt-card .lt-x {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border-radius: 7px;
    font-size: 12px; color: var(--lt-muted);
    background: rgba(255, 255, 255, .06);
}
.lt-card .lt-x:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.lt-card-nav { display: flex; gap: 8px; margin-top: 12px; }
.lt-card .lt-prev,
.lt-card .lt-next {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px; font-weight: 700;
    transition: background .2s, opacity .2s;
}
.lt-card .lt-prev { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--lt-text); }
.lt-card .lt-prev:hover { background: rgba(255, 255, 255, .14); }
.lt-card .lt-prev:disabled { opacity: .35; cursor: default; }
.lt-card .lt-next { background: var(--lt-blue); color: #fff; }
.lt-card .lt-next:hover { background: #3A86F0; }
.lt-card .lt-next.nudge { animation: lt-nudge 1.4s ease-in-out infinite; }
@keyframes lt-nudge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(90, 162, 255, .7); }
    50%      { box-shadow: 0 0 0 7px rgba(90, 162, 255, 0); }
}
.lt-hs.seen .lt-dot { background: #fff; color: #0B1A4A; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 6px 18px rgba(0, 0, 0, .45); }
.lt-hs.seen .lt-dot::after { display: none; }
.lt-hs.focus { z-index: 4; }
.lt-hs.focus .lt-dot { background: var(--lt-orange); color: #fff; box-shadow: 0 0 0 5px rgba(227, 123, 60, .35), 0 6px 18px rgba(0, 0, 0, .45); }
.lt-hs.focus .lt-card { pointer-events: auto; }
.lt-hs.peek { z-index: 5; }
.lt-hs.peek .lt-card { opacity: 1 !important; visibility: visible !important; }
.lt-hs.peek .lt-line { transform: scaleX(1) !important; }

/* 힌트 커서 */
.lt-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 0; height: 0; }
.lt-cursor-icon { position: absolute; left: -4.7px; top: -2.3px; width: 28px; transform-origin: 4.7px 2.3px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }

/* 단계 전환 와이프 */
.lt-wipe {
    position: absolute; inset: 0; z-index: 20;
    display: grid; place-items: center;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(115deg, var(--lt-blue) 0%, var(--lt-navy) 62%, var(--lt-orange) 150%);
    clip-path: inset(0% 100% 0% 0%);
}
.lt-wipe span { font-family: var(--lt-mono); font-size: 13px; letter-spacing: .3em; color: rgba(255, 255, 255, .75); }
.lt-wipe strong { display: block; margin-top: 8px; font-size: clamp(26px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.lt-wipe small { display: block; margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .8); }

/* 완료 화면 */
.lt-finish {
    position: absolute; inset: 0; z-index: 15;
    display: grid; place-items: center;
    background: rgba(3, 12, 26, .74);
    backdrop-filter: blur(8px);
    visibility: hidden;
    opacity: 0;
}
.lt-finish-box { max-width: 580px; padding: 34px 30px; text-align: center; }
.lt-finish-box .lt-big { font-family: var(--lt-mono); font-size: 14px; letter-spacing: .2em; color: #2EE07F; }
.lt-finish-box h3 { margin: 10px 0 8px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; color: #fff; }
.lt-finish-box p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--lt-muted); }
.lt-finish-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.lt-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background .2s, box-shadow .2s;
}
.lt-btn.primary { background: var(--lt-blue); color: #fff; box-shadow: 0 10px 30px rgba(23, 105, 224, .35); }
.lt-btn.primary:hover { transform: translateY(-2px); color: #fff; background: #2B78E8; }
.lt-btn.ghost { border: 1px solid var(--lt-line) !important; background: rgba(255, 255, 255, .04) !important; color: var(--lt-text); }
.lt-btn.ghost:hover { background: rgba(255, 255, 255, .1) !important; color: #fff; }

.lt-spark { position: absolute; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; z-index: 30; }

/* ── 하단 컨트롤 ───────────────────────────────────────────────── */
.lt-controls {
    display: flex; align-items: center; gap: 12px;
    padding: clamp(12px, 2vh, 24px) 24px;
    border-radius: 18px;
    border: 1px solid var(--lt-line);
    background: rgba(7, 26, 51, .65);
    backdrop-filter: blur(10px);
}
.lt-cbtn {
    flex: none;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    border: 1px solid var(--lt-line) !important;
    background: rgba(255, 255, 255, .05) !important;
    transition: .2s;
}
.lt-cbtn:hover { background: rgba(255, 255, 255, .12) !important; }
.lt-cbtn:disabled { opacity: .35; cursor: default; }
.lt-cbtn svg { width: 18px; height: 18px; }
.lt-cbtn.ready { animation: lt-ready 1.6s ease-in-out infinite; }   /* 이 단계 포인트를 다 봤을 때 '다음' 강조 */
.lt-cbtn.nudge { animation: lt-nudge 1.4s ease-in-out infinite; }
@keyframes lt-ready {
    0%, 100% { box-shadow: 0 0 0 0 rgba(90, 162, 255, .65); }
    50%      { box-shadow: 0 0 0 9px rgba(90, 162, 255, 0); }
}
.lt-scrub { position: relative; flex: 1; min-width: 0; display: flex; gap: 8px; padding: 12px 0 22px; }
.lt-seg { position: relative; flex: 1 1 0; min-width: 0; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s; }
.lt-seg::before { content: ''; position: absolute; inset: -12px 0 -22px; }
.lt-seg:hover { background: rgba(255, 255, 255, .22); }
.lt-seg i {
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lt-blue), var(--lt-sky));
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.lt-seg.full i { background: linear-gradient(90deg, #1FAE5B, #2EE07F); }
.lt-seg.on { border: 1px solid var(--Fill-Primary-Main, #0097D5); }
.lt-seg em {
    position: absolute; left: 0; right: 0; top: 12px;
    font-style: normal; font-size: 14px; color: var(--lt-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.35px;
}
.lt-seg.on em { color: var(--lt-text); }

/* ── JS 미동작 폴백 ────────────────────────────────────────────── */
.lt-noscript { max-width: 1100px; margin: 0 auto; }
.lt-noscript img { width: 100%; height: auto; border-radius: 14px; }

/* ── 반응형 ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .lt-section { padding: calc(var(--lt-nav) + 24px) 16px 24px; }
    .lt-head { margin-bottom: 16px; gap: 8px; }
    .lt-controls { padding: 10px 12px; }
    .lt-sub { font-size: 14px; }
    .lt-seg em { display: none; }
    .lt-card { width: min(220px, 56vw); }
}
/* html.lp-force-motion(랜딩 애니메이션 강제)이면 reduce 무시 */
@media (prefers-reduced-motion: reduce) {
    html:not(.lp-force-motion) .lt-dot::after,
    html:not(.lp-force-motion) .lt-cbtn.ready,
    html:not(.lp-force-motion) .lt-cbtn.nudge,
    html:not(.lp-force-motion) .lt-card .lt-next.nudge { animation: none; }
}
