/* FAA A&P Study 소개 웹 — 의존성 0, 외부 요청 0(기기 글꼴·인라인 SVG).
   색: 앱 ui/theme/Tokens.kt(Palette 라이트·다크, Cover)·colors.xml(아이콘) 그대로 — 아래 생성 구역은 tools/gen_site.py 가 쓴다.
   글자 위계(디자인 검사 «평평한 위계» 대응): 히어로 제목 ≥ 섹션 제목 × 1.3 · 섹션 제목 ≥ 카드 제목 × 1.5 · 카드 제목 > 본문 (360px 에서도).
   모션은 두 가지뿐: ① 등장(스크롤 진입 시 한 번, 800ms·(0.16,1,0.3,1)·스태거 80ms — WEB-CRAFT §4) ② 히어로 카드의 «정답 공개»(앱 연습 화면과 같은 150ms 색 전환 + 해설 등장).
   prefers-reduced-motion 이면 둘 다 끄고 바로 최종 모습. */

/* gen:tokens */
/* 생성 구역 — tools/gen_site.py 가 앱 Tokens.kt(Palette·Cover)·colors.xml 에서 쓴다. 손으로 고치지 말 것. 주석 숫자 = WCAG 대비. */
:root {
  --cover-top: #0E1A33;
  --cover-bottom: #070D1A;
  --cover-ink: #EEF2F8;
  --cover-accent: #8EAEFF;
  --cover-ink-2: rgba(238, 242, 248, 0.74);
  --icon-bg: #13264D;
  --icon-fg: #EEF2F8;
  --icon-accent: #8EAEFF;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #EDF1F6;
  --line: #D3DAE4;
  --ink: #0F1726;  /* bg 16.7 · surface 17.9 · surfaceRaised 15.8 */
  --ink-2: #4A5567;  /* bg 7.0 · surface 7.5 · surfaceRaised 6.6 */
  --accent: #1E4FC2;  /* bg 6.6 · surface 7.1 · accentSoft 6.1 */
  --on-accent: #FFFFFF;  /* accent 7.1 */
  --accent-soft: #E6EDFC;
  --correct: #17693A;  /* correctBg 5.9 · surface 6.7 */
  --correct-bg: #E3F3E8;
  --wrong: #B42318;  /* wrongBg 5.6 · surface 6.6 */
  --wrong-bg: #FCE8E6;
  --caution: #B42318;  /* surface 6.6 */
  --grid: rgba(211, 218, 228, 0.55);
  --fan: rgba(30, 79, 194, 0.06);
  --glow: rgba(30, 79, 194, 0.14);
  --nav-bg: rgba(245, 247, 250, 0.8);
  --shadow-1: 0 1px 2px rgba(15, 23, 38, 0.06), 0 4px 16px rgba(15, 23, 38, 0.06);
  --shadow-2: 0 2px 6px rgba(15, 23, 38, 0.08), 0 18px 48px rgba(15, 23, 38, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0E131B;
    --surface: #161D28;
    --surface-2: #202937;
    --line: #2F3A4A;
    --ink: #E8ECF2;  /* bg 15.7 · surface 14.3 · surfaceRaised 12.4 */
    --ink-2: #A3AEBD;  /* bg 8.3 · surface 7.5 · surfaceRaised 6.5 */
    --accent: #8EAEFF;  /* bg 8.6 · surface 7.8 · accentSoft 6.6 */
    --on-accent: #0A1633;  /* accent 8.2 */
    --accent-soft: #1C2A47;
    --correct: #6FCF97;  /* correctBg 7.5 · surface 8.9 */
    --correct-bg: #143022;
    --wrong: #FF8C82;  /* wrongBg 7.0 · surface 7.5 */
    --wrong-bg: #3B1916;
    --caution: #FF8C82;  /* surface 7.5 */
    --grid: rgba(47, 58, 74, 0.55);
    --fan: rgba(142, 174, 255, 0.07);
    --glow: rgba(142, 174, 255, 0.16);
    --nav-bg: rgba(14, 19, 27, 0.8);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .30);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .45), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E131B;
  --surface: #161D28;
  --surface-2: #202937;
  --line: #2F3A4A;
  --ink: #E8ECF2;  /* bg 15.7 · surface 14.3 · surfaceRaised 12.4 */
  --ink-2: #A3AEBD;  /* bg 8.3 · surface 7.5 · surfaceRaised 6.5 */
  --accent: #8EAEFF;  /* bg 8.6 · surface 7.8 · accentSoft 6.6 */
  --on-accent: #0A1633;  /* accent 8.2 */
  --accent-soft: #1C2A47;
  --correct: #6FCF97;  /* correctBg 7.5 · surface 8.9 */
  --correct-bg: #143022;
  --wrong: #FF8C82;  /* wrongBg 7.0 · surface 7.5 */
  --wrong-bg: #3B1916;
  --caution: #FF8C82;  /* surface 7.5 */
  --grid: rgba(47, 58, 74, 0.55);
  --fan: rgba(142, 174, 255, 0.07);
  --glow: rgba(142, 174, 255, 0.16);
  --nav-bg: rgba(14, 19, 27, 0.8);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .30);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .45), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
