:root {
  --bg: #ffffff;
  --tint: #f5f6f7;
  --ink: #0b0b0c;
  --ink-2: #2b3034;
  --muted: #5d656c;
  --line: #e2e5e8;
  --line-2: #c9ced3;
  --accent: #5fd4e8;
  --accent-ink: #0b8aa3;
  --wrap: min(1200px, calc(100% - 40px));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
code {
  font-family: Consolas, "D2Coding", monospace;
  font-size: .9em;
  padding: .05em .35em;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 4px;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  padding: 8px 14px; background: var(--ink); color: #fff; z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 6px;
  font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--tint); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-disabled, .btn-disabled:hover { background: var(--line); color: var(--muted); border-color: var(--line); cursor: not-allowed; }

/* 머리 메뉴 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font-family: Sora, "Pretendard Variable", sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: -0.01em; text-decoration: none;
}
.logo span { color: var(--ink); position: relative; }
.logo span::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: .2em; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.logo { line-height: 1; }
.logo span { display: inline-block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent-ink); }
.menu-btn { display: none; }

/* 첫 화면 */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.18; letter-spacing: -0.035em; }
.hero-lead { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-motto { margin-top: 26px; font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.hero-meta div { padding: 14px 24px 0 0; margin-right: 24px; }
.hero-meta dt { font-size: 13px; color: var(--muted); }
.hero-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

.stage { margin: 0; }
.stage-frame {
  position: relative; aspect-ratio: 1 / 1;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.stage-frame .layer {
  position: absolute; inset: 4%; width: 92%; height: 92%;
  object-fit: contain; opacity: 0; transition: opacity .9s ease;
}
.stage-frame .layer-base { opacity: 1; }
.stage-frame .layer.on { opacity: 1; }
.stage-frame .layer-base.dim { opacity: .22; }
.stage-frame .layer-base.gone,
.stage-frame .layer.gone { opacity: 0; }
.stage-frame .layer-model { inset: 0; width: 100%; height: 100%; background: #fff; }

.legend {
  position: absolute; left: 14px; bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12.5px; color: var(--ink-2);
  background: rgba(255,255,255,.9); padding: 6px 10px; border-radius: 4px;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .6s; }
.legend span.on { opacity: 1; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dash { background: repeating-linear-gradient(90deg, #3D7FEA 0 4px, transparent 4px 7px); }
.legend.gone { opacity: 0; }

.stage figcaption { margin-top: 12px; }
.stage-steps { list-style: none; margin: 0; padding: 0; display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stage-steps li { flex: 1; }
.stage-steps li + li { border-left: 1px solid var(--line); }
.stage-steps button {
  width: 100%; padding: 9px 4px; background: #fff; border: 0;
  font-size: 13px; color: var(--muted); position: relative;
}
.stage-steps button[aria-selected="true"] { color: var(--ink); font-weight: 700; background: var(--tint); }
.stage-steps button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.stage-note { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.stage-pause { flex: none; background: none; border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 10px; font-size: 12.5px; }

/* 요약 사양 */
.specs { border-bottom: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-grid > div { padding: 28px 24px 30px; border-left: 1px solid var(--line); }
.spec-grid > div:first-child { border-left: 0; padding-left: 0; }
.spec-grid span { font-size: 13px; color: var(--muted); }
.spec-grid strong { display: block; font-size: 19px; margin: 4px 0 6px; }
.spec-grid p { font-size: 14.5px; color: var(--ink-2); }

/* 공통 구역 */
.section { padding: 96px 0; }
.section.tint { background: var(--tint); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-num { font-size: 14px; font-weight: 700; color: var(--accent-ink); margin-bottom: 14px; }
.sec-head h2, .beta h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.sec-head > p:last-child:not(.sec-num) { margin-top: 18px; font-size: 17px; color: var(--ink-2); }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { position: relative; padding-left: 16px; margin: 6px 0; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .82em; width: 8px; height: 1.5px; background: var(--ink-2); }
.dash-list.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 24px; }

/* 01 작동 방식 */
.how-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.video-box { margin: 0; position: sticky; top: 90px; }
.video-box video { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #111; }
.video-box figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.how-steps li:first-child { border-top: 0; padding-top: 0; }
.how-steps b {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%; font-size: 14px;
}
.how-steps h3 { font-size: 20px; margin-bottom: 6px; }
.how-steps p { color: var(--ink-2); }
.how-steps .sub { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.how-steps em { font-style: normal; font-weight: 600; color: var(--ink); }

/* 02 단계별 확인 */
.viewer { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.viewer-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.viewer-tabs button {
  flex: 1 0 auto; padding: 14px 18px; background: none; border: 0;
  font-size: 15px; color: var(--muted); white-space: nowrap; position: relative;
}
.viewer-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.viewer-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--accent);
}
.viewer-panel { display: grid; grid-template-columns: 1.7fr 1fr; }
.viewer-panel[hidden] { display: none; }
.viewer-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center; background: #111; }
.viewer-text { padding: 32px 30px; }
.viewer-text h3 { font-size: 24px; margin-bottom: 18px; }
.viewer-text dl { margin: 0; }
.viewer-text dt { font-size: 13px; font-weight: 700; color: var(--accent-ink); margin-top: 18px; }
.viewer-text dt:first-child { margin-top: 0; }
.viewer-text dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

.all-steps { margin-top: 48px; }
.all-steps h3 { font-size: 18px; margin-bottom: 14px; }
.all-steps ol {
  list-style: none; margin: 0; padding: 0; counter-reset: s;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-2); border-left: 1px solid var(--line);
}
.all-steps li {
  counter-increment: s; padding: 14px 14px 16px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted); background: #fff;
}
.all-steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 12px; color: var(--accent-ink); font-weight: 700; }
.all-steps li b { display: block; color: var(--ink); font-size: 15.5px; margin: 2px 0 2px; }

/* 03 결과 */
.result-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.tag-switch { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.tag-switch button { background: #fff; border: 0; padding: 9px 16px; font-size: 14px; color: var(--muted); }
.tag-switch button + button { border-left: 1px solid var(--line-2); }
.tag-switch button[aria-selected="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.tag-images img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.result-info h3 { font-size: 18px; margin: 0 0 14px; }
.result-info h3 + .dash-list { margin-bottom: 0; }
.result-info .fine { margin-bottom: 30px; }
.tag-list {
  list-style: none; margin: 0; padding: 0; counter-reset: t;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.tag-list li { counter-increment: t; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.tag-list li::before { content: counter(t, decimal-leading-zero) " "; color: var(--muted); font-size: 12px; }

.table-box { margin-top: 56px; }
.table-box h3 { font-size: 18px; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-2); background: #fff; }
td b { white-space: nowrap; }

/* 04 기능 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.feature-grid article { background: #fff; padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid h3 { font-size: 19px; margin-bottom: 10px; }
.feature-grid p { color: var(--ink-2); font-size: 15px; }
.feature-grid .fine { font-size: 13px; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 4px; }

/* 05 누구에게 */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.who-grid article { border-top: 2px solid var(--ink); padding-top: 18px; }
.who-grid h3 { font-size: 20px; margin-bottom: 8px; }
.who-grid p { color: var(--ink-2); }
.fit-box { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border: 1px solid var(--line); border-radius: 8px; }
.fit-box > div { padding: 22px 24px; }
.fit-box > div + div { border-left: 1px solid var(--line); }
.fit-box h4 { font-size: 14px; color: var(--accent-ink); margin-bottom: 6px; }

/* 06 데이터 */
.data-table td:first-child { font-weight: 600; width: 30%; }

/* 07 사용 환경 */
.req-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.spec-table { border-top: 1px solid var(--line-2); }
.spec-table th { width: 30%; font-size: 14px; color: var(--muted); font-weight: 600; }
.not-box { border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.not-box h3 { font-size: 17px; margin-bottom: 8px; }
.install { margin-top: 56px; }
.install h3 { font-size: 18px; margin-bottom: 14px; }
.install ol { margin: 0; padding: 0; list-style: none; counter-reset: i; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.install li { counter-increment: i; padding: 16px 18px 0 0; font-size: 14.5px; color: var(--ink-2); }
.install li::before { content: counter(i); display: block; font-weight: 800; color: var(--accent-ink); margin-bottom: 4px; }

/* 08 무료판·정품 */
.compare { max-width: 760px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 26%; }
.flow { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; }
.flow li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.flow b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.flow strong { display: block; }
.flow span { font-size: 14px; color: var(--muted); }

/* 09 한계 */
.limit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.limit-grid > div { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); }
.limit-grid h3 { font-size: 16.5px; margin-bottom: 6px; }
.limit-grid p { font-size: 14.5px; color: var(--ink-2); }

/* 10 FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* 베타 */
.beta { background: var(--ink); color: #fff; }
.beta .sec-num { color: var(--accent); }
.beta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.beta-grid > div > p:last-child { margin-top: 18px; color: #c4cacf; font-size: 17px; }
.beta-box { border: 1px solid #33383d; border-radius: 8px; padding: 28px; }
.beta-box dl { margin: 0 0 24px; }
.beta-box dt { font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 16px; }
.beta-box dt:first-child { margin-top: 0; }
.beta-box dd { margin: 4px 0 0; color: #e6e9eb; }
.beta-intro > p:not(.sec-num) { margin-top: 18px; color: #c4cacf; font-size: 17px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #8fe3f1; }
.btn-accent:disabled { opacity: .5; cursor: default; }
.download-box { margin-top: 36px; padding-top: 28px; border-top: 1px solid #33383d; }
.download-box h3 { font-size: 17px; margin-bottom: 14px; }
.download-box p { margin-top: 12px; font-size: 14.5px; color: #aeb5bb; }
.beta code { background: #1d2124; border-color: #33383d; color: #e6e9eb; }

.beta-form { display: grid; gap: 16px; background: #fff; color: var(--ink); border-radius: 8px; padding: 28px; }
.beta-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.beta-form small { font-weight: 400; color: var(--muted); }
.beta-form input[type=email], .beta-form input[type=text], .beta-form select, .beta-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); width: 100%;
}
.beta-form input[type=file] { font: inherit; font-weight: 400; font-size: 14px; }
.beta-form textarea { min-height: 88px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.beta-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; }
.beta-form .check input { margin-top: 5px; flex: none; }
.privacy { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 13.5px; color: var(--muted); }
.privacy summary { cursor: pointer; }
.privacy p { margin-top: 8px; }
.hide { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14.5px; min-height: 1.4em; }
.form-status[data-kind=ok] { color: #0f7b4b; font-weight: 600; }
.form-status[data-kind=error] { color: #b42318; }
.form-status[data-kind=busy] { color: var(--muted); }

/* 바닥글 */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.footer-grid .logo { color: var(--ink); }
.footer-grid > div:first-child p { margin-top: 8px; }
.footer-grid h4 { font-size: 13px; color: var(--ink); margin: 0 0 4px; }
.footer-grid h4 + p { margin-bottom: 16px; }
.todo { color: #b4541a; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 12.5px; }

/* 화면이 좁을 때 */
@media (max-width: 1080px) {
  .nav-links { gap: 16px; font-size: 13.5px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .all-steps ol { grid-template-columns: repeat(4, 1fr); }
  .limit-grid { grid-template-columns: repeat(2, 1fr); }
  .install ol { grid-template-columns: 1fr; }
  .install li { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .menu-btn {
    display: block; margin-left: auto; background: none;
    border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 12px; font-size: 14px;
  }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-cta { display: none; }
  .hero-grid, .how-grid, .result-grid, .req-grid, .faq-wrap, .beta-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .video-box, .faq-wrap .sec-head { position: static; }
  .viewer-panel { grid-template-columns: 1fr; }
  .viewer-panel img { height: auto; aspect-ratio: 16 / 9; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid > div { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .who-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hero-lead { font-size: 16.5px; }
  .stage-steps { flex-wrap: wrap; }
  .stage-steps li { flex: 1 0 33%; }
  .stage-steps li + li { border-left: 0; }
  .stage-note { flex-direction: column; align-items: flex-start; }
  .spec-grid { grid-template-columns: 1fr; }
  .feature-grid, .limit-grid { grid-template-columns: 1fr; }
  .all-steps ol { grid-template-columns: repeat(2, 1fr); }
  .tag-list { grid-template-columns: repeat(2, 1fr); }
  .fit-box, .dash-list.cols, .flow, .form-row { grid-template-columns: 1fr; }
  .beta-form { padding: 20px; }
  .fit-box > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer-bottom { flex-direction: column; }
  .legend { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-frame .layer, .legend span { transition: none; }
}
