/* ============================================================================
   Tracer 웹사이트 — 기반 스타일 (리셋 · 타이포 · 컨테이너 · 그리드 · 가이드)
   값은 전부 tokens.css 에서 옵니다. 여기서는 숫자를 직접 적지 않습니다.
   (예외: @media 는 var() 를 못 쓰므로 tokens.css 의 --bp-* 와 같은 값을 직접 적음)
   ========================================================================== */

/* ---------- 스케일 기준: 1rem = 10px ---------- */
html {
  font-size: 10px;
  -webkit-text-size-adjust: 100%;
}
/* --bp-fixed(1264px) 미만: 뷰포트에 비례해 rem 축소 → 1264 에서 정확히 10px */
@media (max-width: 1263.98px) {
  html { font-size: calc(100vw / 126.4); }
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* 페이지 내 이동은 site.js 가 처리 (URL 해시 안 씀, 짧고 빠른 애니메이션) */
body {
  font-family: var(--font-sans);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  letter-spacing: var(--t-body-ls);
  font-weight: var(--t-body-w);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* 한글 페이지 보정 — 영문 기준 자간(-0.022em)은 한글에 좁고, 단어 중간에서 줄이 끊기면 안 됨.
   :lang() 이 아니라 [lang] 로 잡아야 .t-* 가 직접 선언한 letter-spacing 을 이길 수 있음 */
html[lang="ko"] { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] body { font-family: var(--font-sans-ko); letter-spacing: -0.01em; }
html[lang="ko"] .t-intro,
html[lang="ko"] .t-caption { letter-spacing: -0.01em; }
html[lang="ko"] .t-h1,
html[lang="ko"] .t-h2,
html[lang="ko"] .t-h3 { letter-spacing: -0.03em; }
/* 언어별 제목 크기. 굵기 700 은 이제 기본값이라 여기서 다시 지정하지 않습니다.
   한글은 글자가 사각형을 꽉 채워 같은 px 에서도 줄이 길어지므로 크기만 한 단계 위로(88→95, 76→85).
   h3 은 영문과 같은 50px. 다른 언어를 추가할 때도 html[lang="xx"] 블록을 하나 더 두고 크기만 조절합니다. */
html[lang="ko"] .t-h1 { font-size: 9.5rem; }
html[lang="ko"] .t-h2 { font-size: 8.5rem; }

/* 일본어·중국어 보정 — 한글과 같은 이유(글자가 사각형을 꽉 채워 같은 px 에서도 줄이 길어짐)로
   제목 크기를 한 단계 올립니다. 다만 word-break: keep-all 은 쓰지 않습니다 —
   한국어는 어절 사이에 공백이 있지만 일본어·중국어는 없어서, keep-all 을 걸면 줄이 아예 안 나뉩니다.
   대신 line-break: strict 로 금칙 처리(줄 끝에 오면 안 되는 문자)를 맡깁니다 */
html[lang="ja"] body { font-family: var(--font-sans-ja); }
html[lang="zh-Hans"] body { font-family: var(--font-sans-zh-hans); }
html[lang="zh-Hant"] body { font-family: var(--font-sans-zh-hant); }
html[lang="ja"], html[lang="zh-Hans"], html[lang="zh-Hant"] { line-break: strict; overflow-wrap: break-word; }
html[lang="ja"] body, html[lang="zh-Hans"] body, html[lang="zh-Hant"] body { letter-spacing: 0; }
html[lang="zh-Hans"] .t-h1, html[lang="zh-Hant"] .t-h1 { font-size: 9.5rem; letter-spacing: -0.02em; }
/* 일본어만 따로 낮춥니다. 같은 CJK 라도 글자 수가 다릅니다 —
   "理想の / スクリーンショットアプリ。" 는 둘째 줄이 13자라 9.5rem 이면 1200px 를 넘어 3줄이 됩니다.
   중국어는 "截图工具。" 5자라 여유가 큽니다. 8.6rem 이면 둘째 줄이 1087px 로 113px 여유가 남습니다 */
html[lang="ja"] .t-h1 { font-size: 8.6rem; letter-spacing: -0.02em; }
html[lang="ja"] .t-h2, html[lang="zh-Hans"] .t-h2, html[lang="zh-Hant"] .t-h2 { font-size: 8.5rem; letter-spacing: -0.02em; }
html[lang="ja"] .t-h3, html[lang="zh-Hans"] .t-h3, html[lang="zh-Hant"] .t-h3 { letter-spacing: -0.02em; }
html[lang="ja"] .doc__title, html[lang="zh-Hans"] .doc__title, html[lang="zh-Hant"] .doc__title { font-size: 5rem; font-weight: 700; }

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 컨테이너 (콘텐츠 영역) ----------
   .container : 최대 --content 너비, 화면 가장자리에서 --margin 확보, 가운데 정렬
   .bleed     : 컨테이너 안에서 화면 끝까지 풀폭으로 빠져나감 (배경·이미지용)   */
.container {
  width: 100%;
  max-width: calc(var(--content) + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ---------- 그리드 ----------
   .grid          : --cols 컬럼, 고정 px 거터
   .span-N        : N 컬럼 차지     .start-N : N번째 컬럼에서 시작
   .cols-N        : 중첩 그리드의 컬럼 수 지정 (부모 span 과 같은 N 을 주면 거터 라인이 맞음)
   예) <div class="grid"><div class="span-6"><div class="grid cols-6">…</div></div></div> */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}
.cols-1  { --cols: 1; }  .cols-2  { --cols: 2; }  .cols-3  { --cols: 3; }  .cols-4  { --cols: 4; }
.cols-5  { --cols: 5; }  .cols-6  { --cols: 6; }  .cols-7  { --cols: 7; }  .cols-8  { --cols: 8; }
.cols-9  { --cols: 9; }  .cols-10 { --cols: 10; } .cols-11 { --cols: 11; } .cols-12 { --cols: 12; }
.span-1  { grid-column: span 1; }  .span-2  { grid-column: span 2; }  .span-3  { grid-column: span 3; }
.span-4  { grid-column: span 4; }  .span-5  { grid-column: span 5; }  .span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }  .span-8  { grid-column: span 8; }  .span-9  { grid-column: span 9; }
.span-10 { grid-column: span 10; } .span-11 { grid-column: span 11; } .span-12 { grid-column: span 12; }
.start-1  { grid-column-start: 1; }  .start-2  { grid-column-start: 2; }  .start-3  { grid-column-start: 3; }
.start-4  { grid-column-start: 4; }  .start-5  { grid-column-start: 5; }  .start-6  { grid-column-start: 6; }
.start-7  { grid-column-start: 7; }  .start-8  { grid-column-start: 8; }  .start-9  { grid-column-start: 9; }
.start-10 { grid-column-start: 10; } .start-11 { grid-column-start: 11; } .start-12 { grid-column-start: 12; }

/* ---------- 타이포 유틸 ---------- */
/* 제목 스케일 — 클래스 이름 = HTML 태그 이름. .t-h1 은 <h1> 에만, .t-h2 는 <h2> 에만 붙습니다.
   이 스케일을 안 쓰는 제목(앱 정보·문의처럼 작게 가는 h2)은 t-* 를 붙이지 않고 컴포넌트 클래스에서 크기를 정합니다.
   특정 위치에만 추가 속성이 필요하면 .hero__title 처럼 컴포넌트 클래스를 같이 붙여 얹습니다. */
.t-h1 { font-size: 8.8rem; line-height: 1.045;  letter-spacing: -0.022em; font-weight: 700; }   /* 히어로 */
.t-h2 { font-size: 7.6rem; line-height: 1.06;   letter-spacing: -0.022em; font-weight: 700; }   /* 섹션 제목 */
.t-h3 { font-size: 5rem;   line-height: 1.08;   letter-spacing: -0.012em; font-weight: 700; }   /* 피처 제목 */
.t-eyebrow { font-size: 2.8rem; line-height: 1.1429; letter-spacing: 0.007em; font-weight: 600; }
.t-intro   { font-size: var(--t-intro-size);   line-height: 1.381;   letter-spacing: 0.011em;   font-weight: 400; }
.t-body    { font-size: var(--t-body-size);    line-height: var(--t-body-lh);    letter-spacing: var(--t-body-ls);    font-weight: var(--t-body-w); }
.t-caption { font-size: var(--t-caption-size); line-height: 1.3334; letter-spacing: -0.01em; font-weight: 400; color: var(--fg-tertiary); }
.t-secondary { color: var(--fg-secondary); }
.t-gradient {   /* 그라디언트 텍스트: 배경을 글자 모양으로 클리핑. width: fit-content 로 그라디언트가 박스가 아닌 글자 폭에 걸침 */
  width: fit-content;
  background-image: linear-gradient(var(--gradient-angle), var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.eyebrow {   /* 섹션 상단 소제목: 대문자 + 넓은 자간 */
  font-size: 2rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-secondary);
}
/* 아이브로우–제목 사이 간격. 기본은 .stack 의 2.4rem, 영문만 1.3rem 으로 좁힘
   (영문 아이브로우는 대문자라 시각적 높이가 낮아 같은 간격에서도 더 벌어져 보임) */
html[lang="en"] .eyebrow + * { margin-top: 1.3rem; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }   /* 긴 언어·합성어 대비 */
/* 전역 p max-width 는 두지 않음 — 가운데 정렬 컨테이너에서 박스가 왼쪽에 붙는 원인.
   본문 줄 길이 제한이 필요하면 .measure 를 붙일 것 (박스도 가운데 정렬됨) */
.measure { max-width: 65ch; margin-inline: auto; }

/* ---------- 섹션 간격 ---------- */
.section { padding-block: var(--space-section); }
.section--alt { background: var(--bg-alt); }
.stack > * + * { margin-top: var(--space-stack); }

/* ---------- 상단 내비 ----------
   기본: 히어로 위 투명 + 흰 글자.  .nav--solid: 배경 채움 + 본문색 (site.js 가 스크롤에 따라 토글) */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  color: var(--hero-fg);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.nav--solid {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--divider);
}
.nav .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
/* 아이콘(24px) 옆에서 글자가 가벼워 보이지 않게 굵기 650 · 자간 +0.01em.
   대문자(TRACER)로 가지 않는 이유: 맥 앱 워드마크는 타이틀 케이스가 관례이고,
   17px 에서는 대소문자 윤곽이 있는 쪽이 더 빨리 읽힙니다. 푸터 NM UX Lab. 과도 일관됩니다 */
.nav__brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 650; font-size: 17px; letter-spacing: 0.01em; }
.nav__brand:hover { color: inherit; text-decoration: none; }
.nav__brand img { width: var(--nav-icon-size); height: var(--nav-icon-size); border-radius: 6px; }
.nav__links { display: flex; gap: 32px; font-size: var(--nav-link-size); letter-spacing: -0.01em; }
.nav__links a { color: inherit; opacity: 0.8; }
.nav__links a:hover { color: inherit; opacity: 1; text-decoration: none; }
.nav__links { align-items: center; }
/* 메뉴 끝 Download — 버튼형. 선택자를 .nav__links a 보다 구체적으로 두어
   솔리드 상태의 color: inherit(검정) 에 덮이지 않고 항상 흰 글자 유지 */
