/* ============================================================
   3초 영어 — 공통 디자인 토큰
   원칙: 화면의 숫자는 "초" 하나. 뺀 것이 곧 포지셔닝.
   ============================================================ */

/* ---------- 색 ----------
   대표색 하나에 짙기만 다른 둘, 그리고 반대편에 대비색 하나.
   여기 넷 말고는 색을 늘리지 않는다.

   ⚠️ 밝은 쪽(--brand)은 아껴 쓴다. 이 색이 '통했다'를 말하는 색이라
   여기저기 칠하면 정작 통한 순간에 아무것도 안 튄다. 판을 칠할 때는
   --brand-3, 선을 그을 때는 --brand-2 를 먼저 본다.

   ⚠️ --brand 위에 흰 글씨를 얹지 않는다. 밝은 초록이라 명암비가
   3:1 도 안 나온다. 그 위는 --on-brand(짙은 잉크)로 쓴다. */
:root {
  --brand: #5fd97c;
  --brand-2: #50b567;
  --brand-3: #3e8c50;
  --contrast: #d95f6a;
  --on-brand: #06180e;

  /* 바탕도 중성 회색이 아니라 초록 기운을 아주 옅게 머금는다.
     눈에 띄라고 넣은 것이 아니라, 띄지 않아야 전체가 한 덩어리로 앉는다. */
  --bg: #0a0f0c;
  --surface: #101711;
  --surface-2: #161e18;
  --line: #24302a;
  --line-soft: #1a231d;
  /* 판 위에 얹는 브랜드 톤. 카드 하나를 도드라지게 할 때 쓴다. */
  --surface-brand: #0f2417;
  --line-brand: #2f6b42;
  --text: #e9f0ea;
  --muted: #8a9a90;

  /* 아래 셋은 뜻을 가진 이름이다. 화면에서는 위 팔레트와 같은 색이지만,
     부르는 자리가 다르다 — 브랜드로 쓸 때는 --brand, '통했다'를 말할
     때는 --pass 로 부른다. 나중에 둘을 갈라야 할 때 여기만 고치면 된다. */
  --accent: var(--brand);
  --pass: var(--brand);
  --alert: var(--contrast);
  /* 신호등의 가운데. 팔레트 넷에는 없지만 지우지 않았다 —
     없애면 튜토리얼의 '경고'와 '오류'가 같은 색이 된다. */
  --slow: #e8b957;

  --w: 480px;
  --r: 16px;
}

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

body {
  font-family: -apple-system, "Apple SD Gothic Neo", "Pretendard", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* 초 단위 숫자는 언제나 폭이 흔들리지 않는다 */
.sec {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- 레이아웃 ---------- */
.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.brand { font-weight: 800; font-size: 0.98rem; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 0.78rem; }
.topbar nav { display: flex; gap: 14px; font-size: 0.82rem; color: var(--muted); }
.topbar nav a.on { color: var(--accent); font-weight: 700; }

/* ---------- 타이포 ---------- */
h1 { font-size: 2rem; line-height: 1.3; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: 1.35rem; line-height: 1.4; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 1.02rem; font-weight: 700; }
.lead { color: var(--muted); font-size: 1rem; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ---------- 카드 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 18px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  /* 흰 글씨가 아니다 — 밝은 초록 위에서는 읽히지 않는다 */
  color: var(--on-brand);
  font-family: inherit;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn:disabled { background: #232c26; color: #67736b; cursor: default; }

/* ---------- 조교 말풍선 ---------- */
.coach {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.coach .face { font-size: 1.5rem; line-height: 1.2; }
.coach p { font-size: 0.98rem; }

/* ---------- 각주 ---------- */
.src { font-size: 0.74rem; color: #5f6d64; line-height: 1.5; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* 개인정보 수집 고지
   작게 두되, 읽히지 않을 만큼 작게 두지는 않는다.
   0.72rem/#6b7183 로 재봤더니 11.5px에 명암비가 4.5:1에 못 미쳤다.
   법적 고지를 안 보이게 깔아두는 건 하지 않기로 한다. */
.privacy {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #86968c;
  text-align: left;
}
.privacy b { color: var(--muted); font-weight: 600; }

/* ---------- 동의 (개인정보보호법 제22조) ----------
   각 항목을 구분해서 보여주고, 각각 따로 켜고 끌 수 있어야 한다.
   기본값은 미체크 — 미리 켜둔 체크박스는 '자유로운 의사'가 아니다.
   「개인정보 처리 방법에 관한 고시」 제4조를 준용해, 중요한 내용은
   본문보다 크고 굵게 둔다(9pt 이상, 다른 내용보다 20% 이상). */
.consent {
  margin: 4px 0 2px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}
.consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  /* 손가락으로 누르는 자리다. 44px 미만으로 줄이지 않는다 */
  min-height: 44px;
  padding: 4px 0;
}
.consent input[type=checkbox] {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent label span { font-size: 0.9rem; line-height: 1.5; color: var(--text); }

.consent-all {
  padding-bottom: 10px !important;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}
.consent-all span { font-weight: 700; }

.req { color: var(--accent); font-weight: 700; }

/* 전문 — 접어두되 한 번에 펼쳐진다 */
.consent-full { margin: -2px 0 6px 28px; }
.consent-full summary {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-full summary:hover { color: var(--accent); }
.consent-full[open] summary { margin-bottom: 8px; }

.consent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  line-height: 1.6;
}
.consent-table th, .consent-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.consent-table th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  width: 1%;
}
/* 항목·기간·거부권 — 고시가 말하는 '중요한 내용' */
.consent-table b { color: var(--text); font-weight: 700; }

.consent-body { font-size: 0.8rem; line-height: 1.7; color: var(--muted); }
.consent-body p { margin-bottom: 7px; }
.consent-body ul { margin: 0; padding-left: 17px; }
.consent-body li { margin-bottom: 5px; }
.consent-body b { color: var(--text); font-weight: 600; }
