@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Stripe Design System — KONIVO */
  --clr-primary:        #533afd;
  --clr-primary-deep:   #4434d4;
  --clr-primary-press:  #2e2b8c;
  --clr-primary-soft:   #665efd;
  --clr-primary-sub:    #b9b9f9;
  --clr-dark-900:       #1c1e54;
  --clr-ruby:           #ea2261;
  --clr-ink:            #0d253d;
  --clr-ink-2:          #273951;
  --clr-ink-mute:       #64748d;
  --clr-ink-mute-2:     #61718a;
  --clr-on-primary:     #ffffff;
  --clr-canvas:         #ffffff;
  --clr-canvas-soft:    #f6f9fc;
  --clr-canvas-cream:   #f5e9d4;
  --clr-hairline:       #e3e8ee;
  --clr-hairline-input: #a8c3de;
  /* Legacy compat aliases */
  --primary:     #533afd;
  --bg:          #ffffff;
  --bg2:         #f6f9fc;
  --bg3:         #f0f2f5;
  --surface:     #ffffff;
  --border:      #e3e8ee;
  --border2:     #a8c3de;
  --accent:      #4434d4;
  --accent2:     #533afd;
  --accent-light:#b9b9f9;
  --accent-mid:  #d4d1fe;
  --text:        #0d253d;
  --fg:          #0d253d;
  --text2:       #273951;
  --muted:       #64748d;
  --muted2:      #61718a;
  --success:     #10b981;
  --shadow:      0 1px 3px rgba(0,55,112,0.08);
  --shadow-2:    0 8px 24px rgba(0,55,112,0.08), 0 2px 6px rgba(0,55,112,0.04);
  --radius:      14px;
}
body { font-family: 'Noto Sans KR', 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── HERO — Stripe 라이트 메시 ── */
.guide-hero {
  background: #ffffff;
  color: var(--text);
  padding: 100px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.guide-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 55% at 8% -10%,  rgba(245,233,212,0.80) 0%, transparent 55%),
    radial-gradient(ellipse 65% 60% at 78%  0%,  rgba(83,58,253,0.50)  0%, transparent 50%),
    radial-gradient(ellipse 50% 42% at 97% -5%,  rgba(234,34,97,0.40)  0%, transparent 45%),
    radial-gradient(ellipse 55% 48% at 45% -6%,  rgba(199,191,253,0.55) 0%, transparent 52%);
}
.guide-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.92) 30%, rgba(255,255,255,0.0) 70%);
}
.guide-hero > * { position: relative; z-index: 1; }

