/* ============================================================
   LinenTrack 랜딩 — 프리미엄 리디자인 v3
   "소독된 어둠 + 데이터의 빛" — 레이어드 다크
   설계: docs/redesign/LinenTrack_랜딩_리디자인_제안서.md
   ============================================================ */

/* ---------- 디자인 토큰 ---------- */
:root {
  --ink-0: #051614;   /* 페이지 최심층 배경 */
  --ink-1: #0A2420;   /* 섹션 레이어 */
  --ink-2: #10312B;   /* 카드/패널 */
  --line: rgba(148, 190, 182, 0.14);      /* 헤어라인 */
  --line-hi: rgba(148, 190, 182, 0.28);   /* 밝은 헤어라인(hover/focus) */

  --teal: #0F766E;      /* 브랜드 */
  --teal-hi: #2DD4BF;   /* 데이터/라이브 신호 — 스캔·펄스·차트 전용 */
  --gold: #D4A853;      /* 액센트 — 페이지 전체 3곳 이내 */

  --text-0: #E9F2F0;   /* 본문 밝음 */
  --text-1: #9FB6B1;   /* 보조 */
  --text-2: #84A29A;   /* 캡션/각주 — 제안서 #64807B에서 AA(4.5:1) 통과 위해 상향 */

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --maxw: 1200px;

  /* 섹션 상하 리듬 — 여정 앞뒤는 --pad-wide로 더 넓게 */
  --pad-y: clamp(4rem, 10vh, 9rem);
  --pad-wide: clamp(6rem, 14vh, 12rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--ink-0);
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-0);
  background: var(--ink-0);
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 미세 그레인 — 평평한 어둠에 재질감 한 겹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

/* 포커스 링 — 접근성 (teal-hi, 어디서나 보이게) */
:focus-visible {
  outline: 2px solid var(--teal-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 레이아웃 ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.container.narrow { max-width: 800px; }
.center { text-align: center; }

/* 섹션 — 레이어드 다크: 헤어라인으로 층을 나눔 */
.section {
  position: relative;
  padding: var(--pad-y) 0;
}
.section--layer { background: var(--ink-1); }
.section--wide { padding: var(--pad-wide) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- 타이포 ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1, h2 { letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; line-height: 1.35; }

.mono { font-family: var(--mono); }

/* ---------- 섹션 헤드: 조용한 눈썹 + 큰 옅은 번호 ---------- */
.section-head { position: relative; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); max-width: 46rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.center .kicker { justify-content: center; }
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--teal);
}
.center .kicker::before { display: none; }
.section-lead {
  color: var(--text-1);
  font-size: 1.12rem;
  max-width: 40rem;
  margin-top: 0.25rem;
}
.center .section-lead { margin-left: auto; margin-right: auto; }
.sec-num {
  position: absolute;
  top: -0.4rem;
  right: 0;
  font-family: var(--mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(148, 190, 182, 0.07);
  user-select: none;
  pointer-events: none;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0E8A80; }        /* 틸 한 단계 밝게 — CTA 유일 hover */
.btn-ghost { border-color: var(--line); color: var(--text-0); background: transparent; }
.btn-ghost:hover { border-color: var(--teal-hi); }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* ---------- 헤더 (fixed, 히어로 위 투명 → 스크롤 시 다크 블러) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled,
.site-header.solid,
html:not(.js) .site-header {
  background: rgba(5, 22, 20, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.brand-text { font-size: 1.3rem; font-weight: 800; color: var(--text-0); letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  color: var(--text-1);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text-0); }
.header-inner .btn-primary { background: var(--teal); }
.header-inner .btn-primary:hover { background: #0E8A80; }

/* ---------- 카드 공통 ---------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color 0.25s ease;
}
.card:hover { border-color: var(--line-hi); }
.card h3 { margin-bottom: 0.6rem; color: var(--text-0); }
.card p { color: var(--text-1); font-size: 1rem; }

.card-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 등장 리빌 (JS + reduce 가드) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s ease var(--d, 0ms);
    will-change: opacity, transform;
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- 푸터 (index: 그리드 / privacy·404: 단순) ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 3rem; }
.footer-brand-block img { height: 26px; width: auto; margin-bottom: 1rem; opacity: 0.9; }
.footer-brand-block .footer-brand-name { font-size: 1.1rem; font-weight: 800; color: var(--text-0); margin-bottom: 0.5rem; }
.footer-brand-block p { color: var(--text-1); font-size: 0.92rem; max-width: 30em; }
.footer-col h3 {
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-1); font-size: 0.92rem; text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--teal-hi); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 1.5rem;
  color: var(--text-2); font-size: 0.82rem;
}

/* privacy.html / 404.html 단순 푸터 */
.footer-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text-1); font-size: 0.9rem; }
.footer-brand img { height: 24px; width: auto; opacity: 0.9; }
.footer-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.footer-nav a { color: var(--text-1); font-size: 0.9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--teal-hi); }
.footer-copy { color: var(--text-2); font-size: 0.82rem; width: 100%; }

/* ---------- 서브페이지 (privacy / 404) ---------- */
.page { padding: calc(var(--header-h) + 4rem) 0 6rem; min-height: 60vh; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.5rem; color: var(--text-0); }
.page h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; color: var(--text-0); }
.page p, .page li { color: var(--text-1); }
.page strong { color: var(--text-0); }
.page a { color: var(--teal-hi); }
.page ul { padding-left: 1.4rem; margin: 0.5rem 0; }
.error-code { font-family: var(--mono); font-size: 5rem; font-weight: 700; color: var(--teal-hi); line-height: 1; margin-bottom: 1rem; }

