/* 셀리오 첫 화면(인트로·로그인). base.html 번들 없이 이 시트 하나로 그린다.
   모서리: 카드 20px · 장면 속 카드 14px · 입력·버튼 12px · 칩은 알약. 강조색은 파랑 하나.
   층: 내비 30 · 문의하기 40(kakao-support.css) · 건너뛰기 50. */

/* 첫 방문에서도 Pretendard 로 그린다. 공통 fonts.css 는 font-display: optional 이라 글꼴이 늦게 오면 그 방문
   내내 대체 글꼴로 남는데, 이 화면은 처음 온 사람이 보는 화면이라 도착하는 대로 바꾼다(swap).
   파일 주소는 fonts.css·미리 받기(Link 헤더)와 같아야 한 번만 받는다. */
@font-face { font-family: 'Sellio Intro'; font-style: normal; font-weight: 45 920; font-display: swap; src: url(./fonts/PretendardVariable-rest.woff2?v=1) format('woff2-variations'); unicode-range: U+AC00-D7A3; }
@font-face { font-family: 'Sellio Intro'; font-style: normal; font-weight: 45 920; font-display: swap; src: url(./fonts/PretendardVariable-core.woff2?v=1) format('woff2-variations'); unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2030-205E, U+20A9, U+2190-21FF, U+2200-22FF, U+2460-24FF, U+25A0-25FF, U+2600-26FF, U+3000-303F, U+3131-318E, U+FF01-FF60, U+FFE6, U+AC00-D7A3; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body.intro {
  --font: 'Sellio Intro', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --bg: #f6f8fb;
  --band: #eef2f8;
  --surface: #ffffff;
  --stage: #edf2f9;
  --mock: #ffffff;
  --ink: #131a26;
  --ink-2: #465263;
  --ink-3: #5d697a;
  --line: rgba(9, 30, 66, 0.10);
  --line-strong: rgba(9, 30, 66, 0.17);
  --fill: rgba(9, 30, 66, 0.06);
  --fill-strong: rgba(9, 30, 66, 0.12);
  --blue: #0071e3;
  --blue-fill: #0071e3;
  --blue-fill-hover: #0064d2;
  --blue-ink: #0062c8;
  --on-fill: #fff;
  --blue-soft: #e3efff;
  --red-ink: #b3261e;
  --red-soft: #fdecea;
  --field: #ffffff;
  --field-line: rgba(9, 30, 66, 0.20);
  --shadow-card: 0 1px 2px rgba(9, 30, 66, 0.05), 0 16px 36px -18px rgba(9, 30, 66, 0.18);
  --shadow-mock: 0 1px 2px rgba(9, 30, 66, 0.05), 0 10px 24px -14px rgba(9, 30, 66, 0.16);
  --tab-chip: #ffffff;
  --shadow-tab: 0 1px 2px rgba(9, 30, 66, 0.10), 0 4px 10px -6px rgba(9, 30, 66, 0.22);
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
:root[data-theme="dark"] body.intro {
  --bg: #0b0e14;
  --band: #0f131b;
  --surface: #141922;
  --stage: #10151e;
  --mock: #1a2130;
  --ink: #eef1f6;
  --ink-2: #b9c2cf;
  --ink-3: #8f9aaa;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --fill: rgba(255, 255, 255, 0.07);
  --fill-strong: rgba(255, 255, 255, 0.13);
  --blue: #0a84ff;
  --blue-fill: #0a6fd8;
  --blue-fill-hover: #1273de;
  --blue-ink: #6ab2ff;
  --blue-soft: #13243b;
  --red-ink: #ff9d94;
  --red-soft: #3a1a18;
  --field: #0d1118;
  --field-line: rgba(255, 255, 255, 0.16);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 44px -20px rgba(0, 0, 0, 0.7);
  --shadow-mock: 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  --tab-chip: #3a465c;
  --shadow-tab: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 12px -8px rgba(0, 0, 0, 0.7);
}

.intro *, .intro *::before, .intro *::after { box-sizing: border-box; }
/* 초기화는 :where 로 무게를 0에 둬 아래 규칙이 그대로 이긴다. */
:where(.intro) a { color: inherit; }
:where(.intro) :is(h1, h2, h3, p) { margin: 0; }
.intro :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.intro [hidden] { display: none; }

.i-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.i-skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--blue-fill); color: var(--on-fill); font-weight: 700; text-decoration: none; }
.i-skip:focus { top: 12px; }

