/*!
 * 온도(ONDO) 디자인 시스템 v1.2 — 토큰 + 재사용 컴포넌트
 * 출처: claude/ondo_design_system.md (프로젝트 지식) — 목업 v0.2 구조 기반, v1.2 접근성 교체 토큰 반영.
 * 규칙: #FF6B5A는 면(fill) 전용, 글자는 coral-text(#C93A2C)로. 새 컴포넌트 최소화(§4 인벤토리 재사용).
 */
:root {
  --ink: #1E2230;
  --ink-2: #4A5064;
  --ink-3: #6E7385; /* v1.2 교체: 3.18:1 -> 4.71:1 */
  --bg: #F6F4F1;
  --surface: #FFFFFF;
  --line: #ECE9E4;

  --coral: #FF6B5A;      /* 그래픽 전용(링/차트/게이지) — 텍스트 사용 금지 */
  --coral-text: #C93A2C; /* 텍스트·숫자용 코랄 (5.09:1) */
  --amber: #FFB25A;
  --cta-bg: #D0402D;     /* v1.2 교체: CTA 버튼 배경 (4.72:1) */

  --night: #232048;
  --night-2: #3A356E;
  --night-text: #C9C3E4;
  --gold: #D9B36A;

  --land-green: #1E7A50;
  --land-green-bg: #F2FAF6;
  --kakao-yellow: #FFE566;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -.01em;
  word-break: keep-all;
  /* 모바일 브라우저(iOS Safari 등)가 본문 텍스트를 임의로 키우는 것 방지 → PC와 동일 크기로 렌더 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

::selection { background: #FFD9D2; }

.tabular { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ---------- 레이아웃 ---------- */
.ondo-app { max-width: 480px; margin: 0 auto; padding-bottom: 40px; min-height: 100vh; background: var(--bg); }
.ondo-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 8px; }
/* 로고 = 랜딩(ondo.so) 헤더와 동일한 SVG. 텍스트는 접근성/검색용으로 DOM 에 남기고 시각적으로만 대체한다.
   JS 7파일(app·gunghap·payment·full-report·render-teaser·capture-teaser)의 마크업은 손대지 않는다 — 여기 1곳이 단일 소스. */
.ondo-logo { display: block; width: 68px; height: 20px; overflow: hidden; text-indent: -999em;
  background: url("data:image/svg+xml,%3Csvg viewBox=%220 0 448 132%22 xmlns=%22http://www.w3.org/2000/svg%22 role=%22img%22 aria-label=%22%EC%98%A8%EB%8F%84 ONDO%22%3E%3Cdefs%3E%3ClinearGradient id=%22og-app%22 x1=%220%25%22 y1=%220%25%22 x2=%22100%25%22 y2=%22100%25%22%3E%3Cstop offset=%220%25%22 stop-color=%22%23FFB25A%22/%3E%3Cstop offset=%22100%25%22 stop-color=%22%23FF6B5A%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform=%22translate(0,22)%22%3E%3Ccircle cx=%2250%22 cy=%2250%22 r=%2242%22 fill=%22none%22 stroke=%22url(%23og-app)%22 stroke-width=%2223%22 stroke-linecap=%22round%22 stroke-dasharray=%22211.1 263.9%22 transform=%22rotate(-38 50 50)%22/%3E%3Cg fill=%22%231E2230%22%3E%3Crect x=%22118%22 y=%220%22 width=%2222%22 height=%22100%22/%3E%3Crect x=%22172%22 y=%220%22 width=%2222%22 height=%22100%22/%3E%3Cpolygon points=%22118,0 145,0 194,100 167,100%22/%3E%3C/g%3E%3Cpath fill=%22%231E2230%22 fill-rule=%22evenodd%22 d=%22M214,0 L248,0 A50,50 0 0 1 248,100 L214,100 Z M236,22 L247,22 A28,28 0 0 1 247,78 L236,78 Z%22/%3E%3Ccircle cx=%22368%22 cy=%2250%22 r=%2241.5%22 fill=%22none%22 stroke=%22%231E2230%22 stroke-width=%2222%22/%3E%3C/g%3E%3Ccircle cx=%22420%22 cy=%2218%22 r=%229%22 fill=%22none%22 stroke=%22%23C93A2C%22 stroke-width=%227%22/%3E%3C/svg%3E") no-repeat left center; background-size: contain; }
