/* 픽가드 메인 페이지 — public/style.css 의 디스코드 다크 팔레트를 따라요 */
:root {
  color-scheme: dark;
  --bg: #313338;
  --bg-2: #2b2d31;
  --bg-3: #1e1f22;
  --bg-alt: #2b2d31;
  --card: #2b2d31;
  --card-hover: #303238;
  --line: #3f4147;
  --text: #dbdee1;
  --strong: #f2f3f5;
  --muted: #b5bac1;          /* #313338 대비 7:1 이상 */
  --brand: #5865f2;          /* 흰 글자 대비 4.6:1 */
  --brand-2: #4752c4;
  --accent-text: #a3aaf9;    /* 어두운 배경 위 브랜드색 글자 */
  --link: #00a8fc;
  --ok: #23a55a;
  --ok-text: #4ed286;
  --danger-text: #ff8a8d;
  --chip-bg: #1e1f22;
  --chip-text: #dbdee1;
  --focus: #00a8fc;
  --header-bg: rgba(49, 51, 56, .82);
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
  --grad-a: #8c95ff;
  --grad-b: #d2a8ff;
  --glow: rgba(88, 101, 242, .28);
  --radius: 14px;
  --chat-bg: #313338;
  --chat-text: #dbdee1;
  --chat-line: #3f4147;
  --warn-bg: rgba(240, 178, 50, .12);
  --warn-line: rgba(240, 178, 50, .55);
  --warn-text: #f5c463;
}

/* 라이트 테마: 시스템 설정(수동으로 dark 를 고르지 않았을 때) 또는 수동 선택 */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #ffffff;
    --bg-2: #f2f3f5;
    --bg-3: #e3e5e8;
    --bg-alt: #f5f6f8;
    --card: #ffffff;
    --card-hover: #fafbff;
    --line: #dfe1e5;
    --text: #2e3338;
    --strong: #060607;
    --muted: #4e5058;
    --accent-text: #3c45b0;
    --link: #3c45b0;
    --ok-text: #157a3e;
    --danger-text: #b3261e;
    --chip-bg: #eef0f3;
    --chip-text: #2e3338;
    --focus: #1d4ed8;
    --header-bg: rgba(255, 255, 255, .85);
    --shadow: 0 12px 36px rgba(24, 28, 50, .12);
    --grad-a: #4752c4;
    --grad-b: #8b3fd9;
    --glow: rgba(88, 101, 242, .16);
    --chat-bg: #ffffff;
    --chat-text: #2e3338;
    --chat-line: #dfe1e5;
    --warn-bg: #fff6e0;
    --warn-line: #e0a526;
    --warn-text: #7a4b00;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f2f3f5;
  --bg-3: #e3e5e8;
  --bg-alt: #f5f6f8;
  --card: #ffffff;
  --card-hover: #fafbff;
  --line: #dfe1e5;
  --text: #2e3338;
  --strong: #060607;
  --muted: #4e5058;
  --accent-text: #3c45b0;
  --link: #3c45b0;
  --ok-text: #157a3e;
  --danger-text: #b3261e;
  --chip-bg: #eef0f3;
  --chip-text: #2e3338;
  --focus: #1d4ed8;
  --header-bg: rgba(255, 255, 255, .85);
  --shadow: 0 12px 36px rgba(24, 28, 50, .12);
  --grad-a: #4752c4;
  --grad-b: #8b3fd9;
  --glow: rgba(88, 101, 242, .16);
  --chat-bg: #ffffff;
  --chat-text: #2e3338;
  --chat-line: #dfe1e5;
  --warn-bg: #fff6e0;
  --warn-line: #e0a526;
  --warn-text: #7a4b00;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--strong); margin: 0; line-height: 1.3; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: ui-monospace, "SFMono-Regular", Consolas, "D2Coding", monospace; }