/* ---- 내비 ---- */
.i-nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.i-nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.i-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.i-brand img { display: block; width: 28px; height: 28px; }
.i-nav-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.i-nav-cta { display: flex; gap: 12px; }

/* 머리줄 탭(소개 · 사용법 영상). 하나만 고르는 이어진 묶음이라 안쪽 간격은 4px 이다. */
.i-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--fill); }
.i-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out); }
.i-tab:active { transform: scale(0.97); }
.i-tab.is-active { background: var(--tab-chip); box-shadow: var(--shadow-tab); color: var(--ink); }
.i-tab-play { display: grid; place-items: center; width: 20px; height: 20px; margin-left: -4px; border-radius: 50%; background: var(--blue-fill); }
.i-tab-play svg { display: block; width: 10px; height: 10px; margin-left: 1px; fill: var(--on-fill); }

.intro .theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.intro .theme-toggle:active { transform: scale(0.97); }
.intro .theme-toggle svg { width: 18px; height: 18px; }
.intro .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .intro .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .intro .theme-toggle .icon-moon { display: none; }

/* ---- 버튼 ---- */
.i-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
.i-btn:active { transform: scale(0.97); }
.i-btn-primary { background: var(--blue-fill); color: var(--on-fill); }
.i-btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.i-login > .i-btn-ghost { background: var(--field); }
.i-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

@media (hover: hover) and (pointer: fine) {
  .intro .theme-toggle:hover { background: var(--fill); }
  .i-btn-primary:hover { background: var(--blue-fill-hover); }
  .i-btn-ghost:hover { background: var(--fill); }
  .i-login > .i-btn-ghost:hover { background: color-mix(in srgb, var(--field) 70%, var(--stage)); }
  .i-tab:not(.is-active):hover { color: var(--ink); }
  .i-login-links a:hover { color: var(--ink); }
  .reel-tab:hover { color: var(--ink-2); }
  .reel-toggle:hover { background: var(--fill); color: var(--ink); }
}

