/* TReport 홈페이지 — "Iron" 디자인 (2026-11)
   색은 열화상 Iron 색상표에서 가져왔다. 컴포넌트는 아래 토큰만 참조한다.
   라이트가 기본, 다크는 [data-theme="dark"] 에서 토큰만 바꾼다. 바닥글만 두 테마 모두 어둡다. */

:root {
  /* Iron 색상표: 차가운 쪽(남색) → 뜨거운 쪽(노랑) */
  --iron-0: #07061a;
  --iron-1: #1b1050;
  --iron-2: #4a168e;
  --iron-3: #8f2191;
  --iron-4: #d2356c;
  --iron-5: #f4621f;
  --iron-6: #ffa91a;
  --iron-7: #ffe27a;
  --iron-8: #fffbe6;
  --heat-scale: linear-gradient(90deg, var(--iron-0), var(--iron-1) 12%, var(--iron-2) 28%, var(--iron-3) 44%, var(--iron-4) 58%, var(--iron-5) 72%, var(--iron-6) 86%, var(--iron-7) 95%, var(--iron-8));

  /* 화면 */
  --bg: #f6f3ee;
  --surface: #fffdfa;
  --surface-2: #ede8df;
  --line: #dad3c6;
  --text: #16122b;
  --muted: #595468;
  --faint: #6c667b;
  --accent: #b23a08;
  --heat: #f4621f;
  --heat-ink: #1c0a02;

  /* 판정 색(프로그램의 [비고] 칸과 같은 뜻) */
  --v-warn-bg: #ffd9df;
  --v-warn-ink: #7a1230;
  --v-bad-bg: #dc3505;
  --v-bad-ink: #ffffff;

  /* 첫 화면: 바닥에서 열이 번져 올라오는 배경 */
  --hero-bg: #f6f3ee;
  --hero-text: #16122b;
  --hero-muted: #595468;
  --hero-line: rgba(22, 18, 43, 0.2);
  --hero-eyebrow: #b23a08;
  --hero-strong: #b23a08;
  --hero-glow-1: rgba(244, 98, 31, 0.42);
  --hero-glow-2: rgba(210, 53, 108, 0.3);
  --hero-glow-3: rgba(74, 22, 142, 0.26);
  --hero-shot-shadow: 0 40px 70px -40px rgba(22, 18, 43, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.55);
  --heat-text: linear-gradient(90deg, #8f2191, #d2356c 46%, #e24d0b);

  /* 바닥글(항상 어두움) */
  --foot-bg: #0b0920;
  --foot-text: #f4f0fb;
  --foot-muted: #b4adca;
  --foot-line: rgba(255, 255, 255, 0.14);

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(72px, 10vw, 128px);
  --shadow: 0 1px 2px rgba(22, 18, 43, 0.06), 0 18px 40px -24px rgba(22, 18, 43, 0.28);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0920;
  --surface: #14112c;
  --surface-2: #1b173a;
  --line: #2d2853;
  --text: #f2eefb;
  --muted: #aca5c4;
  --faint: #8780a2;
  --accent: #ff9152;
  --v-warn-bg: #5a1730;
  --v-warn-ink: #ffd9df;
  --hero-bg: #0b0920;
  --hero-text: #f4f0fb;
  --hero-muted: #b4adca;
  --hero-line: rgba(255, 255, 255, 0.14);
  --hero-eyebrow: #ffa91a;
  --hero-strong: #ffe27a;
  --hero-glow-1: rgba(244, 98, 31, 0.62);
  --hero-glow-2: rgba(210, 53, 108, 0.55);
  --hero-glow-3: rgba(74, 22, 142, 0.7);
  --hero-shot-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.05);
  --heat-text: linear-gradient(90deg, #d2356c, #f4621f 38%, #ffa91a 72%, #ffe27a);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ───────── 기본 ───────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--heat);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100%, calc(var(--max) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--heat);
  color: var(--heat-ink);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ───────── 글자 ───────── */
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

h3 { font-size: 1.1875rem; font-weight: 700; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--iron-3), var(--iron-5), var(--iron-6));
}

.lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.125rem;
}