kbd { background: var(--chip-bg); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; font-size: .85em; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px var(--glow); }
.btn-primary:hover { background: var(--brand-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--strong); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); text-decoration: none; }
.btn-light { background: #fff; color: #3c45b0; }
.btn-light:hover { background: #eef0ff; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
.btn .avatar { width: 24px; height: 24px; border-radius: 50%; margin-left: -4px; object-fit: cover; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.icon-btn:hover { background: var(--bg-2); color: var(--strong); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 테마 버튼 아이콘: 현재 선택만 보여요 */
#theme-toggle svg { display: none; }
#theme-toggle[data-mode="system"] .ico-system,
#theme-toggle[data-mode="light"] .ico-light,
#theme-toggle[data-mode="dark"] .ico-dark { display: block; }
#theme-toggle:not([data-mode]) .ico-system { display: block; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--strong); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.site-nav { margin-right: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 8px;
}
.site-nav a:hover { background: var(--bg-2); color: var(--strong); }
.header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .header-inner { gap: 0 8px; padding-top: 8px; }
  .brand { margin-right: auto; }
  .site-nav { order: 3; width: 100%; margin: 0; border-top: 1px solid var(--line); }
  .site-nav ul { justify-content: space-around; gap: 0; }
  .site-nav a { font-size: 14px; padding: 6px 8px; min-height: 44px; }
}
@media (max-width: 380px) {
  .hide-xs { display: none; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .btn-sm { padding: 8px 12px; }
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 20% 30%, var(--glow), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, rgba(210, 168, 255, .16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin-bottom: 20px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  color: var(--accent-text); font-weight: 700; font-size: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(35, 165, 90, .2); }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.18; }
.grad {
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (forced-colors: active) { .grad { color: CanvasText; background: none; } }
.lead { margin-top: 20px; font-size: clamp(16px, 2vw, 19px); color: var(--text); max-width: 34em; }
.cmd, code.inline {
  background: var(--chip-bg); color: var(--chip-text);
  padding: .1em .4em; border-radius: 6px; font-size: .9em; white-space: nowrap;
}
code.inline.big { font-size: .95em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.stats b { color: var(--strong); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-sep { color: var(--muted); }
.stats-fallback { margin-top: 28px; color: var(--muted); font-size: 15px; }

@media (max-width: 920px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
}

/* 디스코드 채팅 모형 */
.hero-visual { min-width: 0; }
.chat-window {
  background: var(--chat-bg); color: var(--chat-text);
  border: 1px solid var(--chat-line); border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden; font-size: 14px;
}
.chat-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--strong); }
.chat-top .hash { color: var(--muted); font-size: 20px; line-height: 1; }
.chat-top-sub { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 13px; }
.msg { display: flex; gap: 12px; padding: 12px 16px; }
.msg + .msg { padding-top: 4px; }
.msg-av { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.user-av { display: grid; place-items: center; background: #f0b232; color: #1e1f22; font-weight: 800; }
.user-av.alt { background: #949ba4; }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.msg-head b { color: var(--strong); }
.msg-head span { color: var(--muted); font-size: 12px; }
.msg-head .bot-tag { background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.slash { display: inline-flex; align-items: center; gap: 6px; background: var(--chip-bg); padding: 4px 10px 4px 4px; border-radius: 8px; font-weight: 600; color: var(--strong); }
.slash-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 800; }
.embed { background: var(--bg-2); border-left: 4px solid var(--brand); border-radius: 6px; padding: 12px 14px; max-width: 420px; }
.embed-title { font-weight: 800; color: var(--strong); margin-bottom: 6px; }
.embed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.embed-list code { background: var(--chip-bg); padding: 0 4px; border-radius: 4px; font-size: 12.5px; }
.embed-list .ok { color: var(--ok-text); font-weight: 800; }
.embed-btn { display: inline-block; margin-top: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 6px; }
.filtered { font-size: 13px; color: var(--danger-text); font-style: italic; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-visual { animation: rise .8s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .feature { transition: transform .2s, border-color .2s, background-color .2s; }
  .feature:hover { transform: translateY(-3px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 섹션 공통 ---------- */
.section { padding: 88px 0; scroll-margin-top: 72px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent-text); font-weight: 800; font-size: 14px; letter-spacing: .04em; margin-bottom: 8px; }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.section-desc { margin-top: 12px; color: var(--muted); font-size: 17px; }
@media (max-width: 760px) {
  .section { padding: 64px 0; scroll-margin-top: 112px; }
}

/* ---------- 기능 그리드 ---------- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.feature {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 20px;
}
.feature:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--card-hover); }
.feature h3 { font-size: 17px; font-weight: 800; }
.feature > p:not(.chips) { color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.preset-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.preset-list li { position: relative; padding-left: 16px; overflow-wrap: anywhere; }
.preset-list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.preset-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 14px; font-weight: 700; }
.preset-links a { color: var(--accent-text); }
.feature-wide {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 14%, var(--card)), var(--card) 70%);
}
.f-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}
.f-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-red { --c: #f2555a; } .c-orange { --c: #f57731; } .c-yellow { --c: #e0a31a; } .c-green { --c: #23a55a; }
.c-teal { --c: #1ea8a0; } .c-blue { --c: #3b9cff; } .c-purple { --c: #9b6bff; } .c-pink { --c: #eb459f; } .c-brand { --c: #5865f2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips code {
  background: var(--chip-bg); color: var(--chip-text);
  border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600;
}

/* ---------- 사용법 ---------- */
.how-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }
.step p b { color: var(--text); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--link); }
@media (max-width: 920px) { .how-inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 400px) { .step { padding: 14px; gap: 12px; } .step-num { width: 34px; height: 34px; font-size: 16px; } }

/* 대시보드 모형 (HTML/CSS) */
.mock {
  min-width: 0;
  background: #1e1f22; border: 1px solid #3f4147; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); color: #dbdee1; font-size: 13px;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1e1f22; border-bottom: 1px solid #2b2d31; }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #4e5058; }
.mock-bar > span:nth-child(1) { background: #f2555a; } .mock-bar > span:nth-child(2) { background: #f0b232; } .mock-bar > span:nth-child(3) { background: #23a55a; }
.mock-url { flex: 1; margin-left: 8px; background: #2b2d31; color: #b5bac1; border-radius: 6px; padding: 3px 10px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: 132px 1fr; min-height: 340px; }
.mock-side { background: #2b2d31; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.mock-srv { width: 36px; height: 36px; border-radius: 12px; background: #5865f2; color: #fff; display: grid; place-items: center; font-weight: 800; margin: 0 0 10px 4px; }
.mock-nav { padding: 6px 10px; border-radius: 6px; color: #b5bac1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-nav.on { background: #404249; color: #f2f3f5; }
.mock-main { background: #313338; padding: 16px; min-width: 0; }
.mock-card { background: #2b2d31; border-radius: 10px; padding: 16px; }
.mock-card-title { color: #f2f3f5; font-weight: 800; font-size: 15px; }
.mock-card-hint { color: #b5bac1; font-size: 12px; margin-bottom: 6px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #3f4147; }
.mock-row b { display: block; color: #f2f3f5; font-weight: 600; }
.mock-row small { display: block; color: #b5bac1; font-size: 11.5px; }
.mock-switch { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #80848e; }
.mock-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mock-switch.on { background: #23a55a; }
.mock-switch.on::after { transform: translateX(16px); }
.mock-select { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 8px 10px; background: #1e1f22; border-radius: 6px; color: #b5bac1; }
.mock-select b { color: #f2f3f5; font-weight: 600; }
.mock-save { margin-top: 12px; display: inline-block; background: #5865f2; color: #fff; font-weight: 700; padding: 7px 14px; border-radius: 6px; }
@media (max-width: 480px) {
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { flex-direction: row; overflow: hidden; align-items: center; }
  .mock-srv { margin: 0 6px 0 0; width: 30px; height: 30px; flex: none; }
  .mock-nav:not(.on) { display: none; }
  .mock-main { padding: 12px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none; border-radius: 12px;
  font-size: 17px; font-weight: 700; color: var(--strong);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
@media (prefers-reduced-motion: no-preference) { .faq summary::after { transition: transform .2s; } }
.faq summary:hover { color: var(--accent-text); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p + p, .faq-a p + ul, .faq-a ul + p { margin-top: 10px; }
.faq-a ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.faq-a b { color: var(--text); }

/* ---------- 마무리 CTA ---------- */
.final { padding-top: 0; }
.final-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(130deg, #5865f2, #4752c4 60%, #3c45b0);
  color: #fff; border-radius: 24px; padding: 56px 24px;
}
.final-card::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent);
  pointer-events: none;
}
.final-card h2 { color: #fff; font-size: clamp(22px, 3.2vw, 32px); position: relative; }
.final-card p { margin: 12px 0 28px; color: #eef0ff; position: relative; }
.final-card code.inline { background: rgba(0, 0, 0, .22); color: #fff; }
.final-card .btn { position: relative; }
.final-card :focus-visible { outline-color: #fff; }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 28px; background: var(--bg-2); font-size: 14px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer-brand { color: var(--muted); }
.footer-brand p { margin: 0; }
.footer-name { color: var(--strong); font-weight: 800; font-size: 16px; }
.footer-tagline { margin-top: 4px !important; font-size: 13px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 13px; text-decoration: none; border-radius: 6px; }
.site-footer a:hover { color: var(--strong); text-decoration: underline; }
.site-footer a.footer-strong { color: var(--strong); font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom p { margin: 0; }

/* ---------- 대화상자 ---------- */
.modal {
  width: min(420px, calc(100vw - 32px));
  padding: 28px 24px 22px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
  text-align: center;
}
.modal::backdrop { background: rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: pop .18s ease-out; }
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal-ico { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--accent-text); }
.modal-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal h2 { font-size: 20px; margin-bottom: 10px; }
.modal-note { margin-top: 8px; color: var(--muted); font-size: 14px; }
.modal-actions { margin-top: 22px; }
.modal-actions .btn { width: 100%; }
.modal-x { position: absolute; top: 10px; right: 10px; border-color: transparent; }

@media (forced-colors: active) {
  .btn, .icon-btn, .feature, .step, .faq details { border: 1px solid CanvasText; }
  .mock-switch.on { background: Highlight; }
}
/* showModal 미지원 브라우저용 */
.modal.modal-fallback { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 200; }

/* 관리 가이드 링크 목록 */
.guide-links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.guide-links a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--strong); text-decoration: none; font-weight: 600; }
.guide-links a:hover { border-color: var(--brand); }
.guide-list { list-style: none; padding: 0 !important; }
.guide-list li { margin: 0 0 18px !important; }
.guide-list a { font-weight: 700; font-size: 17px; }
.guide-list p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* 관리 가이드 카드 — 기능 카드(.feature)와 같은 모양, 카드 전체가 링크 */
.guide-card { position: relative; }
.guide-card h3 a { color: inherit; text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.guide-more { margin-top: 20px; text-align: center; }

/* ---------- 실제 화면 예시 ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; background: var(--bg-3); }
.shot figcaption { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.shot figcaption b { display: block; color: var(--strong); font-size: 15px; }
@media (max-width: 920px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .shots { grid-template-columns: 1fr; } }

/* ---------- 역할 순서 경고 ---------- */
.step > div { min-width: 0; }
.step p.role-warn { margin: 0 0 8px; padding: 10px 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; color: var(--warn-text); font-size: 15px; }
.step p.role-warn b { color: inherit; }
.role-warn .text-link { display: inline-block; min-height: 0; margin: -12px 0 -12px 4px; padding: 12px 4px; line-height: 20px; white-space: nowrap; text-decoration: underline; }
.role-warn .text-link { color: inherit; }
.role-img { display: block; width: 100%; max-width: 420px; height: auto; margin: 12px 0 8px; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- 모바일: 기능 카드 접기 (JS 있을 때만) ---------- */
.feature-more-wrap { margin-top: 16px; text-align: center; }
.feature-more-wrap .btn { width: 100%; }
@media (max-width: 480px) {
  .feature-grid.is-collapsed > li:nth-child(n+7) { display: none; }
}
.stats-fallback b { color: var(--strong); }

/* QA 20261005h: 스크린샷 줄 — 이미지 높이가 243/183/199로 들쭉날쭉해 같은 비율 틀에 맞춤, 캡션 정렬 */
.shots .shot { display: flex; flex-direction: column; }
.shots .shot img { aspect-ratio: 16 / 10; object-fit: contain; }
.shots .shot figcaption { flex: 1; }

.cta-note { margin: 10px 0 0; font-size: 14px; color: var(--muted, inherit); }
.cta-note b { color: var(--strong, inherit); }

/* 신뢰 문구 · 봇 하나로 · 모바일 하단 초대 바 */
.trust-line { margin: 10px 0 0; font-size: .85rem; color: var(--muted, inherit); opacity: .85; }
.one-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 28px auto 0; text-align: center; }
.one-bot p { margin: 0; }
.one-bot-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.one-bot-list span { padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; color: var(--muted); font-size: .85rem; text-decoration: line-through; }
.one-bot-arrow { font-size: 1.2rem; opacity: .7; }
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg, #111); border-top: 1px solid rgba(127,127,127,.25); transform: translateY(110%); visibility: hidden; }
  .sticky-cta.is-visible { transform: none; visibility: visible; }
  .sticky-cta .btn { display: flex; width: 100%; justify-content: center; }
  body.has-sticky-cta { padding-bottom: 76px; }
  html:has(body.has-sticky-cta) { scroll-padding-bottom: 88px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .sticky-cta { transition: transform .25s ease, visibility .25s; }
}

/* 히어로 위 업데이트 소식 칩 — 키워드 줄(.eyebrow)과 다른 모양 */
.news-wrap { margin: 0 0 12px; }
.news-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--strong); text-decoration: none;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.news-chip:hover { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.news-tag { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 480px) { .news-chip { font-size: 13px; } }
/* a11y: keep keyboard focus clear of the sticky header */
html { scroll-padding-top: 80px; }
@media (max-width: 760px) { html { scroll-padding-top: 112px; } }

/* 히어로 꾸미기 — 은은한 빛·격자·아래쪽 그림자 (운영자 요청 2026-10-05) */
.hero {
  background:
    radial-gradient(60% 70% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(50% 60% at 100% 10%, rgba(210, 168, 255, .14), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 75%);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  box-shadow: inset 0 -40px 60px -40px rgba(0, 0, 0, .35);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--strong) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--strong) 6%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner { z-index: 1; }
/* 오른쪽 채팅 예시 뒤에 빛 번짐 + 떠 있는 그림자 */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 32px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 45%, transparent), transparent);
  filter: blur(40px); opacity: .7; pointer-events: none;
}
.chat-window {
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent);
}
/* 제목 그라디언트 글자에 살짝 빛 */
.hero h1 .grad { filter: drop-shadow(0 6px 24px color-mix(in srgb, var(--brand) 35%, transparent)); }
:root[data-theme="light"] .hero { box-shadow: inset 0 -40px 60px -40px rgba(80, 90, 160, .12); }
@media (prefers-reduced-transparency: reduce) { .hero-visual::before { display: none; } }

/* 히어로 글자 크기 정리 — 제목 > 설명 > 버튼 > 보조 정보 순으로 단계가 보이게 (2026-10-05) */
/* 위쪽 두 칩은 한 줄에 나란히 (좁으면 자연스럽게 줄바꿈) */
.hero-copy > .news-wrap, .hero-copy > .eyebrow { display: inline-flex; vertical-align: middle; margin: 0 8px 10px 0; }
.hero-copy > .eyebrow { font-size: 13px; }
.news-chip { font-size: 13.5px; }
.hero h1 { margin-top: 14px; font-size: clamp(34px, 5vw, 54px); line-height: 1.16; }
.lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 17.5px); line-height: 1.75; color: var(--muted); max-width: 30em; }
.lead .cmd { color: var(--strong); }
.cta-row { margin-top: 28px; }
.cta-note { margin-top: 12px; font-size: 14px; }
/* 숫자 줄: 숫자만 살짝 크게, 나머지는 보조 글씨 크기로 맞춤 */
.stats { margin-top: 26px; font-size: 14.5px; gap: 4px 8px; }
.stats b { font-size: 18px; }
.stats-fallback { margin-top: 26px; font-size: 14.5px; }
.trust-line { margin-top: 8px; font-size: 13.5px; opacity: 1; }
@media (max-width: 480px) {
  .hero-copy > .news-wrap, .hero-copy > .eyebrow { margin-right: 6px; }
  .lead { font-size: 15.5px; }
}

/* ---------- 공통 헤더 (.pg-header) — 메인 · 사용법 · 가이드 · 약관 · 순위표 · 로그인 페이지가 모두 같은 머리글을 써요 ---------- */
.pg-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg, var(--bg)); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.pg-header-inner { display: flex; align-items: center; gap: 8px 16px; min-height: 60px; }
.pg-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--strong); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.pg-brand img { width: 28px; height: 28px; }
.pg-brand:hover { text-decoration: none; }
.pg-nav { display: flex; gap: 2px; margin-right: auto; }
.pg-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.pg-nav a:hover { background: var(--bg-2); color: var(--strong); }
.pg-invite { flex: none; }
/* 오른쪽 버튼 묶음: 테마 · 초대하기 · 로그인(로그인하면 대시보드) */
.pg-actions { display: flex; align-items: center; gap: 8px; flex: none; }
/* 로그인 ↔ 대시보드로 바뀌어도 옆이 밀리지 않게 폭을 잡아 둬요 */
.pg-account { min-width: 178px; height: 40px; padding-top: 0; padding-bottom: 0; }
.pg-account .ico-dash,
.pg-account[data-state="in"] .ico-login,
.pg-account[data-has-avatar] .ico-dash { display: none; }
.pg-account[data-state="in"]:not([data-has-avatar]) .ico-dash { display: block; }
.pg-account .avatar { margin-left: -6px; }
@media (max-width: 600px) {
  .pg-invite { display: none; }
}
@media (max-width: 380px) {
  .pg-hide-xs { display: none; }
  .pg-account { min-width: 112px; }
}
@media (max-width: 720px) {
  .pg-header-inner { flex-wrap: wrap; gap: 0 8px; padding-top: 8px; }
  .pg-brand { margin-right: auto; }
  .pg-nav { order: 3; width: 100%; margin: 0; justify-content: space-around; border-top: 1px solid var(--line); }
  .pg-nav a { min-height: 44px; padding: 6px 8px; font-size: 14px; }
}
