:root {
  color-scheme: light;
  --paper: #f8f5ff;
  --white: #fff;
  --ink: #141129;
  --muted: #5a516d;
  --purple: #5126b6;
  --lavender: #c7adff;
  --lime: #dbff80;
  --line: #ded5ef;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--font); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 3rem, 75rem); margin-inline: auto; }
[id] { scroll-margin-top: 1.25rem; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 2; inset: .75rem auto auto .75rem; padding: .65rem 1rem; background: var(--lime); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-inner { min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; font: 900 1.75rem/1 system-ui, sans-serif; letter-spacing: -.075em; }
.brand-mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .5rem; color: var(--lime); background: var(--purple); font: 1.32rem/1 system-ui, sans-serif; letter-spacing: normal; }
nav, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.6rem; font-size: .9rem; font-weight: 750; }
nav a:hover, .footer-links a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .2em; }
.nav-contact { padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 999px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1.75rem, 4vw, 4rem); padding-block: 3.35rem 3.8rem; align-items: center; }
.hero-copy { padding-block: 1.1rem; }
.status { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .27rem .75rem; color: var(--purple); font-size: .875rem; font-weight: 800; }
.status span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--purple); }
h1 { margin-top: 1.05rem; font-size: clamp(2.4rem, 4.85vw, 4.65rem); font-weight: 900; letter-spacing: -.085em; line-height: 1.16; }
h1 span { display: block; white-space: nowrap; }
h1 em { color: var(--purple); font-style: normal; }
.hero-description { max-width: 24rem; margin-top: 1.1rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.18rem); font-weight: 550; word-break: keep-all; }
.button { display: inline-flex; align-items: center; min-height: 3.2rem; margin-top: 1.65rem; padding: .65rem 1.12rem; border: 1px solid var(--ink); border-radius: .68rem; background: var(--lime); font-weight: 850; box-shadow: 0 3px 0 var(--ink); }
.button:hover { background: #e9ffa8; transform: translateY(-1px); }
.hero-art { overflow: hidden; border-radius: 1.4rem; background: var(--lavender); aspect-ratio: 1.25; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; }

.flow { border-top: 1px solid var(--line); padding-block: 2.4rem 3rem; }
h2 { font-size: clamp(1.85rem, 3.5vw, 3.1rem); line-height: 1.17; letter-spacing: -.075em; font-weight: 900; word-break: keep-all; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: .85rem; align-items: flex-start; min-width: 0; padding: 1.15rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.step-icon { flex: 0 0 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: .59rem; color: var(--purple); background: #ece3ff; font: 800 1.35rem/1 system-ui, sans-serif; }
.capture-icon { font-size: 1.65rem; }
.steps li:last-child .step-icon { color: var(--ink); background: var(--lime); }
.steps h3, .receipt h3 { font-size: 1.12rem; font-weight: 850; line-height: 1.35; letter-spacing: -.045em; word-break: keep-all; }
.steps p { margin-top: .38rem; color: var(--muted); word-break: keep-all; }
.flow-note { margin-top: .85rem; color: var(--muted); font-size: .9rem; word-break: keep-all; }

.example { padding-bottom: 3.25rem; }
.example-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(1.25rem, 5vw, 4.25rem); border-radius: 1.4rem; background: var(--ink); color: var(--white); }
.example-label { margin-bottom: .85rem; color: var(--lime); font-size: .9rem; font-weight: 800; }
.example-copy h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
.example-copy > p:not(.example-label) { margin-top: .95rem; max-width: 21rem; color: #eee7ff; word-break: keep-all; }
.example-copy .example-note { font-size: .875rem; }
.receipt { border-radius: .9rem; padding: clamp(1rem, 3.1vw, 1.8rem); color: var(--ink); background: var(--paper); }
.receipt-top, .receipt-lines div, .receipt-total div { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.receipt-label { color: var(--muted); font-size: .875rem; font-weight: 750; }
.receipt-mark { color: var(--purple); font-size: 1.5rem; line-height: 1; }
.options { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; min-width: 0; margin: 1rem 0 0; padding: 0; border: 0; }
.options label { position: relative; }
.options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.options span { display: grid; place-items: center; min-height: 2.65rem; padding: .25rem .45rem; border: 1px solid var(--line); border-radius: .45rem; font-size: .9rem; font-weight: 800; text-align: center; cursor: pointer; }
.options input:checked + span { border-color: var(--purple); color: var(--purple); background: #ece3ff; }
.options input:disabled + span { cursor: default; }
.receipt-lines { display: grid; gap: .25rem; padding-block: .85rem; color: var(--muted); font-size: .95rem; }
.receipt-lines dd { color: var(--ink); font-weight: 750; white-space: nowrap; }
.receipt-lines .coupon { color: var(--purple); }
.receipt-total { padding-top: .75rem; border-top: 1px dashed #b2a6cc; font-size: .92rem; font-weight: 800; }
.receipt-total strong { color: var(--purple); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.055em; white-space: nowrap; }
.receipt-total p { color: var(--muted); text-align: right; }

.site-footer { border-top: 1px solid var(--line); padding-block: 1.65rem 2.25rem; }
.footer-inner { align-items: flex-end; }
.footer-brand { margin-bottom: .6rem; font-size: 1.35rem; }
.footer-brand .brand-mark { width: 1.4rem; height: 1.4rem; font-size: 1.05rem; border-radius: .4rem; }
.site-footer p { color: var(--muted); font-size: .9rem; }
.footer-links { gap: .55rem 1.15rem; }

@media (max-width: 56rem) {
  .steps li { flex-direction: column; gap: .65rem; }
  .step-icon { flex-basis: auto; width: 2.3rem; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.85rem; gap: .6rem; }
  .wordmark { font-size: 1.42rem; }
  .brand-mark { width: 1.5rem; height: 1.5rem; font-size: 1.16rem; }
  nav { gap: .35rem .72rem; }
  .nav-contact { padding: .3rem .55rem; }
  .hero { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 1.8rem 2.45rem; }
  .hero-copy { padding-block: 0; }
  h1 { margin-top: .8rem; font-size: clamp(1.9rem, 8.6vw, 3.7rem); }
  .hero-description { margin-top: .85rem; }
  .button { margin-top: 1.15rem; }
  .hero-art { border-radius: 1rem; }
  .flow { padding-block: 1.85rem 2.1rem; }
  .steps, .example-panel { grid-template-columns: 1fr; }
  .steps { gap: .55rem; margin-top: .9rem; }
  .steps li { flex-direction: row; gap: .75rem; padding: .9rem; }
  .step-icon { flex-basis: 2.3rem; }
  .example { padding-bottom: 2rem; }
  .example-panel { border-radius: 1rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .9rem; }
}
@media (max-width: 21.5rem) {
  nav { gap: .35rem; }
  .nav-contact { padding-inline: .29rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