.section { padding-block: var(--section-pad); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.0625rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-heat {
  background: var(--heat);
  color: var(--heat-ink);
}
.btn-heat:hover { background: var(--iron-6); }

.btn-ghost {
  border-color: var(--hero-line);
  color: var(--hero-text);
}
.btn-ghost:hover { border-color: var(--hero-text); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; }

.chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ───────── 머리글 ───────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--hero-text);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img {
  padding: 3px;
  border-radius: 7px;
  background: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 0.9688rem;
  font-weight: 600;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  opacity: 0.82;
  transition: opacity 0.18s ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav .nav-cta {
  margin-left: 8px;
  padding-inline: 16px;
  background: var(--heat);
  color: var(--heat-ink);
  opacity: 1;
}
.site-nav .nav-cta:hover { background: var(--iron-6); }

.header-tools { display: flex; align-items: center; gap: 4px; }

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
}
.theme-toggle:hover,
.nav-toggle:hover { background: rgba(127, 127, 127, 0.16); }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────── 첫 화면 ───────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46% 42% at 84% 100%, var(--hero-glow-1), transparent 70%),
    radial-gradient(48% 46% at 52% 104%, var(--hero-glow-2), transparent 72%),
    radial-gradient(56% 52% at 16% 104%, var(--hero-glow-3), transparent 74%),
    var(--hero-bg);
  color: var(--hero-text);
}

.hero-inner {
  padding-top: clamp(116px, 13vw, 168px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

/* 위: 제목(왼쪽)과 설명·단추(오른쪽), 아래: 화면 그림을 크게 */
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 5vw, 56px);
}

.eyebrow {
  margin-bottom: 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hero-eyebrow);
}

.hero h1 {
  font-size: clamp(2.125rem, 5.2vw, 3.875rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.heat-text {
  background: var(--heat-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 46ch;
  color: var(--hero-muted);
  font-size: 1.0938rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--hero-muted);
  font-size: 0.9375rem;
}
.version-chip b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--hero-strong);
}

.hero-shot { margin-top: clamp(40px, 6vw, 72px); }
.hero-shot img {
  width: 100%;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius);
  box-shadow: var(--hero-shot-shadow);
}
/* 첫 화면 그림은 테마에 맞는 쪽만 보인다 */
.hero-shot .shot-dark { display: none; }
[data-theme="dark"] .hero-shot .shot-dark { display: block; }
[data-theme="dark"] .hero-shot .shot-light { display: none; }
.hero-shot figcaption {
  margin-top: 14px;
  color: var(--hero-muted);
  font-size: 0.875rem;
}

/* 열화상 온도 눈금 띠 — 구획을 가르는 선으로만 쓴다 */
.heat-scale {
  height: 6px;
  background: var(--heat-scale);
}

/* ───────── 한눈에 보는 사실 ───────── */
.facts {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.facts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts-list > div {
  padding: 28px 24px 30px 0;
}
.facts-list > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.facts-list dt {
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--faint);
}
.facts-list dd {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ───────── 판정 ───────── */
.judge-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.probes {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}
.probe {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.probe-name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
}
.probe output {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.probe input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.probe input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: var(--heat-scale);
}
.probe input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: var(--heat-scale);
}
.probe input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 3px solid var(--text);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.probe input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--text);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.judge-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* 측정기록표를 닮은 종이 */
.sheet {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--iron-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-top-color 0.25s ease;
}
.sheet[data-verdict="warn"] { border-top-color: var(--iron-4); }
.sheet[data-verdict="bad"] { border-top-color: var(--v-bad-bg); }

.sheet-title {
  margin-bottom: 22px;
  font-size: 1.1875rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}
.sheet h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
}
.sheet-title + h3 { margin-top: 0; }

.table-wrap { overflow-x: auto; }
.sheet table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: center;
}
.sheet th,
.sheet td {
  padding: 9px 8px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.sheet thead th,
.sheet tbody th {
  background: var(--surface-2);
  font-weight: 700;
}
.sheet td {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.cell-verdict {
  min-width: 78px;
  font-weight: 800;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.sheet[data-verdict="warn"] .cell-verdict { background: var(--v-warn-bg); color: var(--v-warn-ink); }
.sheet[data-verdict="bad"] .cell-verdict { background: var(--v-bad-bg); color: var(--v-bad-ink); }

.gauge { margin-top: 22px; }
.gauge-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
}
.gauge-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.gauge-zone + .gauge-zone { border-left: 1px solid var(--line); }
.zone-warn { background: var(--v-warn-bg); color: var(--v-warn-ink); }
.zone-bad { background: var(--v-bad-bg); color: var(--v-bad-ink); border-radius: 0 5px 5px 0; }
.gauge-marker {
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: 0;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--surface);
  transition: left 0.2s ease;
}
/* 눈금 위치는 구간 비율(0~5℃ 25%, 5~10℃ 25%, 10~20℃ 50%)과 맞춘다 */
.gauge-ticks {
  position: relative;
  height: 20px;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}
.gauge-ticks span { position: absolute; top: 0; white-space: nowrap; }
.gauge-ticks span:nth-child(1) { left: 0; }
.gauge-ticks span:nth-child(2) { left: 25%; transform: translateX(-50%); }
.gauge-ticks span:nth-child(3) { left: 50%; transform: translateX(-50%); }
.gauge-ticks span:nth-child(4) { right: 0; }

.opinion {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.9688rem;
  font-weight: 600;
  align-content: start;
}
.sheet-note {
  margin-top: 12px;
  font-size: 0.8438rem;
  color: var(--faint);
}

/* ───────── 기능 ───────── */
.features { background: var(--surface); border-block: 1px solid var(--line); }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 88px); }
.feature-row.is-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature-row.is-reverse .feature-text { order: 2; }

