:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #1a1f36;
  --muted: #51576a;
  --line: #d9d8df;
  --purple: #635bff;
  --purple-dark: #4936a5;
  --lavender: #eae4fb;
  --lime: #e8f7a9;
  --section-gap: clamp(4.3rem, 8vw, 8rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }

:focus-visible {
  outline: 3px solid #5941d0;
  outline-offset: 4px;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 3;
  margin: 1rem;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: white;
}

.frame { width: min(calc(100% - 3rem), 88rem); margin-inline: auto; }
.container { width: min(calc(100% - 4rem), 72rem); margin-inline: auto; }

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5rem;
  padding-inline: clamp(.25rem, 2vw, 1.5rem);
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  min-height: 3rem;
  font-family: system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -.08em;
  line-height: 1;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  background: url("assets/bizub-icon.png") center / contain no-repeat;
}

.navigation { display: flex; align-items: center; gap: clamp(1.25rem, 3.2vw, 3.5rem); }
.navigation a, .header-link, .footer-top { display: inline-flex; align-items: center; min-height: 3rem; font-size: .94rem; font-weight: 750; }
.navigation a:hover, .footer-top:hover { color: var(--purple-dark); text-decoration: underline; text-underline-offset: .25em; }

.header-link {
  justify-self: end;
  padding: .42rem 1.05rem;
  border: 1px solid #9c9bad;
  border-radius: 999px;
  white-space: nowrap;
}

