:root {
  --brand: #2f6fed;
  --brand-dark: #1e4fb8;
  --ink: #101828;
  --ink-soft: #475467;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── header ── */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo b { color: var(--brand); }
nav.top a {
  margin-left: 20px; text-decoration: none; color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
}
nav.top a:hover { color: var(--brand); }

/* ── hero ── */
.hero { padding: 72px 0 56px; text-align: center; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero h1 { font-size: 40px; line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 16px; }
.hero h1 b { color: var(--brand); }
.hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 28px; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 10px;
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); margin-left: 10px; }
.hero .note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ── sections ── */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg-soft); }
h2.sec { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; text-align: center; }
p.sec-sub { text-align: center; color: var(--ink-soft); margin: 0 0 36px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } .hero h1 { font-size: 30px; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.card .emoji { font-size: 26px; margin-bottom: 10px; }

/* ── pricing ── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.plan.pro { border: 2px solid var(--brand); position: relative; }
.plan .tag {
  position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.plan .per { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14.5px; }
.plan ul li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); border-top: 1px solid var(--bg-soft); }
.plan ul li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }
.plan ul li.no { color: #98a2b3; }
.plan ul li.no::before { content: "—"; color: #d0d5dd; }
.plan .btn { margin-top: auto; text-align: center; }

/* ── faq / info ── */
details.faq { border-bottom: 1px solid var(--line); padding: 14px 4px; }
details.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
details.faq p { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 4px; }

/* ── legal pages ── */
main.legal { padding: 48px 0 72px; }
main.legal h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
main.legal p.updated { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 32px; }
main.legal h2 { font-size: 19px; margin: 36px 0 10px; }
main.legal h3 { font-size: 16px; margin: 24px 0 8px; }
main.legal p, main.legal li { font-size: 14.8px; color: #344054; }
main.legal table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; }
main.legal th, main.legal td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
main.legal th { background: var(--bg-soft); font-weight: 600; }

/* ── placeholder highlight: 배포 전 실제 값으로 교체 ── */
.fill { background: #fff3c4; border-bottom: 2px dashed #eab308; padding: 0 3px; font-weight: 600; }

/* ── footer ── */
footer.site { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 36px 0 44px; margin-top: 0; }
footer.site .biz { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
footer.site .biz b { color: var(--ink); }
footer.site nav { margin-bottom: 14px; font-size: 13.5px; }
footer.site nav a { color: var(--ink); text-decoration: none; font-weight: 600; margin-right: 18px; }
footer.site nav a:hover { color: var(--brand); }
footer.site .copy { font-size: 12.5px; color: #98a2b3; margin-top: 14px; }

/* ── payment (pay/success/fail) ── */
main.pay { padding: 40px 0 64px; background: var(--bg-soft); }
main.pay h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
main.pay p.sub { color: var(--ink-soft); margin: 0 0 24px; font-size: 14.5px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-col { display: flex; flex-direction: column; gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h2 { font-size: 16px; margin: 0 0 14px; }
.plan-opt { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.plan-opt.on { border-color: var(--brand); background: #f3f7ff; }
.plan-opt input { grid-row: 1 / span 2; accent-color: var(--brand); }
.plan-opt .plan-name { font-weight: 700; font-size: 15px; }
.plan-opt .plan-desc { grid-column: 2; font-size: 12.5px; color: var(--ink-soft); }
.plan-opt .plan-price { grid-column: 3; grid-row: 1 / span 2; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
ul.incl { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
ul.incl li { padding: 3px 0 3px 20px; position: relative; }
ul.incl li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field em { font-style: normal; font-size: 11.5px; color: #d92d20; margin-left: 4px; }
.field em.opt { color: #98a2b3; }
.field input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; }
.field input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.field small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 5px; }
.box.notice ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: #344054; }
.box.notice li { margin: 4px 0; }
.summary { background: #fff; border: 2px solid var(--brand); border-radius: var(--radius); padding: 22px; }
.summary .row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--bg-soft); }
.summary .row.total { border: 0; font-size: 18px; padding-top: 12px; }
.summary .row.total b { color: var(--brand); font-size: 22px; }
.summary .btn { display: block; width: 100%; margin-top: 14px; text-align: center; font-size: 17px; border: 0; }
.summary .err { color: #d92d20; font-size: 13px; margin: 10px 0 0; }
p.fine { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; }
main.pay.result .box.center { text-align: center; max-width: 560px; margin: 24px auto; padding: 36px 28px; }
.mark { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #fff; }
.mark.ok { background: #12b76a; } .mark.bad { background: #f04438; }
table.receipt { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; text-align: left; }
table.receipt th { color: var(--ink-soft); font-weight: 500; padding: 8px 0; width: 32%; border-bottom: 1px solid var(--bg-soft); }
table.receipt td { padding: 8px 0; border-bottom: 1px solid var(--bg-soft); word-break: break-all; }
main.pay.result .btn { margin-top: 16px; }
