/* 쇼부 프론트 — 토스뱅크 공개 웹을 참고한 쇼부 자체 UI. 토스 로고·서체는 쓰지 않는다. */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("../fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("../fonts/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("../fonts/Pretendard-Bold.subset.woff2") format("woff2"); }

:root {
  --bg: #fff;
  --text-strong: #191f28;   /* 대비 16.6:1 */
  --text: #4e5968;          /* 대비 7.4:1 */
  --text-muted: #6b7684;    /* 대비 4.8:1 */
  --line: #e5e8eb;
  --line-strong: #d1d6db;
  --surface: #f2f4f6;
  --blue: #3182f6;          /* 장식·포커스용. 흰 글자 대비 3.6:1 이라 버튼 배경은 --blue-strong */
  --blue-strong: #0064ff;   /* 흰 글자 대비 4.9:1 */
  --danger: #d22030;        /* 흰 배경 대비 5.3:1 */
  --radius-card: 20px;
  --radius-pill: 40px;
  --font: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); word-break: keep-all; }
h1, h2, h3 { color: var(--text-strong); margin: 0; }
h1 { font-size: 48px; font-weight: 700; line-height: 1.3; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.4; }
p { margin: 0; }
a { color: var(--blue-strong); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -48px; padding: 8px 16px; background: var(--text-strong); color: #fff; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 8px; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .inner, .site-footer .inner, main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; border-radius: 8px; text-decoration: none; flex: none; }
.brand-logo { display: block; height: 32px; width: auto; }
.footer-logo { display: block; height: 24px; width: auto; margin-bottom: 8px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; display: inline-block; padding: 12px 0; }
.site-nav a[aria-current="page"] { color: var(--text-strong); }

main { padding-top: 64px; padding-bottom: 96px; }
.hero { margin-bottom: 48px; }
.hero p { margin-top: 16px; font-size: 18px; }

.breadcrumb ol { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; color: var(--text-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: var(--text-muted); }

.card { background: var(--surface); border-radius: var(--radius-card); padding: 32px; }
.state { text-align: left; }
.state h2 { margin-bottom: 8px; }
.state p + p, .state p + .actions { margin-top: 16px; }
.state--error { background: #fff; border: 1px solid var(--line-strong); }
.state--error h2 { color: var(--danger); }
.design-note { margin-top: 16px; font-size: 14px; color: var(--text-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); border: 0; font: 500 16px/1 var(--font); cursor: pointer; text-decoration: none; transition: opacity .15s; }
.btn-primary { background: var(--blue-strong); color: #fff; }
.btn-secondary { background: #fff; color: var(--text-strong); border: 1px solid var(--line-strong); }
.btn:hover { opacity: .88; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); color: var(--text-muted); cursor: not-allowed; opacity: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.loading { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.spinner { width: 24px; height: 24px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.info-table { width: 100%; border-collapse: collapse; }
.info-table caption { text-align: left; font-weight: 700; color: var(--text-strong); padding-bottom: 12px; }
.info-table th, .info-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 40%; font-weight: 500; color: var(--text-muted); }
.pending { color: var(--text-muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .inner { padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--text-muted); display: grid; gap: 8px; }
.site-footer a { color: var(--text); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  main { padding-top: 40px; padding-bottom: 64px; }
  .card { padding: 24px; }
  .site-nav ul { gap: 16px; }
  .btn { min-height: 48px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 페이지 공통 구성 요소 */
.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.product h3 { font-size: 20px; margin: 4px 0 8px; }
.product .btn { margin-top: 16px; }
.meta { font-size: 14px; color: var(--text-muted); }
.price { margin-top: 8px; color: var(--text-strong); font-weight: 500; }
.unavailable { margin-top: 16px; color: var(--text-muted); }
.notice { margin-bottom: 32px; }
.form { margin-top: 32px; display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--text-strong); font-weight: 500; }
.field input { font: 400 16px/1.5 var(--font); padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text-strong); width: 100%; min-width: 0; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 14px; color: var(--text-muted); }
.field-error, .error { color: var(--danger); font-size: 14px; }
.notice-inline { color: var(--text-strong); font-size: 14px; }
.quote, #payment, .result { margin-top: 24px; }
.amount { font-size: 32px; font-weight: 700; color: var(--text-strong); }
.info-list { display: grid; gap: 8px; margin: 16px 0 0; }
.info-list div, .biz div { display: flex; gap: 12px; flex-wrap: wrap; }
.info-list dt, .biz dt { color: var(--text-muted); min-width: 120px; }
.info-list dd, .biz dd { margin: 0; color: var(--text-strong); overflow-wrap: anywhere; }
.biz { display: grid; gap: 4px; margin: 0; }
.biz dt { min-width: 140px; }
.policy-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.draft { margin: 16px 0 32px; padding: 16px; border-radius: 12px; background: var(--surface); color: var(--text-strong); }
.prose { display: grid; gap: 12px; }
.prose h2 { font-size: 20px; margin-top: 16px; }
h1 + .price, h1 + .result, h1 + .form { margin-top: 16px; }
@media (max-width: 640px) { .site-nav ul { gap: 12px; } .site-nav a { font-size: 14px; } .brand-logo { height: 26px; } }
