/* ==========================================================
   카카오탐정 · 정적 페이지 스타일
   (reactjs/src/styles.css + Tailwind 유틸리티를 순수 CSS로 변환)
   ========================================================== */

:root {
  --radius: 0.625rem;
  --background: #0a0b0e;
  --background-2: #12141c;
  --foreground: #f5f5f7;
  --card: rgb(20 22 30 / 0.55);
  --card-foreground: #f5f5f7;
  --primary: #f5f5f7;
  --primary-foreground: #0a0b0e;
  --gold: oklch(0.84 0.06 85);
  --muted: rgb(255 255 255 / 0.04);
  --muted-foreground: #86868b;
  --destructive: oklch(0.577 0.245 27.325);
  --border: rgb(255 255 255 / 0.1);
  --input: rgb(255 255 255 / 0.1);
  --ring: oklch(0.84 0.06 85 / 0.7);
  --kakao: oklch(0.89 0.17 100);
  --kakao-foreground: oklch(0.2 0.02 60);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% 0%, #1a1d28, var(--background) 70%);
  --shadow-gold: 0 0 32px -8px rgb(245 245 247 / 0.35);
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ---------- Reset (Tailwind preflight 최소본) ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: var(--font-sans); }
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: linear-gradient(180deg, var(--background), var(--background-2));
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; cursor: pointer; }
button:disabled { cursor: default; }
svg { display: block; }
strong { font-weight: 600; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.mt-28 { margin-top: 7rem; }

/* ---------- 공통 유틸 ---------- */
.container { margin: 0 auto; max-width: 36rem; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted-foreground); }
.text-destructive { color: var(--destructive); }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }

.icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-4 { width: 1rem; height: 1rem; }
.icon-5 { width: 1.25rem; height: 1.25rem; }
.icon-6 { width: 1.5rem; height: 1.5rem; }
.icon-10 { width: 2.5rem; height: 2.5rem; }
.brand-mark { width: 2.5rem; height: 2.5rem; stroke-width: 1.6; }

