:root {
  color-scheme: light;
  --bg: #d9d2ff;
  --bg-soft: #fff7ff;
  --ink: #2c2356;
  --ink-strong: #17112f;
  --muted: #665d8e;
  --surface: rgba(255, 247, 255, 0.92);
  --surface-strong: #fff7ff;
  --line: rgba(65, 52, 117, 0.18);
  --pink: #ee79d8;
  --violet: #7f79ff;
  --cyan: #88e5ff;
  --mint: #9ef0d2;
  --yellow: #fff070;
  --paper: #fffaf1;
  --shadow: 0 22px 70px rgba(57, 45, 120, 0.20);
  --sans: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #d9d2ff 0%, #fff7ff 48%, #effcff 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(44, 35, 86, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 35, 86, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -120px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink-strong);
  font-weight: 900;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px 34px;
  border-bottom: 1px solid rgba(44, 35, 86, 0.16);
  background: rgba(255, 247, 255, 0.82);
  backdrop-filter: blur(18px);
  max-width: 100vw;
  overflow: hidden;
}

.brand,
.navlinks,
.topbar-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid var(--ink-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yellow), var(--pink) 52%, var(--cyan));
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--ink-strong);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.navlinks {
  justify-content: center;
  gap: 6px;
}

.navlinks a {
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.navlinks a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.topbar-actions {
  justify-content: flex-end;
  gap: 10px;
}

.topbar select,
.ghost-button,
.secondary-button,
.primary-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  white-space: nowrap;
}

.topbar select,
.ghost-button,
.secondary-button {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.topbar select {
  min-width: 118px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
}

.primary-button {
  border: 2px solid var(--ink-strong);
  background: linear-gradient(135deg, var(--yellow), var(--pink) 52%, var(--cyan));
  color: var(--ink-strong);
  box-shadow: 5px 5px 0 var(--ink-strong);
}

.secondary-button {
  border-color: rgba(44, 35, 86, 0.24);
  color: var(--ink-strong);
}

.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.price-card:hover {
  transform: translateY(-1px);
}

main {
  width: 100%;
}

.hero-landing {
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 70px 7vw 86px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217, 210, 255, 0.96) 0%, rgba(255, 247, 255, 0.88) 46%, rgba(255, 247, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 247, 255, 0.05), rgba(255, 247, 255, 0.35)),
    url("./promo/samples/myeongdong-ending-card.png") right 8vw center / auto 610px no-repeat,
    #d9d2ff;
  overflow: hidden;
}

.hero-content {
  width: min(720px, 100%);
  max-width: 100%;
}

.eyebrow,
.step-label,
.badge,
.kit-number {
  margin: 0 0 9px;
  color: var(--violet);
  font: 900 12px / 1.2 var(--mono);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--ink-strong);
  font-size: 70px;
  line-height: 0.98;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  color: var(--ink-strong);
  font-size: 42px;
  line-height: 1.08;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 20px;
}

.lead {
  max-width: 620px;
  color: #453b77;
  font-size: 21px;
  font-weight: 700;
}

.cta-row,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-row {
  margin-top: 28px;
}

.proof-row {
  margin-top: 24px;
}

.proof-row span {
  border: 1px solid rgba(44, 35, 86, 0.16);
  border-radius: 8px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.page-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.kit-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 18px;
  align-items: stretch;
}

.sample-art,
.kit-card,
.creator-panel,
.winter-theme,
.price-card,
.copy-card,
.checkout-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sample-art {
  margin: 0;
  overflow: hidden;
  background: var(--surface-strong);
}

.sample-art img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.sample-art figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kit-card {
  min-height: 212px;
  padding: 20px;
  background: var(--surface);
}

