:root {
  --verix-ink: #111827;
  --verix-paper: #f6f7f2;
  --verix-white: #ffffff;
  --verix-blue: #3155e7;
  --verix-lime: #c8f34a;
  --verix-red: #e24b4b;
  --verix-line: #d8dce6;
  --verix-muted: #5e6675;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--verix-ink);
  background: var(--verix-paper);
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--verix-white);
  background: var(--verix-blue);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon-box {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.icon-box > svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--verix-lime);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  color: var(--verix-ink);
  background: var(--verix-white);
  border: 1px solid var(--verix-ink);
  border-radius: 4px;
  overflow: auto;
}

.product-dialog::backdrop {
  background: rgba(8, 14, 24, 0.72);
}

.dialog-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--verix-line);
}

.dialog-head strong {
  font-size: 15px;
}

.dialog-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--verix-ink);
  background: transparent;
  border: 0;
}

.dialog-close > svg {
  width: 20px;
  height: 20px;
}

.dialog-body {
  padding: 28px 24px 30px;
}

.dialog-body h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.25;
}

.dialog-body > p {
  margin: 0 0 24px;
  color: var(--verix-muted);
  line-height: 1.7;
}

.dialog-spec {
  display: grid;
  grid-template-columns: 120px 1fr;
  margin: 0;
  border-top: 1px solid var(--verix-ink);
}

.dialog-spec dt,
.dialog-spec dd {
  min-height: 54px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--verix-line);
}

.dialog-spec dt {
  color: var(--verix-muted);
  font-size: 13px;
}

.dialog-spec dd {
  font-weight: 600;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.dialog-actions button,
.dialog-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--verix-ink);
}

.dialog-actions button {
  color: var(--verix-white);
  background: var(--verix-blue);
  border-color: var(--verix-blue);
}

.toast {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 32px));
  padding: 16px 18px;
  color: var(--verix-white);
  background: var(--verix-ink);
  border-left: 4px solid var(--verix-lime);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-notice {
  padding: 14px 24px;
  color: #3f4754;
  background: #edf0f4;
  border-top: 1px solid #d8dce6;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

@media (max-width: 640px) {
  .dialog-body {
    padding: 24px 18px;
  }

  .dialog-body h2 {
    font-size: 27px;
  }

  .dialog-spec {
    grid-template-columns: 90px 1fr;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }

  .demo-notice {
    padding: 14px 18px;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