/* 접근성: 건너뛰기 링크 */
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   1. 히어로
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 8vh, 6rem)) 0 clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
/* 레이어드 다크: 히어로 하단에 ink-1 층 한 겹 */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: min(74vh, 640px);
}
.hero-copy { max-width: 38rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--teal-hi);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--text-0);
}
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .gold { color: var(--gold); font-style: normal; }
.hero-sub {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: var(--text-1);
  font-size: 1.08rem;
  line-height: 1.75;
}
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.2rem; font-size: 0.82rem; color: var(--text-2); }

/* 히어로 로드 모션 — 초기 은닉 상태(JS + 모션 허용 시에만).
   reduce거나 JS 없으면 이 규칙이 적용되지 않아 콘텐츠는 그대로 보임. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-hero] { opacity: 0; transform: translateY(16px); }
  .js .hero [data-hero-panel] { opacity: 0; transform: translateY(20px); }
  .js .hero-title .ln > span { display: inline-block; opacity: 0; transform: translateY(110%); }
}

/* ---------- 여정 미니어처 패널 (시안 이식) ---------- */
.journey-mini {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.8rem 1.6rem;
  align-self: center;
}
.jm-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.6rem; }
.jm-title { font-size: 0.9rem; font-weight: 600; color: var(--text-1); }
.jm-epc {
  font-size: 0.78rem; color: var(--gold);
  border: 1px solid rgba(212, 168, 83, 0.35); border-radius: 6px; padding: 0.25rem 0.55rem;
}
.jm-track { position: relative; height: 120px; margin: 0 0.4rem; }
.jm-rail { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--line); }
.jm-rail-fill {
  position: absolute; left: 0; top: 34px; height: 2px; background: var(--teal); width: 0;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.jm-st { position: absolute; top: 0; width: 20%; text-align: center; }
.jm-st i {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-0); border: 2px solid var(--text-2); margin: 29px auto 0;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.jm-st.active i { border-color: var(--teal-hi); background: var(--teal-hi); }
.jm-st b { display: block; margin-top: 14px; font-size: 0.78rem; font-weight: 600; color: var(--text-2); transition: color 0.4s ease; }
.jm-st.active b { color: var(--text-0); }
.jm-st s { display: block; text-decoration: none; font-size: 0.62rem; color: var(--text-2); margin-top: 2px; letter-spacing: 0.04em; }
.jm-tag {
  position: absolute; top: 18px; left: 0; width: 34px; height: 22px; margin-left: -17px;
  border-radius: 5px; background: var(--gold); color: #2A1F08;
  font-size: 0.6rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  transition: left 1s cubic-bezier(0.55, 0.05, 0.35, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.jm-ping {
  position: absolute; top: 35px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  border: 2px solid var(--teal-hi); opacity: 0; pointer-events: none;
}
.jm-ping.go { animation: jm-sonar 0.9s ease-out; }
@keyframes jm-sonar { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(3.4); } }
.jm-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.jm-state { font-size: 0.8rem; color: var(--text-1); }
.jm-state b { color: var(--teal-hi); font-weight: 500; margin-left: 0.4rem; }
.jm-wash { font-size: 0.8rem; color: var(--text-2); }
.jm-wash b { color: var(--text-0); font-weight: 500; }
.jm-cap { margin-top: 1rem; font-size: 0.75rem; color: var(--text-2); line-height: 1.6; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 2.5rem; }
  .journey-mini { max-width: 30rem; }
}
@media (max-width: 600px) {
  .hero-actions .btn { width: 100%; }
  .journey-mini { padding: 1.5rem 1.3rem 1.2rem; }
  .jm-st s { font-size: 0.54rem; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .jm-rail-fill, .jm-tag { transition: none; }
  .jm-ping { display: none; }
}

/* ============================================================
   3. 여정 (시그니처) — pin+scrub 씬 / 모바일·reduce 정적 타임라인
   ============================================================ */
.jrn { background: var(--ink-1); overflow: hidden; }
.jrn-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.jrn-head { text-align: center; max-width: 44rem; margin: 0 auto; }
.jrn-head .kicker { justify-content: center; }
.jrn-head .kicker::before { display: none; }
.jrn-lead { color: var(--text-1); font-size: 1.12rem; margin-top: 0.5rem; }
.jrn-lead b { color: var(--text-0); font-weight: 600; }

.jrn-scene { margin-top: clamp(2.5rem, 6vh, 4.5rem); }

/* ---- 수평 트랙 (데스크톱) ---- */
.jrn-track { position: relative; height: 180px; }
.jrn-rail { position: absolute; left: 10%; right: 10%; top: 64px; height: 2px; background: var(--line); }
.jrn-rail-fill {
  position: absolute; left: 10%; top: 64px; height: 2px; width: 0;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.4);
}
.jrn-stations { list-style: none; }
.jrn-st { position: absolute; top: 0; width: 20%; text-align: center; }
.jrn-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-0); border: 2px solid var(--text-2); margin: 57px auto 0;
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.jrn-st.active .jrn-dot { border-color: var(--teal-hi); background: var(--teal-hi); box-shadow: 0 0 14px rgba(45, 212, 191, 0.6); }
.jrn-st b { display: block; margin-top: 18px; font-size: 0.98rem; font-weight: 600; color: var(--text-2); transition: color 0.4s ease; }
.jrn-st.active b { color: var(--text-0); }
.jrn-st s { display: block; text-decoration: none; font-size: 0.68rem; color: var(--text-2); margin-top: 4px; letter-spacing: 0.04em; }
.jrn-st-desc { display: none; } /* 데스크톱: 동적 리드아웃 사용 */

