/* =====================================================================
   도란(Doran) public(자녀용) — 화면별 스타일
   의존: tokens.css · base.css. 표 금지·카드 스택(§6).
   ===================================================================== */

/* ── 브랜드 헤더(간결) ── */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-6);
  font-weight: 700;
  font-size: var(--fs-xl);
  color: var(--c-text);
}
/* §268 회차 링크 페이지: 보낸 사람·용건 줄이 브랜드 줄과 같은 좌우 여백을 갖는다(390px 에서 왼쪽 끝에 붙던 것) */
.brand + [data-sender] { padding: 0 var(--sp-6); margin: 0; }
.brand__dot {
  width: var(--sp-2); height: var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--c-accent);
}

/* ── S1 랜딩 히어로 ── */
.hero { text-align: left; padding: var(--sp-16) 0 var(--sp-4); }
.hero__title {
  font-size: var(--fs-3xl);
  line-height: 1.375;
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero__sub {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--c-text-2);
  line-height: 1.667;
}

/* ── 퀴즈 카드 ── */
.quiz__q {
  font-size: var(--fs-xl);
  line-height: 1.474;
  font-weight: 700;
}
.quiz__count { font-size: var(--fs-sm); color: var(--c-text-3); }
/* 첫 문항 위 안내 한 줄(대표 결정 2026-10-19) — 문항보다 작고 흐리게 */
.quiz__lead { font-size: var(--fs-sm); color: var(--c-text-2); line-height: 1.5; }

/* 갭 결과 큰 숫자(서사 — 점수 아님) */
.gap__big {
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: var(--c-text);
}
.gap__label { font-size: var(--fs-lg); color: var(--c-text-2); }

/* ── 무료 사전테스트 안내 상자(대표 확정안 2026-10-20) — 퀴즈 결과(index.html)·간편신청(apply.html) 공용.
   문구 SSOT = js/pretest_notice.js. 대본 상자 결(surface-2 바탕 · 헤어라인) · 빨강 금지(화면당 한 가지 일 = CTA) ── */
.pretest {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  color: var(--c-text);
}
.pretest__head { font-size: var(--fs-md); font-weight: 700; line-height: var(--lh-tight); }
.pretest__list { margin: var(--sp-3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.pretest__item {
  position: relative;
  padding-left: 1em;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-text-2);
  word-break: keep-all;
}
.pretest__item::before { content: "·"; position: absolute; left: .2em; top: 0; font-weight: 700; color: var(--c-text-2); }

/* ── S2 BRA ── */
.q__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-tight);
}
.q__hint { font-size: var(--fs-sm); color: var(--c-text-3); }
/* 문항 = 카드가 아니라 헤어라인으로 나눈 블록. 모든 글자·선택지·구분선이 같은 왼쪽 선(24px 거터)에서 시작한다. */
.bra__list { display: flex; flex-direction: column; }
.bra__q { padding: var(--sp-6) 0; border-top: 1px solid var(--c-line); }
.bra__q:last-child { border-bottom: 1px solid var(--c-line); }
.bra__opts { display: flex; flex-direction: column; }
.bra__q .opt {
  justify-content: space-between;
  gap: var(--sp-3);
  border: 0;
  border-bottom: 1px solid var(--c-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: var(--sp-3) 0;
}
.bra__opts .opt:last-child { border-bottom: 0; }
.bra__q .opt[aria-pressed="true"] { background: transparent; box-shadow: none; font-weight: 700; }
.bra__q .opt[aria-pressed="true"]::after { content: "✓"; color: var(--c-accent); font-weight: 700; }
.bra__hint { margin-top: var(--sp-3); }
.blind {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.blind__mark { color: var(--c-text-3); font-weight: 700; }

/* ── S3 소개키트 스크립트 ── */
.script {
  white-space: pre-wrap;
  line-height: var(--lh-body);
  font-size: var(--fs-md);
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.kit__step {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.kit__num {
  flex: 0 0 auto;
  width: var(--sp-6); height: var(--sp-6);
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--c-line-strong);
  color: var(--c-text);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm);
}

/* ── S4 주간 리포트 ── */
/* ①행동 블록 — 최상단·접기 금지(규격). 시선을 먼저 붙잡는다. */
.action {
  background: transparent;
  border: 0;
  border-top: var(--rule) solid var(--c-accent);
  border-radius: 0;
  padding: var(--sp-6) 0 0;
}
.action__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: .02em;
}
.action__sentence {
  margin-top: var(--sp-2);
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  font-weight: 600;
}
.action__btns { margin-top: var(--sp-4); display: flex; gap: var(--sp-3); }
.action__btns .btn { flex: 1 1 0; }

/* 저장 HTML(완결 문서) iframe — 재렌더 아님. 높이는 JS 로 동기화(§6). */
.report__frame {
  width: calc(100% + 2 * var(--sp-6));
  max-width: none;
  margin-inline: calc(-1 * var(--sp-6));
  border: 0;
  display: block;
  overflow: hidden;
}

/* ⑦체크인 3탭 */
.checkin__q { font-size: var(--fs-md); font-weight: 600; line-height: 1.75; }
.checkin__opts { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.checkin__opts .opt { width: auto; flex: 1 1 0; justify-content: center; }
.checkin__done { color: var(--c-text-2); font-weight: 600; font-size: var(--fs-sm); }

/* 복사 완료 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sp-6) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--c-ink);
  color: var(--c-on-ink);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-2);
  z-index: var(--z-toast);
}

/* ── S11 가족 공유 카드 ── */
.share__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-tight);
}
.share__label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-2); }

