/* ========== Korean Trademark SaaS — Design Tokens ========== */
/* v3 BRIEF — Open Kitchen Pipeline × Legal Archive
   라이트(크림 베이지) + 다크(잉크) 듀얼, 골드 1px 액센트, 가는 명조 헤딩 */

:root,
[data-theme="light"] {
  --bg: #F5EFE6;
  --surface: #FBF8F3;
  --ink: #1A1A1A;
  --ink-mute: #6B6259;
  --brass: #B8946A;
  --brass-soft: rgba(184, 148, 106, 0.7);
  --accent: #2B4C8C;
  --trust: #5C7A4F;
  /* caution(주의/검토 필요) — 앰버. 위험(--danger 빨강)과 의미 분리: 높음=초록 / 검토 필요=앰버 / 낮음·위험=빨강.
     2026-06-17: 옛 #B8453D(벽돌 빨강)는 --danger 와 한 계열이라 "92점인데 빨강 검토필요" 모순을 낳았음.
     모든 var(--warn) 사용처가 '주의' 의미(감사 확인, danger 의도 0건)라 앰버로 재정의가 정합.
     2026-06-23: 옛 #9A6A00 은 크림 위 4.14:1 로 AA 소형 텍스트(4.5:1) 미달 → #8A5E00 으로 휘도만 낮춰
     대비 ~4.99:1 (WCAG 2.2 AA 소형 통과). 앰버 hue 는 유지(cross-surface 일관). W-A11Y-001 waiver 해소. */
  --warn: #8A5E00;
  --hold: #B47B1E;
  --danger: #7A2925;
  --rule: rgba(26, 26, 26, 0.1);
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.06);
}

