/* 쇼집사 — 디자인 토큰 + 컴포넌트. 모바일 퍼스트, 8px 그리드. */
:root {
  --ink: #15171c;
  --ink-2: #3a3d45;
  --muted: #6c6f78;
  --line: #e6e1d7;
  --line-2: #efebe3;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --tint: #f1ede4;
  --brand: #12392c;
  --brand-2: #1f5c47;
  --brand-ink: #e9f2ee;
  --brass: #c2913a;
  --brass-2: #e9c77b;
  --brass-soft: #f6ecd8;
  --drop: #e0483d;
  --drop-soft: #fdecea;
  --buy: #13805c;
  --buy-soft: #e4f4ec;
  --fair: #a86a12;
  --fair-soft: #fbf0dc;
  --wait: #5a6170;
  --wait-soft: #eceef2;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 8px 24px rgba(21, 23, 28, 0.06);
  --shadow-lg: 0 2px 4px rgba(21, 23, 28, 0.04), 0 24px 48px -12px rgba(21, 23, 28, 0.14);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-feature-settings: 'tnum' 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  word-break: keep-all;
}
h1 {
  font-size: clamp(30px, 7.2vw, 52px);
  font-weight: 760;
}
h2 {
  font-size: clamp(22px, 4.4vw, 32px);
  font-weight: 720;
}
h3,
.h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--brass-2);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow {
  max-width: 760px;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--brand-2);
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--drop);
  box-shadow: 0 0 0 4px var(--drop-soft);
}
.tnum,
.vc-price,
.vc-stats dd,
.deal-price,
.deal-drop,
.unit-total,
.unit-per {
  font-variant-numeric: tabular-nums;
}

/* ── 헤더 ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  flex: none;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  display: grid;
  place-items: center;
}
.header-search {
  flex: 1;
  max-width: 360px;
  display: none;
}
.header-search input {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
}
.header-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.header-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 560;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 10px;
}
.header-nav a:hover {
  background: var(--tint);
}
@media (min-width: 760px) {
  .header-search {
    display: block;
  }
  .header-row {
    height: 68px;
  }
}

/* ── 광고 고지 띠 (숨기지 않음) ─────────── */
.disclosure-band {
  background: var(--brass-soft);
  border-bottom: 1px solid #ead9b6;
  color: #6b4d12;
}
.disclosure-band p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  padding-top: 8px;
  padding-bottom: 8px;
  font-weight: 520;
}
.disclosure-badge {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brass);
  border-radius: 6px;
  padding: 1px 7px;
  margin-top: 1px;
}

