@font-face {
    font-family: "GmarketSansBold";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

/* 삼성 인터넷 등 일부 안드로이드 브라우저의 "텍스트 자동 크기 조정" 기능이
   좁은 화면에서 레이아웃을 임의로 재계산해 입력창이 카드 밖으로 삐져나가는 것을 방지 */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.promo-page {
    margin: 0;
    background: #100e0c;
    color: var(--color-white);
    font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.promo {
    position: relative;
    overflow: hidden;
}

.promo-bg {
    position: absolute;
    inset: 0;
    background: url("../img/promo/bg-texture.png") center top / cover no-repeat;
    z-index: 0;
}

.promo-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}

.promo-title {
    font-family: "GmarketSansBold", "Pretendard", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.3;
    color: #ffb900;
    margin-bottom: 16px;
}

.promo-subtitle {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 48px;
}

.promo-compare {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.promo-service {
    display: block;
    flex: 1;
    min-width: 260px;
    max-width: 460px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.promo-service:hover {
    transform: translateY(-4px);
}

/* 서비스 로고 배지 + 소개 PDF 다운로드 버튼 (한 줄, 좁으면 줄바꿈) */
.promo-service-head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.promo-service-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 999px;
    padding: 10px 20px;
    text-decoration: none;
}

.promo-badge img {
    height: 20px;
    display: block;
}

.promo-pdf-btn {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    height: 40px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.15s ease;
}

.promo-pdf-btn:hover {
    filter: brightness(0.9);
}

.promo-pdf-itamla {
    background: #274ea2;
}

.promo-pdf-thedeuk {
    background: #e21f26;
}

.promo-desc {
    font-size: 0.95rem;
    color: #d8d5d0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.promo-screenshot-frame {
    width: 100%;
    aspect-ratio: 1 / 2.15;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.promo-screenshot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.promo-compare-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    transition: max-height 0.35s ease;
}

.promo-compare-wrap.is-collapsed {
    max-height: 680px;
}

.promo-compare-wrap.is-expanded {
    max-height: none;
}

.promo-compare-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(rgba(16, 14, 12, 0), #100e0c);
    pointer-events: none;
    z-index: 1;
}

.promo-compare-wrap.is-expanded .promo-compare-fade {
    display: none;
}

.promo-compare-toggle {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2;
    background: var(--color-white);
    color: var(--color-ink);
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* 카드별 펼쳐보기 버튼: 모바일에서만 표시 (아래 720px 미디어쿼리) */
.promo-card-toggle {
    display: none;
    margin: 12px auto 0;
    background: var(--color-white);
    color: var(--color-ink);
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.promo-plus {
    align-self: center;
    font-size: 2rem;
    font-weight: 800;
    color: #ffb900;
    padding-top: 60px;
}

.promo-form-section {
    background: var(--color-white);
    color: var(--color-ink);
    border-radius: 24px;
    padding: 48px;
    text-align: left;
    max-width: 994px;
    margin: 0 auto;
}

.promo-form-section h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.promo-form-success {
    text-align: center;
    font-weight: 600;
    padding: 24px 0;
}

.promo-form-error {
    background: #fdeaea;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.promo-form label:not(.promo-consent-check) {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-ink-muted);
}

.promo-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.promo-form select,
.promo-form textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 10px 12px;
    border: 1px solid var(--color-border-tan);
    border-radius: 10px;
    color: var(--color-ink);
}

.form-full {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-ink-muted);
    margin-bottom: 24px;
}

.promo-consent {
    background: var(--color-cream);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.promo-consent h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.promo-consent-desc {
    font-size: 0.8rem;
    color: var(--color-ink-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.promo-consent-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.promo-form button {
    width: 100%;
}

.promo-photo-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.promo-photo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-photo-row .promo-photo-input {
    flex: 1;
    min-width: 0;
}

.promo-photo-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border-tan);
    flex-shrink: 0;
    cursor: pointer;
}

.promo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    cursor: zoom-out;
}

.promo-lightbox.is-open {
    display: flex;
}

.promo-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    cursor: default;
}

.promo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: auto;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
}

.promo-photo-row .promo-photo-remove {
    flex-shrink: 0;
    flex-grow: 0;
    width: auto;
    color: #c0392b;
    padding: 4px 8px;
}

#addPhotoBtn {
    width: auto;
}

/* Staff (internal) registration page */
.staff-page {
    background: var(--color-cream);
    min-height: 100vh;
}

.staff-inner {
    max-width: 994px;
    margin: 0 auto;
    padding: 0px;
}

.staff-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-ink);
    margin-bottom: 8px;
}

.staff-subtitle {
    color: var(--color-ink-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.staff-form-section {
    max-width: none;
    margin: 0;
}

.promo-landing-img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.gate-inner {
    max-width: 420px;
    text-align: center;
}

.gate-section {
    text-align: left;
}

@media (max-width: 991.98px) {
    .promo-screenshot-frame {
        aspect-ratio: auto;
    }

    .promo-screenshot {
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 720px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .promo-form-section {
        margin-left: -24px;
        margin-right: -24px;
        border-radius: 0;
        padding: 24px 16px;
    }

    .promo-compare {
        flex-direction: column;
        align-items: center;
    }

    /* 모바일: 두 카드가 세로로 쌓이므로 전체를 자르지 않고, 카드마다 화면 이미지만 접는다 */
    .promo-compare-wrap.is-collapsed {
        max-height: none;
    }

    .promo-compare-fade,
    .promo-compare-toggle {
        display: none;
    }

    .promo-card-toggle {
        display: block;
    }

    .promo-service:not(.is-open) .promo-screenshot-frame {
        position: relative;
        max-height: 300px;
    }

    .promo-service:not(.is-open) .promo-screenshot-frame::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 90px;
        background: linear-gradient(rgba(16, 14, 12, 0), #100e0c);
        pointer-events: none;
    }

    .promo-plus {
        padding-top: 0;
    }

    .promo-form-section {
        padding: 32px 24px;
    }

    .promo-landing-img {
        width: 100vw;
        max-width: 100vw;
        margin: -48px calc(50% - 50vw) 0;
    }
}
