/* ============================================================
   부부의 거리 — 관계 유형 점검
   톤: 모노크롬 럭셔리, 에디토리얼
   폰트: 경기천년제목 / 경기천년바탕
   ============================================================ */

@font-face {
  font-family: 'GyeonggiTitle';
  src: url('https://cdn.jsdelivr.net/gh/webfontworld/gyeonggi/GyeonggiTitleM.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/webfontworld/gyeonggi/GyeonggiTitleM.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'GyeonggiTitle';
  src: url('https://cdn.jsdelivr.net/gh/webfontworld/gyeonggi/GyeonggiTitleB.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/webfontworld/gyeonggi/GyeonggiTitleB.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'GyeonggiBatang';
  src: url('https://cdn.jsdelivr.net/gh/webfontworld/gyeonggi/GyeonggiBatangR.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/webfontworld/gyeonggi/GyeonggiBatangR.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'GyeonggiBatang';
  src: url('https://cdn.jsdelivr.net/gh/webfontworld/gyeonggi/GyeonggiBatangB.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/webfontworld/gyeonggi/GyeonggiBatangB.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --text: #222222;
  --text-mid: #4A4A4A;
  --text-sub: #6E6E6E;
  --text-muted: #9A9A9A;
  --line: #E5E5E5;
  --line-soft: #EFEFEF;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-tint: #F5F5F5;
  --max-width: 448px;
  --font-title: 'GyeonggiTitle', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'GyeonggiBatang', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*, button, input, textarea, pre, a {
  letter-spacing: inherit;
}

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1.7;
}

pre { font-family: inherit; white-space: pre-wrap; word-break: keep-all; }
a { text-decoration: none; color: inherit; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

.menu-toggle { position: absolute; left: -9999px; }

/* ============================================================
   레이아웃
   ============================================================ */
.container {
  width: 100vw;
  min-height: 100vh;
  background-color: var(--bg-soft);
}

.layout {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.body-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* ============================================================
   헤더
   ============================================================ */
.main-header {
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--line-soft);
}

.header-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.header-group--ghost { opacity: 0; pointer-events: none; }

.burger {
  width: 32px;
  height: 32px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 0;
  transition: all .2s ease;
}

.logo-link { display: block; }

.logo-text {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo-dark { color: var(--ink); font-weight: 400; }
.logo-accent { color: var(--ink); font-weight: 700; }

/* ============================================================
   메인 바디
   ============================================================ */
.main-body {
  width: 100%;
  flex: 1;
}

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ============================================================
   MAIN 인트로
   ============================================================ */
.main-intro {
  padding: 44px 4px 36px;
  border-bottom: 1px solid var(--line-soft);
}

.main-intro-eyebrow {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.main-intro-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 18px;
}

.main-intro-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  text-align: justify;
  word-break: keep-all;
}

/* 카테고리 */
.category {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.category-title {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.category-list {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.category-item {
  padding: 10px 16px;
  border-radius: 100px;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  letter-spacing: -0.05em;
  transition: all .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .category-item:hover {
    border-color: var(--ink);
  }
}

.category-item.selected {
  background-color: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

/* ============================================================
   카드 리스트
   ============================================================ */
.test-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
  padding-bottom: 32px;
}

.main-card-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
  padding-bottom: 32px;
}

.main-card-list .category {
  margin-top: 4px;
  margin-bottom: 4px;
}

.main-card-list .feature-card {
  margin: 0;
}

.flex-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 700/466;
  border-radius: 2px;
  overflow: hidden;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.25);
  }
}

.card-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  background-color: rgba(255,255,255,0.95);
  color: var(--ink);
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.card-title {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.2) 45%,
    rgba(0,0,0,0.75) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  white-space: pre-line;
  letter-spacing: -0.05em;
  z-index: 1;
}

/* ============================================================
   DETAIL
   ============================================================ */
.detail-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 40px;
}

.detail-eyebrow {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.detail-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.05em;
  color: var(--ink);
  white-space: pre-line;
  margin-bottom: 14px;
}

.detail-subtitle {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  max-width: 340px;
  margin: 0 auto 28px;
  word-break: keep-all;
}

.detail-thumbnail {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
  margin: 0 0 28px;
  border-radius: 2px;
  display: block;
  filter: grayscale(0.05);
}

.detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 32px;
}

.detail-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.detail-meta-num {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.05em;
}

.detail-meta-label {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-meta-divider {
  width: 1px;
  height: 22px;
  background-color: var(--line);
}

.detail-info {
  width: 100%;
  margin-bottom: 36px;
}

.detail-desc {
  font-family: var(--font-body);
  text-align: justify;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  letter-spacing: -0.05em;
  word-break: keep-all;
}

.detail-desc p {
  margin-bottom: 18px;
}

.detail-desc p:last-child {
  margin-bottom: 0;
}

/* 시작 버튼 */
.start-btn {
  width: 100%;
  max-width: 280px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 0;
  background-color: var(--ink);
  margin: 0 auto 40px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}

.start-btn:hover {
  background-color: #000000;
}

.start-btn:active { transform: scale(0.99); }

.start-btn--again {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  margin-top: 28px;
  margin-bottom: 48px;
  height: 52px;
  font-size: 14px;
}

.start-btn--again:hover {
  background-color: var(--ink);
  color: #FFFFFF;
}

/* 관련 테스트 */
.related-section {
  padding-top: 36px;
  border-top: 1px solid var(--line-soft);
}

.related-label {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ============================================================
   TEST
   ============================================================ */
.page--test {
  padding: 24px 0 40px;
  min-height: calc(100vh - 60px);
}

.test-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 32px;
}

.test-header-num {
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.test-header-total {
  color: var(--text-muted);
  font-weight: 400;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: var(--line);
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--ink);
  transition: width .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.question-container {
  display: flex;
  flex-direction: column;
}

.question {
  text-align: justify;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  color: var(--text);
  margin: 24px 0 40px;
  line-height: 1.85;
  letter-spacing: -0.05em;
  white-space: pre-wrap;
  word-break: keep-all;
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-answer {
  width: 100%;
  min-height: 80px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  padding: 18px 18px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: all .2s ease;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.question-answer:focus { outline: none; }
.question-answer:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .question-answer:hover {
    border-color: var(--ink);
    background-color: var(--bg-soft);
  }
}

.question-answer:active {
  transform: scale(0.99);
  border-color: var(--ink);
  background-color: var(--bg-soft);
}

.answer-marker {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-mid);
  border: 1px solid var(--line);
  margin-top: 2px;
  transition: all .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .question-answer:hover .answer-marker {
    color: var(--ink);
    border-color: var(--ink);
  }
}

.question-answer:active .answer-marker {
  color: var(--ink);
  border-color: var(--ink);
}

.answer-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: -0.05em;
  word-break: keep-all;
}

/* ============================================================
   RESULT
   ============================================================ */
.page--result {
  padding: 32px 0 40px;
}

.result-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 44px;
}

.result-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 28px;
  border-radius: 2px;
  filter: grayscale(0.1);
}

