/* =======================================================
   누수뚝 CRM 플랫폼 — 전체 스타일시트
   파일: css/style.css
   디자인 컨셉: "The Clean Hydro" — 신뢰·전문·청결
   모바일 퍼스트 설계 (320px 기준 → 상향 확장)
   ======================================================= */


/* =======================================================
   1. CSS 변수 (디자인 토큰) — 이 값들만 수정하면 전체 디자인 변경
   ======================================================= */
:root {
  /* 브랜드 컬러 */
  --primary:       #0D47A1;   /* 주 색상: 딥 네이비 블루 */
  --primary-dark:  #0A3272;   /* 어두운 파랑 */
  --primary-mid:   #1565C0;   /* 중간 파랑 */
  --primary-pale:  #E3F2FD;   /* 연한 하늘색 */
  --primary-ghost: #F0F7FF;   /* 매우 연한 파랑 (배경) */

  /* 상태 컬러 */
  --safe:      #2E7D32;   /* 안전: 초록 */
  --safe-bg:   #E8F5E9;
  --warn:      #F57C00;   /* 경고: 주황 */
  --warn-bg:   #FFF3E0;
  --danger:    #C62828;   /* 위험: 빨강 */
  --danger-bg: #FFEBEE;

  /* 텍스트 컬러 */
  --text-1: #0D1B2A;  /* 제목, 강조 */
  --text-2: #3D5166;  /* 본문 */
  --text-3: #8FA3B8;  /* 보조, 힌트 */

  /* 배경 & 테두리 */
  --white:       #FFFFFF;
  --bg:          #F0F7FF;
  --border:      #BBDEFB;
  --border-lite: #E0EFFF;

  /* 그림자 */
  --shadow-sm: 0 2px 8px rgba(13,71,161,0.07);
  --shadow-md: 0 4px 16px rgba(13,71,161,0.11);
  --shadow-lg: 0 8px 32px rgba(13,71,161,0.16);

  /* 모서리 둥글기 */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 100px;

  /* 전환 애니메이션 */
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* 폰트 — 외부 라이브러리 없이 시스템 한글 폰트 사용 */
  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Noto Sans KR', 'Malgun Gothic', 'Dotum', sans-serif;

  /* ══════════════════════════════════════════════════════
     포인트 컬러 (전체 화면의 약 5%만 사용)
     - 메인 컬러(파랑)와 조화를 이루면서 시선을 끄는 역할
     ══════════════════════════════════════════════════════ */

  /* 🟢 네온 민트 그린 — 주요 CTA 버튼, 진행 바, 성공 상태 */
  --accent-green:       #10B981;
  --accent-green-dark:  #059669;
  --accent-green-light: #34D399;
  --accent-green-glow:  rgba(16, 185, 129, 0.42);
  --accent-green-bg:    rgba(16, 185, 129, 0.08);

  /* 🟠 코랄 오렌지 — 긴급 CTA, 전화 버튼, 높은 위험도 경고 */
  --accent-coral:       #F97316;
  --accent-coral-dark:  #EA580C;
  --accent-coral-light: #FB923C;
  --accent-coral-glow:  rgba(249, 115,  22, 0.38);
  --accent-coral-bg:    rgba(249, 115,  22, 0.08);
}


/* =======================================================
   ▶  AI 기능 금지 안내 (개발자 참고)
   -------------------------------------------------------
   이 프로젝트에는 AI 기능을 추가하지 않습니다.
   챗봇, 자동 분석, 머신러닝 등 모든 AI/ML 관련
   외부 API 연동이나 라이브러리 사용을 금지합니다.
   누수 진단은 고객이 직접 입력한 설문 점수와
   전문 상담원의 판단에 의해서만 이루어집니다.
   ======================================================= */


/* =======================================================
   2. 리셋 & 기본 스타일
   ======================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.35; }

/* fieldset 기본 스타일 제거 (크로스 브라우저) */
fieldset {
  min-width: 0;
  border: none;
  padding: 0;
  margin: 0;
}
legend {
  padding: 0;
  display: block;
  width: 100%;
}

/* 접근성: 화면 리더용 숨김 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 봇 방지 허니팟 */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}


/* =======================================================
   3. 화면 전환 시스템
   - .screen 은 기본 숨김
   - .active 클래스가 붙으면 표시
   - JS(app.js)의 showScreen() 함수가 제어
   ======================================================= */
.screen {
  display: none;
  min-height: 100dvh; /* dvh: 모바일 주소창 제외한 실제 높이 */
}

.screen.active {
  display: block;
}

/* 랜딩 화면은 스크롤 가능 */
#screen-landing.active {
  display: block;
  min-height: unset;
}

/* 설문/결과/폼 화면은 flex 레이아웃 */
#screen-survey.active,
#screen-result.active,
#screen-form.active {
  display: flex;
  flex-direction: column;
}