.jrn-tag {
  position: absolute; top: 22px; left: 10%;
  display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px;
  border-radius: 9px; background: rgba(45, 212, 191, 0.12); border: 1px solid var(--teal-hi);
  color: var(--teal-hi); transform: translateX(-50%);
  box-shadow: 0 6px 22px rgba(45, 212, 191, 0.28);
}
.jrn-tag svg { width: 16px; height: 16px; }
.jrn-tag span { font-size: 0.7rem; letter-spacing: 0.02em; }
.jrn-ping {
  position: absolute; top: 58px; left: 10%; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--teal-hi); opacity: 0; pointer-events: none; transform: translateX(-50%);
}
.jrn-ping.go { animation: jrn-sonar 0.9s ease-out; }
@keyframes jrn-sonar { 0% { opacity: 0.9; transform: translateX(-50%) scale(0.4); } 100% { opacity: 0; transform: translateX(-50%) scale(3.6); } }

.jrn-readout {
  display: grid; grid-template-columns: minmax(9rem, auto) 1fr minmax(8rem, auto);
  gap: 1.5rem; align-items: center;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.jrn-state { font-size: 0.85rem; color: var(--text-1); }
.jrn-state b { color: var(--teal-hi); font-weight: 500; margin-left: 0.5rem; }
.jrn-desc { color: var(--text-1); font-size: 1.05rem; text-align: center; }
.jrn-wash { font-size: 0.85rem; color: var(--text-2); text-align: right; }
.jrn-wash b { color: var(--text-0); font-weight: 500; }

.jrn-final {
  text-align: center; margin-top: clamp(2rem, 5vh, 3.5rem);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--text-0);
}
.jrn-final::after { content: ""; display: block; width: 40px; height: 2px; background: var(--teal-hi); margin: 1rem auto 0; }

