/* ═══════════════════════════════════════════════════
   solidtaxfree.co.kr — Global Design System v2
   체납세금 면책 전문 행정사 사무소
   ═══════════════════════════════════════════════════ */

:root {
  /* Brand */
  --primary: #0F2B47;
  --primary-dark: #081A2E;
  --primary-light: #1B3A5C;
  --accent: #2E75B6;
  --accent-dark: #1B5A8C;
  --accent-light: #E8F0FE;
  --accent-50: #F4F9FF;

  /* Semantic */
  --cta-orange: #E67E22;
  --cta-orange-dark: #CF6D1B;
  --cta-green: #217346;
  --cta-kakao: #FEE500;

  /* Neutral */
  --text: #222831;
  --text-light: #52606D;
  --text-muted: #8A94A0;
  --bg: #FFFFFF;
  --bg-light: #F7F9FC;
  --bg-subtle: #EEF2F7;
  --bg-dark: #0F2B47;
  --border: #E3E8EF;
  --border-strong: #C5D0DC;

  /* Status */
  --success: #059669;
  --success-light: #D1FAE5;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --info: #0284C7;

  /* Design tokens */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgba(15,43,71,0.04);
  --shadow-sm: 0 2px 6px rgba(15,43,71,0.06);
  --shadow: 0 4px 12px rgba(15,43,71,0.08);
  --shadow-lg: 0 12px 32px rgba(15,43,71,0.12);
  --shadow-xl: 0 20px 48px rgba(15,43,71,0.16);
  --shadow-accent: 0 8px 24px rgba(46,117,182,0.25);
  --shadow-cta: 0 8px 24px rgba(230,126,34,0.35);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1180px;
  --max-w-narrow: 840px;
}

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

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid rgba(46,117,182,0.45); outline-offset: 2px; border-radius: 4px; }

/* ═══ LAYOUT ═══ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-light { background: var(--bg-light); }
.section-subtle { background: var(--bg-subtle); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .container, .container-narrow { padding: 0 16px; }
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.25; color: var(--primary); letter-spacing: -0.015em; }
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 1.9rem; margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.05rem; margin-bottom: 6px; }
p { margin-bottom: 12px; color: var(--text); }
.lead { font-size: 1.12rem; color: var(--text-light); line-height: 1.8; }

.section-title { text-align: center; margin-bottom: 56px; }
.section-title .eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.section-title h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-title p { color: var(--text-light); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }
.section-title .accent-line {
  width: 64px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--cta-orange));
  margin: 18px auto 0; border-radius: 2px;
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.45rem; }
  .section-title { margin-bottom: 36px; }
  .section-title h2 { font-size: 1.6rem; }
}

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 68px;
}
.nav-logo {
  font-size: 1.18rem; font-weight: 900; color: var(--primary);
  display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em;
}
.nav-logo::before {
  content: ''; width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: var(--shadow-sm);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--text); font-size: 0.94rem; font-weight: 600; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active:not(.nav-cta)::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--cta-orange); color: #fff !important; padding: 10px 22px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow-cta);
}
.nav-cta:hover { background: var(--cta-orange-dark); color: #fff !important; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--primary); padding: 8px; }

@media (max-width: 960px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 24px; gap: 18px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ═══ HERO ═══ */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #081A2E 0%, #0F2B47 45%, #1B4571 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -10%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(46,117,182,0.35) 0%, transparent 60%);
  animation: float 12s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -40%; right: -10%; width: 60%; height: 180%;
  background: radial-gradient(ellipse, rgba(230,126,34,0.18) 0%, transparent 60%);
  animation: float 14s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 20px; font-weight: 900; letter-spacing: -0.025em; }
