/* AIMS 사이트 - 시안(AIMS 웹사이트 시안) 색·글꼴 기준 */
:root {
  --bg: #F6F3EE;
  --panel: #FFFFFF;
  --soft: #F1ECE4;
  --line: #E4DDD2;
  --line-strong: #CFC6B8;
  --ink: #1F1B17;
  --ink-2: #4A433B;
  --muted: #6B6258;
  --accent: #B8532F;
  --accent-ink: #A8462A;
  --accent-dark: #7E321C;
  --dark: #2A221C;
  --ok: #2F7A4B;
  --warn: #A86A12;
  --bad: #B3261E;
  --radius: 12px;
  /* AIBS와 같은 Pretendard (이 서버에 직접 올린 글꼴, 필요한 글자 조각만 받음) */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: var(--sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
/* 줄바꿈 규칙 (사이트 전체): 한글은 단어 중간에서 끊지 않고, 제목·소개 문장은 줄 길이를 고르게,
   본문은 마지막 줄에 한두 글자만 남지 않게 합니다. 아주 긴 주소 등은 넘치지 않게 끊습니다. */
body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, h4, .intro, .lead, .eyebrow, .note, .cta-band p, .msg { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
/* 카드 안의 짧은 설명은 줄 너비를 고르게 */
.feature p, .faq p, .principle p, .sec-flow span, .checks li { text-wrap: balance; }
.linkbox, code, .mono { word-break: break-all; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 상단 */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
/* PC 프로그램과 같은 AIMS 로고 (설치 화면·앱 창과 동일한 마크) */
.brand .mark { width: 38px; height: 38px; flex: none; border-radius: 10px; background: url("/assets/logo-light-256.png") center / contain no-repeat; box-shadow: 0 1px 3px rgba(31, 27, 23, 0.12); }
.brand .name { display: flex; flex-direction: column; line-height: 1.2; }
.brand .name b { font-size: 19px; letter-spacing: 2px; color: var(--accent-dark); }
.brand .name em { font-style: normal; font-weight: 800; color: var(--accent-dark); }
.brand .name span { font-size: 11px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav .who { color: var(--muted); font-size: 14px; }
.nav a[data-slide] { position: relative; padding: 6px 0; transition: color .15s; }
.nav a[data-slide]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav a[data-slide].cur { color: var(--accent-ink); font-weight: 700; }
.nav a[data-slide].cur::after { transform: scaleX(1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.big { min-height: 56px; padding: 16px 30px; font-size: 17px; border-radius: 12px; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: default; }
.nav-toggle { display: none; }

/* 메인 */
.hero { padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-ink); letter-spacing: 1px; }
.hero h1 { font-size: 52px; font-weight: 800; margin: 18px 0 22px; }
.hero .lead { font-size: 18px; color: var(--ink-2); line-height: 1.75; }
.hero .cta { display: flex; gap: 14px; margin: 30px 0 12px; flex-wrap: wrap; }
.preview { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(60, 40, 20, .35); display: grid; grid-template-columns: 170px 1fr; overflow: hidden; min-height: 440px; font-size: 12px; }
.preview .side { background: var(--soft); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.preview .side button { all: unset; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); transition: background .15s, color .15s; }
.preview .side button:hover { background: var(--line); }
.preview .side button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.preview .side button.on { background: var(--accent); color: #fff; font-weight: 600; }
.preview .main { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.preview .main.swap { animation: pv-in .22s ease-out; }
@keyframes pv-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .preview .main.swap { animation: none; } }
.preview .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.preview .row .lbl { flex: none; width: 44px; }
.preview .row .bar { flex: 1; }
.preview .bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.preview .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.preview .bar i.w15 { width: 15%; } .preview .bar i.w25 { width: 25%; } .preview .bar i.w40 { width: 40%; } .preview .bar i.w60 { width: 60%; } .preview .bar i.w85 { width: 85%; }
.preview .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.preview .thumbs span { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: flex-end; padding: 6px; font-size: 11px; font-weight: 600; color: #fff; }
.preview .thumbs .t1 { background: linear-gradient(135deg, #C9703F, #8E3B1F); }
.preview .thumbs .t2 { background: linear-gradient(135deg, #7A9A6A, #3F5E36); }
.preview .thumbs .t3 { background: linear-gradient(135deg, #D9B26B, #9C7430); }
.preview .demo { font-size: 11px; color: var(--muted); text-align: right; margin-top: auto; }
.preview .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preview .stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.preview .stat b { display: block; font-size: 20px; }
.preview .card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.preview .reply { background: var(--soft); border-radius: 8px; padding: 8px 10px; color: var(--ink-2); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--ink-2); }
.tag.ok { background: #E5F1E9; color: var(--ok); }
.tag.warn { background: #F7ECD9; color: var(--warn); }
.tag.bad { background: #F6E1DF; color: var(--bad); }

.section { padding: 88px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--dark); color: #F2EDE6; }
.section.dark .muted { color: #B9AFA3; }
.section h2 { font-size: 38px; font-weight: 800; margin: 12px 0 16px; }
.section .intro { max-width: 780px; color: var(--ink-2); font-size: 17px; }
.section.dark .intro { color: #CFC6B8; }
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.grid-cont { margin-top: 20px; } /* 기능 카드 두 번째 줄 (휴대폰에서는 다음 장으로 넘어감) */
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature .no { font-family: var(--serif); color: var(--accent-ink); font-weight: 800; font-size: 20px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step h3 { font-size: 18px; }
.step p { color: var(--ink-2); font-size: 15px; }
.principle { border: 1px solid #4A3F35; border-radius: 14px; padding: 26px; }
.principle h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.principle p { color: #CFC6B8; font-size: 15px; }
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .intro { margin: 0 auto; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot b { color: var(--ink); }
.foot .links { display: flex; gap: 18px; }
.foot .links a { color: var(--muted); }

/* 폼 페이지 */
.page { padding: 56px 0 88px; }
.page .wrap { max-width: 1040px; }
.page.narrow .wrap { max-width: 460px; }
.page h1 { font-size: 36px; font-weight: 800; margin: 10px 0 14px; }
.page .lead { color: var(--ink-2); font-size: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 36px; align-items: start; }
.flow { display: flex; flex-direction: column; gap: 22px; }
.flow .item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.flow .item .n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.flow .item.on .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.flow .item b { display: block; }
.flow .item span { color: var(--muted); font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 700; font-size: 17px; margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--accent-ink); font-size: 12px; margin-left: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(184, 83, 47, .35); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 14px; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid rgba(184, 83, 47, .45); }
.agree { border: 1px solid var(--line); border-radius: 12px; padding: 6px 16px; background: var(--bg); }
.agree label { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.agree label:last-child { border-bottom: 0; }
.agree label.all { font-weight: 700; }
.agree a { margin-left: auto; font-size: 13px; }
.agree input { width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.msg.err { background: #F6E1DF; color: var(--bad); }
.msg.ok { background: #E5F1E9; color: var(--ok); }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.done { text-align: center; padding: 20px 0; }
.done h2 { font-size: 26px; margin-bottom: 10px; }

/* 설치 페이지 */
.dl-card { display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: center; }
.dl-card .appicon { width: 88px; height: 88px; flex: none; border-radius: 20px; background: url("/assets/logo-light-256.png") center / contain no-repeat; box-shadow: 0 2px 8px rgba(31, 27, 23, 0.14); }
.dl-card h2 { font-size: 26px; margin-bottom: 4px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 140px; color: var(--muted); font-weight: 500; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.rel { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rel b { color: var(--accent-ink); }
.note { background: var(--soft); border-radius: 12px; padding: 18px 20px; margin-top: 20px; font-size: 15px; color: var(--ink-2); }

/* 계정·관리 */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 28px 0 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.list th, table.list td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { background: var(--soft); font-weight: 600; color: var(--ink-2); font-size: 13px; }
table.list tr:last-child td { border-bottom: 0; }
table.list td .btn + .btn { margin-left: 6px; }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.row-form { display: grid; grid-template-columns: 1.2fr 1fr 150px auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.linkbox { margin-top: 12px; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 13px; word-break: break-all; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; }
.draft-banner { background: #F7ECD9; color: var(--warn); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-top: 16px; }

/* 휴대폰 */
@media (max-width: 900px) {
  .hero .wrap, .split, .cols { grid-template-columns: 1fr; }
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .preview { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .top .wrap { height: 62px; }
  .brand .name span { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a, .nav .who { padding: 12px 0; }
  .nav .btn { margin-top: 8px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
  .grid.g4, .grid.g2, .fields { grid-template-columns: 1fr; }
  .page { padding: 32px 0 56px; }
  .page h1 { font-size: 28px; }
  .panel { padding: 20px; border-radius: 14px; }
  .dl-card { grid-template-columns: 64px 1fr; }
  .dl-card .appicon { width: 64px; height: 64px; border-radius: 16px; }
  .dl-card .btn { grid-column: 1 / -1; }
  .row-form { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .btn { min-height: 46px; }
}
.mt12 { margin-top: 12px; }
.mt24 { margin-top: 24px; }
.actions.center { justify-content: center; }
.seat-input { width: 76px !important; min-height: 34px !important; padding: 4px 8px !important; display: inline-block; }
.agree a { white-space: nowrap; }
.agree input { flex-shrink: 0; }
#countFields { margin-top: 18px; }

/* 첫 화면을 배너처럼 넘겨 보기 (넓은 화면에서만, home.js가 .deck.on 을 붙임).
   휴대폰·좁은 화면이나 스크립트가 없으면 예전처럼 아래로 스크롤합니다. */
.deck-ctrl { display: none; }
.deck.on { position: relative; height: calc(100vh - 73px); height: calc(100dvh - 73px); overflow: hidden; }
.deck.on .deck-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.deck.on .slide { flex: 0 0 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 40px 0 84px; border-top: 0; border-bottom: 0; }
/* 가운데 정렬하되, 내용이 화면보다 길면 위가 잘리지 않고 스크롤되게 (margin auto 방식) */
.deck.on .slide > .wrap { width: 100%; margin-top: auto; margin-bottom: auto; }
.deck.on .slide:has(> .foot) { padding-bottom: 0; }
.deck.on .slide > .foot { margin-top: 24px; padding-bottom: 76px; text-align: left; width: 100%; }
.deck.on .deck-ctrl { display: block; }
.deck-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -10px rgba(60, 40, 20, .45); transition: background .15s, color .15s, opacity .2s; }
.deck-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.deck-arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.deck-arrow.next { right: 20px; }
.deck-arrow.prev { left: 20px; }
.deck-arrow[hidden] { display: none; }
.deck-arrow .hint { position: absolute; top: 60px; right: 0; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.deck-arrow.next:hover .hint, .deck-arrow.next:focus-visible .hint { opacity: 1; }
.deck-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5; display: flex; gap: 6px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; backdrop-filter: blur(6px); }
.deck-dots button { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.deck-dots button:hover { color: var(--ink); }
.deck-dots button.on { background: var(--accent); color: #fff; }
.deck-dots button:focus-visible { outline: 2px solid var(--accent); }
/* 화살표가 내용과 겹치지 않게 좌우 여백 확보 */
@media (max-width: 1440px) { .deck.on .slide > .wrap { padding: 0 92px; } }
/* 낮은 화면(노트북)에서는 기능 카드를 조금 촘촘하게 해 한 화면에 들어가게 */
@media (max-height: 960px) {
  .deck.on .slide { padding: 16px 0 62px; }
  .deck.on .section h2 { font-size: 32px; margin: 8px 0 10px; }
  .deck.on .section .intro { font-size: 15px; }
  .deck.on .grid { margin-top: 24px; gap: 14px; }
  .deck.on .feature { padding: 16px 18px; gap: 6px; }
  .deck.on .feature .no { font-size: 16px; }
  .deck.on .feature h3 { font-size: 16px; }
  .deck.on .feature p { font-size: 13.5px; line-height: 1.55; }
  .deck.on .hero h1 { font-size: 44px; margin: 12px 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .deck.on .deck-track { transition: none; } }

/* 운영 관리 > 연동 설정 */
.int-list { display: flex; flex-direction: column; gap: 12px; }
.int-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.int-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.int-form input { width: 320px; max-width: 100%; }

/* 도입 절차 */
.how-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; margin-top: 28px; align-items: stretch; }
/* 좌우 높이를 맞춤: 왼쪽 단계는 오른쪽 상자 높이에 맞춰 고르게 벌리고, 오른쪽 마지막 상자는 남는 높이를 채움 */
.how-grid .timeline { display: grid; grid-auto-rows: 1fr; align-content: stretch; } /* 5단계 모두 같은 높이 = 번호 간격 일정 */
.how-side .panel:last-child { flex: 1; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; position: relative; }
.timeline .n { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
.timeline h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline .when { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--soft); border-radius: 999px; padding: 2px 8px; }
.timeline p { color: var(--ink-2); font-size: 14.5px; margin: 4px 0 0; }
.how-side { display: flex; flex-direction: column; gap: 16px; }
.how-side .panel { padding: 22px 24px; }
.how-side h3 { font-size: 16px; margin-bottom: 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* 보안 */
.sec-flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: center; gap: 10px; margin-top: 28px; }
.sec-flow .node { border: 1px solid #4A3F35; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.sec-flow .node b { color: #fff; font-size: 15px; }
.sec-flow .node span { color: #B9AFA3; font-size: 13px; }
.sec-flow .node.hi { border-color: var(--accent); background: rgba(184, 83, 47, .14); }
.sec-flow .link { display: flex; flex-direction: column; align-items: center; color: #B9AFA3; font-size: 12px; min-width: 96px; }
.sec-flow .link::before { content: "⇄"; font-size: 20px; color: #E0A58A; }
.sec-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; color: #CFC6B8; font-size: 14.5px; }
.sec-list li { padding-left: 22px; position: relative; }
.sec-list li::before { content: "●"; position: absolute; left: 2px; top: 1px; font-size: 9px; color: #E0A58A; }

/* 문의 */
.faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; text-align: left; }
.faq .q { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.faq h3 { font-size: 15.5px; margin-bottom: 6px; }
.faq p { color: var(--ink-2); font-size: 14px; margin: 0; }

@media (max-width: 900px) {
  .how-grid, .sec-flow, .faq { grid-template-columns: 1fr; }
  .sec-flow .link { flex-direction: row; gap: 8px; }
  .sec-flow .link::before { content: "⇅"; }
  .sec-list { grid-template-columns: 1fr; }
}
/* 낮은 화면에서 도입 절차·보안·문의도 한 화면에 */
@media (min-width: 901px) and (max-height: 960px) {
  .deck.on .how-grid { margin-top: 16px; gap: 20px; }
  .deck.on .timeline { gap: 10px; }
  .deck.on .timeline p { font-size: 13.5px; line-height: 1.5; }
  .deck.on .how-side .panel { padding: 16px 18px; }
  .deck.on .checks, .deck.on .spec { font-size: 13.5px; }
  .deck.on .principle { padding: 16px 18px; }
  .deck.on .principle p { font-size: 13.5px; line-height: 1.5; }
  .deck.on .sec-flow { margin-top: 16px; }
  .deck.on .sec-flow .node { padding: 10px 12px; }
  .deck.on .sec-list { margin-top: 14px; font-size: 13.5px; }
  .deck.on .faq { margin-top: 20px; gap: 10px; }
  .deck.on .faq .q { padding: 12px 16px; }
  .deck.on .faq p { font-size: 13px; line-height: 1.5; }
  .deck.on #contact .row { margin-top: 16px; }
  .deck.on .slide > .foot { margin-top: 12px; padding-top: 18px; padding-bottom: 64px; }
}

/* ── 휴대폰·좁은 화면: PC처럼 좌우로 넘겨 보기 (한 화면에 안 들어가는 부분은 다음 장으로 나눔) ── */
@media (max-width: 900px) {
  .deck.on .slide > .wrap { padding: 0 16px; }
  .deck.on .slide { padding: 20px 0 72px; }
  .deck.on .section h2 { font-size: 24px; margin: 8px 0 10px; }
  .deck.on .section .intro { font-size: 14.5px; }
  .deck.on .hero h1 { font-size: 32px; margin: 12px 0 14px; }
  .deck.on .hero .lead { font-size: 15px; }
  .deck.on .grid { margin-top: 16px; gap: 10px; }
  .deck.on .grid.g4 { grid-template-columns: 1fr 1fr; }
  .deck.on .grid.grid-cont { margin-top: 16px; }
  .deck.on .feature { padding: 12px 14px; gap: 4px; }
  .deck.on .feature .no { font-size: 14px; }
  .deck.on .feature h3 { font-size: 15px; }
  .deck.on .feature p { font-size: 12.5px; line-height: 1.5; }
  .deck.on .principle { padding: 12px 14px; }
  .deck.on .principle h3 { font-size: 15px; margin-bottom: 4px; }
  .deck.on .principle p { font-size: 12.5px; line-height: 1.5; }
  .deck.on .how-grid { margin-top: 14px; }
  .deck.on .timeline { gap: 12px; }
  .deck.on .timeline h3 { font-size: 15px; }
  .deck.on .timeline p { font-size: 13px; line-height: 1.5; }
  .deck.on .how-side { margin-top: 16px; }
  .deck.on .sec-flow { margin-top: 16px; }
  .deck.on .faq { margin-top: 16px; gap: 10px; }
  .deck.on .faq .q { padding: 12px 14px; }
  .deck.on .faq p { font-size: 13px; line-height: 1.5; }
  /* 화살표는 아래 양쪽, 점은 가운데 (내용을 가리지 않게) */
  .deck.on .deck-arrow { top: auto; bottom: 12px; transform: none; width: 40px; height: 40px; font-size: 22px; }
  .deck.on .deck-arrow.prev { left: 12px; }
  .deck.on .deck-arrow.next { right: 12px; }
  .deck.on .deck-arrow .hint { display: none; }
  .deck.on .deck-dots { bottom: 22px; gap: 6px; padding: 8px 10px; }
  .deck.on .deck-dots button { font-size: 0; width: 8px; height: 8px; padding: 0; border-radius: 999px; background: var(--line-strong); }
  .deck.on .deck-dots button.on { width: 20px; background: var(--accent); }
  .deck.on .slide > .foot { padding-bottom: 72px; }
}
@media (max-width: 760px) {
  .deck.on { height: calc(100vh - 63px); height: calc(100dvh - 63px); }
}

/* 작은 휴대폰(세로 760px 이하): 보안 두 번째 장이 한 화면에 들어가게 */
@media (max-width: 900px) and (max-height: 760px) {
  .deck.on .sec-flow { gap: 6px; }
  .deck.on .sec-flow .node { padding: 8px 12px; }
  .deck.on .sec-list { gap: 6px 16px; font-size: 13px; margin-top: 12px; }
  .deck.on .section h2 { font-size: 22px; }
}