/* ---- 정적 세로 타임라인 (모바일 <1024px 또는 reduce/무JS) ---- */
@media (max-width: 1023px) {
  .jrn-stage { min-height: 0; }
  .jrn-tag, .jrn-ping, .jrn-rail, .jrn-rail-fill { display: none; }
  .jrn-readout { display: none; }
  .jrn-track { height: auto; }
  .jrn-stations { position: relative; display: grid; gap: 1.5rem; margin-left: 0.5rem; padding-left: 1.75rem; border-left: 2px solid var(--line); }
  .jrn-st { position: static; width: auto; text-align: left; }
  .jrn-dot { margin: 0; position: absolute; left: -2.55rem; }
  .jrn-st b { margin-top: 0; color: var(--text-0); font-size: 1.05rem; }
  .jrn-st.active .jrn-dot, .jrn-dot { border-color: var(--teal); }
  .jrn-st-desc { display: block; color: var(--text-1); font-size: 0.98rem; margin-top: 0.35rem; }
}
/* reduce/무JS: 어느 폭에서든 정적 세로 타임라인으로 강등 */
.jrn.is-static .jrn-stage { min-height: 0; }
.jrn.is-static .jrn-tag, .jrn.is-static .jrn-ping,
.jrn.is-static .jrn-rail, .jrn.is-static .jrn-rail-fill,
.jrn.is-static .jrn-readout { display: none; }
.jrn.is-static .jrn-track { height: auto; }
.jrn.is-static .jrn-stations {
  position: relative; display: grid; gap: 1.5rem; max-width: 40rem; margin: 0 auto;
  padding-left: 1.75rem; border-left: 2px solid var(--line);
}
.jrn.is-static .jrn-st { position: static; width: auto; text-align: left; }
.jrn.is-static .jrn-dot { margin: 0; position: absolute; left: -2.55rem; border-color: var(--teal); }
.jrn.is-static .jrn-st b { margin-top: 0; color: var(--text-0); font-size: 1.05rem; }
.jrn.is-static .jrn-st-desc { display: block; color: var(--text-1); font-size: 0.98rem; margin-top: 0.35rem; }

/* ---------- 2. 문제 ---------- */
.pain-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.card h3 + p { margin-top: 0.6rem; }

