/* ==========================================================================
   g-commerce.html — 해외 커머스 랜딩 (신규)
   공통 셸만 정의된 스캐폴드: 토큰 / 리셋 / 상담폼 / 모달 / 바텀시트 /
   플로팅 버튼 / 하단 CTA / 푸터. 본문 섹션 스타일은 시안에 맞춰 아래에 추가한다.
   폰트: 본문 Pretendard Variable, 헤드라인 Gmarket Sans(--disp)
   ========================================================================== */

:root {
  /* 텍스트 / 라인 */
  --ink: #18181b;
  --ink-sub: #6b6b74; /* 쿨그레이 서브 텍스트 — #F4F4F5 위 대비 4.77:1 (WCAG AA) */
  --line: #e4e4e7;
  /* 배경 / 베이스 */
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --dark: #09090b;
  --dark-2: #18181b;
  /* 포인트 — 비비드 팝 오렌지-레드 단일 */
  --red: #ff3e1d;
  --orange: #ff3e1d;
  --grad: linear-gradient(100deg, #ff3e1d 0%, #ff3e1d 100%);
  /* 가운데가 밝고 양끝이 어두운 좌우 대칭(리플렉티드) 그라데이션 — 강조 카피용 */
  --grad-reflect: linear-gradient(90deg, #ff5a21 0%, #ff8446 30%, #ffb367 50%, #ff8446 70%, #ff5a21 100%);
  --red-soft: #fff1ee;
  --cream: #f4f4f5;
  /* 하단 마감 임박 바 — 네온 핑크레드 + 강조 옐로우 */
  --neon: #ff2d55;
  --neon-soft: #ff5f7e;
  --neon-yellow: #ffd84d;
  /* 헤드라인 디스플레이 폰트 */
  --disp: 'Gmarket Sans', 'Pretendard Variable', Pretendard, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* 가로 스크롤 차단 — 이 값은 뷰포트로 전파되므로 html 에만 둔다.
     body 에도 주면 body 가 별도 스크롤 박스가 되어 페이지 하단에 가로 바가 생긴다 */
  overflow-x: hidden;
}

body {
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    'Noto Sans KR',
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  vertical-align: top;
}

a {
  color: inherit;
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.cursor {
  cursor: pointer;
}

.inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 그라데이션 텍스트 공통 — 섹션 추가 시 셀렉터를 함께 늘린다 */
.sec-title strong {
  font-style: normal;
  background: var(--grad-reflect);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 스크롤 등장 애니메이션 (gcommerce.js 가 .vis 를 붙인다) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

/* 섹션 공통 */
section {
  padding: 96px 0;
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: clamp(12.5px, 12.11px + 0.109vw, 13.5px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-sub);
}

.sec-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.sec-title {
  font-family: var(--disp);
  /* 가장 긴 강조 줄(10.88em)이 좁은 화면에서도 한 줄로 유지되도록 계산한 값.
     가용 폭 = 100vw - 40px(.inner 좌우 패딩) → fs <= 9.19vw - 3.68px. 여유를 둬 8.6vw - 4px */
  font-size: min(calc(8.6vw - 4px), 44px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   01. 히어로 — 첫 화면을 가득 채우고, 카피 + 일러스트를 한 덩어리로 중앙에 놓는다
   ========================================================================== */
.hero {
  /* 카피 영역(위아래 패딩 + 아이브로우 + 타이틀 + 일러스트 위 여백)이 차지하는 높이.
     데스크탑에서 일러스트 폭을 남은 세로 공간에 묶는 데 쓴다 */
  --hero-copy-h: 396px;
  /* 모바일은 첫 화면을 꽉 채우지 않는다 — 아래 섹션이 살짝 보여야 스크롤을 유도한다 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 이미지 여백과 같은 순검정이어야 일러스트 경계가 드러나지 않는다 */
  background: #000;
  color: #fff;
  text-align: center;
  padding: 50px 0 20px;
}

/* 01_bg.jpg(1920x696) 에서 일러스트만 잘라 쓴다.
   일러스트는 세로 328~696px(아래 52.9%), 가로는 지구본 밑변이 가장 넓어 413~1482px.
   이미지 중심(960)에서 좌우로 550px씩(=1100px) 잡으면 지구본이 잘리지 않고 다 들어온다.
   배경을 174.5%(1920/1100)로 키워 하단·가운데 정렬하면 그 영역만 남는다.
   덕분에 화면이 좁아도 일러스트가 폭을 꽉 채우고, 잘려 나가는 부분은 순검정 여백뿐이다. */
.hero-art {
  /* 폭은 화면 가로뿐 아니라 '남은 세로 공간'에도 묶어 둔다.
     (남은 높이 = 화면높이 - 카피 영역 --hero-copy-h) x 일러스트 가로세로비(2.878)
     → 창이 낮아도 일러스트가 첫 화면 밖으로 밀려나지 않는다. 1440px = 잘라낸 원본(1100px)의 1.31배 */
  width: 100%;
  max-width: 1440px;
  margin: 34px auto 0;
  /* 배율 S 와 비율 A 는 A = 5.216 / S 로 묶여 있다(그래야 일러스트 전체가 딱 들어온다).
     모바일은 190% 로 확대 → 잘려 나가는 건 지구본 밑변 양끝뿐이고 그 부분은 마스크로 흐려진다 */
  aspect-ratio: 1010 / 368;
  background: url('../img/gcommerce/01_bg.jpg') center bottom / 190% auto no-repeat;
  /* 지구본 밑변이 직선으로 끊겨 '잘린' 느낌이 나지 않도록 아래·좌우를 서서히 날린다.
     오브젝트는 밴드의 위 90%에 모여 있어 아래 10%만 페이드해도 상품은 온전히 보인다 */
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, rgba(0, 0, 0, 0.55) 95%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 86%, rgba(0, 0, 0, 0.55) 95%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}

.hero-eyebrow {
  /* inline-flex 라 폭이 내용만큼만 잡히고, 부모의 text-align:center 로 가운데 온다.
     덕분에 아래 구분선이 문구 길이에 딱 맞는다 */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  /* 본문 폰트(Pretendard) — 제목의 Gmarket Sans 와 대비를 준다 */
  font-size: clamp(15px, 12.2px + 0.78vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-eyebrow img {
  /* 원본 129x23 에 여백이 0 이라 이미지 높이가 곧 글자 높이다.
     한글 글자 높이는 폰트 크기의 약 0.72배라 그에 맞춰 로고를 맞춘다 */
  width: auto;
  height: 0.78em;
}

.hero-title {
  margin-top: 26px;
  font-family: var(--disp);
  /* 강조 줄(1.1em)이 항상 한 줄에 들어가도록 계산한 값.
     강조 줄의 자연 폭은 9.78em 이고 가용 폭은 100vw - 40px(.inner 좌우 패딩)이므로
     base x 1.1 x 9.78 <= 100vw - 40  →  base <= 9.29vw - 3.7px. 여유를 둬 8.7vw - 4.2px */
  font-size: min(calc(8.7vw - 4.2px), 56px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

/* 강조 줄 — 흰 줄보다 조금 크게, 가운데가 밝고 양끝이 어두운 좌우 대칭(리플렉티드) 그라데이션 */
.hero-title strong {
  font-size: 1.1em;
  font-style: normal;
  background: var(--grad-reflect);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   02. 실제 고민 — 유형별 3열 (모바일은 세로 스택)
   각 항목의 강조색은 --tone 하나로 태그와 카피 강조를 함께 바꾼다
   ========================================================================== */
.worry {
  /* 히어로와 이어지도록 같은 순검정 */
  background: #000;
  color: #fff;
  text-align: center;
  /* 모바일은 히어로 바로 아래라 위 여백을 줄인다 (데스크탑은 아래에서 복구) */
  padding-top: 44px;
}

.worry .sec-title {
  line-height: 1.4;
}

.worry-list {
  display: grid;
  /* 모바일은 시안대로 위에 2개(유입·콘텐츠), 아래 가운데 1개(광고비) */
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  max-width: 980px;
  margin: 34px auto 0;
}

/* DOM 순서는 유입(1) → 광고비(2) → 콘텐츠(3) 이므로 위치를 명시한다 */
.worry-item:nth-child(1) {
  grid-row: 1;
  grid-column: 1;
}

.worry-item:nth-child(3) {
  grid-row: 1;
  grid-column: 2;
}

.worry-item:nth-child(2) {
  grid-row: 2;
  grid-column: 1 / -1;
  width: 56%;
  margin: 0 auto;
}

.worry-item {
  --tone: #e481f6;
}

.worry-item.is-cost {
  --tone: #ff632d;
}

.worry-item.is-content {
  --tone: #02f0f7;
}

.worry-tag {
  /* 본문 폰트(Pretendard) 볼드 — 제목의 Gmarket Sans 와 구분한다 */
  font-size: clamp(15px, 8.6px + 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tone);
}

.worry-copy {
  margin-top: 10px;
  /* 가장 긴 줄이 9.88em 이라 320px(칸 126px)에서 12.7px 가 한계 — 그 위로 키운다 */
  font-size: clamp(12.5px, 4.5px + 2.5vw, 17px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.worry-copy b {
  font-weight: 700;
  color: var(--tone);
}

.worry-img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 20px auto 0;
  /* 02_2.jpg 는 좌·우·하단에 1px 회색 테두리가 있어 검정 배경에서 윤곽선으로 보인다.
     퍼센트로 잘라내면 표시 크기와 무관하게 항상 그 1px(=0.34%)이 제거된다 */
  clip-path: inset(0.4%);
}

/* --------------------------------------------------------------------------
   03. 세 갈래 고민이 하나로 → 드리븐
   -------------------------------------------------------------------------- */
.answer {
  margin-top: 34px;
}

/* 연결선 — viewBox 가로 980 은 .worry-list 최대폭과 같아, 데스크탑에서
   출발점 x(153 / 490 / 827)가 3열의 각 열 중앙과 맞아떨어진다.
   모바일은 2+1 배치라 좌·우 갈래가 열과 맞지 않으므로 가운데 갈래만 남긴다
   (가운데는 x=490 = viewBox 정중앙이라 어느 배치에서도 어긋나지 않는다) */
.answer-flow {
  display: block;
  /* 아래에서 svg 를 높이 기준으로 키우면 가로로 넘치는데, 넘치는 쪽은 빈 여백이다.
     페이지에 가로 스크롤이 생기지 않도록 여기서 잘라낸다.
     세로 padding 은 잘라내는 김에 같이 잘리는 네온 글로우(최대 12px) 자리다 */
  overflow: hidden;
  padding: 12px 0;
  margin: -12px auto;
}

.answer-flow .is-l,
.answer-flow .is-r {
  display: none;
}

/* 가운데 갈래만 보이므로 폭이 아니라 높이로 크기를 정한다 */
.answer-flow svg {
  display: block;
  width: auto;
  height: clamp(88px, 29vw, 132px);
  /* svg 가 컨테이너보다 넓어 margin:auto 로는 가운데 정렬되지 않는다 */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

/* 출발점에서 화살표 쪽으로 빛이 흘러간다.
   pathLength=100 으로 길이를 정규화했으므로 dash 주기는 14+100=114 */
/* 시안의 네온 발광 — 색상별로 글로우를 따로 준다 */
.flow-line.is-l,
.flow-dot.is-l {
  filter: drop-shadow(0 0 4px rgba(228, 129, 246, 0.9)) drop-shadow(0 0 12px rgba(228, 129, 246, 0.5));
}

.flow-line.is-c,
.flow-dot.is-c {
  filter: drop-shadow(0 0 4px rgba(255, 99, 45, 0.9)) drop-shadow(0 0 12px rgba(255, 99, 45, 0.5));
}

.flow-line.is-r,
.flow-dot.is-r {
  filter: drop-shadow(0 0 4px rgba(2, 240, 247, 0.9)) drop-shadow(0 0 12px rgba(2, 240, 247, 0.5));
}

.flow-pulse.is-l {
  filter: drop-shadow(0 0 9px rgba(228, 129, 246, 1));
}

.flow-pulse.is-c {
  filter: drop-shadow(0 0 9px rgba(255, 122, 60, 1));
}

.flow-pulse.is-r {
  filter: drop-shadow(0 0 9px rgba(2, 240, 247, 1));
}

.flow-arrow {
  filter: drop-shadow(0 0 10px rgba(255, 150, 90, 0.8));
}

.flow-pulse {
  stroke-dasharray: 14 100;
  stroke-dashoffset: 114;
  animation: flowRun 2.6s linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes flowRun {
  from {
    stroke-dashoffset: 114;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.flow-arrow {
  transform-box: fill-box;
  transform-origin: center;
  animation: arrowBounce 1.8s ease-in-out infinite;
}

/* 위아래 움직임만 준다 (투명도는 건드리지 않는다) */
@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(4px);
  }
}

.answer-title {
  display: block;
  /* '오직 드리븐입니다'(.answer-lead)보다 작아 보여야 해서 폭을 줄인다.
     이미지는 여백이 0 이라 표시 높이가 곧 글자 높이(= 폭 x 65/454)다 */
  width: min(58%, 300px);
  height: auto;
  margin: 26px auto 0;
}

.answer-lead {
  margin-top: 4px;
  font-family: var(--disp);
  font-size: min(8.2vw, 48px);
  font-weight: 700;
  /* '드리븐'(1.5em) 때문에 줄 상자가 커지므로 행간을 좁혀 이미지와 붙인다 */
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.answer-lead strong {
  /* '드리븐' 만 크게 + 히어로와 같은 리플렉티드 그라데이션 */
  font-size: 1.5em;
  font-weight: 700;
  background: var(--grad-reflect);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.answer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: min(100%, 460px);
  margin-top: 14px;
  padding: 15px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a4d 0%, #ff7a2f 55%, #ff6320 100%);
  font-family: var(--disp);
  font-size: clamp(15px, 12.65px + 0.652vw, 23px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 106, 34, 0.38);
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.answer-cta b,
.answer-cta i {
  /* 하단 마감 임박 바와 같은 포인트 옐로우 */
  color: var(--neon-yellow);
  font-style: normal;
  font-weight: 700;
}

.answer-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(255, 106, 34, 0.5);
}

.answer-note {
  margin-top: 14px;
  font-size: clamp(11.5px, 10.62px + 0.245vw, 14px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* 애니메이션을 원치 않는 사용자 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .flow-pulse,
  .flow-arrow {
    animation: none;
  }
}

/* ==========================================================================
   04. 올인원 시스템 — 3장 카드 (모바일은 세로 스택)
   ========================================================================== */
.system {
  /* 앞 섹션과 이어지도록 같은 순검정 */
  background: #000;
  color: #fff;
  text-align: center;
}

/* 이 섹션 제목은 첫 줄이 길어(13.8em) 좁은 화면에서 '만드는'이 홀로 떨어진다.
   가용 폭 100vw - 40px 안에 한 줄로 들어가도록 이 섹션만 따로 계산한다 */
.system .sec-title {
  font-size: min(calc(7vw - 3px), 44px);
}

/* 시안에서 두 번째 줄이 첫 줄보다 크다 (다른 섹션 제목에는 영향을 주지 않도록 한정) */
.system .sec-title strong {
  font-size: 1.3em;
}

/* 모바일은 가로 슬라이드.
   폭 기준을 리스트 전체(=콘텐츠 박스)로 맞춰야 가운데 정렬이 정확해지므로
   컨테이너 padding 대신 첫/마지막 카드의 margin 으로 여백을 준다.
   13.5% + 73% + 13.5% = 100%. 이 등식이 깨지면 스크롤 위치 0(첫 화면)에서 카드가
   가운데에 오지 않아 오른쪽 옆 카드가 보이지 않는다 */
.system-list {
  display: flex;
  /* 간격이 넓을수록 옆에 걸친 다음 카드가 보이는 폭이 그만큼 깎인다 */
  gap: 20px;
  max-width: 980px;
  /* .inner 의 좌우 패딩(20px)을 상쇄해 화면 끝까지 흐르게 한다.
     안 그러면 양옆에 살짝 보이는 카드가 패딩 경계에서 잘려 검은 띠처럼 보인다 */
  margin: 34px -20px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.system-list::-webkit-scrollbar {
  display: none;
}

.system-item {
  display: flex;
  flex-direction: column;
  /* 좌우 13.5% 씩 남겨 첫 화면에서 다음 카드가 33~43px 보이게 한다.
     (100 - 73) / 2 = 13.5 — 위 .system-list 주석의 등식을 함께 지킬 것 */
  flex: 0 0 73%;
  scroll-snap-align: center;
  padding: 26px 16px 28px;
  /* 카드 배경(#232329)이 섹션 배경(#000)과 가까워, 테두리가 흐리면
     옆에 걸친 다음 카드가 배경에 묻혀 한 장만 있는 것처럼 보인다 */
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 22px;
  background: linear-gradient(180deg, #232329 0%, #1a1a1f 55%, #121216 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.system-list > .system-item:first-child {
  margin-left: 13.5%;
}

.system-list > .system-item:last-child {
  margin-right: 13.5%;
}

.system-title {
  /* 제목이 1줄인 카드와 2줄인 카드의 이미지 위치를 맞춘다.
     1줄일 때는 남는 공간을 위아래로 나눠 갖도록 가운데 정렬해야
     '공식 파트너십'처럼 아래쪽만 휑해 보이지 않는다 */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(2 * 1.4em);
  /* 본문 폰트(Pretendard) 볼드. 모바일 하한을 19 → 22px 로 올렸다 */
  font-size: clamp(22px, 20.3px + 0.489vw, 25px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.system-img {
  display: block;
  width: 100%;
  /* 세로 스택이 되는 480~768px 구간에서 카드가 넓어져 이미지가 과하게 커지는 것만 막는다
     (모바일·데스크탑에서는 100% 그대로) */
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  /* 원본이 #141414 배경 JPG 라 어두운 카드 위에 사각형으로 떠 보인다.
     lighten 은 카드보다 어두운 픽셀을 카드 배경으로 대체해 이음매를 없앤다
     (screen 은 배경 밝기를 그만큼 들어 올려 사각형이 그대로 보인다) */
  mix-blend-mode: lighten;
}

.system-copy {
  margin-top: 12px;
  /* 모바일 하한 14 → 16px. 가장 긴 줄이 12.32em 이라 카드 안쪽 폭을 12.32 로
     나눈 값이 상한 — 320px 화면(안쪽 202px)에서 16.4px 까지만 들어간다 */
  font-size: clamp(16px, 13px + 0.9vw, 18px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.62);
}

/* ==========================================================================
   05. 글로벌 성과 — 브랜드 레퍼런스 2x2
   해시태그 / 로고 / 클릭 아이콘은 모두 brand_*.png 안에 포함되어 있다
   ========================================================================== */
.brand {
  position: relative;
  background: #000;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* 시안의 좌우 붉은 글로우 */
.brand::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 52% at 0% 50%, rgba(255, 74, 26, 0.2), transparent 70%), radial-gradient(58% 52% at 100% 50%, rgba(255, 74, 26, 0.2), transparent 70%);
}

.brand .inner {
  position: relative;
  z-index: 1;
}

/* 좁은 화면에서는 가로 슬라이드 (system-list 와 같은 방식) */
.brand-list {
  display: flex;
  gap: 12px;
  max-width: 900px;
  /* .inner 좌우 패딩(20px) 상쇄 — system-list 와 같은 이유.
     overflow-x:auto 는 세로도 함께 잘라내므로(다른 축이 visible 로 남지 못한다)
     카드가 뒤집힐 때 필요한 만큼 위아래 여백을 padding 으로 확보하고
     바깥 여백은 음수 margin 으로 되돌린다. 안 그러면 회전 중 카드 윗면이 잘린다.
     필요량 = 원근 확대(카드 높이의 약 6.7%) + 뒷면 그림자(위로 22px) */
  margin: 0 -20px -34px;
  padding: 34px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.brand-list::-webkit-scrollbar {
  display: none;
}

.brand-item {
  flex: 0 0 85%;
  scroll-snap-align: center;
}

/* 7.5% + 85% + 7.5% = 100% 라 첫·마지막 카드도 정확히 가운데에 멈춘다.
   (카드 폭을 바꾸면 이 값도 함께 고쳐야 한다) */
.brand-list > .brand-item:first-child {
  margin-left: 7.5%;
}

.brand-list > .brand-item:last-child {
  margin-right: 7.5%;
}

/* 슬라이드 컨트롤 — 이전 / n / 4 / 다음 */
.brand-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}

.brand-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.brand-arrow:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.brand-arrow svg {
  width: 20px;
  height: 20px;
}

.brand-count {
  min-width: 54px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.brand-count b {
  font-weight: 700;
  color: #fff;
}

/* --------------------------------------------------------------------------
   뒷면이 있는 카드 — 누르면 Y축으로 뒤집혀 실제 성과를 보여준다.
   뒷면 글자는 카드 폭(cqw)에 맞춰 커진다. 2열 카드(≈370px)와 모바일 슬라이드
   카드(≈85vw)는 폭 차이가 커서 vw 기준으로는 한쪽이 반드시 깨진다
   -------------------------------------------------------------------------- */
.brand-item--flip {
  position: relative;
  perspective: 1400px;
  container-type: inline-size;
  --brand-r: clamp(12px, 3.8cqw, 19px);
  --brand-accent: #ff5a3c;
  /* 뒷면 타이포 배율. 모바일은 카드 한 장만 보이므로 세로로 늘려 글자를 키운다
     (2열이 되는 600px 이상에서 1 로 되돌린다).
     상한은 LG 카드의 수치 줄(+210%↑ | +138%↑)이 카드 폭에 들어가는 1.29 다 */
  --k: 1.26;
  /* 제목만 따로 두는 이유: 가장 긴 제목(11.69em)이 두 줄로 넘어가는 순간
     카드 세로가 한 줄만큼 더 필요해지고, 그만큼 다른 카드에 빈 공간이 생긴다.
     네 장 모두 한 줄에 들어가는 배율이 1.16 이다 */
  --kt: 1.16;
}

.brand-card {
  position: relative;
  /* 카드 상자를 여기서 정한다. 모바일은 앞면 이미지 비율(526:334)보다 세로로 길다 —
     늘어난 만큼은 앞면의 투명 여백이라 앞면 모습은 그대로고, 뒷면만 넓게 쓴다 */
  aspect-ratio: 526 / 421;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand-item--flip:hover .brand-card {
  transform: translateY(-4px);
}

.brand-item--flip.is-flipped .brand-card {
  transform: rotateY(180deg);
}

/* rotateY 뒤의 translateY 도 화면 기준 위쪽이라 그대로 겹쳐 쓴다 */
.brand-item--flip.is-flipped:hover .brand-card {
  transform: rotateY(180deg) translateY(-4px);
}

.brand-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--brand-r);
  /* 어두운 사진 카드가 검정 섹션 배경에 묻히지 않도록 가장자리를 또렷하게 세운다 */
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   앞면 — 배경 사진 / 로고 / 해시태그 / 클릭 아이콘을 따로 얹는다.
   통이미지였을 때는 카드 세로를 그 이미지 비율에 묶어야 했지만, 이제 어떤 상자에도
   맞춰지므로 모바일에서 뒷면과 똑같은 크기를 쓸 수 있다
   -------------------------------------------------------------------------- */
.brand-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 로고 blend 가 사진·오버레이와 합성되도록 앞면을 하나의 그룹으로 묶는다.
     (부모 .brand-card 의 preserve-3d 만으로는 backdrop 이 이어지지 않는다) */
  isolation: isolate;
  background: #0b0b0e;
}

.brand-bg {
  position: absolute;
  /* 테두리 안쪽에 앉힌다 — inset:0 이면 사진이 border 를 덮어 버린다 */
  inset: -2px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 카드마다 배경 사진 밝기와 로고 색이 달라 앞면 톤을 둘로 나눈다 (원본 시안과 같은 구성).
   LG·아르떼는 어두운 사진 + 흰 로고, ERIGERON·원진은 밝은 사진 + 어두운 로고다 */
.brand-front {
  --front-ink: #fff;
}

.brand-item--light .brand-front {
  --front-ink: #101014;
}

.brand-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 62% at 50% 46%, rgba(0, 0, 0, 0.38), transparent 72%), linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.3) 48%, rgba(0, 0, 0, 0.6) 100%);
}

.brand-item--light .brand-front::after {
  background: radial-gradient(72% 62% at 50% 46%, rgba(255, 255, 255, 0.45), transparent 72%), linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 48%, rgba(255, 255, 255, 0.55) 100%);
}

.brand-front-tag,
.brand-logo,
.brand-front-icon {
  position: relative;
  z-index: 1;
}

/* 아래 세 요소는 모바일(카드 한 장만 보이는 화면) 기준으로 크게 잡고,
   2열이 되는 600px 이상에서 원래 비율로 되돌린다 */
.brand-front-tag {
  font-size: 20px;
  font-size: clamp(13px, 6.4cqw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--front-ink);
}

/* 로고 가로세로비가 3.7:1(LG·원진) ~ 8.9:1(에리제론·아르떼) 로 갈린다.
   폭만 맞추면 납작한 워드마크가 혼자 작아 보이므로, 세로 상한을 같이 걸어
   네 개의 '면적'이 비슷해지게 한다 — 납작한 것은 폭에, 뭉툭한 것은 세로에 먼저 닿는다.
   (max-height 를 17% 로 두면 두 breakpoint 모두에서 면적 편차가 6% 안쪽이다) */
.brand-logo {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 17%;
  margin-top: 4cqw;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
}

/* brand_logo_2·4 는 배경이 투명이 아니라 흰색으로 채워진 판본이다.
   multiply 로 흰 배경만 날리면 브랜드 색(원진의 청록)을 그대로 살릴 수 있다 */
.brand-item--light .brand-logo {
  mix-blend-mode: multiply;
  filter: none;
}

.brand-front-icon {
  width: 17cqw;
  min-width: 40px;
  height: auto;
  aspect-ratio: 1;
  margin-top: 5.5cqw;
  color: var(--front-ink);
}

/* 아이콘 심볼 정의용 — 자리를 차지하지 않는다 */
.brand-icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 카드 전체를 덮는 투명 토글 버튼.
   뒤집히는 .brand-card 밖에 두어야 뒷면에서도 그대로 눌린다 */
.brand-flip {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: var(--brand-r);
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.brand-flip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.brand-back {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 19px 20px;
  padding: calc(var(--k) * 5.2cqw) calc(var(--k) * 5.2cqw);
  text-align: left;
  transform: rotateY(180deg);
  background: radial-gradient(78% 100% at 100% 0%, rgba(255, 62, 29, 0.24), transparent 60%), radial-gradient(70% 100% at 0% 100%, rgba(255, 45, 85, 0.16), transparent 58%), linear-gradient(158deg, #1c1c21 0%, #0a0a0c 62%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.brand-back-tag {
  font-size: 14px;
  font-size: calc(var(--k) * clamp(9px, 3.5cqw, 17px));
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-accent);
}

/* 앞면으로 돌아간다는 표시. 실제 토글은 카드 전체(.brand-flip)가 받는다 */
.brand-back-close {
  position: absolute;
  top: 16px;
  right: 16px;
  top: 5cqw;
  right: 5cqw;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  width: 7cqw;
  height: 7cqw;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  /* 어두운 카드 위라 반투명 테두리로는 눈에 띄지 않는다 — 흰 원에 검은 X */
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-size: clamp(12px, 3.8cqw, 17px);
  font-weight: 700;
  line-height: 1;
  color: #09090b;
}

.brand-back-title {
  margin-top: 6px;
  margin-top: calc(var(--k) * 1.6cqw);
  /* 이 페이지의 카드 제목은 .system-title 과 같이 본문 폰트(Pretendard) 볼드다 */
  font-size: 24px;
  font-size: calc(var(--kt) * clamp(16px, 6cqw, 29px));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-back-desc {
  margin-top: 7px;
  margin-top: calc(var(--k) * 2cqw);
  font-size: 17px;
  font-size: calc(var(--k) * clamp(11px, 4.2cqw, 20px));
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.68);
}

/* 수치는 카드 아래쪽에 고정 — 카피 길이가 달라져도 기준선이 흔들리지 않는다 */
.brand-stats {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  gap: calc(var(--k) * 4cqw);
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
  padding-top: calc(var(--k) * 2.8cqw);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-stats > li + li {
  padding-left: 14px;
  padding-left: calc(var(--k) * 4cqw);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-stats em {
  display: block;
  font-size: 14px;
  font-size: calc(var(--k) * clamp(9px, 3.5cqw, 17px));
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.brand-stats b {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 28px;
  font-size: calc(var(--k) * clamp(19px, 7cqw, 34px));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.brand-stats i {
  font-size: 0.62em;
  font-style: normal;
  color: var(--brand-accent);
}

/* 라벨 없이 수치만 있는 카드 (에리제론·아르떼뮤지엄).
   좁은 화면에서는 시안대로 세로로 쌓는다 — 가로로 두면 'CTR 1.8% | CPC 350원' 이
   카드 폭을 넘겨 수치 글자를 그만큼 줄여야 한다 */
.brand-stats.is-single {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.brand-stats.is-single > li + li {
  padding-left: 0;
  border-left: 0;
}

.brand-stats.is-single b {
  white-space: nowrap;
}

/* 수치 아래 각주 한 줄 */
.brand-back-note {
  margin-top: 5px;
  margin-top: calc(var(--k) * 1.3cqw);
  font-size: 13px;
  font-size: calc(var(--k) * clamp(9px, 3.2cqw, 15px));
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.5);
}

/* 뒤집기 애니메이션을 원치 않으면 앞/뒷면을 겹쳐 두고 페이드로만 바꾼다 */
@media (prefers-reduced-motion: reduce) {
  .brand-card,
  .brand-item--flip:hover .brand-card,
  .brand-item--flip.is-flipped .brand-card,
  .brand-item--flip.is-flipped:hover .brand-card {
    transform: none;
    transition: none;
  }

  .brand-back {
    transform: none;
    opacity: 0;
    visibility: hidden;
  }

  .brand-item--flip.is-flipped .brand-back {
    opacity: 1;
    visibility: visible;
  }
}

/* 카드가 2열로 들어갈 만큼 넓어지는 지점부터 2x2 */
@media screen and (min-width: 600px) {
  .brand-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 카드 세로는 이미지 비율(526:334)에 묶여 있어, 뒷면 글자를 키우려면
       카드 자체가 넓어져야 한다. .system-list 와 같은 980px 로 맞춘다 */
    max-width: 980px;
    gap: 20px;
    /* 2열에서는 잘릴 일이 없으니 캐러셀용 padding/음수 margin 을 되돌린다 */
    margin: 34px auto 0;
    padding: 0;
    overflow: visible;
  }

  .brand-item {
    flex: none;
  }

  /* 2열부터는 카드가 충분히 넓어 앞면 비율 그대로 두고 배율도 1 로 되돌린다 */
  .brand-item--flip {
    --k: 1;
    --kt: 1;
  }

  .brand-card {
    aspect-ratio: 526 / 334;
  }

  /* 앞면 요소도 원래 비율로 (모바일 기준으로 키워 둔 값을 되돌린다) */
  .brand-front-tag {
    font-size: calc(var(--k) * clamp(11px, 4.4cqw, 21px));
  }

  .brand-logo {
    max-width: 64%;
    max-height: 17%;
    margin-top: 3.4cqw;
  }

  .brand-front-icon {
    width: 13cqw;
    min-width: 34px;
    margin-top: 5cqw;
  }

  /* 가로로 넉넉하니 수치는 다시 한 줄에 나란히 */
  .brand-stats.is-single {
    flex-direction: row;
    gap: calc(var(--k) * 4cqw);
  }

  .brand-stats.is-single > li + li {
    padding-left: calc(var(--k) * 4cqw);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .brand-list > .brand-item:first-child,
  .brand-list > .brand-item:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .brand-nav {
    display: none;
  }
}

/* ==========================================================================
   06. 진행 프로세스 — 진단 / 가설 / 실행
   배경 06_bg.jpg(1920x763)는 아래 44%가 지구, 위쪽은 검정이라 하단 정렬하면
   카피 뒤로 자연스럽게 이어진다
   ========================================================================== */
.flow {
  position: relative;
  /* 이미지 위쪽 56%는 검정이라 실제로 보이는 건 지구 부분(이미지 높이의 43.9%)뿐이다.
     지구 밴드 높이 = 0.439 x 배율 / 2.516 (가로폭 대비).
     모바일은 190% 로 키워 지구가 화면을 꽉 채우게 한다.
     (플랫폼 칩이 x 525~1410/1920 에 있어 190% 까지는 잘리지 않는다) */
  background: #000 url('../img/gcommerce/06_bg.jpg') center bottom / 190% auto no-repeat;
  color: #fff;
  text-align: center;
  /* 지구 밴드 = 0.439 x 1.90 / 2.516 = 33.2%.
     44% 를 주면 마지막 카드와 지구 사이에 약 11% 만큼 여백이 생긴다 */
  padding-bottom: 44%;
}

.flow-list {
  max-width: 620px;
  margin: 40px auto 0;
}

.flow-step {
  position: relative;
  display: grid;
  /* 모바일: 'STEP 01 진단' 은 왼쪽, 아이콘은 같은 줄 오른쪽, 카드는 아래 전체 폭 */
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'head icon'
    'card card';
  align-items: center;
  /* 스텝 사이 연결선이 들어갈 자리 */
  --icon-cx: 50%;
}

.flow-step + .flow-step {
  /* 연결선(가로 20px → 세로 42px)이 카드와 겹치지 않을 만큼만 확보한 간격 */
  margin-top: 48px;
}

/* 스텝을 잇는 연결선 — 점 3개(위에서 아래로 작아짐) + 두꺼운 화살표 */
/* 연결선 — arrow.png (33x69). 폭 22px → 높이 46px */
.flow-link {
  position: absolute;
  left: var(--icon-cx);
  bottom: -45px;
  transform: translateX(-50%);
  display: block;
  width: 20px;
  height: auto;
  pointer-events: none;
}

.flow-head {
  grid-area: head;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
}

.flow-head em {
  font-style: normal;
  font-size: clamp(15px, 13.6px + 0.42vw, 19px);
  font-weight: 800;
  letter-spacing: 0.06em;
  /* 왼쪽이 밝고 오른쪽으로 갈수록 어두워지는 오렌지 */
  background: linear-gradient(90deg, #ffb673 0%, #ff8038 38%, #e2560f 72%, #a63a09 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.flow-head b {
  font-family: var(--disp);
  font-size: clamp(26px, 26.2px + 0.45vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* 아이콘 — flow_1~3.png (203x200, 글로우까지 포함된 투명 PNG).
   투명 배경이라 blend 없이 그대로 올리면 된다 */
.flow-icon {
  grid-area: icon;
  display: block;
  width: 58px;
  height: auto;
}

.flow-points {
  grid-area: card;
  width: 100%;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(32, 32, 37, 0.92), rgba(16, 16, 19, 0.92));
  text-align: left;
}

.flow-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13.5px, 11.9px + 0.44vw, 17.5px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.86);
}

.flow-points li + li {
  margin-top: 11px;
}

.flow-points i {
  flex: none;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff9a4d, #ff5a1f);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}

/* ==========================================================================
   마무리 CTA + 상담폼
   ========================================================================== */
.final {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  color: #fff;
  /* 오렌지 곡선 배경 (1920x800).
     모바일은 섹션이 세로로 길어 cover 로 두면 곡선이 거의 안 보인다.
     가로 200% 로 키워 왼쪽 위에 붙이면 시안처럼 상단에 곡선이 흐른다 */
  background: #000 url('../img/gcommerce/form_bg.jpg') left top / 200% auto no-repeat;
}

/* 폼 쪽(우측)이 배경 곡선에 묻히지 않도록 오른쪽을 살짝 어둡게 깐다 */
.final::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.45) 100%);
}

.final .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.final-copy {
  position: relative;
  text-align: center;
}

/* 카피 뒤에 검은 라디얼을 깔아 배경 곡선이 흐리게 비치도록 한다.
   .final .inner 가 z-index:1 로 쌓임 맥락을 만들기 때문에
   음수 z-index 를 줘도 섹션 배경 아래로 내려가지 않는다 */
.final-copy::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 190%;
  height: 210%;
  transform: translate(-50%, -50%);
  /* 모바일은 배경 곡선이 비쳐 보이도록 옅게 (데스크탑은 아래에서 다시 진하게) */
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.46) 42%, rgba(0, 0, 0, 0.2) 64%, transparent 78%);
  pointer-events: none;
}

.final-title {
  font-family: var(--disp);
  /* 모바일은 '해외 진출은 끝났습니다'(9.82em)가 100vw - 40px 안에 들어가야 2줄이 유지된다.
     8.1vw 면 320px 에서도 약 9% 여유가 남는다 */
  font-size: min(8.1vw, 52px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.03em;
}

/* 모바일에서는 '해외 진출은 끝났습니다'를 한 줄로 붙여 항상 2줄이 되게 한다 */
.final-title .br-desktop {
  display: none;
}

.final-title strong {
  font-style: normal;
  font-weight: 700;
  background: var(--grad-reflect);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.final-lead {
  margin-top: 10px;
  font-size: clamp(15px, 13.2px + 0.47vw, 17px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.82);
}

.counsel-panel {
  text-align: left;
}

/* 폼이 바텀시트로 옮겨간 동안 원래 자리가 접히지 않게 비워 둔다 */
.counsel-panel.is-detached {
  visibility: hidden;
}

.form_section {
  padding: 26px 20px 24px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.inputForm-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-sub);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 15px;
  letter-spacing: -0.02em;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a1a1aa;
}

.privacy_box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-sub);
}

.privacy_box label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.privacy_box input[type='checkbox'] {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
  cursor: pointer;
}

/* 커스텀 체크 표시용 슬롯 — 기본 체크박스를 쓰므로 비워 둔다 */
.privacy_box label > span:first-of-type {
  display: none;
}

#agreeView {
  margin-left: auto;
  text-decoration: underline;
  white-space: nowrap;
}

.dbInput-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 17px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 38px rgba(255, 62, 29, 0.38);
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.dbInput-submit:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 20px 48px rgba(255, 62, 29, 0.48);
}

/* ==========================================================================
   개인정보취급방침 모달
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 9, 11, 0.6);
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 700;
}

.modal-head .close {
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-sub);
  cursor: pointer;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.privacy-row + .privacy-row {
  margin-top: 18px;
}

.privacy-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.privacy-row dt i {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
}

.privacy-row dd {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-sub);
}

.modal-foot {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
}

.modal-confirm {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   상담 바텀시트 — CTA 클릭 시 하단에서 올라오는 상담폼
   (폼은 복제하지 않고 #form_section 노드를 그대로 옮겨 담는다)
   ========================================================================== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 180;
  visibility: hidden;
  pointer-events: none;
}

.sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.sheet-dim {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sheet.is-open .sheet-dim {
  opacity: 1;
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--bg-soft);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.sheet.is-open .sheet-panel {
  transform: translateY(0);
}

.sheet-grip {
  width: 44px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #d4d4d8;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.sheet-title {
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 700;
}

.sheet-close {
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-sub);
  cursor: pointer;
}

.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 시트가 열린 동안 배경 스크롤 잠금 (JS 가 body 위치를 고정한다) */
body.sheet-open {
  overflow: hidden;
}

/* ==========================================================================
   푸터
   ========================================================================== */
footer {
  padding: 40px 20px calc(96px + env(safe-area-inset-bottom));
  background: var(--dark);
  text-align: center;
}

.footerBox {
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
}

.footerBox img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 16px;
}

/* 좁은 화면에서는 구분자 '|' 대신 줄바꿈을 쓴다 (600px 이상에서 서로 맞바꾼다).
   덮어쓰는 미디어 쿼리는 이 규칙보다 뒤에 있어야 하므로 여기 바로 붙여 둔다 */
.footerBox .sep {
  display: none;
  font-style: normal;
}

@media screen and (min-width: 600px) {
  .footerBox .sep {
    display: inline;
  }

  .footerBox br.mo {
    display: none;
  }
}

/* ==========================================================================
   플로팅 상담 버튼 / 모바일 하단 CTA
   ========================================================================== */
.floating-actions {
  position: fixed;
  right: 14px;
  /* 하단 고정 바(모바일 59px + 띄움 12px) 위로 18px 띄운다 */
  bottom: calc(89px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* 전화 상담 — 흰 배경 + 검은 아이콘/라벨 (아이콘 stroke 가 currentColor 라 color 로 함께 바뀐다) */
.fab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #18181b;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.55);
}

/* 실시간 상담 — 브랜드 포인트 레드오렌지 + 흰 아이콘/라벨 */
.fab-accent {
  background: #f02049;
  color: #fff;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(255, 62, 29, 0.45);
}

.fab-accent:hover {
  box-shadow:
    0 13px 30px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(255, 62, 29, 0.65);
}

.fab-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.fab-label {
  /* 모바일은 원이 52px 이라 라벨까지 넣으면 아이콘이 눌린다.
     라벨을 빼고 아이콘을 키운다 (버튼에 aria-label 이 있어 읽어 주는 데는 문제없다) */
  display: none;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: inherit;
}

.fab.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cta-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 86;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2px solid var(--neon);
  background: linear-gradient(180deg, #17171c 0%, #08080a 100%);
  /* 야광 네온 — 바깥 글로우 2단 + 안쪽 은은한 반사 */
  box-shadow:
    0 0 14px rgba(255, 45, 85, 0.55),
    0 0 42px rgba(255, 45, 85, 0.3),
    inset 0 0 16px rgba(255, 45, 85, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: neonPulse 2.6s ease-in-out infinite;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* 테두리를 훑고 지나가는 글로시 광택 */
.cta-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.18) 48%, rgba(255, 255, 255, 0.05) 54%, transparent 64%);
  background-size: 260% 100%;
  animation: glossSweep 4.2s linear infinite;
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow:
      0 0 14px rgba(255, 45, 85, 0.55),
      0 0 42px rgba(255, 45, 85, 0.3),
      inset 0 0 16px rgba(255, 45, 85, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  50% {
    box-shadow:
      0 0 22px rgba(255, 45, 85, 0.8),
      0 0 64px rgba(255, 45, 85, 0.45),
      inset 0 0 22px rgba(255, 45, 85, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@keyframes glossSweep {
  0% {
    background-position: 160% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

.cta-bar-inner {
  display: grid;
  /* 모바일도 시안처럼 한 줄 — 사이렌 / 문구 / 구분선 / 버튼 */
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 6px;
}

.cta-bar-siren {
  width: 30px;
  height: auto;
  /* 경광등이 깜빡이는 느낌 */
  animation: sirenBlink 1.1s steps(1, end) infinite;
}

@keyframes sirenBlink {
  0%,
  49% {
    filter: drop-shadow(0 0 7px rgba(255, 45, 85, 0.95));
  }
  50%,
  100% {
    filter: none;
  }
}

.cta-bar-copy {
  font-family: var(--disp);
  font-size: clamp(12.5px, 9.6px + 0.8vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  letter-spacing: -0.03em;
}

.cta-bar-copy .is-hot {
  color: var(--neon-soft);
}

/* 잔여 자리 수만 흰색 볼드 — 핑크 괄호 문구 안에서 숫자가 먼저 읽힌다.
   노랑은 이미 태그 배경과 '10개 브랜드' 가 쓰고 있어 한 번 더 쓰면 강조가 흩어진다 */
.cta-bar-copy .is-hot .cnt {
  font-size: 1.14em;
  font-weight: 800;
  color: #fff;
}

/* '마감 임박' 은 글자색 대신 태그로 — 노란 배경에 검정 글자 */
.cta-bar-copy .is-badge {
  display: inline-block;
  /* 본문보다 한 단계 작게 — 태그 배경까지 있어 같은 크기면 문구를 눌러 버린다 */
  font-size: 0.86em;
  padding: 0.14em 0.5em 0.2em;
  /* 배경이 붙어 있어 공백 한 칸만으로는 뒤 문구와 붙어 보인다 */
  margin-right: 0.15em;
  border-radius: 0.34em;
  background: var(--neon-yellow);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #09090b;
  white-space: nowrap;
}

.cta-bar-copy .is-point {
  color: var(--neon-yellow);
}

/* 모바일은 축약 문구만 — 본문 폰트(Pretendard) 흰색, 숫자만 노랑 */
.cta-bar-copy.is-full {
  display: none;
}

.cta-bar-copy.is-short {
  font-family: inherit;
  /* 글자 자연 폭은 7.93em. 남는 칸에 최대한 채우되 320px 에서도 넘치지 않는 값 */
  font-size: clamp(14px, 4.4px + 3vw, 21px);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.cta-bar-copy.is-short .is-num {
  font-size: 1.28em;
  font-weight: 800;
  color: var(--neon-yellow);
}

.cta-bar-div {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.22);
}

.cta-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 13px;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--neon-soft) 0%, var(--neon) 55%, #e0113c 100%);
  color: #fff;
  font-family: var(--disp);
  font-size: clamp(13px, 11.8px + 0.33vw, 16px);
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    0 4px 14px rgba(255, 45, 85, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.cta-bar-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.cta-bar.hide {
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

/* 애니메이션을 원치 않는 사용자 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .cta-bar,
  .cta-bar::after,
  .cta-bar-siren {
    animation: none;
  }
}

/* ==========================================================================
   데스크탑 (min-width: 769px)
   ========================================================================== */
@media screen and (min-width: 769px) {
  section {
    padding: 120px 0;
  }

  .hero {
    /* 118(위) + 45~48(아이브로우) + 26 + 155(타이틀) + 48 + 122(아래) ≈ 515 — 여유를 둬 505 */
    --hero-copy-h: 505px;
    /* 데스크탑에서만 첫 화면을 가득 채운다. svh 는 모바일 주소창 기준이라 넘치지 않는다 */
    min-height: 100vh;
    min-height: 100svh;
    padding: 118px 0 122px;
  }

  .hero-art {
    /* 폭을 '남은 세로 공간'에도 묶어 창이 낮아도 일러스트가 첫 화면 밖으로 밀려나지 않게 한다 */
    width: min(100%, 1440px, calc((100vh - var(--hero-copy-h)) * 2.878));
    width: min(100%, 1440px, calc((100svh - var(--hero-copy-h)) * 2.878));
    margin: 48px auto 0;
    aspect-ratio: 1100 / 368;
    background-size: 174.5% auto;
  }

  .worry {
    padding-top: 120px;
  }

  .worry-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 62px;
  }

  /* 모바일에서 잡아둔 2+1 배치를 3열로 되돌린다 */
  .worry-item:nth-child(1),
  .worry-item:nth-child(2),
  .worry-item:nth-child(3) {
    grid-row: auto;
    grid-column: auto;
    width: auto;
    margin: 0;
  }

  .worry-tag {
    font-size: clamp(20px, 17.65px + 0.652vw, 28px);
  }

  .worry-copy {
    font-size: clamp(15px, 13.53px + 0.408vw, 20px);
  }

  /* 3열이 되면 세 갈래를 모두 되살리고 폭 기준으로 되돌린다 */
  .answer-flow {
    max-width: 980px;
    overflow: visible;
    padding: 0;
    margin: 0 auto;
  }

  .answer-flow .is-l,
  .answer-flow .is-r {
    display: block;
  }

  .answer-flow svg {
    width: 100%;
    height: auto;
    left: auto;
    transform: none;
  }

  .worry-copy {
    margin-top: 18px;
  }

  .worry-img {
    margin-top: 28px;
  }

  .answer {
    margin-top: 2px;
  }

  .answer-title {
    /* 시안에서 타이틀 이미지는 콘텐츠 폭의 약 40% (454px = 원본 크기) */
    width: min(31%, 454px);
    margin-top: 30px;
  }

  .answer-cta {
    width: auto;
    padding: 18px 78px;
    margin-top: 15px;
  }

  .system-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 56px auto 0;
    overflow: visible;
  }

  .system-item {
    flex: none;
  }

  .system-list > .system-item:first-child,
  .system-list > .system-item:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .system-item {
    padding: 34px 26px 36px;
  }

  .system-copy {
    margin-top: 14px;
  }

  .brand-list {
    gap: 24px;
    margin-top: 52px;
  }

  .flow {
    /* 데스크탑은 폭이 넓어 등배에 가깝게 두면 충분하다 */
    background-size: 110% auto;
    padding-bottom: 21%;
  }

  .flow-list {
    max-width: 700px;
    margin-top: 52px;
  }

  .flow-step {
    /* 아이콘(104px) + 간격(28px) + 카드 */
    grid-template-columns: 104px 1fr;
    grid-template-areas: none;
    column-gap: 28px;
    justify-items: start;
    align-items: center;
    --icon-cx: 52px;
  }

  .flow-step + .flow-step {
    margin-top: 40px;
  }

  .flow-head {
    grid-area: auto;
    grid-column: 1 / -1;
    justify-self: center;
    justify-content: center;
    margin-bottom: 14px;
  }

  .flow-icon {
    grid-area: auto;
    width: 104px;
  }

  .flow-points {
    grid-area: auto;
    margin-top: 0;
    padding: 20px 24px;
  }

  .flow-link {
    /* 데스크탑은 아이콘이 카드 높이에 맞춰 세로 가운데로 오므로,
       화살표도 위/아래 아이콘 사이의 한가운데에 놓이도록 내린다 */
    bottom: -70px;
    width: 26px;
  }

  .final {
    padding: 120px 0;
  }

  .final {
    padding: 124px 0;
    /* 데스크탑은 가로가 넓어 원래대로 좌측 정렬 cover */
    background-position: left center;
    background-size: cover;
  }

  .final .inner {
    /* 카피(좌) + 상담폼(우).
       왼쪽을 1fr 로 두면 남는 폭을 전부 먹어 묶음이 오른쪽으로 밀린다.
       두 열 모두 내용 크기로 잡고 justify-content 로 묶음째 가운데 정렬한다 */
    grid-template-columns: auto minmax(360px, 440px);
    justify-content: center;
    gap: 112px;
    align-items: center;
  }

  .final-copy {
    text-align: left;
  }

  .final-copy::before {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.35) 64%, transparent 78%);
  }

  .final-title .br-desktop {
    display: inline;
  }

  .final-lead {
    margin-top: 24px;
  }

  .counsel-panel {
    max-width: none;
    margin: 0;
  }

  /* 시안의 폼은 세로로 촘촘하다. 바텀시트(.sheet)에는 영향이 없도록
     본문 마무리 영역의 폼에만 한정해서 여백을 줄인다 */
  .final .form_section {
    padding: 30px 28px;
  }

  .final .inputForm-wrapper {
    gap: 13px 14px;
  }

  .final .field label {
    font-size: 12.5px;
  }

  .final .field input,
  .final .field select,
  .final .field textarea {
    padding: 11px 13px;
    font-size: 14px;
  }

  .final .field textarea {
    min-height: 84px;
  }

  .final .dbInput-submit {
    margin-top: 14px;
    padding: 15px 20px;
    font-size: 15px;
  }

  .form_section {
    padding: 32px 30px 30px;
  }

  .inputForm-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
  }

  .field.is-full,
  .privacy_box.is-full {
    grid-column: 1 / -1;
  }

  /* 데스크탑에서는 한 줄로 — 사이렌 / 문구 / 구분선 / 버튼 */
  .cta-bar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100% - 32px, 1180px);
    padding: 12px 12px 12px 22px;
  }

  .cta-bar.hide {
    transform: translateX(-50%) translateY(calc(100% + 24px));
  }

  .cta-bar-inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
  }

  .cta-bar-siren {
    width: 50px;
  }

  .cta-bar-copy.is-full {
    display: block;
    /* 본문 폰트(Pretendard) 볼드 — 숫자·괄호가 섞인 문구라 Gmarket 보다 잘 읽힌다 */
    font-family: inherit;
    /* 문구 칸(1fr)은 769px 에서 약 437px, 1212px 이상에서 약 880px.
       Pretendard 볼드 기준 문구 자연 폭이 18.9em 이라 30px 까지 한 줄로 들어간다 */
    font-size: clamp(19px, -1.3px + 2.6vw, 30px);
  }

  .cta-bar-copy.is-short {
    display: none;
  }

  .cta-bar-btn {
    padding: 17px 42px;
    font-size: 19px;
  }

  .floating-actions {
    right: 13%;
    bottom: 117px;
    gap: 14px;
  }

  .fab {
    gap: 3px;
    width: 74px;
    height: 74px;
  }

  .fab-icon svg {
    width: 25px;
    height: 25px;
  }

  .fab-label {
    display: block;
    font-size: 11.5px;
  }

  /* 상담 바텀시트는 모바일 기준으로 만들어져 데스크탑에서 화면 전체 폭을 덮는다.
     본문 상담폼(.counsel-panel, 640px)과 비슷한 폭으로 가운데 정렬한다.
     left/right:0 + margin:auto 라 열림/닫힘 transform(translateY)은 그대로 쓸 수 있다 */
  .sheet-panel {
    max-width: 600px;
    margin: 0 auto;
    max-height: min(88vh, 760px);
  }

  footer {
    padding-bottom: 40px;
  }
}
