@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e5e8ee;
  --subtle: #f1f4f9;
  --text: #111827;
  --muted: #6b7280;
  --ok: #047857;
  --warn: #b45309;
  --err: #b91c1c;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --bg: #111317;
    --card: #1c2026;
    --border: #2a2f37;
    --subtle: #232830;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --ok: #34d399;
    --warn: #fbbf24;
    --err: #f87171;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "맑은 고딕", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.6;
  word-break: keep-all;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top { border-bottom: 1px solid var(--border); background: var(--card); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-weight: 800; font-size: 19px; color: var(--accent); text-decoration: none; white-space: nowrap; }
nav.links { display: flex; gap: 18px; font-size: 14px; }
nav.links a { color: var(--text); text-decoration: none; }
nav.links a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 22px; border-radius: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--subtle); color: var(--text); }
.btn.ghost:hover { background: var(--border); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.soon, .btn.soon:hover { background: var(--subtle); color: var(--muted); cursor: default; }

.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .note { font-size: 13px; color: var(--muted); margin-top: 14px; }

section { padding: 48px 0; }
section h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
section p.sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.main { border: 2px solid var(--accent); }
.plan .price { font-size: 34px; font-weight: 800; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; }
.plan ul li { margin: 4px 0; }
.plan .btn { margin-top: auto; }

.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { list-style: none; counter-increment: s; position: relative; padding-left: 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px;
}
.steps { padding: 0; margin: 0; }

details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer .links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
footer .links a { color: var(--muted); }

.panel { max-width: 560px; margin: 40px auto; }
.panel h1 { font-size: 26px; margin: 0 0 6px; }
.panel p.sub { color: var(--muted); margin: 0 0 22px; }
label.field { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
input[type=email], input[type=text] {
  width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); font: inherit; padding: 0 14px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; }
.check input { margin-top: 4px; width: 17px; height: 17px; flex: none; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.msg { margin-top: 14px; font-size: 14px; min-height: 1.6em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.key {
  font-family: Consolas, "D2Coding", monospace; font-size: clamp(15px, 3.6vw, 20px); font-weight: 700; letter-spacing: .03em;
  background: var(--subtle); border: 1px dashed var(--accent); border-radius: 10px; padding: 16px; text-align: center;
  word-break: break-all; margin: 10px 0;
}
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--subtle); }
.badge.active { color: var(--ok); }
.badge.past_due { color: var(--warn); }
.badge.canceled { color: var(--err); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
table.list th { color: var(--muted); font-weight: 600; }
.doc { max-width: 760px; margin: 32px auto 60px; }
.doc h1 { font-size: 26px; }
.doc h2 { font-size: 18px; margin-top: 28px; }
.doc p, .doc li { font-size: 15px; }
.doc .draft { background: var(--subtle); border-left: 4px solid var(--warn); padding: 10px 14px; border-radius: 6px; font-size: 14px; }

@media (max-width: 640px) {
  nav.links { gap: 12px; font-size: 13px; }
  nav.links a.hide-sm { display: none; }
  .hero { padding-top: 48px; padding-bottom: 36px; }
  section { padding: 36px 0; }
}