/* ---------- 4. 로스 2계층 ---------- */
.loss-diagram { position: relative; max-width: 620px; margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.loss-node-top {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-1);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem 0.7rem; margin-bottom: 0.4rem;
}
.loss-fork { display: block; width: 100%; height: auto; }
.loss-fork .draw { stroke: var(--teal); }
.loss-c-top { fill: var(--teal-hi); }
.loss-c-end { fill: var(--teal); }
/* drawSVG: pathLength=1 정규화 → dashoffset 1(숨김) → 0(그림) */
.loss-fork .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .loss-diagram[data-reveal] .draw { stroke-dashoffset: 1; }
  .js .loss-diagram[data-reveal].in .draw {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.75s ease 0.15s;
  }
}
.loss-layers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.loss-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.loss-kind { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--teal-hi); margin-bottom: 0.5rem; }
.loss-formula { font-size: 0.85rem; color: var(--text-2); margin-bottom: 1.2rem; }
.loss-metric { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; }
.loss-num { font-family: var(--mono); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 500; color: var(--text-0); line-height: 1; }
.loss-unit { font-size: 0.95rem; color: var(--text-1); }
.loss-desc { color: var(--text-1); font-size: 0.98rem; }
.loss-roi {
  text-align: center; margin-top: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.2rem, 0.9rem + 1.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text-0);
}
.loss-roi .gold { color: var(--gold); }
.loss-foot { text-align: center; margin-top: 1rem; font-size: 0.82rem; color: var(--text-2); }

@media (max-width: 700px) {
  .loss-layers { grid-template-columns: 1fr; }
}

/* ---------- 5. 법정 서식 ---------- */
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.forms-copy .section-head { margin-bottom: 2rem; }
.forms-points { list-style: none; display: grid; gap: 1rem; }
.forms-points li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding-left: 1.4rem; position: relative;
}
.forms-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
.forms-points b { color: var(--text-0); font-weight: 600; font-size: 1.02rem; }
.forms-points span { color: var(--text-1); font-size: 0.95rem; }

.forms-doc {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.forms-doc-head { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.forms-doc-head .mono { font-size: 0.72rem; color: var(--text-2); letter-spacing: 0.08em; }
.forms-doc-title { font-size: 1.05rem; font-weight: 700; color: var(--text-0); }
.forms-doc-rows { display: grid; gap: 0.55rem; }
.forms-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: 0.5rem 0.2rem; border-bottom: 1px dashed var(--line); }
.forms-row s { text-decoration: none; font-size: 0.76rem; color: var(--text-1); }
.forms-row s:last-child { color: var(--teal-hi); text-align: right; min-width: 3.2rem; }

/* 도장 — 유일하게 무게감 있는 이징(법의 무게) */
.forms-stamp {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px solid rgba(45, 212, 191, 0.7); color: var(--teal-hi);
  font-size: 0.72rem; font-weight: 500; line-height: 1.15;
  background: rgba(45, 212, 191, 0.06);
  transform: rotate(-12deg);
}
@media (prefers-reduced-motion: no-preference) {
  /* 프레임: 아래서 올라오며 scale 1.04→1 (power4.out) */
  .js .forms-doc[data-reveal] { opacity: 0; transform: translateY(24px) scale(1.04); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .forms-doc[data-reveal].in { opacity: 1; transform: translateY(0) scale(1); }
  /* 도장: 크게 찍혀 눌리듯 */
  .js .forms-doc[data-reveal] .forms-stamp { opacity: 0; transform: rotate(-12deg) scale(1.8); }
  .js .forms-doc[data-reveal].in .forms-stamp { opacity: 1; transform: rotate(-12deg) scale(1); transition: opacity 0.35s ease 0.35s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s; }
}

@media (max-width: 800px) {
  .forms-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- 6. 제품 화면 벤토 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 168px 168px 190px;
  grid-template-areas:
    "dash dash scan"
    "dash dash scan"
    "bill forms scan";
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.bt-dash { grid-area: dash; }
.bt-scan { grid-area: scan; }
.bt-bill { grid-area: bill; }
.bt-forms { grid-area: forms; }

.bento-item {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .bento-item:hover { transform: translateY(-4px); border-color: var(--line-hi); }
}
/* 평평한 프레임 — 기울임/3D 금지, 헤어라인 + 미세 틸 글로우 한 겹 */
.shot {
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(45, 212, 191, 0.06), transparent 70%),
    var(--ink-0);
  display: flex; align-items: center; justify-content: center;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-link { position: absolute; inset: 0; display: block; }
.shot-link:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: -2px; }
.shot-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1rem; font-size: 0.78rem; color: var(--text-2); letter-spacing: 0.02em; line-height: 1.5;
}
.bento-item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-1);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

