/* 소개(첫) 화면 — 새 디자인(r2). 값은 전부 r2.css 의 변수를 쓴다. 틀: templates/r2/landing.html
   차례: 첫 화면(hero) · 데모(hd) · 작은 화면 부품(mk) · 진행 흐름(fl) · 사용법 영상(th) · 돕는 일(band) · 기능 칸(bento) · 질문(faq) · 맺음(closing) */

.r2-section { padding-block: var(--section); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .r2-h2 { margin-top: 20px; }
.sec-head .r2-lead { margin-top: 20px; max-width: 34em; }
.sec-head.is-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; max-width: none; }
.sec-head.is-row .r2-h2 { margin-top: 0; }
.sec-side { color: var(--ink-3); font-size: 16px; font-weight: 500; }
.r2-ico { width: 18px; height: 18px; flex: none; }

/* ── 첫 화면 ── */
.hero { position: relative; padding-top: clamp(44px, 6.4vw, 96px); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--nav-h) * -1); z-index: -1; height: 760px; background: radial-gradient(52% 58% at 50% 0%, var(--glow), transparent 72%); pointer-events: none; }
.hero-title { margin-top: 28px; }
.hero-title em { color: var(--accent); }
.hero-lead { max-width: 39em; margin-top: clamp(22px, 2.2vw, 28px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3vw, 40px); }
.hero-fine { margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.hd { margin-top: clamp(44px, 5.6vw, 84px); }
/* 등장: 스크립트 없이 CSS 로만(첫 화면은 스크립트를 기다리지 않는다) */
@keyframes r2-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes r2-mask { from { transform: translateY(105%); } }
.hero-eyebrow { animation: r2-up 700ms var(--ease) both; }
.hero-title .r2-line > span { animation: r2-mask 800ms var(--ease-em) both; }
.hero-title .r2-line:nth-child(1) > span { animation-delay: 60ms; }
.hero-title .r2-line:nth-child(2) > span { animation-delay: 150ms; }
.hero-lead { animation: r2-up 700ms var(--ease) 260ms both; }
.hero-cta { animation: r2-up 700ms var(--ease) 330ms both; }
.hero-fine { animation: r2-up 700ms var(--ease) 390ms both; }
.hd { animation: r2-up 800ms var(--ease) 420ms both; }

/* ── 데모 창 ── */
.hd-win { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: background-color 200ms linear, border-color 200ms linear; }
.hd-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 6px 0 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hd-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.hd-url { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 5px 16px; border-radius: var(--r-full); background: var(--sunken); color: var(--ink-3); font-size: 14px; font-weight: 500; line-height: 1.2; }
.hd-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); transition: color var(--t-1) var(--ease), transform var(--t-1) var(--ease); }
.hd-toggle:hover { color: var(--ink); }
.hd-toggle:active { transform: scale(0.94); }
.hd-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.hd-toggle .i-play, .hd.is-paused .hd-toggle .i-pause { display: none; }
.hd.is-paused .hd-toggle .i-play { display: block; }
.hd-stage { display: grid; }
.hd-scene { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3.6vw, 48px) clamp(20px, 4.4vw, 64px); visibility: hidden; opacity: 0; }
.hd-scene.is-on { visibility: visible; opacity: 1; }
.hd-title { margin-top: 16px; font-size: clamp(26px, 2.9vw, 42px); font-weight: 700; line-height: 1.22; letter-spacing: -0.032em; }
.hd-title em { color: var(--accent); }
.hd-note { margin-top: 14px; color: var(--ink-3); font-size: 17px; line-height: 1.6; }
.hd-mock { display: grid; place-items: center; min-height: 440px; padding: clamp(16px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--sunken); transition: background-color 200ms linear; }
.hd [data-out] { opacity: 0; }   /* 서버가 그린 모습(= 다 끝난 모습)에서는 중간에 사라지는 것들이 안 보인다 */
.hd-ctl { padding: 0 clamp(20px, 4.4vw, 64px); border-top: 1px solid var(--line); }
.hd-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.hd-tab { display: grid; align-content: start; gap: 10px; min-height: 60px; padding: 0 0 14px; border: 0; background: none; color: var(--ink-3); font-size: 15px; font-weight: 500; line-height: 1.3; text-align: left; white-space: nowrap; transition: color var(--t-1) var(--ease); }
.hd-tab:hover { color: var(--ink-2); }
.hd-tab.is-on { color: var(--ink); font-weight: 600; }
.hd-tab-bar { display: block; height: 2px; margin-top: -1px; background: var(--line); overflow: hidden; }
.hd-tab-fill { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hd-tab.is-done .hd-tab-fill, .hd:not(.is-live) .hd-tab.is-on .hd-tab-fill, .hd.is-still .hd-tab.is-on .hd-tab-fill { transform: scaleX(1); }

/* ── 작은 화면 부품(데모·진행 흐름·돕는 일이 같이 쓴다). 글자는 13px 아래로 내려가지 않는다 ── */
.mk { width: min(100%, 480px); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 15px; line-height: 1.4; text-align: left; overflow: hidden; transition: background-color 200ms linear, border-color 200ms linear; }
.mk.is-open { display: grid; gap: 12px; border: 0; background: none; box-shadow: none; overflow: visible; }
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.mk-head b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.mk-meta { color: var(--ink-3); font-size: 14px; font-weight: 500; white-space: nowrap; }
.mk-l { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.mk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.mk-f { display: grid; gap: 6px; min-width: 0; }
.mk-f.is-wide { grid-column: 1 / -1; }
.mk-v { position: relative; display: flex; align-items: center; gap: 3px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.mk-v small { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.mk-ph { position: absolute; left: 12px; color: var(--ink-4); font-style: normal; font-weight: 400; }
.mk-days { display: grid; gap: 6px; padding: 0 16px 16px; }
.mk-day-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-slot { display: grid; border: 1px dashed var(--line-strong); border-radius: var(--r-1); }
.mk-slot:nth-child(2) { position: relative; z-index: 1; }   /* 양옆 카드가 가운데 카드 뒤에서 나온다 */
.mk-day { position: relative; display: grid; gap: 2px; margin: -1px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--r-1); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.mk-day small { color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.mk-day b { font-size: 16px; font-weight: 700; }
.mk-day-all, .mk-day-one { display: grid; gap: 2px; }
.mk-day-all { position: absolute; left: 12px; top: 9px; }
.mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; font-weight: 500; }
.mk-foot.is-end { justify-content: flex-end; }
.mk-chip { display: inline-flex; align-items: center; gap: 5px; height: 31px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--r-full); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; }
.mk-chip.is-ok { background: var(--accent-soft); color: var(--accent-ink); }
.mk-chip.is-wait { background: var(--sunken); color: var(--ink-3); }
.mk-chip.is-solid { background: var(--accent); color: var(--on-accent); }
.mk-chip.is-line { border-color: var(--line-strong); color: var(--ink-2); }
.mk-chip .r2-ico { width: 14px; height: 14px; }
.mk-ck { width: 13px; height: 13px; flex: none; }
.mk-ck path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mk-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mk-thumb { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-1); background: var(--sunken); color: var(--ink-3); }
.mk-thumb svg { width: 20px; height: 20px; }
.mk-name { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.mk-name b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-name small { color: var(--ink-3); font-size: 14px; }
.mk-swap { display: inline-grid; justify-items: end; }
.mk-swap > * { grid-area: 1 / 1; }
.mk-track { position: relative; padding: 4px 16px 16px; }
.mk-track-line { position: absolute; left: 22px; right: 22px; top: 9px; height: 2px; background: var(--line); overflow: hidden; }
.mk-track-fill { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.mk-track ol { position: relative; display: flex; justify-content: space-between; }
.mk-track li { display: grid; gap: 8px; justify-items: center; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.mk-track li:first-child { justify-items: start; }
.mk-track li:last-child { justify-items: end; }
.mk-track li i { display: grid; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.mk-track li i b { width: 12px; height: 12px; margin: -2px; border-radius: 50%; background: var(--accent); }
.mk-track li.is-done i { border-color: var(--accent); background: var(--accent); }
.mk-table { padding: 2px 16px 6px; }
.mk-tr { display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.mk-tr:last-child { border-bottom: 0; }
.mk-tr.is-head { min-height: 32px; color: var(--ink-3); font-size: 14px; }
.mk-tr > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tr:not(.is-head) > span:last-child { color: var(--ink-3); }
.mk-toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow); }
.mk-toast-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.mk-toast-txt { display: grid; gap: 1px; min-width: 0; }
.mk-toast-txt b { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.mk-toast-txt span { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.mk-toast-txt small { color: var(--ink-3); font-size: 14px; }
.mk-ask { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.mk-ask p { min-height: 1.4em; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-prog { display: flex; align-items: center; gap: 10px; padding: 0 16px 14px; }
.mk-prog-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mk-prog-bar i { display: block; width: 33.4%; height: 100%; background: var(--accent); }
.mk-prog-n { color: var(--ink-2); font-size: 14px; font-weight: 600; }

/* ── 진행 흐름 ── */
.fl { position: relative; padding-block: var(--section); }
.fl-in { display: grid; gap: 48px; }
.fl-head .r2-h2 { margin-top: 20px; }
.fl-head .r2-lead { max-width: 30em; margin-top: 20px; }
.fl-lanes { position: relative; max-width: 640px; margin-top: clamp(32px, 4vw, 48px); }
.fl-lane-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 14px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.fl-lane-head .is-me { color: var(--accent-ink); text-align: right; }
.fl-line { position: absolute; left: calc(50% - 0.5px); top: 34px; bottom: 6px; width: 1px; background: var(--line-strong); }
.fl-line-fill { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleY(var(--p, 1)); transform-origin: top; }
.fl-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; padding-block: 12px; }
.fl-dot { position: absolute; left: calc(50% - 6px); top: 19px; width: 12px; height: 12px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); transition: background-color var(--t-2) var(--ease), border-color var(--t-2) var(--ease), transform var(--t-2) var(--ease); }
.fl-step.is-lit .fl-dot { border-color: var(--accent); background: var(--accent); }
.fl-step.is-on .fl-dot { transform: scale(1.25); }
.fl-card { grid-column: 2; min-width: 0; }
.fl-step.is-me .fl-card { grid-column: 1; text-align: right; }
.fl-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1; }
.fl-no { color: var(--ink-3); }
.fl-who { color: var(--ink-3); }
.fl-step.is-me .fl-who { color: var(--accent-ink); }
.fl-card h3 { margin-top: 8px; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.022em; }
.fl-more { display: grid; grid-template-rows: 1fr; }
.fl-more > div { min-height: 0; overflow: hidden; }
.fl-desc { padding-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.fl-play { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 600; transition: color var(--t-1) var(--ease); }
.fl-play:hover { color: var(--accent-ink); }
.fl-play-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: transform var(--t-1) var(--ease); }
.fl-play:active .fl-play-dot { transform: scale(0.94); }
.fl-play-dot svg { width: 9px; height: 9px; margin-left: 1px; fill: currentColor; }
.fl-screens { display: none; }
.fl-cue { display: none; }
.fl.is-pin .fl-cue { position: absolute; left: 50%; bottom: clamp(16px, 3.4vh, 36px); display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px 0 20px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; box-shadow: var(--shadow); transform: translateX(-50%); white-space: nowrap; }
.fl-cue-n { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.fl-cue-n::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 12px; background: var(--line-strong); vertical-align: -2px; }
.fl-cue .when-last, .fl.is-last .fl-cue .when-more { display: none; }
.fl.is-last .fl-cue .when-last { display: inline; }
.fl-cue svg { width: 18px; height: 18px; color: var(--accent-ink); animation: fl-nudge 1.6s var(--ease) infinite; }
@keyframes fl-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.fl.is-pin .fl-step { cursor: pointer; }
/* 넓지만 붙이지 않는 화면(낮은 창·동작 줄이기·스크립트 없음): 제목은 왼쪽, 단계는 오른쪽 */
@media (min-width: 961px) {
  .fl:not(.is-pin) .fl-left { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 64px; }
  .fl:not(.is-pin) .fl-lanes { max-width: none; margin-top: 0; }
}
/* 넓고 높은 화면: 화면에 붙어 있는 동안 스크롤에 맞춰 단계가 켜진다(landing.js 가 is-pin 을 붙인다) */
.fl.is-pin { height: calc(100vh + 190vh); padding-block: 0; }
.fl.is-pin .fl-pin { position: sticky; top: 0; display: grid; align-items: center; height: 100vh; padding-top: var(--nav-h); }
.fl.is-pin .fl-in { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); align-items: center; gap: 64px; }
.fl.is-pin .fl-head .r2-h2 { margin-top: 16px; font-size: clamp(30px, 3.1vw, 44px); }
.fl.is-pin .fl-head .r2-lead { margin-top: 14px; font-size: 17px; line-height: 1.6; }
.fl.is-pin .fl-lanes { max-width: none; margin-top: 24px; }
.fl.is-pin .fl-lane-head { padding-bottom: 8px; }
.fl.is-pin .fl-line { top: 28px; }
/* 켜지지 않은 단계는 흐리게 하지 않고(글자 대비가 무너진다) 한 단계 옅은 글자색으로 물러난다 */
.fl.is-pin .fl-step { padding-block: 8px; }
.fl.is-pin .fl-card h3, .fl.is-pin .fl-who { transition: color var(--t-2) var(--ease); }
.fl.is-pin .fl-step:not(.is-on) .fl-card h3, .fl.is-pin .fl-step:not(.is-on) .fl-who { color: var(--ink-3); }
.fl.is-pin .fl-dot { top: 14px; }
.fl.is-pin .fl-card { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; column-gap: 10px; }
.fl.is-pin .fl-step.is-me .fl-card { justify-content: flex-end; }
.fl.is-pin .fl-card h3 { margin-top: 0; font-size: 19px; line-height: 24px; }
.fl.is-pin .fl-more { flex: 0 0 100%; }
.fl.is-pin .fl-more { grid-template-rows: 0fr; transition: grid-template-rows var(--t-2) var(--ease); }
.fl.is-pin .fl-more > div { visibility: hidden; transition: visibility 0s linear var(--t-2); }
.fl.is-pin .fl-step.is-on .fl-more { grid-template-rows: 1fr; }
.fl.is-pin .fl-step.is-on .fl-more > div { visibility: visible; transition-delay: 0s; }
.fl.is-pin .fl-screens { display: grid; place-items: center; min-height: min(520px, 62vh); padding: 32px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--sunken); }
.fl-screen { grid-area: 1 / 1; display: grid; place-items: center; width: 100%; opacity: 0; transform: translateY(12px) scale(0.985); transition: opacity var(--t-2) var(--ease), transform var(--t-3) var(--ease); }
.fl-screen.is-on { opacity: 1; transform: none; }

/* ── 사용법 영상 ── */
.th { display: grid; grid-template-columns: minmax(0, 1fr) 344px; align-items: stretch; gap: 20px; }
.th-main { min-width: 0; }
.th-stage { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r-3); background: #e6ebf2; box-shadow: var(--shadow); overflow: hidden; }
.th-cover { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; width: 100%; margin: 0; padding: 24px; border: 0; background: radial-gradient(58% 70% at 50% 0%, rgba(46, 107, 240, 0.16), transparent 72%), #e6ebf2; color: #0e1420; text-align: center; }
.th-cover:focus-visible { outline-offset: -8px; border-radius: var(--r-3); }
.th-cover-play { position: relative; display: grid; place-items: center; width: clamp(56px, 7vw, 76px); height: clamp(56px, 7vw, 76px); border-radius: 50%; background: #2e6bf0; color: #fff; transition: transform var(--t-2) var(--ease), background-color var(--t-1) var(--ease); }
.th-cover-play svg { width: 40%; height: 40%; margin-left: 5%; fill: currentColor; }
.th-cover:hover .th-cover-play { background: #3f79f5; transform: scale(1.04); }
.th-cover:active .th-cover-play { transform: scale(0.97); }
.th-cover-title { margin-top: clamp(14px, 2vw, 22px); font-size: clamp(21px, 2.6vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -0.032em; }
.th-cover-meta { margin-top: 6px; color: #4e5968; font-size: 16px; font-weight: 500; }
.th-cover.ia-is-busy .th-cover-play::after, .th-stage.ia-is-busy::after { content: ""; position: absolute; border: 3px solid rgba(46, 107, 240, 0.2); border-top-color: #2e6bf0; border-radius: 50%; opacity: 0; pointer-events: none; animation: ag-spin 0.8s linear infinite, ag-show 0s linear 0.35s forwards; }
.th-cover.ia-is-busy .th-cover-play::after { inset: -9px; }
.th-stage.ia-is-busy::after { left: 50%; top: 50%; z-index: 4; width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.th-error { margin-top: 12px; color: var(--danger); font-size: 15px; font-weight: 500; }
.th-side { position: relative; min-height: 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; transition: background-color 200ms linear; }
.th-list { position: absolute; inset: 0; padding: 6px 8px 10px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.th-group-title { padding: 14px 12px 6px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.th-item { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: var(--r-1); color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.35; transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--ease); }
.th-item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.th-item:active { transform: scale(0.985); }
.th-item:focus-visible { outline-offset: -2px; }
.th-mark { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-3); transition: background-color var(--t-1) var(--ease), border-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.th-mark svg { width: 9px; height: 9px; margin-left: 1px; fill: currentColor; }
.th-len { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.th-item.ia-is-current { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.th-item.ia-is-current .th-mark { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.th-prog { position: absolute; left: 46px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 18%, transparent); opacity: 0; overflow: hidden; }
.th-item.ia-is-current .th-prog { opacity: 1; }
.th-prog i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ── 돕는 일 ── */
.band { border-block: 1px solid var(--line); background: var(--surface-2); transition: background-color 200ms linear; }
.band-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.band-copy .r2-h2 { margin-top: 20px; }
.band-copy .r2-lead { margin-top: 20px; }
.band-stack { position: relative; height: 610px; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--t-2) var(--ease); }
.band-card { position: absolute; width: min(66%, 400px); transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.band-card .mk { width: 100%; }
.band-card.is-a { left: 0; top: 0; }
.band-card.is-b { right: 0; top: 196px; z-index: 2; }
.band-card.is-c { left: 4%; bottom: 0; z-index: 3; }
.band-card.is-c .mk-ask { box-shadow: var(--shadow); }

/* ── 기능 여섯 칸 ── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento-cell { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; transition: border-color var(--t-2) var(--ease), background-color 200ms linear; }
.bento-cell:hover { border-color: var(--line-strong); }
.bento-cell.is-copy { grid-column: span 4; }
.bento-cell.is-excel, .bento-cell.is-bell, .bento-cell.is-edit, .bento-cell.is-credit { grid-column: span 2; }
.bento-cell.is-past { grid-column: span 6; flex-direction: row; }
.bento-view { position: relative; display: grid; place-items: center; flex: 1 1 auto; min-height: 232px; padding: 28px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 15px; line-height: 1.4; overflow: hidden; transition: background-color 200ms linear; }
.bento-txt { flex: none; min-height: 122px; padding: 20px 24px 24px; }
.bento-txt h3 { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.bento-txt p { margin-top: 6px; color: var(--ink-3); font-size: 16px; line-height: 1.55; }
.bento-cell.is-past .bento-view { flex: 1.5 1 0; min-height: 0; border-bottom: 0; border-right: 1px solid var(--line); padding-block: 24px; }
.bento-cell.is-past .bento-txt { flex: 1 1 0; align-self: center; min-height: 0; padding: 24px 32px; }
@keyframes bv-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes bv-fade { from { opacity: 0; } }
@keyframes bv-drop { from { opacity: 0; transform: translateY(-34px); } }
@keyframes bv-press { 40% { transform: scale(0.95); } }
@keyframes bv-side { from { opacity: 0; transform: translateX(22px); } }
/* 열 복사 */
.bv-table { position: relative; width: min(100%, 500px); padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.bv-tr { position: relative; z-index: 1; display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; align-items: center; gap: 10px; min-height: 38px; border-bottom: 1px solid var(--line); font-weight: 500; }
.bv-tr:nth-last-child(2) { border-bottom: 0; }
.bv-tr.is-head { color: var(--ink-3); font-size: 14px; }
.bv-tr.is-head .is-hit { color: var(--accent-ink); font-weight: 600; }
.bv-tr > span:last-child { color: var(--ink-3); }
.bv-col { position: absolute; top: 3px; bottom: 3px; left: calc(14px + (100% - 48px) * 0.2424 + 4px); width: calc((100% - 48px) * 0.4545 + 12px); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: var(--r-1); background: var(--accent-soft); }
.bv-toast { position: absolute; right: 22px; top: 18px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: var(--r-full); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.is-play .bv-col { animation: bv-fade 360ms var(--ease) both; }
.is-play .bv-toast { animation: bv-in 360ms var(--ease) 420ms both; }
/* 엑셀 */
.is-excel .bento-view { align-content: center; gap: 12px; }
.bv-file { display: grid; place-items: center; width: 52px; height: 60px; border: 1px solid var(--line-strong); border-radius: var(--r-1); background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.bv-file .r2-ico { width: 24px; height: 24px; }
.bv-tray { width: 92px; height: 6px; margin-top: -6px; border-radius: 6px; background: var(--line-strong); }
.bv-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
.bv-btn .r2-ico { width: 14px; height: 14px; }
.is-play .bv-btn { animation: bv-press 300ms var(--ease) both; }
.is-play .bv-file { animation: bv-drop 620ms var(--ease-em) 220ms both; }
/* 알림 */
.bv-notes { display: grid; gap: 8px; width: min(100%, 300px); }
.bv-note { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.bv-note i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.bv-note i .r2-ico { width: 14px; height: 14px; }
.bv-note b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-note:nth-child(2) { opacity: 0.72; }
.bv-note:nth-child(3) { opacity: 0.44; }
.is-play .bv-note { animation: bv-side 520ms var(--ease) both; }
.is-play .bv-note:nth-child(2) { animation-delay: 140ms; }
.is-play .bv-note:nth-child(3) { animation-delay: 280ms; }
/* 수정·취소 */
.bv-edit { display: grid; gap: 12px; width: min(100%, 300px); padding: 16px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.bv-edit-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bv-edit-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-edit-val { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); }
.bv-swap { display: inline-grid; justify-items: end; font-size: 16px; }
.bv-swap b { grid-area: 1 / 1; font-weight: 700; }
.bv-swap .is-old { opacity: 0; }
.bv-swap.is-big { justify-items: start; font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; }
.bv-edit-btns { display: flex; gap: 8px; }
.bv-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.bv-pill.is-hit { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.is-play .bv-pill.is-hit { animation: bv-press 300ms var(--ease) both; }
@keyframes bv-hold-out { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.is-play .bv-swap .is-old { animation: bv-hold-out 760ms linear both; }
.is-play .bv-swap .is-new { animation: bv-in 360ms var(--ease) 720ms both; }
/* 보유 건수 */
.bv-credit { display: grid; gap: 6px; width: min(100%, 260px); }
.bv-use { display: inline-flex; align-items: center; justify-self: start; gap: 5px; height: 28px; margin-top: 6px; padding: 0 11px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.is-play .bv-use { animation: bv-in 360ms var(--ease) 980ms both; }
/* 지난 내역 */
.bv-past { display: grid; gap: 8px; width: min(100%, 520px); }
.bv-past-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.bv-past-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-past-row small { color: var(--ink-3); font-size: 14px; }
.is-play .bv-past-row { animation: bv-in 480ms var(--ease) both; }
.is-play .bv-past-row:nth-child(2) { animation-delay: 110ms; }
.is-play .bv-past-row:nth-child(3) { animation-delay: 220ms; }

/* ── 자주 묻는 질문 ── */
.faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(24px, 5vw, 72px); }
.faq-in .sec-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 76px; padding: 18px 0; border: 0; background: none; color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; text-align: left; }
.faq-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-2); transition: transform var(--t-2) var(--ease), border-color var(--t-1) var(--ease); }
.faq-ico .r2-ico { width: 14px; height: 14px; }
.faq-q:hover .faq-ico { border-color: var(--ink-3); }
.faq-q[aria-expanded="true"] .faq-ico { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq.is-ready .faq-a { transition: grid-template-rows var(--t-2) var(--ease); }
.faq-a > div { min-height: 0; overflow: hidden; }
.faq-a p { padding: 0 52px 24px 0; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.faq-item.is-shut .faq-a { grid-template-rows: 0fr; }
.faq-item.is-shut .faq-a > div { visibility: hidden; transition: visibility 0s linear var(--t-2); }

/* ── 맺음(어두운 구역) ── */
.closing { position: relative; padding-block: clamp(104px, 13vw, 184px); background: var(--night); color: var(--night-ink); text-align: center; overflow: hidden; }
.closing-in { position: relative; display: grid; justify-items: center; gap: 0; }
.closing-title { font-size: clamp(32px, 5vw, 72px); }
.closing-title em { color: #7ea6ff; }
.closing-lead { max-width: 36em; margin-top: 24px; color: var(--night-ink-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; }
.closing-btn { min-height: 56px; margin-top: 40px; padding: 0 28px; font-size: 18px; }
.closing-flow { position: absolute; inset: 0; display: grid; align-content: space-between; padding-block: 28px; opacity: 0.16; pointer-events: none; -webkit-mask-image: radial-gradient(60% 90% at 50% 50%, transparent 30%, #000 100%); mask-image: radial-gradient(60% 90% at 50% 50%, transparent 30%, #000 100%); }
.closing-row { display: flex; width: max-content; animation: closing-slide 70s linear infinite; }
.closing-row.is-back { animation-direction: reverse; }
.closing-set { display: flex; gap: 14px; padding-right: 14px; }
.closing-day { display: grid; gap: 2px; width: 148px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--r-2); color: #fff; font-size: 16px; line-height: 1.4; text-align: left; }
.closing-day::before { content: attr(data-day) "일차"; font-size: 14px; font-weight: 600; opacity: 0.8; }
.closing-day::after { content: "10건"; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes closing-slide { to { transform: translateX(-50%); } }
.r2-home .r2-foot { border-top: 0; }

/* ── 좁은 화면 ── */
@media (max-width: 960px) {
  .th { grid-template-columns: minmax(0, 1fr); }
  .th-side { min-height: 0; }
  .th-list { position: static; max-height: 344px; }
  .band-in { grid-template-columns: minmax(0, 1fr); }
  .bento-cell.is-copy, .bento-cell.is-past { grid-column: span 6; }
  .bento-cell.is-excel, .bento-cell.is-bell, .bento-cell.is-edit, .bento-cell.is-credit { grid-column: span 3; }
  .faq-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hd-scene { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 20px; }
  .hd-mock { min-height: 0; }
}
@media (max-width: 720px) {
  .hero-cta .r2-btn { flex: 1 1 auto; min-height: 52px; }
  .hd-bar { padding-left: 14px; }
  .hd-url { display: none; }
  .hd-note { font-size: 16px; }
  .hd-mock { padding: 12px; border-radius: var(--r-2); }
  .hd-tab { min-height: 56px; font-size: 14px; letter-spacing: -0.03em; }
  .mk-form { padding: 12px; }
  .mk-days { padding: 0 12px 12px; }
  .mk-day { padding: 8px 9px; }
  .mk-day-all { left: 9px; top: 8px; }
  .mk-head, .mk-foot { padding-inline: 12px; }
  .mk-row { padding: 12px; }
  .mk-table { padding-inline: 12px; }
  .mk-tr { gap: 6px; font-size: 14px; }
  /* 진행 흐름: 한 줄 타임라인(선은 왼쪽) */
  .fl-lane-head { display: none; }
  .fl-line { left: 5.5px; top: 6px; }
  .fl-step, .fl-step.is-me { grid-template-columns: minmax(0, 1fr); padding: 14px 0 14px 34px; }
  .fl-dot { left: 0; top: 21px; }
  .fl-card, .fl-step.is-me .fl-card { grid-column: 1; text-align: left; }
  .fl-who { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: var(--r-full); }
  .fl-step.is-me .fl-who { border-color: transparent; background: var(--accent-soft); }
  .band-stack { display: grid; gap: 12px; height: auto; transform: none; }
  .band-card, .band-card.is-a, .band-card.is-b, .band-card.is-c { position: static; width: 100%; transform: none; }
  .bento { gap: 12px; }
  .bento-cell.is-excel, .bento-cell.is-bell, .bento-cell.is-edit, .bento-cell.is-credit { grid-column: span 6; }
  .bento-cell.is-past { flex-direction: column; }
  .bento-cell.is-past .bento-view { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .bento-cell.is-past .bento-txt { align-self: stretch; padding: 20px 20px 24px; }
  .bento-view { min-height: 200px; padding: 24px 16px; }
  .bento-txt { min-height: 0; padding: 18px 20px 22px; }
  .bento-cell.is-copy .bento-view { padding-top: 56px; }
  .bv-past-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .bv-past-row .mk-chip { display: none; }
  .bv-toast { right: 16px; top: 12px; }
  .faq-q { min-height: 68px; font-size: 18px; }
  .faq-a p { padding-right: 0; font-size: 16.5px; }
  .closing-day { width: 124px; }
  .closing-btn { width: 100%; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .closing-row { animation: none; }
}
/* 글자 크기 2차(10/13 04시) */
