/*
  튜닝수학 웹 디자인 시스템 v1
  - 토큰과 컴포넌트의 기준 파일. 랜딩(index.html)과 디자인 시트(디자인-시트.html)가 함께 쓴다.
  - 규칙 설명은 DESIGN.md를 따른다. 값을 바꿀 때는 이 파일의 토큰만 고친다.
*/

/* ---------- 1. 토큰 ---------- */
:root {
  /* 색: 기본 */
  --tm-ink: #131a2b;
  --tm-body: #4a5468;
  --tm-mute: #636c80;
  --tm-line: #e3e8f0;
  --tm-canvas: #ffffff;
  --tm-surface: #f3f5f9;
  --tm-surface-2: #e9edf4;

  /* 색: 브랜드 */
  --tm-brand: #2851d8;
  --tm-brand-press: #1d40b3;
  --tm-brand-soft: #ebf0ff;
  --tm-brand-ink: #1a3aa3;

  /* 색: 칠판(풀이 피드백 구간 전용) */
  --tm-board: #15302f;
  --tm-board-raised: #1d3e3c;
  --tm-board-line: rgba(246, 242, 228, .14);
  --tm-chalk: #f6f2e4;
  --tm-chalk-mute: #b5c6bf;
  --tm-mint: #81e4ca;
  --tm-gold: #f5c774;

  /* 글꼴 */
  --tm-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --tm-font-hand: "Nanum Pen Script", "Pretendard Variable", sans-serif;

  /* 글자 크기 */
  --tm-fs-display: clamp(2rem, 1.2rem + 3.6vw, 3.75rem);
  --tm-fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --tm-fs-h3: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
  --tm-fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --tm-fs-body: 1rem;
  --tm-fs-small: .9375rem;
  --tm-fs-caption: .8125rem;

  /* 간격(4의 배수) */
  --tm-s-1: 4px;
  --tm-s-2: 8px;
  --tm-s-3: 12px;
  --tm-s-4: 16px;
  --tm-s-5: 24px;
  --tm-s-6: 32px;
  --tm-s-7: 48px;
  --tm-s-8: 64px;
  --tm-s-9: 96px;
  --tm-section-y: clamp(80px, 6rem + 4vw, 136px);

  /* 모서리: 크기가 클수록 큰 값 */
  --tm-r-xs: 6px;   /* 칩·작은 표시 */
  --tm-r-sm: 12px;  /* 버튼·입력 */
  --tm-r-md: 16px;  /* 목업 안쪽 패널 */
  --tm-r-lg: 24px;  /* 카드 */
  --tm-r-xl: 32px;  /* 큰 패널(히어로 사진·칠판·CTA) */

  /* 그림자: 떠 있는 목업에만 */
  --tm-shadow-float: 0 1px 2px rgba(19, 26, 43, .06), 0 16px 40px -12px rgba(19, 26, 43, .22);

  /* 움직임 */
  --tm-ease: cubic-bezier(.2, .7, .2, 1);
  --tm-dur-fast: 160ms;
  --tm-dur: 240ms;
  --tm-dur-draw: 700ms;

  /* 레이아웃 */
  --tm-container: 1120px;
  --tm-gutter: 24px;
  --tm-header-h: 68px;

  interpolate-size: allow-keywords;
}

@media (max-width: 720px) {
  :root { --tm-gutter: 20px; --tm-header-h: 60px; }
}

/* ---------- 2. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tm-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tm-canvas);
  color: var(--tm-ink);
  font-family: var(--tm-font);
  font-size: var(--tm-fs-body);
  line-height: 1.7;
  letter-spacing: -.011em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--tm-brand); outline-offset: 3px; border-radius: 4px; }
.tm-cta :focus-visible, .tm-on-brand :focus-visible { outline-color: #fff; }

.tm-container { width: min(var(--tm-container), calc(100% - var(--tm-gutter) * 2)); margin-inline: auto; }
.tm-section { padding-block: var(--tm-section-y); }
.tm-section--flush { padding-top: 0; }
.tm-skip { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 10px 16px; border-radius: var(--tm-r-sm); background: var(--tm-ink); color: white; font-weight: 600; }
.tm-skip:focus { top: 12px; }
.tm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. 글자 ---------- */
.tm-display { font-size: var(--tm-fs-display); font-weight: 760; line-height: 1.2; letter-spacing: -.035em; }
.tm-h2 { font-size: var(--tm-fs-h2); font-weight: 720; line-height: 1.3; letter-spacing: -.03em; }
.tm-h3 { font-size: var(--tm-fs-h3); font-weight: 680; line-height: 1.4; letter-spacing: -.022em; }
.tm-lead { font-size: var(--tm-fs-lead); line-height: 1.7; color: var(--tm-body); }
.tm-text { color: var(--tm-body); }
.tm-small { font-size: var(--tm-fs-small); color: var(--tm-body); }
.tm-caption { font-size: var(--tm-fs-caption); line-height: 1.5; color: var(--tm-mute); letter-spacing: -.005em; }
.tm-num { font-variant-numeric: tabular-nums; }