/* 완료 화면 */
#screen-complete.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}


/* =======================================================
   4. 공통 버튼 시스템
   ======================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;      /* 모바일 최소 터치 영역 */
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  word-break: keep-all;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* 주 버튼 */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(13,71,161,0.28);
}
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* 보조 버튼 */
.btn-secondary {
  background: var(--primary-pale);
  color: var(--primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--border); }

/* 아웃라인 버튼 */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-pale); }

/* 고스트 버튼 */
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--border-lite); }

/* 크기 변형 */
.btn-full { width: 100%; }
.btn-lg   { min-height: 56px; font-size: 17px; padding: 14px 28px; }
.btn-sm   { min-height: 38px; font-size: 14px; padding: 8px 16px; }

/* 텍스트 버튼 */
.btn-text {
  background: none; border: none;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn-text:hover   { background: var(--primary-pale); color: var(--primary); }
.btn-text-muted   { color: var(--text-3); }
.btn-text-muted:hover { color: var(--text-2); }

/* 아이콘 버튼 */
.btn-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  font-size: 18px;
  color: var(--text-2);
  background: none; border: none;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn-icon:hover { background: var(--primary-pale); color: var(--primary); }

/* 링크 버튼 */
.btn-link {
  background: none; border: none;
  color: var(--primary); font-size: 13px;
  text-decoration: underline;
  cursor: pointer; padding: 0;
}
.btn-link:hover { color: var(--primary-dark); }

/* 로딩 상태 (제출 중) */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}


/* =======================================================
   5. 공통 폼 입력 시스템
   ======================================================= */
.form-input,
.form-select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-1);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,71,161,0.10);
}
.form-input.error,
.form-select.error {
  border-color: var(--danger);
}
.form-input::placeholder { color: var(--text-3); }

/* 설문 페이지 헤더 (JS 동적 생성) */
.survey-page-header { margin-bottom: 4px; }

/* 문항 카테고리 뱃지 */
.question-cat-badge {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  margin-left: 4px;
}

/* 미응답 문항 강조 (JS에서 적용) */
.question-block.unanswered {
  border-color: var(--warn);
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.15);
}

/* 날짜 input 스타일 */
input[type="date"].form-input {
  cursor: pointer;
}

/* ── select 화살표 재정의 (이미 위에 있지만 명시적 보완) ── */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238FA3B8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.req { color: var(--danger); margin-left: 2px; }
.opt { color: var(--text-3); font-weight: 400; font-size: 12px; }

.form-error {
  display: none;
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
}
.form-error.show { display: block; }

.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }

/* 체크박스 · 라디오 칩 */
.chip {
  cursor: pointer;
  display: block;
}
.chip input[type="checkbox"],
.chip input[type="radio"] {
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  text-align: center;
  word-break: keep-all;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.chip:hover span { border-color: var(--primary); }

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* 방문 시간 라디오 (4열) */
.time-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* 긴급도 카드 */
.urgency-card {
  cursor: pointer;
  display: block;
}
.urgency-card input[type="radio"] {
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.urgency-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.urgency-icon { font-size: 24px; margin-bottom: 5px; }
.urgency-name { font-size: 12px; font-weight: 600; color: var(--text-2); word-break: keep-all; text-align: center; }
.urgency-card input:checked + .urgency-inner {
  border-color: var(--primary);
  background: var(--primary-pale);
}
.urgency-card input:checked + .urgency-inner .urgency-name { color: var(--primary); }
.urgency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 동의 체크박스 */
.consent-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 2px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  transition: all var(--transition);
}
.consent-check:checked {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l4 4 6-8' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.consent-check:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }


/* =======================================================
   6. 헤더 & 모바일 내비게이션
   ======================================================= */
#app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-lite);
  display: flex; align-items: center;
  padding: 0 20px;
  transition: box-shadow var(--transition);
}
#app-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

/* 로고 */
.logo {
  display: flex; align-items: center; gap: 7px;
  font-size: 20px; font-weight: 900;
  color: var(--primary); letter-spacing: -0.5px;
}
.logo-icon { font-size: 22px; }

/* 데스크톱 메뉴 — 모바일에서는 숨김 */
.nav-desktop {
  display: none;
  gap: 28px;
}
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color var(--transition);
  padding: 4px 2px;
}
.nav-link:hover { color: var(--primary); }

/* 데스크톱 전화 버튼 — 모바일에서는 숨김 */
.header-phone {
  display: none;
  align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  padding: 8px 16px;
  border: 2px solid var(--primary);
  border-radius: var(--r-full);
  transition: all var(--transition);
}
.header-phone:hover { background: var(--primary); color: var(--white); }

