:root {
  --navy: #114572;
  --navy-dark: #0b2e4d;
  --navy-soft: #e8f0f8;
  --green: #1f9f26;
  --green-soft: #e7f6e8;
  --orange: #f28a00;
  --red: #d64545;
  --red-soft: #fdeeee;
  --text: #1c2430;
  --muted: #5d6b7c;
  --line: #dfe5ec;
  --bg: #f3f6fa;
  --card: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); }
button { font-family: inherit; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 17px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.link-btn { background: none; border: 1px solid var(--line); color: var(--navy); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; }
.link-btn:hover { background: var(--navy-soft); }

/* hero */
.hero { max-width: 1040px; margin: 0 auto; padding: 36px 20px 8px; text-align: center; }
.hero h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.35; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero p { margin: 0 auto; max-width: 620px; color: var(--muted); }
.points { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }

/* wizard card */
.wrap { max-width: 760px; margin: 24px auto 60px; padding: 0 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(17, 69, 114, .08); border: 1px solid var(--line); overflow: hidden; }
.steps { display: flex; margin: 0; padding: 18px 20px 0; list-style: none; gap: 4px; }
.steps li { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 34px; }
.steps li::before { content: attr(data-no); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #edf1f5; color: var(--muted); font-weight: 700; line-height: 26px; font-size: 13px; }
.steps li.on { color: var(--navy); font-weight: 700; }
.steps li.on::before { background: var(--navy); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--green); color: #fff; }
.panel { display: none; padding: 26px 30px 30px; }
.panel.on { display: block; }
.panel h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -0.3px; }
.panel .desc { margin: 0 0 20px; color: var(--muted); }

/* form */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
.field input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; font-family: inherit; background: #fff; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17, 69, 114, .12); }
.agree { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.agree + .agree { margin-top: 8px; }
.agree label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.agree input { width: 17px; height: 17px; accent-color: var(--navy); }
.agree details { margin-top: 6px; font-size: 13px; color: var(--muted); }
.agree summary { cursor: pointer; }
.agree table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.agree th, .agree td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.agree th { background: #f7f9fb; width: 120px; font-weight: 600; }

.captcha { margin-top: 16px; }
.captcha label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.captcha label .req { color: var(--red); margin-left: 2px; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.captcha-row img { border: 1px solid var(--line); border-radius: 8px; display: block; }
.captcha-row .btn { padding: 10px 14px; font-size: 14px; }
.captcha-row input { width: 140px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 17px; letter-spacing: 4px; font-family: inherit; }
.captcha-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17, 69, 114, .12); }

/* buttons */
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 10px; }
.btn { border: none; border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #17821d; }
.btn-ghost { background: #edf1f5; color: var(--text); }
.btn-ghost:hover { background: #e1e7ee; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* status box */
.status { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--navy-soft); }
.status.ok { background: var(--green-soft); }
.status.warn { background: #fff5e6; }
.status.err { background: var(--red-soft); }
.status .ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 700; color: #fff; background: var(--navy); }
.status.ok .ico { background: var(--green); }
.status.warn .ico { background: var(--orange); }
.status.err .ico { background: var(--red); }
.status b { display: block; margin-bottom: 2px; }
.status p { margin: 0; color: var(--muted); font-size: 14px; }
.spin { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.install-steps { margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.install-steps li { margin: 3px 0; }

/* choice cards */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s; background: #fff; }
.choice:hover { border-color: #b7c7d8; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17, 69, 114, .12); }
.choice.on::after { content: "✓"; position: absolute; top: 12px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.choice .name { font-weight: 700; font-size: 17px; }
.choice .url { color: var(--navy); font-size: 13px; font-family: Consolas, monospace; }
.choice .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.cert { display: flex; gap: 14px; align-items: center; }
.cert .badge { flex: none; width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, #ffb030, #f28a00); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.cert dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; font-size: 13px; color: var(--muted); }
.cert dt { font-weight: 600; }
.cert dd { margin: 0; }

/* password rules */
.rules { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.rules li::before { content: "○"; margin-right: 5px; }
.rules li.ok { color: var(--green); }
.rules li.ok::before { content: "●"; }
.callout { background: var(--navy-soft); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--navy-dark); margin-bottom: 18px; }
.callout b { color: var(--navy); }

/* done */
.done-head { text-align: center; padding: 6px 0 4px; }
.done-head .big { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--green); color: #fff; font-size: 32px; display: grid; place-items: center; }
.timer { text-align: center; margin: 14px 0 20px; }
.timer .remain { font-size: 30px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.timer .until { color: var(--muted); font-size: 13px; }
.how { counter-reset: how; list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.how li { counter-increment: how; padding: 12px 16px 12px 52px; position: relative; border-top: 1px solid var(--line); }
.how li:first-child { border-top: none; }
.how li::before { content: counter(how); position: absolute; left: 16px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.how b { color: var(--navy); }
.center { text-align: center; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* message */
.msg { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 9px; font-size: 14px; background: var(--red-soft); color: #9b2c2c; white-space: pre-line; }
.msg.show { display: block; }
.msg.ok { background: var(--green-soft); color: #17621b; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 30, 50, .45); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 420px; padding: 26px; }
.modal h3 { margin: 0 0 6px; }
.modal .field + .field { margin-top: 12px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 30px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 23px; }
  .grid, .choices { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px 24px; }
  .steps li { font-size: 0; }
  .steps li.on { font-size: 11px; }
}
