/* ═══ 보험플랜온 치아보험 페이지 CSS ═══
   메인 페이지와 동일한 디자인 아이덴티티
   ═══════════════════════════════════════ */

:root {
  --bg: #F6F7FB;
  --bg-card: #FFFFFF;
  --navy: #0E1B30;
  --navy-50: rgba(14,27,48,0.05);
  --primary: #1B6EF3;
  --primary-light: rgba(27,110,243,0.08);
  --primary-glow: rgba(27,110,243,0.15);
  --mint: #00C9A7;
  --mint-light: rgba(0,201,167,0.08);
  --coral: #FF6259;
  --coral-light: rgba(255,98,89,0.08);
  --amber: #FFB020;
  --amber-light: rgba(255,176,32,0.08);
  --violet: #7C5CFC;
  --violet-light: rgba(124,92,252,0.08);
  --text: #1A2233;
  --text-sub: #5A6B82;
  --text-light: #8C9AB5;
  --border: rgba(14,27,48,0.06);
  --shadow-sm: 0 1px 3px rgba(14,27,48,0.04);
  --shadow-md: 0 4px 20px rgba(14,27,48,0.06);
  --shadow-lg: 0 12px 40px rgba(14,27,48,0.08);
  --sky: #2196F3;
  --sky-light: rgba(33,150,243,0.08);
  --radius: 20px;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

section { padding: 80px 0; }

/* ═══ NAV (메인과 동일) ═══ */
nav { background: rgba(246,247,251,0.85); border-bottom: 1px solid var(--border); }
.logo { color: var(--navy); }
.nav-link { color: var(--text-sub); }
.nav-link:hover { background: var(--navy-50); }
.nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-cta { background: var(--navy); color: white; }
.nav-cta:hover { background: var(--primary); }
.nav-hamburger { color: var(--text); }
@media(max-width:640px) { .nav-menu { background: rgba(246,247,251,0.95); } }

/* ═══ HERO (라이트 테마) ═══ */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 30%, var(--sky-light) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 70% 60%, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px 8px 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; font-weight: 600;
  color: var(--text-sub); margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s ease both;
  position: relative; z-index: 1;
}

.hero-badge::before {
  content: ''; width: 8px; height: 8px;
  background: var(--sky); border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  word-break: keep-all;
  color: var(--text);
  animation: fadeUp 0.7s 0.1s ease both;
  position: relative; z-index: 1;
}

.hero h1 .warm { color: var(--sky); }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-sub); max-width: 520px;
  margin: 0 auto 40px; word-break: keep-all;
  line-height: 1.7;
  animation: fadeUp 0.7s 0.2s ease both;
  position: relative; z-index: 1;
}

.hero-cta {
  display: inline-block;
  padding: 18px 44px;
  background: var(--primary); color: white;
  font-size: 17px; font-weight: 700;
  border: none; border-radius: 14px;
  cursor: pointer; font-family: inherit;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(27,110,243,0.25);
  transition: all 0.3s;
  animation: fadeUp 0.7s 0.3s ease both;
  position: relative; z-index: 1;
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(27,110,243,0.35); }

/* ═══ STATS ═══ */
.stats { padding: 0 0 60px; margin-top: -20px; position: relative; z-index: 2; }

.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 640px; margin: 0 auto 16px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat-item .number {
  font-size: 32px; font-weight: 800;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, var(--sky), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-item .label { font-size: 13px; color: var(--text-sub); line-height: 1.5; }

.stat-source { text-align: center; font-size: 11px; color: var(--text-light); }
.stat-source a { color: var(--primary); text-decoration: underline; }

/* ═══ SECTION COMMON ═══ */
.section-label {
  display: inline-block; padding: 6px 16px;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 6px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 16px; word-break: keep-all;
  color: var(--text); line-height: 1.3;
}

.section-desc {
  font-size: 16px; color: var(--text-sub);
  max-width: 560px; word-break: keep-all;
  line-height: 1.8; margin-bottom: 40px;
}

#problem, #problem + section, #problem + section + section { text-align: left; }

/* ═══ PROBLEM CARDS ═══ */
.problem-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 20px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.problem-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--mint));
  opacity: 0; transition: opacity 0.3s;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.problem-card:hover::before { opacity: 1; }

.problem-card .tag {
  display: inline-block; padding: 4px 12px;
  background: var(--sky-light); color: var(--sky);
  font-size: 12px; font-weight: 700;
  border-radius: 6px; margin-bottom: 14px;
}

.problem-card h3 {
  font-size: 20px; font-weight: 800;
  margin-bottom: 10px; color: var(--text);
}

.problem-card p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

.problem-card .cost {
  margin-top: 16px; padding: 14px 16px;
  background: var(--sky-light);
  border-radius: 12px; font-size: 14px;
  color: var(--text-sub);
}

.problem-card .cost strong { color: var(--sky); font-weight: 800; }

.note {
  font-size: 12px; color: var(--text-light);
  line-height: 1.8; margin-top: 8px;
}

/* ═══ COMPARE TABLE ═══ */
.compare-wrap { overflow-x: auto; margin-bottom: 16px; }

.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table thead th {
  padding: 18px 16px;
  font-size: 14px; font-weight: 700;
  text-align: center;
}

.compare-table thead th:first-child {
  background: var(--navy);
  color: white;
}

.compare-table thead th.old {
  background: #F0F2F5;
  color: var(--text-sub);
}

.compare-table thead th.new {
  background: var(--primary);
  color: white;
}

