/* ==========================================================================
   누끼프리 — 무료 AI 누끼 제거
   style.css · 단일 파일 CSS (빌드 도구 없음)
   ========================================================================== */

:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e6e8ef;
  --line-strong: #d3d8e3;
  --bg: #f7f8fc;
  --card: #ffffff;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --ok: #0f9d58;
  --warn: #b45309;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 4px 10px -6px rgba(15, 23, 42, .1);
  --shadow-lg: 0 30px 60px -30px rgba(49, 46, 129, .35);
  --checker: repeating-conic-gradient(#e9ecf3 0% 25%, #f7f8fb 0% 50%) 50% / 18px 18px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 400px at 12% -100px, rgba(124, 58, 237, .10), transparent 70%),
    radial-gradient(700px 380px at 92% 0px, rgba(79, 70, 229, .09), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(1180px, 100% - 24px); } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--brand); display: grid; place-items: center; }
.brand__text b { color: var(--brand); font-weight: 800; }

.site-nav { display: flex; gap: 22px; margin-left: 8px; }
.site-nav a { color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 860px) { .site-nav { display: none; } }

.engine-chip {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap;
}
.engine-chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .18);
}
.engine-chip[data-state="loading"] .engine-chip__dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); animation: pulse 1.4s ease-in-out infinite; }
.engine-chip[data-state="ready"] .engine-chip__dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 157, 88, .18); }
.engine-chip[data-state="error"] .engine-chip__dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 480px) { .engine-chip__label { display: none; } .engine-chip { padding: 8px; } }

/* ---------------------------------------------------------------- ads */
.ad-slot {
  position: relative;
  display: grid; place-items: center; gap: 2px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .55);
  color: #94a3b8; font-size: 12px; letter-spacing: .02em;
  text-align: center; overflow: hidden;
}
.ad-slot--leaderboard { min-height: 90px; margin: 18px 0 4px; }
.ad-slot--inline { min-height: 100px; margin: 40px 0; }
.ad-slot--footer { min-height: 90px; margin-bottom: 24px; }
.ad-slot__tag {
  position: absolute; top: 6px; left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: #b6bfcd;
}
.ad-slot__text { opacity: .85; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 46px 0 8px; text-align: center; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #dcdcff;
  padding: 6px 14px; border-radius: 999px;
}
.hero__title {
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.18; letter-spacing: -.035em; font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--brand) 5%, var(--brand-2) 60%, #db2777 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  max-width: 640px; margin: 18px auto 0;
  color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 17px);
}
.hero__sub b { color: var(--ink); }
.hero__badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
  margin: 22px 0 0; padding: 0; list-style: none;
}
.hero__badges li {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------- dropzone */
.dropzone {
  position: relative;
  margin: 28px auto 0; max-width: 860px;
  border: 2px dashed #c7cbe0;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fbfbff);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff, #f5f3ff);
  box-shadow: var(--shadow-md);
}
.dropzone.is-drag { border-color: var(--brand-2); background: #f5f3ff; transform: scale(1.006); }
.dropzone__inner { padding: 40px 24px 36px; text-align: center; }
.dropzone__icon {
  width: 68px; height: 68px; margin: 0 auto 14px;
  display: grid; place-items: center; color: var(--brand);
  border-radius: 20px; background: var(--brand-soft);
}
.dropzone__title { font-size: clamp(16px, 2vw, 19px); font-weight: 700; }
.dropzone__title u { text-decoration-color: rgba(79, 70, 229, .35); text-underline-offset: 3px; }
.dropzone__hint { margin-top: 7px; font-size: 13px; color: var(--muted); }

.dropzone__busy {
  display: grid; gap: 12px; justify-items: center;
  padding: 34px 28px 30px;
  border-top: 1px solid transparent;
}
.dropzone.is-busy .dropzone__inner { display: none; }
.dropzone.is-busy { cursor: progress; border-style: solid; border-color: #ddd9ff; background: #fbfaff; }
.dropzone__busy p { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.progress {
  width: min(420px, 100%); height: 10px; border-radius: 999px;
  background: #eceafd; overflow: hidden;
}
.progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: inherit; transition: width .25s ease;
}
.progress__meta { font-size: 12px !important; font-weight: 500 !important; color: var(--muted) !important; }

/* 모델 다운로드 진행률 — 헤더 아래 얇은 바 */
.top-progress {
  position: fixed; left: 0; right: 0; top: 63px; z-index: 39;
  height: 3px; background: transparent; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.top-progress.is-on { opacity: 1; }
.top-progress__bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), #db2777);
  box-shadow: 0 0 8px rgba(124, 58, 237, .55);
  transition: width .3s ease;
}
@media (max-width: 640px) { .top-progress { top: 59px; } }

.hero__privacy {
  margin: 14px auto 0; max-width: 720px;
  font-size: 12.5px; color: var(--muted);
}

.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #e6e3ff; border-top-color: var(--brand);
  animation: spin .9s linear infinite;
}
.spinner--light { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 18px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; background: #fff; transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .85);
}
.btn--primary:hover:not(:disabled) { box-shadow: 0 14px 28px -12px rgba(79, 70, 229, .95); }
.btn--outline { border-color: var(--line-strong); color: var(--ink-soft); background: #fff; }
.btn--outline:hover:not(:disabled) { border-color: #b9bfd4; background: #fbfcff; }
.btn--ghost { color: var(--muted); background: transparent; }
.btn--ghost:hover:not(:disabled) { background: #f1f5f9; color: var(--ink); }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn--lg { padding: 14px 20px; font-size: 15.5px; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- workspace */
.workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 22px;
  margin-top: 36px; align-items: start;
}
@media (max-width: 1020px) { .workspace { grid-template-columns: minmax(0, 1fr); } }

.stage-card, .panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stage-card { padding: 14px; }
.stage-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 2px 4px 12px;
}
.file-name {
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stage-toolbar__right { display: flex; align-items: center; gap: 8px; }
.badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  padding: 4px 9px; border-radius: 999px;
}
.badge--soft { background: #f1f5f9; color: var(--muted); border: 1px solid var(--line); }

.stage {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  background: var(--checker);
  border: 1px solid var(--line);
  user-select: none; touch-action: pan-y;
}
.stage__layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
}
.stage__result {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
  background: var(--checker);   /* 투명 영역은 체커보드로 표시 */
  will-change: clip-path;
}
.stage__result canvas { width: 100%; height: 100%; object-fit: contain; }

.stage__divider {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .18), 0 0 18px rgba(15, 23, 42, .25);
  cursor: ew-resize; z-index: 3;
}
.stage__divider:focus-visible { outline: 3px solid rgba(79, 70, 229, .55); outline-offset: 2px; }
.stage__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .25), 0 0 0 1px rgba(15, 23, 42, .08);
}
.stage__tag {
  position: absolute; top: 10px; z-index: 2;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  padding: 4px 9px; border-radius: 8px;
  background: rgba(15, 23, 42, .62); color: #fff;
  backdrop-filter: blur(4px);
}
.stage__tag--before { left: 10px; }
.stage__tag--after { right: 10px; background: rgba(79, 70, 229, .82); }

