/* ==========================================================================
   바로현금 — 신용카드 현금화 정보 가이드
   디자인 토큰을 먼저 정의하고, 그 아래에 컴포넌트를 배치했습니다.
   ========================================================================== */

:root {
  --ink: #0e1116;
  --ink-2: #3a4049;
  --muted: #656b75;
  --line: #e3dfd6;
  --line-strong: #d5d0c4;
  --paper: #f7f5f0;
  --paper-2: #fbfaf7;
  --card: #ffffff;
  --accent: #2b4eff;
  --accent-dark: #1a37d6;
  --accent-soft: #e9edff;
  --mint: #00c2a8;
  --mint-soft: #e2fbf6;
  --danger: #d9483b;
  --danger-soft: #fdeceb;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.05), 0 10px 26px -18px rgba(14, 17, 22, 0.35);
  --shadow-lg: 0 40px 80px -50px rgba(14, 17, 22, 0.55);

  --maxw: 1160px;
  --gutter: 24px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id],
main > span[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

/* ---------- 상단 고지 바 ---------- */
.notice-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 20px;
  background: var(--ink);
  color: #f2f0ea;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.5;
}

.ribbon-dot {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(0, 194, 168, 0.18);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 240, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-text small {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover { background: rgba(14, 17, 22, 0.06); color: var(--ink); }

.nav a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-open .nav-toggle span:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(43, 78, 255, 0.85);
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover { background: rgba(14, 17, 22, 0.04); }

.btn-kakao-yellow {
  background: #fee500;
  color: #191600;
  border: 1px solid rgba(25, 22, 0, 0.12);
  box-shadow: 0 10px 24px -14px rgba(180, 150, 0, 0.9);
}

.btn-kakao-yellow:hover {
  background: #f7dc00;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 92px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background-image:
    linear-gradient(to right, rgba(14, 17, 22, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 17, 22, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 25%, transparent 78%);
}

.hero::after {
  background:
    radial-gradient(40% 42% at 88% 12%, rgba(43, 78, 255, 0.16), transparent 70%),
    radial-gradient(34% 40% at 6% 82%, rgba(0, 194, 168, 0.13), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 60px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.breadcrumb { margin-bottom: 22px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker-idx {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.hero h1 .mark {
  position: relative;
  isolation: isolate;
  color: var(--accent);
  white-space: nowrap;
}

.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 0.06em;
  height: 0.3em;
  background: var(--accent-soft);
  border-radius: 3px;
  z-index: -1;
}

.lede {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.74;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.micro {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Hero 비교 패널 ---------- */
.hero-panel {
  margin: 0;
  padding: 26px 26px 22px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-note { font-size: 11.5px; color: var(--muted); }

.panel-list { display: grid; gap: 20px; }

.panel-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-row-top strong { font-size: 15.5px; letter-spacing: -0.02em; }

.badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.badge-fast {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.badge-good {
  border-color: transparent;
  background: var(--mint-soft);
  color: #00796b;
}

.panel-list p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
}

.panel-bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.06);
  overflow: hidden;
}

.panel-bar i {
  display: block;
  width: var(--w, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fa0ff, var(--accent));
}

.panel-list li:nth-child(2) .panel-bar i { background: linear-gradient(90deg, #a8b4d8, #5d6f9c); }
.panel-list li:nth-child(3) .panel-bar i { background: linear-gradient(90deg, #6fe3d2, var(--mint)); }

.hero-panel figcaption {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 0;
  text-align: center;
  border-left: 1px solid var(--line);
}

.strip-item:first-child { border-left: 0; }

.strip-num {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.strip-label { font-size: 13px; color: var(--muted); }

/* ---------- Section shell ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.section-head { max-width: 40rem; margin-bottom: 44px; }

.section-head h2 {
  font-size: clamp(29px, 3.1vw, 40px);
  letter-spacing: -0.04em;
}

.section-desc {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-2);
}

.split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: start;
}

.split .section-head { margin-bottom: 0; position: sticky; top: 104px; }

/* ---------- Prose ---------- */
.prose p { font-size: 16.5px; line-height: 1.78; }
.prose p + p { margin-top: 18px; }

.callout {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
}

.callout-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.callout p + p { margin-top: 8px; }
.callout p:last-child { font-size: 15.5px; line-height: 1.7; }

/* ---------- TOC ---------- */
.toc {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ol {
  counter-reset: toc;
  display: grid;
  gap: 8px;
}

.toc li {
  counter-increment: toc;
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -30px rgba(14, 17, 22, 0.4); }

.card-idx {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card h3 { font-size: 20px; letter-spacing: -0.03em; }

.card p { font-size: 15px; line-height: 1.72; color: var(--ink-2); }

.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.card-accent {
  background: var(--ink);
  border-color: var(--ink);
}

.card-accent .card-idx { color: rgba(255, 255, 255, 0.55); }
.card-accent h3 { color: #fff; }
.card-accent p { color: rgba(255, 255, 255, 0.74); }
.card-accent .card-link { color: #9db0ff; }

/* ---------- 바로현금 기준 ---------- */
.pros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pro {
  padding: 28px 26px 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.pro-kicker {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.pro h3 { font-size: 19px; line-height: 1.32; }

.pro p { margin-top: 10px; font-size: 14.5px; line-height: 1.72; color: var(--ink-2); }

/* ---------- 비교 표 ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare caption {
  padding: 18px 24px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.compare th,
.compare td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.compare thead th {
  background: var(--paper-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.compare tbody th {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

.compare tbody tr:hover { background: rgba(43, 78, 255, 0.03); }

.rate {
  color: var(--accent-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 계산 예시 ---------- */
.calc {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px dashed var(--line-strong);
}

.calc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.calc-head h3 { font-size: 18px; }

.calc-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.calc-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.calc-formula span {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.calc-formula strong { color: var(--accent-dark); font-size: 17px; }

.calc-note {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 두 번째 비교 표 ---------- */
.compare-block { margin-top: 46px; }

.compare-title {
  margin-bottom: 16px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.compare-caption {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.danger-text { color: var(--danger); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
}

.step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: var(--line-strong);
}

.step:last-child::after { display: none; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 { font-size: 18px; }

.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- 경고 밴드 ---------- */
.band {
  padding: 64px 0;
  background: var(--ink);
  color: #f2f0ea;
}

.band-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
}

.band-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  padding-top: 6px;
}

.band-title {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.03em;
  color: #fff;
}

.band-text {
  max-width: 46rem;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: rgba(242, 240, 234, 0.88);
}

.band-text strong { color: #fff; }

/* ---------- 체크리스트 ---------- */
.checklist { display: grid; gap: 0; }

.checklist li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.checklist li:first-child { border-top: 0; padding-top: 0; }

.check-box {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 8px;
  background: var(--mint-soft);
  border: 1px solid rgba(0, 194, 168, 0.4);
}

.check-box::after {
  content: "";
  position: absolute;
  left: 8px; top: 5px;
  width: 6px; height: 11px;
  border-right: 2px solid #00a38c;
  border-bottom: 2px solid #00a38c;
  transform: rotate(42deg);
}

.checklist strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.checklist p {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 104px; }

.faq-list { display: grid; gap: 12px; }

details {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

details[open] { border-color: var(--line-strong); }

summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  letter-spacing: -0.02em;
}

summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  margin-left: auto;
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 1.6px;
  background: var(--ink-2);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq-body { padding: 0 22px 22px; }

.faq-body p { font-size: 15.5px; line-height: 1.74; color: var(--ink-2); }

/* ---------- 카카오톡 상담 ---------- */
.kakao-section { padding-block: 0; }

.kakao-banner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffe812 0%, #ffd400 100%);
  color: #1a1600;
  box-shadow: 0 30px 60px -42px rgba(176, 140, 0, 0.95);
}

.kakao-banner-main { min-width: 0; }

.kakao-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(26, 22, 0, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.kakao-banner h2 {
  font-size: clamp(25px, 2.8vw, 34px);
  letter-spacing: -0.035em;
  color: #1a1600;
}

.kakao-banner p {
  max-width: 34rem;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(26, 22, 0, 0.78);
}

.kakao-banner-side { display: grid; justify-items: center; gap: 12px; }

.btn-kakao {
  width: 100%;
  background: #191600;
  color: #fee500;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7);
}

.btn-kakao:hover { background: #000; transform: translateY(-1px); }

.kakao-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.kakao-banner .kakao-note {
  max-width: none;
  margin-top: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(26, 22, 0, 0.78);
  text-align: center;
}

/* 플로팅 카카오톡 버튼 */
.kakao-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  background: #fee500;
  color: #191600;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 34px -16px rgba(14, 17, 22, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kakao-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(14, 17, 22, 0.6);
}

.kakao-fab-icon { width: 22px; height: 22px; fill: #191600; flex: none; }

/* ---------- 첫 방문 팝업 ---------- */
body.popup-open { overflow: hidden; }

.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.popup[hidden] { display: none; }

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 22, 0.6);
  backdrop-filter: blur(4px);
}

.popup-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 40px 90px -35px rgba(14, 17, 22, 0.65);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 17, 22, 0.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.popup-close:hover { background: rgba(14, 17, 22, 0.8); }

.popup-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px 24px 0 0;
}

.popup-body {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
  text-align: center;
}

.popup-cta { width: 100%; }

.popup-today {
  padding: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.popup-today:hover { color: var(--ink); }

@media (max-width: 480px) {
  .popup { padding: 12px; }
  .popup-card { width: 100%; max-height: calc(100vh - 24px); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand { display: flex; gap: 13px; }

.footer-brand strong { font-size: 17px; color: var(--ink); }

.footer-brand p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a { font-size: 14.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.footer-bottom p { font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.footer-bottom .copyright { font-size: 12px; }

/* ---------- 등장 효과 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero-grid { gap: 40px; }
  .hero { padding: 60px 0 80px; }
  .nav a { padding: 9px 9px; font-size: 14px; }
}

@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split .section-head { position: static; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-inner { position: relative; }
  .nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -34px rgba(14, 17, 22, 0.6);
  }
  .nav-open .nav a { padding: 13px 14px; border-radius: 12px; font-size: 16px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: clamp(34px, 7vw, 46px); }
  .hero-panel { max-width: 540px; }

  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 34px; }

  .cards,
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }

  .pros { grid-template-columns: 1fr; }

  .kakao-banner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 26px;
  }

  .kakao-banner-side { justify-items: stretch; }

  .band-inner { grid-template-columns: 1fr; gap: 12px; }
  .band { padding: 48px 0; }

  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-grid .section-head { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }

  .notice-bar { font-size: 11.5px; padding: 8px 14px; }

  .hero { padding: 44px 0 60px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }

  /* 좁은 화면에서는 강조 구문을 줄바꿈 허용 (가로 스크롤 방지) */
  .hero h1 .mark { white-space: normal; }
  .hero h1 .mark::after { display: none; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .hero-panel { padding: 20px 18px 18px; border-radius: 22px; }

  .strip-num { font-size: 21px; }

  .card, .step, .calc { padding: 24px 20px; }
  .compare th, .compare td { padding: 14px 16px; }
  .compare caption { padding: 14px 16px; }

  /* 비교 표 → 카드형 스택 (모바일에서 금리 열이 잘리지 않도록) */
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .compare { min-width: 0; font-size: 14.5px; }

  .compare caption {
    display: block;
    padding: 0 4px 14px;
    border-bottom: 0;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .compare thead { display: none; }
  .compare tbody { display: block; }

  .compare tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
  }

  .compare tbody tr:hover { background: var(--card); }

  .compare tbody th {
    display: block;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
    font-size: 16.5px;
  }

  .compare tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0 0;
    border-bottom: 0;
    text-align: right;
  }

  .compare tbody td::before {
    content: attr(data-label);
    flex: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
  }

  .toc { padding: 18px; }
  .callout { padding: 18px; }

  .sources { grid-template-columns: 1fr; }

  .kakao-fab {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .kakao-fab-text { display: none; }
  .kakao-fab-icon { width: 26px; height: 26px; }

  .site-footer { padding-bottom: 92px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Motion / Print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .notice-bar, .site-header, .nav-toggle, .hero-actions, .skip-link,
  .kakao-fab, .kakao-section { display: none; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
  .section { padding: 28px 0; }
  .band { background: #fff; color: var(--ink); }
  .band-title, .band-text, .band-text strong { color: var(--ink); }
  a { text-decoration: underline; }
}