.result-eyebrow {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.result-type {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 20px;
  padding: 0 8px;
}

.result-summary {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  text-align: justify;
  word-break: keep-all;
  padding: 0 4px;
}

/* 결과 섹션 */
.result-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-section-label {
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  width: fit-content;
}

.result-section-body {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.95;
  color: var(--text);
  letter-spacing: -0.05em;
  text-align: justify;
  word-break: keep-all;
}

/* 공유 */
.result-share {
  padding: 36px 0 12px;
}

.share-heading {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

.share-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.share-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.share-item:hover { opacity: 0.65; }

.share-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background-color: var(--bg);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
}

.share-title {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-sub);
  letter-spacing: -0.05em;
}

/* ============================================================
   사이드메뉴 + 딤
   ============================================================ */
.dim {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10,10,10,0.45);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  cursor: pointer;
}

.sidemenu {
  position: absolute;
  top: 0;
  left: -82%;
  width: 82%;
  height: 100%;
  background-color: var(--bg);
  z-index: 11;
  display: flex;
  flex-direction: column;
  transition: left .3s cubic-bezier(0.22, 1, 0.36, 1);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sidemenu::-webkit-scrollbar { display: none; }

#menu-toggle:checked ~ .container .dim {
  opacity: 1;
  visibility: visible;
}

#menu-toggle:checked ~ .container .sidemenu {
  left: 0;
}

.side-info {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.05em;
  border-bottom: 1px solid var(--line-soft);
}

.side-info-dark { color: var(--ink); font-weight: 400; }
.side-info-accent { color: var(--ink); font-weight: 700; }

.link-item {
  width: 100%;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.05em;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .link-item:hover {
    background-color: var(--bg-soft);
  }
}

.link-item-title {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.05em;
  line-height: 1.4;
}

.link-item-desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: -0.05em;
  margin-top: 4px;
  line-height: 1.4;
}

