:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --text: #121826;
  --muted: #5b6475;
  --line: #e2e6ee;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --good: #1a7f4b;
  --good-soft: #e6f4ec;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --bad: #c62828;
  --bad-soft: #fdecec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1c222b;
    --text: #e8ecf2;
    --muted: #9aa4b2;
    --line: #2a313c;
    --accent: #4c8dff;
    --accent-soft: #15233d;
    --good: #4cc38a;
    --good-soft: #10291d;
    --warn: #e3b341;
    --warn-soft: #2d2410;
    --bad: #ff6b6b;
    --bad-soft: #301417;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 20px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 800;
}
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 17px; margin: 28px 0 12px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.stack > * + * { margin-top: 12px; }
.plans { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; cursor: pointer; display: block; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .card { height: 100%; transition: border-color .15s, box-shadow .15s; }
.plan:hover input:not(:checked) + .card { border-color: var(--muted); }
.plan input:checked + .card { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-title { display: flex; align-items: center; gap: 10px; }
.radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none;
  transition: border-color .15s, background-color .15s;
}
.plan input:checked + .card .radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.plan input:focus-visible + .card { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-name { font-weight: 800; font-size: 18px; }
.price { font-weight: 800; font-size: 20px; white-space: nowrap; }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.tagline { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.plan .badge { margin-bottom: 8px; }
.features { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.features li { padding-left: 22px; position: relative; margin: 4px 0; }
.features li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px;
  background: var(--accent-soft); color: var(--accent);
}
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.muted { background: var(--surface-2); color: var(--muted); }
label.field { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=email], input[type=text] {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input[type=email]:focus, input[type=text]:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.btn {
  appearance: none; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer;
  padding: 13px 18px; background: var(--accent); color: var(--accent-ink); width: 100%; font-size: 16px;
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.inline { width: auto; padding: 9px 14px; font-size: 14px; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.notice.info { background: var(--accent-soft); }
.notice.warn { background: var(--warn-soft); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.good { background: var(--good-soft); }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 10px 0 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
table.list th { color: var(--muted); font-weight: 600; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer { color: var(--muted); font-size: 12.5px; margin-top: 32px; line-height: 1.7; }
.footer a { color: var(--muted); text-decoration: underline; }
.footer .business { margin-top: 6px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  display: inline-block; vertical-align: -3px; margin-right: 8px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.code-input { font-size: 22px !important; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.mb { margin-bottom: 12px; }
.mt { margin-top: 12px; }
.m0 { margin: 0; }
.block { display: block; text-align: center; }
.table-card { padding: 6px 12px; }
.current { display: flex; gap: 12px; align-items: flex-start; }
.plan .mode { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.plan input:checked + .card .mode { color: var(--accent); font-weight: 600; }
.summary { font-size: 14px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.notice.pending { background: var(--accent-soft); }
