:root {
  --bg: #f5f7fb;
  --ink: #171c28;
  --muted: #667085;
  --line: #e6eaf1;
  --card: #ffffff;
  --blue: #3b6cff;
  --blue-soft: #e8efff;
  --yellow: #ffe14a;
  --green: #e8f8ef;
  --green-ink: #137a45;
  --header: rgba(245, 247, 251, 0.9);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #10141c;
  --ink: #f5f7fb;
  --muted: #a8b0c0;
  --line: #2a3140;
  --card: #181e2a;
  --blue: #8eafff;
  --blue-soft: #243454;
  --yellow: #f0d35a;
  --green: #163326;
  --green-ink: #b7ebc9;
  --header: rgba(16, 20, 28, 0.9);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: 72px; padding: 0 28px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -0.04em; text-decoration: none; font-size: 18px; }
.mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: white; font-size: 15px; }
.nav { display: flex; gap: 2px; margin-left: 18px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.nav a:hover { background: var(--card); color: var(--ink); }
.spacer { flex: 1; }
.icon-btn, .menu-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; height: 38px; padding: 0 14px; cursor: pointer;
}
.nav-note { margin-left: 18px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.menu-btn { display: none; }
.nav-cta { margin-left: 8px; }
.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.hero { text-align: center; padding: 84px 0 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 650;
}
.dot { width: 8px; height: 8px; border-radius: 99px; background: #2fce73; }
h1 { font-size: clamp(46px, 6vw, 76px); line-height: 1.12; letter-spacing: -0.05em; margin: 22px 0 14px; font-weight: 780; }
h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer; font-weight: 730;
}
.btn.blue { background: #2457e6; color: white; }
.btn.yellow { background: var(--yellow); color: #1b1e27; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn.solid { background: #2457e6; color: white; width: 100%; margin-top: 16px; }
.pills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pill { font-size: 13px; font-weight: 680; padding: 8px 12px; border-radius: 999px; background: var(--green); color: var(--green-ink); }
.phone {
  width: min(460px, 100%); margin: 42px auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 70px rgba(36, 62, 120, 0.08); padding: 18px;
}
.phone-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.bubble { border-radius: 18px; padding: 12px 14px; margin: 8px 0; max-width: 90%; }
.bubble.ai { background: var(--blue-soft); }
.bubble.human { background: var(--bg); margin-left: auto; }
.block { padding: 88px 0; }
.block h2, .center { text-align: center; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.045em; line-height: 1.2; margin: 0 0 12px; font-weight: 780; }
.sub { color: var(--muted); max-width: 680px; margin: 0 auto; text-align: center; }
.split, .features { display: grid; gap: 14px; margin-top: 28px; }
.split { grid-template-columns: 1fr 1fr; }
.features { grid-template-columns: repeat(3, 1fr); }
.panel, .feature, .faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 18px;
}
.panel h3, .feature h3 { margin: 6px 0 8px; letter-spacing: -0.03em; font-size: 22px; }
.panel label { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 700; }
.panel input, .panel select, .panel textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.panel .btn { margin-top: 12px; margin-right: 8px; }
.panel audio { width: min(480px, 100%); margin-top: 12px; }
#voice-feel { width: 100%; min-height: 72px; margin: 8px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.feature audio { width: 100%; margin-top: 12px; height: 36px; }
.studio {
  margin-top: 28px; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: 24px; padding: 22px;
}
.studio label { display: block; font-size: 13px; font-weight: 750; color: var(--muted); }
.studio textarea {
  width: 100%; min-height: 110px; margin-top: 8px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg); resize: vertical;
}
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.picks button {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 999px; height: 40px; padding: 0 16px; cursor: pointer; font-weight: 730;
}
.picks button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.studio .btn { width: auto; min-width: 180px; }
.studio .btn:disabled { opacity: 0.55; cursor: wait; }
.studio audio { width: min(480px, 100%); margin-top: 16px; }
.num { color: var(--blue); font-weight: 750; font-size: 13px; }
.kicker { font-size: 12.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.legal p, .legal .faq p { font-size: 15px; }
.steps { display: grid; gap: 10px; margin-top: 14px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.badge { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); font-size: 13px; font-weight: 750; }
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 14px; }
.tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.screen { display: grid; grid-template-columns: 190px 1fr; min-height: 340px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); text-align: left; }
img[data-panel] { width: min(1080px, 100%); display: block; margin: 8px auto 0; border: 1px solid var(--line); border-radius: 16px; background: white; }
img[data-panel][hidden] { display: none; }
.side { background: #141a24; color: #d7deea; padding: 18px 14px; }
.side strong { display: block; margin: 0 0 14px 8px; }
.side span { display: block; padding: 9px 10px; border-radius: 10px; color: #93a0b5; }
.side span.on { background: #2a3850; color: white; }
.mainpane { padding: 26px; }
.rowline { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ok { color: var(--green-ink); font-weight: 700; }
table { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--card); border-radius: 20px; overflow: hidden; }
th, td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; }
.faq { margin: 10px auto; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 730; font-size: 17px; }
.faq p { color: var(--muted); margin-bottom: 0; }
.cta {
  margin: 10px auto 80px; padding: 42px; border-radius: 28px; background: #171c28; color: white;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
}
.cta p { color: #c5cedd; margin: 0; }
.float { position: fixed; right: 22px; bottom: 22px; display: flex; gap: 8px; z-index: 40; }
.float a { height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; }
.float .a { background: #2457e6; color: white; }
.float .b { background: var(--yellow); color: #1b1e27; }
.sheet label { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 700; }
.sheet input, .sheet textarea, .sheet select {
  width: 100%; height: 46px; margin-top: 6px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.sheet textarea { height: auto; padding: 12px; }
.sheet .btn { width: auto; }
.account { background: var(--blue-soft); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.account div { display: flex; justify-content: space-between; gap: 12px; }
.account span { color: var(--muted); }
.hint { color: var(--muted); }
.error { color: #b42318; min-height: 1.2em; }
footer.foot { border-top: 1px solid var(--line); background: var(--card); padding: 34px 0 48px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.sheet { width: min(760px, calc(100% - 40px)); margin: 48px auto 80px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); padding: 12px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .split, .features, .screen, .cta, .foot-grid { grid-template-columns: 1fr; display: grid; }
  .cta { display: block; }
  h1 { font-size: 42px; }
  .top { padding: 0 16px; }
}

/* ─────────────────────────────────────────────────────────────
   WPF-15 · 사이트도 프로그램과 같은 색·같은 카드로 맞춘다.
   프로그램(LineTheme.xaml)의 토큰을 그대로 옮겼다.
     다크  배경 #071A20 · 카드 #0E2A33 · 테두리 #173B46 · 민트 #2DE3C1
     라이트 배경 #F2F7F8 · 카드 #FFFFFF · 테두리 #DCE8EA · 청록 #0F8F7C
   카드 모양(그라데이션 테두리 · 18px 모서리 · 아이콘 타일)도 프로그램과 같다.
   ───────────────────────────────────────────────────────────── */
:root, html[data-theme="light"] {
  --bg: #F2F7F8;
  --ink: #0B2B33;
  --strong: #061D24;
  --muted: #5C7680;
  --line: #DCE8EA;
  --card: #FFFFFF;
  --brand: #0F8F7C;
  --brand-ink: #FFFFFF;
  --brand-soft: rgba(15, 143, 124, .10);
  --input: #F6FAFB;
  --chip: rgba(9, 60, 70, .05);
  --edge-a: rgba(15, 143, 124, .40);
  --edge-b: rgba(220, 232, 234, .95);
  --shadow: 0 1px 2px rgba(16, 40, 46, .05), 0 12px 30px rgba(16, 40, 46, .07);
  --blue: var(--brand);
  --blue-soft: var(--brand-soft);
  --yellow: var(--brand);
  --green: var(--brand-soft);
  --green-ink: var(--brand);
  --header: rgba(242, 247, 248, .88);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #071A20;
  --ink: #E8F3F2;
  --strong: #FFFFFF;
  --muted: #8FA8AE;
  --line: #173B46;
  --card: #0E2A33;
  --brand: #2DE3C1;
  --brand-ink: #04211E;
  --brand-soft: rgba(45, 227, 193, .13);
  --input: #0A2029;
  --chip: rgba(255, 255, 255, .045);
  --edge-a: rgba(45, 227, 193, .30);
  --edge-b: rgba(23, 59, 70, .85);
  --shadow: 0 12px 30px rgba(0, 0, 0, .28);
  --blue: var(--brand);
  --blue-soft: var(--brand-soft);
  --yellow: var(--brand);
  --green: var(--brand-soft);
  --green-ink: var(--brand);
  --header: rgba(7, 26, 32, .88);
  color-scheme: dark;
}

body {
  background: radial-gradient(1100px 480px at 50% -180px, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%), var(--bg);
  color: var(--ink);
}
h1, h2, h3, .brand { color: var(--strong); }
.top { border-bottom: 1px solid var(--line); background: var(--header); }
.mark { background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 62%, #000)); color: var(--brand-ink); font-weight: 800; }
.nav a:hover { background: var(--chip); color: var(--strong); }
.icon-btn, .menu-btn { background: var(--card); border-color: var(--line); color: var(--ink); }
.eyebrow { background: var(--card); border-color: var(--line); color: var(--muted); }

/* 버튼 */
.btn.blue, .btn.solid { background: var(--brand); color: var(--brand-ink); }
.btn.blue:hover, .btn.solid:hover { background: color-mix(in srgb, var(--brand) 84%, #FFF); }
.btn.yellow { background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent); }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.pill { background: var(--brand-soft); color: var(--brand); }

/* 카드 — 프로그램의 LineCardTight 와 같은 그라데이션 테두리 */
.panel, .feature, .faq, .studio, .sheet, .screen, .phone, table {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(160deg, var(--edge-a), var(--edge-b) 45%, var(--edge-b)) border-box;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.panel, .feature, .faq, .studio, .sheet { border-radius: 18px; }
.sheet { padding: 24px; }
h2 { letter-spacing: -.04em; }
.num, .kicker { color: var(--brand); }
.badge { background: var(--brand-soft); color: var(--brand); }
.account { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent); }

/* 폼 */
.panel input, .panel select, .panel textarea,
.sheet input, .sheet textarea, .sheet select,
#voice-feel, .studio textarea {
  background: var(--input); border-color: var(--line); color: var(--ink); border-radius: 11px;
}
.panel input:focus, .sheet input:focus, .sheet textarea:focus,
.studio textarea:focus, #voice-feel:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.picks button { background: var(--input); border-color: var(--line); color: var(--ink); }
.picks button.on, .tabs button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.error { color: #C0392B; }
html[data-theme="dark"] .error { color: #FF8B7E; }
.ok { color: var(--brand); }

.cta {
  background: linear-gradient(160deg, var(--card), color-mix(in srgb, var(--card) 88%, var(--bg)));
  border: 1px solid var(--line); color: var(--ink);
}
.cta p { color: var(--muted); }
.float .a { background: var(--brand); color: var(--brand-ink); }
.float .b { background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent); }
th { color: var(--muted); }
td, th { border-bottom: 1px solid var(--line); }
.side { background: color-mix(in srgb, var(--card) 70%, #000); }
.side span.on { background: var(--brand-soft); color: var(--brand); }
img[data-panel] { background: var(--card); border-color: var(--line); }
footer.foot { background: var(--card); }

/* 로그인 카드 머리: 프로그램의 아이콘 타일 + 두 줄 제목 */
.sheettop { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sheettop .tile {
  width: 40px; height: 40px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
}
.sheettop .tile svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.sheettop h2 { margin: 2px 0 0; font-size: 26px; }
.sheettop .kicker { margin: 0; }
.sheet .hint { margin: 6px 0 4px; font-size: 13.5px; line-height: 1.6; }
.sheet form { margin-top: 6px; }

/* 로그인은 폼이 짧으니 카드를 좁게 둔다 */
.sheet.narrow { width: min(440px, calc(100% - 40px)); margin: 64px auto 90px; padding: 26px; }
.sheet.narrow .btn.solid { margin-top: 20px; min-height: 48px; }

/* ── 회원가입 ─────────────────────────────── */
.signup-done {
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
    border-radius: 14px; padding: 16px 18px; margin: 14px 0 18px;
}
.signup-done b { display: block; font-size: 15px; color: var(--strong); margin-bottom: 6px; }
.signup-done p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.signup-done p.hint { color: var(--muted); font-size: 12.5px; margin-bottom: 0; }
.sheet .hint a, .signup-done a { color: var(--brand); font-weight: 700; }

@media (max-width: 900px) {
    .nav-cta.btn.ghost { display: inline-flex; }
}
