/* 메인 페이지(11-08 다시 그림, templates/public/index.html). 공개 틀(layouts/public.html)만 읽는다.
   - 그라데이션 글자·빛 번짐·회색 막대 목업을 빼고 실제 화면을 닮은 장면(웹 상점 창·디스코드 패널·지급 알림)
   - 첫 화면은 시간에 맞춰, 아래 섹션은 스크롤에 맞춰 나타난다(CSS 스크롤 타임라인, 없으면 public.js의 IntersectionObserver)
   - 바로가기는 부드럽게(scroll-behavior), 머리말은 지금 섹션을 표시(public.js), 페이지 사이는 @view-transition(app.css)
   - 기기의 '동작 줄이기'면 움직임을 모두 끈다 */
.lp-root { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { .lp-root { scroll-behavior: smooth; } }
.public-nav { view-transition-name: lp-nav; }
.public-nav .links a.plain { transition: color .15s ease, background-color .15s ease; }
.public-nav .links a.plain[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, .06); }
@supports (animation-timeline: scroll()) {
  .public-nav { animation: lp-nav-shade linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
}
@keyframes lp-nav-shade { from { box-shadow: 0 0 0 transparent; } to { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); } }

/* ── 첫 화면 */
.lp-hero { position: relative; padding: 92px 0 96px; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, transparent 78%); }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.lp-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.lp-title { font-size: clamp(38px, 5.6vw, 64px); font-weight: 900; letter-spacing: -.045em; line-height: 1.1; margin: 18px 0 20px; }
.lp-title-accent { position: relative; display: inline-block; color: var(--primary-2); white-space: nowrap; }
.lp-underline { position: absolute; left: 0; bottom: -.16em; width: 100%; height: .3em; overflow: visible; }
.lp-underline path { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; opacity: .75; }
.lp-lead { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 540px; margin: 0; }
.lp-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.lp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.lp-link span { transition: transform .2s ease; }
.lp-link:hover { color: var(--primary-2); text-decoration: none; }
.lp-link:hover span { transform: translateX(3px); }
.lp-proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; row-gap: 8px; color: var(--muted); font-size: 14px; }
.lp-proof li { padding: 0 16px; border-left: 1px solid var(--line); }
.lp-proof li:first-child { padding-left: 0; border-left: 0; }
.lp-proof strong { color: var(--text); }

/* 장면: 웹 상점 창 + 디스코드 패널 + 지급 알림 */
.lp-scene { position: relative; }
.lp-window { position: relative; border: 1px solid var(--line-2); border-radius: 18px; background: #0f1422; overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .5); }
.lp-window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lp-window-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.lp-window-bar em { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .04);
  font: 11.5px var(--mono); font-style: normal; color: var(--faint); }