/* ========== Reset ========== */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><filter id='grain'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.40  0 0 0 0 0.32  0 0 0 0 0.21  0 0 0 0.42 0'/></filter><rect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.75'/><g stroke='%238B6F4E' fill='none' opacity='0.18' stroke-linecap='round'><path d='M-20 70 Q 180 62 380 76 T 780 68' stroke-width='0.5'/><path d='M-20 158 Q 200 168 400 152 T 800 162' stroke-width='0.35'/><path d='M-20 235 Q 170 224 360 240 T 760 232' stroke-width='0.5'/><path d='M-20 322 Q 210 332 410 318 T 810 326' stroke-width='0.4'/><path d='M-20 412 Q 180 402 380 416 T 780 408' stroke-width='0.5'/><path d='M-20 498 Q 200 508 400 492 T 800 502' stroke-width='0.35'/><path d='M-20 580 Q 170 572 360 586 T 760 578' stroke-width='0.45'/></g><g fill='%237A5E40' opacity='0.16'><circle cx='62' cy='118' r='0.7'/><circle cx='178' cy='84' r='0.5'/><circle cx='322' cy='162' r='0.8'/><circle cx='488' cy='102' r='0.6'/><circle cx='128' cy='248' r='0.7'/><circle cx='268' cy='292' r='0.5'/><circle cx='402' cy='268' r='0.8'/><circle cx='544' cy='244' r='0.6'/><circle cx='84' cy='378' r='0.7'/><circle cx='218' cy='408' r='0.5'/><circle cx='358' cy='378' r='0.7'/><circle cx='498' cy='402' r='0.6'/><circle cx='154' cy='502' r='0.6'/><circle cx='298' cy='534' r='0.5'/><circle cx='442' cy='498' r='0.7'/></g></svg>"),
    radial-gradient(ellipse at 22% 14%, rgba(184,148,106,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 86%, rgba(108, 84, 60, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  background-size: 600px 600px, auto, auto;
  color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "tnum" 1;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 240ms ease-out, color 240ms ease-out;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 200ms ease-out;
}

a:hover {
  color: var(--brass);
}

/* ========== Typography ========== */

h1, h2 {
  font-family: "MaruBuriSemiBold", "MaruBuri", "Apple SD Gothic Neo", serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

h3 {
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin: 0;
}

h1 {
  font-size: clamp(28px, 5vw, 52px);
}

h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  color: var(--ink);
  margin-top: 16px;
}

/* 콤마 split (typography.js가 자동 적용) */
.hd-pre-comma {
  font-family: "MaruBuriSemiBold", "MaruBuri", serif;
  font-weight: 400;
  color: var(--ink);
}

.hd-post-comma {
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: var(--ink-mute);
  font-size: 0.82em;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-left: 16px;
}

.label {
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.mono {
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", monospace;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

p {
  margin: 0 0 16px 0;
  color: var(--ink);
}

p.lead {
  font-size: 18px;
  color: var(--ink-mute);
  max-width: 56ch;
}

/* ========== Layout ========== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 980px) {
  .container {
    padding: 0 24px;
  }
}

/* ========== Header ========== */

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* 업데이트 내역 — 헤더 우측 상시 노출(모든 페이지 최상단). margin-left:auto 로 ≤980px flex-start 에서도 우측 고정. */
.header-updates-link {
  margin-left: auto;
  flex-shrink: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brass, #B8946A);
  text-decoration: none;
  padding: 7px 15px;
  border: 1px solid var(--brass-soft, rgba(184, 148, 106, 0.4));
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.header-updates-link:hover,
.header-updates-link:focus-visible {
  background: rgba(184, 148, 106, 0.1);
  border-color: var(--brass, #B8946A);
}
.header-updates-link[aria-current="page"] {
  background: var(--brass, #B8946A);
  border-color: var(--brass, #B8946A);
  color: #fffdf7;
}
@media (max-width: 768px) {
  .header-updates-link { font-size: 12px; padding: 6px 12px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Pretendard", serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg, .brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ===== Hero 2-column (text + photo) ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-grid .hero-content { min-width: 0; }
.hero-art {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { display: none; }
}

/* ===== Reality callout (분쟁 현실 섹션) ===== */
.reality-section {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(184, 148, 106, 0.04);
}
.reality-callout {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.reality-headline {
  font-family: "Pretendard", serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.reality-body {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--ink-mute);
  margin: 0;
}
.reality-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* 진행점 8칸 */
.progress-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
  transition: background 200ms ease-out;
}

.progress-dots .dot.active {
  background: var(--ink);
}

.progress-dots .dot.done {
  background: var(--brass);
}

@media (max-width: 980px) {
  .site-header .container {
    justify-content: flex-start;
  }
  .progress-dots {
    gap: 8px;
  }
  .progress-dots .dot {
    width: 5px;
    height: 5px;
  }
}

/* ========== Hero ========== */

.hero {
  padding: 40px 0 64px;
  position: relative;
}

@media (max-width: 980px) {
  .hero {
    padding: 24px 0 40px;
  }
}

.hero-content {
  max-width: 980px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .lead {
  margin-bottom: 32px;
}

/* ========== Forms / Input ========== */

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.input-group label {
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.input,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  padding: 18px 20px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  width: 100%;
  transition: border-color 200ms ease-out;
  line-height: 1.5;
}

.input:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--ink-mute);
  opacity: 0.6;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

/* CTA */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 18px 36px;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background 260ms ease-out,
              color 220ms ease-out,
              border-color 220ms ease-out,
              box-shadow 260ms ease-out,
              gap 220ms ease-out;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

/* 좌→우로 채워지는 sheen overlay */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.10) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #FBF8F3;
  box-shadow: 0 12px 24px rgba(60, 40, 24, 0.22);
  gap: 14px;
}

.btn-primary:hover::before {
  transform: translateX(110%);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(60, 40, 24, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn-arrow {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ========== Back link (small text link with 44px touch target) ========== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 4px;
  min-height: 44px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: color 200ms ease-out;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--brass);
}

.back-link:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ========== Filter chip (44px touch target) ========== */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}

.chip:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.chip:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ========== Cards ========== */

.card {
  background: var(--surface);
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 32px;
  position: relative;
  transition: border-color 200ms ease-out;
}

.card.compact {
  padding: 24px;
}

.card.dim {
  opacity: 0.5;
}

.card.active {
  border-color: var(--accent);
  border-width: 2px;
  padding: 31px;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.card-icon img {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-family: "Pretendard", serif;
  font-weight: 300;
  font-size: 20px;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.6;
}

.card-label {
  font-family: "Pretendard", monospace;
  font-weight: 500;
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: block;
}

/* ========== 9-step Pipeline ========== */

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 56px 0;
}

@media (max-width: 980px) {
  .pipeline-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .pipeline-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: left;
  transition: all 240ms ease-out;
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.step-card.active {
  opacity: 1;
  border-color: var(--accent);
  border-width: 2px;
  padding: 19px 15px;
}

.step-card.done {
  opacity: 0.85;
}

.step-card .step-label {
  font-family: "Pretendard", monospace;
  font-weight: 500;
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.04em;
}

.step-card .step-icon {
  width: 32px;
  height: 32px;
}

.step-card .step-name {
  font-family: "Pretendard", serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

/* ========== Score Gauge ========== */

.score-gauge {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
}

.gauge-svg {
  width: 100%;
  height: auto;
  display: block;
}

.score-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Pretendard", serif;
  font-weight: 300;
}

.score-number {
  font-size: 88px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.score-suffix {
  font-size: 18px;
  color: var(--ink-mute);
  margin-top: 8px;
}

/* ========== Grade badge ========== */

.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--brass);
  border-radius: 100px;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.grade-badge.possible { color: var(--trust); }
.grade-badge.warn { color: var(--warn); }
.grade-badge.danger { color: var(--danger); }

.grade-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ========== Decoration — organic curve ========== */

.curve-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.curve-decor.bottom-right {
  bottom: 0;
  right: 0;
  width: 540px;
  height: 540px;
  opacity: 0.9;
}

.curve-decor.top-right {
  top: 80px;
  right: 0;
  width: 600px;
  height: 340px;
  opacity: 0.7;
}

@media (max-width: 980px) {
  .curve-decor.bottom-right,
  .curve-decor.top-right {
    width: 280px;
    height: 280px;
    opacity: 0.6;
  }
}

/* ========== Section divider ========== */

.section {
  padding: 80px 0;
}

@media (max-width: 980px) {
  .section {
    padding: 56px 0;
  }
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}

/* ========== Footer ========== */

.site-footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.disclaimer {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
  max-width: 640px;
  padding-left: 22px;
  text-indent: -22px;
}

.disclaimer::before {
  content: "⚠";
  display: inline-block;
  width: 14px;
  margin-right: 8px;
  color: var(--brass);
  /* 부모의 text-indent(-22px)를 물려받으면 아이콘이 상자 안에서 22px 왼쪽으로 밀려 휴대폰에서 화면 밖으로 잘림 */
  text-indent: 0;
}

/* ========== Hero photo / illustration ========== */

.hero-media {
  position: relative;
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.hero-media img.photo {
  width: 100%;
  height: auto;
}

/* ========== Utilities ========== */

.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-mute { color: var(--ink-mute); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ========== Fade-in motion ========== */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 200ms ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 80ms; }
.fade-in.delay-2 { animation-delay: 160ms; }
.fade-in.delay-3 { animation-delay: 240ms; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Contrast fixes (Stage 9 round) ========== */
.pipeline-cards-compact .step-card,
.card.compact {
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(26,26,26,0.08);
}
.pipeline-cards-compact .step-card .step-icon,
.card-icon img.gold-icon {
  display: block;
}
.curve-decor.top-right,
.curve-decor.bottom-right {
  opacity: 0.85 !important;
}
.dropzone .icon-large {
  width: 80px;
  height: 80px;
}
.dropzone .icon-large img.gold-icon {
  width: 80px !important;
  height: 80px !important;
}

/* 금색 아이콘 톤 강화 — 한 톤 진하게 */
img.gold-icon {
  filter: brightness(0.9) saturate(1.25) contrast(1.06);
}

/* ========== Pencil underline — 연필로 그은 듯한 흐트러진 흑연 밑줄 (중요 문장 강조) ========== */
.pen-underline {
  position: relative;
  display: inline;
  padding-bottom: 0.28em;
  text-decoration: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><g stroke='%235C5048' fill='none' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7 Q 75 6.4 150 7 Q 225 7.4 296 6.8' stroke-width='1.3' opacity='0.6'/><path d='M6 7.6 Q 78 7.3 168 7.5 Q 263 7.7 294 7.4' stroke-width='0.7' opacity='0.35'/></g></svg>");
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  background-position: 0 calc(100% - 0.02em);
}

/* ========== 9단계 흐름 그래프 — 검색·보호·결과 ========== */
.flow-section {
  padding: 80px 0 64px;
  position: relative;
}
.flow-header {
  text-align: center;
  margin-bottom: 56px;
}
.flow-header .label {
  display: block;
  margin-bottom: 14px;
}
.flow-h2 {
  font-family: "Pretendard", serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.flow-subtitle {
  color: var(--ink-mute);
  font-size: 15px;
  margin: 0;
}

.flow-graph {
  display: grid;
  grid-template-columns: 1.35fr auto 1fr auto 0.8fr;
  gap: 12px;
  align-items: stretch;
}

.flow-group {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 18px;
  padding: 22px 18px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(184, 148, 106, 0.32);
  border-radius: 4px;
}
.flow-group[data-group="protect"] { background: rgba(255,255,255,0.30); }
.flow-group[data-group="report"]  { background: rgba(26, 26, 26, 0.035); }

.flow-group-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 38px;
  padding-top: 4px;
}
.flow-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #C5202F;
  color: #FAF7F2;
  font-family: "Pretendard", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-3deg);
  box-shadow: 0 2px 4px rgba(180, 30, 30, 0.18);
}
.flow-group[data-group="protect"] .flow-stamp { opacity: 0.75; }
.flow-group[data-group="report"]  .flow-stamp { opacity: 0.55; }
.flow-group-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Pretendard", serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.flow-group-count {
  font-family: "Pretendard", serif;
  font-size: 10px;
  color: var(--brass);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}

.flow-nodes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  grid-template-areas:
    "icon  title  num"
    "icon  sub    num";
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  background: #FAF6F0;
  border: 1px solid rgba(184, 148, 106, 0.40);
  border-radius: 3px;
  transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 220ms ease-out,
              border-color 220ms ease-out;
}
.flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 8px;
  background: var(--brass);
  opacity: 0.5;
}
.flow-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(60, 40, 24, 0.10);
  border-color: rgba(184, 148, 106, 0.7);
}
.flow-node-icon {
  grid-area: icon;
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 1;
  filter: none;
}
.flow-node-title {
  grid-area: title;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.flow-node-sub {
  grid-area: sub;
  font-family: "Pretendard", monospace;
  font-size: 10px;
  color: var(--brass);
  letter-spacing: 0.06em;
}
.flow-node-num {
  grid-area: num;
  align-self: center;
  font-family: "Pretendard", serif;
  font-size: 13px;
  font-weight: 600;
  color: #6B4A23;
  letter-spacing: 0.02em;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--brass);
  opacity: 0.55;
  font-weight: 300;
}

.flow-cta {
  text-align: center;
  margin-top: 56px;
}

@media (max-width: 980px) {
  .flow-graph {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .flow-arrow {
    transform: rotate(90deg);
    font-size: 18px;
    opacity: 0.6;
  }
  .flow-group {
    flex-direction: column;
    gap: 14px;
  }
  .flow-group-label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border-bottom: 1px solid rgba(184, 148, 106, 0.25);
    padding-bottom: 10px;
  }
  .flow-group-title {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  .flow-group-count {
    writing-mode: horizontal-tb;
    margin-left: auto;
  }
  .flow-stamp { transform: rotate(-3deg); }
}

/* ========== Page tabs — 한지 + 도장 톤 정렬 ========== */
.page-nav {
  background: var(--surface);
  border-bottom: 1px dashed var(--brass-soft);
  padding: 6px 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-nav .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.page-nav .container::-webkit-scrollbar { display: none; }

.page-nav .nav-label {
  display: none;
}

.page-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  border: 0;
  border-radius: 0;
  transition: color 200ms ease-out;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.page-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.page-nav a:hover,
.page-nav a:focus-visible {
  color: var(--ink);
}
.page-nav a:hover::after,
.page-nav a:focus-visible::after {
  transform: scaleX(1);
}
.page-nav a.active {
  color: var(--ink);
  font-weight: 500;
}
.page-nav a.active::after {
  transform: scaleX(1);
  height: 1px;
  background: var(--brass);
}
.page-nav a .num {
  font-family: "Pretendard", serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--brass);
  opacity: 1;
  letter-spacing: 0.04em;
}
.page-nav a.active .num {
  color: var(--ink);
  opacity: 1;
}

/* 9번째 nav 항목 (변리사 연결) — 준비중 */
.page-nav .nav-sep {
  color: var(--rule);
  margin: 0 6px;
  font-size: 12px;
  user-select: none;
  opacity: 0.6;
}
.page-nav a.nav-pending {
  color: var(--ink-mute);
  opacity: 0.55;
  cursor: not-allowed;
  font-style: italic;
}
.page-nav a.nav-pending:hover,
.page-nav a.nav-pending:focus-visible {
  color: var(--ink-mute);
  opacity: 0.75;
}

/* 폰: 9단계 네비가 화면 폭을 넘어 가로 스크롤될 때(min-width:44px×9 라 ≤~405px 에서 항상 넘침),
   오른쪽 끝을 페이드해 "더 있음 · 옆으로 넘겨보세요" 를 암시. 데스크톱은 전 항목이 들어가 비표시.
   V6(에이전트 리뷰 2026-07-03): 표면색 36px 페이드만으로는 지각 불가(크림 위 크림) → 페이드 강화
   + 브라스 화살표 어포던스. JS(state.js)가 끝까지 스크롤하면 .nav-scroll-end 로 숨김 —
   JS 실패 시엔 힌트가 항상 보이는 쪽으로 fail-open. */
@media (max-width: 480px) {
  .page-nav::after {
    content: "›";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 15px;
    line-height: 1;
    color: var(--brass);
    background: linear-gradient(to right, rgba(251, 248, 243, 0), var(--surface) 62%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 200ms ease-out;
  }
  .page-nav.nav-scroll-end::after {
    opacity: 0;
  }
}
.page-nav a.nav-pending::after { display: none; }
.page-nav a.nav-pending .num { display: none; }
.page-nav a.nav-pending .nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px 2px;
  font-family: "Pretendard", serif;
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.03em;
  color: var(--brass);
  background: transparent;
  border: 1px solid var(--brass);
  border-radius: 2px;
  vertical-align: 1px;
}
@media (max-width: 760px) {
  .page-nav a.nav-pending .nav-badge { display: none; }
  .page-nav .nav-sep { display: none; }
}

/* audit (2026-05-17) — integrity cap 안내 (4 페이지 공용) */
.integrity-cap-notice {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 22px 26px;
  border: 1px solid var(--warn);
  border-radius: 10px; /* TK 10-25: 왼쪽 선(4px) 없이 — 고객 화면 공통 규칙 */
  background: rgba(184, 134, 11, 0.06);
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
}
.integrity-cap-notice[hidden] { display: none !important; }
.integrity-cap-notice .icn-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.integrity-cap-notice .icn-badge {
  font-family: "Pretendard", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid var(--warn);
  padding: 3px 10px;
  border-radius: 100px;
}
.integrity-cap-notice h4 {
  margin: 0;
  font-family: "Pretendard", serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
}
.integrity-cap-notice p { margin: 0 0 10px; color: var(--ink); font-size: 14px; line-height: 1.65; }
.integrity-cap-notice ul { padding-left: 20px; margin: 6px 0 14px; color: var(--ink); font-size: 13px; line-height: 1.85; }
.integrity-cap-notice .icn-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.integrity-cap-notice .icn-btn {
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid var(--brass);
  border-radius: 100px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  transition: all 180ms ease-out;
}
.integrity-cap-notice .icn-btn:hover { background: var(--bg); border-color: var(--warn); }
@media (max-width: 980px) {
  .page-nav .container { gap: 4px; padding: 0 24px; }
  .page-nav a { padding: 6px 10px; font-size: 12px; }
  .page-nav .nav-label { display: none; }
}

/* ========== Mobile (≤600px) — 8 페이지 공통 모바일 최적화 ========== */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  /* Header — 좌우 정렬을 컬럼으로 (brand + dots stack) */
  .site-header { padding: 20px 0; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand { font-size: 16px; }

  /* Hero — padding 축소 */
  .hero { padding: 32px 0 24px; }

  /* Typography */
  h1 { font-size: 30px; line-height: 1.2; }
  h2 { font-size: 18px; line-height: 1.35; }
  .hd-post-comma { font-size: 0.8em; margin-left: 10px; }
  p.lead { font-size: 16px; }

  /* Forms */
  .input, input[type="text"], input[type="email"], input[type="tel"], textarea { font-size: 16px; padding: 14px 16px; }
  /* 업종 설명 칸: 폰에서는 두 줄 높이로 시작하고, 글이 늘면 칸이 따라 커져요(mark.html fitDesc). */
  #product-desc { min-height: 86px; resize: none; overflow: hidden; }
  .input-group { margin-bottom: 20px; }
  .input-group label { font-size: 13px; }

  /* Buttons */
  .btn { padding: 14px 22px; font-size: 15px; min-height: 52px; letter-spacing: 0; }
  .actions-row { flex-direction: column-reverse !important; gap: 12px !important; align-items: stretch !important; }
  .actions-row .btn, .actions-row a.btn { width: 100%; }

  /* Cards / grids — 1열 강제 */
  .card { padding: 24px; }
  .card.compact { padding: 20px; }
  .card.active { padding: 23px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 16px; }

  /* Pipeline grid — 2열 */
  .pipeline-flow { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .step-card { padding: 16px 12px; min-height: 100px; }

  /* Score gauge 축소 */
  .score-gauge { width: 240px; }
  .score-number { font-size: 68px; }
  .score-suffix { font-size: 14px; }

  /* Page-nav 모바일 더 작게 + 2줄 wrap */
  .page-nav .container { gap: 3px; padding: 6px 16px; }
  .page-nav a { padding: 5px 8px; font-size: 11px; }
  .page-nav a .num { display: none; }

  /* Page nav at top of nav */
  .page-nav { padding: 6px 0; }

  /* Section padding */
  .section { padding: 40px 0; }

  /* Footer */
  .site-footer { padding: 28px 0; }
  .site-footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .disclaimer { font-size: 12px; }
  /* 폰: 푸터 법적 링크(개인정보처리방침·이용약관) 탭 영역 ≥44px (14px 줄높이라 손가락 탭이 빡빡) */
  .site-footer a { display: inline-block; padding: 12px 10px; min-height: 44px; box-sizing: border-box; }

  /* Hero-media padding — 사진 비율 보존하면서 좌우 여백 작게 */
  .hero-media { border-radius: 6px; }

  /* Result-detail 후보 표(.candidate-table) 폰 배치는 result-detail.html 안 @media(max-width:600px) 한 곳에만 둔다.
     D1(2026-09-26): 여기 있던 2026-05-16 규칙(4번째 칸 숨김 !important)은 표가 4칸이던 때 것이라, 08-25 유사군 열이
     끼어든 뒤로는 폰에서 「유사군」 칸을 통째로 숨기고 있었다(회원 원칙 「유사군 전부 표시」 위반) → 제거. */

  /* Mark .logo-upload — flex stack */
  .logo-upload { flex-direction: column !important; gap: 12px !important; padding: 24px !important; text-align: center; }
  .logo-preview { margin: 0 auto !important; }

  /* After timeline-row — 라벨 위, 본문 아래 stack */
  .timeline-row { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; padding: 14px 0 !important; }
  .timeline-row .when { font-size: 12px; }
  .timeline-row .what { font-size: 14px; }

  /* Result-pdf .pdf-card */
  .pdf-card { padding: 24px 20px !important; }

  /* Result-pdf .next-grid — 2열 모바일 */
  .next-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Pen underline — 모바일 padding 살짝 줄이기 */
  .pen-underline { padding-bottom: 0.24em; background-size: 100% 0.26em; }

  /* Curve decor 모바일에서 약하게 */
  .curve-decor.bottom-right, .curve-decor.top-right { width: 200px; height: 200px; opacity: 0.5; }

  /* Hero-content 인라인 max-width 무력화 → 모바일에선 폭 100% */
  .hero-content { max-width: 100% !important; }

  /* 06 후보 표: D1(2026-09-26) — 「류 열 숨기고 3-열로 좁힘」 !important 규칙 제거. 폰에서 류·유사군을 숨기고
     오른쪽에 빈 64px 칸을 남겼다(관련도 단어가 이유 줄 아래로 밀림). 폰 카드 배치 = result-detail.html 한 곳. */

  /* 06 비용 패널 본문 폰트 축소 */
  .cost-line { font-size: 13px !important; padding: 12px 0 !important; }
  .cost-total { font-size: 17px !important; }
  .cost-panel { padding: 22px !important; }

  /* 07 PDF 카드 + 다음 단계 그리드 — 한 열 */
  .pdf-pair { grid-template-columns: 1fr !important; gap: 20px !important; }
  .pdf-card { padding: 22px !important; }
  .next-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .next-steps { padding: 22px !important; }

  /* 08 사후관리 카드 padding 축소 */
  .care-grid { gap: 16px !important; margin: 36px 0 !important; }
  .care-card { padding: 28px 20px !important; }

  /* 03 상표정보 textarea 모바일 폰트 */
  textarea { font-size: 16px !important; }

  /* Pipeline 9-카드 + 터미널 — 한 열 */
  .pipeline-layout { gap: 24px !important; }
  .pipeline-flow { grid-template-columns: repeat(2, 1fr) !important; }
  .step-card .step-label { font-size: 10px !important; }

  /* 결과 페이지 사진(img) 모바일에서 자동 폭 */
  section img.photo, .care-card img, .pdf-card img.gold-icon { max-width: 100%; height: auto; }
}

/* LQA-21 (v5 2026-05-25): AI 생성 이미지 caption 통일 — v1 토큰 1:1.
   대상: hero photo + 손글씨 메모 등 AI 생성 photo/illustration 직하 figure caption.
   N4 (2026-05-26 redesign): AI 생성 이미지는 우측 정렬, 본문 텍스트와 시각 분리.
   inline-block + margin-left auto로 본문 영향 없이 figure만 우측 이동. */
figure.ai-figure {
  margin: 0 0 0 auto;
  display: block;
  text-align: right;
}
figure.ai-figure img {
  margin-left: auto;
  display: block;
}
figcaption.ai-caption {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
  text-align: right;
}

/* ─────────────────────────────────────────────────────────────────────────────
   [hidden] 전역 권위 — 2026-08-13 (T1 코드리뷰 발단 · deep-idea 구조 대안 채택)

   결함 클래스: UA 스타일시트의 `[hidden]{display:none}` 은 **author origin** 선언에 무조건 진다.
   이 파일만 해도 `display:` 를 선언하는 셀렉터가 59개라, `.chip`·`label`·`.integrity-warning` 처럼
   display 를 가진 요소에 `hidden` 을 걸면 **속성은 붙는데 화면에는 그대로 보인다.**
   그래서 지금까지 요소마다 `.foo[hidden]{display:none}` 을 개별로 덧붙여 왔고 — v1 화면 5개 +
   이 파일에 걸쳐 **25곳** — 새 요소가 생길 때마다 같은 함정을 다시 밟았다(T1 의 5번째 칩이 8번째 재발).
   개별 규칙은 증상 치료라 「다음 요소」를 못 막는다. 한 줄로 클래스 자체를 없앤다.

   안전 사전검증(2026-08-13): ①`[hidden]` 요소를 **일부러 보이게 하는** 규칙 0건(전 매치가 주석이거나
   `:not([hidden])` 셀렉터) ②`style.display` 토글 65곳 중 `hidden` 속성을 동시에 쓰는 요소 0건
   (apply.html 의 본점주소 필드는 애초에 `hidden` 을 안 쓰고 display 로만 토글).
   기존 개별 규칙 25곳은 그대로 둔다 — 중복일 뿐 무해하고, 지우는 건 이 트랙 범위 밖이다.
   ───────────────────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }
