/* =========================================================
   카택스 유류비 정산 랜딩페이지 (Figma node 2276:13089 그대로 구현)
   Font: Pretendard
========================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --blue: #4585ff;
  --blue-strong: #057afa;
  --blue-600: #3182ce;
  --indigo: #5a67d8;
  --ink: #1a2638;
  --ink-2: #2d3748;
  --gray-700: #4a5568;
  --gray-600: #6d7582;
  --gray-500: #718096;
  --line: #e2e8f0;

  --card-blue: #ebf5ff;
  --card-purple: #f2efff;
  --card-gray: #f7fafc;
  --card-cream: #fcfae8;
  --label-slate: #718096;
  --label-blue: #3182ce;

  --container: 1120px;
  --grad-signup: linear-gradient(113deg, #21aaff 0%, #6b72ff 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* 가로 넘침(화면 잘림) 방지 */
}

img { display: block; max-width: 100%; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 24px);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-pill { height: 72px; padding: 0 26px; border-radius: 1000px; }
.btn-contact { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.16); min-width: 228px; }
.btn-signup  { background: var(--grad-signup); color: #fff; min-width: 228px; }
.btn-case-outline {
  background: #fff; color: var(--blue-600);
  border: 2px solid #4495e0;
  border-radius: 12px; height: 72px; padding: 0 28px;
}
.btn-case-dark {
  background: transparent; color: #f9fafb;
  border: 2px solid #718096;
  border-radius: 12px; height: 72px; padding: 0 28px;
}

/* ---------- 버튼 호버 상태 (Figma 6660/6669: 색상 유지, 상태값만 변경) ---------- */
.btn { transition: background-color .15s ease, background-image .15s ease, border-color .15s ease, box-shadow .15s ease; }
/* 도입 문의하기: 호버 시 파란 테두리(#4585ff) 추가 — 기본 투명 테두리로 레이아웃 밀림 방지 */
.btn-contact { border: 2px solid transparent; }
.btn-contact:hover { border-color: #4585ff; }
/* 무료 절감하기 / 2주 무료 체험하기(그라데이션): 호버 시 그라데이션 진하게 */
.btn-signup:hover { background: linear-gradient(113deg, #0f7fff 0%, #7c3eff 100%); }
/* 2주 무료 체험 바로하기(아웃라인): 호버 시 옅은 회색 채움 (테두리·글씨색 유지) */
.btn-case-outline:hover { background: #edf2f7; }
/* 고객 성공사례 더보기(dark): 호버 시 검정 20% 오버레이 채움 (테두리·글씨 유지) */
.btn-case-dark:hover { background: rgba(0,0,0,0.2); }

/* ---------- Section title ---------- */
.section { padding-block: 100px; }
.sec-title {
  text-align: center;
  font-size: clamp(26px, 3.1vw, 60px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-2);
  margin-bottom: 64px;
}
.hl { color: var(--blue-strong); }

/* ---------- GNB ---------- */
.gnb {
  background: #1d1d1d;
  border-bottom: 1px solid #4a5568;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.gnb-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gnb-text { color: #edf2f7; font-weight: 500; font-size: clamp(12px, 1.094vw, 21px); }
.gnb-logo { height: clamp(18px, 1.536vw, 29.5px); width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #1b2a3a url("assets/img-02-hero-bg.png") top center / cover no-repeat;
  text-align: left;
  padding-top: 120px; /* Figma: GNB 아래 → 히어로 제목까지 120px */
  padding-bottom: clamp(48px, 6.25vw, 120px); /* 대시보드 아래 여백 (Figma와 동일) */
  overflow: hidden;
}
.hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.125vw, 60px);
  font-weight: 700;
  line-height: 1.35;
}
.hero h1 .hl { color: #21aaff; }
.hero p {
  color: #cbd5e0;
  font-size: clamp(14px, 1.25vw, 24px);
  margin-top: 20px;
}
.hero-btns {
  margin-top: clamp(48px, 7vw, 80px); /* Figma: 서브텍스트 ↔ 버튼 여백 80px */
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.hero-mockup {
  width: 100%;
  max-width: 1120px;
  margin: 64px auto 0;
  /* 라운드/그림자는 이미지에 이미 포함되어 있어 CSS로 추가하지 않음 (이중 모서리 방지) */
}

/* ---------- Logo strip ---------- */
/* 로고 섹션: Figma 원본대로 풀폭(좌우 여백 최소) + 섹션 260px / 로고 프레임 100px */
.logos { padding-block: clamp(40px, 8.33vw, 80px); }
.logos-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 28px);
  padding-inline: clamp(16px, 1vw, 20px);
  flex-wrap: wrap;
}
.logos-row img { height: clamp(44px, 5.2vw, 100px); width: auto; object-fit: contain; flex: 0 0 auto; }

/* ---------- Generic feature card (text + image) ---------- */
.feature-card {
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 40px;
  padding: 56px;
  overflow: hidden;
}
.feature-card .fc-text { flex: 1 1 0; min-width: 240px; }
.feature-card .fc-img  { flex: 1 1 0; display: flex; justify-content: flex-end; }
/* 이미지를 카드 하단에 붙이는 변형 (Figma: 위쪽만 여백, 아래는 카드 끝까지) */
.feature-card.img-bottom { align-items: stretch; padding-bottom: 0; }
.feature-card.img-bottom .fc-text { display: flex; flex-direction: column; justify-content: center; padding-bottom: 56px; }
.feature-card.img-bottom .fc-img { align-items: flex-end; }
.fc-label { font-weight: 700; font-size: clamp(14px,1.25vw,24px); color: var(--label-slate); margin-bottom: 16px; }
.fc-title { font-weight: 700; font-size: clamp(20px, 2.08vw, 40px); color: var(--ink-2); line-height: 1.4; }
.fc-desc  { margin-top: 16px; color: var(--gray-500); font-weight: 500; font-size: clamp(13px,1.04vw,20px); line-height: 1.5; }
.fc-note  { margin-top: 10px; color: var(--gray-500); font-weight: 500; font-size: clamp(12px,0.9vw,17px); }

/* Section 2030 - cream */
.card-cream { background: var(--card-cream); border-radius: 40px; }
.card-cream .fc-label { color: var(--label-slate); }

/* ---------- Section 04 (pricing) ---------- */
.grid-04 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card-04 { border-radius: 40px; padding: 56px; }
.card-04.blue   { background: var(--card-blue); }
.card-04.purple { background: var(--card-purple); }
.card-04 .fc-label { color: var(--label-slate); }
.c-title { font-weight: 700; font-size: clamp(20px,2.08vw,40px); color: var(--ink-2); line-height: 1.4; }
.card-04 img { margin-top: 28px; margin-inline: auto; }
.card-wide {
  grid-column: 1 / -1;
  background: var(--card-gray);
  border-radius: 40px;
  padding-left: 56px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow: hidden;
}
.card-wide .fc-label { color: var(--label-slate); }
.card-wide .cw-text { flex: 0 0 42%; display: flex; flex-direction: column; justify-content: center; padding-block: 56px; }
/* 이미지는 카드 하단에 붙임 (Figma: top 40px 여백, bottom 0 → 카드 끝에서 클립) */
.card-wide .cw-img  { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: flex-end; padding-top: 56px; }
.card-wide .cw-img img { display: block; }

/* ---------- Section 1925 ---------- */
.stack { display: flex; flex-direction: column; gap: 24px; }
.card-feature-blue { background: var(--card-gray); }
.card-feature-blue .fc-label { color: var(--label-blue); }
.center-btn { text-align: center; margin-top: 56px; }

/* ---------- Section contents_02 (dark) ---------- */
.dark-sec {
  background-image:
    linear-gradient(180deg, rgba(29,29,29,0.82) 44%, rgba(120,88,35,0.82) 100%),
    linear-gradient(180deg, #2b374c 0%, #133673 100%);
  color: #fff;
}
.dark-sec .sec-title { color: #fff; margin-bottom: 24px; }
.dark-sec .sec-sub {
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: clamp(14px,1.25vw,24px);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 64px;
}
.dark-sec .sec-sub .grad {
  font-weight: 700;
  background: linear-gradient(90deg, #4593ff 0%, #664aff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card {
  border: 1.5px solid rgba(113,128,150,.4);
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  background-clip: padding-box; /* 흰 배경이 반투명 테두리 밑으로 깔려 흰 외곽선이 생기는 것 방지 */
}
.case-card .case-img { width: 100%; aspect-ratio: 548 / 334.5; object-fit: cover; display: block; }
.case-body { background: #fff; padding: 40px; }
.case-quote { font-weight: 700; font-size: clamp(17px,1.46vw,28px); line-height: 1.4; color: var(--ink-2); }
.case-meta { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.case-badge { border-radius: 1000px; padding: 8px 16px; font-size: clamp(13px,1.04vw,20px); font-weight: 600; }
.case-badge.mfg  { background: #ddebff; color: #478beb; }
.case-badge.food { background: #fff1d1; color: #fc9220; }
.case-credit { display: flex; align-items: center; gap: 12px; color: var(--gray-500); font-weight: 500; font-size: clamp(14px,1.25vw,24px); }
.case-credit .div { width: 1px; height: 18px; background: #cbd5e0; }

/* ---------- Section 05 (FAQ) ---------- */
.faq-sec .sec-title { color: var(--ink-2); }
.faq-list { max-width: 1120px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); padding-block: clamp(32px, 4.3vw, 48px); } /* Figma: 질문 사이 간격 96px */
.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(22px,2.85vw,32px);
  color: var(--ink-2);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .chev { flex: 0 0 auto; transition: transform .2s ease; }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  margin-top: 18px;
  max-width: 1000px; /* Figma 답변 텍스트 박스 폭 (질문 1120 / 답변 1000) → 줄바꿈 위치 일치 */
  color: var(--gray-500);
  font-weight: 500;
  font-size: clamp(15px,1.6vw,18px);
  line-height: 1.4;
  white-space: pre-line;
}

/* ---------- Bottom banner ---------- */
.banner {
  background: #262d43;
  text-align: center;
  padding-block: 120px;
}
.banner .b-small { color: #e2e8f0; font-size: clamp(14px,1.25vw,24px); font-weight: 500; }
.banner h2 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(26px,3.1vw,60px);
  margin-top: 24px;
}
/* 넓은 화면에서는 디자인(1920px)과 동일하게 한 줄 유지 */
@media (min-width: 1600px) {
  .banner h2 { white-space: nowrap; }
}
.banner-btns {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px) {
  .section { padding-block: 64px; }
  .sec-title { margin-bottom: 40px; }
  .feature-card { flex-direction: column; align-items: stretch; padding: 36px; text-align: left; }
  .feature-card .fc-img { justify-content: center; }
  .grid-04 { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; padding: 36px; align-items: stretch; }
  .card-wide .cw-text { flex: none; }
  .card-wide .cw-img { justify-content: center; }
  .case-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 80px; }
  .hero-mockup { margin-top: 40px; }
}

@media (max-width: 560px) {
  .btn { font-size: 18px; }
  .btn-pill { height: 60px; padding: 0 22px; min-width: 0; }
  .btn-contact, .btn-signup { min-width: 0; flex: 1 1 auto; }
  .hero-btns, .banner-btns { gap: 12px; }
  .btn-case-outline, .btn-case-dark { height: 60px; font-size: 18px; }
  .feature-card, .card-04, .card-wide, .case-card { padding: 24px; }
  .logos-row { justify-content: center; gap: 28px 36px; }
  .logos-row img { height: 40px; }
  .case-card .case-img { height: 180px; }
}

/* ---------- Footer ---------- */
.footer { background: #3e4459; text-align: center; padding-block: 40px; }
.footer-info { color: #a0aec0; font-weight: 400; font-size: clamp(11px, 0.7vw, 12px); line-height: 1.4; }
