/* ===== APL COLOR — pay.apls.kr brand system ===== */
:root {
  --off: #F5F5F3;   /* background */
  --ink: #141414;   /* ink / button */
  --sub: #55555A;   /* body text */
  --line: #E7E7E4;  /* border */
  --rose: #E4405F;  /* accent */
  --yellow: #FFCD00;/* sub accent */
  --field-bg: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: 'IBM Plex Sans JP', 'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--rose); }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; width: 100%; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }

header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245,245,243,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink);
}
header.site .inner {
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 22px; width: auto; display: block; }
.brand span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; }
.secure { font-size: 11px; letter-spacing: 0.12em; color: var(--sub); white-space: nowrap; }

/* season swatch bar */
.swatch { display: flex; gap: 6px; margin: 0 0 28px; }
.swatch i { width: 34px; height: 6px; border-radius: 999px; display: block; }

/* card */
.card {
  border: 1px solid var(--ink); background: transparent; display: grid;
}
.card .row {
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.card .row:last-child { border-bottom: 0; }
.card .row .k { font-size: 14px; color: var(--sub); flex-shrink: 0; }
.card .row .v { font-size: 15px; font-weight: 500; text-align: right; }
.card .row.total { border-top: 1px solid var(--ink); border-bottom: 0; }
.card .row.total .k { font-size: 15px; font-weight: 600; color: var(--ink); }
.card .row.total .v { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }

h1.title { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; margin: 0 0 14px; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.2em; color: var(--sub); margin-bottom: 14px; }
.lead { font-size: 16px; color: var(--sub); font-weight: 300; margin: 0 0 32px; }

/* form fields */
label.field { display: block; margin-bottom: 18px; }
label.field > span { display: block; font-size: 13px; color: var(--sub); margin-bottom: 8px; }
input[type=text], input[type=number], input[type=password], select {
  width: 100%; box-sizing: border-box; border: 1px solid var(--ink);
  background: var(--field-bg); border-radius: 0; padding: 13px 15px; font-size: 15.5px;
  font-family: inherit; color: inherit;
}
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--rose); outline-offset: 2px;
}
input::placeholder { color: #A5A5A0; }

/* buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--ink); color: var(--off);
  border-radius: 999px; padding: 15px 30px; font-size: 15.5px; font-weight: 500;
  font-family: inherit; transition: background 200ms ease, transform 160ms cubic-bezier(0.23,1,0.32,1);
}
.btn:hover { background: var(--rose); color: var(--off); }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: #B6B6B1; cursor: not-allowed; }
.btn-block { width: 100%; text-align: center; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--off); }

.agree { display: flex; align-items: flex-start; gap: 11px; margin: 22px 0 18px; cursor: pointer; }
.agree input { margin: 5px 0 0; width: 16px; height: 16px; accent-color: var(--ink); flex-shrink: 0; cursor: pointer; }
.agree span { font-size: 13.5px; color: var(--sub); font-weight: 300; line-height: 1.6; }

.note { font-size: 13px; color: var(--sub); font-weight: 300; line-height: 1.6; }
.msg { font-size: 14px; margin: 12px 0; }
.msg.err { color: var(--rose); }
.msg.ok { color: #1a7f37; }

.hidden { display: none !important; }

footer.site { border-top: 1px solid var(--ink); margin-top: 64px; }
footer.site .inner { padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site .cr { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: #9A9A94; }

/* dashboard table */
table.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
table.orders th, table.orders td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.orders th { font-size: 12px; letter-spacing: 0.08em; color: var(--sub); font-weight: 500; text-transform: uppercase; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 500; }
.pill.paid { background: var(--ink); color: var(--off); }
.pill.pending { background: transparent; border: 1px solid #C9C9C4; color: var(--sub); }
.copybtn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.copybtn:hover { border-color: var(--ink); }

/* responsive */
@media (max-width: 860px) {
  #console-grid { grid-template-columns: minmax(0,1fr) !important; gap: 40px !important; }
}

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