/* 호칭 chip(관계 호칭 · 실명 아님) — 가로 배치 단일 선택 */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  min-height: var(--sp-12);
  padding: 0 var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  border-color: var(--c-accent);
  background: var(--c-accent-bg);
  color: var(--c-text);
}

/* eligible 후보(다중 선택 · 체크 표시) */
.share__cand { gap: var(--sp-3); }
.share__check {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
}
.share__cand[aria-pressed="true"] .share__check {
  border-color: var(--c-accent);
  background: var(--c-accent);
  position: relative;
}
.share__cand[aria-pressed="true"] .share__check::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid var(--c-on-accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Canvas 미리보기 — 1080×1350 원본을 폭에 맞춰 축소 표시(비율 유지) */
.share__canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  background: var(--c-surface);
}

/* ── S12 방법론 ── */
.method__list { display: flex; flex-direction: column; }
.method__sec { padding: var(--sp-6) 0; border-top: 1px solid var(--c-line); }   /* 카드 대신 헤어라인 */
.method__sec:last-child { border-bottom: 1px solid var(--c-line); }
.method__note { line-height: var(--lh-body); }
.method__h {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.474;
}
.method__body { color: var(--c-text-2); line-height: var(--lh-body); }
.method__body strong { color: var(--c-text); }

/* ── 상태 안내(미발송·만료·로딩) ── */
.state {
  text-align: center;
  padding: var(--sp-16) 0 var(--sp-12);
  color: var(--c-text-2);
}
.state__icon { font-size: 40px; }
.state__title { font-size: var(--fs-xl); font-weight: 700; color: var(--c-text); margin-top: var(--sp-3); }
.state__msg { margin-top: var(--sp-2); line-height: var(--lh-body); }

/* ── 「한 장면」 아카이브 ── */
.archive__title { font-size: var(--fs-2xl); font-weight: 700; line-height: var(--lh-tight); }
.archive__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.archive__item { overflow-wrap: anywhere; }
.archive__item.card { border: 0; border-top: 1px solid var(--c-line); border-radius: 0; background: transparent; padding: var(--sp-6) 0; }
.archive__item.card:last-child { border-bottom: 1px solid var(--c-line); }
.archive__when { font-size: var(--fs-xs); font-weight: 400; color: var(--c-text-3); }
.archive__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--c-accent); margin-top: var(--sp-2); }
.archive__found, .archive__scene { font-size: var(--fs-md); line-height: var(--lh-body); }
.archive__scene { color: var(--c-text); }