.stage__working {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  background: rgba(15, 23, 42, .48);
  color: #fff; font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(2px);
}
.stage__working p { color: #fff; }
.stage__working-sub { font-size: 12px; font-weight: 500; opacity: .85; }

.stage-help {
  margin-top: 10px; padding: 0 4px;
  font-size: 12.5px; color: var(--muted); text-align: center;
}

/* ---------------------------------------------------------------- panel */
.panel { padding: 6px 18px 18px; position: sticky; top: 80px; }
@media (max-width: 1020px) { .panel { position: static; } }
.panel__group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.panel__group:last-child { border-bottom: 0; padding-bottom: 6px; }
.panel__title {
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 12px;
}
.panel__note { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.panel__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; border-radius: 12px; background: #f1f3f9; border: 1px solid var(--line);
}
.segmented__btn {
  border: 0; background: transparent; border-radius: 9px;
  padding: 8px 6px; font-size: 13.5px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.segmented__btn:hover { color: var(--ink); }
.segmented__btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented--sm .segmented__btn { font-size: 12.5px; padding: 7px 4px; }

.bg-color { margin-top: 14px; display: grid; gap: 12px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform .12s ease, box-shadow .15s ease;
  padding: 0;
}
.preset:hover { transform: translateY(-1px); }
.preset.is-active { box-shadow: 0 0 0 2px var(--brand), 0 0 0 4px #fff; }

.color-field {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px;
  background: #fbfcff; cursor: pointer;
}
.color-field input[type="color"] {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px;
  background: none; cursor: pointer;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line-strong); border-radius: 8px; }
.color-field__text { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.color-field__text code { font-size: 12px; color: var(--muted); }

.bg-image { margin-top: 14px; display: grid; gap: 10px; }
.bg-image__preview { display: flex; align-items: center; gap: 10px; }
.bg-image__preview img {
  width: 64px; height: 48px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}

.switch { display: flex; align-items: center; gap: 10px; margin-top: 16px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  width: 42px; height: 24px; border-radius: 999px; background: #dde2ec;
  position: relative; transition: background .18s ease; flex: none;
}
.switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform .18s ease;
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid rgba(79, 70, 229, .4); outline-offset: 2px; }
.switch__label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.switch__label small { font-weight: 500; color: var(--muted); }

.range-field { display: grid; gap: 6px; margin-bottom: 14px; }
.range-field__label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.range-field__label output {
  font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 7px;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) var(--fill, 30%), #e3e6ef var(--fill, 30%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #e3e6ef; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--brand); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  border: 2px solid var(--brand); box-shadow: var(--shadow-sm);
}

.panel__group--download { padding-top: 20px; }
.panel__group--download .btn--primary { margin-top: 10px; }

/* ---------------------------------------------------------------- batch */
.batch { margin-top: 56px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.section-title { font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.025em; font-weight: 800; }
.section-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.chip {
  display: inline-block; vertical-align: middle;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 3px 9px; margin-left: 4px;
}

.batch-drop {
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  padding: 18px; text-align: center; color: var(--muted);
  font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .6);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.batch-drop:hover, .batch-drop.is-drag { border-color: var(--brand); background: #f7f6ff; color: var(--ink-soft); }

.batch-list {
  margin-top: 14px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px;
}
.batch-item {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.batch-item__thumb {
  aspect-ratio: 1 / 1; background: var(--checker);
  display: grid; place-items: center; overflow: hidden;
}
.batch-item__thumb img, .batch-item__thumb canvas {
  width: 100%; height: 100%; object-fit: contain;
}
.batch-item__body { padding: 9px 10px 10px; }
.batch-item__name {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.batch-item__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px;
}
.batch-item__status { font-size: 11px; font-weight: 700; color: var(--muted); }
.batch-item__status[data-s="done"] { color: var(--ok); }
.batch-item__status[data-s="error"] { color: #dc2626; }
.batch-item__status[data-s="working"] { color: var(--brand); }
.batch-item__del {
  border: 0; background: transparent; color: #b0b8c8; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 6px;
}
.batch-item__del:hover { background: #f1f5f9; color: #ef4444; }
.batch-item__progress {
  height: 3px; background: #eef0f8; border-radius: 999px; overflow: hidden; margin-top: 6px;
}
.batch-item__progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s ease; }
.batch-item__progress span.is-run {
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand));
  background-size: 200% 100%;
  animation: batch-run 1.1s linear infinite;
}
@keyframes batch-run { from { background-position: 0% 0; } to { background-position: -200% 0; } }
.batch-item__badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  background: rgba(15, 23, 42, .66); color: #fff;
  padding: 2px 7px; border-radius: 6px;
}
.batch-item__badge[data-s="done"] { background: rgba(15, 157, 88, .92); }
.batch-item__badge[data-s="error"] { background: rgba(220, 38, 38, .92); }
.batch-item__badge[data-s="working"] { background: rgba(79, 70, 229, .92); }

.batch-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.batch-actions__status { margin-right: auto; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------------- guide */
.guide, .faq { margin-top: 64px; }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: -.01em; }
.step p { font-size: 13.5px; color: var(--muted); }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 15px; margin-bottom: 7px; letter-spacing: -.01em; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- faq */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 0;
  font-size: 15px; font-weight: 700; position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--muted); transition: transform .18s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 72px; padding-top: 32px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.site-footer__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-bottom: 28px;
}
.site-footer__brand { font-weight: 800; font-size: 15px; }
.site-footer__brand span { font-weight: 500; color: var(--muted); font-size: 13px; }
.site-footer__links { display: flex; gap: 18px; font-size: 13px; }
.site-footer__links a { color: var(--muted); font-weight: 600; }
.site-footer__links a:hover { color: var(--brand); }
.site-footer__meta { font-size: 12px; color: #94a3b8; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: rgba(15, 23, 42, .92); color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
  z-index: 80; max-width: min(90vw, 480px); text-align: center;
  box-shadow: var(--shadow-lg);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

[hidden] { display: none !important; }

/* 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