.feature-text h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); font-weight: 800; }
.feature-text p { margin-top: 14px; color: var(--muted); }

.tick-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 600;
}
.tick-list li {
  position: relative;
  padding-left: 22px;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--heat);
}

.frame {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.frame img { width: 100%; border-radius: 5px; }
.frame figcaption {
  padding: 12px 8px 6px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.palettes {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(48px, 7vw, 88px);
}
.palettes-text h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); font-weight: 800; }
.palettes-text p { margin-top: 14px; color: var(--muted); }
.palette-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}
.palette-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}
.palette-strip span {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
  margin-top: clamp(48px, 7vw, 88px);
}
.feature-list li {
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}
.feature-list p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

/* ───────── 작업 흐름 ───────── */
.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 20px;
}
.flow li {
  position: relative;
  padding-top: 26px;
  border-top: 4px solid var(--step, var(--iron-2));
}
/* 단계가 진행될수록 차가운 색에서 뜨거운 색으로 */
.flow li:nth-child(1) { --step: var(--iron-2); }
.flow li:nth-child(2) { --step: var(--iron-3); }
.flow li:nth-child(3) { --step: var(--iron-4); }
.flow li:nth-child(4) { --step: #e84a45; }
.flow li:nth-child(5) { --step: var(--iron-5); }
.flow li:nth-child(6) { --step: var(--iron-6); }

.flow-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--faint);
}
.flow h3 { font-size: 1.125rem; }
.flow p {
  margin-top: 8px;
  font-size: 0.9688rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ───────── 보고서 ───────── */
.report { background: var(--surface-2); border-block: 1px solid var(--line); }
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
  align-items: start;
}
.page img {
  width: 100%;
  border: 1px solid rgba(22, 18, 43, 0.14);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 22px 40px -26px rgba(22, 18, 43, 0.55);
}
.page:nth-child(2) { margin-top: 28px; }
.page:nth-child(3) { margin-top: 56px; }
.page figcaption {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}

/* ───────── 화면 보기 ───────── */
.viewer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.screen-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9688rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.screen-tab:hover { border-color: var(--text); color: var(--text); }
.screen-tab[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.viewer-frame { background: var(--surface); }

/* ───────── 도입 안내 ───────── */
.start { background: var(--surface); border-block: 1px solid var(--line); }
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}
.steps {
  counter-reset: step;
  margin-top: 34px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 60px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--text);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li:last-child::before {
  border-color: var(--heat);
  background: var(--heat);
  color: var(--heat-ink);
}
.steps p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

.start-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.link-list { margin-top: 12px; }
.link-list a {
  position: relative;
  display: block;
  padding: 16px 34px 16px 0;
  border-top: 1px solid var(--line);
}
.link-list li:first-child a { border-top: 0; }
.link-list a::after {
  content: "→";
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.18s ease;
}
.link-list a:hover::after { transform: translateX(4px); }
.link-list b { display: block; font-size: 1.0625rem; }
.link-list a:hover b { color: var(--accent); }
.link-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }
.start-note {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ───────── 최근 업데이트 ───────── */
.release-list { display: grid; gap: 0; max-width: 860px; }
.release {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.release-ver {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}
.release-date {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--faint);
}
.release ul { display: grid; gap: 6px; }
.release li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 1rem;
}
.release li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.release:first-child li { color: var(--text); }
.release:first-child li::before { background: var(--heat); }

/* 지난 버전은 접어 둔다 */
.release details summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.release details summary::-webkit-details-marker { display: none; }
.release details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.release details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.release details summary:hover { color: var(--accent); }
.release details ul { margin-top: 12px; }