/* 햄버거 버튼 */
.btn-hamburger {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.btn-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-1); border-radius: 2px;
  transition: all var(--transition);
}
/* 열림 상태 X */
.btn-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* 모바일 드롭다운 */
.mobile-nav {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border-lite);
  padding: 8px 16px 16px;
  animation: slideDown 0.22s ease;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.mobile-nav-link {
  display: block; padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: all var(--transition);
}
.mobile-nav-link:hover { background: var(--primary-pale); color: var(--primary); }
.mobile-nav-phone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: var(--r-md);
  background: var(--primary); color: var(--white);
  font-size: 15px; font-weight: 700;
}


/* =======================================================
   7. 랜딩 — 공통 섹션 레이아웃
   ======================================================= */
.section {
  padding: 56px 20px;
}
.section-white { background: var(--white); }
.section-pale  { background: var(--primary-pale); }

.section-inner {
  max-width: 1100px; margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 36px;
}
.section-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 900; color: var(--text-1);
  letter-spacing: -0.5px; word-break: keep-all;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15px; color: var(--text-2); word-break: keep-all;
}


/* =======================================================
   8. 랜딩 — Hero 섹션
   ======================================================= */
/* =======================================================
   8. 히어로 섹션 — Spline 3D 배경 iframe 버전
   ======================================================= */

.hero {
  min-height: 100dvh;
  /* Spline iframe 로딩 전 폴백 배경색 (짙은 네이비) */
  background: #050F28;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
}

/* ── Spline 3D iframe 배경 레이어 ─────────────────────
   z-index: 0 → 가장 하단에 위치
   pointer-events: all → Spline 3D 인터랙션 허용
   ─────────────────────────────────────────────────── */
.hero-spline-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: all; /* Spline 3D 인터랙션 허용 */
}
.hero-spline-bg iframe {
  width: 100%;
  height: calc(100% + 80px);
  overflow: hidden;
  border: none;
  display: block;
}

/* ── 텍스트 가독성 오버레이 ────────────────────────────
   Spline 3D 위에 반투명 레이어를 얹어 흰색 텍스트가
   배경과 관계없이 잘 보이도록 함.
   모바일: 전체 균일 어둡게
   데스크톱: 왼쪽(텍스트 영역)은 진하게 → 오른쪽은 투명
   ─────────────────────────────────────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* 클릭 통과 → 버튼 클릭 가능 */
  /* 모바일 기본: 균일하게 어둡게 */
  background: rgba(3, 10, 30, 0.58);
}

/* ── hero-content: 텍스트+버튼 레이어 ──────────────── */
.hero-content {
  position: relative;
  z-index: 3; /* Spline(0) + 오버레이(1) 위에 위치 */
  pointer-events: none; /* 컨테이너 자체는 클릭 통과 */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInUp 0.8s ease both;
}

/* 텍스트 컬럼: 자식 요소(버튼 등)는 클릭 가능 */
.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 580px;
  pointer-events: all; /* 버튼·링크 클릭 활성화 */
}

/* ── 배지 ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 200, 220, 0.15);
  border: 1px solid rgba(0, 200, 220, 0.35);
  color: rgba(255,255,255,0.92);
  font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--r-full);
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── 제목 ── */
.hero-title {
  font-size: clamp(26px, 5.5vw, 42px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.30;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  word-break: keep-all;
  /* 텍스트 선명도 향상 */
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
/* 강조 색상: Spline 워터 테마에 맞는 아쿠아 청록 */
.hero-title em {
  color: #5EE8F5;
  font-style: normal;
}

/* ── 서브 텍스트 ── */
.hero-sub {
  font-size: clamp(15px, 3vw, 18px);
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  word-break: keep-all;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* "3분 무료 자가진단" 강조 색상 */
.hero-sub-highlight {
  color: #f5f515;        /* ← 원하는 색상으로 변경하세요 */
  font-weight: 700;      /* 굵기도 강조 (선택사항) */
}

/* ── 하이라이트 배지들 ── */
.hero-highlights {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px;
  margin-bottom: 36px;
}
.hero-highlights li {
  background: rgba(0, 180, 210, 0.12);
  color: rgba(255,255,255,0.88);
  font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--r-full);
  border: 1px solid rgba(0, 200, 230, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── CTA 버튼 그룹 ── */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

/* ── 주요 CTA 버튼 (아쿠아 청록 — Spline 워터 테마) ──
   기존 초록(#10B981)에서 아쿠아(#00BCD4)로 변경
   물·청결·정밀함 이미지를 직관적으로 전달
   ─────────────────────────────────────────────────── */
.btn-hero-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 16px 28px;
  background: #00BCD4;            /* 아쿠아 청록 */
  color: #f5f515;
  font-size: 17px; font-weight: 800;
  border: 2px solid #00BCD4;
  border-radius: var(--r-md);
  box-shadow:
    0 6px 28px rgba(0, 188, 212, 0.50),
    0 2px 8px rgba(0, 0, 0, 0.20);
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: -0.3px;
  -webkit-tap-highlight-color: transparent;
}
.btn-hero-primary:hover {
  background: #0097A7;           /* 호버: 조금 더 진한 아쿠아 */
  border-color: #0097A7;
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(0, 188, 212, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn-hero-primary:active { transform: translateY(0); }

/* ── 보조 CTA (전화 버튼) — 흰색 아웃라인 ──────────
   Spline 어두운 배경 위에서 깔끔하게 보이도록
   반투명 흰색 테두리 + 호버 시 아쿠아 글로우
   ─────────────────────────────────────────────────── */
.btn-hero-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 16px; font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.50);
  border-radius: var(--r-md);
  transition: all var(--transition);
  font-family: var(--font);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}
.btn-hero-secondary:hover {
  background: rgba(0, 188, 212, 0.18);
  border-color: rgba(0, 220, 240, 0.75);
  box-shadow: 0 0 22px rgba(0, 188, 212, 0.35);
}

/* ── 스크롤 화살표 ── */
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.40);
  font-size: 20px;
  animation: bounce 2.2s infinite;
  z-index: 3;
  pointer-events: none;
}

/* ── 하단 페이드 오버레이 (다음 섹션과 자연스럽게 이어짐) ── */
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
  z-index: 4;
}