.compare-table tbody td {
  padding: 16px; font-size: 14px;
  border-top: 1px solid var(--border);
  text-align: center; vertical-align: middle;
}

.compare-table tbody td:first-child {
  font-weight: 700; color: var(--text);
  text-align: left; background: rgba(14,27,48,0.02);
}

.compare-table tbody td.old { color: var(--text-light); }
.compare-table tbody td.new { color: var(--primary); font-weight: 600; }

/* ═══ SOLUTION LIST ═══ */
.solution-list { display: flex; flex-direction: column; gap: 16px; }

.solution-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
}

.solution-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.solution-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.solution-item h4 {
  font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}

.solution-item p { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

/* ═══ CTA / FORM ═══ */
.cta-section { padding: 80px 0 60px; }

.cta-box {
  background: var(--navy); border-radius: 28px;
  padding: 48px 32px; position: relative; overflow: hidden;
  color: white; text-align: center;
}

.cta-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--mint), var(--primary));
}

.cta-box::after {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 250px; height: 250px; background: rgba(27,110,243,0.06);
  border-radius: 50%; pointer-events: none;
}

.cta-box h2 {
  font-size: 26px; font-weight: 800;
  margin-bottom: 10px; word-break: keep-all;
  position: relative; z-index: 1;
}

.cta-box .sub {
  font-size: 15px; color: rgba(255,255,255,0.5);
  word-break: keep-all; line-height: 1.7;
  margin-bottom: 36px; position: relative; z-index: 1;
}

/* Form overrides (navy box) */
.cta-box .form-area { max-width: 440px; margin: 0 auto; position: relative; z-index: 1; }
.cta-box .f-group label { color: rgba(255,255,255,0.5); }
.cta-box .f-group label span { color: var(--coral); }
.cta-box .f-group input, .cta-box .f-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}
.cta-box .f-group input::placeholder { color: rgba(255,255,255,0.6); }
.cta-box .f-group input:focus, .cta-box .f-group select:focus { border-color: var(--primary); }
.cta-box .f-group select option { background: var(--navy); color: white; }
.cta-box .f-check label { color: rgba(255,255,255,0.45); }
.cta-box .f-check a { color: var(--mint); }
.cta-box .f-check input[type="checkbox"] { accent-color: var(--primary); }
.cta-box .f-submit {
  background: var(--primary); color: white;
  box-shadow: 0 4px 20px rgba(27,110,243,0.3);
  border-radius: 14px;
}
.cta-box .f-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(27,110,243,0.4); }
.cta-box .f-note { color: rgba(255,255,255,0.3); }

/* ═══ POPUP (메인과 동일) ═══ */
.popup-sheet { background: white; }
.popup-handle { background: #DDD; }
.popup-header { border-bottom: 1px solid #F0F0F0; }
.popup-header h3 { color: var(--text); }
.popup-close { background: #F0F0F0; color: #666; }
.popup-body { color: #666; }
.popup-body h4 { color: #333; }
.popup-body table th, .popup-body table td { border: 1px solid #F0F0F0; }
.popup-body table th { background: #FAFAFA; color: #333; }
.popup-footer { border-top: 1px solid #F0F0F0; }
.popup-confirm-btn { background: var(--primary); color: white; }

/* ═══ FLOATING CTA ═══ */
.float-btn { background: var(--primary); color: white; box-shadow: 0 4px 24px rgba(27,110,243,0.3); border-radius: 14px; }

/* Toast */
.toast { --toast-ok: var(--mint); --toast-ok-text: var(--navy); --toast-warn: var(--coral); }

/* ═══ MOBILE ═══ */
@media (max-width: 640px) {
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-item { padding: 20px 12px; }
  .stat-item .number { font-size: 24px; }
  section { padding: 60px 0; }
  .section-title { font-size: 22px; }
  .problem-cards { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 20px; border-radius: 24px; }
  .solution-item { flex-direction: column; gap: 12px; }
}

/* ═══ REALITY GRID (암보험 전용) ═══ */
.reality-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 16px;
}

.reality-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

.reality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reality-icon { font-size: 32px; margin-bottom: 12px; }

.reality-num {
  font-size: 20px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}

.reality-num strong {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--sky), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reality-label { font-size: 14px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; }
.reality-detail { font-size: 12px; color: var(--text-light); }

/* ═══ URGENCY CARDS ═══ */
.urgency-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.urgency-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
}

.urgency-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.urgency-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--sky-light);
  color: var(--coral);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 14px;
  margin-bottom: 16px;
}

.urgency-card h4 {
  font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}

.urgency-card p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

@media (max-width: 640px) {
  .reality-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reality-card { padding: 20px 16px; }
  .reality-num strong { font-size: 24px; }
  .urgency-cards { grid-template-columns: 1fr; }
}

/* ═══ URGENCY CARDS ═══ */
.urgency-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.urgency-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; transition: all 0.3s;
}
.urgency-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.urgency-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--sky-light); color: var(--sky);
  border-radius: 10px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.urgency-card h4 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.urgency-card p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* ═══ CHANGE LIST (2025 변경사항) ═══ */
.change-list { display: flex; flex-direction: column; gap: 16px; }
.change-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; transition: all 0.3s;
}
.change-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.change-badge {
  flex-shrink: 0; padding: 6px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin-top: 2px;
}
.new-badge { background: var(--mint-light); color: var(--mint); }
.limit-badge { background: var(--amber-light); color: var(--amber); }
.change-item h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.change-item p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

@media (max-width: 640px) {
  .urgency-cards { grid-template-columns: 1fr; }
  .change-item { flex-direction: column; gap: 10px; }
}
