/* =============================
   쿠가세 ISSUE 02 - FAQ Stylesheet
   ============================= */

:root {
  --cream: #F5F0E6;
  --cream-2: #EAE2D2;
  --cream-3: #DDD0B7;
  --forest: #143628;
  --forest-2: #0B2418;
  --forest-3: #1F4D3A;
  --red: #E63946;
  --red-2: #C12D39;
  --ink: #1A1A1A;
  --ink-2: #444;
  --muted: #6E6A60;
  --rule: #C9BFA7;
  --gold: #E9C46A;
  --serif: 'Gowun Batang', 'Playfair Display', Georgia, serif;
  --display: 'Playfair Display', 'Gowun Batang', serif;
  --body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum', 'kern';
  background-image:
    radial-gradient(circle at 23% 35%, rgba(20,54,40,0.025) 0.5px, transparent 0.7px),
    radial-gradient(circle at 67% 78%, rgba(20,54,40,0.025) 0.4px, transparent 0.6px),
    radial-gradient(circle at 88% 12%, rgba(230,57,70,0.02) 0.5px, transparent 0.7px);
  background-size: 80px 80px, 120px 120px, 100px 100px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ============ RIBBON ============ */
.ribbon {
  background: var(--forest);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ribbon-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-weight: 700;
}
.ribbon-mid {
  flex: 1;
  text-align: center;
  font-style: italic;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
}

/* ============ MASTHEAD ============ */
.masthead { background: var(--cream); }
.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 18px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}
.brand-mark.sm { width: 32px; height: 32px; font-size: 15px; }
.brand-wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.mast-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.mast-nav a:hover { color: var(--red); }
.mast-nav a.active { color: var(--red); border-bottom: 1.5px solid var(--red); padding-bottom: 2px; }
.mast-meta { font-family: var(--display); font-style: italic; color: var(--muted); font-size: 14px; }
.mast-rule { height: 1px; background: var(--forest); position: relative; margin-top: 4px; }
.mast-rule::before {
  content: ''; position: absolute; left: 28px; right: 28px;
  height: 1px; background: var(--forest); top: -4px;
}

/* ============ FAQ COVER ============ */
.faq-cover {
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.faq-cover-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.breadcrumb {
  display: flex; gap: 10px;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.bc-sep { color: var(--rule); }
.breadcrumb a { color: var(--red); }

.kicker {
  display: inline-block;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--red);
  margin-bottom: 22px;
}

.cover-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--forest);
  margin-bottom: 26px;
}
.cover-title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--red);
}
.cover-lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 540px;
}

.faq-cover-art {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  filter: drop-shadow(8px 12px 0 rgba(20, 54, 40, 0.12));
}

/* ============ SHARED ARTICLE GRID ============ */
.article {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
.article.alt { background: var(--cream-2); }
.article-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}
.article-meta {
  position: sticky;
  top: 30px;
  border-top: 2px solid var(--forest);
  padding-top: 14px;
}
.art-no {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 48px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}
.art-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--forest);
  text-transform: uppercase;
}
.article-body { max-width: 760px; }

.serif-h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin-bottom: 24px;
}
.serif-h2 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--red);
}

.article-body .lede,
.article-body p.lede {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.65;
  color: var(--forest);
  margin-bottom: 28px;
  font-weight: 400;
}
.article-body .bodytext,
.article-body p.bodytext {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.bodytext strong { color: var(--forest); font-weight: 700; }

/* ============ QTOC ============ */
.qtoc {
  list-style: none;
  margin-top: 24px;
  counter-reset: qtoc;
}
.qtoc li { border-top: 1px solid var(--rule); }
.qtoc li:last-child { border-bottom: 1px solid var(--rule); }
.qtoc li a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--forest);
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.qtoc li a:hover { padding-left: 12px; color: var(--red); }
.qtoc li span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--red);
  min-width: 30px;
}
.qtoc li.qtoc-special a {
  background: var(--forest);
  color: var(--cream);
  padding: 18px 20px;
}
.qtoc li.qtoc-special a:hover {
  background: var(--red);
  padding-left: 28px;
}
.qtoc li.qtoc-special span { color: var(--gold); }

/* ============ Q&A ============ */
.qa {
  padding: 50px 0;
  border-bottom: 1px dashed var(--rule);
  scroll-margin-top: 30px;
}
.qa:first-of-type { padding-top: 0; }
.qa:last-of-type { border-bottom: none; }

