/* ===== 효월재 — Design tokens ===== */
:root {
  --bg-0: #07071a;
  --bg-1: #0f0f2e;
  --bg-2: #171744;
  --ink: #f6f3ff;
  --ink-2: #c9c4e6;
  --ink-3: #8f8ab3;
  --gold: #ffd166;
  --gold-2: #ffb703;
  --violet: #8b7bff;
  --violet-2: #6a5cff;
  --pink: #ff7eb6;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 520px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 50% -10%, #2a2770 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
}
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px 60px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }

/* ===== Header ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 6px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.35), 0 8px 24px rgba(0,0,0,.4); }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; letter-spacing: 0.08em; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 26px 0 10px; }
.hero .logo-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto 18px; }
.hero .logo-wrap::before {
  content: ""; position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.45), rgba(139, 123, 255, 0) 65%);
  filter: blur(6px); animation: breathe 5s ease-in-out infinite;
}
.hero .logo-wrap img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.14em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(28px, 8.2vw, 42px); font-weight: 900; word-break: keep-all; }
.hero h1 .grad {
  background: linear-gradient(95deg, #fff 0%, var(--gold) 45%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 14px; font-size: 16px; color: var(--ink-2); font-weight: 500; }
.hero .lead b { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 6px; }
.stat { padding: 14px 8px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 900; color: var(--gold); }
.stat span { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* ===== Features ===== */
.features { display: grid; gap: 10px; margin: 22px 0 8px; }
.feature { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); }
.feature .ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(139,123,255,.35), rgba(255,126,182,.25)); }
.feature b { display: block; font-size: 15px; }
.feature span { font-size: 13px; color: var(--ink-3); }

/* ===== Form card ===== */
.card {
  margin-top: 26px; padding: 22px 18px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h2 { font-size: 22px; font-weight: 900; }
.card-head .step { font-size: 12px; color: var(--ink-3); font-weight: 700; }

.field { margin-bottom: 16px; }
.label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.label .req { color: var(--pink); font-size: 12px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 15px 16px; font-size: 16px; font-weight: 600;
  background: rgba(7, 7, 26, 0.55); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); font-weight: 500; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.18); background: rgba(7, 7, 26, 0.75); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,126,182,.18); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select-wrap { position: relative; }
.select-wrap::after { content: "▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; font-size: 16px; }
input[type="date"].input { min-height: 54px; }
input[type="date"].input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); cursor: pointer; }

/* segmented */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: var(--radius-sm); background: rgba(7, 7, 26, 0.55); border: 1.5px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: grid; place-items: center; min-height: 46px; border-radius: 10px; font-size: 15px; font-weight: 800; color: var(--ink-2);
  cursor: pointer; transition: all .15s; user-select: none;
}
.seg input:checked + label { background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff; box-shadow: 0 6px 18px rgba(106, 92, 255, 0.45); }
.seg.gold input:checked + label { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1540; box-shadow: 0 6px 18px rgba(255, 209, 102, 0.35); }

/* toggle row */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: var(--radius-sm); background: rgba(7, 7, 26, 0.55); border: 1.5px solid var(--line); }
.toggle-row .t { font-size: 15px; font-weight: 800; }
.toggle-row .s { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.switch { position: relative; width: 52px; height: 30px; flex: 0 0 52px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .knob { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); transition: .2s; cursor: pointer; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .knob { background: var(--gold); }
.switch input:checked + .knob::after { transform: translateX(22px); background: #1b1540; }
.collapse { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .25s ease, opacity .2s ease, margin .2s; margin-top: 0; }
.collapse.open { max-height: 120px; opacity: 1; margin-top: 10px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* agree */
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 16px; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: 0 0 20px; }

/* CTA */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 60px; padding: 0 20px; border: 0; border-radius: 18px; cursor: pointer;
  font: inherit; font-size: 18px; font-weight: 900; letter-spacing: -0.01em; color: #1b1540;
  background: linear-gradient(135deg, var(--gold) 0%, #ffe08a 50%, var(--gold-2) 100%);
  box-shadow: 0 14px 34px rgba(255, 183, 3, 0.35), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:active { transform: translateY(2px) scale(.99); box-shadow: 0 6px 18px rgba(255,183,3,.3); }
.btn:disabled { filter: grayscale(.4) brightness(.8); cursor: wait; }
.btn.ghost { background: var(--glass-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn .spin { width: 18px; height: 18px; border: 3px solid rgba(27,21,64,.25); border-top-color: #1b1540; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.safe { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 12px; }

/* sticky CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7,7,26,0) 0%, rgba(7,7,26,.9) 40%);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { max-width: var(--max); margin: 0 auto; min-height: 56px; font-size: 17px; }

/* reviews */
.reviews { margin-top: 26px; }
.reviews h3 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.review { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); margin-bottom: 10px; }
.review .who { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.review .who b { color: var(--gold); letter-spacing: .05em; }
.review p { font-size: 14px; color: var(--ink-2); }

/* FAQ */
.faq { margin-top: 26px; }
.faq h3 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
details { border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); margin-bottom: 8px; }
summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 20px; font-weight: 900; }
details[open] summary::after { content: "−"; }
details p { padding: 0 16px 14px; font-size: 14px; color: var(--ink-2); }

footer { margin-top: 36px; text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
footer a { color: var(--ink-3); }

/* success */
.success { text-align: center; padding: 30px 10px 10px; display: none; }
.success.show { display: block; animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success .check { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 44px;
  background: radial-gradient(circle at 30% 30%, #ffe9a8, var(--gold-2)); color: #1b1540; box-shadow: 0 16px 40px rgba(255,183,3,.4); }
.success h2 { font-size: 26px; font-weight: 900; }
.success p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.success .sum { margin: 18px 0; text-align: left; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(7,7,26,.5); border: 1px solid var(--line); font-size: 14px; }
.success .sum div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.success .sum div:last-child { border-bottom: 0; }
.success .sum span { color: var(--ink-3); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); z-index: 20; padding: 12px 18px; border-radius: 999px;
  background: #1b1540; color: #fff; font-weight: 700; font-size: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transition: .25s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.mode-badge { position: fixed; top: 10px; right: 10px; z-index: 30; font-size: 11px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: rgba(255,126,182,.18); border: 1px solid rgba(255,126,182,.5); color: #ffb3d4; display: none; }
.mode-badge.show { display: block; }

@media (min-width: 720px) {
  .page { padding-top: 10px; }
  .hero h1 { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
