/* 로그인 화면: 로그인 카드 + 사용 안내(단계별 애니메이션) + 기록하는 이유 */
.lp { max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px; }
.lp-top { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 20px; align-items: stretch; }
.lp-card { text-align: center; display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; }
.lp-card .brand { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.lp-card form { text-align: left; }

/* ── 사용 안내 ── */
.tour { display: flex; flex-direction: column; min-width: 0; }
.tour-head { display: flex; justify-content: space-between; align-items: baseline; }
.tour-head h2 { margin: 0; }
.tour-stage { position: relative; aspect-ratio: 16 / 9; margin: 12px 0 8px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.tour-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour-caption { min-height: 6.4em; }
.tour-caption b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.tour-caption .step-no { color: var(--primary); font-weight: 700; margin-right: 6px; }
.tour-caption p { margin: 0; color: var(--muted); font-size: .92rem; }
.tour-nav { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tour-dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.tour-dots button { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--border); cursor: pointer; position: relative; overflow: hidden; }
.tour-dots button[aria-selected="true"] { background: var(--primary-soft); }
.tour-dots button[aria-selected="true"]::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform-origin: left; animation: dot-fill var(--dur, 6s) linear forwards; }
.tour.paused .tour-dots button[aria-selected="true"]::after { animation: none; transform: none; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* SVG 색상 (다크 모드 자동 대응) */
.tour svg { font-family: inherit; }
.s-surface { fill: var(--surface); }
.s-line { stroke: var(--border); fill: none; stroke-width: 2; }
.s-frame { fill: var(--surface); stroke: var(--text); stroke-width: 3; }
.s-soft { fill: var(--surface-2); }
.s-primary { fill: var(--primary); }
.s-primary-soft { fill: var(--primary-soft); }
.s-ok { fill: var(--ok); }
.s-ok-soft { fill: var(--ok-soft); }
.s-warn-soft { fill: var(--warn-soft); }
.s-muted { fill: var(--muted); }
.s-text { fill: var(--text); font-size: 13px; }
.s-small { fill: var(--muted); font-size: 11px; }
.s-ink { fill: var(--primary-ink); font-size: 12px; font-weight: 700; }
.s-stroke-primary { stroke: var(--primary); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s-stroke-ok { stroke: var(--ok); fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* 장면 안 애니메이션: 장면이 바뀔 때마다 .run 을 다시 붙여 처음부터 재생 */
.a { opacity: 0; }
.run .a { animation: pop .45s ease-out forwards; }
.run .d1 { animation-delay: .4s; } .run .d2 { animation-delay: 1s; } .run .d3 { animation-delay: 1.6s; }
.run .d4 { animation-delay: 2.2s; } .run .d5 { animation-delay: 2.8s; } .run .d6 { animation-delay: 3.4s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.run .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.6s ease-out infinite; }
.run .wobble { transform-box: fill-box; transform-origin: center; animation: wobble 3s ease-in-out 1.4s infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-10deg) scale(1.06); } 70% { transform: rotate(8deg) scale(.96); } }
.run .pulse.p2 { animation-delay: .8s; }
@keyframes pulse { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
.run .draw { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.run .flash { animation: flash .5s ease-out 1.2s forwards; opacity: 0; }
@keyframes flash { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }
.run .typing { clip-path: inset(0 100% 0 0); animation: type 1.6s steps(24) .5s forwards; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.run .stamp { transform-box: fill-box; transform-origin: center; animation: stamp .4s cubic-bezier(.2, 1.6, .5, 1) 2s forwards; opacity: 0; }
@keyframes stamp { from { opacity: 0; transform: scale(1.8) rotate(-12deg); } to { opacity: 1; transform: rotate(-8deg); } }

/* ── 기록하는 이유 ── */
.why { margin-top: 28px; }
.why h2 { font-size: 1.15rem; }
.why-lead { margin: 0 0 14px; max-width: 70ch; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.why-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.why-item h3 { margin: 6px 0 4px; font-size: .98rem; }
.why-item p { margin: 0; font-size: .88rem; color: var(--muted); }
.why-ico { font-size: 1.4rem; }
.why-foot { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--text); font-size: .92rem; }

@media (max-width: 860px) {
  .lp { padding-top: 16px; }
  .lp-top { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .a, .run .a, .run .flash, .run .stamp { animation: none; opacity: 1; transform: none; }
  .run .typing { animation: none; clip-path: none; }
  .run .draw { animation: none; stroke-dashoffset: 0; }
  .run .pulse, .run .flash { display: none; }
  .run .wobble { animation: none; }
  .tour-dots button[aria-selected="true"]::after { animation: none; }
}