.tm-section-head { display: grid; gap: var(--tm-s-4); max-width: 40rem; margin-bottom: var(--tm-s-8); }
.tm-section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- 4. 버튼·칩·링크 ---------- */
.tm-btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tm-s-2);
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 0;
  border-radius: var(--tm-r-sm);
  background: var(--tm-surface);
  color: var(--tm-ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--tm-dur-fast) var(--tm-ease), transform var(--tm-dur-fast) var(--tm-ease), color var(--tm-dur-fast) var(--tm-ease);
}
.tm-btn:active { transform: scale(.98); }
.tm-btn:hover { background: var(--tm-surface-2); }
.tm-btn--primary { background: var(--tm-brand); color: white; }
.tm-btn--primary:hover { background: var(--tm-brand-press); }
.tm-btn--soft { background: var(--tm-brand-soft); color: var(--tm-brand-ink); }
.tm-btn--soft:hover { background: #dce5ff; }
.tm-btn--white { background: white; color: var(--tm-brand-ink); }
.tm-btn--white:hover { background: var(--tm-brand-soft); }
.tm-btn--md { --btn-h: 44px; padding-inline: 18px; font-size: 1rem; }
.tm-btn--sm { --btn-h: 36px; padding-inline: 14px; font-size: .9375rem; border-radius: 10px; }
.tm-btn--block { width: 100%; }
.tm-btn[aria-disabled="true"] { background: var(--tm-surface); color: #a3abbb; pointer-events: none; }

.tm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: var(--tm-r-xs);
  background: var(--tm-surface);
  color: var(--tm-body);
  font-size: var(--tm-fs-caption);
  font-weight: 600;
  letter-spacing: -.01em;
}
.tm-chip--brand { background: var(--tm-brand-soft); color: var(--tm-brand-ink); }
.tm-chip--white { background: white; }

.tm-link { color: var(--tm-brand); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(40, 81, 216, .35); transition: text-decoration-color var(--tm-dur-fast); }
.tm-link:hover { text-decoration-color: currentColor; }

/* ---------- 5. 헤더 ---------- */
.tm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow var(--tm-dur) var(--tm-ease);
}
.tm-header.is-scrolled { box-shadow: 0 1px 0 var(--tm-line); }
.tm-header__inner { display: flex; align-items: center; gap: var(--tm-s-6); min-height: var(--tm-header-h); }
.tm-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 1.1875rem; font-weight: 760; letter-spacing: -.04em; }
.tm-logo__mark { display: flex; align-items: end; gap: 3px; width: 20px; height: 21px; }
.tm-logo__mark::before, .tm-logo__mark::after { content: ""; flex: 1; border-radius: 2.5px; transform: skewY(-15deg); }
.tm-logo__mark::before { height: 13px; background: var(--tm-brand); }
.tm-logo__mark::after { height: 20px; background: #7d9dff; }
.tm-nav { display: flex; gap: var(--tm-s-1); margin-left: auto; }
.tm-nav a { padding: 8px 12px; border-radius: 10px; color: var(--tm-body); font-size: var(--tm-fs-small); font-weight: 600; transition: background-color var(--tm-dur-fast), color var(--tm-dur-fast); }
.tm-nav a:hover { background: var(--tm-surface); color: var(--tm-ink); }
@media (max-width: 860px) {
  .tm-nav { display: none; }
  .tm-header__inner > .tm-btn { margin-left: auto; }
}

/* ---------- 6. 히어로 ---------- */
.tm-hero { padding-block: clamp(40px, 2rem + 4vw, 96px) clamp(64px, 4rem + 3vw, 112px); }
.tm-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.tm-hero__copy { display: grid; gap: var(--tm-s-5); justify-items: start; }
.tm-hero__actions { display: flex; flex-wrap: wrap; gap: var(--tm-s-3); margin-top: var(--tm-s-2); }
.tm-hero__media { position: relative; }
.tm-hero__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--tm-r-xl); background: #aeb8ad; }
.tm-hero__badge {
  position: absolute;
  left: clamp(-28px, -2vw, -12px);
  bottom: clamp(20px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: var(--tm-s-3);
  padding: 12px 18px 12px 12px;
  border-radius: var(--tm-r-md);
  background: white;
  box-shadow: var(--tm-shadow-float);
  transition: transform var(--tm-dur) var(--tm-ease);
}
.tm-hero__badge:hover { transform: translateY(-2px); }
.tm-hero__badge strong { display: block; font-size: var(--tm-fs-small); font-weight: 700; line-height: 1.35; }
.tm-hero__badge small { display: block; color: var(--tm-mute); font-size: var(--tm-fs-caption); line-height: 1.35; }
.tm-yt { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #ff0033; }
.tm-yt::after { content: ""; border-block: 6px solid transparent; border-left: 10px solid white; margin-left: 2px; }
.tm-hero__note { position: absolute; top: 16px; right: 16px; }
@media (max-width: 860px) {
  .tm-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .tm-hero__media { max-width: 420px; }
  .tm-hero__badge { left: 12px; }
}
@media (max-width: 480px) {
  .tm-hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
}

/* ---------- 7. 카드·과정 ---------- */
.tm-card { padding: clamp(24px, 1rem + 1.6vw, 36px); border-radius: var(--tm-r-lg); background: var(--tm-surface); }
.tm-card--white { background: white; }

.tm-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tm-s-4); counter-reset: step; }
.tm-step { display: grid; grid-template-rows: auto 1fr; gap: var(--tm-s-6); overflow: hidden; padding-bottom: 0; }
.tm-step__text { display: grid; gap: var(--tm-s-2); }
.tm-step__label { display: flex; align-items: center; gap: var(--tm-s-2); color: var(--tm-brand-ink); font-size: var(--tm-fs-small); font-weight: 700; }
.tm-step__label::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tm-brand);
  color: white;
  font-size: .75rem;
  font-weight: 700;
}
.tm-step__stage { align-self: end; display: flex; justify-content: center; padding-inline: clamp(0px, 2vw, 24px); }
@media (max-width: 720px) {
  .tm-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 8. 제품 화면 목업 ---------- */
.tm-mock {
  width: min(100%, 380px);
  padding: var(--tm-s-4);
  border-radius: var(--tm-r-md) var(--tm-r-md) 0 0;
  background: white;
  box-shadow: var(--tm-shadow-float);
  font-size: var(--tm-fs-small);
  line-height: 1.55;
}
.tm-mock__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--tm-s-3); color: var(--tm-mute); font-size: var(--tm-fs-caption); font-weight: 600; }

