/* 1분 체험(목업) 전용 — 앱 첫 화면(처음 온 사람·「1분 체험 보기」를 누를 때 지연 로드)과 소개 「작동 방식」이 쓴다.
   보이기·숨기기(.app-home[data-tour]·html.tour-closed)와 「1분 체험 보기」 버튼은 app.css 에 있다. */
.tour { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-2); padding: 22px 24px 24px; }
.tour-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.tour-head h2 { margin: 0; font-size: 19px; font-weight: 750; }
.tour-note { margin: 3px 0 0; font-size: 14px; color: var(--ink-3); }
.tour-ctl { display: flex; gap: 2px; margin: -8px -10px 0 0; }
.tour-ctl .ic-play { display: none; }
.tour-ctl .is-paused .ic-play { display: block; }
.tour-ctl .is-paused .ic-pause { display: none; }
.tour-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.tour-steps { display: grid; gap: 6px; }
.tour-steps button { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 12px 14px; text-align: left;
  border-radius: var(--r-m); border: 1px solid transparent; background: transparent; color: var(--ink); }
.tour-steps button:hover { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.tour-steps button b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); color: var(--ink-2); font-weight: 800; font-size: 15px; }
.tour-steps button[aria-selected="true"] { background: var(--bg); border-color: var(--line); }
.tour-steps button[aria-selected="true"] b { background: var(--ink); color: var(--bg); }
.tour-steps strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; margin-top: 4px; }
.tour-steps small { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.tour-stage { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 24px; min-height: 340px; overflow: hidden; }
.tour-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tm-h { margin: 0 0 14px; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.tm-h small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.tm-search { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 5px 5px 5px 16px; border: 1.5px solid var(--brand-text); border-radius: 14px; }
.tm-search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.tm-type { font-size: 17px; font-weight: 500; min-height: 1.4em; }
.tm-caret { width: 2px; height: 22px; background: var(--brand-text); margin-left: -8px; opacity: 0; }
.typing .tm-caret { opacity: 1; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tm-go { margin-left: auto; padding: 9px 18px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 650; font-size: 15px; }
.tm-cand { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 14px 4px; border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.tm-cand.in { opacity: 1; transform: none; }
.tm-cand-main { min-width: 0; }
.tm-cand-main b { display: block; font-size: 16.5px; }
.tm-cand-main small { display: block; font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-make { flex: none; padding: 9px 14px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 650; transition: transform .12s, background .12s; }
.tm-make.press { transform: scale(.94); background: var(--brand-ink); }
.tm-hint { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }
.tm-bar { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.tm-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width .3s ease-out; }
.tm-count { margin: 8px 0 14px; font-size: 14px; color: var(--ink-3); }
.tm-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.tm-list li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-3); transition: color .2s; }
.tm-list li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; position: relative; transition: background .2s, border-color .2s; }
.tm-list li.done { color: var(--ink); }
.tm-list li.done i { background: var(--brand); border-color: var(--brand); }
.tm-list li.done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tm-rv { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.tm-rv.in { opacity: 1; transform: none; }
.tm-band { background: #0f1e2b; color: #c9d7df; border-radius: 12px; padding: 14px 16px; }
.tm-band small { display: block; font-size: 13px; color: #8fa6b3; }
.tm-band b { display: block; color: #fff; font-size: 20px; font-weight: 750; letter-spacing: -.03em; margin-top: 2px; }
.tm-sig { list-style: none; margin: 12px 0 0; padding: 0; }
.tm-sig li { display: grid; grid-template-columns: 18px 92px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line-3); font-size: 14px; }
.tm-sig li svg { margin-top: 2px; }
.tm-sig li span { color: var(--ink-2); }
.tm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.tm-fin p, .tm-terms p { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tm-fin p small { font-weight: 400; color: var(--ink-3); }
.tm-bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; padding-top: 16px; border-bottom: 1px solid var(--line-2); }
.tm-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.tm-bars i { display: block; position: relative; width: 100%; max-width: 30px; background: color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 3px 3px 0 0; }
.tm-bars span:last-child i { background: var(--brand); }
/* 값은 막대 바로 위(막대 안에 넣어 높이를 따라감) — 위 여백 16px 이 가장 높은 막대의 값 자리 */
.tm-bars em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 1px; font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-bars small { position: absolute; bottom: -20px; font-size: 11px; color: var(--ink-3); }
.tm-fin { padding-bottom: 20px; }
.tm-terms span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) {
  .tm-cand, .tm-rv, .tm-bar i, .tm-list li, .tm-list li i, .tm-make { transition: none; }
  .typing .tm-caret { animation: none; }
}
/* 장면 셋을 한 칸에 겹쳐 둔다 — 가장 큰 장면 높이로 자리를 잡아, 장면이 바뀌거나 글자가 채워져도 아래 내용이 밀리지 않게(CLS) */
.tour-stage { display: grid; }
.tour-stage > .tm { grid-area: 1 / 1; min-width: 0; }
.tour-stage > .tm[hidden] { display: block !important; visibility: hidden; }   /* app.css 의 [hidden]{display:none !important} 를 이 자리에서만 이긴다 */
@media (max-width: 900px) {
  .tour-body { grid-template-columns: minmax(0, 1fr); }
  .tour-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tour-steps button { grid-template-columns: 1fr; justify-items: start; gap: 6px; padding: 10px 12px; }
  .tour-steps small { display: none; }
  .tour-steps strong { margin-top: 0; font-size: 15px; }
}
@media (max-width: 760px) {
  .tour { padding: 18px 16px 18px; border-radius: var(--r-l); }
  .tour-stage { padding: 16px; min-height: 0; }
  .tm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-sig li { grid-template-columns: 18px minmax(0, 1fr); }
  .tm-sig li span { grid-column: 2; }
}
@media (max-width: 520px) {
  .tour-foot .btn { flex: 1; }
}
@media (max-width: 380px) {
  .tm-list { grid-template-columns: minmax(0, 1fr); }
  .tour-steps strong { font-size: 14px; }
}