.qa-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: start;
}
.qa-meta {
  text-align: center;
}
.qa-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  background: var(--cream);
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  padding: 10px;
  box-sizing: content-box;
  margin-left: auto;
  margin-right: auto;
}
.qa-no {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--red);
}
.qa-body { max-width: 660px; }
.qa-q {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--forest);
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.qa-a {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.qa-a:last-child { margin-bottom: 0; }
.qa-a strong { color: var(--forest); font-weight: 700; }

.num-list {
  list-style: none;
  counter-reset: numlist;
  margin: 14px 0;
}
.num-list li {
  counter-increment: numlist;
  position: relative;
  padding: 12px 0 12px 44px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  border-bottom: 1px dotted var(--rule);
}
.num-list li:last-child { border-bottom: none; }
.num-list li::before {
  content: counter(numlist, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
  width: 32px;
}
.num-list li strong { color: var(--forest); font-weight: 700; }

/* ============ DIAGNOSE ============ */
.diagnose-section { background: var(--cream-2); }

.diag-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
  margin-top: 36px;
}

.diag-quiz {
  background: var(--cream);
  border: 1.5px solid var(--forest);
  padding: 28px;
}

.diag-q {
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}
.diag-q:last-of-type { border-bottom: none; }
.diag-q h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--forest);
  margin-bottom: 14px;
  line-height: 1.5;
}
.diag-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diag-opts label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cream-2);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  transition: all 0.15s ease;
}
.diag-opts label:hover {
  background: var(--cream);
  border-color: var(--rule);
}
.diag-opts input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}
.diag-opts input[type="radio"]:checked {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--cream);
}
.diag-opts label:has(input:checked) {
  background: rgba(230, 57, 70, 0.08);
  border-color: var(--red);
  color: var(--forest);
  font-weight: 600;
}

.diag-btn {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
  border: none !important;
  text-align: center;
}
.diag-btn::before { display: none; }

/* RESULT */
.diag-result {
  background: var(--forest);
  color: var(--cream);
  padding: 36px 32px;
  position: sticky;
  top: 30px;
}
.diag-result-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.diag-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.diag-score-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 80px;
  color: var(--cream);
  letter-spacing: -0.04em;
  line-height: 1;
}
.diag-score-max {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: rgba(245,240,230,0.5);
}
.diag-tier {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
}
.diag-msg {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245,240,230,0.78);
  margin-bottom: 22px;
}

.diag-bar {
  height: 6px;
  background: rgba(245,240,230,0.12);
  margin-bottom: 26px;
  overflow: hidden;
}
.diag-bar-fill {
  height: 100%;
  background: var(--red);
  transition: width 0.6s ease;
  width: 0;
}

.diag-tiers {
  list-style: none;
  font-size: 12px;
  border-top: 1px solid rgba(245,240,230,0.15);
  padding-top: 18px;
}
.diag-tiers li {
  display: grid;
  grid-template-columns: 50px 28px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  color: rgba(245,240,230,0.6);
  font-family: var(--body);
}
.diag-tiers li span {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: rgba(245,240,230,0.5);
}
.diag-tiers li strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
}

/* ============ CTA SHARED ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--forest);
  color: var(--cream);
  padding: 16px 28px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 0;
  border: 1.5px solid var(--forest);
  font-family: var(--body);
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  position: relative;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  right: -4px; bottom: -4px;
  border: 1.5px solid var(--forest);
  z-index: -1;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translate(-2px, -2px);
}
.btn-primary:hover::before { border-color: var(--red); }
.btn-primary svg { transition: transform 0.2s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  font-family: var(--display);
  font-style: italic;
  color: var(--forest);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1.5px solid var(--forest);
  padding-bottom: 2px;
}
.btn-secondary:hover { color: var(--red); border-color: var(--red); }

.closing-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ============ COLOPHON ============ */
.colophon {
  background: var(--forest);
  color: var(--cream);
  padding: 56px 0 36px;
}
.colo-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}
.colo-brand { display: flex; align-items: center; gap: 12px; }
.colo-brand .brand-wordmark { color: var(--cream); }
.colo-meta {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: rgba(245,240,230,0.7);
}
.colo-meta p { margin: 2px 0; }
.colo-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.colo-nav a:hover { color: var(--gold); }
.colo-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: rgba(245,240,230,0.5);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(245,240,230,0.12);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .article-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-meta { position: static; }
  .art-no { font-size: 38px; }
  .diag-wrap { grid-template-columns: 1fr; }
  .diag-result { position: static; }
}

@media (max-width: 780px) {
  .ribbon-mid { display: none; }
  .faq-cover { padding: 40px 0 60px; }
  .faq-cover-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-cover-art { max-width: 280px; margin: 0 auto; order: -1; }
  .article { padding: 50px 0; }
  .qa { padding: 36px 0; }
  .qa-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .qa-meta { display: flex; align-items: center; gap: 14px; text-align: left; }
  .qa-icon { width: 56px; height: 56px; padding: 8px; margin: 0; }
  .qa-q { font-size: 20px; }
  .diag-score-num { font-size: 64px; }
  .diag-tier { font-size: 22px; }
  .colo-grid { grid-template-columns: 1fr; text-align: center; }
  .colo-brand, .colo-nav { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .ribbon-inner { padding: 8px 20px; font-size: 10px; }
  .brand-wordmark { font-size: 22px; }
  .diag-quiz { padding: 20px; }
  .diag-result { padding: 24px 22px; }
  .closing-cta { flex-direction: column; align-items: flex-start; }
}
