/* 다이렉트237 — 공통 스타일
   색상은 원본 사이트에서 추출한 블루(#1d67cd)를 기준으로 정리했다. */

:root {
  --blue-50: #eef4fd;
  --blue-100: #d7e5fa;
  --blue-500: #1d67cd;
  --blue-600: #1756ad;
  --blue-700: #123f7d;
  --navy: #0f2340;
  --ink: #16202e;
  --gray-600: #5b6675;
  --gray-400: #8e99a8;
  --gray-200: #dfe4ea;
  --gray-100: #eef1f5;
  --gray-50: #f7f9fb;
  --white: #fff;
  --accent: #ff7a1a;

  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 35, 64, .06), 0 8px 24px rgba(15, 35, 64, .07);
  --shadow-lg: 0 2px 6px rgba(15, 35, 64, .08), 0 18px 48px rgba(15, 35, 64, .12);

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ───────── 헤더 ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.5px;
}
.brand-text { font-weight: 700; font-size: 18px; letter-spacing: -.4px; color: var(--navy); }
.brand-text b { color: var(--blue-500); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--gray-600); text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--gray-100); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--blue-500); background: var(--blue-50); }
.site-nav a.nav-badge::before {
  content: 'NEW'; display: inline-block; margin-right: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 4px;
  vertical-align: 1px;
}
.site-nav a.nav-cta {
  background: var(--blue-500); color: #fff; padding: 9px 16px;
}
.site-nav a.nav-cta:hover { background: var(--blue-600); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 10px;
  background: none; border: 1px solid var(--gray-200); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--gray-200);
    padding: 12px 16px 18px; margin: 0;
    box-shadow: var(--shadow); display: none;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px; font-size: 16px; }
  .site-nav a.nav-cta { text-align: center; margin-top: 6px; }
}

/* ───────── 섹션 공통 ───────── */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--gray-50); }

h1, h2, h3 { line-height: 1.35; letter-spacing: -.5px; margin: 0 0 16px; color: var(--navy); }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; }
p { margin: 0 0 14px; }

.lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--gray-600); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--blue-500);
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 640px; }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { background: #fff; color: var(--blue-500); border-color: var(--blue-100); }
.btn-outline:hover { border-color: var(--blue-500); background: var(--blue-50); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-group { justify-content: center; }

/* ───────── 히어로 ───────── */
.hero {
  position: relative; padding: 96px 0 88px;
  background:
    radial-gradient(1000px 460px at 78% -12%, var(--blue-100), transparent 62%),
    linear-gradient(180deg, var(--blue-50), #fff 72%);
  border-bottom: 1px solid var(--gray-200);
}
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 52ch; }
.hero .btn-group { margin-top: 28px; }

/* ───────── 카드 ───────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.tips { counter-reset: tip; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tips li {
  counter-increment: tip; position: relative;
  padding: 16px 18px 16px 56px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink);
}
.tips li::before {
  content: counter(tip); position: absolute; left: 18px; top: 15px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-500); font-size: 13px; font-weight: 800;
}

/* ───────── 보험사 비교 그리드 ───────── */
.insurers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.insurer {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.insurer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50);
}
.insurer-head h3 { margin: 0; font-size: 17px; }
.insurer-logo { max-height: 26px; width: auto; }
.insurer-tel {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--blue-500); text-decoration: none;
  background: var(--blue-50); border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}
/* 대표번호가 둘 이상인 보험사용 */
.insurer-tels { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
/* 링크는 버튼이 아닌 텍스트 링크로 표시한다 — 항목이 많아 버튼이면 시선이 분산된다 */
.insurer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 18px 20px; margin: 0; }
.insurer-links a {
  font-size: 15px; font-weight: 600; color: var(--blue-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--blue-100);
}
.insurer-links a:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.insurer-links .muted { font-size: 15px; font-weight: 500; color: var(--gray-400); }

/* ───────── 폼 ───────── */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field .req { color: #d92d20; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--gray-400); }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--gray-600); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e9f7ef; color: #106b35; }
.form-msg.err { display: block; background: #fdecea; color: #a4262c; }

/* ───────── 블로그 ───────── */
.post-list { display: grid; gap: 16px; }
.post-item {
  display: block; padding: 24px 26px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.post-item:hover { border-color: var(--blue-500); box-shadow: var(--shadow-lg); }
.post-item h3 { margin-bottom: 6px; color: var(--navy); }
.post-meta { font-size: 13px; color: var(--gray-400); }

.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: clamp(20px, 2.6vw, 25px); margin-top: 40px; }
.article .qa { margin: 14px 0 0; padding: 18px 20px; border-radius: var(--radius-sm); }
.article .qa.q { background: var(--gray-50); border: 1px solid var(--gray-200); }
.article .qa.a { background: var(--blue-50); border: 1px solid var(--blue-100); }
.article .qa strong { display: block; margin-bottom: 6px; color: var(--blue-700); }

/* ───────── 고지 문구 ───────── */
.disclaimer { background: var(--gray-50); border-top: 1px solid var(--gray-200); padding: 34px 0; }
.disclaimer p { font-size: 12px; line-height: 1.75; color: var(--gray-400); margin: 0 0 10px; }
.disclaimer .codes { font-size: 11px; color: var(--gray-400); }
.disclaimer .codes span { display: inline-block; margin: 0 10px 4px 0; }

/* ───────── 푸터 ───────── */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 46px 0 38px; }
.foot-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -.4px; }
.foot-brand b { color: #6fa8f5; }
.foot-info p { margin: 0 0 4px; font-size: 14px; }
.site-footer a { color: #b9c6d8; }
.copy { margin: 20px 0 0; font-size: 13px; color: #7f90a8; }

/* ───────── 접근성 ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
