/* 받은 뒤 페이지(/thanks/): 바로 받기에서 다운로드를 누르면 온다.
   틀은 홈 맨 아래 신청 섹션(day.css의 .apply, apply.css의 #download)을 그대로 쓰고, 여기에는 이 페이지에만 있는 것만 둔다.
   움직임은 DESIGN.md 6절 값(차례로 나타남 0.45초·14px·90ms — base.css의 .reveal)만 쓴다. 동작 줄이기는 base.css가 맡는다. */
.th .apply { min-height: calc(100vh - 64px); padding: 64px 0 96px; background: linear-gradient(180deg, #eaf1fd, var(--cream) 50%); }
.th-char { width: 124px; height: auto; }
@media (prefers-reduced-motion: no-preference) { .th-char { animation: float-bob 4s ease-in-out infinite; } }

/* 받기 전·받는 중 안내 */
.th-say { display: grid; justify-items: center; gap: 14px; }
.th-say[hidden] { display: none; }
.th-say h1 { margin: 0; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.15; letter-spacing: -.045em; font-weight: 800; color: var(--ink); }
.th-lead { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--grey); }
.th-lead b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.th-again { margin: 0; font-size: 14.5px; color: var(--grey); }
.th-again a { font-weight: 600; color: var(--cobalt); text-underline-offset: 3px; }
.th .apply-row { margin-top: 6px; }
/* 사용자 단톡방 초대: 받는 중 안내 바로 아래, 첫 화면 안에 */
.th-chat { display: grid; justify-items: center; gap: 10px; margin-top: 4px; }
.th-chat p { margin: 0; max-width: 560px; font-size: 14.5px; line-height: 1.6; color: var(--grey); }

/* 아래 카드: 왼쪽 설치하는 법·단톡방, 오른쪽 소식 받기(선택) */
.th #download { margin-top: 28px; }
.th #download h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.th-steps { display: grid; gap: 6px; margin: 14px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--grey); }
.th-steps b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
/* 설치 단계 바로 아래 한 줄 안내(이미 쓰는 사람은 완전히 끄고 설치) */
.th #download .th-note { margin: 14px 0 0; font-size: 14px; line-height: 1.65; color: var(--grey); }
.th-note b { font-weight: 600; color: var(--ink); }
.th #download .guide-link { margin-top: 14px; font-size: 14px; }
.th #download .invite-how h2 { font-size: 13.5px; }
.th-opt { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--hair); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--grey); vertical-align: 2px; }
.th-free { font-size: 13.5px; text-align: center; color: var(--muted); }
.th #download .notice:focus { outline: none; }

/* 영어·일본어 페이지(/en/thanks/, /ja/thanks/): 같은 틀에 글자 규칙만 맞춘다(값은 public/styles.css의 언어 규칙과 같다).
   일본어는 일본어 글꼴을 뒤에 잇고, 낱말 단위 줄바꿈(keep-all) 대신 일본어 줄바꿈 규칙을 쓴다. */
:root:lang(ja) { --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
html:lang(ja) body { word-break: normal; word-break: auto-phrase; line-break: strict; }
html:lang(en) .th-say h1, html:lang(ja) .th-say h1 { text-wrap: balance; }
html:lang(en) .th-say h1 { letter-spacing: -.035em; }
html:lang(ja) .th-say h1 { letter-spacing: -.02em; font-size: clamp(30px, 3.8vw, 48px); }
html:lang(en) .th-chat p, html:lang(ja) .th-chat p { text-wrap: balance; }

/* 휴대폰: 받는 안내를 크게, 카드는 한 장씩 */
@media (max-width: 860px) {
  .th .apply { min-height: 0; padding: 36px 0 64px; }
  .th-char { width: 92px; }
  .th-say h1 { font-size: clamp(28px, 8vw, 36px); }
  .th-lead { font-size: 16px; }
  .th .pill-btn.big { width: 100%; }
  .th-chat { width: 100%; }
  .th-chat .kakao-btn { width: 100%; }
  /* 영어·일본어는 버튼 글자가 길다: 한 줄에 들어가게 조금 줄이고, 더 좁은 화면에서 두 줄이 되어도 붙지 않게 줄 간격을 준다 */
  html:lang(en) .th-chat .kakao-btn, html:lang(ja) .th-chat .kakao-btn { padding: 10px 18px; font-size: 15px; line-height: 1.3; text-align: center; }
  .th-again a { white-space: nowrap; }
  .th #download { margin-top: 20px; }
}
