/* ==========================================================================
   픽조이(PickJoy) 랜딩 — 다크 모던 / 모바일 우선 / 접근성 + SEO 친화
   ========================================================================== */

/* ---------- 1. CSS 변수(테마) ---------- */
:root {
  --bg: #0e0f12;
  --bg-2: #14161b;
  --bg-3: #1b1e25;
  --line: #2a2e38;
  --text: #e6e8ef;
  --text-2: #a4abbd;
  --muted: #6b7384;
  --accent: #f6b34a;
  --accent-2: #ff7a59;
  --accent-soft: rgba(246, 179, 74, 0.14);
  --danger: #ff5e5e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --gap: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --bg-2: #ffffff;
    --bg-3: #f0f2f7;
    --line: #e3e6ee;
    --text: #1a1d24;
    --text-2: #4a5163;
    --muted: #7c8499;
  }
}

/* ---------- 2. 리셋 & 기본 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans KR", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; margin: 0; }

p { margin: 0 0 0.8em; color: var(--text-2); }

/* 접근성: 시각적으로 숨기지만 스크린리더가 읽을 수 있는 텍스트 */
.visually-hidden {
  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-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--accent); color: #1a1d24;
  padding: 8px 12px; border-radius: 6px;
  font-weight: 700; z-index: 1000;
  transition: top .2s;
}
.skip-link:focus { top: 8px; outline: 2px solid var(--text); }

/* ---------- 3. 컨테이너 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 4. 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,18,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: 0.02em;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1d24;
  font-weight: 900;
}
.brand-name {
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav ul {
  display: flex; gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  font-size: 0.92rem;
  color: #dadada;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 640px) {
  .site-nav ul { gap: 12px; }
  .site-nav a { font-size: 0.85rem; }
}
@media (max-width: 420px) {
  .site-nav { display: none; }
}

/* ---------- 5. 히어로 + 배너 그리드 ---------- */
.hero {
  padding: 48px 0 24px;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(246,179,74,.08), transparent 60%),
    var(--bg);
}
.hero-title { text-align: center; }
.hero-title .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-2);
}

.banner-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 560px) { .banner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .banner-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .banner-grid { grid-template-columns: repeat(4, 1fr); } }

.banner {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.banner:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.banner-inner {
  display: block;
  width: 100%;
  height: 100%;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.noscript-msg {
  margin-top: 24px; text-align: center;
  color: var(--danger);
}

/* ---------- 6. 섹션 공통 ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 28px; }
.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  margin-bottom: 12px;
}
.lead { color: var(--text-2); max-width: 760px; line-height: 1.7; }
.section-head-center { text-align: center; }
.section-head-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- 7. 신뢰 지표 카드 (Hero 직후) ---------- */
.section-trust { padding: 36px 0; border-top: 1px solid var(--line); }
.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.trust-card::after {
  content: "";
  position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}
.trust-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.trust-num {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 8px;
}
.trust-num-value {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.trust-num-suffix { font-size: 0.95rem; font-weight: 700; color: var(--text-2); }
.trust-label { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.trust-desc { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ---------- 8. 추천 카드 (가로형) ---------- */
.ranking-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  counter-reset: rank;
}
@media (min-width: 980px) { .ranking-list { grid-template-columns: repeat(2, 1fr); } }

.rank-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.rank-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rc-rank {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(246,179,74,0.10), rgba(246,179,74,0));
  border-right: 1px solid var(--line);
  padding: 18px 8px;
  gap: 4px;
}
.rc-rank-label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent);
}
.rc-rank-num {
  font-size: 1.85rem; font-weight: 800; line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.rc-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px 18px;
  min-width: 0;
}
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-name { margin: 0; font-size: 1rem; font-weight: 800; color: var(--text); }
.rc-badge {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(246,179,74,0.35);
}

.rc-summary {
  margin: 0;
  font-size: 0.9rem; color: var(--text-2);
  font-weight: 600;
}

.rc-meta {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.rc-meta li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.78rem;
}
.rc-meta-k { color: var(--muted); }
.rc-meta-v { color: var(--text); font-weight: 700; }

.rc-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rc-tags li {
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line);
}

