/* =====================================================================
   상세페이지연구소 공동구매 — 디자인 시스템
   무형(디지털 템플릿) 상품에 맞춘 "런칭 페이지" 톤: 딥 네이비 히어로 + 따뜻한 오프화이트 본문
   ===================================================================== */
:root {
  --bg: #f7f6f2;
  --bg-2: #efede7;
  --card: #ffffff;
  --ink: #12141c;
  --ink-2: #3a3f4c;
  --sub: #6f7583;
  --line: #e7e5df;
  --line-2: #d9d6ce;

  --brand: #ff5a3c;
  --brand-dark: #e5452a;
  --brand-soft: #fff1ec;
  --violet: #6e5cff;
  --violet-soft: #efecff;
  --mint: #12b981;
  --mint-soft: #e6f8f0;
  --amber: #f59e0b;
  --amber-soft: #fff5e0;

  --hero-bg: #0e1120;
  --hero-ink: #f4f4f8;
  --hero-sub: #a9adbf;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18,20,28,.04), 0 8px 24px rgba(18,20,28,.06);
  --shadow-lg: 0 20px 60px rgba(18,20,28,.16);
  --maxw: 1120px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.25; margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247,246,242,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.site-header.on-dark {
  background: rgba(14,17,32,.7);
  border-bottom-color: rgba(255,255,255,.06);
  color: var(--hero-ink);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #ff8a3c);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900;
  box-shadow: 0 4px 12px rgba(255,90,60,.35);
}
.brand small { font-weight: 600; color: var(--sub); font-size: 13px; margin-left: 2px; }
.on-dark .brand small { color: var(--hero-sub); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); }
.on-dark .nav a { color: var(--hero-sub); }
.nav a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.on-dark .nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav .cta { background: var(--ink); color: #fff; margin-left: 6px; padding: 9px 16px; }
.nav .cta:hover { background: #000; color: #fff; }
.on-dark .nav .cta { background: var(--brand); }
.on-dark .nav .cta:hover { background: var(--brand-dark); }
@media (max-width: 720px) { .nav a:not(.cta) { display: none; } }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg); color: var(--hero-ink);
  margin-top: -64px; padding-top: 64px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none;
}
.hero::before { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, #ff5a3c 0%, transparent 65%); }
.hero::after  { width: 560px; height: 560px; right: -120px; bottom: -260px; background: radial-gradient(circle, #6e5cff 0%, transparent 65%); }
.hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.hero .inner {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #e5e7f2;
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(18,185,129,.25); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(18,185,129,.25);} 50% { box-shadow: 0 0 0 7px rgba(18,185,129,.08);} }
.hero h1 { font-size: 52px; font-weight: 800; margin: 22px 0 18px; letter-spacing: -.045em; line-height: 1.12; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff7a5c, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--hero-sub); margin: 0 0 30px; max-width: 520px; line-height: 1.7; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.hero .stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.hero .stat span { font-size: 13px; color: var(--hero-sub); }

/* 히어로 우측: 폰 목업 + 떠다니는 칩 */
.hero-visual { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
.phone {
  width: 290px; height: 560px; border-radius: 42px; background: #1a1d2b; padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(-4deg); position: relative;
}
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #0b0d16; border-radius: 999px; z-index: 2; }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; position: relative; }
.phone .screen img { width: 100%; height: auto; will-change: transform; }
.phone .screen img.autoscroll { animation: phone-scroll 22s ease-in-out infinite alternate; }
@keyframes phone-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 536px)); } }
.phone .screen .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #999; font-size: 13px; }
.chip {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px;
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  animation: float 5s ease-in-out infinite;
}
.chip .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.chip small { display: block; font-weight: 500; color: var(--sub); font-size: 11px; margin-top: -1px; }
.chip.c1 { top: 60px; left: 0; animation-delay: 0s; }
.chip.c2 { top: 250px; right: 0; animation-delay: 1.4s; }
.chip.c3 { bottom: 56px; left: 10px; animation-delay: 2.6s; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; padding: 56px 24px 64px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { height: 480px; margin-top: 8px; }
  .phone { width: 250px; height: 480px; }
  @keyframes phone-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 456px)); } }
  .chip.c1 { left: 4px; } .chip.c2 { right: 4px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero .stats { gap: 18px; }
  .hero .stat b { font-size: 22px; }
  .chip.c2 { display: none; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: none; border-radius: 14px;
  padding: 15px 22px; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(255,90,60,.28);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: #cfd2d8; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.lg { padding: 18px 28px; font-size: 16px; border-radius: 16px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn.dark:hover { background: #000; }
.btn.glass { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); box-shadow: none; }
.btn.glass:hover { background: rgba(255,255,255,.16); }
.btn.small { padding: 9px 14px; font-size: 13px; border-radius: 10px; box-shadow: none; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section-head { margin-bottom: 32px; }
.section-head .kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .02em; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; font-weight: 800; }
.section-head p { color: var(--sub); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 720px) { .section { padding: 56px 0; } .section-head h2 { font-size: 26px; } }

/* ---------- 상태·가격 공통 ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-active { background: var(--mint-soft); color: #0b8f63; }
.pill-done   { background: var(--violet-soft); color: var(--violet); }
.pill-closed { background: #eeeeea; color: var(--sub); }

.price-block { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.price-block .list { color: var(--sub); text-decoration: line-through; font-size: 15px; margin-bottom: 4px; }
.price-block .group { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.price-block .group small { font-size: 18px; font-weight: 700; margin-left: 2px; }
.price-block .rate { font-size: 15px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.saving { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); padding: 5px 10px; border-radius: 8px; }

.gauge { margin-top: 18px; }
.gauge .bar { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; position: relative; }
.gauge .fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #ff9a3c); transition: width .9s cubic-bezier(.2,.8,.2,1); position: relative; }
.gauge .fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 2.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }
.gauge .fill.done { background: linear-gradient(90deg, var(--mint), #34d399); }
.gauge .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--sub); gap: 10px; }
.gauge .meta b { color: var(--ink); font-weight: 800; }
.avatars { display: inline-flex; align-items: center; margin-right: 6px; }
.avatars i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -7px; display: inline-block; }
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(1) { background: #ffb4a3; } .avatars i:nth-child(2) { background: #b9b1ff; }
.avatars i:nth-child(3) { background: #9de3c6; } .avatars i:nth-child(4) { background: #ffd58a; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.countdown .t { background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 6px; font-size: 12px; letter-spacing: .02em; }
.countdown.urgent .t { background: var(--brand); }

/* ---------- 딜 바 (할인율 + 마감 타일) ---------- */
.deal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deal-tile {
  position: relative; border-radius: 18px; padding: 16px 18px 14px; overflow: hidden;
  background: var(--ink); color: #fff; display: flex; flex-direction: column; min-height: 118px;
}
.deal-tile small { font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .7; }
.deal-tile.rate small { padding-right: 48px; }
.deal-tile b { font-size: 44px; font-weight: 900; letter-spacing: -.05em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.deal-tile em { font-style: normal; font-size: 12px; margin-top: auto; padding-top: 6px; opacity: .75; }
.deal-tile.rate { background: linear-gradient(135deg, #ff5a3c 0%, #ff8a3c 100%); box-shadow: 0 10px 28px rgba(255,90,60,.35); }
.deal-tile.rate b span { font-size: 24px; font-weight: 800; margin-left: 2px; }
.deal-tile.rate::after { content: "OFF"; position: absolute; right: 14px; top: 14px; font-size: 13px; font-weight: 900; letter-spacing: .08em; background: rgba(0,0,0,.22); padding: 4px 8px; border-radius: 8px; }
.deal-tile.time { background: #14172a; }
.deal-tile.time b { color: #ffd166; }
.deal-tile.time .clock { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 15px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.deal-tile.time .clock .t { background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 7px; }
.deal-tile.time.urgent { background: #3a0f0a; animation: urgent-glow 1.6s ease-in-out infinite; }
.deal-tile.time.urgent b { color: #ff7a5c; }
@keyframes urgent-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,90,60,.0);} 50% { box-shadow: 0 0 0 4px rgba(255,90,60,.25);} }
.deal-tile.time.closed { background: #4b4f5c; } .deal-tile.time.closed b { color: #fff; font-size: 30px; }
.deal.compact .deal-tile { min-height: 96px; padding: 12px 14px 10px; border-radius: 14px; }
.deal.compact .deal-tile b { font-size: 34px; }
.deal.compact .deal-tile.rate b span { font-size: 18px; }
.deal.compact .deal-tile.time .clock { font-size: 13px; }
.deal.compact .deal-tile em { font-size: 11px; }
@media (max-width: 400px) { .deal-tile b { font-size: 36px; } }

/* ---------- 진행중 공동구매 섹션 띠 ---------- */
#live { background: linear-gradient(180deg, #fff3ee 0%, #fbf3ef 45%, var(--bg) 100%); position: relative; }
#live::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--brand), #ff9a3c, var(--violet)); }
#live .section-head .kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 6px 12px 6px 9px; border-radius: 999px; }
#live .section-head .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a3c; box-shadow: 0 0 0 3px rgba(255,90,60,.3); animation: pulse 1.6s infinite; }
#live .section-head h2 { font-size: 38px; }

/* ---------- 스포트라이트 (진행중 공동구매) ---------- */
.spot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card); border: 2px solid #ffd9cf; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(255,90,60,.14), 0 8px 24px rgba(18,20,28,.08); margin-bottom: 32px;
  position: relative;
}
.spot:nth-child(even) { border-color: #dcd6ff; box-shadow: 0 30px 70px rgba(110,92,255,.14), 0 8px 24px rgba(18,20,28,.08); }
.spot .ribbon {
  position: absolute; top: 18px; right: -34px; z-index: 3; transform: rotate(45deg);
  background: var(--brand); color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .06em;
  padding: 7px 44px; box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.spot:nth-child(even) .spot-media { order: 2; }
.spot-media {
  position: relative; min-height: 460px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #fff 0%, var(--bg-2) 60%, #e6e2d8 100%);
  display: flex; align-items: flex-end; justify-content: center; padding: 40px 40px 0;
}
.spot:nth-child(even) .spot-media { background: radial-gradient(120% 90% at 80% 10%, #fff 0%, var(--violet-soft) 60%, #dcd6ff 100%); }
.spot-media .peek {
  width: min(320px, 100%); aspect-ratio: 9 / 15; border-radius: 22px 22px 0 0; overflow: hidden;
  background: #fff; box-shadow: 0 30px 60px rgba(18,20,28,.22), 0 0 0 6px rgba(255,255,255,.6);
  position: relative;
}
.spot-media .peek img { width: 100%; height: auto; transition: transform 6s linear; }
.spot:hover .peek img.long { transform: translateY(calc(-100% + 533px)); }
.spot-media .peek.empty { display: grid; place-items: center; color: var(--sub); font-size: 13px; background: linear-gradient(160deg, #fff, var(--bg-2)); }
.spot-media .rate-badge {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 900; font-size: 30px; letter-spacing: -.04em; line-height: 1;
  box-shadow: 0 12px 30px rgba(255,90,60,.45), 0 0 0 5px rgba(255,255,255,.7); transform: rotate(-8deg);
}
.spot-media .rate-badge small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; opacity: .9; margin-bottom: 2px; }
.spot-body { padding: 36px 40px 36px; display: flex; flex-direction: column; }
.spot-body .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.spot-body h3 { font-size: 28px; font-weight: 800; }
.spot-body .sub { color: var(--sub); margin: 8px 0 0; font-size: 15px; }
.spot-body .deal { margin-top: 22px; }
.spot-body .price-block .group { font-size: 40px; }
.spot-body .price-label { font-size: 12px; font-weight: 700; color: var(--sub); margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.spot-body .price-label + .price-block { margin-top: 4px; padding-top: 0; border-top: none; }
.hl { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.hl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.hl li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--mint-soft); color: #0b8f63; font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.spot-body .price-block { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.spot-body .cta-row { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spot-body .cta-row .note { font-size: 12px; color: var(--sub); }
@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; }
  .spot:nth-child(even) .spot-media { order: 0; }
  .spot-media { min-height: 0; padding: 28px 28px 0; }
  .spot-media .peek { aspect-ratio: 16 / 11; width: 100%; }
  .spot-body { padding: 24px 20px 26px; }
  .spot-body h3 { font-size: 23px; }
  .spot-media .rate-badge { width: 80px; height: 80px; font-size: 24px; top: 16px; left: 16px; }
  #live .section-head h2 { font-size: 28px; }
}

/* 그리드 카드 (3번째 상품부터) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 4/3; background: var(--bg-2) center top / cover no-repeat; display: grid; place-items: center; color: var(--sub); font-size: 13px; position: relative; }
.card .thumb .rate-badge { position: absolute; top: 14px; left: 14px; background: var(--brand); color: #fff; font-weight: 900; font-size: 18px; padding: 8px 12px; border-radius: 12px; box-shadow: 0 8px 20px rgba(255,90,60,.4); }
.card .deal { margin-top: 10px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title { font-weight: 800; font-size: 17px; }
.card .sub { color: var(--sub); font-size: 13px; }
.card .price-block .group { font-size: 24px; }
.card .gauge { margin-top: 12px; }

/* ---------- 가치 제안 / 진행 방식 / FAQ ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; box-shadow: var(--shadow);
}
.value .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; }
.value h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.value p { color: var(--sub); font-size: 14px; margin: 0; line-height: 1.65; }
.ico.coral { background: var(--brand-soft); } .ico.violet { background: var(--violet-soft); } .ico.mint { background: var(--mint-soft); } .ico.amber { background: var(--amber-soft); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px 24px; }
.step .n { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.step h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.step p { margin: 0; color: var(--sub); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--sub); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { color: var(--ink-2); font-size: 14px; padding: 0 0 18px; line-height: 1.7; white-space: pre-line; }

/* 마무리 CTA 밴드 */
.band { background: var(--hero-bg); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,60,.5), transparent 65%); filter: blur(60px); left: -120px; top: -200px; }
.band h2 { font-size: 30px; font-weight: 800; position: relative; }
.band p { color: var(--hero-sub); margin: 10px 0 24px; position: relative; }
.band .btn { position: relative; }

/* ---------- 상품 상세 페이지 ---------- */
.crumb { font-size: 13px; color: var(--sub); padding: 20px 0 6px; display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--ink); }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; padding-bottom: 80px; }
.pd-main { min-width: 0; }
.pd-cover {
  border-radius: 24px; overflow: hidden; background: radial-gradient(120% 100% at 20% 0%, #fff, var(--bg-2)); border: 1px solid var(--line);
  aspect-ratio: 16 / 10; position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 36px 36px 0;
}
.pd-cover .frame { width: min(360px, 100%); border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: 0 24px 50px rgba(18,20,28,.2), 0 0 0 6px rgba(255,255,255,.6); background: #fff; height: 100%; }
.pd-cover .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pd-cover .frame.empty { display: grid; place-items: center; color: var(--sub); font-size: 13px; }
.pd-cover .tag { position: absolute; top: 18px; left: 18px; background: #fff; box-shadow: var(--shadow); }
.pd-head { padding: 26px 4px 0; }
.pd-head h1 { font-size: 32px; font-weight: 800; }
.pd-head .sub { color: var(--sub); font-size: 16px; margin: 8px 0 0; }
.pd-head .hl { margin-top: 18px; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
@media (max-width: 640px) { .pd-head .hl { grid-template-columns: 1fr; } }

.subnav {
  position: sticky; top: 64px; z-index: 10; margin: 28px 0 0; display: flex; gap: 4px;
  background: rgba(247,246,242,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.subnav a { font-size: 14px; font-weight: 700; color: var(--sub); padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.subnav a:hover, .subnav a.active { color: var(--ink); background: #fff; box-shadow: var(--shadow); }

.pd-section { padding: 36px 4px 8px; scroll-margin-top: 130px; }
.pd-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pd-section h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--brand); }
.pd-desc { white-space: pre-wrap; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }

/* 상세 이미지 (긴 상세페이지) */
.detail-images { position: relative; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.detail-images .stack { max-width: 560px; margin: 0 auto; display: grid; gap: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.detail-images .stack img { width: 100%; }
.media-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.media-video.vertical { aspect-ratio: 9 / 16; }
.media-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-file video { width: 100%; display: block; background: #000; }
.detail-images.collapsed .stack { max-height: 1500px; overflow: hidden; }
.detail-images.collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; border-radius: 0 0 22px 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 80%); pointer-events: none;
}
.detail-images .more { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; display: none; }
.detail-images.collapsed .more { display: inline-flex; }

.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.includes .item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.includes .item::before { content: "📦"; font-size: 15px; }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } }
.delivery { background: var(--violet-soft); border-radius: 18px; padding: 20px 22px; font-size: 14.5px; color: #3d3580; white-space: pre-line; line-height: 1.75; }

/* 구매 카드 (우측 고정) */
.buy { position: sticky; top: 84px; }
.buy-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); }
.buy-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.buy-card .deal { margin-bottom: 18px; }
.buy-card .price-block .group { font-size: 36px; }
.buy-card .need { margin-top: 16px; background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.buy-card .need b { color: var(--brand-dark); }
.buy-card .btn { margin-top: 18px; }
.buy-card .trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 13px; color: var(--sub); }
.buy-card .trust li { display: flex; gap: 8px; align-items: center; }
.buy-card .trust li::before { content: "●"; font-size: 7px; color: var(--mint); }
.buy-card .rows { margin-top: 16px; border-top: 1px dashed var(--line-2); padding-top: 12px; font-size: 13px; }
.buy-card .rows .row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-2); }
.buy-card .rows .row span:first-child { color: var(--sub); }
.share { margin-top: 12px; text-align: center; }
.share button { background: none; border: none; color: var(--sub); font-size: 13px; cursor: pointer; font-weight: 600; }
.share button:hover { color: var(--ink); }

/* 모바일 하단 고정 바 */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .pd { grid-template-columns: 1fr; gap: 0; padding-bottom: 110px; }
  .buy { position: static; margin-top: 28px; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center;
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-bar .p { flex: 1; min-width: 0; }
  .mobile-bar .p .g { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
  .mobile-bar .p .l { font-size: 12px; color: var(--sub); }
  .mobile-bar .btn { flex: none; width: auto; padding: 14px 22px; }
  .pd-head h1 { font-size: 26px; }
  .subnav { top: 64px; overflow-x: auto; }
}

/* ---------- 폼 / 모달 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.field .hint { font-size: 12px; color: var(--sub); margin-top: 5px; line-height: 1.5; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.modal-back {
  position: fixed; inset: 0; background: rgba(14,17,32,.55); z-index: 50; backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: 24px; max-width: 460px; width: 100%; padding: 28px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; }
.modal h3 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.modal .sub { color: var(--sub); font-size: 13.5px; margin: 0 0 18px; }
.modal .summary { background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal .summary b { color: var(--brand-dark); font-size: 16px; }

.msg { padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; }
.msg.err { background: #fef2f2; color: #b91c1c; }
.msg.ok  { background: var(--mint-soft); color: #047857; }
.empty { text-align: center; color: var(--sub); padding: 60px 20px; background: var(--card); border: 1px dashed var(--line-2); border-radius: 22px; }

.done-screen { text-align: center; }
.done-screen .check { width: 68px; height: 68px; border-radius: 50%; background: var(--mint-soft); color: #0b8f63; display: grid; place-items: center; font-size: 32px; margin: 0 auto 14px; }
.info-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.info-box .row { display: flex; justify-content: space-between; padding: 4px 0; }
.info-box .row span:first-child { color: var(--sub); }

/* ---------- 예약금 / 입금 안내 ---------- */
.deposit-note { background: var(--amber-soft); border: 1px solid #fde3a7; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: #7a4b00; margin-bottom: 14px; line-height: 1.6; }
.deposit-note b { color: #b45309; }
.bank-box { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 12px; display: grid; gap: 8px; }
.bank-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--sub); padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.bank-head b { font-size: 22px; color: var(--brand-dark); letter-spacing: -.02em; }
.bank-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.bank-row span { color: var(--sub); flex: none; width: 64px; }
.bank-row b { flex: 1; min-width: 0; font-weight: 700; word-break: break-all; }
.bank-row .copy { flex: none; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.bank-row .copy:hover { background: var(--bg-2); }
.bank-none { font-size: 13px; color: var(--sub); }
.bank-due { font-size: 13px; color: var(--ink-2); background: #fff; border-radius: 10px; padding: 8px 10px; }
.bank-note { font-size: 12.5px; color: var(--sub); white-space: pre-line; }
.btn.toss { background: #3182f6; box-shadow: none; }
.btn.toss:hover { background: #1b64da; }
.btn.block.small { width: 100%; }

.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-none { background: #eeeeea; color: var(--sub); }
.st-pending { background: var(--amber-soft); color: #b45309; }
.st-expired { background: #fdecec; color: #b91c1c; }
.st-paid { background: var(--mint-soft); color: #0b8f63; }
.st-cancel { background: #f3f4f6; color: var(--sub); text-decoration: line-through; }

/* 내 신청 조회 */
.my-wrap { max-width: 640px; margin: 0 auto; padding: 32px 20px 90px; }
.my-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.my-wrap .lead { color: var(--sub); margin: 0 0 22px; font-size: 15px; }
.my-form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.my-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); margin-top: 16px; }
.my-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.my-card h2 { font-size: 19px; font-weight: 800; }
.my-card .meta { font-size: 13px; color: var(--sub); margin-top: 4px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 6px; }
.tl { text-align: center; font-size: 12px; color: var(--sub); position: relative; padding-top: 22px; }
.tl::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.tl::after { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: var(--line-2); z-index: -1; }
.tl:last-child::after { display: none; }
.tl.done { color: var(--ink); font-weight: 700; }
.tl.done::before { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.tl.done::after { background: var(--mint); }
.tl.now { color: var(--brand-dark); font-weight: 800; }
.tl.now::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,60,.2); animation: pulse 1.6s infinite; }
.tl.off { opacity: .45; }
.my-rows { margin-top: 14px; font-size: 14px; display: grid; gap: 6px; }
.my-rows .row { display: flex; justify-content: space-between; gap: 10px; }
.my-rows .row span:first-child { color: var(--sub); }

/* 관리자: 신청자 표 */
.modal.xwide { max-width: 980px; }
.admin-table td .mini { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-table td .mini button { font-size: 12px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 700; white-space: nowrap; }
.admin-table td .mini button.ok { background: var(--mint); color: #fff; border-color: var(--mint); }
.admin-table td .mini button:hover { filter: brightness(.96); }
.admin-table .sub { color: var(--sub); font-size: 12px; }

/* ---------- 푸터 ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--sub); font-size: 13px; }
footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .links { display: flex; gap: 14px; }
footer .links a { font-weight: 600; color: var(--ink-2); }
footer .links a:hover { color: var(--brand); }

/* ---------- 관리자 ---------- */
.admin-wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 80px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { background: var(--bg); font-size: 12px; color: var(--sub); font-weight: 700; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.code { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--sub); font-family: ui-monospace, monospace; }
.table-scroll { overflow-x: auto; }
.modal.wide { max-width: 720px; }
.fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 4px; margin-bottom: 16px; }
.fieldset > legend { font-size: 12px; font-weight: 800; color: var(--sub); padding: 0 6px; letter-spacing: .04em; }

/* 관리자: 이미지 업로드 */
.upload-row { display: flex; gap: 14px; align-items: flex-start; }
.thumb-box { width: 92px; height: 124px; flex: none; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line-2); overflow: hidden; display: grid; place-items: center; color: var(--sub); font-size: 11px; }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.detail-list { display: grid; gap: 8px; }
.detail-empty { padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--sub); font-size: 13px; text-align: center; background: var(--bg); }
.detail-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; min-width: 0; }
.detail-info > span:last-child { flex: 1; min-width: 0; }
.modal.wide { overflow-x: hidden; }
.detail-thumb { width: 56px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.detail-info { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--sub); }
.detail-info b { color: var(--ink); font-size: 13px; }
.detail-info .kind { flex: none; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
.detail-thumb.video { display: grid; place-items: center; background: #14172a; }
.detail-thumb.video img { opacity: .85; }
.detail-icon { font-size: 22px; }
.detail-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-btns { display: flex; gap: 4px; }
.detail-btns button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 12px; }
.detail-btns button:hover:not(:disabled) { background: var(--bg-2); }
.detail-btns button:disabled { opacity: .35; cursor: default; }