.nav__links .nav__btn, .nav__links .nav__btn:hover {
  display: inline-flex; align-items: center;
  min-height: var(--nav-btn-height); padding: 0 14px;
  border-radius: 999px; background: var(--accent); color: #fff; opacity: 1; font-weight: 500;
  transition: background var(--duration) var(--ease);
}
.nav__links .nav__btn:hover { background: var(--accent-hover); }

/* 언어 드롭다운 — 고정 px */
.nav__lang { position: relative; }
.nav__lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--nav-btn-height); padding: 0 8px; border-radius: 999px;
  font-size: var(--nav-link-size); letter-spacing: -0.01em; color: inherit; opacity: 0.8;
}
.nav__lang-btn:hover, .nav__lang-btn[aria-expanded="true"] { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav__lang-btn svg { width: 14px; height: 14px; }
.nav__lang-btn .nav__lang-caret { width: 9px; height: 6px; transition: transform var(--duration) var(--ease); }
.nav__lang-btn[aria-expanded="true"] .nav__lang-caret { transform: rotate(180deg); }
.nav__lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 10;
  min-width: 160px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--divider); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: none;
}
.nav__lang[data-open] .nav__lang-menu { display: block; }
.nav__lang-menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--fg); opacity: 1;
}
.nav__lang-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.nav__lang-menu a[aria-current="true"]::after { content: "✓"; font-size: 12px; color: var(--accent); }
.nav__lang-menu a[aria-disabled="true"] { color: var(--fg-tertiary); pointer-events: none; }
.nav__lang-menu small { font-size: 11px; color: var(--fg-tertiary); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 4.4rem; padding: 0.8rem 2.4rem; text-align: center;   /* 긴 라벨은 2줄로 확장 */
  border-radius: 999px;
  font-size: var(--t-body-size); font-weight: 500; letter-spacing: var(--t-body-ls);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

/* ---------- 히어로 (풀스크린 영상 + 딤 + 텍스트) ----------
   레이어: 포스터 이미지(즉시) → 영상(지연 로드, 재생 시작 시 페이드인) → 딤 오버레이 → 텍스트 */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding-block: calc(var(--nav-height) + var(--space-block)) var(--space-block);
  background: #09090C;
  color: var(--hero-fg);
  text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -o-object-fit: cover; object-fit: cover; object-position: center;
}
/* 포스터 → 영상 전환은 즉시. 페이드를 걸면 정지 포스터와 이미 움직이는 영상이 겹쳐
   서로 다른 프레임이 섞여 보임. .is-ready 는 영상에 실제 프레임이 생긴 순간 붙음 */