.section-title {
  text-align: center;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* ---------- Glass / 버튼 ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.glass-gold {
  background:
    radial-gradient(110% 90% at 10% 0%, color-mix(in oklab, var(--gold) 18%, transparent), transparent 62%),
    linear-gradient(165deg, rgb(255 255 255 / 0.07), rgb(20 22 30 / 0.55) 52%);
  border: 1px solid color-mix(in oklab, var(--gold) 55%, transparent);
  box-shadow:
    0 0 46px -10px color-mix(in oklab, var(--gold) 55%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.glass-dim {
  background: linear-gradient(165deg, rgb(255 255 255 / 0.03), rgb(20 22 30 / 0.4) 62%);
  border: 1px solid rgb(255 255 255 / 0.07);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.btn-primary {
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, opacity .2s;
}
.btn-primary:hover:not(:disabled) { transform: scale(1.02); box-shadow: var(--shadow-gold); }
.btn-primary:disabled { opacity: 0.6; }

.btn-gold {
  border-radius: 9999px;
  font-weight: 700;
  color: var(--background);
  background: linear-gradient(135deg, color-mix(in oklab, var(--gold) 78%, white), var(--gold) 52%, color-mix(in oklab, var(--gold) 82%, black));
  box-shadow: 0 0 34px -6px color-mix(in oklab, var(--gold) 60%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-gold:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 0 52px -6px color-mix(in oklab, var(--gold) 78%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; line-height: 1.25rem; }
.btn-block { display: block; width: 100%; margin-top: 1.5rem; padding: 0.75rem 0; }

.btn-outline {
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color .15s, border-color .15s;
}
.btn-outline:hover { border-color: color-mix(in oklab, var(--gold) 50%, transparent); color: var(--gold); }

/* ---------- 폼 필드 ---------- */
.field {
  display: block;
  width: 100%;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  background: rgb(0 0 0 / 0.35);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--muted-foreground); }
.field:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 4px oklch(0.84 0.06 85 / 0.15); }
select.field { appearance: auto; -webkit-appearance: menulist; }
select.field option { background: #12141c; color: var(--foreground); }
textarea.field { resize: vertical; }
textarea.no-resize { resize: none; }
.field.mt-3 { margin-top: 0.75rem; }

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.label-opt { font-weight: 400; color: var(--muted-foreground); }
.hint { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.error { font-size: 0.875rem; line-height: 1.25rem; color: var(--destructive); }

.reveal { animation: reveal .35s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero);
  padding: 6rem 1.5rem 7rem;
  text-align: center;
}
.brand { margin-bottom: 52px; display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.brand-name { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.025em; }
.hero-title {
  word-break: keep-all;
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.hero-sub {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: var(--foreground);
}
.hero-desc {
  margin-top: 1.75rem;
  word-break: keep-all;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.hero-desc-strong { font-weight: 500; color: var(--foreground); }
.hero-cta {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  word-break: keep-all;
}

/* ---------- Why / 비교 카드 ---------- */
.why { padding: 7rem 1.5rem 0; }
.compare-grid {
  margin: 3rem auto 0;
  display: grid;
  max-width: 56rem;
  gap: 1.25rem;
}
.card { border-radius: 1.5rem; padding: 2rem; }
.card-head { display: flex; align-items: center; gap: 1rem; }
.card-head-title { font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.025em; }
.card-body { margin-top: 1.5rem; word-break: keep-all; line-height: 1.625; }
.icon-circle {
  display: flex;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid;
}
.icon-circle--bad {
  border-color: color-mix(in oklab, var(--destructive) 30%, transparent);
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  color: var(--destructive);
}
.icon-circle--gold {
  border-color: color-mix(in oklab, var(--gold) 40%, transparent);
  background: color-mix(in oklab, var(--gold) 10%, transparent);
  color: var(--gold);
}

/* ---------- 서비스 목록 ---------- */
.service-list { margin-top: 3rem; display: grid; gap: 0.75rem; text-align: left; font-size: 0.875rem; line-height: 1.25rem; }
.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}
.service-item > span:first-child { flex-shrink: 0; }
.service-item > span:last-child { min-width: 0; word-break: keep-all; }

/* ---------- 후기 ---------- */
.reviews-head {
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.reviews-notice {
  margin-top: 1rem;
  word-break: keep-all;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.625;
  font-style: italic;
  color: var(--muted-foreground);
}
.reviews-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.review {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  padding: 2rem;
}
.review-writer { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.025em; color: var(--gold); }
.review-text {
  margin-top: 1rem;
  word-break: keep-all;
  font-size: 1rem;
  line-height: 1.625;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}
.reviews-more-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }

/* ---------- 가격 / 절차 ---------- */
.pricing { padding: 7rem 1.5rem; }
.price-grid { margin-top: 3rem; display: grid; gap: 1rem; }
.price-card {
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-0.25rem); }
.price-card--gold { border-color: color-mix(in oklab, var(--gold) 40%, transparent) !important; }
.price-amount { margin-top: 0.25rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.025em; }
.price-unit { margin-left: 0.25rem; font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.price-note { margin-top: 0.5rem; }
.price-goal {
  margin-top: 0.5rem;
  word-break: keep-all;
  font-size: 1.25rem;
  line-height: 1.375;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.price-disclaimer {
  margin-top: 1.25rem;
  word-break: keep-all;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--gold);
}

.steps { margin-top: 3rem; display: grid; gap: 1rem; }
.step { display: flex; gap: 1.25rem; border-radius: 1.5rem; padding: 1.5rem; }
.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--gold) 50%, transparent);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--gold);
}
.step-body { min-width: 0; }
.step-title { font-weight: 600; letter-spacing: -0.025em; }
.step-desc { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- 신청 폼 ---------- */
.apply { padding: 1rem 1.5rem 8rem; }
.apply-form {
  margin: 0 auto;
  max-width: 36rem;
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.apply-form > * + * { margin-top: 1.5rem; }
.time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.time-option { cursor: pointer; }
.time-option input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.time-option span {
  display: block;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--muted);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
  transition: color .15s, border-color .15s;
}
.time-option input:checked + span {
  border-color: color-mix(in oklab, var(--gold) 70%, transparent);
  color: var(--foreground);
}
.time-option input:focus-visible + span { box-shadow: 0 0 0 4px oklch(0.84 0.06 85 / 0.15); }

.consent { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; cursor: pointer; }
.consent input { margin-top: 0.25rem; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--gold); }

.btn-submit {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}
.btn-submit-inner { display: inline-flex; align-items: center; gap: 0.5rem; }

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}

/* ---------- 모달 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  padding: 0 1.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in .15s ease both;
}
.overlay--scroll { overflow-y: auto; padding: 2rem 1.25rem; }
.modal {
  width: 100%;
  border-radius: 1.5rem;
  animation: zoom-in .15s ease both;
}
.modal--sm { max-width: 24rem; padding: 2rem; text-align: center; }
.modal--md { max-width: 28rem; padding: 1.75rem; }
.modal-center { text-align: center; }
.modal-icon { display: grid; place-items: center; }
.modal-title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.025em; }
.modal-icon + .modal-title { margin-top: 1rem; }
.modal-desc { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }

.review-form > * + * { margin-top: 1rem; }
.stars { display: flex; gap: 0.25rem; }
.stars button {
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: color-mix(in srgb, var(--muted-foreground) 40%, transparent);
  transition: color .15s;
}
.stars button.on { color: var(--gold); }
.two-col { display: grid; gap: 1rem; }
.review-actions { display: flex; gap: 0.75rem; padding-top: 0.5rem; }
.review-actions button { flex: 1 1 0; padding: 0.75rem 0; }

/* ---------- 반응형 ---------- */
@media (min-width: 640px) {
  .hero-title { font-size: 3.75rem; line-height: 1.15; }
  .hero-sub { font-size: 1.875rem; line-height: 2.25rem; }
  .reviews-head { flex-direction: row; justify-content: space-between; text-align: left; }
  .reviews-notice { text-align: left; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-form { padding: 2.5rem; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
