/* ──────────────────────────────────────────────────────────────
   PAYMAX 가맹점 성장지원센터 (biz-landing-a)
   레퍼런스: paymax.dbcart.net — 블루/크림 라운드 카드, 단일 컬럼
─────────────────────────────────────────────────────────────── */

:root {
  --blue: #2f6bff;
  --blue-deep: #1d3f8f;
  --navy: #1e2b4d;
  --sky: #e8f1fd;
  --sky-soft: #f2f7fe;
  --cream: #fdf4e3;
  --cream-soft: #fffaf0;
  --orange: #f59e0b;
  --gold: #b47d1e;
  --purple: #8b5cf6;
  --red: #ef4444;
  --green: #16a34a;
  --text: #3a4356;
  --line: #e3e8f0;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  word-break: keep-all;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }


/* ── 헤더 ─────────────────────────────────────────────────── */
.gnb { border-bottom: 1px solid var(--line); background: #fff; }
.gnb-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.gnb-logo {
  font-size: 22px; font-weight: 900; letter-spacing: -0.5px;
  font-style: italic; text-decoration: none;
}
.gnb-logo b { color: var(--navy); }
.gnb-logo em { color: var(--blue); }
.gnb-sub { font-size: 12px; color: #8a93a6; }

/* ── 히어로 ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #f2f6fb 0%, #e7eef7 60%, #dce8f5 100%);
  padding-bottom: 40px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px;
  align-items: center; padding-top: 56px; padding-bottom: 16px;
}
.hero-eyebrow { font-size: 18px; font-weight: 600; color: var(--navy); }
.hero-logo {
  margin: 6px 0 2px; font-size: 64px; font-weight: 900;
  font-style: italic; letter-spacing: -2px; line-height: 1.15;
}
.hero-logo b { color: var(--navy); }
.hero-logo em { color: var(--blue); }
.hero-slogan {
  font-size: 30px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.hero-desc { font-size: 16px; }
.hero-checks {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 6px 18px; margin-top: 18px;
}
.hero-checks li { font-size: 16px; font-weight: 800; color: var(--navy); }
.hero-checks li::before { content: "✓ "; color: var(--blue); }

/* POS 단말기 일러스트 + 응원 문구 */
.hero-art { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pos { width: min(370px, 68%); height: auto; flex: none; font-family: inherit; }
.pos-lines { display: grid; gap: 8px; font-size: 16px; font-weight: 800; color: var(--navy); }
.pos-lines .accent { color: var(--blue); }

/* 특징 바 */
.hero-features {
  list-style: none; display: flex;
  background: #fff; border-radius: 16px; padding: 22px 10px;
  box-shadow: 0 10px 24px rgba(30, 63, 143, 0.08);
}
.hero-features li {
  flex: 1; display: flex; gap: 10px; align-items: flex-start;
  justify-content: center; padding: 0 16px;
  border-left: 1px solid var(--line);
}
.hero-features li:first-child { border-left: 0; }
.hf-ico { font-size: 20px; }
.hero-features b { display: block; font-size: 16px; color: var(--navy); }
.hero-features small { font-size: 13px; color: #8a93a6; }

/* ── 섹션 카드 공통 ───────────────────────────────────────── */
.card { padding: 12px 0; }
.card .card-inner {
  border-radius: var(--radius); padding: 40px 32px;
  /* 문구(좌) / 시각자료(우) 2단 배치 */
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 24px 32px; align-items: center;
  /* 휴대폰 일러스트 섹션(SVG 320px + 상하 패딩)과 같은 높이로 통일 */
  min-height: 400px;
}
.card--blue .card-inner { background: var(--sky); }
.card--cream .card-inner { background: var(--cream-soft); }
.card--cream + .card--cream .card-inner { background: var(--cream); }

.tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px;
}
.tag--blue { background: var(--blue); }
.tag--gold { background: var(--gold); }
.tag--orange { background: var(--orange); }

.card h2 {
  font-size: 32px; line-height: 1.35; font-weight: 900;
  letter-spacing: -0.5px; color: var(--navy); margin-bottom: 12px;
}
.card h2 .down { color: var(--blue); }
.card h2 .up { color: var(--red); }
.card h2 .brand { color: var(--blue); }
.card h2 .orange { font-style: normal; color: var(--orange); }
.card-copy p { font-size: 16px; }

/* 자금 지원: SVG 휴대폰 일러스트 */
.ad-art { display: flex; justify-content: center; }
.ad-art svg {
  width: min(380px, 100%); height: auto;
  font-family: inherit;
}

/* 운영자금: CSS 카드단말기 일러스트 + 최대 지원 금액 카운트업 */
.fund-art { display: grid; gap: 22px; justify-items: center; }
.fund-amount { text-align: center; }
.fund-amount-label { font-size: 14px; font-weight: 700; color: var(--gold); }
.fund-amount-num { font-size: 40px; font-weight: 900; color: var(--navy); letter-spacing: -1px; }
.fund-amount-num small { font-size: 20px; font-weight: 800; margin-left: 2px; }
.terminal { position: relative; margin: 0 auto; width: 170px; }
.terminal-receipt {
  width: 110px; height: 54px; margin: 0 auto -6px;
  background:
    repeating-linear-gradient(#fff 0 10px, #e8edf5 10px 12px);
  border: 1px solid #dfe4ee; border-radius: 6px 6px 0 0;
}
.terminal-body {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #35405c, #232c44);
  border-radius: 16px; padding: 16px 18px 20px;
  box-shadow: 0 14px 26px rgba(30, 63, 143, 0.25);
}
.terminal-screen {
  background: #2ecc71; color: #fff; text-align: center;
  font-weight: 900; font-size: 16px; padding: 12px 0;
  border-radius: 8px; letter-spacing: 1px;
}
.terminal-keys {
  margin-top: 12px; height: 52px;
  background:
    repeating-linear-gradient(90deg, #4a566f 0 26%, transparent 26% 37%),
    repeating-linear-gradient(#4a566f 0 40%, transparent 40% 60%);
  border-radius: 6px;
}
.terminal-tag {
  position: absolute; right: -66px; top: 30%;
  background: var(--gold); color: #fff; font-size: 12px; font-weight: 700;
  padding: 8px 12px; border-radius: 12px; line-height: 1.35; text-align: center;
}

/* 사장님 고민: 페인포인트 카드 (biz-landing why 섹션 이식) */
/* 카드형 패널: 세로 캐러셀 — 3장쯤 보이되 중앙 카드만 선명하고
   위아래는 흐릿, 드래그/스크롤하면 중앙에 온 카드가 선명해진다 */
.worry-feed {
  /* 섹션 안쪽 패딩(상하 40px)을 음수 마진으로 뚫고 섹션 위아래 끝까지 채운다 */
  margin: -40px 0; height: 540px; overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
  /* 후기 피드처럼 위아래 가장자리를 살짝 페이드 처리 */
  -webkit-mask: linear-gradient(transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(transparent, #000 9%, #000 91%, transparent);
}
.worry-feed.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.worry-feed::-webkit-scrollbar { display: none; }
.worry-feed:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* 첫/끝 카드도 중앙에 올 수 있게 위아래 여백을 둔다 */
.worry-list { list-style: none; padding: 205px 0; }
/* biz-landing why-card 스타일: 짙은 카드 + 중앙 카드만 주황 강조 (왼쪽 띠 없음) */
.worry-list li {
  background: var(--navy); border-radius: 12px; padding: 32px 30px;
  font-size: 18px; font-weight: 500; line-height: 1.7; color: #fff;
  margin-bottom: 16px;
  scroll-snap-align: center;
  transition: background 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
}
/* JS가 캐러셀을 켠 뒤에만 흐림 처리 (JS 없으면 전부 선명) */
.worry-feed.is-carousel li { opacity: 0.35; transform: scale(0.96); }
.worry-feed.is-carousel li.is-center {
  opacity: 1; transform: scale(1);
  background: var(--orange);
}

/* 함께 성장: 정사각형 카드 1 → 2 → 3이 교대로 나타나며 무한 반복 */
.grow-list {
  list-style: none; display: grid; place-items: center;
  counter-reset: growstep;
}
.grow-list li {
  grid-area: 1 / 1; /* 세 카드를 같은 자리에 겹쳐 두고 번갈아 보여준다 */
  width: min(280px, 100%); aspect-ratio: 1 / 1;
  background: #fff; border-radius: 20px;
  box-shadow: 0 10px 24px rgba(30, 63, 143, 0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; font-size: 14px;
  position: relative;
  opacity: 0;
  animation: grow-cycle 9s ease-in-out infinite;
}
.grow-list li:nth-child(2) { animation-delay: 3s; }
.grow-list li:nth-child(3) { animation-delay: 6s; }
@keyframes grow-cycle {
  0% { opacity: 0; transform: scale(0.95); }
  5%, 28% { opacity: 1; transform: scale(1); }
  33%, 100% { opacity: 0; transform: scale(0.95); }
}
/* 각 항목 좌상단 1·2·3 번호 배지 */
.grow-list li::before {
  counter-increment: growstep; content: counter(growstep);
  position: absolute; top: 16px; left: 16px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 800; line-height: 24px;
}
.grow-list li > svg { width: 128px; height: 128px; margin: 0 auto 6px; }
.grow-list b { font-size: 17px; color: var(--blue-deep); }
.grow-list small { color: #8a93a6; }



/* ── 사용자 후기: 채팅 말풍선 실시간 피드 ─────────────────── */
/* 목록 두 벌을 -50%까지 굴려 이음매 없이 반복 (biz-landing-4 피드 방식) */
.chat {
  height: 420px; overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
.chat-roll { animation: chat-roll 28s linear infinite; }
.chat:hover .chat-roll { animation-play-state: paused; }
@keyframes chat-roll {
  to { transform: translateY(-50%); }
}
.chat-msg {
  display: flex; gap: 10px; align-items: flex-end;
  max-width: 88%; margin-bottom: 14px;
}
.chat-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  font-size: 19px; box-shadow: 0 2px 8px rgba(30, 63, 143, 0.1);
}
.chat-body b {
  display: block; font-size: 13px; font-weight: 600;
  color: #8a93a6; margin-bottom: 4px;
}
.chat-body p {
  background: #fff; color: var(--navy);
  border-radius: 4px 16px 16px 16px; padding: 10px 14px;
  font-size: 15px; line-height: 1.55;
  box-shadow: 0 2px 8px rgba(30, 63, 143, 0.08);
}
/* ── 손그림 마크 (biz-landing 이식: 밑줄/원 낙서 그리기) ──── */
.mark { position: relative; display: inline-block; }
.mark svg { position: absolute; pointer-events: none; overflow: visible; }
.mark svg path,
.mark svg ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.mark--underline svg { left: -2%; width: 104%; bottom: 0.06em; height: 0.22em; }
.mark--circle svg { left: -0.3em; top: -0.12em; width: calc(100% + 0.6em); height: calc(100% + 0.24em); }
.mark--blue svg { color: var(--blue); }
.mark--gold svg { color: var(--gold); }
.mark--orange svg { color: var(--orange); }
/* 스크롤 트리거 그리기 */
.mark.is-visible svg :is(path, ellipse) {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s ease 0.45s;
}
/* 로드 트리거 그리기 (히어로) */
.mark--auto svg :is(path, ellipse) {
  animation: markDraw 0.7s ease 1.1s forwards;
}
@keyframes markDraw { to { stroke-dashoffset: 0; } }

/* ── 시각자료 애니메이션 ──────────────────────────────────── */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bob-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 히어로: POS 단말기 둥실 + 응원 문구 순차 등장 */
.pos { animation: bob 4s ease-in-out infinite; }
.pos-lines p { animation: fade-up 0.6s ease-out both; }
.pos-lines p:nth-child(2) { animation-delay: 0.35s; }
.pos-lines p:nth-child(3) { animation-delay: 0.7s; }

/* 자금 지원: 휴대폰 둥실 + 말풍선 엇박 둥실 */
.ad-art svg { animation: bob 5s ease-in-out infinite; }
.ad-art .bubble { animation: bob-sm 3.2s ease-in-out infinite; }
.ad-art .bubble:nth-of-type(2) { animation-delay: 0.5s; }
.ad-art .bubble:nth-of-type(3) { animation-delay: 1s; }

/* 운영자금: 영수증 인쇄되듯 들썩 */
.terminal-receipt { animation: bob-sm 2.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .pos, .pos-lines p, .ad-art svg, .ad-art .bubble,
  .terminal-receipt, .worry-list,
  .chat-roll { animation: none; }
  /* 카드 교대 애니메이션 대신 세 카드를 세로로 모두 보여준다 */
  .grow-list { gap: 12px; }
  .grow-list li { grid-area: auto; animation: none; opacity: 1; }
  .mark svg :is(path, ellipse) {
    stroke-dashoffset: 0 !important; animation: none; transition: none;
  }
}

/* ── 푸터 ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0; font-size: 12px; color: #8a93a6; text-align: center;
}

/* ── 모바일 ───────────────────────────────────────────────── */
@media (max-width: 680px) {
  .gnb-sub { font-size: 11px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-logo { font-size: 44px; }
  .hero-slogan { font-size: 22px; }
  .hero-art { flex-direction: column; margin-top: 10px; }
  .hero-features { flex-direction: column; gap: 14px; padding: 20px 16px; }
  .hero-features li { border-left: 0; justify-content: flex-start; padding: 0; }
  .card .card-inner { padding: 32px 20px; grid-template-columns: 1fr; min-height: 0; }
  .card h2 { font-size: 24px; }
  .terminal { margin-right: 76px; }
  /* 1단 배치에서는 위 문구와 간격을 두고, 아래만 섹션 끝까지 붙인다 */
  .worry-feed { margin: 20px 0 -32px; height: 500px; }
  .worry-list { padding: 195px 0; }
}