.hero__media video { opacity: 0; }
.hero__media video.is-ready { opacity: 1; }
.hero__dim { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 45%, rgba(9, 9, 12, 0.28), rgba(9, 9, 12, 0.58) 68%),
              linear-gradient(rgba(9, 9, 12, 0.32), rgba(9, 9, 12, 0.72)); }
.hero__copy { margin-inline: auto; text-shadow: 0 2px 24px rgba(9, 9, 12, 0.78); }   /* 폭 제한은 리드 문단(.hero__lede)에만 — 제목이 90rem 에 막혀 2줄로 떨어지지 않게 */
.hero__copy > * { margin-inline: auto; }   /* max-width 가 있는 p 도 박스 자체를 가운데로 */
.hero .eyebrow { color: var(--hero-fg-secondary); }
.hero__title { color: var(--hero-fg); }   /* 줄바꿈은 HTML <br> 로 지정 (The ideal / screen capture app.) */
.hero__lede { color: var(--hero-fg-secondary); max-width: 90rem; text-wrap: balance; }   /* 리드 문단 최대 폭 900px. balance = 줄 길이를 고르게 나눔 — pretty 는 마지막 줄만 손봐서 두 줄이 한쪽으로 쏠렸음 */
.hero__actions { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-top: var(--space-block); text-shadow: none; }
/* Apple App Store 배지 — 공식 아트워크(tools.applemediaservices.com)를 그대로 씁니다.
   Apple 가이드에 따라 색·비율·문구·효과를 바꾸지 않고, 주변 여백은 배지 높이의 1/10 이상 확보합니다.
   폭을 auto 로 두는 이유: 언어별로 배지 가로폭이 달라짐 (영문 156.1 / 한글 161.0 단위 viewBox) */