/* ── 반응형: 태블릿 이상 오버레이 방향 조정 ── */
@media (min-width: 768px) {
  .hero-overlay {
    /* 왼쪽(텍스트): 짙게 → 오른쪽(Spline 3D): 투명
       → 텍스트 가독성 + Spline 3D 시각적 강조 동시 확보 */
    background: linear-gradient(
      110deg,
      rgba(3, 10, 30, 0.80)  0%,
      rgba(3, 10, 30, 0.60) 35%,
      rgba(3, 10, 30, 0.30) 60%,
      rgba(3, 10, 30, 0.05) 100%
    );
  }
}

/* ── 반응형: 데스크톱 텍스트 왼쪽 정렬 ── */
@media (min-width: 1024px) {
  .hero-content {
    align-items: flex-start;
    text-align: left;
  }
  .hero-text-col {
    align-items: flex-start;
    max-width: 520px;
  }
  .hero-highlights { justify-content: flex-start; }
  .hero-cta-group  { flex-direction: row; max-width: 480px; margin: 0; }
  .btn-hero-primary  { flex: 2; }
  .btn-hero-secondary{ flex: 1; }
}

/* ── 모바일 최적화:
   Spline iframe은 모바일에서도 동작하지만 GPU 부담이 있을 수 있음.
   폴백: prefers-reduced-motion 설정 시 iframe 숨기고 그라디언트만 표시
   ── */
