/* 수출해주는 남자 랜딩 V1 */
:root {
  --navy: #0b1a33;
  --navy-2: #12284d;
  --navy-3: #1b3566;
  --gold: #f5b82e;
  --gold-2: #ffd56a;
  --gold-deep: #e39b12;
  --sky: #eef4fb;
  --ink: #0f1d36;
  --muted: #5d6b82;
  --red: #e0261f;
  --white: #fff;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 섹션 ---------- */
.landing { max-width: 1140px; margin: 0 auto; background: var(--navy); }
.sec { margin: 0; }
.pc-only img { width: 100%; }
.m-only { display: none; }

.disclaimer {
  margin: 0;
  padding: 12px 20px 16px;
  background: #f4f8fd;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- 푸터 ---------- */
.biz {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 26px;
  background: #081326;
  color: #a9b5c9;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.biz p { margin: 0; }
.biz-name { color: var(--gold); font-weight: 800; font-size: 15px; margin-bottom: 8px !important; }
.biz-info {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
}
.biz-info li { padding: 0 10px; position: relative; }
.biz-info li + li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 1px; height: 11px; margin-top: -5px;
  background: rgba(255, 255, 255, .22);
}
.biz-info li.addr { flex-basis: 100%; }
.biz-info li.addr::before { display: none; }
.biz-info .k { color: #7f8ca3; }
.biz-info .v { color: #d2dae7; }
.biz-links { margin-top: 10px !important; }
.biz-links a { color: #d2dae7; text-underline-offset: 3px; }
.biz-copy { margin-top: 6px !important; color: #6f7c93; font-size: 12px; }
.cta-spacer { height: 112px; }

/* ---------- 모바일 섹션 재구성 ---------- */
@media (max-width: 767px) {
  .pc-only { display: none; }
  .m-only { display: block; }

  /* 모바일 섹션 순서는 PC와 동일 (1→7, 문서 순서 그대로) */
  .landing { display: flex; flex-direction: column; }

  /* 이미지 제목: 약 84% 폭, 좌우 여백 */
  .m-crop.title { padding: 22px 0 10px; }
  .m-crop.title img { width: 84%; margin: 0 auto; }
  .sec-1 .m-crop.title, .sec-7 .m-crop.title:first-child { padding-top: 14px; }

  /* 반복 모델 이미지: 높이 축소, 가장자리 부드럽게 */
  .m-crop.model img {
    width: 76%;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }

  /* 2번 통계 비교: 카드 안쪽만 크롭 + CSS 카드 */
  .m-crop.stat {
    margin: 0 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fdfdfd;
    box-shadow: 0 2px 12px rgba(15, 29, 54, .08);
  }
  .m-crop.stat img { width: 100%; }
  /* 오른쪽 카드 크롭 폭(408px)을 왼쪽(474px)과 같은 배율로 표시 */
  .m-crop.stat.narrow img { width: 86%; }
  .sec-2 .m-vs { margin: -12px 0; }
  .sec-2 .m-vs span { width: 40px; height: 40px; font-size: 15px; box-shadow: 0 2px 8px rgba(15, 29, 54, .18); }
  .sec-2 .m-banner { margin-top: 16px; margin-bottom: 0; }
  .sec-2 .m-only { padding-bottom: 36px; }

  /* 3번 고환율: 원본 하늘색과 같은 배경, 제목 가장자리 흐림 */
  .sec-3 .theme-dark { background: #021c38; padding-top: 34px; }
  /* 제목 영역: 위아래·좌우 가장자리를 흐려 배경 경계 제거 (글자 영역은 그대로) */
  .sec-3 .m-crop.title {
    padding: 0;
    margin-top: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  }
  .m-crop.fade img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 98%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 98%, transparent 100%);
  }
  .sec-3 .m-text { padding: 10px 20px 24px; }

  /* 1열 가로형 정보 카드 */
  .m-hcards { display: grid; gap: 12px; padding: 6px 16px 22px; }
  .m-hcard {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(15, 29, 54, .08);
  }
  .m-hcard-img img { width: 100%; border-radius: 10px; }
  .m-hcard-text { display: grid; gap: 4px; }
  .m-hcard-text img { width: 100%; }
  .m-hcard .m-tip {
    grid-column: 1 / -1;
    margin: 0;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f2f6fc;
    color: #2a3a57;
    font-size: 15px;
    line-height: 1.5;
  }
  .theme-dark, .theme-split { background: #0a1730; color: var(--white); }
  .theme-light { background: var(--sky); color: var(--ink); }

  .m-crop img { width: 100%; }
  .m-crop.small { padding: 4px 0; }
  .m-crop.small img { width: 60%; margin: 0 auto; }
  .m-crop.small.right img { margin: 0 12px 0 auto; }
  .m-vs { display: flex; justify-content: center; margin: -6px 0; position: relative; z-index: 1; }
  .m-vs span {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy);
    font-weight: 900; font-size: 20px; box-shadow: 0 3px 10px rgba(15, 29, 54, .2);
  }
  .cmp-table tbody th, .cmp-table tfoot th { width: 36%; }
  .tone-light { background: var(--sky); }

  .m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 6px 16px 22px;
  }
  .theme-light .m-grid .m-cell, .m-grid.tone-light .m-cell {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 29, 54, .08);
  }
  .m-cell img { width: 100%; }
  .m-tip {
    margin: 0;
    padding: 4px 12px 14px;
    color: #2a3a57;
    font-size: 15px;
    line-height: 1.45;
  }

  .m-banner, .m-text, .m-sub {
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-line;
  }
  .m-banner {
    margin: 8px 16px 22px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--white);
  }
  .m-banner em, .m-text em { color: var(--gold-2); font-style: normal; font-weight: 700; }
  .m-text { padding-top: 6px; color: #e8edf6; }
  .m-sub { padding: 0 20px 8px; color: #2a3a57; font-size: 15px; }

  /* 5번 비교표 */
  .cmp { display: grid; gap: 12px; padding: 6px 16px 18px; }
  .cmp-card {
    background: var(--white);
    border-radius: 14px;
    padding: 14px 14px 16px;
    box-shadow: 0 3px 14px rgba(15, 29, 54, .1);
  }
  .cmp-tag {
    display: inline-block;
    margin: 0 0 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
  }
  .cmp-img img { width: 100%; max-width: 260px; margin: 0 auto; }
  .cmp-car { margin: 6px 0 10px; font-size: 19px; line-height: 1.3; color: var(--ink); }
  .cmp-car small { font-size: 15px; font-weight: 500; color: var(--muted); }
  .cmp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dfe6f0;
  }
  .cmp-table th, .cmp-table td { padding: 9px 8px; border-bottom: 1px solid #e7edf5; text-align: center; }
  .cmp-table tbody th, .cmp-table tfoot th { text-align: left; font-weight: 500; color: #2a3a57; }
  .cmp-table thead th { background: var(--navy-2); color: var(--white); font-weight: 700; }
  .cmp-table thead th.exp { background: var(--navy); color: var(--gold-2); }
  .cmp-table td.exp { background: #fff8e6; }
  .cmp-table .hi { color: var(--red); font-weight: 800; }
  .cmp-table tfoot th, .cmp-table tfoot td { border-bottom: 0; font-size: 16px; font-weight: 800; color: var(--ink); background: #f4f8fd; }
  .cmp-table tfoot td.exp { background: #ffefc4; color: var(--red); }
  .cmp-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
  .cmp-box { border-radius: 12px; overflow: hidden; border: 1px solid #dfe6f0; text-align: center; }
  .cmp-label { margin: 0; padding: 8px; background: var(--navy-2); color: var(--white); font-size: 18px; font-weight: 800; }
  .cmp-box.exp .cmp-label { background: var(--navy); }
  .cmp-price { margin: 0; padding: 12px 6px; font-size: 23px; font-weight: 900; color: var(--ink); }
  .cmp-price.hi { color: var(--red); }
  .cmp-vs-badge {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy);
    font-weight: 900; font-size: 16px;
  }
  .disclaimer { font-size: 13px; text-align: left; padding: 6px 18px 18px; background: var(--sky); }
  .biz { padding: 24px 18px 22px; text-align: left; font-size: 14px; }
  .biz-info { display: block; }
  .biz-info li { display: grid; grid-template-columns: 104px 1fr; gap: 8px; padding: 3px 0; }
  .biz-info li + li::before { display: none; }
  .cta-spacer { height: calc(72px + var(--safe-b)); }
}

/* ---------- 하단 고정 CTA (공통) ---------- */
.cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  color: var(--white);
  font-family: var(--font);
}
.cta-toggle, .cta-close { display: none; }
.cta input { font-family: inherit; }
.cta .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ico { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2; flex: none; }
label[for="cta-p2"] .ico { fill: var(--navy); stroke: none; }
.ico-chat { width: 26px; height: 26px; fill: var(--navy); flex: none; }

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 12px;
  padding: 7px 10px 7px 14px;
  color: var(--ink);
}
.field label {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 16px; white-space: nowrap; color: var(--ink);
}
.field label small { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .p-prefix {
  height: 42px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  min-width: 0;
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.f-name input { flex: 1; }
.phone { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.p-prefix { display: inline-flex; align-items: center; justify-content: center; background: #f3f6fa; font-weight: 700; width: 64px; }
.phone input { width: 0; flex: 1; text-align: center; letter-spacing: 2px; }
.dash { color: var(--muted); }

.cta-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: var(--navy);
  font-family: inherit;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 184, 46, .35);
  white-space: nowrap;
}
.cta-submit:disabled { opacity: .7; cursor: progress; }
.cta-submit:focus-visible, .cta-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

.consent { position: relative; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #2f6bff; margin: 0; flex: none; }
.check em { font-style: normal; color: var(--gold-2); }
.consent-links { display: inline-flex; align-items: center; gap: 14px; margin-left: 14px; }
.consent-links::before { content: ""; width: 1px; height: 14px; background: rgba(255,255,255,.35); }
.link {
  border: 0; background: none; padding: 0; color: #dfe6f3; font: inherit; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-links a { color: #dfe6f3; text-underline-offset: 3px; }
.consent-detail {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.consent-detail dl { display: grid; grid-template-columns: 112px 1fr; gap: 6px 10px; margin: 0; }
.consent-detail dt { font-weight: 700; color: var(--navy); }
.consent-detail dd { margin: 0; }
.consent-detail .note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.cta-msg { margin: 0; min-height: 0; color: #ffd0cc; font-size: 14px; font-weight: 600; }
.cta-msg:empty { display: none; }

.cta-done { text-align: center; padding: 6px 0; outline: none; }
.done-title { margin: 0 0 4px; font-size: 20px; font-weight: 900; color: var(--gold-2); }
.done-text { margin: 0; font-size: 15px; color: #e8edf6; }

/* ---------- PC CTA (2줄 슬림) ---------- */
@media (min-width: 1024px) {
  /* 메인 히어로: 신청창을 뺀 화면 높이 안에 들어오도록 폭 제한 (원본 크롭 비율 1536:970) */
  .sec-1 .pc-only { width: min(100%, clamp(900px, calc((100vh - 116px) * 1.5835), 1140px)); margin: 0 auto; }

  .cta { background: var(--navy); }
  .cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 24px 10px 20px;
    background:
      linear-gradient(90deg, var(--navy) 0%, var(--navy) 72%, rgba(11, 26, 51, .6) 100%),
      url("/img/cta-ship.webp?v=2") right center / auto 100% no-repeat,
      var(--navy);
    border-top: 1px solid rgba(255, 213, 106, .25);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .35);
  }
  .cta-brand { padding-right: 16px; border-right: 1px solid rgba(255,255,255,.18); }
  .cta-brand img { width: 96px; height: auto; }
  .cta-form {
    display: grid;
    grid-template-columns: 236px minmax(200px, 1fr) minmax(300px, 1.35fr) auto;
    grid-template-areas:
      "head name phone submit"
      "head consent consent msg";
    gap: 6px 12px;
    align-items: center;
  }
  .cta-head { grid-area: head; display: flex; flex-direction: column; gap: 2px; }
  .cta-title { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -0.4px; line-height: 1.3; }
  .cta-title em { font-style: normal; color: var(--gold-2); }
  .cta-sub { margin: 0; font-size: 13px; color: #dfe6f3; line-height: 1.4; }
  .pc-br { display: none; }
  .cta-fields { display: contents; }
  .f-name { grid-area: name; }
  .f-phone { grid-area: phone; }
  .field { padding: 5px 8px 5px 12px; gap: 8px; }
  .field label { font-size: 15px; }
  .field input, .p-prefix { height: 38px; font-size: 15px; }
  .p-prefix { width: 56px; }
  .cta-submit { grid-area: submit; height: 50px; padding: 0 22px; font-size: 17px; }
  .cta-submit .ico-chat { width: 22px; height: 22px; }
  .consent { grid-area: consent; position: static; font-size: 13px; }
  .check input { width: 18px; height: 18px; }
  .cta-msg { grid-area: msg; text-align: right; font-size: 13px; }
  .consent-detail {
    position: absolute;
    left: 150px; bottom: calc(100% + 10px);
    width: min(640px, 70vw);
    max-height: 50vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .cta-done { grid-column: 2; }
}

@media (min-width: 1440px) {
  .cta-form { grid-template-columns: 300px minmax(200px, 1fr) minmax(300px, 1.35fr) auto; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .cta-brand { display: none; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 190px minmax(180px, 1fr) minmax(280px, 1.35fr) auto; }
  .cta-title { font-size: 18px; }
  .cta-sub { display: none; }
  .cta-done { grid-column: 1; }
}

/* ---------- 태블릿·모바일 CTA ---------- */
@media (max-width: 1023px) {
  .cta { bottom: var(--kb, 0px); }
  .cta-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: calc(100% - 24px);
    max-width: 560px;
    height: 56px;
    margin: 0 auto calc(8px + var(--safe-b));
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
    color: var(--navy);
    font-family: inherit;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    cursor: pointer;
  }
  .cta-toggle .ico-chat { width: 22px; height: 22px; }
  .cta-toggle .arrow { font-size: 18px; }
  .cta-panel { display: none; }
  .cta.open .cta-toggle { display: none; }
  .cta.open::before {
    content: "";
    position: fixed; inset: 0;
    background: rgba(5, 12, 26, .45);
    z-index: -1;
  }
  .cta.open .cta-panel {
    display: block;
    position: relative;
    max-width: 560px;
    max-height: calc(100dvh - 40px - var(--kb, 0px));
    margin: 0 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px calc(16px + var(--safe-b));
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, var(--navy-2), var(--navy) 40%);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .4);
  }
  .cta-close {
    display: grid; place-items: center;
    position: absolute; top: 8px; right: 8px;
    width: 40px; height: 40px;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.1); color: var(--white);
    font-size: 26px; line-height: 1; cursor: pointer;
  }
  .cta-brand { display: none; }
  .cta-head { padding-right: 40px; margin-bottom: 12px; }
  .cta-title { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; }
  .cta-title em { font-style: normal; color: var(--gold-2); }
  .cta-sub { margin: 4px 0 0; font-size: 15px; color: #dfe6f3; }
  .pc-br { display: none; }
  .cta-fields { display: grid; gap: 10px; }
  .field { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px 12px; }
  .field input, .p-prefix { height: 46px; font-size: 17px; }
  .consent { margin: 12px 0; }
  .consent-links { display: flex; margin: 8px 0 0 28px; gap: 14px; flex-wrap: wrap; }
  .consent-links::before { display: none; }
  .consent-detail dl { grid-template-columns: 1fr; gap: 2px; }
  .consent-detail dd { margin-bottom: 6px; }
  .cta-submit { width: 100%; height: 56px; font-size: 19px; }
  .cta-msg { margin-top: 8px; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .cta-submit, .cta-toggle { transition: transform .12s ease, filter .12s ease; }
  .cta-submit:hover, .cta-toggle:hover { filter: brightness(1.05); }
  .cta-submit:active, .cta-toggle:active { transform: translateY(1px); }
}