/* ── 히어로 ─────────────────────────── */
.hero {
  padding: 40px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(194, 145, 58, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.hero-grid > *,
.two-col > * {
  min-width: 0;
}
.hero h1 {
  margin-bottom: 16px;
}
.hero .lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 24px;
}
.search-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.search-hint b {
  color: var(--ink-2);
  font-weight: 650;
}
@media (min-width: 960px) {
  .hero {
    padding: 72px 0 96px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
  }
}

/* ── 검색창 ─────────────────────────── */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 6px 6px 6px 48px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(31, 92, 71, 0.12), var(--shadow);
}
.search-ico {
  position: absolute;
  left: 16px;
  color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  height: 44px;
  color: var(--ink);
}
.search input::placeholder {
  color: #9a9ca4;
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search button,
.btn {
  flex: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--brand);
  height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.search button:hover,
.btn:hover {
  background: var(--brand-2);
}
.search button:active,
.btn:active {
  transform: scale(0.98);
}
.search-big {
  padding: 8px 8px 8px 52px;
  border-radius: 20px;
}
.search-big .search-ico {
  left: 18px;
}
.search-big input {
  height: 52px;
  font-size: 17px;
}
.search-big button {
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
}

/* ── 판정 카드 ──────────────────────── */
.verdict-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.example-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  background: var(--tint);
  border-radius: 999px;
  padding: 2px 10px;
}
.vc-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-right: 72px;
}
.vc-name {
  font-size: 15px;
  color: var(--muted);
  font-weight: 560;
}
.vc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.vc-price strong {
  font-size: 30px;
  font-weight: 780;
  letter-spacing: -0.03em;
}
.vc-now {
  font-size: 13px;
  color: var(--muted);
}
.vc-verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.vc-verdict strong {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.vc-pill {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 9px;
  color: #fff;
}
.v-buy {
  background: var(--buy-soft);
  color: var(--buy);
}
.v-buy .vc-pill {
  background: var(--buy);
}
.v-fair {
  background: var(--fair-soft);
  color: var(--fair);
}
.v-fair .vc-pill {
  background: var(--fair);
}
.v-wait {
  background: var(--wait-soft);
  color: var(--wait);
}
.v-wait .vc-pill {
  background: var(--wait);
}
.vc-why {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.chart {
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  overflow: visible;
}
.chart-line {
  stroke: var(--brand-2);
  stroke-width: 2.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chart-avg {
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  opacity: 0.6;
}
.chart-low {
  fill: var(--surface);
  stroke: var(--buy);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.chart-now {
  fill: var(--drop);
  stroke: var(--surface);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.vc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.vc-stats div {
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 10px;
}
@media (max-width: 380px) {
  .verdict-card {
    padding: 20px 16px;
  }
  .vc-stats dd {
    font-size: 14px;
  }
}
.vc-stats dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 560;
}
.vc-stats dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.vc-stats dd.em {
  color: var(--drop);
}
.vc-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ── 섹션 ───────────────────────────── */
.section {
  padding: 56px 0;
}
.section-tint {
  background: var(--surface);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.section-head {
  margin-bottom: 32px;
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 8px;
}
@media (min-width: 960px) {
  .section {
    padding: 96px 0;
  }
}
.feature-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 24px;
}
.feature-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--brass-2);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature h3 {
  margin-bottom: 8px;
}
.feature p {
  color: var(--ink-2);
  font-size: 15px;
}
.soon {
  display: inline-block;
  vertical-align: 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--fair);
  background: var(--fair-soft);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 4px;
  letter-spacing: 0;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.two-col h2 {
  margin-bottom: 16px;
}
@media (min-width: 960px) {
  .two-col {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

/* 판정 기준 표 */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.criteria {
  background: var(--paper);
  border-radius: var(--r);
  overflow: hidden;
}
.criteria th,
.criteria td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.criteria thead th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  padding-top: 12px;
  padding-bottom: 12px;
}
.criteria tr:last-child th,
.criteria tr:last-child td {
  border-bottom: 0;
}
.criteria tbody th {
  width: 42%;
}
.chip {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* 단위가 데모 */
.unit-demo {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 48px 16px 16px;
  box-shadow: var(--shadow);
}
.unit-demo .example-tag {
  left: 16px;
  right: auto;
}
.unit-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-areas: 'ico name total' 'ico per per';
  align-items: center;
  column-gap: 12px;
  padding: 14px 12px;
  border-radius: 14px;
}
.unit-row + .unit-row {
  margin-top: 4px;
}
.unit-row.win {
  background: var(--buy-soft);
}
.unit-ico {
  grid-area: ico;
  color: var(--brand-2);
}
.unit-name {
  grid-area: name;
  font-weight: 650;
}
.unit-total {
  grid-area: total;
  color: var(--muted);
  font-size: 14px;
}
.unit-per {
  grid-area: per;
  font-size: 14px;
  color: var(--ink-2);
}
.unit-row.win .unit-per b {
  color: var(--buy);
}
.unit-note {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 12px 4px;
}

/* 하락 순위 */
.deal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.deal {
  display: grid;
  grid-template-columns: 28px 64px 1fr auto;
  grid-template-areas: 'rank img name drop' 'rank img name price';
  column-gap: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 12px 16px 12px 12px;
}
.deal-rank {
  grid-area: rank;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.deal img {
  grid-area: img;
  border-radius: 10px;
  background: var(--paper);
}
.deal-name {
  grid-area: name;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-drop {
  grid-area: drop;
  color: var(--drop);
  font-weight: 800;
  text-align: right;
}
.deal-price {
  grid-area: price;
  font-weight: 700;
  text-align: right;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 17px;
  padding: 20px 40px 20px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  color: var(--ink-2);
  padding: 0 0 20px;
}

/* CTA 띠 */
.cta-band {
  background: var(--brand);
  color: var(--brand-ink);
  padding: 48px 0;
}
.cta-inner {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(20px, 4vw, 28px);
}
.cta-inner p {
  opacity: 0.8;
  margin-top: 4px;
}
.cta-inner .search {
  width: 100%;
  border-color: transparent;
}
.cta-inner .search button {
  background: var(--brass);
  color: #1b1405;
}
.cta-inner .search button:hover {
  background: var(--brass-2);
}
@media (min-width: 960px) {
  .cta-inner {
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    gap: 32px;
  }
}

/* ── 하위 페이지 ─────────────────────── */
.page-head {
  padding: 48px 0 24px;
}
.page-head.compact {
  padding: 24px 0 8px;
}
.page-head h1 {
  font-size: clamp(28px, 6vw, 44px);
}
.page-head .lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
}
.prose-wrap {
  padding: 16px 0 80px;
}
.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.prose h2:first-child {
  margin-top: 8px;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 8px 0;
}
.prose li + li {
  margin-top: 6px;
}
.prose table {
  display: block;
  overflow-x: auto;
  margin: 12px 0;
  background: var(--surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.prose table th,
.prose table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
  min-width: 96px;
}
.prose table thead th {
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
}
.prose .criteria {
  display: table;
  border: 0;
}
.callout {
  background: var(--brass-soft);
  border-left: 4px solid var(--brass);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  color: #5c420f !important;
}

/* 폼 */
.form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.form label {
  display: grid;
  gap: 6px;
}
.form label > span {
  font-weight: 650;
  font-size: 15px;
}
.form em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--brand-2);
  background: var(--surface);
}
.form .btn {
  height: 52px;
  justify-self: stretch;
}
.fine {
  font-size: 13px;
  color: var(--muted);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notice {
  display: flex;
  gap: 16px;
  align-items: center;
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.notice.ok {
  background: var(--buy-soft);
  color: #0d5a40;
}
.notice.err {
  background: var(--drop-soft);
  color: #9b2a22;
}
.notice .mascot {
  flex: none;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 0;
}
.empty .search {
  width: 100%;
  margin: 8px 0;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

/* ── 푸터 ───────────────────────────── */
.site-footer {
  background: #101214;
  color: #b9bbc2;
  padding: 40px 0 48px;
  font-size: 14px;
}
.site-footer .logo {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #25282d;
  margin-bottom: 20px;
}
.footer-tag {
  margin-top: 12px;
  max-width: 28em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-content: start;
}
.footer-links a {
  text-decoration: none;
  color: #d6d8de;
}
.footer-links a:hover {
  color: #fff;
}
.footer-links a.strong {
  font-weight: 700;
  color: #fff;
}
.footer-fine {
  font-size: 13px;
  color: #8b8e96;
  margin-top: 8px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