@media (prefers-reduced-motion: reduce) {
  .hero-spline-bg { display: none; }
  .hero { background: linear-gradient(148deg, #040E25 0%, #071A3E 50%, #0A2456 100%); }
  .hero-overlay   { background: rgba(3, 10, 30, 0.20); }
}


/* =======================================================
   9. 랜딩 — Trust 섹션
   ======================================================= */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.trust-card {
  background: var(--bg);
  border: 1px solid var(--border-lite);
  border-top: 3px solid var(--primary);
  border-radius: var(--r-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: rgba(0, 240, 255, 0.12);   /* 형광 하늘색 배경 */
  border-top-color: #00F0FF;              /* 상단 라인 색상 변경 */
  border-color: rgba(0, 240, 255, 0.40); /* 테두리 색상 변경 */
}
.trust-icon { font-size: 32px; display: block; margin-bottom: 12px; }
.trust-name { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.trust-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; word-break: keep-all; }


/* =======================================================
   10. 랜딩 — Risks 섹션
   ======================================================= */
.risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.risk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: default;
}
.risk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: currentColor;
}

/* 카드 1~8번 각각 다른 형광색 */
.risk-card:nth-child(1):hover { background: rgba(0, 240, 255, 0.12); color: #00F0FF; }  /* 형광 하늘 */
.risk-card:nth-child(2):hover { background: rgba(16, 185, 129, 0.12); color: #10B981; } /* 민트 그린 */
.risk-card:nth-child(3):hover { background: rgba(249, 115, 22, 0.12); color: #F97316; } /* 코랄 오렌지 */
.risk-card:nth-child(4):hover { background: rgba(252, 211, 77, 0.12); color: #FCD34D; } /* 골드 */
.risk-card:nth-child(5):hover { background: rgba(167, 139, 250, 0.12); color: #A78BFA; }/* 라벤더 */
.risk-card:nth-child(6):hover { background: rgba(251, 113, 133, 0.12); color: #FB7185; }/* 핑크 */
.risk-card:nth-child(7):hover { background: rgba(52, 211, 153, 0.12); color: #34D399; } /* 에메랄드 */
.risk-card:nth-child(8):hover { background: rgba(56, 189, 248, 0.12); color: #38BDF8; } /* 하늘 */
.risk-card span { font-size: 28px; display: block; margin-bottom: 7px; }
.risk-card p { font-size: 13px; font-weight: 600; color: var(--text-1); word-break: keep-all; }


/* =======================================================
   11. 랜딩 — Why 섹션
   ======================================================= */
.why-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.why-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border-lite);
  border-radius: var(--r-lg);
  transition: all var(--transition);
}
.why-item:hover { box-shadow: var(--shadow-sm); }
.why-check {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--primary);
  color: var(--white); font-size: 16px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.why-item strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.why-item span   { font-size: 13px; color: var(--text-2); word-break: keep-all; }

.why-emphasis {
  margin-top: 28px; padding: 26px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--r-xl); text-align: center; color: var(--white);
}
.why-emphasis p    { font-size: 17px; font-weight: 800; word-break: keep-all; line-height: 1.5; }
.why-emphasis small { display: block; font-size: 13px; opacity: 0.8; margin-top: 8px; }


/* =======================================================
   12. 랜딩 — Pre-CTA 섹션
   ======================================================= */
.precta-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 24px;
  max-width: 540px; margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.precta-title { font-size: 22px; font-weight: 900; color: var(--text-1); margin-bottom: 10px; word-break: keep-all; }
.precta-desc  { font-size: 14px; color: var(--text-2); margin-bottom: 28px; word-break: keep-all; line-height: 1.65; }
.precta-hint  { font-size: 13px; color: var(--text-3); margin-top: 14px; }

/* Pre-CTA 섹션 '진단 시작하기' 버튼 색상 별도 지정 */
#btn-precta-start {
  background: #00BCD4;          /* ← 원하는 색상으로 변경 */
  border-color: #00BCD4;
  box-shadow: 0 4px 18px rgba(0, 188, 212, 0.40);
}
#btn-precta-start:hover {
  background: #0097A7;
  border-color: #0097A7;
}

/* =======================================================
   13. 푸터 — 소셜 링크 + 연락처 + 저작권
   ======================================================= */
#app-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.70);
  padding: 52px 24px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}

/* ── 상단: 브랜드 + 소셜 아이콘 ── */
.footer-top {
  display: flex; flex-direction: column; gap: 22px;
}
.footer-logo    { font-size: 22px; font-weight: 900; color: var(--white); margin-bottom: 4px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.48); }

/* ── 소셜 링크 버튼 그리드 ── */
.footer-social {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.social-link {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: all var(--transition);
  text-decoration: none;
  min-width: 68px;
  -webkit-tap-highlight-color: transparent;
}
.social-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
/* 소셜 링크 호버 — 테두리 + 글씨 + 아이콘 색 동시 변경 */

/* 블로그: 네온 그린 */
.social-link.blog:hover {
  border-color: var(--accent-green);
  color: var(--accent-green-light); /* 글씨+아이콘 색 변경 */
  background: rgba(16, 185, 129, 0.12);
}

/* 인스타그램: 코랄 핑크 */
.social-link.instagram:hover {
  border-color: #E1306C;
  color: #F06292;              /* 글씨+아이콘 색 변경 */
  background: rgba(225, 48, 108, 0.12);
}

/* 홈페이지: 아쿠아 청록 */
.social-link.website:hover {
  border-color: #00BCD4;
  color: #4DD0E1;              /* 글씨+아이콘 색 변경 */
  background: rgba(0, 188, 212, 0.12);
}

/* 유튜브: 빨간색 */
.social-link.youtube:hover {
  border-color: #FF0000;
  color: #FF5252;              /* 글씨+아이콘 색 변경 */
  background: rgba(255, 0, 0, 0.12);
}
.social-link svg  { width: 22px; height: 22px; flex-shrink: 0; }
.social-link span { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }

/* ── 중단: 연락처 정보 ── */
.footer-contact {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.07);
}
.footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; line-height: 1.6;
}
.footer-contact-item .fc-icon { font-size: 16px; flex-shrink: 0; }
.footer-contact-item a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-contact-item a:hover { color: var(--white); text-decoration: underline; }

/* ── 하단: 개인정보처리방침 + 저작권 ── */
.footer-bottom {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13px;
}
.footer-links a, .footer-links button {
  color: rgba(255,255,255,0.50);
  background: none; border: none;
  cursor: pointer; font-family: var(--font); font-size: 13px;
  transition: color var(--transition); padding: 0;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.28); }

/* ── 태블릿 이상: 2열 배치 ── */
@media (min-width: 640px) {
  .footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-contact { flex-direction: row; flex-wrap: wrap; gap: 12px 40px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .footer-inner { gap: 36px; }
  .footer-social { flex-wrap: nowrap; }
}


/* =======================================================
   14. 설문 화면 (Survey Screen)
   ======================================================= */

/* 상단 고정 바 */
.survey-topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-lite);
  padding: 12px 18px 14px;
  flex-shrink: 0;
}
.survey-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.survey-step-label {
  font-size: 13px; font-weight: 600; color: var(--text-2);
}