/* 강의 플레이어 */
.tm-player { display: grid; gap: var(--tm-s-3); }
.tm-player__screen { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--tm-board); color: var(--tm-chalk); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.tm-player__screen::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 0; height: 0; border-block: 7px solid transparent; border-left: 11px solid var(--tm-chalk); opacity: .8; }
.tm-progress { height: 4px; border-radius: 2px; background: var(--tm-surface-2); overflow: hidden; }
.tm-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--tm-brand); }
.tm-player__meta { display: flex; justify-content: space-between; gap: var(--tm-s-3); color: var(--tm-mute); font-size: var(--tm-fs-caption); white-space: nowrap; }
.tm-chapters { display: grid; gap: 2px; }
.tm-chapters li { display: flex; justify-content: space-between; gap: var(--tm-s-3); padding: 7px 10px; border-radius: 8px; color: var(--tm-body); }
.tm-chapters li > :last-child { flex: none; }
.tm-chapters li[aria-current] { background: var(--tm-brand-soft); color: var(--tm-brand-ink); font-weight: 650; }

/* 메시지 */
.tm-thread { display: grid; gap: var(--tm-s-3); }
.tm-msg { display: grid; gap: 6px; max-width: 88%; }
.tm-msg__who { color: var(--tm-mute); font-size: var(--tm-fs-caption); font-weight: 600; }
.tm-msg__bubble { padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--tm-surface); color: var(--tm-ink); }
.tm-msg--me { justify-self: end; justify-items: end; }
.tm-msg--me .tm-msg__bubble { border-radius: 16px 4px 16px 16px; background: var(--tm-brand); color: white; }
.tm-attach { display: flex; align-items: center; gap: var(--tm-s-3); padding: 10px 12px; border-radius: 12px; background: var(--tm-surface); font-size: var(--tm-fs-caption); font-weight: 600; color: var(--tm-body); }
.tm-attach__thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; background: repeating-linear-gradient(#fff 0 7px, #dfe5ee 7px 8px); border: 1px solid var(--tm-line); }
.tm-attach__thumb--video { display: grid; place-items: center; background: var(--tm-board); border: 0; }
.tm-attach__thumb--video::after { content: ""; border-block: 6px solid transparent; border-left: 9px solid var(--tm-chalk); margin-left: 2px; }

/* 할 일 */
.tm-todo { display: grid; gap: 2px; }
.tm-todo li { display: flex; align-items: center; gap: var(--tm-s-3); padding: 9px 4px; border-bottom: 1px solid var(--tm-line); }
.tm-todo li:last-child { border-bottom: 0; }
.tm-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c5cddb; }
.tm-check--on { border-color: var(--tm-brand); background: var(--tm-brand); }
.tm-check--on::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); }
.tm-todo__done { color: var(--tm-mute); text-decoration: line-through; }

