:root {
  color-scheme: light;
  --ink: #111113;
  --muted: #5f646d;
  --line: rgba(0, 0, 0, .12);
  --line-soft: rgba(0, 0, 0, .07);
  --soft: #f5f5f7;
  --blue: #0b5fff;
  --amber: #b56b16;
  --green: #1f7a3f;
  --content: 1120px;
  --nav-h: 48px;
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans KR", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav-shell {
  width: min(100%, var(--content));
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #000;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.brand-surface {
  color: var(--muted);
  font-weight: 520;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(0, 0, 0, .72);
  font-size: 13px;
}

.nav-links a:hover {
  color: #000;
}

.page {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 54px 22px 76px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 34px;
  align-items: start;
  padding: 50px 0 44px;
}

.hero h1,
.section-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: 0;
}

.hero p {
  margin: 18px 0 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
}

.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 620;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  border-color: #000;
  outline: 2px solid transparent;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #000;
}

.button[aria-busy="true"] {
  cursor: progress;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.panel-head,
.panel-row,
.panel-foot {
  padding: 18px 20px;
}

.panel-head {
  border-bottom: 1px solid var(--line-soft);
}

.panel-head h2,
.panel-head h3,
.panel-foot h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.panel-head p,
.panel-foot p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-row span,
.summary-label {
  color: var(--muted);
}

.panel-row strong,
.summary-value {
  font-weight: 650;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
  padding-top: 34px;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.product-option:hover,
.product-option:has(input:checked) {
  border-color: var(--blue);
}

.product-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.product-name {
  display: block;
  font-size: 17px;
  font-weight: 650;
}

.product-plan {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.product-price {
  font-weight: 650;
  white-space: nowrap;
}

.summary {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
}

.summary-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.summary-total .summary-label {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}

.summary-total .summary-value {
  font-size: 26px;
}

.processing {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(181, 107, 22, .36);
  border-radius: 8px;
  background: rgba(181, 107, 22, .08);
  color: #6f3f09;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

.receipt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 28px;
  align-items: start;
  padding-top: 34px;
}

.receipt-id {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.legal-footer {
  border-top: 1px solid var(--line-soft);
  background: #f7f8fa;
  color: rgba(0, 0, 0, .72);
}

.legal-footer-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 26px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
}

.legal-footer strong {
  color: #000;
}

@media (max-width: 820px) {
  .nav-shell {
    padding: 0 16px;
  }

  .nav-links {
    gap: 12px;
  }

  .page {
    padding: 30px 16px 54px;
  }

  .hero,
  .checkout-layout,
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .product-option {
    grid-template-columns: auto 1fr;
  }

  .product-price {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .brand-surface {
    display: none;
  }

  .nav-links {
    font-size: 12px;
  }

  .hero h1,
  .section-title {
    font-size: 38px;
  }
}