/* 진행률 바 */
.survey-progress-track {
  height: 6px; background: var(--border);
  border-radius: var(--r-full); overflow: hidden;
}
.survey-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #42A5F5 100%);
  border-radius: var(--r-full);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* 설문 본문 스크롤 영역 */
.survey-body {
  flex: 1;
  padding: 20px 18px 100px;
  overflow-y: auto;
  max-width: 640px; width: 100%;
  margin: 0 auto;
}

/* 각 설문 페이지 */
.survey-page { display: none; }
.survey-page.active { display: block; }

/* JS로 삽입되는 페이지 제목 */
.survey-page-title {
  font-size: 11px; font-weight: 800;
  color: var(--primary); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 6px;
}
.survey-page-subtitle {
  font-size: 19px; font-weight: 900; color: var(--text-1);
  margin-bottom: 22px; word-break: keep-all; letter-spacing: -0.3px;
}

/* 문항 블록 */
.question-block {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.question-num {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  color: var(--primary); margin-bottom: 8px;
}
.question-num::after {
  content: ''; flex: 1; height: 1px; background: var(--border-lite);
}
.question-text {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  margin-bottom: 14px; word-break: keep-all; line-height: 1.55;
}

/* 4지선다 응답 버튼 */
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.answer-btn {
  min-height: 52px; padding: 11px 8px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
  font-family: var(--font);
  text-align: center; word-break: keep-all;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.4;
}
.answer-btn:hover  { border-color: var(--primary); color: var(--primary); background: var(--bg); }
.answer-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(13,71,161,0.28);
}

/* 하단 고정 이전/다음 바 */
.survey-footer-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border-lite);
  padding: 14px 18px;
  display: flex; gap: 12px;
  max-width: 640px; width: 100%;
  margin: 0 auto; left: 50%; transform: translateX(-50%);
}
.survey-footer-bar .btn { flex: 1; }
.survey-footer-bar .btn-primary { flex: 2; }


/* =======================================================
   15. 결과 화면 (Result Screen)
   ======================================================= */
.result-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-lite);
  padding: 16px 20px;
  text-align: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}

.result-body {
  flex: 1; overflow-y: auto;
  padding: 20px 18px;
  max-width: 640px; width: 100%; margin: 0 auto;
}

/* 점수 카드 */
.score-card {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: var(--r-xl);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}

/* SVG 원형 차트 */
.score-circle-wrap {
  position: relative; width: 140px; height: 140px;
  margin: 0 auto 18px;
}
.score-svg {
  width: 100%; height: 100%;
}
.score-bg   { stroke: var(--border); }
.score-fill {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-num   { font-size: 38px; font-weight: 900; color: var(--text-1); line-height: 1; }
.score-denom { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* 위험도 배지 */
.risk-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 22px; border-radius: var(--r-full);
  font-size: 16px; font-weight: 800; margin-bottom: 12px;
}
.risk-badge.low    { background: var(--safe-bg);   color: var(--safe); }
.risk-badge.medium { background: var(--warn-bg);   color: var(--warn); }
.risk-badge.high   { background: var(--danger-bg); color: var(--danger); }

.risk-summary {
  font-size: 14px; color: var(--text-2);
  word-break: keep-all; line-height: 1.65;
}

/* 카테고리 섹션 제목 */
.result-section-title {
  font-size: 15px; font-weight: 800; color: var(--text-1);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.result-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border-lite);
}

/* 카테고리 카드 (JS로 삽입) */
.cat-card {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.cat-card.dominant {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}
.cat-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.cat-name  { font-size: 14px; font-weight: 700; color: var(--text-1); }
.cat-score { font-size: 13px; font-weight: 700; color: var(--primary); }
.cat-bar-track {
  height: 8px; background: var(--border);
  border-radius: var(--r-full); overflow: hidden;
}
.cat-bar-fill {
  height: 100%; width: 0%;
  border-radius: var(--r-full);
  transition: width 1s ease 0.3s;
}
.cat-norm-text { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.dominant-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--primary); background: var(--primary-pale);
  padding: 3px 9px; border-radius: var(--r-full); margin-top: 6px;
}