/* ---------- 9. 칠판 피드백(유일한 강한 포인트) ---------- */
.tm-board-section { background: var(--tm-board); color: var(--tm-chalk); }
.tm-board-section .tm-lead, .tm-board-section .tm-text { color: var(--tm-chalk-mute); }
.tm-board-section :focus-visible { outline-color: var(--tm-mint); }
.tm-board-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
.tm-legend { display: grid; gap: var(--tm-s-3); margin-top: var(--tm-s-6); }
.tm-legend li { display: flex; align-items: center; gap: var(--tm-s-3); color: var(--tm-chalk-mute); font-size: var(--tm-fs-small); }
.tm-legend i { flex: none; width: 28px; height: 3px; border-radius: 2px; }
.tm-legend .is-gold { background: var(--tm-gold); }
.tm-legend .is-mint { background: var(--tm-mint); }

.tm-board {
  position: relative;
  padding: clamp(24px, 1rem + 2.4vw, 48px);
  border-radius: var(--tm-r-xl);
  background: var(--tm-board-raised);
  box-shadow: inset 0 0 0 1px var(--tm-board-line);
  font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem);
  font-weight: 560;
  line-height: 1.5;
  letter-spacing: 0;
}
.tm-board__q { margin-bottom: var(--tm-s-5); padding-bottom: var(--tm-s-4); border-bottom: 1px dashed var(--tm-board-line); color: var(--tm-chalk-mute); font-size: .72em; font-weight: 500; }
.tm-board__lines { display: grid; gap: var(--tm-s-4); }
.tm-board__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tm-board__by { color: var(--tm-chalk-mute); font-size: .6em; font-weight: 600; min-width: 4.2em; }
.tm-math { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-math i { font-family: "Times New Roman", Times, serif; font-size: 1.12em; font-style: italic; font-weight: 400; }

/* 표시: 동그라미·취소선·밑줄 */
.tm-mark { position: relative; display: inline-block; }
.tm-mark > svg { position: absolute; inset: -8px -7px; width: calc(100% + 14px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.tm-mark--gold:not(.tm-mark--strike) { margin-inline: 3px; }
.tm-mark--strike > svg { inset: 0 -4px; width: calc(100% + 8px); height: 100%; }
.tm-mark--under > svg { inset: auto -4px -8px; width: calc(100% + 8px); height: 10px; }
.tm-mark path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tm-mark--gold path { stroke: var(--tm-gold); }
.tm-mark--mint path { stroke: var(--tm-mint); }
.tm-fix { color: var(--tm-mint); }

.tm-note {
  justify-self: start;
  display: inline-block;
  margin-top: var(--tm-s-2);
  padding: 10px 16px 12px;
  border-radius: 4px 18px 18px 18px;
  background: rgba(245, 199, 116, .12);
  box-shadow: inset 0 0 0 1.5px rgba(245, 199, 116, .55);
  color: var(--tm-gold);
  font-family: var(--tm-font-hand);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.2;
}
.tm-note small { display: block; color: var(--tm-chalk-mute); font-family: var(--tm-font); font-size: .55em; font-weight: 600; letter-spacing: -.01em; }

/* 판서 순서 애니메이션: .is-armed(준비) → .is-active(재생) */
.tm-board.is-armed .tm-mark path { stroke-dashoffset: 1; }
.tm-board.is-armed .tm-reveal { opacity: 0; transform: translateY(8px); }
.tm-board.is-active .tm-mark path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--tm-dur-draw) var(--tm-ease) var(--d, 0ms); }
.tm-board.is-active .tm-reveal { opacity: 1; transform: none; transition: opacity 320ms var(--tm-ease) var(--d, 0ms), transform 320ms var(--tm-ease) var(--d, 0ms); }
@media (max-width: 860px) {
  .tm-board-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tm-board__line { flex-direction: column; align-items: start; gap: 4px; }
  .tm-board__by:empty { display: none; }
}

/* ---------- 10. 프로그램 ---------- */
.tm-programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--tm-s-4); }
.tm-program { display: flex; flex-direction: column; align-items: start; gap: var(--tm-s-4); }
.tm-program__desc { color: var(--tm-body); }
.tm-program__facts { display: grid; gap: var(--tm-s-4); width: 100%; margin-block: var(--tm-s-2) var(--tm-s-4); padding-top: var(--tm-s-5); border-top: 1px solid var(--tm-surface-2); }
.tm-program__facts dt { font-size: var(--tm-fs-small); font-weight: 700; }
.tm-program__facts dd { margin-top: 2px; color: var(--tm-body); font-size: var(--tm-fs-small); }
.tm-program .tm-btn { margin-top: auto; }