.badge { display: inline-block; line-height: 0; }
.badge img { height: 5.6rem; width: auto; }
.badge:hover { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .hero__media video { display: none; } }

/* ---------- 피처 (교차 레이아웃) ----------
   .feature : 12컬럼 그리드 한 행. 텍스트 --feature-text-cols, 미디어 --feature-media-cols
   홀수 행: 텍스트 왼쪽 → 미디어 오른쪽 / 짝수 행: 미디어 왼쪽 → 텍스트 오른쪽 (DOM 순서는 항상 텍스트 먼저) */
/* 인트로 상하 여백은 아이템 간격(--feature-gap) 이상 — 그보다 좁으면 첫 아이템에 붙어 보임.
   섹션 padding-top(120) 이 이미 있으므로 위쪽은 차액만 더함 */
.features__intro {
  margin-inline: auto; text-align: center;   /* 제목 줄바꿈은 HTML 의 <br> 로 지정 (관사·전치사가 줄 끝에 남지 않는 지점) */
  margin-top: calc(var(--feature-gap) - var(--space-section));
  margin-bottom: var(--feature-gap);
}
.features__intro > * { margin-inline: auto; }
.features__list { display: flex; flex-direction: column; gap: var(--feature-gap); }
.feature {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}
.feature > * { grid-row: 1; }   /* 두 요소를 항상 같은 행에 (자동 배치가 다음 행으로 내리는 것 방지) */
.feature__text  { grid-column: 1 / span var(--feature-text-cols); }
.feature__media { grid-column: calc(var(--feature-text-cols) + var(--feature-gap-cols) + 1) / span var(--feature-media-cols); }
.feature:nth-child(even) .feature__media { grid-column: 1 / span var(--feature-media-cols); }
.feature:nth-child(even) .feature__text  { grid-column: calc(var(--feature-media-cols) + var(--feature-gap-cols) + 1) / span var(--feature-text-cols); }
.feature__title { line-height: 1.2; color: var(--fg); }   /* #1D1D1F */
.feature__desc { color: var(--fg-secondary); }

/* 캡처 방식 나열 — 본문에 섞여 흐르는 한 문장. 항목은 마크다운 인라인 코드처럼 옅게 감쌉니다.
   알약 태그(둥근 캡슐)를 쓰지 않는 이유: 태그는 문단에서 떨어져 나온 목록으로 읽히는데,
   여기서는 앞 문단을 받아 "이런 방식들이 다 있다"고 맺는 한 문장이어야 합니다.
   줄 간격을 넉넉히(1.9) 두는 이유: 배경 있는 조각이 여러 줄로 넘어가면 위아래가 붙어 보입니다 */
.feature__note {
  margin-top: 2rem;
  color: var(--fg-secondary);
  font-size: 1.5rem; line-height: 1.9; letter-spacing: -0.01em;
}
.feature__note code {
  padding: 0.3rem 0.7rem; border-radius: 0.6rem;
  background: #F1F1F4; color: #3D3D42;
  font-family: inherit; font-size: 0.94em; font-weight: 500;
  white-space: nowrap;   /* 항목 하나가 두 줄로 쪼개지지 않게 — 줄바꿈은 항목 사이에서만 */
}
.feature__media {
  position: relative;
  aspect-ratio: var(--media-ratio);
  background: #F9F9FB;
  border-radius: var(--radius);
  box-shadow: var(--media-shadow);
  overflow: hidden;
}
.feature__media img, .feature__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -o-object-fit: cover; object-fit: cover; object-position: center;
}
.feature__media video { opacity: 0; }
.feature__media video.is-ready { opacity: 1; }   /* 첫 프레임이 생기면 즉시 교체 (위 히어로 주석 참고) */

