@font-face { font-family: "ChubbyEdu Sans"; src: url("/pretendard-ko.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --page: #f8f7fb; --ink: #211b2f; --muted: #625b6f; --line: #e8e4ee; --violet: #5f46bf; --violet-dark: #49328f; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; background: var(--page); color: var(--ink);
  font: 16px/1.55 "ChubbyEdu Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--violet); }
:focus-visible { outline: 3px solid #674cd1; outline-offset: 3px; }
.top { width: 100%; padding: 22px clamp(20px, 4vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; color: var(--violet); }
.brand b { color: var(--violet); }
.card { width: min(100% - 32px, 440px); margin: 4vh 0 32px; padding: clamp(24px, 5vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 50px rgba(33, 27, 47, .06); }
.card.wide { width: min(100% - 32px, 760px); }
h1 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 28px); letter-spacing: -.03em; line-height: 1.25; }
h2 { margin: 0 0 12px; font-size: 18px; }
section { margin-top: 32px; }
.lead { margin: 0 0 24px; color: var(--muted); }
.note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.back { margin: 24px 0 0; font-size: 14px; }
.back a { color: var(--muted); }
.stack { display: grid; gap: 10px; }
label { font-weight: 600; font-size: 14px; }
input:not([type=checkbox]), textarea { width: 100%; padding: 13px 14px; border: 1px solid #d8d2e2; border-radius: 12px; font: inherit; background: #fff; }
input:focus, textarea:focus { border-color: var(--violet); outline: 3px solid #ded4fb; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid label, .stack > label:has(input) { display: grid; gap: 6px; }
.button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button svg { width: 20px; height: 20px; }
.button.primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.button.primary:hover { background: var(--violet-dark); }
.button.ghost { width: auto; }
.button.google { margin-bottom: 4px; }
.button.return { margin: 0 0 8px; }
.history b { color: var(--ink); }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #fdecee; color: #8a1c2b; font-size: 14px; }
.alert.ok { background: #e3f6ee; color: #0e6b47; }
.alert.dev { background: #fff4d6; color: #7a5300; }
.consent { display: grid; gap: 10px; margin: 8px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.consent legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--violet); flex: none; }
.consent label:has([data-all]) { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.account-head .lead { margin-bottom: 8px; }
.inline { display: flex; gap: 10px; }
.inline input { letter-spacing: .06em; text-transform: uppercase; }
.inline .button { width: auto; flex: none; }
.products, .history { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; }
.products li, .history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.products li:first-child, .history li:first-child { border-top: 0; }
.products a { color: var(--ink); font-weight: 700; text-decoration: none; }
.history li { font-size: 14px; color: var(--muted); }
.status { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.pill { padding: 3px 10px; border-radius: 999px; background: #fff4d6; color: #7a5300; font-weight: 700; font-size: 12px; }
.pill.on { background: #e3f6ee; color: #0e6b47; }
.danger .button { color: #8a1c2b; }
.codes { font: 15px/1.6 ui-monospace, monospace; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.foot { display: flex; gap: 18px; padding: 8px 0 32px; font-size: 13px; }
.foot a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) { .inline { flex-direction: column; } .inline .button { width: 100%; } .account-head { flex-direction: column; } }

/* 이용권 구매 */
.button.small { width: auto; display: inline-flex; padding: 7px 16px; font-size: 14px; margin: 0; }
#buy .products li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