.link-item:has(.link-item-title) {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.side-section-label {
  width: 100%;
  padding: 22px 28px 10px;
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   PREMISE — 부부의 생각 전제 체크
   ============================================================ */
.page--premise {
  padding: 32px 0 48px;
}

.premise-intro {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}

.premise-eyebrow {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.premise-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.premise-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  word-break: keep-all;
  padding: 0 8px;
}

.premise-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.premise-role {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 10px 8px;
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.premise-role-label {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.premise-role input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.05em;
  outline: none;
}

.premise-name-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 22px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.premise-name-label {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.premise-name-input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.05em;
  outline: none;
  border-radius: 2px;
}
.premise-name-input:focus { border-color: var(--ink); }

.premise-pickers--single {
  grid-template-columns: 1fr;
}

.premise-statement--hint {
  color: var(--text-sub);
  font-size: 13px;
  font-style: italic;
}

.premise-statement--quoted {
  font-style: italic;
  color: var(--ink);
  padding: 12px 14px;
  background-color: var(--bg-soft);
  border-left: 2px solid var(--ink);
}

.premise-submit {
  width: 100%;
  margin-top: 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.premise-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.premise-submit:not(:disabled):active {
  transform: scale(0.99);
}

.premise-link-btn {
  display: block;
  margin: 14px auto 0;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: -0.05em;
  text-decoration: underline;
  cursor: pointer;
}

.premise-handoff {
  text-align: center;
  padding: 28px 12px 20px;
}
.premise-handoff .premise-name-block {
  text-align: left;
  margin-top: 28px;
}
.premise-handoff .premise-eyebrow,
.premise-handoff .premise-title,
.premise-handoff .premise-desc { text-align: center; }

.premise-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.premise-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: var(--bg);
}

.premise-item-title {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.premise-statement {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  letter-spacing: -0.05em;
  word-break: keep-all;
}

.premise-item--custom {
  background-color: var(--bg-soft);
  border-style: dashed;
}

.premise-custom-input {
  width: 100%;
  min-height: 88px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: -0.05em;
  resize: vertical;
  outline: none;
  border-radius: 2px;
}

.premise-custom-input:focus {
  border-color: var(--ink);
}

.premise-custom-hint {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: -0.05em;
  text-align: center;
  padding: 4px 0;
}

.premise-custom-pickers.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.premise-summary-num-sub {
  font-size: 16px;
  color: var(--text-sub);
  font-weight: 400;
}

.premise-ext-toggle-wrap {
  margin-top: 28px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  text-align: center;
  background-color: var(--bg);
}

.premise-ext-toggle {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background-color: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-transform: uppercase;
}

.premise-ext-hint {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  margin-top: 12px;
  word-break: keep-all;
  line-height: 1.65;
}

.premise-ext {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premise-ext-cat {
  border: 1px solid var(--line);
  background-color: var(--bg);
}

.premise-ext-cat > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.premise-ext-cat > summary::-webkit-details-marker { display: none; }

.premise-ext-cat > summary::after {
  content: "+";
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--text-sub);
  font-size: 18px;
  line-height: 1;
  margin-left: 8px;
}
.premise-ext-cat[open] > summary::after { content: "−"; }

.premise-ext-cat-meta {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  margin-left: auto;
}

.premise-ext-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 16px;
  border-top: 1px solid var(--line-soft);
  background-color: var(--bg-soft);
}

.premise-item--ext {
  padding: 14px 12px;
}

.premise-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.premise-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.premise-picker-label {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
  text-align: center;
}

.premise-choices {
  display: flex;
  gap: 6px;
}

.premise-choice {
  flex: 1;
  height: 36px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.premise-choice.is-selected {
  background-color: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.premise-item.is-diff {
  border-color: var(--ink);
  background-color: #FFFBF5;
}

.premise-diff-tag {
  align-self: flex-start;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 3px 8px;
  text-transform: uppercase;
}

.premise-summary {
  margin-top: 28px;
  padding: 22px 16px;
  border: 1px solid var(--ink);
  background-color: var(--bg-soft);
  text-align: center;
}

.premise-summary-num {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.premise-summary-label {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.premise-summary-body {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  word-break: keep-all;
  padding: 0 4px;
}

.premise-cta {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  text-align: center;
}

.premise-cta-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  margin-bottom: 12px;
  word-break: keep-all;
}

.premise-cta-link {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background-color: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.premise-reset {
  display: block;
  margin: 24px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  text-transform: uppercase;
  cursor: pointer;
}

/* 관계균형점검표 — 자아분화 자가점검 */
.premise-meta {
  margin-top: 14px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  text-transform: uppercase;
}
.premise-meta-dot { margin: 0 8px; opacity: 0.5; }

.premise-hint {
  margin-top: 14px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-mid);
  letter-spacing: -0.04em;
  word-break: keep-all;
  background-color: var(--bg-soft);
  border: 1px dashed var(--line);
}
.premise-hint strong {
  font-weight: 700;
  color: var(--ink);
}

.premise-section {
  margin-bottom: 24px;
}
.premise-section-head {
  margin: 8px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.premise-section-eyebrow {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.premise-section-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.premise-reverse-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  font-family: var(--font-title);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 1px solid var(--ink);
  vertical-align: middle;
}

.premise-progress {
  margin: 20px 0 16px;
}
.premise-progress-text {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

/* 결과 페이지 */
.page--premise-result .premise-result-head {
  text-align: center;
  padding: 28px 12px 24px;
  border: 1px solid var(--ink);
  background-color: var(--bg-soft);
  margin-bottom: 22px;
}
.premise-score-big {
  font-family: var(--font-title);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin: 8px 0 4px;
}
.premise-score-big-max {
  font-size: 22px;
  color: var(--text-sub);
  margin-left: 4px;
}
.premise-band {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #FFFFFF;
  background-color: var(--ink);
  text-transform: uppercase;
}
.premise-result-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.05em;
  margin: 16px 0 10px;
  word-break: keep-all;
}
.premise-result-summary {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  word-break: keep-all;
  padding: 0 4px;
}

.premise-score-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  margin-bottom: 24px;
}
.premise-score-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.premise-score-row-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.premise-score-row-num {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.premise-score-row-max {
  font-size: 11px;
  color: var(--text-sub);
}

.premise-submit--again {
  margin-top: 28px;
}

/* ============================================================
   FEATURE CARD — 메인 페이지 인식차이 카드 진입 카드
   ============================================================ */
.feature-card {
  display: block;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  overflow: hidden;
  border-radius: 2px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
    box-shadow: 0 18px 32px -22px rgba(0,0,0,0.25);
  }
}

.feature-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-position: center;
  background-size: cover;
  background-color: var(--ink);
  filter: grayscale(0.05);
}

.feature-card-body {
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card-eyebrow {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.feature-card-title {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.05em;
}

.feature-card-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  word-break: keep-all;
  margin-top: 2px;
}

.feature-card-cta {
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* ============================================================
   CARDS PAGE — 인식차이 카드 36장 (플립)
   ============================================================ */
.page--cards {
  padding: 32px 0 48px;
}

.cards-intro {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
}

.cards-eyebrow {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cards-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.cards-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  word-break: keep-all;
  text-align: justify;
  padding: 0 6px;
}

.cards-section {
  margin-bottom: 32px;
}

.cards-section-label {
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
  width: 100%;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flip-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  perspective: 1200px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 12px;
  overflow: hidden;
}

.flip-card-front {
  background-color: var(--bg);
  align-items: flex-start;
  justify-content: space-between;
}

.flip-card-back {
  background-color: var(--ink);
  color: #FFFFFF;
  transform: rotateY(180deg);
  align-items: flex-start;
  justify-content: space-between;
  border-color: var(--ink);
}

.flip-card-num {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-sub);
}

.flip-card-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.05em;
  color: var(--ink);
  word-break: keep-all;
  margin-top: 18px;
}

.flip-card-hint {
  font-family: var(--font-title);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 12px;
}

.flip-card-hint--back {
  color: rgba(255,255,255,0.5);
}

.flip-card-questions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.flip-card-questions li {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.04em;
  word-break: keep-all;
  padding-left: 10px;
  position: relative;
}

.flip-card-questions li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}

.cards-foot {
  margin-top: 28px;
  padding: 22px 16px;
  border: 1px solid var(--ink);
  background-color: var(--bg-soft);
  text-align: center;
}

.cards-foot p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-mid);
  letter-spacing: -0.05em;
  margin-bottom: 14px;
  word-break: keep-all;
}

@media (max-width: 360px) {
  .flip-card-title { font-size: 14px; }
  .flip-card-questions li { font-size: 10.5px; }
}

/* ============================================================
   토스트
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 2px;
  background-color: var(--ink);
  color: white;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: 50;
  transition: bottom .3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.toast.toast--show { bottom: 32px; }

/* ============================================================
   스크롤바 숨김
   ============================================================ */
.body-container,
.main-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.body-container::-webkit-scrollbar,
.main-body::-webkit-scrollbar { display: none; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 448px) {
  .layout {
    max-width: 100%;
    border-left: none;
    border-right: none;
  }
}