/* 미디어 오른쪽 아래 아이콘 버튼 — 누르면 0초부터 다시 재생.
   영상 시청을 방해하지 않게 딤·오버레이 없이 작게, 호버 시 하이라이트 색 */
.feature__replay {
  position: absolute; right: 1.6rem; bottom: 1.6rem; z-index: 1;
  display: grid; place-items: center;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  color: var(--fg); background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.feature__replay svg { width: 1.6rem; height: 1.6rem; }
.feature__replay:hover, .feature__replay:focus-visible { color: var(--accent); background: var(--bg); }

/* 아래 .feature__play / .subfeature__video 는 현재 마크업에서 빠져 있습니다.
   유튜브 영상이 준비되면 버튼만 다시 넣으면 그대로 살아납니다 */
.feature__play {
  position: absolute; right: 1.6rem; bottom: 1.6rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
  font-size: var(--t-caption-size); font-weight: 500; letter-spacing: 0;
  color: var(--fg); background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.feature__play svg { width: 1rem; height: 1rem; }
.feature__play:hover, .feature__play:focus-visible { color: var(--accent); background: var(--bg); }

/* ---------- 서브 피처 카드 ---------- */
.subfeatures {
  margin-top: var(--feature-gap);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.subfeature {   /* grid 기본 stretch 로 같은 행 카드 높이 일치 — 언어별 길이 차이 대비 */
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: 3.2rem;
  background: #F9F9FB;
  border-radius: var(--radius);
}
.subfeature__icon {
  width: var(--sub-icon-size); height: var(--sub-icon-size);
  display: grid; place-items: center;
  border-radius: 50%;
  background: #E4EEFF; color: #2472E6;
}
.subfeature__icon svg { width: 50%; height: 50%; }
.subfeature__title { font-size: var(--t-intro-size); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.subfeature__desc { color: var(--fg-secondary); font-size: var(--t-body-size); line-height: var(--t-body-lh); letter-spacing: var(--t-body-ls); }
.subfeature__video {
  margin-top: auto; padding-top: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: var(--t-body-size); font-weight: 500; color: var(--accent);
  align-self: flex-start;
}
.subfeature__video svg { width: 1.6rem; height: 1.6rem; }
.subfeature__video:hover { color: var(--accent-hover); text-decoration: none; }

/* ---------- 영상 모달 (Watch video → YouTube) — 현재 미사용 ----------
   위 .feature__play / .subfeature__video 와 한 세트입니다. 유튜브 영상이 준비되면
   버튼 마크업과 #video-modal 만 다시 넣으면 아래 규칙이 그대로 살아납니다 */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: var(--margin) calc(var(--margin) + 44px);   /* 좌우에 닫기 버튼 자리(44px), 위아래는 마진만 — 세로 공간 최대 활용 */
  background: rgba(9, 9, 12, 0.72);
}
.modal[open] { display: flex; }
/* 폭: 토큰 최대값 / 화면 폭 / 화면 높이(16:9 환산) 중 가장 작은 값 → 항상 화면 안에 들어감 */
.modal__box { position: relative; width: min(100%, 160rem, calc((100vh - var(--margin) * 2) * 16 / 9)); }
.modal__player {
  aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--media-shadow);
}
.modal__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.modal__close {   /* 플레이어 바깥 오른쪽에 붙임 — 위쪽 공간을 차지하지 않고 YouTube 컨트롤과도 안 겹침 */
  position: absolute; right: -44px; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); color: #fff;
}
.modal__close svg { width: 16px; height: 16px; }
.modal__close:hover { background: rgba(255, 255, 255, 0.24); }
body.has-modal { overflow: hidden; }

/* ---------- 섹션 인트로 (공통) — 인트로 ↔ 본문 여백은 본문 아이템 간격 이상 ---------- */
.section__intro { text-align: center; margin-bottom: var(--space-block); }
.section__intro > * { margin-inline: auto; }

/* ---------- FAQ (아코디언) ---------- */
.faq { grid-column: calc((var(--cols) - var(--faq-cols)) / 2 + 1) / span var(--faq-cols); border-top: 1px solid var(--divider); }
.faq__item { border-bottom: 1px solid var(--divider); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 2.4rem;
  padding-block: 2.4rem;
  font-size: var(--t-intro-size); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}
/* 호버: 질문이 하이라이트 색으로, + 아이콘도 같은 색 (열린 항목은 유지) */
.faq__item:not([open]) .faq__q:hover { color: var(--accent); }
.faq__item:not([open]) .faq__q:hover::after { background-color: var(--accent); }
.faq__q:focus-visible { outline: none; color: var(--accent); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {   /* + 아이콘(마스크로 그려 색 전환 가능), 열리면 × 로 회전 */
  content: ""; flex: none; width: 1.6rem; height: 1.6rem;
  background-color: var(--fg-secondary);
  -webkit-mask: linear-gradient(#000, #000) center / 100% 2px no-repeat, linear-gradient(#000, #000) center / 2px 100% no-repeat;
  mask: linear-gradient(#000, #000) center / 100% 2px no-repeat, linear-gradient(#000, #000) center / 2px 100% no-repeat;
  transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 2.4rem; color: var(--fg-secondary); max-width: 65ch; }

/* ---------- 앱정보 + 컨택트 (반반) — 컬럼 그리드 대신 1:1 + 넓은 간격 ---------- */
.halves { display: grid; grid-template-columns: 1fr 1fr; column-gap: 9.6rem; align-items: start; }
/* 섹션 안 컬럼 제목 — <h2> 지만 제목 스케일보다 작게 가므로 t-* 를 붙이지 않고 여기서 크기를 정함 */
.info__title, .contact__title {
  font-size: 3.2rem; line-height: 1.125; letter-spacing: 0.004em; font-weight: 600;
  margin-bottom: 2.4rem;
}
.info__list { border-top: 1px solid var(--divider); }
.info__row {
  display: grid; grid-template-columns: minmax(14rem, max-content) 1fr; gap: 2.4rem;   /* 긴 라벨은 열이 늘어남 */
  padding-block: 1.6rem; border-bottom: 1px solid var(--divider);
}
.info__row dt { color: var(--fg-secondary); }
.info__row dd { color: var(--fg); font-variant-numeric: tabular-nums; }
.info__row dd [lang] { white-space: nowrap; }   /* 언어명 하나는 안 끊김 (CJK 는 글자마다 줄바꿈되므로) — 쉼표에서만 줄바꿈 */

.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form input[type=text], .form input[type=email], .form textarea {
  width: 100%; font: inherit; color: var(--fg);
  background: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 1.2rem;
  padding: 0 1.6rem; height: 4.8rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.form textarea { height: auto; min-height: 16rem; padding-block: 1.2rem; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible {
  outline: none; border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--input-border-focus) 20%, transparent);
}
.form ::placeholder { color: var(--fg-tertiary); }
.form .hp-field { position: absolute; left: -9999px; }   /* 허니팟: 화면 밖 */
.form .h-captcha { min-height: 7.8rem; }
.form__submit { align-self: flex-start; }
.form__status { min-height: 2.4rem; font-size: var(--t-caption-size); color: var(--fg-secondary); }
.form__status.is-success { color: #1F8A4C; }
.form__status.is-error { color: #D93025; }

/* ---------- 문서 페이지 (개인정보 처리방침 등) ----------
   히어로가 없으므로 헤더는 처음부터 .nav--solid. body 에 헤더 높이만큼 여백을 줌.
   본문은 읽기 편한 폭(72rem)으로 좁히고, 마케팅 페이지의 큰 제목 스케일 대신 문서용 크기를 씁니다. */
.doc-page { padding-top: var(--nav-height); }
.doc { padding-block: var(--space-section); }
.doc__body { max-width: 72rem; margin-inline: auto; }
.doc__title { font-size: 4.8rem; line-height: 1.0834; letter-spacing: -0.015em; font-weight: 600; margin-top: 1.2rem; }
.doc__meta { margin-top: 1.2rem; color: var(--fg-tertiary); font-size: var(--t-caption-size); }
.doc__lead {
  margin-top: 3.2rem; padding-bottom: 3.2rem; border-bottom: 1px solid var(--divider);
  font-size: var(--t-intro-size); line-height: 1.381; color: var(--fg-secondary);
}
.doc__lead strong { color: var(--fg); font-weight: 600; }
.doc__section { margin-top: 5.6rem; }
.doc__section h2 {
  font-size: 2.4rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600;
  display: flex; gap: 1.2rem;   /* 번호가 길어져도(10. 11.) 제목이 밀리지 않게 */
}
.doc__num { color: var(--accent); flex: none; }
.doc__section p { margin-top: 1.6rem; color: var(--fg-secondary); }
.doc__section ul { margin-top: 1.6rem; padding-left: 2rem; color: var(--fg-secondary); }
.doc__section li + li { margin-top: 0.8rem; }
.doc__section strong { color: var(--fg); font-weight: 600; }
.doc__legal { margin-top: 5.6rem; padding-top: 3.2rem; border-top: 1px solid var(--divider); color: var(--fg-tertiary); font-size: var(--t-caption-size); }
html[lang="ko"] .doc__title { font-size: 5rem; font-weight: 700; letter-spacing: -0.03em; }
html[lang="ko"] .doc__section h2 { font-weight: 700; }

/* ---------- 푸터 — 브랜드 로고(→ nmuxlab.com) + 링크 ---------- */
.footer { padding-block: 3.2rem; border-top: 1px solid var(--divider); color: var(--fg-tertiary); font-size: var(--t-caption-size); }   /* 한 줄로 읽히도록 낮게 — 로고 22px + 위아래 32px */
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 2.4rem; flex-wrap: wrap; }
.footer .footer__brand { display: block; color: var(--fg); }   /* 본문 검정과 같은 색 (.footer a 보다 구체적으로) */
.footer .footer__brand:hover { opacity: 0.7; }
.footer__brand svg { height: 22px; width: auto; }
.footer__links { display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap; }
.footer a { color: inherit; }

/* ---------- 컬럼 가이드 오버레이 (guide.js 가 DOM 생성, html.guide-on 으로 표시) ----------
   콘텐츠 위(z-index 최상단)에 그리지만 pointer-events: none 이라 클릭은 통과       */
.guide {
  position: fixed; inset: 0; z-index: 2147483000;
  pointer-events: none;
  display: none;
}
html.guide-on .guide { display: block; }
.guide__inner { height: 100%; }
.guide__cols { position: relative; height: 100%; }
/* 콘텐츠 영역 경계선 — 컬럼 폭에 영향 주지 않도록 의사요소로 그림 */
.guide__cols::before, .guide__cols::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 0;
  border-left: 1px dashed rgba(255, 59, 48, 0.45);
}
.guide__cols::before { left: -1px; }
.guide__cols::after { right: -1px; }
.guide__col { background: var(--guide); height: 100%; }
.guide__badge {
  position: fixed; right: 12px; bottom: 12px;
  padding: 6px 10px;
  font: 500 11px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #fff; background: rgba(255, 59, 48, 0.85);
  border-radius: 6px;
  white-space: pre;
}


/* ---------- 언어 안내 카드 (locale.js 가 만들어 붙입니다) ----------
   기본 주소(/tracer/)에 들어온 방문자에게 "당신 언어 페이지가 있다"고만 알려 주고,
   이동은 방문자가 정합니다. 자동으로 보내지 않는 이유는 locale.js 상단 주석 참고 */
.langhint {
  position: fixed; left: var(--margin); bottom: var(--margin); z-index: 200;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.5rem 0.5rem 1.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--divider);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  opacity: 0; transform: translateY(8px);   /* 뜰 때만 살짝 올라옵니다 */
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.langhint.is-in { opacity: 1; transform: none; }
.langhint__go { color: var(--fg); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; }
.langhint__go:hover { color: var(--accent); text-decoration: none; }
.langhint__x {
  display: grid; place-items: center; flex: none;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; color: var(--fg-tertiary);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.langhint__x svg { width: 1.2rem; height: 1.2rem; }
.langhint__x:hover { color: var(--fg); background: var(--bg-alt); }


/* ============================================================================
   반응형 — 여기 아래가 좁은 화면 전용입니다. 위쪽 기본 스타일은 PC 기준입니다.
   @media 는 var() 를 못 쓰므로 tokens.css 의 --bp-* 와 같은 숫자를 직접 적습니다.

   3단계
     1264 이상        1rem = 10px 고정. 설계 그대로
     1024~1263        1rem 을 뷰포트에 비례해 축소(위쪽 규칙). 배치는 그대로 — 화면만 작아진 PC
     1023 이하        비례 축소를 멈추고 1rem = 10px 로 되돌린 뒤 배치를 바꿉니다.
                      계속 줄이면 768px 에서 본문이 10px 까지 떨어져 읽을 수 없습니다
     639 이하         한 칸짜리 배치 + 제목 한 단계 더 축소
   ========================================================================== */

/* ---------- 태블릿 (~1023) — 가로 2단 배치를 모두 세로로 ---------- */
@media (max-width: 1023.98px) {
  html { font-size: 10px; }   /* 비례 축소 중단 */
  :root {
    --margin: 24px;
    --space-section: 9.6rem;
    --space-block: 4.8rem;
    --feature-gap: 9.6rem;
  }
  .t-h1 { font-size: 6rem; }
  .t-h2 { font-size: 5.2rem; }
  .t-h3 { font-size: 3.2rem; }
  html[lang="ko"] .t-h1, html[lang="ja"] .t-h1, html[lang="zh-Hans"] .t-h1, html[lang="zh-Hant"] .t-h1 { font-size: 6.2rem; }
  /* 일본어만 강제 줄바꿈을 풉니다. 둘째 줄이 13자라 이 구간에서는 어떤 크기로도 안 들어가는데,
     띄어쓰기가 없는 언어라 자연 줄바꿈이 640~1023px 어디서든 2줄로 잘 떨어집니다.
     다른 언어까지 풀면 짧은 제목들이 1줄이 되어 2줄 디자인이 무너집니다 */
  html[lang="ja"] .hero__title br { display: none; }
  html[lang="ko"] .t-h2, html[lang="ja"] .t-h2, html[lang="zh-Hans"] .t-h2, html[lang="zh-Hant"] .t-h2 { font-size: 5.4rem; }
  .eyebrow { font-size: 1.6rem; }

  /* 피처 — 교차 배치를 풀고 글 위 · 영상 아래로 (DOM 순서 그대로) */
  .feature { grid-template-columns: 1fr; row-gap: 4rem; }
  .feature > * { grid-row: auto; }
  .feature__text, .feature__media,
  .feature:nth-child(even) .feature__text,
  .feature:nth-child(even) .feature__media { grid-column: 1 / -1; }

  /* 서브 피처 — 폭에 맞춰 3 → 2 → 1 칸으로 알아서 접힘 */
  .subfeatures { grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); }

  .faq { grid-column: 1 / -1; }
  .halves { grid-template-columns: 1fr; row-gap: 6.4rem; column-gap: 0; }
  .info__title, .contact__title { font-size: 2.8rem; }
  .doc__title { font-size: 4rem; }
  html[lang="ko"] .doc__title { font-size: 4rem; }
}

/* ---------- 모바일 (~639) — 한 칸 배치, 헤더는 로고·언어·다운로드만 ---------- */
@media (max-width: 639.98px) {
  :root {
    --margin: 20px;
    --space-section: 7.2rem;
    --feature-gap: 7.2rem;
    --t-intro-size: 1.8rem;
  }
  .t-h1, html[lang="ko"] .t-h1, html[lang="ja"] .t-h1, html[lang="zh-Hans"] .t-h1, html[lang="zh-Hant"] .t-h1 { font-size: 4.2rem; }
  /* 대제목의 강제 줄바꿈은 PC 폭에서 좋은 지점을 고른 것이라 좁은 화면에서는 오히려 방해가 됩니다.
     (프랑스어·이탈리아어·스페인어는 그대로 두면 강제 줄바꿈 + 자연 줄바꿈이 겹쳐 3~4줄이 됩니다)
     여기서는 숨기고 text-wrap: balance 가 줄 길이를 고르게 나누도록 맡깁니다.
     마크업에서 <br> 앞에 공백을 두었기 때문에 숨겨도 단어가 붙지 않습니다 */
  .hero__title br { display: none; }
  .t-h2, html[lang="ko"] .t-h2, html[lang="ja"] .t-h2, html[lang="zh-Hans"] .t-h2, html[lang="zh-Hant"] .t-h2 { font-size: 3.6rem; }
  .t-h3 { font-size: 2.6rem; }
  .eyebrow { font-size: 1.4rem; letter-spacing: 0.16em; }

  /* 섹션 링크는 숨기고 언어·다운로드만 남김. 햄버거 대신 — 페이지가 짧고 푸터가 있습니다 */
  .nav__links > a:not(.nav__btn) { display: none; }
  .nav__links { gap: 12px; }

  .badge img { height: 4.8rem; }
  .subfeature { padding: 2.4rem; gap: 1.2rem; }
  .faq__q { gap: 1.6rem; padding-block: 2rem; }
  .faq__a { padding-bottom: 2rem; }

  /* 정보 행 — 라벨과 값을 위아래로 */
  .info__row { grid-template-columns: 1fr; gap: 0.4rem; }
  /* 문의 폼 — 이메일·이름을 위아래로 */
  .form__row { grid-template-columns: 1fr; }
  /* hCaptcha 위젯은 폭이 302px 로 고정이라 좁은 화면에서 넘칩니다 */
  .form .h-captcha { overflow-x: auto; }

  .doc__title, html[lang="ko"] .doc__title { font-size: 3.2rem; }
  .doc__section { margin-top: 4rem; }
  .doc__section h2 { font-size: 2.1rem; }

  /* 푸터 — 한 줄이 안 들어가면 두 줄로 접히되 왼쪽 정렬 유지 */
  .footer .container { gap: 1.6rem; }

  /* 언어 안내 카드 — 좁은 화면에서는 가로로 펼칩니다 */
  .langhint { left: var(--margin); right: var(--margin); justify-content: space-between; }
}