/* ---------- 11. 선생님 ---------- */
.tm-teacher { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.tm-facts { display: grid; }
.tm-facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--tm-s-4); padding-block: var(--tm-s-5); border-bottom: 1px solid var(--tm-line); }
.tm-facts > div:first-child { padding-top: 0; }
.tm-facts dt { color: var(--tm-mute); font-size: var(--tm-fs-small); font-weight: 600; padding-top: 2px; }
.tm-facts dd { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
@media (max-width: 860px) {
  .tm-teacher { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .tm-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- 12. 자주 묻는 질문 ---------- */
.tm-faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.tm-faq { border-top: 1px solid var(--tm-line); }
.tm-faq details { border-bottom: 1px solid var(--tm-line); }
.tm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--tm-s-4); padding: 22px 4px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--tm-mute); border-bottom: 2px solid var(--tm-mute); transform: translateY(-3px) rotate(45deg); transition: transform var(--tm-dur) var(--tm-ease); }
.tm-faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.tm-faq details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--tm-dur) var(--tm-ease), content-visibility var(--tm-dur) allow-discrete; }
.tm-faq details[open]::details-content { block-size: auto; }
.tm-faq details p { padding: 0 4px 24px; color: var(--tm-body); }
@media (max-width: 860px) {
  .tm-faq-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 13. 마무리 CTA·푸터·모바일 바 ---------- */
.tm-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--tm-s-5) var(--tm-s-7); padding: clamp(32px, 1.5rem + 3vw, 64px); border-radius: var(--tm-r-xl); background: var(--tm-brand); color: white; }
.tm-cta .tm-lead { margin-top: var(--tm-s-3); color: #dfe7ff; }
.tm-cta .tm-btn { flex: none; }
@media (max-width: 720px) {
  .tm-cta { flex-direction: column; align-items: stretch; }
}

.tm-footer { padding-block: var(--tm-s-6) var(--tm-s-7); color: var(--tm-mute); font-size: var(--tm-fs-caption); }
.tm-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--tm-s-3); padding-top: var(--tm-s-5); border-top: 1px solid var(--tm-line); }

.tm-mobile-cta { display: none; }
@media (max-width: 720px) {
  .tm-mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: block;
    padding: 0 var(--tm-gutter) calc(14px + env(safe-area-inset-bottom));
    transform: translateY(140%);
    visibility: hidden;
    transition: transform var(--tm-dur) var(--tm-ease), visibility 0s linear var(--tm-dur);
  }
  .tm-mobile-cta .tm-btn { box-shadow: 0 10px 28px -8px rgba(19, 26, 43, .45); }
  .tm-mobile-cta.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
  body.has-mobile-cta .tm-footer { padding-bottom: 104px; }
}

/* ---------- 14. 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .tm-board.is-armed .tm-mark path { stroke-dashoffset: 0; }
  .tm-board.is-armed .tm-reveal { opacity: 1; transform: none; }
}