.header-link:hover { background: #eeeaf9; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(33rem, 49vw, 43rem);
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(1.25rem, 2.7vw, 2.5rem);
  background: linear-gradient(107deg, #eae3fc 0%, #e1d8fa 43%, #ccc1f5 100%);
}

.hero-image {
  position: absolute;
  z-index: -1;
  right: -1.1%;
  top: 50%;
  width: min(58%, 47rem);
  height: auto;
  transform: translateY(-50%);
  mask-image: radial-gradient(ellipse 69% 69%, #000 56%, transparent 91%);
}

.hero-content {
  width: 55%;
  padding: clamp(2rem, 5.8vw, 6rem);
  padding-right: 0;
}

.hero-label, .section-label {
  color: var(--purple-dark);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.hero-label {
  display: inline-block;
  border: 1px solid #8576c0;
  border-radius: 999px;
  background: #f7f3ff85;
  padding: .3rem .8rem;
}

h1, h2, h3 { font-weight: 850; }
h1, h2 { line-height: 1.11; letter-spacing: -.064em; }

h1 {
  font-size: clamp(3.25rem, 6.25vw, 6.2rem);
  margin-block: .33em .28em;
}

h1 span { color: #593ec1; }

.hero-description {
  max-width: 28rem;
  color: #37354b;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .63rem 1.25rem;
  font-size: .95rem;
  font-weight: 800;
  text-align: center;
}

.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #3d2f83; }
.button-outline { border-color: #81769c; background: #ffffff45; }
.button-outline:hover { background: #ffffffaa; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 5rem;
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.quick-facts li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .8rem .45rem;
  text-align: center;
  font-size: .94rem;
  font-weight: 750;
}

.quick-facts li + li { border-left: 1px solid var(--line); }
.fact-icon { position: relative; flex: 0 0 1.25rem; height: 1.25rem; color: var(--purple-dark); }

.icon-receipt::before, .icon-coupon::before, .icon-bars::before {
  content: "";
  position: absolute;
}

.icon-receipt::before {
  inset: 0 .18rem;
  border: 1.5px solid currentColor;
  border-radius: .2rem;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 4px) center / 53% 63% no-repeat;
}

.icon-coupon::before {
  inset: .17rem 0;
  border: 1.5px solid currentColor;
  border-radius: .22rem;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 4px) 65% 50% / 1.5px 70% no-repeat;
}

.icon-bars::before {
  inset: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 20% 43% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 20% 72% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 20% 100% no-repeat;
}

.section { padding-top: var(--section-gap); }
.section-intro { margin-bottom: 2rem; }
.section-label { margin-bottom: .55rem; }
h2 { font-size: clamp(2.45rem, 5.1vw, 4.8rem); }
.section-intro > p:last-child:not(.section-label) { color: var(--muted); margin-top: .8rem; }

.demo {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: clamp(1rem, 3.5vw, 3.8rem);
  align-items: stretch;
}

.demo-steps { align-self: center; }
.demo-step { border-top: 1px solid var(--line); }
.demo-step:last-child { border-bottom: 1px solid var(--line); }

.demo-step h3 { font-size: clamp(1.08rem, 2vw, 1.45rem); }
.demo-step button {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem .3rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font-weight: inherit;
}

.demo[data-ready] .demo-step button { cursor: pointer; }
.demo[data-ready] .demo-step button:hover { color: var(--purple-dark); }
.demo-step p { color: var(--muted); padding: 0 .35rem 1.15rem 2.75rem; }
.demo[data-ready] .demo-step:not(.is-active) p { display: none; }

.step-number {
  display: inline-grid;
  flex: 0 0 1.8rem;
  place-items: center;
  height: 1.8rem;
  border: 1px solid #aaa5b8;
  border-radius: 50%;
  font: 750 .88rem/1 system-ui, sans-serif;
}

.is-active .step-number { background: var(--purple-dark); color: white; border-color: var(--purple-dark); }

.demo-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 25rem;
  padding: 1.2rem 1.3rem;
  border-radius: 1.75rem;
  background: #e7e0fa;
}

.demo-label { color: #493d75; font-size: .88rem; font-weight: 750; }

.demo-scene {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  align-items: center;
  justify-items: center;
  gap: 1.2rem;
  padding-top: .7rem;
}

.sample-receipt, .sample-phone, .sample-confirmation { grid-row: 1; }
.sample-receipt {
  display: grid;
  gap: .65rem;
  justify-items: center;
  width: 9.4rem;
  min-height: 12rem;
  padding: 1.2rem .9rem;
  background: white;
  box-shadow: .8rem 1rem 1.5rem #493b7026;
  transform: rotate(-8deg);
}

.sample-shop { font-size: .77rem; font-weight: 850; letter-spacing: .1em; }
.sample-line { width: 90%; height: 1px; background: #b9b2c9; }
.sample-line-short { width: 64%; }
.sample-text { font-size: .8rem; font-weight: 750; }

.sample-code {
  width: 4rem;
  height: 4rem;
  border: .18rem solid white;
  background:
    linear-gradient(#251f3c, #251f3c) 14% 12% / 24% 24% no-repeat,
    linear-gradient(#251f3c, #251f3c) 85% 11% / 24% 24% no-repeat,
    linear-gradient(#251f3c, #251f3c) 14% 87% / 24% 24% no-repeat,
    conic-gradient(#a698bc 25%, white 0 50%, #615079 0 75%, white 0) 0 0 / 29% 31%;
}

.sample-phone {
  width: 10rem;
  min-height: 14rem;
  padding: .85rem .65rem;
  border: .36rem solid #322656;
  border-radius: 1.55rem;
  background: #f9f7ff;
  transform: rotate(6deg);
  box-shadow: .85rem 1rem 1.5rem #493b7029;
}

.sample-phone .sample-shop { display: block; padding: .55rem 0; text-align: center; }
.sample-ticket {
  display: grid;
  gap: .6rem;
  padding: .8rem;
  border-radius: .7rem;
  background: #e3d8fa;
  color: #3d266e;
}

.sample-ticket span, .sample-ticket small { font-size: .75rem; }
.sample-ticket strong { font-size: 1.22rem; line-height: 1.16; }

.sample-confirmation {
  display: grid;
  justify-items: center;
  gap: .4rem;
  width: min(14rem, 100%);
  padding: 1.35rem .8rem;
  border-radius: 1.2rem;
  background: white;
  box-shadow: .85rem 1rem 1.5rem #493b7029;
}

.sample-confirmation > span:last-child { color: var(--muted); font-size: .88rem; }
.confirm-check {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: .4rem;
  border-radius: 50%;
  background: #e1f4e1;
  color: #1b643b;
}
.confirm-check::before { content: "✓"; font-size: 1.75rem; font-weight: 850; }

.demo-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding: .68rem .8rem;
  border-radius: .7rem;
  background: #f8f5ff;
}

.demo-result span { color: #554876; font-size: .87rem; }
.demo-result strong { font-size: .95rem; text-align: end; }

.placements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-top: var(--section-gap);
  border-radius: 2rem;
  background: #eef2d7;
}

.placements img {
  width: 100%;
  height: 100%;
  max-height: 42rem;
  min-height: 29rem;
  object-fit: cover;
}

.placement-content, .results-copy, .pilot > div {
  padding: clamp(1.45rem, 5.2vw, 5.2rem);
}

.placement-content h2 { font-size: clamp(2.35rem, 4.25vw, 4.35rem); }
.placement-content dl { margin-top: 1.45rem; }
.placement-content dl div { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; border-top: 1px solid #b7bda5; padding: .85rem 0; }
.placement-content dt { font-weight: 850; }
.placement-content dd { color: #394331; }

.results-section {
  display: grid;
  grid-template-columns: 1fr .92fr;
  margin-top: 1.5rem;
  border-radius: 2rem;
  align-items: center;
  background: #211b34;
  color: #f9f6ff;
}

.results-copy h2 { font-size: clamp(2.45rem, 4.6vw, 4.8rem); }
.results-copy > p:last-of-type { margin-top: 1rem; color: #e1dbee; }
.results-copy .section-label { color: #c9bcfa; }

.billing-note {
  margin-top: 1.3rem;
  padding: .2rem 0 .2rem 1rem;
  border-left: 2px solid var(--lime);
}

.billing-note strong { color: var(--lime); }
.billing-note p { margin-top: .25rem; color: #e1dbee; }
.report {
  padding: clamp(1rem, 3vw, 2rem);
  margin: clamp(1rem, 5vw, 4.5rem);
  margin-left: 0;
  border-radius: 1.2rem;
  color: var(--ink);
  background: #fbf9ff;
}

.report figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding-bottom: 1rem; border-bottom: 1px solid #ded9ea; }
.report figcaption strong { font-size: 1.06rem; }
.report figcaption span { color: #584981; font-size: .88rem; font-weight: 750; white-space: nowrap; }
.report-bars { display: grid; gap: .95rem; margin-top: 1rem; }
.report-bars div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem .7rem; }
.report-bars dt { font-weight: 700; }
.report-bars dd { font-size: 1.25rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.report-bars div::after { content: ""; grid-column: 1 / -1; height: .6rem; border-radius: 999px; }
.report-bars .report-scan::after { width: 100%; background: #5840b3; }
.report-bars .report-claim::after { width: 50%; background: #7761bf; }
.report-bars .report-use::after { width: 10%; min-width: .8rem; background: #55700f; }

.faq { display: grid; grid-template-columns: .8fr 1fr; gap: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  min-height: 3.5rem;
  padding: .85rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--purple-dark); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 1.8rem 1rem 0; }

.pilot {
  display: grid;
  grid-template-columns: 1fr .75fr;
  align-items: center;
  margin-top: var(--section-gap);
  border-radius: 2rem;
  background: #e8e1fb;
}

.pilot h2 { font-size: clamp(2.45rem, 4.55vw, 4.5rem); }
.pilot h2 + p { margin-top: .8rem; color: #42394f; }
.pilot .button { margin-top: 1.3rem; }
.pilot-note { margin-top: .45rem; color: #514764; font-size: .9rem; }

.pilot-list {
  display: grid;
  gap: .9rem;
  margin: 1rem clamp(1rem, 5vw, 4.8rem) 1rem 0;
  padding: 1.4rem 1rem 1.4rem 2.5rem;
  border: 1px solid #a79abc;
  border-radius: 1.15rem;
  font-weight: 750;
}
.pilot-list li::marker { color: var(--purple-dark); font-weight: 850; }

.footer {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 5.5rem;
  padding-inline: clamp(.25rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: .9rem;
}

.footer .wordmark { color: var(--ink); }
.footer-top { margin-left: auto; white-space: nowrap; }

@media (max-width: 57rem) {
  .hero-content { width: 60%; padding-left: clamp(2rem, 5vw, 3rem); }
  .hero-image { right: -6%; width: 62%; }
  .wide-break { display: none; }
  .placements img { min-height: 24rem; }
  .placement-content dl div { grid-template-columns: 1fr; gap: .12rem; }
  .faq { grid-template-columns: .75fr 1fr; }
}

@media (max-width: 44rem) {
  .frame { width: calc(100% - 1.5rem); }
  .container { width: calc(100% - 2rem); }
  .header { grid-template-columns: 1fr auto; gap: 0 .5rem; padding-inline: .25rem; }
  .header .wordmark, .header-link { margin-top: .35rem; }
  .navigation { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .5rem; }
  .navigation a, .header-link { font-size: .88rem; }
  .header-link { padding-inline: .78rem; min-height: 2.8rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-content { width: 100%; padding: 1.65rem clamp(.95rem, 4vw, 1.7rem) 0; }
  .hero-image { order: 2; position: relative; top: auto; right: auto; width: min(100%, 29rem); height: auto; margin: -1rem auto -.6rem; transform: none; }
  h1 { font-size: clamp(2.6rem, 8.5vw, 4.25rem); }
  .hero-description { max-width: 25rem; }
  .hero-actions { margin-top: 1rem; }
  .button { padding-inline: .85rem; }
  .quick-facts { grid-template-columns: 1fr; margin-top: .55rem; }
  .quick-facts li { justify-content: flex-start; padding: .62rem .45rem; text-align: start; }
  .quick-facts li + li { border-top: 1px solid var(--line); border-left: 0; }
  .section-intro { margin-bottom: 1.25rem; }
  .demo, .placements, .results-section, .faq, .pilot { grid-template-columns: 1fr; }
  .demo-preview { min-height: 22rem; padding: .9rem; border-radius: 1.25rem; }
  .placements, .results-section, .pilot { border-radius: 1.3rem; }
  .placements img { min-height: 0; max-height: 22rem; }
  .placement-content { padding-top: 1.35rem; }
  .placement-content dl div { grid-template-columns: 6.2rem 1fr; gap: .45rem; }
  .results-copy { padding-bottom: 1.1rem; }
  .report { margin: 0 1.05rem 1.05rem; }
  .faq { gap: 0; }
  .pilot > div { padding-bottom: 0; }
  .pilot-list { margin: 1.2rem 1.05rem 1.05rem; }
  .footer > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
