/* 강릉커피스탬프 랜딩 — 모바일 퍼스트 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text);
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 모바일: 화면 전체 폭. 태블릿/PC: 최대 480 + 바깥 여백 */
.app-frame {
  width: 100%;
  max-width: var(--design-max);
  margin: 0 auto;
  background: #fff;
  position: relative;
  overflow-x: hidden;
  padding: 0;
  margin-bottom: 0;
}

@media (min-width: 481px) {
  body {
    /* 상·하 여백 없이 좌우만 */
    padding: 0 12px;
  }
  .app-frame {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    min-height: auto;
  }
}

/* ----- 히어로: 영상 + PNG 오버레이 (화면 최상단부터) ----- */
.hero-block {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1512;
  line-height: 0;
  margin: 0;
  padding: 0;
  display: block;
}

.hero-block__video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  background: #1a1512;
  display: block;
}

.hero-block__shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.25) 55%,
      rgba(0, 0, 0, 0.45) 100%
    );
}

.hero-block__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

.artboard {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: #fff;
  margin: 0;
  padding: 0;
}

.landing-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: top;
  user-select: none;
  -webkit-user-drag: none;
}

/* SVG 입력 박스는 HTML input으로 대체 */
.landing-svg .form-field {
  display: none;
}

.landing-form {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.overlay-field,
.overlay-hit {
  position: absolute;
  pointer-events: auto;
}

/* iOS 줌 방지를 위해 입력 16px 이상 */
.overlay-field {
  margin: 0;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  border: 1px solid #d4d3d3;
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: #3f3a3b;
  padding: 0 12px;
  line-height: normal;
  outline: none;
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
}

.overlay-field::placeholder {
  color: rgba(63, 58, 59, 0.42);
  font-size: 14px;
}

.overlay-field:focus {
  border-color: var(--brand-green);
  background: #fff;
  outline: none;
  box-shadow: none;
}

.overlay-hit {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: block;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.overlay-send,
.overlay-verify,
.overlay-submit { left:26.8519%; top:96.9743%; width:46.2963%; height:2.3369%; }

.overlay-send:active,
.overlay-verify:active,
.overlay-submit:active {
  background: rgba(0, 0, 0, 0.06);
}

/* 필수 동의 행 — 체크 아이콘+문구 영역 */
.overlay-agree1,
.overlay-agree2 {
  left: 8.3333%;
  width: 83.3333%;
}
.overlay-agree1 {
  top: 77.3234%;
  height: 2.8%;
}
.overlay-agree2 {
  /* 굿즈 동의 박스 상단(체크 아이콘)에 맞춤 — 기존 89.9%는 아이콘보다 아래라 탭이 먹히지 않음 */
  top: 87.7446%;
  height: 3.4%;
}
.overlay-agree1:active,
.overlay-agree2:active {
  background: rgba(236, 109, 86, 0.06);
}

.overlay-name { left:28.5231%; top:65.4446%; width:56.4815%; height:2.2139%; }
.overlay-phone { left:28.5231%; top:68.4732%; width:36.5741%; height:2.2139%; }
.overlay-send { left:66.7639%; top:68.4732%; width:18.2407%; height:2.2139%; }
.overlay-code { left:28.5231%; top:71.5033%; width:36.5741%; height:2.2139%; }
.overlay-verify { left:66.7639%; top:71.5033%; width:18.2407%; height:2.2139%; }
.overlay-submit { left:26.8519%; top:97.0707%; width:46.2963%; height:1.8071%; }

.issue-link {
  position: relative;
  width: auto;
  margin: 8px 20px 28px;
  pointer-events: auto;
  text-align: center;
  padding: 14px 14px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-sizing: border-box;
  z-index: 3;
}
.issue-link[hidden] { display: none !important; }
.issue-link__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3f3a3b;
  line-height: 1.3;
}
.issue-link__url {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #ec6d56;
  word-break: break-all;
  line-height: 1.45;
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 가로가 매우 좁을 때(320) 입력 글자 살짝 축소 — 줌은 막지 않음 */
@media (max-width: 340px) {
  .overlay-field {
    font-size: 15px;
    padding: 0 8px;
  }
}

/* ----- 푸터 (실제 텍스트) ----- */
.site-footer {
  background: #3f3a3b;
  color: #d0cece;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.site-footer__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: visible;
}

.site-footer__org {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #f0efef;
}

.site-footer__org strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer__org span {
  font-size: 10px;
  font-weight: 500;
  color: #c4c2c2;
  letter-spacing: 0.01em;
}

.site-footer__line {
  margin: 0 0 8px;
  color: #c9c7c7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer__gap {
  white-space: nowrap;
}

.site-footer__label {
  font-weight: 700;
  margin-right: 6px;
  color: #e8e6e6;
}

.site-footer__addr {
  line-height: 1.6;
}

.site-footer__copy {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 11px;
  color: #a9a7a7;
}

/* ----- 알림 모달 ----- */
.home-modal-dim {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
}
.home-modal-dim[hidden] {
  display: none !important;
}
.home-modal {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px 18px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.home-modal__msg {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: #3f3a3b;
  white-space: pre-line;
  word-break: keep-all;
}
.home-modal__ok {
  display: block;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #ec6d56;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.home-modal__ok:active {
  background: #e0553c;
}

@media (min-width: 481px) {
  .site-footer {
    padding: 28px 28px calc(24px + env(safe-area-inset-bottom, 0px));
    font-size: 12.5px;
  }
  .site-footer__logo {
    width: 44px;
    height: 44px;
  }
}