/* ---- 히어로 ---- */
.i-hero { position: relative; padding: 44px 0 80px; overflow: clip; }
.i-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 560px; background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 72%); pointer-events: none; }
.i-hero > .i-wrap { position: relative; }
.i-hero-head { margin-bottom: 32px; }
.i-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.i-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 700; }
.i-offer { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.i-offer:active { transform: scale(0.97); }
.i-offer b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--blue-fill); color: var(--on-fill); font-size: 12px; }
.i-offer s { color: var(--ink-3); font-weight: 600; }
.i-hero h1 { margin-top: 18px; font-size: clamp(29px, 4.4vw, 56px); font-weight: 800; line-height: 1.18; letter-spacing: -0.04em; }
.i-hero h1 em, .i-close h2 em { color: var(--blue-ink); font-style: normal; }
.i-lead { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.i-hero-body { display: grid; grid-template-columns: minmax(0, 1fr) 392px; align-items: start; gap: 40px; }

/* ---- 로그인 카드 ---- */
/* 옆의 릴 무대와 같은 바탕·빛이라 한 벌로 보인다. 흰 면은 입력 칸뿐이다. */
.i-login { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 62%), var(--stage); box-shadow: var(--shadow-card); }
.i-login h2 { margin-bottom: 20px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.i-login form { display: grid; }
.i-flash { margin: -4px 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.i-flash.is-error { background: var(--red-soft); color: var(--red-ink); }
.i-login label { margin-bottom: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.i-login input { height: 50px; margin-bottom: 16px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.i-login input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
/* 브라우저 자동 완성이 칸을 제 색(연파랑·노랑)으로 칠하지 않게 칸 색으로 덮는다. */
:root[data-theme="dark"] .i-login input::placeholder { color: var(--ink-3); }
.i-login input:is(:-webkit-autofill, :autofill) { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); box-shadow: 0 0 0 1000px var(--field) inset; }
.i-login input:is(:-webkit-autofill, :autofill):focus-visible { box-shadow: 0 0 0 1000px var(--field) inset, 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
.i-login form .i-btn { margin-top: 4px; }
.i-login > .i-btn { width: 100%; margin-top: 12px; }
.i-login-links { display: flex; justify-content: center; gap: 24px; margin-top: 18px; font-size: 13.5px; }
.i-login-links a { color: var(--ink-2); text-decoration: none; transition: color 160ms ease; }

/* ---- 모션 릴 ---- */
.reel { min-width: 0; }
.reel-stage { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 20px; background: var(--stage); box-shadow: var(--shadow-card); overflow: hidden; }
.reel-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 62%); pointer-events: none; }
.reel-chapter { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); align-items: center; gap: 28px; padding: 32px 36px; }
.reel-title { font-size: clamp(20px, 4cqw, 31px); font-weight: 800; line-height: 1.26; letter-spacing: -0.04em; }
.reel-title em { color: var(--blue-ink); font-style: normal; }
.reel-title .w, .chat-out .w { display: inline-block; }
.reel-note { margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.reel-scene { display: grid; gap: 0.92em; min-width: 0; font-size: 13px; }
/* 다른 것으로 바뀌어 사라지는 요소는 모션이 돌 때만 보인다(정지 화면은 마지막 상태). */
.reel [data-out] { visibility: hidden; }
.reel.is-live [data-out] { visibility: visible; }

/* 장면 속 카드의 치수는 em 이다. 무대가 넓으면 .reel-scene 의 글자 크기만 키워 통째로 커진다. */
.m-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--mock); box-shadow: var(--shadow-mock); overflow: hidden; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.8em 1.1em; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 700; }
.m-head-title { display: inline-flex; align-items: center; gap: 0.55em; }
.m-head-title, .m-count, .m-foot > span:not(.m-chip), .m-link > span:not(.m-chip) { font-size: 0.96em; }
.m-head .admin-icon, .m-foot .admin-icon, .m-link .admin-icon { flex: none; width: 1.2em; height: 1.2em; }
.m-count { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.m-row { display: grid; grid-template-columns: 2.3em minmax(0, 1fr) auto; align-items: center; gap: 0.77em; padding: 0.7em 1.1em; }
.m-row.is-two { grid-template-columns: 2.3em minmax(0, 1fr); }
.m-head + .m-row { padding-top: 0.92em; }
.m-row:last-child { padding-bottom: 0.92em; }
.m-thumb { width: 2.3em; height: 2.3em; border-radius: 0.7em; }
.t-tangerine { background: linear-gradient(135deg, #ffbe5c, #ff8a1f); }
.t-grape { background: linear-gradient(135deg, #bfe57a, #6dbb3c); }
.t-apple { background: linear-gradient(135deg, #ff9a8f, #e5484d); }
.m-name { display: grid; min-width: 0; line-height: 1.35; }
.m-name b { overflow: hidden; font-size: 1.04em; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.m-name small { color: var(--ink-3); font-size: 0.885em; }
.m-number { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.m-swap { display: grid; justify-items: end; }
.m-swap.is-start { justify-items: start; }
.m-swap > * { grid-area: 1 / 1; }
.m-chip { display: inline-flex; align-items: center; gap: 0.3em; height: 2.1em; padding: 0 0.8em; border-radius: 999px; font-size: 0.885em; font-weight: 700; line-height: 1; white-space: nowrap; }
.m-chip.is-wait { background: var(--fill); color: var(--ink-3); }
.m-chip.is-soft { background: var(--fill-strong); color: var(--ink-2); }
.m-chip.is-done { background: var(--blue-soft); color: var(--blue-ink); }
.ck { flex: none; width: 1.05em; height: 1.05em; }
.ck path { stroke-dasharray: 1; }
.m-foot { display: flex; align-items: center; gap: 0.6em; padding: 0.77em 1.1em; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.m-foot > .m-chip:last-child { margin-left: auto; }
.m-foot.is-plain { flex-wrap: wrap; padding-top: 0.15em; border-top: 0; }
.m-foot.is-plain > .m-chip:last-child { margin-left: 0; }
.m-link { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em; padding: 0.85em 1.1em; color: var(--ink-2); font-weight: 600; }
.m-link > .m-chip { margin-left: auto; }

.route-track { position: relative; height: 2.15em; }
.route-line { position: absolute; top: calc(1.075em - 1px); right: 1.075em; left: 1.075em; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.route-fill { position: absolute; inset: 0; background: var(--blue); transform-origin: left center; }
.route-truck { position: absolute; top: 0; right: 2.15em; left: 0; height: 2.15em; transform: translateX(100%); }
.route-truck-icon { display: grid; place-items: center; width: 2.15em; height: 2.15em; border-radius: 50%; background: var(--blue-fill); color: var(--on-fill); }
.route-truck-icon .admin-icon { width: 1.15em; height: 1.15em; }
.route-stops { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 0.5em; color: var(--ink-3); font-size: 0.885em; font-weight: 600; }
.route-stops span:nth-child(2) { text-align: center; }
.route-stops span:nth-child(3) { text-align: right; }

.chat { align-content: center; gap: 0.77em; }
.chat p { font-size: 1.04em; line-height: 1.5; }
.chat-in, .chat-out { max-width: 88%; padding: 0.77em 1em; border-radius: 14px; }
.chat-in { justify-self: start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--mock); box-shadow: var(--shadow-mock); transform-origin: left bottom; }
.chat-out { justify-self: end; border: 1px solid color-mix(in srgb, var(--blue) 26%, transparent); border-bottom-right-radius: 4px; background: var(--blue-soft); transform-origin: right bottom; }
.chat-who { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.25em; color: var(--ink-3); font-size: 0.85em; font-weight: 700; }
.chat-out .chat-who { color: var(--blue-ink); }
.chat-who img { display: block; width: 1.18em; height: 1.18em; }
.chat-checks { display: flex; justify-self: end; gap: 0.6em; }
.chat-done { justify-self: end; }

.listing { grid-template-columns: minmax(0, 1fr) 1.5em minmax(0, 1.08fr); align-items: center; gap: 0.77em; }
.listing-arrow { display: grid; place-items: center; color: var(--ink-3); }
.listing-arrow .admin-icon { width: 1.5em; height: 1.5em; }
.listing-side { display: grid; gap: 0.77em; min-width: 0; }
.pg { display: grid; gap: 0.6em; padding: 0.92em; }
.pg > * { display: block; }
.pg-photo { height: 4.6em; border-radius: 0.7em; }
.pg-photo.is-short { height: 2.6em; opacity: 0.8; }
.pg-photo.is-tall { height: 8em; }
.pg-line { height: 0.6em; border-radius: 0.3em; background: var(--fill-strong); }
.pg-line.is-w70 { width: 70%; }
.pg-line.is-w45 { width: 45%; }
.pg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.46em; }
.pg-tiles i { height: 2.15em; border-radius: 0.54em; background: var(--fill); }

.reel-bar { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; }
.reel-tabs { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.reel-tab { display: grid; gap: 9px; padding: 10px 0; border: 0; border-radius: 6px; background: none; color: var(--ink-3); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; transition: color 160ms ease; }
.reel-tab.is-active { color: var(--ink); }
.reel-tab-bar { position: relative; display: block; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.reel-tab-fill { position: absolute; inset: 0; border-radius: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left center; }
.reel-tab.is-done .reel-tab-fill, .reel-tab.is-active .reel-tab-fill { transform: scaleX(1); }
.reel-toggle { display: none; flex: none; place-items: center; width: 36px; height: 36px; margin-top: 4px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.reel.is-live .reel-toggle { display: grid; }
.reel-toggle:active { transform: scale(0.95); }
.reel-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.reel-toggle .i-play, .reel.is-paused .reel-toggle .i-pause { display: none; }
.reel.is-paused .reel-toggle .i-play { display: block; }

@container (min-width: 700px) {
  .reel-scene { font-size: 15px; }
}
@container (max-width: 560px) {
  .reel-chapter { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 18px; }
  .reel-note { display: none; }
  .reel-scene { align-self: center; }
}

/* ---- 본문 구역 ---- */
.i-section { padding: 112px 0; }
.i-section.is-band { border-block: 1px solid var(--line); background: var(--band); }
.i-section h2, .i-close h2 { font-size: clamp(27px, 3.2vw, 40px); font-weight: 800; line-height: 1.26; letter-spacing: -0.04em; }
.i-section-head { max-width: 640px; margin-bottom: 64px; }
.i-section-head p, .i-split-copy p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }

.rail { position: relative; }
.rail-line { position: absolute; top: 21px; right: calc((100% - 96px) / 5 - 22px); left: 22px; height: 2px; background: var(--line-strong); overflow: hidden; }
.rail-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 38%, var(--blue) 50%, transparent 62%); transform: translateX(-62%); }
.rail-list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.rail-item { display: grid; align-content: start; justify-items: start; gap: 8px; }
.rail-node { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border: 1px solid transparent; border-radius: 50%; background: var(--blue-fill); box-shadow: 0 0 0 8px var(--bg); color: var(--on-fill); }
.rail-node .admin-icon { width: 20px; height: 20px; }
.rail-item.is-seller .rail-node { border-color: var(--line-strong); background: var(--surface); color: var(--ink-2); }
.rail-owner { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 11.5px; font-weight: 700; }
.rail-item.is-seller .rail-owner { background: var(--fill-strong); color: var(--ink-2); }
.rail-item h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.rail-item p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.i-split { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); align-items: center; gap: 72px; }
.i-beta { display: inline-flex; align-items: center; height: 26px; margin-bottom: 16px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.compose { position: relative; height: 420px; font-size: 15px; }
.compose > .m-card { position: absolute; }
.compose-page { top: 0; left: 32%; width: 40%; }
.compose-supply { top: 168px; left: 0; z-index: 1; width: 44%; }
.compose-product { right: 0; bottom: 0; z-index: 1; width: 42%; }

/* 이용료. 로그인 카드와 같은 바탕·빛이다. */
.price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px 64px; padding: 48px 56px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 62%), var(--stage); box-shadow: var(--shadow-card); }
.price-label { display: inline-flex; align-items: center; height: 28px; margin-bottom: 16px; padding: 0 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 700; }
.price-tag { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.price-was { color: var(--ink-3); font-size: 16px; font-weight: 600; }
.price-was s { text-decoration-thickness: 1.5px; }
.price-now { display: flex; align-items: baseline; gap: 14px; margin-top: 4px; line-height: 1.1; }
.price-off { color: var(--blue-ink); font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.price-amount { font-size: 20px; font-weight: 700; }
.price-amount b { font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; }
.price-note { margin: 12px 0 0; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.price-note a { color: var(--ink-2); text-underline-offset: 3px; }
.price-note a:hover { color: var(--ink); }

.i-close { padding: 104px 0 112px; text-align: center; }
.i-close-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.i-foot { padding: 48px 0 104px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.i-foot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; }
.i-foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; }
.i-foot-owner { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; }
.i-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.i-foot-links a { color: var(--ink-2); text-decoration: none; }
/* 약관·방침 링크(2026-11-02). 개인정보처리방침은 굵게 둔다(개인정보 보호법 시행령 제31조). */
.i-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13px; }
.i-foot-legal a { color: var(--ink-3); text-decoration: none; }
.i-foot-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.i-foot-legal .is-privacy { color: var(--ink); font-weight: 800; }
.i-foot-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin: 0; padding-left: 64px; border-left: 1px solid var(--line); }
.i-foot-facts > .is-wide { grid-column: span 2; }
.i-foot-facts dt { margin-bottom: 4px; color: var(--ink-3); font-size: 12px; }
.i-foot-facts dd { margin: 0; color: var(--ink); font-weight: 550; font-variant-numeric: tabular-nums; }
.i-foot-facts small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.i-foot-facts dd > span { white-space: nowrap; }
.i-foot-facts a { color: inherit; text-decoration: none; }
.i-foot-line { margin: 0; color: var(--ink-3); font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .i-foot-links a:hover, .i-foot-facts a:hover { color: var(--blue-ink); text-decoration: underline; }
  .i-offer:hover { border-color: var(--blue); }
}

/* ---- 움직임 ---- */
@media (prefers-reduced-motion: no-preference) {
  .i-hero-head > *, .i-hero-body > * { animation: i-rise 700ms var(--ease-out) both; }
  .i-hero-head > :nth-child(2) { animation-delay: 60ms; }
  .i-hero-head > :nth-child(3) { animation-delay: 120ms; }
  .i-hero-body > .reel { animation-delay: 200ms; }
  .i-hero-body > .i-login { animation-delay: 280ms; }

  .js-motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .js-motion [data-reveal].is-in { opacity: 1; transform: none; }
  .js-motion [data-reveal-group] [data-reveal]:nth-child(2) { transition-delay: 70ms; }
  .js-motion [data-reveal-group] [data-reveal]:nth-child(3) { transition-delay: 140ms; }
  .js-motion [data-reveal-group] [data-reveal]:nth-child(4) { transition-delay: 210ms; }
  .js-motion [data-reveal-group] [data-reveal]:nth-child(5) { transition-delay: 280ms; }
  .rail.is-live .rail-line::after { animation: i-sweep 3600ms linear infinite; }
}
@keyframes i-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes i-sweep { to { transform: translateX(62%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .i-btn, .i-tab, .i-offer, .intro .theme-toggle, .reel-toggle { transition: none; }
}

/* ---- 좁은 화면 ---- */
/* 낮은 노트북 화면(1366x768)에서도 릴과 장면 탭이 첫 화면에 들어오게 줄인다. */
@media (min-width: 1025px) and (max-height: 820px) {
  .i-hero { padding-top: 24px; }
  .i-hero h1 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 46px); }
  .i-hero-head { margin-bottom: 20px; }
  .reel-stage { aspect-ratio: 16 / 8.2; }
}
@media (max-width: 1024px) {
  .i-hero-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .i-login { width: min(100%, 480px); }
  /* 로그인 주소로 들어온 사람은 로그인하러 온 것이라 카드를 릴보다 먼저 놓는다. */
  .is-login-first .i-hero-body > .i-login { order: -1; }
  .i-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .compose { width: min(100%, 560px); }
}
@media (max-width: 860px) {
  .i-section { padding: 80px 0; }
  .i-section-head { margin-bottom: 44px; }
  .rail-line { top: 22px; right: auto; bottom: 64px; left: 21px; width: 2px; height: auto; }
  .rail-line::after { display: none; }
  .rail-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rail-item { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; }
  .rail-node { grid-row: 1 / span 3; margin-bottom: 0; }
  .i-close { padding: 80px 0 88px; }
  .price { grid-template-columns: minmax(0, 1fr); padding: 40px 36px; }
  .price-tag { justify-items: start; }
  .i-foot-row { grid-template-columns: minmax(0, 1fr); }
  .i-foot-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 124px; }
  .i-wrap { width: calc(100% - 32px); }
  /* 좁은 화면에서는 탭이 머리줄 둘째 줄로 내려가 너비를 나눠 쓴다. */
  .i-nav-row { flex-wrap: wrap; gap: 0 12px; height: auto; }
  .i-brand, .i-nav-tools { height: 56px; }
  .i-tabs { order: 3; width: 100%; margin-bottom: 10px; }
  .i-tab { flex: 1; justify-content: center; height: 38px; }
  /* 로그인 주소로 온 사람에게는 탭 줄만큼 로그인 카드가 밀리지 않게 위 장식을 줄인다. */
  .is-login-first .i-hero-tags { display: none; }
  .is-login-first .i-hero { padding-top: 16px; }
  .is-login-first .i-hero h1 { margin-top: 0; }
  .i-nav-cta { gap: 8px; }
  /* 할인 표시가 둘째 줄로 내려가면 장면 탭이 문의하기 버튼 아래로 밀린다. 정가는 이용료 구역에 있다. */
  .i-hero-tags { gap: 8px; }
  .i-offer s { display: none; }
  .i-hero { padding: 28px 0 56px; }
  .i-hero-head { margin-bottom: 24px; }
  .i-hero h1 { margin-top: 14px; }
  .i-lead { margin-top: 12px; font-size: 15.5px; }
  /* 정사각형이면 장면 탭이 첫 화면에서 문의하기 버튼 위에 놓인다. */
  .reel-stage { aspect-ratio: 1 / 1; }
  .reel-tabs { gap: 8px; }
  .reel-tab { font-size: 12.5px; }
  .i-login { width: 100%; padding: 24px 20px; }
  .i-section-head p, .i-split-copy p { font-size: 16px; }
  .compose { display: grid; gap: 12px; height: auto; font-size: 14px; }
  .compose > .m-card { position: static; width: 100%; }
  .price { padding: 28px 20px; }
  .i-close-actions .i-btn { flex: 1 1 140px; }
}
/* 아주 좁은 화면(접는 휴대폰 바깥 화면, 화면 확대)에서도 상표 줄이 한 줄에 들어오게 한다. */
@media (max-width: 359px) {
  .i-nav-tools, .i-nav-cta { gap: 8px; }
  .i-nav-cta .i-btn-sm { padding: 0 10px; }
}
