:root {
  --bg: #F8F7F3;
  --ink: #14161B;
  --mu: #5E636D;
  --ln: #E4E1DA;
  --act: #2441B8;
  --warn: #C23A2E;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}

main {
  max-width: 480px;
  margin: 0 auto;
}

a {
  color: var(--act);
}

button, a, input, select, textarea {
  font-family: inherit;
}

button, a.cta, a.kk, .chip {
  min-height: 44px;
}

:focus-visible {
  outline: 2px solid var(--act);
  outline-offset: 2px;
}

.hd {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.wm {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
}

.wm span {
  color: var(--act);
}

.hd .s {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ey {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mu);
  font-variant-numeric: tabular-nums;
}

.ey::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--act);
  vertical-align: middle;
  margin-right: 8px;
}

.ey b {
  color: var(--ink);
  font-weight: 600;
}

.h {
  margin: 0;
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 27px;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ld {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mu);
}

.m {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mu {
  color: var(--mu);
}

.r {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--ln);
  font-size: 13.5px;
  line-height: 1.5;
}

.r > span:first-child {
  color: var(--mu);
  flex-shrink: 0;
}

.r > span:last-child {
  text-align: right;
}

.chip {
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #D5D8DE;
  background: #FFFFFF;
  color: var(--ink);
  font: 500 13px 'IBM Plex Sans KR', 'Apple SD Gothic Neo', sans-serif;
  cursor: pointer;
}

.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
}

.bar {
  flex-shrink: 0;
  padding: 10px 20px 20px;
  background: var(--bg);
  border-top: 1px solid var(--ln);
  display: flex;
  gap: 8px;
}

.cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 12px;
  background: var(--act);
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cta[aria-disabled="true"],
.cta:disabled {
  background: #9AA2B1;
  cursor: not-allowed;
}

.kk {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid #D5D8DE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #FFFFFF;
  text-decoration: none;
}

.f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  min-width: 0;
}

.i {
  height: 46px;
  border: 1px solid #D5D8DE;
  border-radius: 8px;
  padding: 0 13px;
  font: 400 15px 'IBM Plex Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: #FFFFFF;
  color: var(--ink);
  width: 100%;
}

.gw {
  animation: gw .9s cubic-bezier(.2, .7, .2, 1) both;
  transform-origin: left center;
}

@keyframes gw {
  from { transform: scaleX(0); }
}

.pop {
  animation: pop .5s .5s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .gw, .pop {
    animation: none;
  }
}

.err {
  color: var(--warn);
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

.hidden {
  display: none !important;
}