.lp-store-head { display: flex; align-items: center; gap: 6px; padding: 14px 16px 6px; }
.lp-store-head b { margin-right: auto; font-size: 15px; }
.lp-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lp-chip.on { background: var(--text); border-color: transparent; color: var(--bg); }
.lp-products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px 18px; }
.lp-product { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.lp-thumb { height: 70px; }
.lp-thumb-1 { background: linear-gradient(135deg, #2c3358 0 52%, #232a4a 52%); }
.lp-thumb-2 { background: linear-gradient(135deg, #1f4440 0 52%, #18352f 52%); }
.lp-thumb-3 { background: linear-gradient(135deg, #4a3622 0 52%, #3a2a1a 52%); }
.lp-thumb-4 { background: linear-gradient(135deg, #3a2b4f 0 52%, #2c213d 52%); }
.lp-product-body { display: grid; gap: 3px; padding: 10px 12px 12px; font-size: 12.5px; }
.lp-tag { justify-self: start; padding: 2px 7px; border-radius: 6px; background: rgba(34, 197, 94, .12); color: var(--ink-success); font-size: 10.5px; font-weight: 800; }
.lp-price { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lp-price small { margin-left: 1px; font-weight: 600; color: var(--muted); }
.lp-stock { color: var(--faint); font-size: 11.5px; }
.lp-discord { position: absolute; right: -20px; bottom: -44px; width: 270px; padding: 12px; border-radius: 14px; background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 26px 60px rgba(0, 0, 0, .55); color: #dbdee1; font-size: 12.5px; }
.lp-discord-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lp-bot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 900; }
.lp-app { padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 800; }
.lp-discord-card { display: grid; gap: 7px; padding: 10px 12px; border-left: 3px solid var(--primary); border-radius: 6px; background: #232428; }
.lp-discord-card p { margin: 0; color: #b5bac1; }
.lp-select { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 6px; background: #1e1f22; color: #949ba4; }
.lp-buttons { display: flex; gap: 6px; }
.lp-buttons span { padding: 5px 10px; border-radius: 5px; background: #4e5058; color: #fff; font-size: 11.5px; font-weight: 700; }
.lp-buttons .on { background: #248046; }
.lp-toast { position: absolute; left: -30px; bottom: -26px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-size: 12.5px; }
.lp-toast-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(34, 197, 94, .16); color: var(--ink-success); font-weight: 900; }
.lp-toast small { display: block; color: var(--muted); }

/* ── 섹션 */
.lp-section { padding: 96px 0; }
.lp-section + .lp-section { border-top: 1px solid rgba(255, 255, 255, .04); }
.lp-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.lp-head-left { margin: 0; text-align: left; }
.lp-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .01em; color: var(--primary-2); }
.lp-h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.035em; line-height: 1.2; }
.lp-sub { margin: 12px 0 0; color: var(--muted); }

/* 시작하는 법: 단계를 잇는 선은 스크롤에 맞춰 채워진다 */
.lp-steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lp-steps::before, .lp-steps::after { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; }
.lp-steps::before { background: var(--line); }
.lp-steps::after { background: var(--primary); transform-origin: left center; }
.lp-step { position: relative; z-index: 1; }
.lp-step-num { width: 44px; height: 44px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--primary);
  background: var(--bg); font-weight: 900; }
.lp-step b { display: block; margin-bottom: 4px; font-size: 17px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* 할 수 있는 것: 글과 작은 장면을 번갈아 */
.lp-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.lp-head + .lp-feature { border-top: 0; padding-top: 0; }
.lp-feature-flip .lp-feature-copy { order: 2; }
.lp-feature h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.025em; }
.lp-feature p { margin: 0; color: var(--muted); line-height: 1.8; }
.lp-flow { display: flex; align-items: center; gap: 10px; }
.lp-flow-item { flex: 1; min-width: 0; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 13px; }
.lp-flow-item small, .lp-sync-card small { color: var(--faint); font-size: 11.5px; }
.lp-flow-item b { font-size: 15px; }
.lp-flow-item span { color: var(--muted); font-size: 12px; }
.lp-ok { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); }
.lp-ok b { color: var(--ink-success); }
.lp-flow-arrow { position: relative; flex: none; width: 22px; height: 2px; background: var(--line-2); }
.lp-flow-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-right: 0; border-left-color: var(--line-2); }
.lp-sync { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.lp-sync-card { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 13px; }
.lp-sync-card span { color: var(--muted); }
.lp-sync-discord { background: #2b2d31; border-color: rgba(255, 255, 255, .06); color: #dbdee1; }
.lp-sync-discord span { justify-self: start; padding: 3px 9px; border-radius: 5px; background: #248046; color: #fff; font-size: 11.5px; font-weight: 700; }
.lp-sync-core { width: 100px; height: 100px; display: grid; place-content: center; text-align: center; border-radius: 50%; border: 2px dashed var(--line-2); }
.lp-sync-core b { font-size: 18px; }
.lp-sync-core small { color: var(--muted); font-size: 11px; }
.lp-theme { display: grid; grid-template-columns: auto minmax(0, 260px); justify-content: center; gap: 22px; align-items: center; }
.lp-swatches { display: grid; gap: 10px; }
.lp-swatches span { width: 34px; height: 34px; border-radius: 10px; background: var(--c); border: 2px solid rgba(255, 255, 255, .08); }
.lp-theme-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.lp-theme-card .lp-thumb { border-radius: 10px; height: 84px; }
.lp-theme-btn { justify-self: start; padding: 7px 14px; border-radius: 9px; background: #f5a524; color: #111; font-size: 13px; font-weight: 800; }
.lp-extras { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.lp-extras li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 20px; background: var(--bg-2); }
.lp-extras .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--primary-2); }
.lp-extras b { font-size: 15px; }
.lp-extras span { color: var(--muted); font-size: 13.5px; }

/* 요금제 */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-plan { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
  transition: transform .2s ease, border-color .2s ease; }
.lp-plan:hover { transform: translateY(-3px); border-color: var(--line-2); }
.lp-plan.is-pick { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.lp-plan-top { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.lp-pick { padding: 3px 9px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 800; }
.lp-plan-price { font-size: 34px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-plan-price small { margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.lp-plan-desc { margin: 0; color: var(--muted); font-size: 14px; }
.lp-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.lp-plan li { position: relative; padding-left: 22px; }
.lp-plan li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 10px; height: 5px; border-left: 2px solid var(--ink-success);
  border-bottom: 2px solid var(--ink-success); transform: rotate(-45deg); }
.lp-plan li.off { color: var(--faint); text-decoration: line-through; }
.lp-plan li.off::before { border-color: var(--faint); }
.lp-plan .btn { margin-top: auto; }

/* 자주 묻는 질문: 펼칠 때 높이가 부드럽게(지원하는 브라우저) */
.lp-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.lp-faq { display: grid; gap: 10px; }
.lp-qa { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .2s ease; }
.lp-qa[open] { border-color: var(--line-2); }
.lp-qa summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; font-weight: 700; }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary .icon { flex: none; color: var(--muted); transition: transform .25s ease; }
.lp-qa[open] summary .icon { transform: rotate(180deg); }
.lp-qa summary:focus-visible { outline: 2px solid var(--primary-2); outline-offset: -2px; border-radius: 14px; }
.lp-qa-body p { margin: 0; padding: 0 18px 18px; color: var(--muted); line-height: 1.75; }
@supports (interpolate-size: allow-keywords) {
  .lp-root { interpolate-size: allow-keywords; }
  .lp-qa::details-content { height: 0; overflow: clip; transition: height .3s cubic-bezier(.2, .8, .2, 1), content-visibility .3s allow-discrete; }
  .lp-qa[open]::details-content { height: auto; }
}

/* 마지막 권유 */
.lp-last { padding-top: 40px; }
.lp-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 40px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); }
.lp-cta .lp-h2 { font-size: clamp(24px, 3vw, 32px); }

/* 차례로 나타나기(--i): 인라인 style은 CSP(style-src 'self')가 막아 :nth-child로 준다 */
.lp-stagger > :nth-child(2) { --i: 1; }
.lp-stagger > :nth-child(3) { --i: 2; }
.lp-stagger > :nth-child(4) { --i: 3; }
.lp-stagger > :nth-child(5) { --i: 4; }
.lp-stagger > :nth-child(n+6) { --i: 5; }
.lp-extras > :nth-child(3n+2) { --i: 1; }
.lp-extras > :nth-child(3n) { --i: 2; }
.sw-amber { --c: #f5a524; }
.sw-cobalt { --c: #4f7cff; }
.sw-sage { --c: #3fb68b; }
.sw-plain { --c: #e5e7eb; }

/* ── 움직임(동작 줄이기면 없음) */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-copy > * { animation: lp-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .lp-hero-copy > :nth-child(2) { animation-delay: .06s; }
  .lp-hero-copy > :nth-child(3) { animation-delay: .12s; }
  .lp-hero-copy > :nth-child(4) { animation-delay: .18s; }
  .lp-hero-copy > :nth-child(5) { animation-delay: .24s; }
  .lp-dot { animation: lp-pulse 2.4s ease-out infinite; }
  .lp-underline path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: lp-draw 1.1s .45s cubic-bezier(.65, 0, .35, 1) forwards; }
  .lp-scene { animation: lp-rise .9s .12s cubic-bezier(.2, .8, .2, 1) both; }
  .lp-product { animation: lp-pop .5s calc(.4s + var(--i, 0) * .08s) cubic-bezier(.2, .8, .2, 1) both; }
  .lp-discord { animation: lp-enter-right .7s .55s cubic-bezier(.2, .8, .2, 1) both, lp-float 7s 1.3s ease-in-out infinite; }
  .lp-toast { animation: lp-enter-left .7s .75s cubic-bezier(.2, .8, .2, 1) both, lp-float 6s 1.5s ease-in-out infinite; }
  .lp-swatches span { animation: lp-swatch 8s infinite; }
  .lp-swatches span:nth-child(2) { animation-delay: 2s; }
  .lp-swatches span:nth-child(3) { animation-delay: 4s; }
  .lp-swatches span:nth-child(4) { animation-delay: 6s; }
  .lp-theme-btn { animation: lp-accent 8s infinite; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] { animation: lp-reveal linear both; animation-timeline: view();
      animation-range: entry calc(4% + var(--i, 0) * 5%) cover calc(20% + var(--i, 0) * 5%); }
    .lp-steps::after { animation: lp-fill linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
  }
}
/* 스크롤 타임라인이 없는 브라우저: public.js가 html에 lp-io를 달고, 화면에 들어온 것부터 .in */
.lp-io [data-reveal] { transition: opacity .65s cubic-bezier(.2, .8, .2, 1), transform .65s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.lp-io [data-reveal]:not(.in) { opacity: 0; transform: translateY(26px); }
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lp-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes lp-enter-right { from { opacity: 0; transform: translate(24px, 12px); } }
@keyframes lp-enter-left { from { opacity: 0; transform: translate(-24px, 8px); } }
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes lp-reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lp-swatch { 0%, 24% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); } 25%, 100% { box-shadow: none; } }
@keyframes lp-accent { 0%, 24% { background: #f5a524; color: #111; } 25%, 49% { background: #4f7cff; color: #fff; } 50%, 74% { background: #3fb68b; color: #0b1a14; }
  75%, 99% { background: #e5e7eb; color: #111; } 100% { background: #f5a524; color: #111; } }

/* ── 좁은 화면 */
@media (max-width: 960px) {
  .lp-hero-grid, .lp-feature, .lp-faq-grid { grid-template-columns: 1fr; }
  .lp-hero-grid { gap: 40px; }
  .lp-scene { width: min(560px, 100%); margin: 0 auto 48px; }
  .lp-feature { gap: 28px; }
  .lp-feature-flip .lp-feature-copy { order: 0; }
  .lp-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .lp-steps::before, .lp-steps::after { display: none; }
  .lp-extras { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .lp-hero { padding: 56px 0 48px; }
  .lp-title-accent { white-space: normal; }
  .lp-discord { right: -4px; bottom: -56px; width: 228px; }
  .lp-toast { left: -4px; bottom: -30px; }
  .lp-flow { flex-direction: column; align-items: stretch; }
  .lp-flow-arrow { width: 2px; height: 16px; align-self: center; }
  .lp-flow-arrow::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--line-2); }
  .lp-sync { grid-template-columns: 1fr; justify-items: stretch; }
  .lp-sync-core { justify-self: center; }
  .lp-steps, .lp-extras { grid-template-columns: 1fr; }
  .lp-section { padding: 72px 0; }
  .lp-cta { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
}

/* 한글은 낱말 단위로 줄바꿈(제목이 '팔리/게'처럼 끊기지 않게) */
.lp-hero, .lp-section { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .lp-proof { flex-direction: column; gap: 6px; }
  .lp-proof li { padding: 0; border-left: 0; }
}
/* 요금제 카드(11-09): 한도 한 줄, 앞 요금제에 더해지는 기능 */
.lp-plan-limits { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lp-plan .lp-plan-base { padding-left: 0; color: var(--muted); font-weight: 700; }
.lp-plan .lp-plan-base::before, .lp-plan .lp-plan-more::before { content: none; }
.lp-plan .lp-plan-more { padding-left: 0; color: var(--muted); }
/* 디스코드 미리보기의 봇 사진: 플랫폼 로고(11-09 LunaVend) */
img.lp-bot { display: block; object-fit: cover; background: none; }
