/* 랩프레소 랜딩 스타일. 색·글꼴 토큰은 /assets/tokens.css(정본 docs/BRAND.md)를 쓴다.
   레이아웃·위계는 WORB 랜딩(흰 바탕 · 1px 헤어라인 · 모노 라벨 · 반전 CTA 카드)을 따른다(BRAND §7).
   CSP(style-src 'self') 때문에 인라인 style 속성·<style> 태그 없이 이 파일만 쓴다. */

/* ── 기본 ───────────────────────────────────────────── */
:root {
  --wrap: 1120px;
  --gutter: 24px;
  --section-y: 120px;
  --header-h: 60px;
  /* 모노 라벨(영문 대문자 전용). 외부 글꼴을 받지 않으므로 시스템 고정폭 글꼴을 쓴다. */
  --lp-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 1023px) {
  :root { --section-y: 96px; }
}
@media (max-width: 767px) {
  :root { --section-y: 72px; --gutter: 20px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--lp-surface);
  color: var(--lp-ink);
  font-family: var(--lp-font);
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
strong { font-weight: 600; }

a { color: var(--lp-crema-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

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

/* ── 반전 면(히어로 카메라 카드·마무리 CTA): BRAND.md 다크 값으로 토큰을 다시 정의 ── */
.on-dark {
  --lp-bg: #000000;
  --lp-surface: #111111;
  --lp-surface-alt: #1A1A1A;
  --lp-line: rgba(255, 255, 255, 0.16);
  --lp-ink: #FFFFFF;
  --lp-ink-muted: #A1A1A1;
  --lp-ink-faint: #737373;
  --lp-crema: #FFFFFF;
  --lp-crema-strong: #FFFFFF;
  --lp-on-crema: #000000;
  --lp-weight: #F5F5F5;
  --lp-flow: #999999;
  --lp-target: #A1A1A1;
  --lp-ok: #58B889;
  --lp-warn: #E0AE55;
  --lp-alert: #F06A70;
  --lp-info: #CCCCCC;
  --lp-focus: #FFFFFF;
  background-color: var(--lp-bg);
  color: var(--lp-ink);
}

/* ── 모노 라벨 ─────────────────────────────────────── */
.eyebrow,
.feature-label,
.camera-title {
  color: var(--lp-ink-muted);
  font-family: var(--lp-mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: 14px; }

/* ── 버튼·칩·배지 ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--lp-radius-md);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--lp-crema); border-color: var(--lp-crema); color: var(--lp-on-crema); }
.btn--primary:hover { opacity: 0.82; }
.btn--ghost { border-color: var(--lp-line); color: var(--lp-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--lp-ink-muted); }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 14px; }

.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface-alt);
  color: var(--lp-ink-muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  vertical-align: 1px;
}

/* 판정 배지(목표 범위·주의·이탈·목표 없음) — 판정 색은 여기와 차트에만 쓴다. */
.badge {
  --badge-c: var(--lp-ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--badge-c) 45%, var(--lp-line));
  border-radius: var(--lp-radius-pill);
  background: color-mix(in srgb, var(--badge-c) 10%, var(--lp-surface));
  color: var(--lp-ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-ic { width: 14px; height: 14px; flex: none; color: var(--badge-c); }
.badge--ok { --badge-c: var(--lp-ok); }
.badge--warn { --badge-c: var(--lp-warn); }
.badge--alert { --badge-c: var(--lp-alert); }
.badge--none { --badge-c: var(--lp-ink-muted); }

/* 아이콘 원본 — 화면에 직접 그리지 않고 <use>로 가져다 쓴다. */
.sprite { display: none; }

.unit {
  margin-left: 3px;
  color: var(--lp-ink-muted);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}

/* ── 헤더 ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--lp-surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--lp-line);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lp-ink);
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 26px; height: 26px; }
.wordmark {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 10px;
  border-radius: var(--lp-radius-sm);
  color: var(--lp-ink-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--lp-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: 8px; }
.header-actions--end { margin-left: auto; }
.nav-toggle {
  display: none;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-md);
  background: transparent;
  color: var(--lp-ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px var(--gutter) 16px;
    background: var(--lp-surface);
    border-bottom: 1px solid var(--lp-line);
  }
  .site-header.is-open .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--lp-line);
    border-radius: 0;
    color: var(--lp-ink);
    font-size: 16px;
    line-height: 24px;
  }
  .site-header.is-open .site-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 419px) {
  .hide-xs { display: none; }
}

@media (max-width: 479px) {
  .wordmark { font-size: 15px; }
  .brand { gap: 8px; }
  .header-actions .btn--small { padding: 0 12px; }
}

/* ── 공통 섹션 ─────────────────────────────────────── */
.section { padding: var(--section-y) 0; }
.section--alt {
  background: var(--lp-bg);
  border-block: 1px solid var(--lp-line);
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.26;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.section-lead {
  margin-top: 16px;
  color: var(--lp-ink-muted);
  font-size: 17px;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .section-head { margin-bottom: 32px; }
  .section-head h2 br { display: none; }
  .section-lead { font-size: 16px; line-height: 26px; }
}

.panel {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  padding: 24px;
}
.card {
  padding: 24px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
figcaption {
  margin-top: 16px;
  color: var(--lp-ink-muted);
  font-size: 13px;
  line-height: 20px;
}

/* ── 차트 공통(인라인 SVG) ─────────────────────────── */
.chart {
  --chart-fs: 10.5px;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart text {
  font-family: var(--lp-font);
  font-size: var(--chart-fs);
  fill: var(--lp-ink-muted);
  font-feature-settings: "tnum";
}
.chart .lbl--strong { fill: var(--lp-ink); font-weight: 600; }
.chart .lbl--halo {
  fill: var(--lp-ink);
  font-weight: 600;
  paint-order: stroke;
  stroke: var(--lp-surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.chart .grid path {
  fill: none;
  stroke: var(--lp-line);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.chart .zone,
.chart .zone rect { fill: var(--lp-target); fill-opacity: 0.14; }
.chart .zone-edge,
.chart .zone-edge path {
  fill: none;
  stroke: var(--lp-target);
  stroke-width: 1px;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}
.chart .event path {
  fill: none;
  stroke: var(--lp-ink-muted);
  stroke-width: 1px;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}
.chart .axis {
  fill: none;
  stroke: var(--lp-ink-faint);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.chart .axis--strong { stroke: var(--lp-ink-muted); stroke-width: 1.5px; }
.chart .line {
  fill: none;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chart .line--weight { stroke: var(--lp-weight); }
.chart .line--flow { stroke: var(--lp-flow); }
.chart .line--muted { stroke: var(--lp-ink-faint); stroke-width: 1.5px; }
.chart .dot { stroke: var(--lp-surface); stroke-width: 2px; }
.chart .dot--alert { fill: var(--lp-alert); }

.chart .pt circle,
.chart .pt path { stroke: var(--lp-surface); stroke-width: 1.5px; }
.chart .pt-ok { fill: var(--lp-ok); }
.chart .pt-warn { fill: var(--lp-warn); }
.chart .pt-alert { fill: var(--lp-alert); }
.chart .pt-base { fill: var(--lp-ink-muted); }
.chart .pt-weight circle { fill: var(--lp-ink-muted); stroke: none; }

/* 칸 바탕·칸 이름(앱 PanelChart와 같은 모양). */
.chart .panel-bg { fill: var(--lp-surface-alt); }
.chart .panel-key circle { fill: var(--lp-crema); }
.chart .panel-key .key--rate { fill: var(--lp-target); }
.chart .bar-ink { fill: var(--lp-crema); }
.chart .line--rate { stroke: var(--lp-target); }
.chart .pt-rate { fill: var(--lp-target); }

/* 레퍼런스 곡선과 현재 시점(BRAND §5) — 무게 칸 2px 점선(6·4), 유량 칸 1.5px 점선(4·4). */
.chart .line--ref { stroke: var(--lp-target); stroke-dasharray: 6 4; }
.chart .line--ref-flow { stroke: var(--lp-target); stroke-width: 1.5px; stroke-dasharray: 4 4; }
.chart .now { fill: none; stroke: var(--lp-ink); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chart .now-dot { fill: var(--lp-ink); stroke: var(--lp-surface); stroke-width: 2px; }

.chart .limit { fill: none; stroke: var(--lp-ink-muted); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.chart .target-mark { fill: none; stroke: var(--lp-target); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.chart .delta { fill: none; stroke: var(--lp-alert); stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; }

@media (min-width: 1024px) {
  .chart--drift { --chart-fs: 9.5px; }
}
@media (max-width: 1023px) {
  .chart, .chart--range { --chart-fs: 9px; }
}
@media (max-width: 599px) {
  .chart, .chart--range { --chart-fs: 15.5px; }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--lp-ink-muted);
  font-size: 12px;
  line-height: 16px;
}
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; flex: none; }
.key--frame { width: 7px; height: 12px; border: 1px solid var(--lp-ink-faint); border-radius: 1.5px; background: var(--lp-surface-alt); }
.key--stream { width: 2px; height: 12px; border-radius: 1px; background: var(--lp-ink); }
.key--blond { width: 2px; height: 12px; border-radius: 1px; background: var(--lp-ink-faint); }
.key--sample { width: 5px; height: 5px; border-radius: 50%; background: var(--lp-ink-muted); }
.mk { display: inline-block; width: 9px; height: 9px; }
.mk--ok { border-radius: 50%; background: var(--lp-ok); }
.mk--warn { width: 10px; background: var(--lp-warn); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mk--alert { width: 8px; height: 8px; border-radius: 2px; background: var(--lp-alert); }
.key--weight { width: 12px; height: 2px; border-radius: 1px; background: var(--lp-weight); }
.key--flow { width: 12px; height: 2px; border-radius: 1px; background: var(--lp-flow); }
.key--ref { width: 12px; border-top: 2px dashed var(--lp-target); }
.key--target { width: 12px; border-top: 1px dashed var(--lp-target); }
.key--band {
  width: 12px;
  height: 10px;
  border: 1px dashed var(--lp-target);
  border-radius: 2px;
  background: color-mix(in srgb, var(--lp-target) 14%, transparent);
}

/* ── 히어로 ─────────────────────────────────────────── */
.hero { padding: 88px 0 112px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.hero-lead {
  margin-top: 24px;
  max-width: 32em;
  color: var(--lp-ink-muted);
  font-size: 17px;
  line-height: 1.75;
}
.hero-sub {
  margin-top: 14px;
  max-width: 32em;
  color: var(--lp-ink);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-note { margin-top: 12px; color: var(--lp-ink-muted); font-size: 13px; line-height: 20px; }

/* 카메라 화면 개념도 */
.camera {
  padding: 20px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
}
.camera-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.camera-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.viewfinder { width: 100%; height: auto; }
.vf-bg { fill: var(--lp-surface-alt); }
.vf-corner { fill: none; stroke: var(--lp-ink-muted); stroke-width: 1.5; stroke-linecap: round; }
.vf-rec { fill: var(--lp-ink); }
.vf-text { fill: var(--lp-ink-muted); font-family: var(--lp-mono); font-size: 10px; letter-spacing: 0.08em; }
.vf-line { fill: none; stroke: var(--lp-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vf-thin { stroke: var(--lp-ink-faint); stroke-width: 1; }
.vf-stream { fill: var(--lp-weight); stroke: none; }
.vf-roi { fill: none; stroke: var(--lp-ink-muted); stroke-width: 1.25; stroke-dasharray: 4 3; }
.vf-tag rect { fill: var(--lp-ink); }
.vf-tag-text text { fill: var(--lp-bg); font-family: var(--lp-mono); font-size: 9px; font-weight: 700; }

.camera-side-title { color: var(--lp-ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; }
.camera-side-title--sub { margin-top: 18px; }
.camera-side-title span {
  margin-left: 4px;
  padding: 0 6px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-pill);
  font-weight: 500;
}
.events { margin-top: 8px; border-top: 1px solid var(--lp-line); }
.events div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--lp-line);
}
.events dt { color: var(--lp-ink-muted); font-size: 13px; line-height: 18px; }
.events dd { font-size: 16px; line-height: 20px; font-weight: 600; font-feature-settings: "tnum"; white-space: nowrap; }
.events .unit { margin-left: 2px; font-size: 12px; }
.camera-side-note { margin-top: 8px; color: var(--lp-ink-muted); font-size: 12px; line-height: 17px; }
.roi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  color: var(--lp-ink-muted);
  font-size: 12px;
  line-height: 16px;
}
.roi-legend li { display: inline-flex; align-items: center; gap: 6px; }
.roi-no {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--lp-ink);
  color: var(--lp-bg);
  font-family: var(--lp-mono);
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
}
.camera figcaption { margin-top: 12px; font-size: 12px; line-height: 18px; }

@media (max-width: 1023px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { max-width: 640px; }
  .camera { max-width: 640px; }
}
@media (max-width: 599px) {
  .hero { padding: 40px 0 64px; }
  .hero-lead { font-size: 16px; line-height: 26px; }
  .cta-row .btn { flex: 1 1 100%; }
  .camera { padding: 16px 14px; margin-inline: calc(var(--gutter) * -0.4); }
  .camera-body { gap: 14px; }
  .events div { padding: 7px 0; }
  .events dt { font-size: 12px; }
  .events dd { font-size: 14px; }
}

/* ── 영상 분석 ─────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature h3 { margin-top: 12px; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.feature h3 + p { margin-top: 8px; color: var(--lp-ink-muted); font-size: 15px; line-height: 1.7; }

.portafilter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: center;
  margin-top: 16px;
  padding: 24px 28px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}
.portafilter h3 { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.portafilter p { margin-top: 8px; color: var(--lp-ink-muted); font-size: 15px; line-height: 1.7; }
.pf-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pf-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 14px;
  border-radius: var(--lp-radius-md);
  background: var(--lp-bg);
  text-align: center;
}
.pf-art { width: 96px; height: 96px; margin: -4px 0; color: var(--lp-ink); }
.pf-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-art .accent { fill: var(--lp-crema); stroke: none; }
.pf-name { margin-top: 4px; font-size: 15px; line-height: 22px; font-weight: 600; }
.pf-sub { color: var(--lp-ink-muted); font-size: 12px; line-height: 16px; }

@media (max-width: 1023px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portafilter { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 599px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { padding: 20px; }
  .portafilter { padding: 20px 16px; }
  .pf-art { width: 64px; height: 64px; }
  .pf-name { font-size: 14px; line-height: 20px; }
}

/* ── 저울(보조) ────────────────────────────────────── */
.scale-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.scale-grid .section-head { margin-bottom: 0; }
/* 저울 연결 여부에 따른 값의 출처 비교 — 측정은 굵은 `ink`, 추정은 `inkMuted`. */
.compare {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}
.compare th,
.compare td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--lp-line);
  text-align: left;
  vertical-align: top;
}
.compare thead th { padding-top: 0; color: var(--lp-ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; }
.compare thead th:last-child { color: var(--lp-ink); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--lp-ink-muted); }
.compare td strong { color: var(--lp-ink); font-weight: 600; }
.compare-note { margin-top: 14px; color: var(--lp-ink-muted); font-size: 13px; line-height: 20px; }
.lane-panel { padding: 28px 28px 20px; background: var(--lp-bg); }
.chart--lane .frame { fill: var(--lp-surface); stroke: var(--lp-ink-faint); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chart--lane .stream { fill: none; stroke: var(--lp-ink); stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart--lane .stream--blond { stroke: var(--lp-ink-faint); }
.lane-legend { margin-top: 16px; }
.lane-legend .key--frame { background: var(--lp-surface); }

@media (max-width: 1023px) {
  .scale-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 599px) {
  .lane-panel { padding: 20px 16px 16px; }
  .compare th, .compare td { padding-right: 8px; }
}

/* ── 레퍼런스 곡선 ──────────────────────────────────── */
.reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.reference-grid .section-head { margin-bottom: 0; }
.ref-panel { padding: 24px 24px 20px; }
.ref-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.ref-scope { color: var(--lp-ink-muted); font-size: 14px; line-height: 20px; }
.ref-scope .tag { margin-right: 8px; }
.ref-scope strong { color: var(--lp-ink); font-weight: 600; }
/* 기록 화면의 실시간 값 줄(앱 ScaleLiveChart). */
.readout { display: flex; gap: 20px; }
.readout dt { display: flex; align-items: center; gap: 6px; color: var(--lp-ink-muted); font-size: 12px; line-height: 16px; }
.readout dd { margin-top: 2px; font-size: 20px; line-height: 26px; font-weight: 600; font-feature-settings: "tnum"; }
.ref-legend { margin-top: 14px; }
/* 따라가기 줄 — 판정 색과 글자를 함께 쓴다(맞음·빠름·느림). */
.follow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--lp-radius-md);
  background: var(--lp-surface-alt);
}
.follow-delta { font-size: 15px; line-height: 22px; font-weight: 600; font-feature-settings: "tnum"; }
.follow-delta .pace { color: var(--lp-ok); }
.follow-end { color: var(--lp-ink-muted); font-size: 13px; line-height: 20px; font-feature-settings: "tnum"; }
/* 정지 신호는 판정이 아니라 동작 지시라 색으로 뜻을 나누지 않는다 — 반전 면. */
.stop-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--lp-ink-muted); font-size: 13px; line-height: 20px; }
.stop-chip {
  flex: none;
  padding: 4px 12px;
  border-radius: var(--lp-radius-md);
  background: var(--lp-crema);
  color: var(--lp-on-crema);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

@media (max-width: 1023px) {
  .reference-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 599px) {
  .ref-panel { padding: 20px 16px 16px; }
  .ref-head { gap: 10px; }
  .readout { gap: 16px; }
  .stop-line { align-items: flex-start; }
}

/* ── Shot Profile ──────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}
.shot-card { padding: 24px 24px 20px; }
.shot-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.shot-card-title { font-size: 18px; line-height: 26px; font-weight: 600; }
.shot-card-meta { margin-top: 2px; color: var(--lp-ink-muted); font-size: 13px; line-height: 18px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 20px;
}
.metrics div { padding-top: 12px; border-top: 1px solid var(--lp-line); }
.metrics dt { color: var(--lp-ink-muted); font-size: 12px; line-height: 16px; }
.metrics dd {
  margin-top: 4px;
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.metrics .metric-ref {
  margin-top: 2px;
  color: var(--lp-ink-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}
.taste { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--lp-line); }
.taste-title { font-size: 14px; line-height: 20px; font-weight: 600; }
.taste-scale { margin-left: 4px; color: var(--lp-ink-muted); font-weight: 400; font-size: 12px; }
.taste-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin-top: 12px;
}
.taste-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.taste-name { flex: 0 0 84px; color: var(--lp-ink-muted); }
.taste-dots { display: inline-flex; gap: 4px; }
.taste-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-line); }
.taste-dots span.on { background: var(--lp-crema); }
.taste-value { width: 12px; margin-left: 4px; text-align: right; font-weight: 600; font-feature-settings: "tnum"; }
.taste-agree { margin-top: 14px; color: var(--lp-ink-muted); font-size: 13px; line-height: 20px; }
.taste-agree strong { margin-left: 6px; color: var(--lp-ink); }

.collect-title { font-size: 18px; line-height: 26px; font-weight: 600; margin-bottom: 8px; }
.collect-list div { padding: 16px 0; border-top: 1px solid var(--lp-line); }
.collect-list div:last-child { border-bottom: 1px solid var(--lp-line); }
.collect-list dt { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 22px; font-weight: 600; }
.collect-list dd { margin-top: 6px; color: var(--lp-ink-muted); font-size: 14px; line-height: 22px; }

@media (max-width: 1023px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .shot-card { padding: 20px 16px 16px; }
  .shot-card-head { flex-direction: column; gap: 10px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
  .taste-list { grid-template-columns: minmax(0, 1fr); }
}

/* ── 진단 ─────────────────────────────────────────── */
.diagnosis {
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}
.diagnosis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--lp-line);
  background: var(--lp-bg);
}
.diagnosis-case { font-size: 15px; line-height: 22px; font-weight: 600; }
.diagnosis-case .tag { margin-right: 6px; }
.diagnosis-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.dx { padding: 24px; border-left: 1px solid var(--lp-line); }
.dx:first-child { border-left: 0; }
.dx-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}
.dx-kicker span { color: var(--lp-ink-muted); font-weight: 400; }
.dx-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.dx--obs .dx-kicker::before { background: var(--lp-ink); }
.dx--cause .dx-kicker::before { border: 1.5px dashed var(--lp-ink-muted); }
.dx--rec .dx-kicker::before { background: var(--lp-crema); border-radius: 50%; }
.dx-statement { margin-top: 14px; font-size: 20px; line-height: 28px; font-weight: 600; }
.dx-detail { margin-top: 4px; color: var(--lp-ink-muted); font-size: 14px; line-height: 20px; font-feature-settings: "tnum"; }
.chart--range { --chart-fs: 12.5px; margin-top: 16px; }
.cause-list { margin-top: 10px; }
.cause-list li { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--lp-line); }
.cause-list li:first-child { border-top: 0; }
.cause-text { font-size: 15px; line-height: 22px; font-weight: 500; }
.conf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lp-ink-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}
.conf-bar { display: inline-flex; gap: 3px; }
.conf-bar i { width: 14px; height: 4px; border-radius: 2px; background: var(--lp-line); }
.conf--1 .conf-bar i:nth-child(-n + 1),
.conf--2 .conf-bar i:nth-child(-n + 2),
.conf--3 .conf-bar i { background: var(--lp-ink-muted); }
.rec-list { margin-top: 10px; counter-reset: rec; }
.rec-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-top: 1px solid var(--lp-line);
  font-size: 15px;
  line-height: 22px;
  counter-increment: rec;
}
.rec-list li:first-child { border-top: 0; }
.rec-list li::before {
  content: counter(rec);
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lp-ink);
  color: var(--lp-surface);
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
}
.diagnosis-foot {
  margin: 0;
  padding: 12px 24px;
  border-top: 1px solid var(--lp-line);
  background: var(--lp-bg);
  font-size: 12px;
  line-height: 16px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.principles li { padding-top: 20px; border-top: 1px solid var(--lp-line); }
.principles h3 { font-size: 17px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.principles p { margin-top: 8px; color: var(--lp-ink-muted); font-size: 15px; line-height: 1.7; }
.principles .badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

@media (max-width: 1023px) {
  .diagnosis-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dx--obs { grid-column: 1 / -1; }
  .dx--cause { border-left: 0; }
  .dx--cause, .dx--rec { border-top: 1px solid var(--lp-line); }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 599px) {
  .diagnosis-head { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .diagnosis-grid { grid-template-columns: minmax(0, 1fr); }
  .dx { padding: 20px 16px; border-left: 0; }
  .dx--rec { border-top: 1px solid var(--lp-line); }
  .diagnosis-foot { padding: 12px 16px; }
}

/* ── 매장 QC 대시보드 예시 ─────────────────────────── */
.dashboard {
  padding: 20px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}
.dash-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--lp-line);
}
.dash-scope { font-size: 15px; line-height: 22px; font-weight: 600; }
.dash-scope .tag { margin-right: 6px; }
.dash-target { margin-left: 6px; color: var(--lp-ink-muted); font-size: 13px; font-weight: 400; font-feature-settings: "tnum"; }
.dash-period {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-md);
  background: var(--lp-bg);
  font-size: 13px;
  line-height: 18px;
}
.dash-period span { padding: 4px 12px; border-radius: 7px; color: var(--lp-ink-muted); }
.dash-period .is-selected { background: var(--lp-surface); color: var(--lp-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--lp-line); }
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 12px;
}
.kpis div {
  padding: 16px 18px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}
.kpis dt { color: var(--lp-ink-muted); font-size: 13px; line-height: 18px; font-weight: 500; }
.kpis dd {
  margin-top: 6px;
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.kpis .unit { font-size: 15px; }
.kpis .kpi-sub {
  margin-top: 4px;
  color: var(--lp-ink-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dash-card {
  padding: 18px 20px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}
.dash-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.dash-card h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.dash-card--drift {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: center;
}
.drift-scope { margin-top: -8px; color: var(--lp-ink-muted); font-size: 13px; line-height: 18px; }
.drift-copy .dx-kicker { margin-top: 14px; color: var(--lp-ink-muted); font-size: 12px; font-weight: 600; }
.drift-copy .dx-kicker::before { display: none; }
.drift-obs { margin-top: 4px; font-size: 17px; line-height: 26px; font-weight: 600; }
.drift-text { margin-top: 4px; font-size: 15px; line-height: 22px; }
.drift-text .conf { margin-left: 8px; }
.chart--drift .ref { fill: none; stroke: var(--lp-ink-muted); stroke-width: 1px; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.chart--drift .ref--recent { stroke: var(--lp-warn); stroke-width: 2px; stroke-dasharray: none; }
.chart--drift .shift { fill: none; stroke: var(--lp-ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.chart--drift .shift-head { fill: none; stroke: var(--lp-ink); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dash-foot { padding: 0 4px; }

@media (max-width: 1023px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-card--drift { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 599px) {
  .dashboard { padding: 12px; margin-inline: calc(var(--gutter) * -0.5); }
  .dash-bar { padding: 4px 4px 12px; }
  .dash-target { display: block; margin: 2px 0 0; }
  .kpis { gap: 8px; }
  .kpis div { padding: 12px 14px; }
  .kpis dd { font-size: 30px; line-height: 34px; }
  .dash-card { padding: 14px 12px; }
}

/* ── 이용 안내 ─────────────────────────────────────── */
.launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.launch-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}
.launch-card h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.launch-card > p { color: var(--lp-ink-muted); font-size: 15px; line-height: 24px; }
.check-list { margin-top: 20px; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--lp-line);
  font-size: 15px;
  line-height: 22px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--lp-ink);
  border-bottom: 2px solid var(--lp-ink);
  transform: rotate(-45deg);
}
.launch-card .cta-row { margin-top: auto; padding-top: 24px; }

@media (max-width: 767px) {
  .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .launch-card { padding: 22px 18px; }
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: start;
}
.faq-layout .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--lp-line); }
.faq-list details { border-bottom: 1px solid var(--lp-line); }
.faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 32px;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--lp-ink-muted);
  transition: transform .2s ease;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--lp-ink-muted); }
.faq-list details p {
  padding-bottom: 20px;
  color: var(--lp-ink-muted);
  font-size: 15px;
  line-height: 26px;
}
.faq-list details p + p { margin-top: -8px; }

@media (max-width: 1023px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 599px) {
  .faq-list summary { font-size: 16px; line-height: 24px; padding: 18px 36px 18px 0; }
  .faq-list summary::before, .faq-list summary::after { top: 29px; }
}

/* ── 마무리 CTA(반전 카드) ──────────────────────────── */
.final {
  padding: 72px 40px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  text-align: center;
}
.final h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.26;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.final p:not(.eyebrow) { margin: 16px auto 0; max-width: 32em; color: var(--lp-ink-muted); font-size: 16px; line-height: 1.7; }
.final .cta-row { justify-content: center; }

@media (max-width: 599px) {
  .final { padding: 48px 20px; }
}

/* ── 푸터 ─────────────────────────────────────────── */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--lp-line);
  background: var(--lp-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 32px;
}
.footer-brand p { margin-top: 12px; color: var(--lp-ink-muted); font-size: 14px; line-height: 22px; }
.footer-col h2 {
  margin: 0 0 12px;
  color: var(--lp-ink-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--lp-ink); font-size: 14px; line-height: 22px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col a.strong { font-weight: 700; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-line);
  color: var(--lp-ink-muted);
  font-size: 13px;
  line-height: 20px;
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* ── 404 ─────────────────────────────────────────── */
.notfound {
  min-height: calc(100vh - var(--header-h) - 1px);
  display: flex;
  align-items: center;
  padding: 72px 0;
}
.notfound-code {
  color: var(--lp-ink-muted);
  font-family: var(--lp-mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.notfound h1 { margin-top: 14px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.04em; }
.notfound p { margin-top: 14px; max-width: 34em; color: var(--lp-ink-muted); font-size: 17px; line-height: 1.7; }
.notfound .chart { max-width: 440px; margin-top: 40px; }
@media (min-width: 600px) {
  .chart--flat { --chart-fs: 12px; }
}

@media (max-width: 599px) {
  .notfound p { font-size: 16px; line-height: 26px; }
}