/* ───────── 자주 묻는 질문 ───────── */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(24px, 6vw, 80px);
}
.faq-grid .section-head { margin-bottom: 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 1.0938rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p {
  padding: 0 44px 22px 0;
  color: var(--muted);
}

/* ───────── 문의 ───────── */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}
.contact-meta { margin-top: 34px; }
.contact-meta > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-meta > div:last-child { border-bottom: 1px solid var(--line); }
.contact-meta dt { font-size: 0.9375rem; font-weight: 600; color: var(--faint); }
.contact-meta dd { font-size: 1.1875rem; font-weight: 700; }
.contact-meta a:hover { color: var(--accent); }

.form-card {
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.form-card h3 { margin-bottom: 20px; font-size: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.req { color: var(--accent); }
.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-group input { min-height: 50px; }
.form-group textarea { resize: vertical; min-height: 132px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--faint); }
.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--heat);
  box-shadow: 0 0 0 3px rgba(244, 98, 31, 0.22);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-result {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
}
.form-result.is-ok { background: #dcf5e7; border-color: #9fdcb9; color: #0b5a33; }
.form-result.is-error { background: #fde4df; border-color: #f3ada0; color: #8f1d0c; }
[data-theme="dark"] .form-result.is-ok { background: #0f3a26; border-color: #1f6b46; color: #b9f0d2; }
[data-theme="dark"] .form-result.is-error { background: #4a1509; border-color: #8f2d17; color: #ffd3c8; }

/* ───────── 관련 솔루션 ───────── */
.partner { border-top: 1px solid var(--line); }
.partner-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 26px;
}
.partner-tag {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.partner-body { flex: 1 1 320px; }
.partner-body b { display: block; font-size: 1.0625rem; }
.partner-body span { color: var(--muted); font-size: 0.9375rem; }
.partner-go { font-weight: 700; color: var(--accent); white-space: nowrap; }
.partner-link:hover .partner-body b { color: var(--accent); }

/* ───────── 바닥글 ───────── */
.site-footer {
  background: var(--foot-bg);
  color: var(--foot-muted);
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  padding-block: 44px 36px;
}
.footer-brand .brand { margin-bottom: 12px; color: var(--foot-text); }
.footer-links {
  display: grid;
  gap: 2px;
  align-content: start;
  font-weight: 600;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--foot-text);
  opacity: 0.86;
}
.footer-links a:hover { opacity: 1; color: var(--iron-6); }
.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--foot-line);
  font-size: 0.875rem;
}

/* ───────── 좁은 화면 ───────── */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(0, 0, 0, 0.4);
    font-size: 1.0625rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    opacity: 1;
  }
  .site-nav .nav-cta {
    justify-content: center;
    margin: 14px 0 0;
    border: 0;
    border-radius: var(--radius-sm);
  }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
  .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 900px) {
  .hero-head,
  .judge-grid,
  .feature-row,
  .feature-row.is-reverse,
  .palettes,
  .report-grid,
  .start-grid,
  .faq-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .hero-inner { padding-top: 108px; }
  .hero-head { align-items: start; }
  .feature-row.is-reverse .feature-text { order: 0; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-list > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq-grid .section-head { margin-bottom: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .lead, .hero-copy { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .palette-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
  .palette-strip img { aspect-ratio: 4 / 3; }
  .pages { gap: 8px; }
  .page:nth-child(2) { margin-top: 14px; }
  .page:nth-child(3) { margin-top: 28px; }
  .page figcaption { font-size: 0.8125rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .release { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .probe { grid-template-columns: 40px minmax(0, 1fr) 74px; gap: 8px; }
  /* 좁은 화면에서는 기록표가 가로로 넘치지 않게 칸을 줄인다 */
  .sheet { padding: 18px 14px; }
  .sheet table { min-width: 0; font-size: 0.8125rem; }
  .sheet th,
  .sheet td { padding: 8px 3px; white-space: normal; }
  .cell-verdict { min-width: 50px; }
  .faq-list summary { padding-right: 36px; }
  .faq-list details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* 전환을 "아주 짧게"가 아니라 아예 끈다. 모든 요소에 0.01ms 전환을 걸면
     테마를 바꿀 때 색 변수 변경이 화면에 반영되지 않는 문제가 있었다(2026-11 확인). */
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: rise 0.6s ease both; }
  .hero-side { animation: rise 0.6s 0.1s ease both; }
  .hero-shot { animation: rise 0.8s 0.2s ease both; }
}

/* 움직임만 준다. 투명도를 건드리면 애니메이션이 멈춘 환경에서 첫 화면이 안 보일 수 있다. */
@keyframes rise {
  from { transform: translateY(14px); }
  to { transform: none; }
}

@media print {
  .site-header, .partner, .theme-toggle { display: none; }
}
