/* LANEVIA 홈페이지 — lanevia.com 제품 웹의 색·글꼴 기준 */
:root {
  --ink: #0b1421;        /* 브랜드 기본색 (theme-color) */
  --ink-2: #1c2a3f;
  --ink-3: #2a3a52;
  --muted: #566478;
  --muted-2: #46546a;
  --line: #dfe5ec;
  --line-dark: #24324a;
  --bg: #ffffff;
  --bg-soft: #f3f5f8;
  --bg-soft-2: #f7f9fb;
  --lane: #f6c945;       /* 도로 차선 노랑 */
  --danger: #b42335;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(11, 20, 33, .06), 0 12px 32px rgba(11, 20, 33, .10);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "D2Coding", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
/* 줄바꿈: 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게 */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, td, summary { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lane); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* 차선 모티프 */
.lane { height: 4px; background: repeating-linear-gradient(90deg, var(--lane) 0 44px, transparent 44px 76px); opacity: .9; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); box-shadow: 0 3px 8px rgba(11, 20, 33, .18); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e4e9f0; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #c5cfdb; text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #fff; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }

/* 히어로 */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 480px at 85% 10%, rgba(246, 201, 69, .10), transparent 60%), radial-gradient(700px 500px at 10% 100%, rgba(80, 120, 170, .18), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--lane); }
.hero .eyebrow { color: #c5cfdb; }
.hero h1 { margin-top: 18px; font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; line-height: 1.22; letter-spacing: -0.03em; }
.hero .lead { margin-top: 20px; font-size: 18px; color: #c5cfdb; max-width: 34em; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 36px; display: grid; gap: 10px; font-size: 14px; color: #8b98ab; }
.hero-meta strong { color: #dfe5ec; font-weight: 600; margin-right: 8px; }
.hero-shot { position: relative; }
.window { border-radius: 12px; overflow: hidden; background: #121d2d; border: 1px solid #2a3a52; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.window-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #16233a; border-bottom: 1px solid #24324a; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #34445e; }
.window-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #8b98ab; }
.hero-shot .badge { position: absolute; left: -18px; bottom: -22px; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.hero-shot .badge b { font-size: 20px; }
.hero-shot .badge small { display: block; color: var(--muted); font-size: 12px; }
.hero .lane { position: absolute; left: 0; right: 0; bottom: 0; }

/* 섹션 공통 */
.section { padding: 104px 0; }
.section--soft { background: var(--bg-soft-2); border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: #8b98ab; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section--dark .section-head p { color: #a9b5c6; }

/* 고민과 답 */
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; align-content: start; }
.pain .q { color: var(--muted); font-size: 16px; display: flex; gap: 10px; }
.pain .q::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; border: 2px solid #c5cfdb; }
.pain .a { font-size: 19px; font-weight: 700; display: flex; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pain .a::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6c945' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* 한 학기 흐름: 넓은 화면은 교수·학생 두 행짜리 표, 좁은 화면은 세로 타임라인 */
.flow { position: relative; display: grid; }
.step { position: relative; min-width: 0; }
.step .num { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 0 0 0 6px var(--bg-soft-2); }
.step h3 { font-size: 19px; }
.role { position: relative; font-size: 15px; line-height: 1.5; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.role b { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--ink); color: #fff; }
.role--stu b { background: var(--lane); color: var(--ink); }
@media (min-width: 1081px) {
  /* 5열 × (번호, 제목, 교수 행, 학생 행). subgrid로 같은 행끼리 높이를 맞춘다 */
  .flow { --label: 76px; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); padding-left: var(--label); }
  .flow::before { content: ""; position: absolute; top: 27px; left: calc(var(--label) + (100% - var(--label)) / 10); right: calc((100% - var(--label)) / 10); height: 4px; background: repeating-linear-gradient(90deg, var(--lane) 0 26px, transparent 26px 44px); }
  .step { grid-row: span 4; display: grid; grid-template-rows: subgrid; justify-items: center; text-align: center; }
  .step h3 { margin: 16px 8px 24px; }
  .role { justify-self: stretch; display: flex; align-items: center; justify-content: center; padding: 18px 14px; border-width: 0 1px 1px 0; }
  .role--prof { border-top-width: 1px; }
  /* 행 이름(교수·학생)은 첫 열 왼쪽 칸에 한 번만 보이고, 나머지 칸의 이름은 화면 낭독기용으로 남긴다 */
  .step:not(:first-child) .role b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .step:first-child .role { margin-left: calc(-1 * var(--label)); padding-left: calc(var(--label) + 14px); border-left-width: 1px; background: linear-gradient(90deg, var(--bg-soft) calc(var(--label) - 1px), var(--line) calc(var(--label) - 1px) var(--label), #fff var(--label)); }
  .step:first-child .role b { position: absolute; left: calc(var(--label) / 2); top: 50%; transform: translate(-50%, -50%); }
  .step:first-child .role--prof { border-top-left-radius: var(--radius); }
  .step:first-child .role--stu { border-bottom-left-radius: var(--radius); }
  .step:last-child .role--prof { border-top-right-radius: var(--radius); }
  .step:last-child .role--stu { border-bottom-right-radius: var(--radius); }
}

/* 기능 */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature--rev .feature-text { order: 2; }
.feature--rev .feature-media { order: 1; }
.feature-text .tag { font-size: 14px; font-weight: 700; color: var(--muted); }
.feature-text h3 { margin-top: 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
.feature-text > p { margin-top: 16px; font-size: 17px; color: var(--muted-2); }
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6c945' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.note { margin-top: 24px; padding: 14px 16px; background: var(--bg-soft); border-left: 4px solid var(--lane); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--muted-2); }
.note b { color: var(--ink); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; color: var(--muted-2); }
.chip b { font-size: 16px; color: var(--ink); }
/* XYCAR 말풍선: 단어에 마우스를 올리면 짧은 영상과 소개, 누르면 자이트론 카페로 (xycar-tip.js가 영상 재생) */
.xytip { position: relative; display: inline-block; }
.xytip-word { color: var(--ink); font-weight: 700; text-decoration: underline dashed var(--lane); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.xytip-word::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 5px; vertical-align: -2px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4.5v7l5.5-3.5z' fill='%23f6c945'/%3E%3C/svg%3E") center/11px no-repeat; }
.xytip-pop { position: absolute; left: -12px; bottom: 100%; z-index: 20; width: 300px; max-width: calc(100vw - 32px); padding-bottom: 12px; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s linear .18s; }
.xytip:hover .xytip-pop, .xytip:focus-within .xytip-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.xytip-card { position: relative; display: block; background: var(--ink); border-radius: 12px; box-shadow: 0 18px 40px rgba(11, 20, 33, .28); }
.xytip-card::after { content: ""; position: absolute; left: 30px; bottom: -6px; width: 12px; height: 12px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
.xytip-video { display: block; width: 100%; height: auto; aspect-ratio: 560 / 316; border-radius: 12px 12px 0 0; background: #0b1421; }
.xytip-body { display: block; padding: 12px 14px 14px; }
.xytip-body b { display: block; font-size: 15px; }
.xytip-body span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: #c5cfdb; }
.xytip-body em { display: block; margin-top: 10px; font-size: 13px; font-style: normal; font-weight: 700; color: var(--lane); }
.xytip-pop:hover em { text-decoration: underline; }

/* ROS 2: 주행 영상과 그 주행을 한 학생 코드를 한 장의 카드에 나란히 */
.ros-split { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: #0f1a2a; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ros-video { position: relative; min-width: 0; background: #dbe7d8; }
.ros-video video { display: block; width: 100%; height: 100%; aspect-ratio: 1280 / 800; object-fit: cover; }
.live { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 20, 33, .84); border: 1px solid var(--line-dark); color: #dfe5ec; font-size: 13px; font-variant-numeric: tabular-nums; }
.live[hidden] { display: none; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4c4c; box-shadow: 0 0 0 3px rgba(255, 76, 76, .25); }
.live[data-state="run"] i { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.live[data-state="done"] i { background: var(--lane); box-shadow: 0 0 0 3px rgba(246, 201, 69, .25); }
.live b { color: #fff; font-weight: 700; }
.live .live-speed { color: #a9b5c6; }
.live-rate { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 20, 33, .72); color: #c5cfdb; font-size: 12px; }
.code { position: relative; min-width: 0; display: flex; flex-direction: column; background: #0f1a2a; border-left: 1px solid var(--line-dark); }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-dark); font-size: 13px; color: #8b98ab; }
.code-bar b { color: #dfe5ec; font-weight: 600; font-family: var(--mono); }
.code pre { position: relative; z-index: 1; flex: 1; margin: 0; padding: 16px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: #dfe5ec; }
.code .c { color: #7d8ba0; }
.code .s { color: #f6c945; }
.code .k { color: #8fb6ff; }
.code .f { color: #7fd3c4; }
/* 영상이 재생되는 동안 지금 도는 모드 블록만 밝게 (ros-live.js) */
.code .ln { transition: opacity .3s; }
.code.is-live .ln { opacity: .38; }
.code.is-live .ln.on { opacity: 1; }
.code-hl { position: absolute; left: 0; right: 0; top: 0; height: 0; background: rgba(246, 201, 69, .10); box-shadow: inset 3px 0 0 var(--lane); opacity: 0; transition: opacity .2s; pointer-events: none; }
.code-hl.anim { transition: top .3s ease, height .3s ease, opacity .2s; }
.code-hl.on { opacity: 1; }
.ros-caption { margin-top: 14px; font-size: 14px; color: #8b98ab; }
.connect { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.connect li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.connect .n { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--lane); color: var(--lane); display: grid; place-items: center; font-weight: 800; }
.connect b { display: block; font-size: 16px; }
.connect span { font-size: 15px; color: #a9b5c6; }

/* 동키카: 학습 화면의 작은 글자가 읽히게 영상 칸을 넓힌다(1440 화면에서 글 약 400px, 영상 약 700px) */
.donkey { display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 700fr); gap: 32px; align-items: center; }
.d-steps { margin-top: 24px; display: grid; gap: 10px; }
.d-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.d-step .n { width: 44px; height: 44px; border-radius: 11px; background: var(--ink); color: var(--lane); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.d-step h4 { font-size: 17px; }
.d-step p { margin-top: 2px; font-size: 14.5px; color: var(--muted-2); }

/* 기기 */
/* PC 3대와 휴대폰 2대를 묶음으로 나눈다. 넓은 화면은 한 줄(3:2), 좁은 화면은 묶음마다 한 줄 */
.devices { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; }
.device-group { display: flex; flex-direction: column; min-width: 0; }
.device-label { margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.device-row { flex: 1; display: grid; gap: 14px; }
.device-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.device-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.device { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px; text-align: center; }
.device svg { width: 32px; height: 32px; margin: 0 auto; color: var(--ink); }
.device h4 { margin-top: 12px; font-size: 17px; }
.device p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.mobile-band { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.mobile-band img { border-radius: 10px; }
.mobile-band h4 { font-size: 20px; }
.mobile-band p { margin-top: 10px; font-size: 15.5px; color: var(--muted-2); }
.versions { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ver { border-radius: var(--radius-sm); padding: 16px 18px; background: #fff; border: 1px solid var(--line); }
.ver b { font-size: 18px; }
.ver span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.ver--rec { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ver--rec span { color: var(--ink); font-weight: 600; }
.ver .rec { display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 999px; background: var(--lane); color: var(--ink); font-size: 12.5px; font-weight: 700; font-style: normal; }
.versions-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* 도입 방식 */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.plan { border-radius: var(--radius); border: 1px solid var(--line); padding: 32px; background: #fff; }
.plan--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan h3 { font-size: 24px; }
.plan .sub { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.plan--dark .sub { color: #a9b5c6; }
.plan dl { margin: 24px 0 0; display: grid; grid-template-columns: 92px 1fr; row-gap: 14px; column-gap: 12px; font-size: 15.5px; }
.plan dt { color: var(--muted); font-weight: 600; }
.plan--dark dt { color: #8b98ab; }
.plan dd { margin: 0; }
.plans-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: var(--radius); background: var(--bg-soft); }
.plans-foot p { font-size: 16px; color: var(--muted-2); }
.plans-foot p b { color: var(--ink); }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-size: 17px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted-2); font-size: 16px; }

/* 시연 신청 */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.cta-text h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-top: 14px; }
.cta-text > p { margin-top: 16px; font-size: 17px; color: #a9b5c6; }
.cta-list { margin-top: 28px; display: grid; gap: 14px; }
.cta-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: 15.5px; color: #dfe5ec; }
.cta-list li b { color: var(--lane); font-weight: 700; }
.cta-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 15px; color: #a9b5c6; display: grid; gap: 6px; }
.cta-contact a { color: #fff; font-weight: 700; text-decoration: none; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.form h3 { font-size: 20px; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted-2); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea { font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; border: 1px solid #c5cfdb; border-radius: 9px; padding: 11px 13px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 20, 33, .12); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted-2); }
.agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.agree a { color: var(--ink); font-weight: 600; }
.form .btn { width: 100%; justify-content: center; height: 52px; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.field [aria-invalid="true"], .agree input[aria-invalid="true"] { border-color: var(--danger); outline: 2px solid var(--danger); outline-offset: 1px; }
.form-msg { display: none; padding: 12px 14px; border-radius: 9px; background: #fff8e1; border: 1px solid #f3dd8f; font-size: 14px; color: #6b5200; }
.form-msg.show { display: block; }

/* 푸터 */
.site-footer { background: var(--ink); color: #a9b5c6; border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 56px 0 32px; }
.footer-top .brand img { height: 28px; }
.footer-top .tagline { margin-top: 12px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; }
.footer-links a { color: #c5cfdb; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.biz { padding: 24px 0; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: #8b98ab; }
.biz b { color: #c5cfdb; font-weight: 600; margin-right: 6px; }
.biz a { color: #c5cfdb; text-decoration: none; }
.legal { padding: 18px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.legal nav { display: flex; gap: 18px; }
.legal a { color: #dfe5ec; text-decoration: none; font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal small { color: #6f7d92; font-size: 13px; }

/* 약관 페이지 */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: 34px; font-weight: 800; }
.doc .meta { margin-top: 10px; color: var(--muted); font-size: 15px; }
.doc .draft { margin-top: 24px; padding: 14px 16px; background: #fff8e1; border: 1px solid #f3dd8f; border-radius: 10px; color: #6b5200; font-size: 14.5px; }
.doc h2 { margin-top: 40px; font-size: 21px; }
.doc p, .doc li { margin-top: 10px; color: var(--muted-2); font-size: 16px; }
.doc ol, .doc ul.dots { padding-left: 22px; }
.doc ul.dots { list-style: disc; }
.doc table { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }

/* 반응형 */
@media (min-width: 1081px) and (max-width: 1200px) {
  /* 두 열인데 폭이 좁은 구간: 코드 가장 긴 줄이 상자 안에 들어오게 */
  .code pre { font-size: 12.5px; padding: 18px 16px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.open .nav { display: flex; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--ink); padding: 8px 16px 16px; border-bottom: 1px solid var(--line-dark); }
  .site-header.open .nav a { padding: 12px; font-size: 16px; }
  .hero .wrap, .feature, .donkey, .cta { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ros-split { grid-template-columns: minmax(0, 1fr); }
  .code { border-left: 0; border-top: 1px solid var(--line-dark); }
  .feature--rev .feature-text, .feature--rev .feature-media { order: 0; }
  /* 세로 타임라인: 차선은 번호와 번호 사이에만 긋는다 */
  .flow { gap: 28px; }
  .step { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 29px; bottom: -28px; width: 4px; background: repeating-linear-gradient(180deg, var(--lane) 0 26px, transparent 26px 44px); }
  .step .num { grid-row: 1 / span 3; }
  .step h3 { grid-column: 2; margin: 14px 0 12px; }
  .role { grid-column: 2; display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .role b { flex: 0 0 auto; }
  .role--prof { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .role--stu { border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .devices { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .versions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 72px; }
  .hero .lead { font-size: 16.5px; }
  /* 배지는 스크린샷을 가리지 않게 아래로 */
  .hero-shot .badge { position: static; margin-top: 14px; display: inline-flex; box-shadow: none; }
  .header-actions .btn--sm { padding: 0 12px; }
  .pain-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  /* 코드: 글자를 줄이고 가로로 밀어 보게 */
  .code pre { font-size: 12px; padding: 14px 16px; }
  .connect { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .code-bar span { display: none; }
  .code-bar::after { content: "옆으로 밀어서 보기 →"; font-size: 12px; color: #8b98ab; }
  .pain { padding: 22px; }
  .device-row { gap: 10px; }
  .device { padding: 16px 8px; }
  .device svg { width: 26px; height: 26px; }
  .device h4 { margin-top: 8px; font-size: 15px; }
  .device p { font-size: 12.5px; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 24px; }
  .plan dl { grid-template-columns: 76px minmax(0, 1fr); }
  .plans-foot p b { display: block; margin-bottom: 4px; }
  .feature + .feature { margin-top: 72px; }
  .btn { height: 46px; }
}
@media (max-width: 480px) {
  /* 좁은 화면: 헤더에는 시연 신청만 두고 로그인은 메뉴 안으로 */
  .header-actions .btn--ghost-light { display: none; }
  .brand img { height: 26px; }
  .site-header.open .nav .nav-login { display: block; margin-top: 6px; border-top: 1px solid var(--line-dark); padding-top: 16px; color: #fff; }
}
.nav .nav-login { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 기능 영상: 스크린샷 자리의 실제 구동 화면. 원본 비율 그대로 보여 화면 UI가 잘리지 않게 한다 */
.feature-video { display: block; width: 100%; height: auto; object-fit: contain; }
.mobile-band .feature-video { border-radius: 10px; }
.feature-video:fullscreen { border-radius: 0; }
/* 영상 아래 조작 줄(feature-videos.js가 붙임). 영상 화면을 가리지 않는다 */
.fv { min-width: 0; }
.fv .feature-video { cursor: pointer; }
.fv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; padding: 6px 8px; background: #fff; border-top: 1px solid var(--line); }
.fv-note { margin-right: auto; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.fv-btns { display: flex; gap: 6px; margin-left: auto; } /* 폭이 모자라면 두 버튼이 함께 다음 줄로 */
.fv-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; }
.fv-btn:hover { background: var(--bg-soft); border-color: #c5cfdb; }
.fv-btn svg { width: 13px; height: 13px; flex: none; }
.fv-play { justify-content: center; min-width: calc(4em + 45px); } /* '재생'↔'일시정지'로 바뀌어도 폭이 같아 줄이 흔들리지 않게 */
.fv-btn .i-pause, .fv-btn[data-state="paused"] .i-play { display: inline; }
.fv-btn .i-play, .fv-btn[data-state="paused"] .i-pause { display: none; }
.window .fv-bar { background: #16233a; border-top-color: #24324a; }
.window .fv-btn { background: transparent; border-color: #34445e; color: #dfe5ec; }
.window .fv-btn:hover { background: rgba(255, 255, 255, .06); border-color: #8b98ab; }
.mobile-band .fv-bar { padding: 8px 0 0; background: transparent; border-top: 0; }
@media (max-width: 720px) {
  .fv-btn { height: 40px; padding: 0 12px; font-size: 13.5px; }
  .fv-note { font-size: 12.5px; } /* 안내와 두 버튼이 한 줄에. 아주 좁으면 버튼 묶음만 다음 줄 */
}
