@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #171719;
  --panel: #242426;
  --raised: #1b1b1e;
  --line: #45454b;
  --ink: #f7f9fa;
  --muted: #aaa9b0;
  --accent: #d59b9a;
  --accent-strong: #edb8b5;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 18% 0%, rgba(213,155,154,.1), transparent 34%), var(--page); color: var(--ink); font: 16px/1.55 var(--font); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 10; padding: 10px 14px; background: var(--ink); color: var(--page); }
.skip-link:focus { top: 12px; }
.header-inner, main, .footer-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid rgba(42,38,33,.1); background: #f7f4ee; color: #1d1d1b; }
.header-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 26px; font-weight: 850; letter-spacing: -.075em; text-decoration: none; }
.header-inner nav { display: flex; flex-wrap: wrap; gap: 24px; color: #4f4942; font-size: 14px; }
.header-inner nav a { text-decoration: none; }
.header-inner nav a:hover { text-decoration: underline; }
.billing-result-banner { margin: 24px 0 0; padding: 15px 18px; border: 1px solid #825d62; border-left: 4px solid var(--accent); border-radius: 8px; background: #282124; font-weight: 650; }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 760; letter-spacing: .05em; }
.intro { padding: 58px 0 32px; }
.intro h1 { max-width: 850px; margin: 0; font-size: clamp(38px, 4.3vw, 56px); font-weight: 740; line-height: 1.15; letter-spacing: -.055em; word-break: keep-all; }
.intro > p:last-child { max-width: 700px; margin: 12px 0 0; color: #d0d0d6; font-size: 16px; line-height: 1.7; word-break: keep-all; }
.workflow-return { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 30px; padding: 17px 20px; border: 1px solid #75595b; border-left: 4px solid var(--accent); border-radius: 12px; background: var(--panel); }
.workflow-return h2 { margin: 2px 0 0; font-size: 19px; letter-spacing: -.04em; }
.workflow-return div > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.workflow-return button { min-height: 42px; flex: none; padding: 8px 15px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #20191b; font-weight: 760; }
.workflow-return button:hover { background: var(--accent-strong); }
.account-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; padding: 13px 20px; border: 1px solid #75595b; border-left: 4px solid var(--accent); border-radius: 12px; background: var(--panel); }
.summary-main { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.account-summary h2 { margin: 0; font-size: 19px; letter-spacing: -.04em; }
.account-summary p { margin: 0; }
#account-usage, .account-actions p { color: var(--muted); font-size: 13px; }
.account-actions { text-align: right; }
.account-actions button, .retry { min-height: 34px; margin-top: 4px; padding: 5px 12px; border: 1px solid #75595b; border-radius: 7px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; }
.pricing { padding-bottom: 65px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.cycle-switch { display: flex; flex: none; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.cycle-switch button { min-width: 93px; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.cycle-switch button[aria-pressed="true"] { background: var(--accent); color: #20191b; font-weight: 760; }
.cycle-switch small { font-size: 11px; }
.catalog-status { min-height: 22px; margin: 8px 0; color: var(--muted); font-size: 13px; }
.catalog-status:empty { min-height: 0; margin: 0; }
.retry { margin: 8px 0; }
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 43px; }
.plan-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 24px 17px 18px; border: 1px solid transparent; border-radius: 18px; background: var(--panel); }
.plan-card[data-tier="free"][data-current="true"] { border-color: var(--accent); }
.plan-card[data-tier="pro"] { border-color: #aa777a; box-shadow: 0 0 0 1px rgba(213,155,154,.12); }
.plan-card-head { display: flex; min-height: 36px; align-items: start; justify-content: space-between; gap: 5px; }
.plan-card h3 { margin: 0; font-size: 23px; font-weight: 740; letter-spacing: -.045em; }
.plan-current, .plan-future .plan-card-head span { align-self: start; padding: 3px 6px; border: 1px solid #7d6063; border-radius: 4px; color: var(--accent); font-size: 10px; font-weight: 700; white-space: nowrap; }
.plan-discount { align-self: start; padding: 4px 6px; border-radius: 5px; background: var(--accent-strong); color: #271a1d; font-size: 11px; font-weight: 850; white-space: nowrap; }
.plan-discount:empty { display: none; }
.popular { position: absolute; bottom: calc(100% + 7px); left: 50%; display: flex; min-height: 32px; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid var(--accent); border-radius: 999px; background: #4b3137; color: #ffe5e3; font-size: 13px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); }
.popular svg { width: 18px; height: 18px; fill: #f4c879; }
.plan-regular { min-height: 19px; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.plan-regular:not(:empty) { text-decoration: line-through; }
.plan-price { min-height: 48px; margin: 3px 0 0; font-size: 31px; font-weight: 780; letter-spacing: -.05em; white-space: nowrap; }
.plan-price small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.plan-description { min-height: 36px; margin: 5px 0 11px; color: var(--muted); font-size: 12px; line-height: 1.45; word-break: keep-all; }
.plan-select { width: 100%; min-height: 46px; margin-top: 4px; padding: 8px; border: 1px solid #70696f; border-radius: 7px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 720; }
.plan-select:not(:disabled):hover { border-color: var(--accent); color: var(--accent-strong); }
.plan-card[data-tier="starter"] .plan-select, .plan-card[data-tier="pro"] .plan-select, .plan-card[data-tier="premium"] .plan-select { border-color: var(--accent); background: var(--accent); color: #20191b; }
.plan-card[data-tier="starter"] .plan-select:hover, .plan-card[data-tier="pro"] .plan-select:hover, .plan-card[data-tier="premium"] .plan-select:hover { background: var(--accent-strong); color: #20191b; }
.plan-select:disabled { opacity: .58; }
.features { display: grid; grid-template-rows: repeat(9, 47px); align-content: start; gap: 2px; flex: 1; margin: 14px 0 0; padding: 9px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); list-style: none; }
.features li { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 5px; padding: 5px; border-radius: 8px; color: #dddce0; font-size: 12px; line-height: 1.35; word-break: keep-all; }
.features li:first-child { background: #151518; color: var(--ink); font-weight: 750; }
.features li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.features li.limited { background: #1b1b1e; color: #929098; }
.features li.limited::before { color: #929098; }
.features li.unavailable { background: #171719; color: #77757d; }
.features li.unavailable::before { content: "–"; color: #77757d; }
.plan-future { opacity: .7; }
dialog { width: min(850px, calc(100% - 32px)); max-height: min(900px, calc(100dvh - 32px)); margin: auto; padding: 0; border: 1px solid #76585a; border-radius: 16px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 100px #0009; }
dialog::backdrop { background: rgba(5,5,8,.78); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 27px 34px 18px; }
.dialog-heading h2 { margin: 3px 0 0; font-size: 30px; line-height: 1.2; letter-spacing: -.045em; }
.dialog-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.dialog-close { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border: 1px solid #635c64; border-radius: 50%; background: transparent; color: var(--ink); font-size: 23px; line-height: 1; }
.dialog-tabs { display: flex; gap: 4px; padding: 0 34px; border-bottom: 1px solid var(--line); }
.dialog-tabs button { padding: 10px 13px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 680; }
.dialog-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--ink); }
.dialog-scroll { max-height: calc(100dvh - 335px); overflow: auto; padding: 0 34px; }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.feature-col { width: 25%; }
.current-col { width: 32%; }
.target-col { width: 43%; }
.comparison-table th, .comparison-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; word-break: keep-all; }
.comparison-table thead th { background: var(--raised); font-size: 15px; font-weight: 760; }
.comparison-table thead th:last-child { border-left: 1px solid #75595b; background: #302729; }
.comparison-table tbody th { color: #d1d1d7; font-size: 13px; font-weight: 680; }
.comparison-table tbody td { color: var(--muted); font-size: 14px; }
.comparison-table [data-after] { border-left: 1px solid #75595b; background: #292729; color: var(--ink); }
.comparison-table [data-after].is-changed { background: #372b2d; }
.comparison-table [data-after].is-reduced { background: #302528; }
.comparison-table [data-after] strong { font-weight: 520; }
.comparison-table [data-after].is-changed strong { color: var(--accent-strong); font-weight: 760; }
.comparison-table [data-after].is-reduced strong { color: #f0b4b3; font-weight: 760; }
.comparison-table tr.is-limited [data-current] { color: #929098; }
.comparison-table tr.is-unavailable [data-current], .comparison-table tr.is-target-unavailable [data-after] { color: #77757d; }
.change-mark { display: none; width: 18px; height: 18px; margin-right: 6px; place-items: center; border-radius: 50%; background: #785257; color: white; font-size: 11px; font-weight: 800; vertical-align: middle; }
.is-changed .change-mark, .is-reduced .change-mark { display: inline-grid; }
.terms-grid { display: grid; gap: 18px; padding: 23px 0; }
.terms-grid h3 { margin: 0; font-size: 16px; }
.terms-grid p { margin: 5px 0 0; color: #c4c4cc; font-size: 13px; line-height: 1.65; word-break: keep-all; }
.policy-note { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.policy-note strong, .policy-note a { color: var(--ink); }
.policy-note a { white-space: nowrap; }
.promotion-entry { display: block; width: fit-content; max-width: 100%; margin: 22px auto 0; padding: 4px; border: 0; background: transparent; color: #a99a9d; font-size: 13px; text-decoration: underline; text-decoration-color: #8e7479; text-underline-offset: 4px; }
.promotion-entry:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
.promotion-panel { max-width: 620px; margin: -35px auto 65px; padding: 20px; border: 1px solid #45404a; border-radius: 12px; background: var(--raised); }
.promotion-panel h2 { margin: 0; font-size: 17px; }
.promotion-panel > p { color: var(--muted); font-size: 13px; }
.promotion-panel label { display: block; margin: 15px 0 6px; font-size: 13px; font-weight: 700; }
.promotion-input-row { display: flex; gap: 8px; }
.promotion-input-row input { flex: 1; min-width: 0; min-height: 43px; padding: 8px 11px; border: 1px solid #69636b; border-radius: 7px; background: var(--raised); color: var(--ink); }
.promotion-input-row button { padding: 8px 14px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #20191b; font-weight: 760; }
.promotion-input-row button:disabled, .promotion-input-row input:disabled { opacity: .5; }
#promotion-feedback { min-height: 20px; margin: 8px 0 0; color: var(--accent-strong); font-size: 13px; }
.promotion-login { margin: 8px 0 20px; color: var(--accent-strong); font-size: 13px; }
.selection-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr); gap: 18px 30px; align-items: end; padding: 20px 34px 24px; border-top: 1px solid var(--line); background: var(--raised); }
.selection-panel h3 { margin: 0; font-size: 18px; }
.selection-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.selection-panel .selection-price { color: var(--ink); font-size: 20px; font-weight: 760; }
.selection-panel .promotion-entry { grid-column: 1 / -1; margin-top: 0; }
.selection-actions { display: grid; gap: 10px; }
.billing-contact { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.billing-contact h4 { margin: 0 0 8px; font-size: 16px; }
.billing-contact p, .billing-contact label { color: var(--muted); font-size: 13px; line-height: 1.6; }
.billing-contact label { display: block; margin: 10px 0 5px; }
.billing-contact-input-row { display: flex; flex-wrap: wrap; gap: 8px; }
.billing-contact input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #69636b; border-radius: 7px; background: var(--panel); color: var(--ink); }
.billing-contact button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #20191b; font-weight: 700; }
.billing-contact button:disabled, .billing-contact input:disabled { opacity: .5; }
.recurring-consent { display: flex; align-items: start; gap: 9px; font-size: 13px; cursor: pointer; }
.recurring-consent input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.recurring-consent strong, .recurring-consent small { display: block; }
.recurring-consent small { color: var(--muted); font-size: 11px; }
.dialog-actions { display: flex; gap: 9px; }
.dialog-actions button { min-height: 46px; padding: 8px 13px; border-radius: 7px; font-weight: 760; }
#dialog-cancel { min-width: 85px; border: 1px solid #665f67; background: transparent; color: var(--ink); }
#selection-action { flex: 1; border: 1px solid var(--accent); background: var(--accent); color: #20191b; }
#selection-action:disabled { border-color: #5d555b; background: #303036; color: #aaaab3; }
.selection-status { grid-column: 1 / -1; min-height: 0; margin: 0 !important; color: var(--accent-strong) !important; }
.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer-inner { display: flex; justify-content: space-between; gap: 35px; padding: 48px 0 55px; color: var(--muted); font-size: 13px; }
.footer-inner strong { color: var(--ink); font-size: 20px; }
.footer-inner p { line-height: 1.8; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .header-inner, main, .footer-inner { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .header-inner nav { gap: 12px; font-size: 12px; }
  .intro { padding: 44px 0 30px; }
  .intro > p:last-child { font-size: 15px; }
  .workflow-return { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .workflow-return button { width: 100%; }
  .account-summary { align-items: start; flex-direction: column; gap: 7px; padding: 14px 16px; }
  .account-actions { text-align: left; }
  .section-heading { align-items: start; flex-direction: column; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card { padding: 18px 12px; }
  .plan-card h3 { font-size: 20px; }
  .plan-price { font-size: 23px; }
  .plan-current, .plan-discount { font-size: 9px; }
  .features { grid-template-rows: repeat(9, 66px); }
  .features li { font-size: 11px; }
  dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 10px; }
  .dialog-heading { padding: 20px 18px 13px; }
  .dialog-heading h2 { font-size: 24px; }
  .dialog-heading p:last-child { font-size: 12px; }
  .dialog-tabs { padding: 0 18px; }
  .dialog-tabs button { font-size: 12px; }
  .dialog-scroll { max-height: calc(100dvh - 360px); padding: 0 18px; }
  .comparison-table th, .comparison-table td { padding: 10px 7px; }
  .comparison-table thead th { font-size: 12px; }
  .comparison-table tbody th { font-size: 11px; }
  .comparison-table tbody td { font-size: 12px; }
  .change-mark { width: 15px; height: 15px; margin-right: 3px; font-size: 9px; }
  .selection-panel { grid-template-columns: 1fr; gap: 10px; padding: 15px 18px 20px; }
  .selection-status { grid-column: 1; }
  .footer-inner { flex-direction: column; }
}

.cancellation-entry { display: block; margin: 8px auto 0; padding: 8px; border: 0; background: transparent; color: #bcb5bd; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.cancellation-entry-status { margin: 4px auto 0; max-width: 620px; text-align: center; color: var(--muted); font-size: 13px; }
#cancellation-dialog { max-width: 600px; }
#cancellation-dialog .dialog-heading h2 { font-size: 25px; }
.cancellation-body { padding: 0 28px 28px; line-height: 1.7; }
#cancellation-credits { font-size: 20px; font-weight: 750; color: var(--accent-strong); }
.cancellation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cancellation-actions button { flex: 1 1 210px; min-height: 48px; border-radius: 8px; padding: 11px 15px; font-weight: 750; }
.cancellation-keep { background: var(--accent); color: #20191b; border: 1px solid var(--accent); }
.cancellation-destructive { background: #49434c; color: #fff; border: 1px solid #938b96; }
#cancellation-refresh { min-height: 44px; border: 1px solid #938b96; border-radius: 7px; padding: 8px 12px; background: #49434c; color: #fff; }
#cancellation-status { margin-bottom: 0; color: var(--accent-strong); }
#cancellation-dialog button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) { .cancellation-body { padding: 0 18px 22px; } }
