@font-face {
  font-family: 'GmarketSans';
  font-style: normal;
  font-weight: 500;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
}

/* 기본 */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  padding-top: 0; /* ✅ 상단 여백 강제 제거 */
}

/* 랜딩 이미지: 세로로 쭉 */
.landing {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.landing img{
  display: block;
  width: 100%;
  height: auto;
}

/* ✅ 로고는 100% 규칙에서 제외 */
.hero .hero-logo{
  width: clamp(14px, 3.2vw, 26px) !important;
  height: auto;
}


/* =========================
   HERO (1.png + 로고 오버레이)
========================= */
.hero{
  position: relative;
  overflow: hidden; /* ✅ 로고가 바깥으로 튀면 잘라줌 */
}

.hero-bg{
  width: 100%;
  display: block;
}

/* 로고 공통 (✅ 위치 고정 + 애니 transform 충돌 해결 버전) */
.hero-logo{
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;

  /* ✅ 크기: "원래 이미지 속 작은 로고" 느낌 */
  width: clamp(14px, 3.2vw, 26px);

  /* ✅ 살짝 떠 보이게 */
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.22));

  /* ✅ transform 충돌 방지: 위치(translate) + 애니(변수) 분리 */
  --ty: 0px;
  --rot: 0deg;
  transform: translate(-50%, -50%) translateY(var(--ty)) rotate(var(--rot));
  will-change: transform;

  animation: floaty 4s ease-in-out infinite;
}

/* ✅ 네이버: 원래 작은 로고 자리(폰 상단 근처) */
.hero-logo.naver{
  top: 46%;
  left: 26%;
  animation-duration: 3.6s;
  animation-delay: -1.2s;
}

/* ✅ 쿠팡: 원래 작은 로고 자리(아래쪽) */
.hero-logo.coupang{
  top: 84%;
  left: 53%;
  animation-duration: 4.6s;
  animation-delay: -2.1s;
}

/* ✅ 둥둥 애니메이션 (위치 튐 없음) */
@keyframes floaty{
  0%   { --ty: 0px;  --rot: -1deg; }
  50%  { --ty: -7px; --rot:  2deg; }
  100% { --ty: 0px;  --rot: -1deg; }
}

/* 모바일에서 너무 바쁘지 않게 */
@media (max-width: 480px){
  .hero-logo{
    animation-duration: 5s;
  }
}

/* ==============================
   하단 고정 DB바
============================== */
:root{
  --dbbar-h: 118px; /* 제목 + 폼 + 동의 1줄 */
}
body{
  padding-bottom: calc(var(--dbbar-h) + 10px);
}

.dbbar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #252525;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.dbbar__inner{
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 10px;
}

/* ✅ 제목 (상품지수 무료진단 받기) */
.dbbar__title{
  text-align: center;
  margin-bottom: 8px;
  font-family: 'GmarketSans', sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.25;
}

/* ✅ '상품지수 무료진단'만 노란색 */
.dbbar__title .highlight{
  background: none;
  color: #ffcc00;
  padding: 0;
  margin-right: 4px;
  font-weight: 700;
}

/* ✅ 폼: 무조건 "가로 1줄" */
.dbbar__form{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

/* 인풋/셀렉트/버튼 */
.dbbar__form input,
.dbbar__form select{
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
  background: #fff;
  outline: none;
  min-width: 0;
}

.dbbar__form button{
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  background: #ffcc00;
  color: #000;
  cursor: pointer;
  white-space: nowrap;
}

/* ✅ 동의: 한 줄 유지 */
.dbbar__agree{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #fff;
  line-height: 1.2;
}

.dbbar__agree input[type="checkbox"]{
  width: 14px;
  height: 14px;
  accent-color: #ffcc00;
}

.dbbar__agreeText{
  cursor: pointer;
  user-select: none;
}

/* 작은 화면에서도 "한 줄 유지" */
@media (max-width: 380px){
  :root{ --dbbar-h: 112px; }

  .dbbar__title{ font-size: 20px; }

  .dbbar__form input,
  .dbbar__form select,
  .dbbar__form button{
    height: 38px;
    font-size: 12px;
    border-radius: 9px;
  }

  .dbbar__agree{ font-size: 10.5px; }
}

/* ===== 모달 ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
.modal.is-open{ display: block; }

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  max-height: 80vh;
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 10px;
  overflow: hidden;
}

.modal__title{
  margin: 0 0 10px;
  font-size: 16px;
}

.modal__content{
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  overflow: auto;
  max-height: 58vh;
  padding-right: 6px;
}

.modal__close{
  position: absolute;
  right: 10px;
  top: 6px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal__footer{
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.modal__ok{
  border: 0;
  background: #111;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