/* 상세 분석 카드 (JS로 삽입) */
.detail-card {
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.detail-card h3 { font-size: 17px; font-weight: 800; color: var(--text-1); margin-bottom: 7px; word-break: keep-all; }
.detail-card .diag { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.detail-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; word-break: keep-all; margin-bottom: 10px; }

.warning-box {
  background: var(--warn-bg); border: 1px solid #FFE0B2;
  border-radius: var(--r-md); padding: 13px 14px;
  font-size: 13px; color: #E65100;
  line-height: 1.65; word-break: keep-all; margin-bottom: 10px;
}
.emergency-box {
  background: var(--danger-bg); border: 1px solid #FFCDD2;
  border-radius: var(--r-md); padding: 13px 14px; margin-bottom: 10px;
}
.emergency-box h4 { font-size: 13px; font-weight: 700; color: var(--danger); margin-bottom: 7px; }
.emergency-box ol { padding-left: 18px; }
.emergency-box li { font-size: 13px; color: #B71C1C; margin-bottom: 4px; }
.expert-box {
  background: var(--primary-pale); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px 14px;
  font-size: 13px; color: var(--primary);
  line-height: 1.65; word-break: keep-all;
}

/* 하단 CTA 바 */
.result-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border-lite);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.btn-cta {
  width: 100%;
}

/* =======================================================
   16. 폼 화면 (Form Screen)
   ======================================================= */
.form-topbar {
  background: var(--primary);
  color: var(--white);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.form-topbar .btn-icon { color: var(--white); }
.form-topbar .btn-icon:hover { background: rgba(255,255,255,0.15); }
.form-topbar-info h2 { font-size: 16px; font-weight: 700; }
.form-topbar-info p  { font-size: 12px; opacity: 0.8; }

.form-body {
  flex: 1; overflow-y: auto;
  padding: 20px 18px 110px;
  max-width: 640px; width: 100%; margin: 0 auto;
}

/* 점수 요약 카드 */
.form-score-card {
  background: var(--primary);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  color: var(--white);
}
.form-score-badge {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.form-score-badge span:first-child { font-size: 20px; font-weight: 900; }
.form-score-badge span:last-child  { font-size: 11px; opacity: 0.8; }
.form-score-info strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.form-score-info span   { font-size: 12px; opacity: 0.8; }

/* 폼 필드셋 */
.form-fieldset {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  /* fieldset 기본 스타일 제거 */
  border-top: 1px solid var(--border-lite);
}
.form-legend {
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  padding: 0 6px;
  float: none; /* IE 초기화 */
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.form-legend::after {
  content: ''; flex: 1; height: 1px; background: var(--border-lite);
}

/* 동의 섹션 */
.consent-section {
  background: var(--bg);
  border: 1px solid var(--border-lite);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
}
.consent-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 14px; }
.consent-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px;
}
.consent-item:last-of-type { margin-bottom: 0; }
.consent-label { font-size: 13px; color: var(--text-2); line-height: 1.6; word-break: keep-all; cursor: pointer; }
.consent-label strong { color: var(--text-1); }
.consent-detail { font-size: 12px; color: var(--text-3); }

/* 하단 제출 바 */
.form-submit-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border-lite);
  padding: 12px 18px;
  max-width: 640px; width: 100%;
  margin: 0 auto; left: 50%; transform: translateX(-50%);
}
.submit-hint {
  font-size: 12px; color: var(--text-3);
  text-align: center; margin-bottom: 8px;
}
.submit-hint.warn { color: var(--warn); }


/* =======================================================
   17. 완료 화면 (Complete Screen)
   ======================================================= */