/* /gen:tokens */

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 글자 크기 — 단계마다 1.3배 이상 벌린다 */
  --fs-body: clamp(1rem, .35vw + .92rem, 1.125rem);
  --fs-h3: clamp(1.15rem, .4vw + 1.05rem, 1.3rem);
  --fs-h2: clamp(1.75rem, 3.4vw + .9rem, 3.5rem);
  --fs-hero: clamp(2.35rem, 6.2vw + .6rem, 4.75rem);
  --fs-stat: clamp(2.25rem, 4vw + 1rem, 3.75rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.65, 0, .35, 1);
  --dur: 800ms;
  --stagger: 80ms;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 11vw, 160px);
  --r-card: 24px;
  --r-row: 14px;
  --r-btn: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.65 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease-soft), color .4s var(--ease-soft);
}
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h2 { font: 700 var(--fs-h2)/1.06 var(--display); letter-spacing: -.028em; }
h3 { font: 650 var(--fs-h3)/1.3 var(--display); letter-spacing: -.012em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
blockquote, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; scroll-margin-top: 72px; }

.skip-link { position: absolute; left: 12px; top: -120px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* 도면 격자(정비 도면 느낌) — 장식 */
.blueprint { position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 28%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 72% 28%, #000 10%, transparent 72%); }

/* ---------- 내비 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.2) blur(16px); backdrop-filter: saturate(1.2) blur(16px); border-bottom: 1px solid var(--line); }
.nav { transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: var(--shadow-1); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark { flex: none; display: block; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; }
.brand__svg { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font: 700 1.02rem/1.2 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand__text small { font-size: .76rem; color: var(--ink-2); white-space: nowrap; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: .94rem; color: var(--ink-2); text-decoration: none; padding: 8px 0; transition: color .3s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .3s; }
.theme:hover { border-color: var(--accent); }
.theme svg { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.theme__moon { fill: var(--ink); stroke: none; }
.theme__sun { display: none; }
:root[data-theme="dark"] .theme__moon { display: none; }
:root[data-theme="dark"] .theme__sun { display: inline; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme__moon { display: none; }
  :root[data-theme="auto"] .theme__sun { display: inline; }
}

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--r-btn); border: 1px solid transparent; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease-out), background-color .3s, border-color .3s, box-shadow .3s; }
.btn:active { transform: scale(1.01, .97); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-1); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }

/* ---------- 공통 머리 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 .76rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; justify-items: start; }
.sub { color: var(--ink-2); max-width: 60ch; }
.textlink { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 104px) 0 clamp(64px, 8vw, 120px); }
.hero__sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__glow { position: absolute; width: 52vmax; height: 52vmax; right: -16vmax; top: -22vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero__fan { position: absolute; width: min(64vmax, 860px); height: auto; aspect-ratio: 1; right: -14vmax; top: -10vmax; color: var(--fan); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__title { font: 750 var(--fs-hero)/1.0 var(--display); letter-spacing: -.04em; }
.ln { display: block; }
.ln--accent { color: var(--accent); }
.hero__lead { color: var(--ink-2); font-size: clamp(1.05rem, .45vw + .95rem, 1.22rem); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-2); }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__disc { font-size: .84rem; color: var(--ink-2); max-width: 56ch; padding-top: 12px; border-top: 1px solid var(--line); }
.hero__visual { display: flex; justify-content: center; }

/* ---------- 문제 카드(히어로) — 앱 연습 화면 모양 ---------- */
.qcard { position: relative; width: min(100%, 500px); display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.qcard__top, .quiz__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: .84rem; color: var(--ink-2); }
.qcard__subj, .quiz__subj { font-weight: 600; color: var(--ink); }
.qcard__code, .quiz__code { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .74rem; }
.qcard__pub, .quiz__pub { font-size: .82rem; color: var(--ink-2); }
.qcard__stem, .quiz__stem { font: 650 clamp(1.05rem, .35vw + 1rem, 1.18rem)/1.45 var(--display); color: var(--ink); }
.qcard__opts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 44px 10px 12px; border-radius: var(--r-row); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; font-size: .97rem; line-height: 1.4; transition: background-color .15s, border-color .15s, color .15s; }
.opt__l { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font: 600 .82rem/1 var(--mono); color: var(--ink-2); background: var(--bg); transition: background-color .15s, border-color .15s, color .15s; }
.opt__t { min-width: 0; }
.opt__mark { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; opacity: 0; transition: opacity .15s; }
.opt__mark::before, .opt__mark::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.opt--right { background: var(--correct-bg); border-color: var(--correct); }
.opt--right .opt__l { background: var(--correct); border-color: var(--correct); color: var(--correct-bg); }
.opt--right .opt__mark { opacity: 1; color: var(--correct); }
.opt--right .opt__mark::before { width: 2.5px; height: 8px; left: 3px; top: 8px; transform: rotate(-45deg); }
.opt--right .opt__mark::after { width: 2.5px; height: 15px; left: 10px; top: 1px; transform: rotate(40deg); }
.opt--wrong { background: var(--wrong-bg); border-color: var(--wrong); }
.opt--wrong .opt__l { background: var(--wrong); border-color: var(--wrong); color: var(--wrong-bg); }
.opt--wrong .opt__mark { opacity: 1; color: var(--wrong); }
.opt--wrong .opt__mark::before, .opt--wrong .opt__mark::after { width: 2.5px; height: 16px; left: 8px; top: 1px; }
.opt--wrong .opt__mark::before { transform: rotate(45deg); }
.opt--wrong .opt__mark::after { transform: rotate(-45deg); }
.qcard__exp { display: grid; gap: 12px; padding-top: 4px; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.qcard__res { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--correct); }
.qcard__tick { width: 8px; height: 8px; border-radius: 50%; background: var(--correct); }
.qcard__why { font-size: .93rem; color: var(--ink-2); }
.qcard__why strong, .quiz__exp strong { color: var(--ink); font-weight: 650; }
/* ② 정답 공개 — JS 가 .is-done 을 붙이기 전엔 «아직 안 고른» 모습. JS 가 없으면 처음부터 최종 모습. */
.js .qcard:not(.is-done) .opt--right { background: var(--surface); border-color: var(--line); }
.js .qcard:not(.is-done) .opt--right .opt__l { background: var(--bg); border-color: var(--line); color: var(--ink-2); }
.js .qcard:not(.is-done) .opt--right .opt__mark { opacity: 0; }
.js .qcard:not(.is-done) .qcard__exp { opacity: 0; transform: translateY(8px); }
.js .qcard.is-done .qcard__exp { transition-delay: .25s; }

/* 인용 블록 */
.ref { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.ref__k { font: 600 .7rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ref__item { display: grid; gap: 6px; }
.ref__item + .ref__item { padding-top: 10px; border-top: 1px solid var(--line); }
.ref blockquote { font-size: .93rem; line-height: 1.55; color: var(--ink); }
.ref figcaption { font-size: .76rem; color: var(--ink-2); letter-spacing: .01em; }
.nw { white-space: nowrap; }

/* ---------- 숫자 띠 ---------- */
.stats { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: grid; align-content: start; gap: 8px; padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font: 750 var(--fs-stat)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat__label { color: var(--ink-2); font-size: .92rem; line-height: 1.4; }

/* ---------- 세 시험 ---------- */
.subjs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.subj { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s; }
.subj:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.subj__head { display: flex; align-items: center; gap: 12px; }
.subj__head h3 { font-size: clamp(1.35rem, .8vw + 1.15rem, 1.6rem); }
.subj__code { padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .06em; }
.subj__num { display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); }
.subj__num strong { font: 750 clamp(2.4rem, 3vw + 1.2rem, 3.25rem)/1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.subj__facts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .93rem; color: var(--ink-2); }
.subj__facts li { position: relative; padding-left: 18px; }
.subj__facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent); }
.subj__exam { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.subj__k { font: 600 .7rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- 기능 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { display: grid; align-content: start; gap: 12px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease-out), box-shadow .4s; }
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.feat p { color: var(--ink-2); }
.feat > div { display: grid; gap: 12px; align-content: start; }
.feat--wide { grid-column: span 3; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: center; }
.feat--wide h3 { font: 700 clamp(1.5rem, 1.6vw + 1rem, 2.1rem)/1.15 var(--display); letter-spacing: -.02em; }
.mini { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini__row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px 8px 10px; border-radius: var(--r-row); border: 1px solid var(--line); font-size: .93rem; font-weight: 600; }
.mini__l { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font: 600 .8rem/1 var(--mono); }
.mini__row--right { background: var(--correct-bg); border-color: var(--correct); color: var(--correct); }
.mini__row--right .mini__l { background: var(--correct); color: var(--correct-bg); }
.mini__row--wrong { background: var(--wrong-bg); border-color: var(--wrong); color: var(--wrong); }
.mini__row--wrong .mini__l { background: var(--wrong); color: var(--wrong-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .93rem; font-weight: 600; }
.chips li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }

/* ---------- 직접 풀어 보기 ---------- */
.try__inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.try .head { margin-bottom: 0; position: sticky; top: 104px; }
.demo { display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 26px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tab { min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .94rem; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.tab:hover { color: var(--ink); }
.quiz { display: grid; gap: 14px; }
.js .quiz:not(.is-active) { display: none; }
.quiz + .quiz { padding-top: 20px; border-top: 1px solid var(--line); }
.js .quiz + .quiz { padding-top: 0; border-top: 0; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opts .opt { cursor: pointer; }
.quiz__opts .opt:hover:not(:disabled) { border-color: var(--accent); }
.quiz__opts .opt:hover:not(:disabled) .opt__l { border-color: var(--accent); color: var(--accent); }
.quiz__opts .opt:disabled { cursor: default; }
.quiz.is-done .opt:not(.opt--right):not(.opt--wrong) { color: var(--ink-2); }
.quiz__status { min-height: 1.6em; font-weight: 700; }
.quiz__status:empty { min-height: 0; margin-top: -14px; } /* 고르기 전엔 자리를 비운다(aria-live 라 숨기지는 않는다) */
.quiz__status.is-ok { color: var(--correct); }
.quiz__status.is-no { color: var(--wrong); }
.quiz__exp { display: grid; gap: 12px; }
.quiz__exp > p { font-size: .95rem; color: var(--ink-2); }
.js .quiz:not(.is-done) .quiz__exp { display: none; }
.js .quiz.is-done .quiz__exp { animation: rise .45s var(--ease-out) both; }
.quiz__again { justify-self: start; margin-top: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 개인정보 ---------- */
.privacy__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
#privacy .head { margin-bottom: 0; }
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pitem { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.pitem h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--accent); border-radius: 2px; }
.pitem p { color: var(--ink-2); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
#faq .head { margin-bottom: 0; }
.faq__list { display: grid; gap: 12px; }
.acc { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.acc[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 650; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc__ic { flex: none; position: relative; width: 14px; height: 14px; }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.6px; margin-top: -.8px; background: var(--accent); border-radius: 2px; transition: transform .35s var(--ease-out); }
.acc__ic::after { transform: rotate(90deg); }
.acc[open] .acc__ic::after { transform: rotate(0deg); }
.acc__body { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- 받기(아직 공개 전) ---------- */
.download { position: relative; overflow: hidden; margin-top: var(--section); padding: clamp(72px, 9vw, 120px) 0; background: linear-gradient(180deg, var(--cover-top), var(--cover-bottom)); color: var(--cover-ink); text-align: center; }
.blueprint--cover { --grid: rgba(142, 174, 255, .14); opacity: 1; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 10%, transparent 75%); }
.download__inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.download h2 { color: var(--cover-ink); max-width: 22ch; }
.eyebrow--cover { color: var(--cover-accent); }
.download__sub { color: var(--cover-ink-2); max-width: 52ch; }
.textlink--cover { color: var(--cover-accent); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.store { display: inline-grid; gap: 2px; min-height: 60px; padding: 10px 22px; border-radius: 16px; border: 1px solid rgba(238, 242, 248, .22); background: rgba(238, 242, 248, .06); color: var(--cover-ink); text-decoration: none; text-align: left; }
.store small { font-size: .74rem; color: var(--cover-ink-2); }
.store strong { font-size: 1.05rem; }

/* ---------- 꼬리말 ---------- */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); background: var(--bg); }
.foot__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: start; }
.foot__brand { display: grid; gap: 4px; }
.foot__brand strong { font: 700 1.2rem/1.2 var(--display); letter-spacing: -.01em; }
.foot__brand span, .foot__disc { color: var(--ink-2); font-size: .9rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-2); }
.foot__links a { color: var(--ink); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot__links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.foot__links a[aria-current="page"] { color: var(--accent); }
.foot__links span { min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- ① 등장 모션(JS 가 있을 때만 숨긴다 — 실패해도 본문이 보인다) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }

/* ---------- 글 문서(/faaprep/privacy · terms · support — tools/site_docs.py 가 docs/*_en.md 에서 만든다) ---------- */
.wrap--read { max-width: calc(38rem + var(--gutter) * 2); }
.doc__head { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 112px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.doc__headin { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; }
.doc__title { font: 750 clamp(2.2rem, 4.6vw + .6rem, 4.25rem)/1.04 var(--display); letter-spacing: -.035em; }
.doc__updated { color: var(--ink-2); font-size: .95rem; }
.doc__body { display: grid; gap: clamp(40px, 5vw, 56px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(80px, 10vw, 128px); }
.doc__sec { display: grid; gap: 16px; scroll-margin-top: 88px; }
.doc__sec h2 { font: 700 clamp(1.45rem, 1.8vw + 1rem, 2rem)/1.15 var(--display); letter-spacing: -.02em; }
.doc__sec p, .doc__sec li { color: var(--ink-2); }
.doc__sec strong { color: var(--ink); font-weight: 650; }
.doc__lead { font-size: 1.12em; line-height: 1.6; color: var(--ink) !important; }
.doc__list, .doc__sub { list-style: none; margin: 0; padding: 0; display: grid; }
.doc__list { gap: 14px; }
.doc__list > li { position: relative; padding-left: 24px; }
.doc__list > li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 9px; height: 2px; background: var(--accent); }
.doc__sub { gap: 10px; margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.doc__sub li { position: relative; padding-left: 18px; }
.doc__sub li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.doc__body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc__body a:hover { text-decoration-thickness: 2px; }
.doc__sec--card { padding: clamp(24px, 3.4vw, 36px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.doc__sec--card a[href^="mailto:"] { font: 650 clamp(1.15rem, 1.4vw + .8rem, 1.45rem)/1.3 var(--display); }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__inner, .try__inner, .privacy__inner, .faq__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { justify-content: flex-start; }
  .try .head { position: static; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .subjs, .grid { grid-template-columns: minmax(0, 1fr); }
  .feat--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .foot__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) and (max-width: 960px) {
  .subjs, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat--wide { grid-column: span 2; }
  .subj:last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .brand__text small { display: none; }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { flex: 1 1 auto; }
  .stat { padding: 22px 12px; }
  .qcard { padding: 16px; }
  .opt { padding-right: 40px; }
}
@media (max-width: 480px) {
  .nav__cta { display: none; }
}

/* ---------- 모션 줄이기 — 전부 끄고 바로 보이게 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .qcard:not(.is-done) .opt--right { background: var(--correct-bg); border-color: var(--correct); }
  .js .qcard:not(.is-done) .opt--right .opt__l { background: var(--correct); border-color: var(--correct); color: var(--correct-bg); }
  .js .qcard:not(.is-done) .opt--right .opt__mark { opacity: 1; }
  .js .qcard:not(.is-done) .qcard__exp { opacity: 1; transform: none; }
}
