/* 설명서 따라하기(2026-10-11, J안을 라이브로). 실제 앱을 iframe으로 띄우고 덮개가 강조, 하이라이트, 설명을 그린다. 동작 = tour.js.
   색: 강조 바깥은 반투명 어둡게, 하이라이트 = 앱의 AI 형광펜 노랑(webapp style.css --hl, --hl-line). */
main.features { max-width: 1400px; }
/* Top-Down, Bottom-Up 띠와 옛 제품 소개는 우선 숨긴다(J 10-11 "띠는 우선 안보이게 해줘"). 지우지 않았다 */
main.features .howto-bands, main.features > section.product { display: none; }

.tour-intro { max-width: 660px; margin: -10px 0 34px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.tour-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.tour-tab { appearance: none; border: 0; border-left: 1px solid var(--line); background: none; color: var(--muted); font: inherit; text-align: left; padding: 14px 18px 13px; cursor: pointer;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; position: relative; }
.tour-tab:first-child { border-left: 0; }
.tour-tab b { font-size: 19px; font-weight: 760; letter-spacing: -.03em; color: var(--text); }
.tour-tab span { font-size: 13.5px; }
.tour-tab[aria-selected="true"] { background: rgba(255, 255, 255, .62); }
html[data-theme="dark"] .tour-tab[aria-selected="true"] { background: rgba(255, 255, 255, .06); }
.tour-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.tour-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.tour { --hl: #fff3c4; --hl-line: #f5d000; --veil: rgba(16, 22, 18, .58); margin: 22px auto 0; width: min(100%, max(880px, calc((100svh - 112px) * 1.5))); }
.tour-frame { --mb: clamp(4px, .55vw, 8px); --mr: clamp(8px, .9vw, 13px); --bar: clamp(16px, 1.6vw, 24px); position: relative; padding: var(--bar) var(--mb) var(--mb);
  border-radius: var(--mr); background: #1d2124; box-shadow: 0 24px 60px rgba(0, 0, 0, .18), inset 0 0 0 1px #2c3236; }
.tour-lights { position: absolute; top: 0; left: calc(var(--mb) + 4px); height: var(--bar); display: flex; align-items: center; gap: 5px; }
.tour-lights i { width: 8px; height: 8px; border-radius: 50%; }
.tour-lights i:nth-child(1) { background: #ee6a5f; } .tour-lights i:nth-child(2) { background: #f5bf4f; } .tour-lights i:nth-child(3) { background: #62c655; }
.tour-screen { position: relative; aspect-ratio: 3 / 2; border-radius: 3px 3px calc(var(--mr) - var(--mb)) calc(var(--mr) - var(--mb)); overflow: hidden; background: #fdfcf9;
  -webkit-user-select: none; user-select: none; }
html[data-theme="dark"] .tour-screen { background: #141714; }
.tour-stage { position: absolute; left: 0; top: 0; width: 1440px; height: 960px; transform-origin: 0 0; }
.tour-app { position: absolute; inset: 0; width: 1440px; height: 960px; border: 0; display: block; pointer-events: none; background: transparent; }

/* 덮개(z-index를 주지 않는다: 형광펜 칠의 multiply가 아래 앱 화면과 섞이게. 층 순서만으로 위에 온다) */
.tour-ov { position: absolute; inset: 0; }
#tour-fx { position: absolute; inset: 0; pointer-events: none; }
#tour-fx > * { position: absolute; }
.tour-sweep { mix-blend-mode: multiply; border-radius: 3px; width: 0; }
html[data-theme="dark"] .tour-sweep { mix-blend-mode: screen; opacity: .55; }
.tour-press { border-radius: 50%; animation: tourPress .34s ease-out forwards; }
@keyframes tourPress { 0% { background: rgba(0,0,0,.28); transform: scale(.86); box-shadow: 0 0 0 0 rgba(30,110,67,.45); }
  55% { background: rgba(0,0,0,.16); transform: scale(.95); } 100% { background: rgba(0,0,0,0); transform: scale(1); box-shadow: 0 0 0 14px rgba(30,110,67,0); } }
.tour-spot { position: absolute; inset: 0; opacity: 0; transition: opacity .32s ease; pointer-events: none; }
.tour-ov.show .tour-spot { opacity: 1; transition-duration: .42s; }
.tour-spot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#tour-veil { fill: var(--veil); fill-rule: evenodd; }
.tour .ring { position: absolute; border: 2.5px solid var(--hl-line); box-shadow: 0 0 0 1px rgba(255, 224, 138, .7), 0 0 18px rgba(245, 208, 0, .35); }
.tour .ring::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; animation: tourRing 1.7s ease-out infinite; }
@keyframes tourRing { 0% { box-shadow: 0 0 0 0 rgba(245, 208, 0, .55); } 75%, 100% { box-shadow: 0 0 0 12px rgba(245, 208, 0, 0); } }
.tour .co-line { fill: none; stroke: var(--hl-line); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tour .co-dot { fill: var(--hl-line); stroke: #fffdf2; stroke-width: 1.5; }
.tour-ov.show .co-line { animation: tourDraw .45s .18s ease-out both; }
@keyframes tourDraw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.tour .co { position: absolute; max-width: 300px; text-wrap: balance; white-space: pre-line; padding: calc(8px * var(--co-k, 1)) calc(12px * var(--co-k, 1)); border-radius: 6px;
  background: #fffdf6; color: #1f2b22; border: 1px solid var(--hl-line); font-size: calc(13.5px * var(--co-k, 1)); font-weight: 560; line-height: 1.55; letter-spacing: -.005em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.tour-ov.show .co { opacity: 1; transform: none; transition-delay: .5s; }
.tour-hit { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.tour-hit.draw { cursor: text; touch-action: none; }
.tour-hit:focus-visible { outline: 2px solid var(--hl-line); outline-offset: 3px; }
.tour-ov:not(.show) .tour-hit { display: none; }

.tour-cover { position: absolute; inset: 0; display: none; place-items: center; background: rgba(245, 242, 236, .86); color: rgba(31, 43, 34, .8); font-size: 15px; text-align: center; padding: 24px; }
html[data-theme="dark"] .tour-cover { background: rgba(20, 23, 20, .86); color: #c9cdc4; }
.tour-cover.on { display: grid; }

.tour-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 12px 0 0; }
.tour-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tour-btn { appearance: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .62); color: var(--text); cursor: pointer; transition: border-color .15s ease; }
html[data-theme="dark"] .tour-btn { background: rgba(255, 255, 255, .06); }
.tour-btn svg { width: 18px; height: 18px; }
.tour-btn:hover:not(:disabled) { border-color: var(--accent); }
.tour-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour-btn:disabled { opacity: .35; cursor: default; }

/* 기능 31개 목록 */
.flist { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 40px; }
.flist h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 780; letter-spacing: -.045em; }
.flist > p { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.fl-grid { columns: 2 440px; column-gap: 40px; }
.fl-ch { break-inside: avoid; margin: 0 0 30px; }
.fl-ch h3 { margin: 0 0 8px; font-size: 16px; font-weight: 760; letter-spacing: -.02em; display: flex; gap: 8px; align-items: baseline; }
.fl-ch h3 span { font-size: 12px; color: var(--accent); font-weight: 700; }
.fl-ch ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.fl-ch li { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 4px; align-items: baseline; }
.fl-n { font-size: 12.5px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.fl-body b { display: block; font-size: 15px; font-weight: 700; }
.fl-where { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.fl-how { display: block; font-size: 13.5px; margin-top: 3px; line-height: 1.55; }

@media (max-width: 900px) {
  .tour { width: 100%; }
  .tour-tab { padding: 11px 12px 10px; gap: 2px 8px; }
  .tour-tab b { font-size: 16px; } .tour-tab span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour .ring::after { animation: none; }
  .tour-ov.show .co-line { animation: none; }
  .tour-spot, .tour .co { transition: none !important; }
}