.complete-wrap {
  padding: 48px 20px 60px;
  width: 100%; display: flex; justify-content: center;
}
.complete-card {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: var(--r-xl);
  padding: 36px 24px;
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.complete-icon {
  width: 80px; height: 80px;
  background: var(--safe-bg); border-radius: 50%;
  font-size: 40px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.complete-title { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.complete-sub   { font-size: 15px; color: var(--text-2); margin-bottom: 22px; word-break: keep-all; }

.biz-notice {
  background: var(--warn-bg); border: 1px solid #FFE0B2;
  border-radius: var(--r-md); padding: 12px 14px;
  font-size: 13px; color: #E65100;
  line-height: 1.6; word-break: keep-all;
  margin-bottom: 18px;
}

/* 접수 정보 테이블 */
.reception-info {
  background: var(--bg); border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 24px; text-align: left;
}
.reception-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 14px;
  border-bottom: 1px solid var(--border-lite);
}
.reception-row:last-child { border-bottom: none; }
.reception-row dt { color: var(--text-3); font-weight: 500; }
.reception-row dd { color: var(--text-1); font-weight: 700; text-align: right; }

/* 다음 단계 안내 */
.next-steps { text-align: left; margin-bottom: 26px; }
.next-steps h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.next-steps ol { counter-reset: steps; padding-left: 0; }
.next-steps li {
  counter-increment: steps;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
  margin-bottom: 8px;
}
.next-steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}


/* =======================================================
   18. 플로팅 버튼
   ======================================================= */
.floating-group {
  position: fixed; bottom: 22px; right: 16px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.fab {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 700; font-family: var(--font);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition); cursor: pointer; border: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.fab:hover { transform: translateY(-2px); }
.fab-call    { background: var(--safe); color: var(--white); }
.fab-diagnose{ background: var(--primary); color: var(--white); }


/* =======================================================
   19. 개인정보 모달
   ======================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
}
/* hidden 속성 오버라이드 */
.modal-overlay[hidden] { display: none !important; }
.modal-overlay:not([hidden]) { display: flex !important; }

.modal-sheet {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 36px;
  width: 100%; max-width: 640px;
  max-height: 82vh; overflow-y: auto;
  animation: slideUp 0.28s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.modal-title { font-size: 18px; font-weight: 800; }
.modal-body { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.modal-body h3 { font-size: 14px; font-weight: 700; color: var(--text-1); margin: 16px 0 6px; }
.modal-body p  { margin-bottom: 8px; }

.privacy-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12px; }
.privacy-table th, .privacy-table td {
  border: 1px solid var(--border); padding: 8px 10px;
}
.privacy-table th { background: var(--primary-pale); font-weight: 700; color: var(--text-1); }


/* =======================================================
   20. 토스트 알림
   ======================================================= */
.toast {
  position: fixed; bottom: 88px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(13, 27, 42, 0.9);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
  z-index: 3000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* =======================================================
   21. 스크롤 애니메이션 (Intersection Observer)
   ======================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =======================================================
   22. Keyframe 애니메이션 정의
   ======================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}
@keyframes dotsFloat {
  0%   { transform: translate(0,0); }
  100% { transform: translate(6px, 4px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}


/* =======================================================
   23. 반응형 미디어 쿼리
   ======================================================= */

/* ─── 480px 이상: 큰 스마트폰 ─── */
@media (min-width: 480px) {
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { gap: 16px; }
}

/* ─── 768px 이상: 태블릿 ─── */
@media (min-width: 768px) {

  /* 헤더 */
  #app-header { height: 68px; padding: 0 32px; }
  .nav-desktop { display: flex; }
  .header-phone { display: flex; }
  .btn-hamburger { display: none; }

  /* 섹션 패딩 */
  .section { padding: 80px 40px; }

  /* Hero */
  .hero-cta-group { flex-direction: row; max-width: 480px; }
  .btn-hero-primary, .btn-hero-secondary { flex: 1; }

  /* Trust */
  .trust-grid { grid-template-columns: repeat(4, 1fr); }

  /* Risks */
  .risk-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }

  /* Survey 답변 — 가로 4열 */
  .answer-grid { grid-template-columns: repeat(4, 1fr); }

  /* 결과 CTA 바 — 가로 배열 */
  .result-cta-bar { flex-direction: row; }

  /* 폼 칩 그리드 */
  .chip-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── 1024px 이상: 데스크톱 ─── */
@media (min-width: 1024px) {
  .section { padding: 96px 48px; }

  /* 왜 섹션 — 2열 그리드 */
  .why-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* Survey / Form 폼 최대 너비 */
  .survey-body,
  .form-body,
  .result-body { max-width: 720px; }

  .survey-footer-bar { max-width: 720px; }
  .form-submit-bar   { max-width: 720px; }

  /* 결과 CTA 바 */
  .result-cta-bar { max-width: 720px; }
}

/* ─── 1200px 이상: 와이드 ─── */
@media (min-width: 1200px) {
  .section-inner { max-width: 1200px; }
}

/* ─── 다크 모드 (선택적 지원) ─── */
@media (prefers-color-scheme: dark) {
  /* 다크 모드 필요 시 여기에 추가 */
}

/* ─── 접근성: 모션 감소 설정 ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 인쇄(PDF 저장) 시 결과 화면만 출력 */
@media print {
  /* 결과 화면 외 모든 요소 숨김 */
  body * { visibility: hidden; }

  /* 결과 본문만 표시 */
  #screen-result,
  #screen-result * { visibility: visible; }

  #screen-result {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    display: block !important;
  }

  /* 인쇄 시 하단 버튼 바 숨김 */
  .result-cta-bar { display: none !important; }
}

/* 결과 페이지 — 데스크톱 버튼 중앙 가로 배치 */
@media (min-width: 768px) {
  .result-cta-bar {
    flex-direction: row;
    justify-content: center;  /* 가로 중앙 */
    flex-wrap: wrap;
  }
  .btn-cta {
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
  }
}

/* ── 모바일에서 Spline 3D 대신 이미지 배경 사용 ── */
@media (max-width: 767px) {

  /* Spline iframe 숨김 */
  .hero-spline-bg {
    display: none;
  }

  /* 물방울 이미지를 배경으로 사용 */
  .hero {
    background:
      url('../images/hero-mobile-bg.png')
      center center / cover
      no-repeat !important;
  }

  /* 이미지 위에 어두운 오버레이
     (텍스트가 잘 보이도록) */
  .hero-overlay {
    background: rgba(3, 10, 30, 0.55) !important;
  }
}