.guide-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #b9b9f9; border-radius: 9999px;
  padding: 5px 16px;
  font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: #4434d4; margin-bottom: 24px;
}
.guide-hero h1 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 700; line-height: 1.1;
  margin-bottom: 20px; color: #0d253d; letter-spacing: -0.04em;
}
.guide-hero h1 em { font-style: normal; color: #533afd; }
.guide-hero p {
  font-size: clamp(15px, 2vw, 17px); color: #64748d;
  max-width: 640px; margin: 0 auto 40px; font-weight: 400; line-height: 1.75;
}
.guide-hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  font-size: 12px; color: #64748d;
}
.guide-hero-meta span { display: flex; align-items: center; gap: 6px; }
.guide-hero-meta i { color: #533afd; }

/* ── TOC ── */
.guide-toc-wrap {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.guide-toc {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.guide-toc-label { font-size: 11px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.guide-toc a {
  font-size: 12px; font-weight: 500; color: #4434d4;
  background: #f0edff; border-radius: 6px; padding: 4px 10px;
  transition: background .15s;
}
.guide-toc a:hover { background: #e8e6ff; }

/* ── SECTIONS ── */
.section { padding: 72px 24px; }
.section.alt { background: var(--bg2); }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em;
  color: #4434d4; background: #f0edff; border-radius: 6px; padding: 4px 10px;
  margin-bottom: 14px;
}
.section-tag.orange { color: #c2410c; background: #fff7ed; }
.section-tag.purple { color: #6d28d9; background: #f5f3ff; }
.section-tag.green  { color: #166534; background: #f0fdf4; }
.section-tag.red    { color: #b91c1c; background: #fef2f2; }
h2.section-title {
  font-size: clamp(22px, 3.5vw, 34px); font-weight: 700; line-height: 1.2;
  margin-bottom: 14px; color: var(--text); letter-spacing: -0.02em;
}
h2.section-title em { font-style: normal; font-weight: 700; color: #533afd; }
.section-sub {
  font-size: 15px; color: var(--muted); margin-bottom: 40px; max-width: 660px; line-height: 1.75;
}

/* ── DEFINITION CARDS ── */
.def-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.def-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.def-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.def-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.def-card.ior::before { background: #533afd; }
.def-card.sor::before { background: #0ea5e9; }
.def-card-abbr {
  font-size: 28px; font-weight: 400; margin-bottom: 4px;
}
.def-card.ior .def-card-abbr { color: #533afd; }
.def-card.sor .def-card-abbr { color: #0ea5e9; }
.def-card-full { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.def-card-desc { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 16px; font-weight: 400; }
.def-card-law {
  font-size: 12px; color: var(--muted); background: var(--bg2);
  border-radius: 6px; padding: 8px 12px;
  display: flex; align-items: flex-start; gap: 6px;
}
.def-card-law i { margin-top: 2px; flex-shrink: 0; color: #533afd; }

/* ── WHY BOX — Stripe 라이트 스타일로 전환 ── */
.why-box {
  background: #f6f9fc;
  border: 1px solid #e3e8ee;
  border-radius: 16px; padding: 36px 40px; margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
.why-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #0d253d; }
.why-box p { font-size: 14px; color: #64748d; line-height: 1.7; font-weight: 400; }
.why-box strong { color: #533afd; font-weight: 500; }
.why-stat-list { display: flex; flex-direction: column; gap: 12px; }
.why-stat {
  background: #ffffff; border: 1px solid #e3e8ee;
  border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 3px rgba(0,55,112,0.06);
}
.why-stat-icon { font-size: 20px; flex-shrink: 0; }
.why-stat-text { font-size: 12px; color: #64748d; line-height: 1.5; }
.why-stat-text strong { display: block; font-size: 13px; color: #0d253d; font-weight: 500; margin-bottom: 2px; }

/* ── FLOW ── */
.flow-list { display: flex; flex-direction: column; gap: 0; }
.flow-item {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 0 20px; position: relative;
}
.flow-item:not(:last-child) .flow-line {
  position: absolute; left: 24px; top: 48px; bottom: 0;
  width: 2px; background: var(--border);
}
.flow-dot {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; flex-shrink: 0;
  position: relative; z-index: 1;
  background: #f0edff; color: #533afd; border: 2px solid #d4d1fe;
  margin-top: 0;
}
.flow-body { padding: 4px 0 32px; }
.flow-title { font-size: 15px; font-weight: 400; margin-bottom: 6px; color: #0d253d; }
.flow-desc { font-size: 13px; color: var(--muted); line-height: 1.7; font-weight: 400; }
.flow-note {
  font-size: 12px; background: #fef9c3; color: #854d0e;
  border-radius: 6px; padding: 6px 10px; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── APPLIES GRID ── */
.applies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.applies-card {
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border);
}
.applies-card.yes { background: #f0fdf4; border-color: #bbf7d0; }
.applies-card.no  { background: #fef2f2; border-color: #fecaca; }
.applies-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 400; margin-bottom: 14px;
}
.applies-card.yes .applies-header { color: #166534; }
.applies-card.no  .applies-header { color: #991b1b; }
.applies-list { display: flex; flex-direction: column; gap: 8px; }
.applies-list li {
  font-size: 13px; color: var(--text);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.6;
  font-weight: 400;
}
.applies-list li i { margin-top: 2px; flex-shrink: 0; font-size: 11px; }
.applies-card.yes .applies-list li i { color: #16a34a; }
.applies-card.no  .applies-list li i { color: #dc2626; }

/* ── RISK TABLE ── */
.risk-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.risk-table th {
  background: var(--bg2); font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.risk-table td { padding: 14px 16px; font-size: 13px; border-top: 1px solid var(--border); vertical-align: top; color: var(--text2); }
.risk-table tr:hover td { background: var(--bg2); }
.risk-badge {
  display: inline-block; font-size: 11px; font-weight: 400; border-radius: 6px;
  padding: 2px 8px; text-transform: uppercase; letter-spacing: .05em;
}
.risk-badge.high   { background: #fef2f2; color: #b91c1c; }
.risk-badge.medium { background: #fff7ed; color: #c2410c; }
.risk-badge.low    { background: #f0fdf4; color: #166534; }

/* ── MYTH BUSTERS ── */
.myth-list { display: flex; flex-direction: column; gap: 16px; }
.myth-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.myth-myth {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; background: #fef2f2; border-bottom: 1px solid #fecaca;
}
.myth-myth i { color: #dc2626; font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.myth-myth span { font-size: 14px; font-weight: 500; color: #7f1d1d; line-height: 1.5; }
.myth-fact {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px;
}
.myth-fact i { color: #16a34a; font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.myth-fact span { font-size: 13px; color: var(--text); line-height: 1.7; font-weight: 400; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: #fff;
  transition: box-shadow 0.15s;
}
.faq-item:hover { box-shadow: 0 4px 12px rgba(83,58,253,0.08); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; font-size: 14px; font-weight: 400; cursor: pointer;
  gap: 12px; color: #0d253d;
}
.faq-q span { flex: 1; }
.faq-q i { color: #533afd; font-size: 13px; flex-shrink: 0; }
.faq-a {
  padding: 0 22px 18px; font-size: 13px; color: var(--muted); line-height: 1.75; font-weight: 400;
}

/* ── COMPARE BANNER ── */
.compare-banner {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0;
  align-items: start;
}
.compare-col { padding: 0 24px; }
.compare-col:first-child { padding-left: 0; }
.compare-col:last-child  { padding-right: 0; }
.compare-divider { background: var(--border); }
.compare-col-header {
  font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.compare-col-header.service { color: #533afd; }
.compare-col-header.guide   { color: #6d28d9; }
.compare-col-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-weight: 400; }
.compare-col-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px; transition: all .15s;
}
.compare-col-link.service { background: #f0edff; color: #533afd; }
.compare-col-link.service:hover { background: #e0dcfe; }
.compare-col-link.guide   { background: #f5f3ff; color: #6d28d9; }
.compare-col-link.guide:hover   { background: #ede9fe; }

/* ── CTA — brand-dark-900 (#1c1e54) ── */
.guide-cta {
  background: #1c1e54;
  color: #fff; text-align: center; padding: 72px 24px;
  position: relative; overflow: hidden;
}
.guide-cta::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(83,58,253,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(234,34,97,0.20) 0%, transparent 55%);
}
.guide-cta > * { position: relative; z-index: 1; }
.guide-cta h2 { font-size: clamp(22px, 4vw, 36px); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em; }
.guide-cta p { font-size: 16px; color: rgba(255,255,255,.72); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; font-weight: 400; line-height: 1.7; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-cta-primary {
  background: #533afd; color: #fff; font-weight: 400;
  font-size: 14px; padding: 12px 26px; border-radius: 9999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s, transform .18s;
  box-shadow: 0 4px 16px rgba(83,58,253,0.4);
}
.btn-cta-primary:hover { background: #4434d4; transform: translateY(-2px); }
.btn-cta-outline {
  border: 1.5px solid rgba(255,255,255,.30); color: rgba(255,255,255,.88);
  font-size: 14px; font-weight: 400; padding: 11px 24px; border-radius: 9999px;
  display: inline-flex; align-items: center; gap: 8px; transition: all .15s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.5); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .def-grid, .applies-grid { grid-template-columns: 1fr; }
  .why-box { grid-template-columns: 1fr; padding: 24px; }
  .compare-banner { grid-template-columns: 1fr; }
  .compare-divider { display: none; }
  .compare-col { padding: 16px 0; border-top: 1px solid var(--border); }
  .compare-col:first-child { padding-top: 0; border-top: none; }
  .guide-hero { padding: 80px 16px 56px; }
  .guide-hero-meta { flex-direction: column; gap: 8px; }
  .section { padding: 52px 16px; }
}
