/* =============================================
   pay02.css — 전자계약서 서비스
   Point Color: Blue (#1A6FE8)
   max-width: 1240px
   ============================================= */

/* ── Reset & Variables ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary : #1A6FE8;
  --blue-dark    : #0D4FBF;
  --blue-light   : #EBF2FE;
  --blue-mid     : #5A9AF0;
  --text-dark    : #111827;
  --text-mid     : #374151;
  --text-muted   : #6B7280;
  --bg           : #F7F9FC;
  --white        : #ffffff;
  --border       : #E5EAF2;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 17px;
}


/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0D2F6E 0%, #1A6FE8 60%, #5A9AF0 100%);
  padding: 64px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-badge span { font-size: 16px; }

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  font-weight: 300;
}


/* ── MAIN CONTENT ── */
.content {
  padding: 56px 32px 72px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── SECTION BLOCK ── */
.section-block {
  margin-bottom: 60px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}


/* ── 전자계약이란: 이미지 + 텍스트 레이아웃 ── */
.info-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 36px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(26,111,232,0.06);
}

.info-image {
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 32px;
}

/* 실제 이미지가 들어올 경우를 대비 */
.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--blue-primary);
}

.img-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.6;
}

.img-placeholder span {
  font-size: 13px;
  color: var(--blue-mid);
  font-weight: 500;
}

.info-text {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.info-text p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-mid);
}

.info-text strong {
  color: var(--blue-primary);
  font-weight: 600;
}


/* ── 전자계약 장점: 4칸 그리드 ── */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.advantage-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(26,111,232,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-mid));
  border-radius: 18px 18px 0 0;
}

.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,111,232,0.12);
}

.adv-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.adv-icon svg {
  width: 24px; height: 24px;
  color: var(--blue-primary);
}

.advantage-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}


/* ── 효성CMS+ 전자계약 카드 ── */
.cms-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 2px 20px rgba(26,111,232,0.06);
  position: relative;
  overflow: hidden;
}

.cms-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-mid));
  border-radius: 20px 20px 0 0;
}

.cms-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.cms-text p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-mid);
}

.cms-text strong {
  color: var(--blue-primary);
  font-weight: 600;
}

/* 4가지 기능 pill 그리드 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--blue-light);
  border-radius: 16px;
  border: 1.5px solid #d0e4fb;
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}

.feature-pill:hover {
  background: #daeaff;
  transform: translateY(-2px);
}

.pill-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(26,111,232,0.12);
}

.pill-icon svg {
  width: 24px; height: 24px;
  color: var(--blue-primary);
}

.feature-pill span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.4;
}


/* ── CTA BUTTON ── */
.cta-wrap {
  text-align: center;
  padding-top: 8px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  border: none;
  border-radius: 999px;
  padding: 20px 56px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(26,111,232,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(26,111,232,0.45);
}

.cta-btn svg { width: 22px; height: 22px; }


/* ══════════════════════════════════════════
   RESPONSIVE — 모바일 (768px 이하)
══════════════════════════════════════════ */
@media (max-width: 768px) {

  body { font-size: 15px; }

  .hero { padding: 48px 0 64px; }
  .hero-inner { padding: 0 20px; }
  .hero-desc { font-size: 15px; }

  .content { padding: 36px 20px 56px; }

  .section-title { font-size: 19px; }

  /* 이미지+텍스트: 세로 전환 */
  .info-layout {
    grid-template-columns: 1fr;
  }

  .info-image {
    min-height: 200px;
  }

  .info-text {
    padding: 24px;
  }

  .info-text p { font-size: 14px; }

  /* 장점 카드: 2칸 */
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .advantage-card { padding: 22px 18px; }
  .advantage-card p { font-size: 13px; }

  /* CMS 카드 */
  .cms-card { padding: 24px 20px; }
  .cms-text p { font-size: 14px; }

  /* 기능 pill: 2칸 */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-btn { font-size: 15px; padding: 16px 40px; }
}

@media (max-width: 480px) {
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