.hero h1 .highlight { color: #FFB878; position: relative; }
.hero .subtitle { font-size: 1.18rem; color: rgba(255,255,255,0.9); margin-bottom: 36px; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.hero-badges { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  padding: 9px 18px; border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 600;
  backdrop-filter: blur(8px);
}
.hero-meta {
  display: flex; justify-content: center; gap: 32px; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); flex-wrap: wrap;
}
.hero-meta-item { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.hero-meta-item strong { color: #fff; font-weight: 700; display: block; font-size: 1.4rem; margin-bottom: 2px; }

@media (max-width: 768px) {
  .hero { padding: 120px 0 72px; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-meta { gap: 20px; margin-top: 32px; padding-top: 24px; }
  .hero-meta-item strong { font-size: 1.2rem; }
}

/* Subpage hero */
.hero-sub {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, #0F2B47 0%, #1B4571 100%);
  color: #fff; text-align: center;
}
.hero-sub h1 { font-size: 2.2rem; color: #fff; }
.hero-sub .subtitle { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.hero-sub .breadcrumb { justify-content: center; }

/* ═══ BREADCRUMB ═══ */
.breadcrumb { display: flex; gap: 8px; list-style: none; font-size: 0.85rem; margin-bottom: 16px; color: rgba(255,255,255,0.7); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li::after { content: '›'; color: rgba(255,255,255,0.4); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full); font-size: 1rem;
  font-weight: 700; border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.btn-primary { background: var(--cta-orange); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--cta-orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230,126,34,0.45); }
.btn-secondary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-secondary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-light); border-color: var(--accent); color: var(--accent); }
.btn-kakao { background: var(--cta-kakao); color: #3C1E1E; box-shadow: 0 4px 12px rgba(254,229,0,0.4); }
.btn-kakao:hover { background: #E6CF00; color: #3C1E1E; transform: translateY(-2px); }
.btn-phone { background: var(--cta-green); color: #fff; box-shadow: 0 4px 12px rgba(33,115,70,0.35); }
.btn-phone:hover { background: #1A5C38; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1.08rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-group-center { justify-content: center; }

/* ═══ CARDS ═══ */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: var(--transition); position: relative;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--accent-light); }
.card-icon { font-size: 2rem; margin-bottom: 14px; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px; background: var(--accent-light); color: var(--accent);
}
.card-highlight { border-color: var(--accent); border-width: 2px; background: linear-gradient(180deg, var(--accent-50) 0%, #fff 40%); }
.card-highlight::before {
  content: '가장 많이 찾는 서비스'; position: absolute; top: -12px; right: 24px;
  background: var(--cta-orange); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-full); letter-spacing: 0.02em;
}

/* Feature card (3-part) */
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--border); transition: var(--transition);
  display: flex; flex-direction: column; gap: 14px; height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }
.feature-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-light), #fff);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border: 1px solid var(--accent-light);
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; margin: 0; flex: 1; }

/* ═══ STATS ═══ */
.stat-card {
  text-align: center; padding: 32px 20px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-number {
  font-size: 2.6rem; font-weight: 900; color: var(--accent); display: block;
  letter-spacing: -0.03em; line-height: 1;
}
.stat-label { font-size: 0.92rem; color: var(--text-light); margin-top: 8px; display: block; font-weight: 500; }

/* ═══ STEPS ═══ */
.step-item {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.step-item:last-child { border-bottom: none; }
.step-number {
  width: 56px; height: 56px; min-width: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; box-shadow: var(--shadow-accent);
}
.step-content { flex: 1; }
.step-content h3 { color: var(--primary); margin-bottom: 6px; }
.step-content p { color: var(--text-light); font-size: 0.97rem; margin: 0; }
.step-meta { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.step-tag {
  font-size: 0.78rem; padding: 5px 12px; border-radius: var(--radius-full);
  background: var(--accent-light); color: var(--accent); font-weight: 600;
}

/* ═══ FAQ ACCORDION ═══ */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; background: #fff; transition: var(--transition);
}
.faq-item:hover { border-color: var(--accent-light); }
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 1rem;
  color: var(--primary);
}
.faq-question::after {
  content: '+'; font-size: 1.6rem; color: var(--accent);
  transition: transform 0.3s ease; min-width: 24px; text-align: center; line-height: 1;
}
.faq-item.open .faq-question::after { content: '−'; transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-light); line-height: 1.85; padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 800px; padding: 0 24px 22px; }

/* ═══ CASE CARDS ═══ */
.case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: var(--transition); display: flex; flex-direction: column;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 20px 24px; position: relative;
}
.case-type {
  font-size: 0.78rem; background: rgba(255,255,255,0.18);
  padding: 4px 12px; border-radius: var(--radius-full);
  display: inline-block; margin-bottom: 10px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.case-amount { font-size: 1.1rem; }
.case-amount .before { text-decoration: line-through; opacity: 0.6; font-size: 0.95rem; }
.case-amount .arrow { color: var(--cta-orange); font-weight: 800; margin: 0 4px; }
.case-amount .after { color: #6EE7B7; font-weight: 800; font-size: 1.3rem; }
.case-body { padding: 22px 24px; flex: 1; }
.case-detail { font-size: 0.92rem; color: var(--text-light); margin-bottom: 8px; }
.case-detail strong { color: var(--primary); font-weight: 700; }
.case-quote {
  font-style: italic; color: var(--text); margin-top: 14px; padding: 12px 14px;
  border-left: 3px solid var(--accent); background: var(--accent-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.95rem;
}
.case-meta {
  padding: 12px 24px; background: var(--bg-light);
  border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted);
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}

/* ═══ PROFILE ═══ */
.profile-card {
  display: flex; gap: 36px; align-items: flex-start; background: #fff;
  border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.profile-avatar {
  width: 140px; height: 140px; min-width: 140px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; box-shadow: var(--shadow-lg);
}
.profile-info h2 { margin-bottom: 6px; font-size: 1.7rem; }
.profile-title { color: var(--accent); font-weight: 700; margin-bottom: 20px; font-size: 1rem; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.profile-tag {
  font-size: 0.84rem; padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--accent-light); color: var(--accent); font-weight: 600;
}

@media (max-width: 768px) {
  .profile-card { flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; }
  .profile-tags { justify-content: center; }
}

/* ═══ TIMELINE ═══ */
.timeline-item { display: flex; gap: 20px; margin-bottom: 0; align-items: flex-start; }
.timeline-year {
  flex: 0 0 120px; width: 120px; font-weight: 800; color: var(--accent);
  font-size: 0.92rem; padding-top: 2px; white-space: nowrap;
}
.timeline-content {
  padding-bottom: 28px; border-left: 2px solid var(--border);
  padding-left: 24px; position: relative; flex: 1;
}
.timeline-item:last-child .timeline-content { border-left-color: transparent; padding-bottom: 0; }
.timeline-content::before {
  content: ''; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent);
}
.timeline-content h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-content p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ═══ DIAGNOSIS FORM ═══ */
.diag-form {
  max-width: 680px; margin: 0 auto; background: #fff;
  padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.diag-step { display: none; animation: fadeInUp 0.4s ease; }
.diag-step.active { display: block; }
.diag-progress {
  display: flex; gap: 8px; margin-bottom: 32px; align-items: center;
}
.diag-dot {
  flex: 1; height: 8px; border-radius: 4px; background: var(--border); transition: var(--transition);
}
.diag-dot.done { background: var(--success); }
.diag-dot.current { background: var(--cta-orange); box-shadow: 0 0 0 4px rgba(230,126,34,0.2); }
.diag-progress-label {
  display: flex; justify-content: space-between; font-size: 0.82rem;
  color: var(--text-light); margin-bottom: 12px; font-weight: 600;
}

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 0.95rem; color: var(--primary); }
.form-group .help { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.form-group select, .form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition);
  font-family: inherit; background: #fff; color: var(--text);
}
.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 4px rgba(46,117,182,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.radio-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.radio-card {
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); text-align: center; font-weight: 600;
  font-size: 0.95rem; background: #fff;
}
.radio-card:hover { border-color: var(--accent); background: var(--accent-50); }
.radio-card.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent); box-shadow: 0 0 0 3px rgba(46,117,182,0.1); }
.radio-card input { display: none; }

/* ═══ RESULT ═══ */
.result-card {
  background: linear-gradient(135deg, #0F2B47 0%, #1B4571 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 40px; text-align: center;
  position: relative; overflow: hidden;
}
.result-card::before {
  content: ''; position: absolute; top: -40%; right: -20%; width: 60%; height: 180%;
  background: radial-gradient(ellipse, rgba(46,117,182,0.3), transparent 65%);
}
.result-card > * { position: relative; z-index: 1; }
.result-badge {
  display: inline-block; padding: 8px 22px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.9rem; margin-bottom: 18px;
}
.result-high { background: rgba(16,185,129,0.25); color: #6EE7B7; border: 1px solid rgba(110,231,183,0.4); }
.result-mid { background: rgba(245,158,11,0.2); color: #FCD34D; border: 1px solid rgba(252,211,77,0.4); }
.result-low { background: rgba(239,68,68,0.2); color: #FCA5A5; border: 1px solid rgba(252,165,165,0.4); }
.result-title { font-size: 1.9rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -0.02em; }
.result-desc { color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.8; }

/* ═══ FLOATING CTA ═══ */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 12px 16px; display: flex; gap: 8px; justify-content: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.floating-cta .btn { flex: 1; max-width: 200px; padding: 12px 14px; font-size: 0.92rem; }

@media (min-width: 961px) { .floating-cta { display: none; } }

/* Desktop sticky right-side CTA */
.side-cta {
  position: fixed; right: 24px; bottom: 28px; z-index: 998;
  display: flex; flex-direction: column; gap: 10px;
}
.side-cta a {
  width: 58px; height: 58px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem;
  box-shadow: var(--shadow-lg); transition: var(--transition);
  position: relative; color: #fff; text-decoration: none;
}
.side-cta a:hover { transform: translateY(-3px) scale(1.05); }
.side-cta-phone { background: var(--cta-green); }
.side-cta-kakao { background: var(--cta-kakao); color: #3C1E1E !important; }
.side-cta-top { background: var(--primary); }
.side-cta a .tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--primary); color: #fff; padding: 6px 12px;
  border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s; white-space: nowrap;
}
.side-cta a:hover .tip { opacity: 1; }

@media (max-width: 960px) { .side-cta { display: none; } }

/* ═══ FOOTER ═══ */
.footer {
  background: #081A2E; color: rgba(255,255,255,0.7);
  padding: 64px 0 24px; margin-top: 60px;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 1rem; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 8px; color: rgba(255,255,255,0.7); }
.footer-brand .biz-info { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  font-size: 0.82rem; text-align: center; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

/* ═══ CTA BANNER ═══ */
.cta-banner {
  background: linear-gradient(135deg, var(--cta-orange) 0%, #D4772C 100%);
  color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.12), transparent 50%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.92); margin-bottom: 28px; font-size: 1.05rem; }

.cta-banner-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 72px 0; text-align: center;
}
.cta-banner-dark h2 { color: #fff; font-size: 2rem; }
.cta-banner-dark p { color: rgba(255,255,255,0.85); }

/* ═══ TRUST BAR ═══ */
.trust-bar {
  background: var(--primary); color: #fff;
  padding: 10px 0; text-align: center; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em;
}
.trust-bar strong { font-weight: 700; color: #FFB878; }

/* Trust Row — logos / badges / guarantees */
.trust-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; align-items: stretch;
}
.trust-chip {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: 8px;
  transition: var(--transition);
}
.trust-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.trust-chip .icon { font-size: 1.8rem; color: var(--accent); }
.trust-chip strong { color: var(--primary); font-weight: 700; font-size: 0.98rem; }
.trust-chip span { color: var(--text-light); font-size: 0.82rem; }

/* ═══ REVIEWS / TESTIMONIALS ═══ */
.review-card {
  background: #fff; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  gap: 14px; height: 100%;
}
.review-stars { color: #F59E0B; font-size: 1.05rem; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 0.98rem; line-height: 1.75; flex: 1; font-style: italic; }
.review-meta {
  display: flex; align-items: center; gap: 12px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.review-author strong { display: block; font-size: 0.9rem; color: var(--primary); }
.review-author span { font-size: 0.82rem; color: var(--text-muted); }

/* ═══ TABLE ═══ */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table-wrap th { background: var(--primary); color: #fff; padding: 14px 18px; text-align: left; font-weight: 700; }
.table-wrap td { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:nth-child(even) td { background: var(--bg-light); }

/* ═══ CALLOUT BOXES ═══ */
.callout {
  padding: 20px 24px; border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent); background: var(--accent-50);
  margin: 20px 0;
}
.callout-title { font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.callout-warning { border-left-color: var(--warning); background: var(--warning-light); }
.callout-warning .callout-title { color: var(--warning); }
.callout-success { border-left-color: var(--success); background: var(--success-light); }
.callout-success .callout-title { color: var(--success); }

/* Legal reference chip */
.law-ref {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
  background: var(--accent-light); padding: 4px 10px; border-radius: var(--radius-full);
  margin: 4px 4px 4px 0;
}

/* ═══ BLOG / INSIGHTS ═══ */
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition);
  display: flex; flex-direction: column; height: 100%;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-cover {
  height: 180px; background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,0.9);
}
.post-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.post-tag {
  display: inline-block; font-size: 0.75rem; padding: 3px 10px;
  background: var(--accent-light); color: var(--accent); border-radius: var(--radius-full);
  font-weight: 600; align-self: flex-start;
}
.post-body h3 { font-size: 1.1rem; margin: 0; line-height: 1.45; }
.post-body p { color: var(--text-light); font-size: 0.9rem; margin: 0; flex: 1; }
.post-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }

/* ═══ CALCULATOR ═══ */
.calc-box {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.calc-result {
  margin-top: 28px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-50), #fff);
  border: 1.5px solid var(--accent);
}
.calc-result-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.calc-verdict { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.calc-badge-high { background: var(--success-light); color: var(--success); padding: 6px 16px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.88rem; }
.calc-badge-mid { background: var(--warning-light); color: var(--warning); padding: 6px 16px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.88rem; }
.calc-badge-low { background: var(--danger-light); color: var(--danger); padding: 6px 16px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.88rem; }
.calc-detail { font-size: 0.95rem; color: var(--text); line-height: 1.8; }
.calc-timeline {
  display: flex; align-items: center; margin: 16px 0; gap: 0;
}
.calc-timeline-bar {
  flex: 1; height: 12px; background: var(--border); border-radius: var(--radius-full);
  position: relative; overflow: hidden;
}
.calc-timeline-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: var(--radius-full); transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ ANIMATIONS ═══ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,126,34,0.5); }
  50% { box-shadow: 0 0 0 14px rgba(230,126,34,0); }
}
.pulse { animation: pulse 2.2s infinite; }

/* ═══ UTILITIES ═══ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--accent); }
.text-orange { color: var(--cta-orange); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.pt-nav { padding-top: 68px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap-8 { gap: 8px; }
.flex-gap-16 { gap: 16px; }

/* Screen reader only */
.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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .nav, .floating-cta, .side-cta, .cta-banner, .cta-banner-dark, .footer { display: none !important; }
  body { background: #fff; color: #000; }
}