@media (max-width: 800px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "dash" "scan" "bill" "forms";
  }
  .shot { aspect-ratio: 16 / 10; }
  .bt-scan .shot { aspect-ratio: 3 / 4; }
  .bt-bill .shot, .bt-forms .shot { aspect-ratio: 16 / 7; }
}

/* ---------- 7. 보안·개인정보 ---------- */
.sec-label {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.12em; color: var(--teal-hi);
  border: 1px solid var(--line); border-radius: 5px; padding: 0.2rem 0.5rem; margin-bottom: 1rem;
}

/* ---------- 8. 도입 절차 + 가격 ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.step { position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 0.9rem; right: -0.75rem;
  width: 0.6rem; height: 0.6rem;
  border-top: 2px solid var(--teal); border-right: 2px solid var(--teal);
  transform: rotate(45deg);
}
.step-n { display: block; font-size: 0.95rem; color: var(--teal-hi); margin-bottom: 0.9rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-1); font-size: 0.95rem; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.price-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.price-kind { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-2); margin-bottom: 0.6rem; }
.price-headline { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-0); margin-bottom: 0.6rem; }
.price-card p:last-child { color: var(--text-1); font-size: 0.98rem; }
.price-card b { color: var(--teal-hi); font-weight: 600; }
.pricing-note { text-align: center; margin-top: 1.5rem; color: var(--text-2); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-0);
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%;
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--teal-hi); border-bottom: 2px solid var(--teal-hi);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 1.4rem 1.3rem; color: var(--text-1); }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .pricing { grid-template-columns: 1fr; }
}

/* ---------- 9. 레퍼런스 + CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: var(--pad-wide) 0;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px 340px at 50% -8%, rgba(45, 212, 191, 0.12), transparent 70%);
}
.cta > .container { position: relative; z-index: 1; }
.cta-ref {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-1);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem;
  margin-bottom: 1.8rem;
}
.cta .section-head { margin-bottom: 2.2rem; }
.cta .btn-primary { padding: 1rem 2.2rem; font-size: 1.05rem; }
.cta-mail { margin-top: 1.4rem; color: var(--text-2); font-size: 0.95rem; }

/* ============================================================
   섹션별 스타일은 각 커밋에서 이 아래로 추가됩니다.
   ============================================================ */

/* ---------- reduced-motion 전역 가드 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec-num { position: static; display: block; margin-bottom: 0.5rem; }
  .section-head { max-width: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .card-grid.cols-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- /en/ 전용: 대상·대체 한 줄 / How we use Claude ---------- */
.hero-fit { margin-top: 1.6rem; display: grid; gap: 0.55rem; max-width: 34rem; }
.hero-fit div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-top: 0.55rem; border-top: 1px solid var(--line); }
.hero-fit dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); padding-top: 0.2rem; }
.hero-fit dd { color: var(--text-0); font-size: 0.98rem; line-height: 1.5; }
.hero-note a, .card-link { color: var(--text-1); text-underline-offset: 3px; }
.hero-note a:hover, .card-link:hover { color: var(--text-0); }
.card-link { display: inline-block; margin-top: 0.8rem; font-size: 0.92rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.claude-list { list-style: none; margin-top: 1rem; display: grid; gap: 0.7rem; }
.claude-list li { position: relative; padding-left: 1.2rem; color: var(--text-1); font-size: 0.97rem; line-height: 1.55; }
.claude-list li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.claude-list b { color: var(--text-0); font-weight: 600; }
.forms-points a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .card-grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-fit div { grid-template-columns: 1fr; gap: 0.2rem; }
}