.kit-card:nth-child(1) {
  background: linear-gradient(160deg, #fff7ff, #ffd6f1);
}

.kit-card:nth-child(2) {
  background: var(--paper);
}

.kit-card:nth-child(3) {
  background: linear-gradient(160deg, #fff7ff, #e8e2ff);
}

.kit-card:nth-child(4) {
  background: linear-gradient(160deg, #e7fbff, #fff7ff);
}

.kit-card p,
.winter-theme p,
.copy-card p,
.price-card small,
.privacy-note {
  color: var(--muted);
}

.receipt-preview-mini p {
  color: #4b3f34;
}

.seal-preview-mini {
  border-color: rgba(238, 121, 216, 0.55);
}

.namane-preview-mini {
  border-color: rgba(136, 229, 255, 0.55);
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(520px, 1.26fr);
  gap: 18px;
  align-items: start;
}

.creator-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.preview-panel {
  padding: 0;
}

.panel-heading {
  margin-bottom: 18px;
}

.creator-form,
.field-grid,
.mood-grid {
  display: grid;
  gap: 14px;
}

.field-grid {
  grid-template-columns: 1fr 1fr;
}

label span,
legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(44, 35, 86, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-strong);
  outline: none;
  padding: 12px 13px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(127, 121, 255, 0.16);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.theme-chip,
.mood-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgba(44, 35, 86, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
  color: var(--ink);
  font-weight: 850;
}

.theme-chip {
  align-items: flex-start;
  min-height: 74px;
}

.theme-chip input,
.mood-grid input {
  width: auto;
  margin: 3px 0 0;
}

.theme-chip span,
.mood-grid span {
  margin: 0;
}

.theme-chip:has(input:checked),
.mood-grid label:has(input:checked) {
  border-color: rgba(44, 35, 86, 0.78);
  background: linear-gradient(135deg, rgba(255, 240, 112, 0.58), rgba(238, 121, 216, 0.28), rgba(136, 229, 255, 0.34));
}

.mood-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.privacy-note {
  margin: 0;
  font-size: 13px;
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(240px, 0.95fr);
  gap: 14px;
}

.output-card {
  overflow: hidden;
  border: 1px solid rgba(44, 35, 86, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ending-card {
  grid-row: span 2;
  position: relative;
  min-height: 610px;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(255, 247, 255, 0.95), rgba(217, 210, 255, 0.94) 54%, rgba(238, 121, 216, 0.46)),
    #fff7ff;
}

.ending-card[data-theme="seongsu"] {
  background: linear-gradient(160deg, #effcff, #d9d2ff 62%, #88e5ff);
}

.ending-card[data-theme="hanriver"] {
  background: linear-gradient(160deg, #e8e2ff, #b7d4ff 62%, #fff070);
}

.ending-card[data-theme="hongdae"] {
  background: linear-gradient(160deg, #fff7ff, #ffb8ec 54%, #8ff2ff);
}

.ending-card[data-theme="gyeongbok"] {
  background: linear-gradient(160deg, #fffaf1, #ffd77a 60%, #e8e2ff);
}

.watermark {
  position: absolute;
  right: 16px;
  bottom: 24px;
  color: rgba(44, 35, 86, 0.07);
  font-size: 80px;
  font-weight: 950;
  pointer-events: none;
}

.card-topline,
.card-meta {
  font-family: var(--mono);
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 850;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  margin-top: 112px;
  color: var(--ink-strong);
  font-size: 58px;
  font-weight: 950;
  line-height: 0.94;
}

.card-line {
  max-width: 430px;
  margin-top: 18px;
  color: #a92a8f;
  font-size: 21px;
  font-weight: 900;
}

.card-meta {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 7px;
}

.receipt-card {
  min-height: 296px;
  background: var(--paper);
  color: #101010;
  padding: 22px;
  font-family: var(--mono);
}

.receipt-card h3 {
  margin-bottom: 16px;
  color: #101010;
  text-align: center;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.25);
  padding: 8px 0;
  font-size: 13px;
}

.receipt-row.total {
  margin-top: 10px;
  border-top: 2px solid #101010;
  font-weight: 950;
}

.receipt-footer {
  margin: 18px 0 0;
  color: #111;
  text-align: center;
  font-size: 12px;
}

.seal-card,
.namane-card {
  min-height: 300px;
  padding: 22px;
  background: rgba(255, 247, 255, 0.86);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.seal-circle {
  display: grid;
  place-items: center;
  width: min(220px, 74vw);
  aspect-ratio: 1;
  border: 3px solid rgba(238, 121, 216, 0.82);
  border-radius: 50%;
  background: rgba(238, 121, 216, 0.08);
}

.seal-circle span {
  display: block;
  color: #a92a8f;
  font-size: 44px;
  font-weight: 950;
}

.seal-circle small {
  display: block;
  margin-top: -26px;
  color: var(--ink-strong);
  font-weight: 850;
}

.namane-art {
  width: min(210px, 76vw);
  aspect-ratio: 558 / 700;
  border: 2px solid var(--ink-strong);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--yellow), var(--pink) 54%, var(--cyan));
  display: grid;
  align-content: space-between;
  padding: 18px;
  color: var(--ink-strong);
  box-shadow: 5px 5px 0 var(--ink-strong);
}

.namane-art span,
.namane-art small {
  font-family: var(--mono);
  font-weight: 900;
}

.namane-art strong {
  align-self: center;
  color: #fff;
  font-size: 34px;
  text-shadow: 0 2px 20px rgba(44, 35, 86, 0.34);
}

.winter-themes,
.price-grid,
.copy-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.winter-themes {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.winter-theme {
  min-height: 190px;
  padding: 18px;
}

.theme-a {
  background: linear-gradient(160deg, #fff7ff, #ffd6f1);
}

.theme-b {
  background: linear-gradient(160deg, #effcff, #ffffff);
}

.theme-c {
  background: linear-gradient(160deg, #e8e2ff, #fffde8);
}

.theme-d {
  background: linear-gradient(160deg, #fff7ff, #e6fffa);
}

.theme-e {
  background: linear-gradient(160deg, #fffaf1, #e8e2ff);
}

.pricing-section,
.share-section {
  border-top: 1px solid rgba(65, 52, 117, 0.12);
}

.price-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  color: var(--ink);
  padding: 20px;
  text-align: left;
}

.price-card strong {
  color: var(--ink-strong);
  font-size: 42px;
  line-height: 1;
}

.price-card.featured {
  border: 2px solid var(--ink-strong);
  background: linear-gradient(160deg, #fff070, #ffb8ec 56%, #d9d2ff);
  box-shadow: 6px 6px 0 var(--ink-strong);
}

.share-box {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.share-box textarea {
  min-height: 160px;
  font-family: var(--mono);
}

.copy-card {
  padding: 18px;
}

.copy-card p {
  min-height: 116px;
}

.checkout-dialog {
  width: min(560px, calc(100vw - 32px));
  background: var(--surface-strong);
  color: var(--ink);
}

.checkout-dialog::backdrop {
  background: rgba(23, 17, 47, 0.58);
  backdrop-filter: blur(5px);
}

.checkout-dialog form {
  position: relative;
  padding: 28px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 22px;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 72px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink-strong);
  font-weight: 850;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.mobile-sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 35;
  display: none;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--pink) 52%, var(--cyan));
  color: var(--ink-strong);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink-strong), 0 14px 42px rgba(44, 35, 86, 0.24);
}

.legal-page {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 72px 34px;
}

.legal-page h1 {
  font-size: 56px;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 30px;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .navlinks {
    display: none;
  }

  .kit-layout,
  .creator-layout {
    grid-template-columns: 1fr;
  }

  .creator-panel {
    position: static;
  }

  .winter-themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 10px 14px;
  }

  .topbar > * {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    box-shadow: 3px 3px 0 var(--ink-strong);
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .topbar select,
  .topbar-actions .ghost-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-landing {
    min-height: 610px;
    align-items: flex-end;
    padding: 210px 18px 64px;
    background:
      linear-gradient(180deg, rgba(217, 210, 255, 0.34), rgba(255, 247, 255, 0.86) 40%, rgba(255, 247, 255, 0.98) 100%),
      url("./promo/samples/myeongdong-ending-card.png") center top / 142% auto no-repeat,
      #d9d2ff;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 17px;
  }

  .cta-row .primary-button,
  .cta-row .secondary-button {
    flex: 1 1 100%;
  }

  .page-section {
    width: min(100% - 24px, 1180px);
    padding: 42px 0;
  }

  .field-grid,
  .theme-grid,
  .mood-grid,
  .preview-grid,
  .action-row,
  .price-grid,
  .copy-blocks,
  .share-box,
  .kit-grid,
  .winter-themes {
    grid-template-columns: 1fr;
  }

  .sample-art img {
    min-height: 360px;
  }

  .ending-card {
    min-height: 540px;
  }

  .card-title {
    margin-top: 80px;
    font-size: 43px;
  }

  .watermark {
    font-size: 58px;
  }

  .share-box {
    align-items: stretch;
  }

  .mobile-sticky-cta {
    display: flex;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-button,
  .secondary-button,
  .ghost-button,
  .price-card,
  .navlinks a,
  .mobile-sticky-cta {
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  }
}