.rc-gauge { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rc-gauge-head { display: flex; align-items: center; justify-content: space-between; }
.rc-gauge-label { font-size: 0.78rem; color: var(--text-2); }
.rc-gauge-value { font-size: 0.85rem; font-weight: 800; color: var(--accent); }
.rc-gauge-track {
  height: 6px; border-radius: 999px;
  background: var(--bg-3); overflow: hidden;
}
.rc-gauge-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
  border-radius: 999px;
}

.rc-foot {
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.rc-desc { margin: 0; font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }
.rc-cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 800;
  color: #1a1d24;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 8px 14px; border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.rc-cta::after { content: "→"; }
.rc-cta:hover {
  color: #1a1d24;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(246,179,74,0.25);
}

@media (max-width: 480px) {
  .rank-card { grid-template-columns: 64px 1fr; }
  .rc-rank-num { font-size: 1.4rem; }
  .rc-body { padding: 14px; }
}

/* ---------- 9. 추천 분야 카드 ---------- */
.category-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.7;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.cat-mark {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.15em;
  color: var(--accent);
  padding: 4px 8px;
  background: var(--accent-soft);
  border-radius: 4px;
  align-self: flex-start;
}
.cat-card h3 {
  font-size: 1.05rem; color: var(--text);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}
.cat-card p {
  font-size: 0.88rem; color: var(--text-2);
  margin: 0; line-height: 1.65;
}
.cat-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tags li {
  font-size: 0.72rem; padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-3); color: var(--text-2);
  border: 1px solid var(--line);
}
.cat-link {
  margin-top: auto;
  font-size: 0.85rem; font-weight: 800;
  color: var(--accent); padding-top: 8px;
}
.cat-link:hover { color: var(--accent-2); }

/* ---------- 10. 검증 프로세스 5단계 ---------- */
.process-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px)  { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process-list { grid-template-columns: repeat(5, 1fr); } }

.proc-step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.proc-step::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.proc-step:hover { border-color: var(--accent); transform: translateY(-2px); }

.proc-num {
  display: flex; align-items: baseline; gap: 6px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}
.proc-num-label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.15em;
  color: var(--muted);
}
.proc-num-value {
  font-size: 1.6rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proc-title { font-size: 0.98rem; color: var(--text); margin: 0; }
.proc-desc  { font-size: 0.85rem; color: var(--text-2); margin: 0; line-height: 1.65; }

/* ---------- 11. 평가 기준 6 카드 ---------- */
.criteria-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .criteria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .criteria-grid { grid-template-columns: repeat(3, 1fr); } }

.crit-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s;
}
.crit-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.crit-head { display: flex; align-items: center; justify-content: space-between; }
.crit-code {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--muted);
  font-family: "Inter", monospace;
}
.crit-weight {
  font-size: 1rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.crit-title { font-size: 1rem; color: var(--text); margin: 0; }
.crit-desc  { font-size: 0.86rem; color: var(--text-2); margin: 0 0 4px; line-height: 1.65; }
.crit-bar {
  height: 6px; border-radius: 999px;
  background: var(--bg-3); overflow: hidden;
}
.crit-bar-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}

/* ---------- 12. FAQ (탭 + 아코디언) ---------- */
.faq-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
  justify-content: center;
}
.faq-tab {
  appearance: none; background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.faq-tab:hover { color: var(--text); border-color: var(--accent); }
.faq-tab.is-active {
  color: #1a1d24;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 0.98rem; color: var(--text); }
.faq-item summary::after {
  content: "+";
  font-weight: 800; color: var(--accent); font-size: 1.2rem;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--text-2); font-size: 0.92rem; }
.faq-item p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. 푸터 ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.copyright { margin: 0; color: var(--text-2); font-size: 0.9rem; }
.footer-meta { margin: 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 13. 모션 감소 사용자 배려 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 14. 포커스 가시성 ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
