/* nskin 공개 사이트 스타일. 라이트 테마 고정 (다크 모드 없음: 오너 지시).
   모양 규칙: 단추·입력 8px, 카드 14px, 큰 그림 22px. 강조색은 짙은 파랑 하나. */

@import url('/fonts/pretendard/pretendardvariable-dynamic-subset.css');

:root {
  color-scheme: light only;
  --bg: #f4f6f9;
  --surface: #fdfdfe;
  --surface-2: #eef2f7;
  --surface-3: #e3e8f0;
  --line: #dde3ec;
  --line-2: #c5cedb;
  --ink: #141a24;
  --ink-2: #3a4453;
  --ink-3: #5d6a7e;
  --accent: #2456c8;
  --accent-2: #1b47ab;
  --accent-soft: #e7edfb;
  --accent-line: #b7c8f0;
  --on-accent: #fdfdfe;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 26, 36, 0.06);
  --shadow-md: 0 2px 4px rgba(20, 26, 36, 0.05), 0 18px 44px -18px rgba(36, 86, 200, 0.25);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -0.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

/* ── 단추 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ── 헤더 ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  background: rgba(253, 253, 254, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; inset: 7px 7px 7px 7px; border-radius: 2px; background: var(--on-accent); opacity: 0.95; clip-path: polygon(0 100%, 0 0, 30% 0, 70% 60%, 70% 0, 100% 0, 100% 100%, 70% 100%, 30% 40%, 30% 100%); }
.brand-sub { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-accent); }
.nav a.btn-primary:hover { background: var(--accent-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ── 섹션 공통 ───────────────────────────────────── */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem); }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── 첫 화면 ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(36, 86, 200, 0.10), rgba(36, 86, 200, 0));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 1.5rem + 2.8vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.16; }
.hero-lead { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media { position: relative; }
.hero-media img { width: 116%; max-width: none; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface); }
.hero-caption { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-media { animation: rise 0.9s var(--ease) 0.12s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ── 견본 격자 ───────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.themes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.themes-grid.collapsed .theme-card:nth-child(n+9) { display: none; }
.themes-more { display: flex; justify-content: center; margin-top: 28px; }
.theme-card { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.theme-card button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.theme-card .thumb { aspect-ratio: 1280 / 1077; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.theme-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.theme-card figcaption { padding: 12px 14px 14px; }
.theme-card .name { font-weight: 700; font-size: 15px; }
.theme-card .fit { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.theme-card[hidden] { display: none; }
.themes-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* 라이트박스 */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(20, 26, 36, 0.66); backdrop-filter: blur(4px); }
.lightbox-panel { background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.lightbox-panel img { width: 100%; max-height: 74vh; object-fit: contain; object-position: top; background: var(--surface-2); }
.lightbox-bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.lightbox-bar .name { font-weight: 700; }
.lightbox-bar .fit { font-size: 14px; color: var(--ink-3); }
.lightbox-bar .spacer { flex: 1; }
.lightbox-close { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }

/* ── 다섯 층 ─────────────────────────────────────── */
.parts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.parts-copy { position: sticky; top: calc(var(--nav-h) + 24px); }
.parts-copy h2 { font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem); }
.parts-copy > p { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.parts-list { margin-top: 28px; counter-reset: part; }
.parts-list li { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.parts-list li::before { counter-increment: part; content: counter(part); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.parts-list strong { grid-column: 2; display: block; font-size: 16px; }
.parts-list span { grid-column: 2; display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.parts-extra { margin-top: 26px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface-2); }
.parts-extra h3 { font-size: 15px; margin-bottom: 8px; }
.parts-extra li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); padding: 4px 0; }
.parts-extra .icon { color: var(--accent); margin-top: 4px; }
.parts-media { display: grid; gap: 18px; }
.parts-media figure { margin: 0; }
.parts-media img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); }
.parts-media figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }

/* ── 진행 과정 ───────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.step { padding-top: 18px; border-top: 2px solid var(--line-2); }
.step .num { font-size: 13px; font-weight: 700; color: var(--accent); }
.step h3 { margin-top: 6px; font-size: 18px; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }

/* ── 네 가지 확인 (벤토) ─────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.cell { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.cell h3 { font-size: 20px; }
.cell p { font-size: 15px; color: var(--ink-2); max-width: 40em; }
.cell .icon { width: 26px; height: 26px; color: var(--accent); }
.cell-wide { grid-column: span 4; padding: 0; overflow: hidden; }
.cell-wide .cell-body { padding: 28px 28px 8px; display: flex; flex-direction: column; gap: 10px; }
.cell-wide img { width: 100%; margin-top: auto; border-top: 1px solid var(--line); }
.cell-accent { grid-column: span 2; background: var(--accent-soft); border-color: var(--accent-line); }
.cell-accent .res { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.cell-accent .res span { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.cell-tint { grid-column: span 3; background: var(--surface-2); }
.cell-plain { grid-column: span 3; }

/* ── 가격 ────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.plan-featured { border: 2px solid var(--accent); }
.plan-badge { position: absolute; top: -13px; left: 20px; padding: 3px 10px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 700; }
.plan h3 { font-size: 17px; }
.plan .price { margin-top: 12px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; font-weight: 600; margin-left: 2px; color: var(--ink-2); }
.plan .fit { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.plan ul { margin: 18px 0 22px; display: grid; gap: 7px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.plan li .icon { color: var(--accent); margin-top: 5px; width: 1em; height: 1em; }
.plan .btn { margin-top: auto; }
.addons { margin-top: 24px; padding: 8px 24px; border-radius: var(--r-md); background: var(--surface-2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.addon { padding: 18px 0; }
.addon + .addon { border-left: 1px solid var(--line-2); padding-left: 24px; }
.addon .name { font-size: 14px; color: var(--ink-3); }
.addon .price { font-size: 18px; font-weight: 700; margin-top: 2px; }
.addon .sub { font-size: 13px; color: var(--ink-3); }
.pay-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* ── 자주 묻는 질문 ─────────────────────────────── */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 4px; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 4px 22px; color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }

/* ── 마무리 띠 ───────────────────────────────────── */
.cta-band { padding: 72px 0; background: var(--surface-2); border-top: 1px solid var(--line); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.cta-band p { margin-top: 6px; color: var(--ink-2); }

/* ── 바닥글 ─────────────────────────────────────── */
.site-footer { padding: 56px 0 40px; background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.4fr; gap: 40px; }
.site-footer .brand { color: var(--ink); }
.footer-desc { margin-top: 12px; max-width: 34em; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-pay { align-self: start; max-width: 30em; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ── 문서 페이지 (정책) ──────────────────────────── */
.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.5rem); }
.doc .updated { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.doc-body { margin-top: 36px; font-size: 15.5px; color: var(--ink-2); }
.doc-body h2 { font-size: 19px; color: var(--ink); margin: 34px 0 10px; }
.doc-body p + p { margin-top: 10px; }
.doc-body ol, .doc-body ul { padding-left: 22px; list-style: decimal; display: grid; gap: 6px; }
.doc-body ul { list-style: disc; }
.doc-body pre { white-space: pre-wrap; font: inherit; margin: 0; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { color: var(--ink); font-weight: 600; background: var(--surface-2); }

/* ── 반응형 ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .themes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addon:nth-child(3) { border-left: 0; padding-left: 0; }
  .parts { grid-template-columns: 1fr; gap: 36px; }
  .parts-copy { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  .section { padding: 64px 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 12px; font-size: 16px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media img { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .themes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .theme-card figcaption { padding: 10px 12px 12px; }
  .theme-card .name { font-size: 14px; }
  .theme-card .fit { font-size: 12px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { border-top: 0; border-left: 2px solid var(--line-2); padding: 0 0 26px 18px; }
  .bento { grid-template-columns: 1fr; }
  .cell-wide, .cell-accent, .cell-tint, .cell-plain { grid-column: auto; min-height: 0; }
  .cell { padding: 22px; }
  .plans { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr; padding: 4px 20px; }
  .addon + .addon { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .lightbox-bar { flex-wrap: wrap; }
}

/* 답변 안 링크 */
.faq .answer a { text-decoration: underline; text-underline-offset: 3px; }
