:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #e11d48;
  --accent-light: #ffe4e6;
  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 1. 상단 글래스모피즘 네비게이션 */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 2. 카드 공통 */
.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 26px 22px;
  margin-top: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
}

/* 3. 히어로 계산기 카드 */
.hero-card {
  box-shadow: var(--shadow-md);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 1.52rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-main);
  word-break: keep-all;
}

.highlight {
  color: var(--primary);
  background: linear-gradient(180deg, transparent 60%, #dbeafe 60%);
  padding: 0 2px;
}

.hero-desc {
  font-size: 0.94rem;
  color: var(--text-sub);
  margin-bottom: 22px;
  word-break: keep-all;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.region-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

select,
input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.98rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
  background: #f8fafc;
  transition: all 0.15s ease;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 사업자 상태 선택 버튼 */
.stage-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.stage-btn {
  padding: 11px 4px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stage-btn:hover {
  background: #f1f5f9;
}

.stage-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

/* 4. 메인 CTA 버튼 */
.btn-primary-lg {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary-lg:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.36);
}

.btn-primary-lg:active {
  transform: scale(0.98);
}

.btn-outline-sm {
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-outline-sm:hover {
  background: #f8fafc;
}

.social-proof {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  word-break: keep-all;
}

/* 5. 상세 페이지 요약 배너 */
.hidden {
  display: none !important;
}

.summary-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 28px -6px rgba(30, 58, 138, 0.35);
  border: none;
}

.condition-text {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 6px;
}

.total-amount-box {
  font-size: 1.05rem;
}

.total-amount-box strong {
  display: block;
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.total-amount-box span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* 6. 개별 지원금 공고 카드 */
.grant-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 22px 20px;
  margin-top: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.badge {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.badge-urgent {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-normal {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-cat {
  background: #f1f5f9;
  color: var(--text-sub);
}

.card-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
  word-break: keep-all;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 7px;
  line-height: 1.5;
  word-break: keep-all;
}

.card-reject {
  background: #fef2f2;
  color: #b91c1c !important;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.85rem !important;
  margin-top: 8px;
}

.cta-sub-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cta-sub-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* 7. 상업적 블러 락인 오버레이 */
.blur-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.65;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.96) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.lock-overlay p {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.45;
  word-break: keep-all;
}

.unlock-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
  transition: transform 0.12s ease;
}

.unlock-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* 8. 하단 상담 유도 카드 */
.cta-consult-card {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fde047;
  text-align: center;
}

.cta-consult-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.cta-consult-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  word-break: keep-all;
}

/* 9. 신규 보강 섹션 (인기 지원금 TOP 3, 수혜 사례, 3단계 체크리스트) */
.section-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 14px;
  word-break: keep-all;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popular-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.popular-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.pop-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.pop-amount {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
}

.pop-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: keep-all;
}

.case-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border-left: 4px solid var(--primary);
}

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.case-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
}

.case-money {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.case-desc {
  font-size: 0.86rem;
  color: var(--text-main);
  line-height: 1.45;
  word-break: keep-all;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}

.step-num {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
  margin-top: 2px;
}

.step-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
  color: var(--text-main);
}

.step-item p {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.45;
  word-break: keep-all;
}

/* 10. FAQ 아코디언 */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 0;
  font-size: 0.94rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  word-break: keep-all;
}

.faq-answer {
  display: none;
  padding-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
  word-break: keep-all;
}

.faq-item.open .faq-answer {
  display: block;
}

/* 11. 하단 SEO 디렉토리 접이식 아코디언 */
.directory-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 14px;
  word-break: keep-all;
}

.dir-accordion {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.dir-summary {
  padding: 13px 15px;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  background: #ffffff;
}

.dir-summary::-webkit-details-marker {
  display: none;
}

.dir-accordion[open] .dir-arrow {
  transform: rotate(180deg);
}

.dir-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.dir-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.12s;
}

.dir-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* 12. 푸터 & 모달 */
.footer {
  text-align: center;
  padding: 32px 0 48px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--text-sub);
  cursor: pointer;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin: 8px 0 18px;
  word-break: keep-all;
}

.lead-form input[type="text"],
.lead-form input[type="tel"] {
  margin-bottom: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-sub);
  margin: 4px 0 16px;
  cursor: pointer;
}