.ondo-logo .deg { display: none; }
.ondo-privacy {
  display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
}
.ondo-privacy .dot { width: 6px; height: 6px; border-radius: 50%; background: #43B98C; flex: 0 0 auto; }

.ondo-headline { padding: 14px 22px 4px; }
.ondo-headline h1 { font-size: clamp(19px, 5vw, 21px); font-weight: 800; letter-spacing: -.5px; line-height: 1.35; margin: 0; text-wrap: balance; }
.ondo-headline p { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-3); }
.ondo-headline b { color: var(--coral-text); font-weight: 700; }

.ondo-section { margin: 22px 18px 0; }
.ondo-sec-title { font-size: 15px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 7px; }
.ondo-sec-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.ondo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 16px; margin-top: 10px;
}

/* ① 온도 링 게이지 */
.ondo-ring-wrap { position: relative; width: 190px; height: 190px; margin: 0 auto; }
.ondo-ring-wrap svg { transform: rotate(-90deg); }
.ondo-ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.ondo-ring-center .num { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.ondo-ring-center .num span { font-size: 22px; color: var(--coral-text); }
.ondo-ring-center .cap { margin-top: 6px; font-size: 12px; color: var(--ink-3); }

.ondo-hero {
  margin: 16px 18px 0; background: var(--surface); border-radius: 22px; padding: 26px 20px 22px;
  text-align: center; border: 1px solid var(--line);
}
.ondo-badge {
  display: inline-block; margin-top: 14px; background: #FFF1EC; color: var(--coral-text);
  font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
.ondo-hero .sub { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ② 인사이트 칩 */
.ondo-chips { display: flex; flex-direction: column; gap: 8px; margin: 14px 18px 0; }
.ondo-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font-size: 13px; color: var(--ink-2); display: flex; gap: 9px;
  align-items: flex-start; line-height: 1.5;
}
.ondo-chip .ico { flex: 0 0 auto; font-size: 14px; margin-top: 1px; }
.ondo-chip b { color: var(--ink); font-weight: 700; }
.ondo-chip .up { color: #2E9E6B; font-weight: 700; }

/* ④ 모먼트 카드 */
.ondo-moment { background: linear-gradient(135deg, #FFF6F0, #FFEDE8); border: 1px solid #FFDCD2; }
.ondo-moment .when { font-size: 11px; color: var(--coral-text); font-weight: 700; letter-spacing: .3px; }
.ondo-bubble {
  max-width: 82%; margin-top: 10px; padding: 10px 13px; border-radius: 4px 16px 16px 16px;
  background: var(--surface); font-size: 13px; line-height: 1.55; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.ondo-bubble.mine { margin-left: auto; border-radius: 16px 4px 16px 16px; background: var(--kakao-yellow); }
.ondo-bubble .who { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.ondo-moment .why {
  margin-top: 12px; font-size: 12px; color: var(--ink-2); line-height: 1.6;
  border-top: 1px dashed #F3C9BC; padding-top: 10px;
}

/* 시그널 지표 그리드 */
.ondo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.ondo-metric { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.ondo-metric .k { font-size: 11px; color: var(--ink-3); }
.ondo-metric .v { font-size: 19px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }
.ondo-metric .d { font-size: 11px; margin-top: 3px; color: #2E9E6B; font-weight: 600; }
.ondo-metric .d.neu { color: var(--ink-3); font-weight: 500; }

/* ⑤ 잠금 UI */
.ondo-locked { position: relative; overflow: hidden; }
.ondo-locked .blurred { filter: blur(7px); opacity: .75; user-select: none; pointer-events: none; }
.ondo-lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 6px;
  background: linear-gradient(180deg, rgba(246, 244, 241, 0) 0%, rgba(246, 244, 241, .55) 40%, rgba(246, 244, 241, .9) 100%);
}
.ondo-lock-pill {
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 14px;
  border-radius: 999px; display: flex; gap: 6px; align-items: center;
}
.ondo-lock-cap { font-size: 11px; color: var(--ink-2); }
.ondo-locklist { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ondo-lockrow {
  display: flex; justify-content: space-between; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
.ondo-lockrow .t { font-size: 13px; font-weight: 700; }
.ondo-lockrow .s { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.ondo-lockrow .ic { color: var(--ink-3); font-size: 13px; }

/* CTA */
.ondo-cta { margin: 20px 18px 0; }
.ondo-cta-btn {
  display: block; width: 100%; text-align: center; background: var(--cta-bg); color: #fff;
  font-size: 15.5px; font-weight: 800; padding: 17px; border-radius: 16px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(208, 64, 45, .3); letter-spacing: -.3px; border: none; cursor: pointer;
  min-height: 51px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ondo-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(208, 64, 45, .38); }
.ondo-cta-btn:active { transform: translateY(0); }
.ondo-cta-btn small { display: block; font-weight: 500; font-size: 11px; opacity: .85; margin-top: 3px; }
.ondo-cta-meta { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-size: 11px; color: var(--ink-3); flex-wrap: wrap; }

/* JP 사전등록 모듈(작업E §C, 2026-08-28) — .ondo-cta 자리를 대체한다. 390px 오버플로 0 기준으로 여백만
   맞추고 신규 색상 토큰은 추가하지 않는다(기존 --ink/--coral-text/--surface 재사용, keep-all 금지 규칙 준수). */
.ondo-jp-prereg { margin: 20px 18px 0; padding: 20px 18px; background: var(--surface); border: 1px solid #EFE7DA; border-radius: 18px; }
.ondo-jp-prereg .jpp-head { font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; line-height: 1.5; margin: 0; }
.ondo-jp-prereg .jpp-sub { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.ondo-jp-prereg .jpp-teaser { margin: 14px 0 0; padding: 12px 14px; background: #FFF6F0; border: 1px solid rgba(255,107,90,.22); border-radius: 12px; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.ondo-jp-prereg .jpp-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ondo-jp-prereg .jpp-label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.ondo-jp-prereg .jpp-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid #E5E0D6; border-radius: 12px; font-size: 14px; font-family: inherit; color: var(--ink); background: var(--surface); }
.ondo-jp-prereg .jpp-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.ondo-jp-prereg .jpp-consent input { margin-top: 2px; flex: 0 0 auto; }
.ondo-jp-prereg .jpp-cta { display: block; width: 100%; box-sizing: border-box; text-align: center; background: var(--cta-bg); color: #fff; font-size: 15px; font-weight: 800; padding: 15px; border-radius: 14px; border: none; cursor: pointer; }
.ondo-jp-prereg .jpp-cta:disabled { opacity: .6; cursor: default; }
.ondo-jp-prereg .jpp-micro { margin: 4px 0 0; font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.ondo-jp-prereg .jpp-status { min-height: 16px; font-size: 12px; color: var(--coral-text); }
.ondo-jp-prereg .jpp-ig { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--coral-text); text-decoration: none; }
.ondo-jp-prereg .jpp-success { margin: 20px 18px 0; padding: 16px 18px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink); background: #F2FAF6; border: 1.5px solid #CBE8D8; border-radius: 16px; line-height: 1.7; }

/* ⑥ 궁합 나이트 카드 */
.ondo-gunghap {
  margin: 24px 18px 0; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 100% at 80% 0%, #4A4390 0%, var(--night-2) 35%, var(--night) 100%);
  color: #EFEAF8; padding: 24px 20px; position: relative;
}
.ondo-g-eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--gold); font-weight: 700; }
.ondo-gunghap h2 { font-size: 19px; font-weight: 800; letter-spacing: -.4px; margin: 8px 0 0; line-height: 1.4; }
.ondo-gunghap .desc { font-size: 12.5px; color: var(--night-text); margin-top: 9px; line-height: 1.65; }
.ondo-g-cards { display: flex; gap: 8px; margin-top: 16px; }
.ondo-g-card { flex: 1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 10px; text-align: center; }
.ondo-g-card .gk { font-size: 10.5px; color: #AFA8D6; }
.ondo-g-card .gv { font-size: 14px; font-weight: 800; margin-top: 5px; color: #fff; }
.ondo-g-card .gv.gold { color: var(--gold); }
.ondo-g-btn {
  display: block; margin-top: 16px; text-align: center; background: var(--gold); color: #241F45;
  font-size: 14px; font-weight: 800; padding: 14px; border-radius: 14px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ondo-g-btn:hover { transform: translateY(-2px); }
.ondo-g-note { text-align: center; font-size: 10.5px; color: #9A92C4; margin-top: 9px; }

/* 신뢰 배지 */
.ondo-trust {
  margin: 22px 18px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; font-size: 11.5px; color: var(--ink-2); line-height: 1.6; display: flex; gap: 8px; align-items: flex-start;
}
.ondo-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: #43B98C; margin-top: 4px; flex: 0 0 auto; }

.ondo-foot { margin: 26px 22px 0; text-align: center; font-size: 11px; color: var(--ink-3); line-height: 1.7; }
.ondo-foot b { color: var(--ink-2); }

/* 재미 존(1층 3종) — 인사이트 칩 컴포넌트 재사용, 신규 컴포넌트 최소화 */
.ondo-funzone-label {
  font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .2px; margin: 22px 18px 6px;
}
