/* 커스팅 홈페이지 공통 스타일 — 프로그램(커스팅 PC) 화면의 색과 질감을 그대로 가져옵니다. */
:root {
    --night: #0f172a;
    --night-deep: #0a1122;
    --panel: #1b2537;
    --panel-2: #222e44;
    --rule: #2e3b54;
    --ink: #e8edf5;
    --fog: #97a3b8;
    --fog-2: #b9c3d3;
    --green: #12c87a;
    --green-deep: #0ea765;
    --green-ink: #062b1a;
    --amber: #f5b301;

    /* 채널 색 — 프로그램의 종류 배지와 같은 값 */
    --ch-shop: #03c75a;
    --ch-tour: #3b82f6;
    --ch-coupang: #346aff;
    --ch-ali: #e62e04;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --wrap: 1180px;
    --font: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--night);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
img[srcset] { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 40000;
    padding: 10px 16px; border-radius: var(--r-md);
    background: #fff; color: var(--night); font-weight: 700;
    transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* ───────── 헤더 ───────── */
.site-header {
    position: sticky; top: 0; z-index: 9999;
    background: rgba(10, 17, 34, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.site-header .logo img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 24px; margin-left: 8px; }
.site-nav a { font-size: 15px; font-weight: 600; color: var(--fog-2); padding: 8px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-cta {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 14px; border-radius: var(--r-md);
    border: 1px solid var(--rule); font-size: 14px; font-weight: 700; color: var(--ink);
}
.header-cta:hover { border-color: var(--green); color: #fff; }

/* 구글 로그인 영역 (기존 스크립트가 채움) */
.glogin-topright { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.glogin-user-badge {
    max-width: 200px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; line-height: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.glogin-logout, .glogin-myinfo {
    padding: 4px 6px; font-size: 12px; color: var(--green); text-decoration: underline; text-underline-offset: 3px;
}

/* ───────── 버튼 ───────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 22px; border-radius: var(--r-md);
    font-size: 16px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn i { font-size: 19px; font-weight: 400; }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: #2ee193; }
.btn-line { border: 1px solid var(--rule); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn-line:hover { border-color: var(--fog); color: #fff; }
.btn-text { min-height: 44px; padding: 0 4px; color: var(--fog-2); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.btn-text:hover { color: #fff; }

/* ───────── 채널 배지 (프로그램 종류 칸과 동일) ───────── */
.kind {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 5px; border: 1px solid;
    font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.kind.shop { background: rgba(3, 199, 90, .14); border-color: var(--ch-shop); color: #6ee7b7; }
.kind.tour { background: rgba(10, 124, 255, .14); border-color: var(--ch-tour); color: #93c5fd; }
.kind.coupang { background: rgba(52, 106, 255, .16); border-color: var(--ch-coupang); color: #bfdbfe; }
.kind.ali { background: rgba(230, 46, 4, .16); border-color: var(--ch-ali); color: #fca5a5; }

/* ───────── 섹션 공통 ───────── */
.section { padding: 112px 0; }
.section.tint { background: var(--night-deep); border-block: 1px solid rgba(255, 255, 255, .05); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.3; letter-spacing: -1.4px; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--fog); line-height: 1.8; }
.section-head.center { margin-inline: auto; text-align: center; }

/* 프로그램 창 프레임 — 실제 화면 캡처를 담는 틀 */
.window {
    position: relative; border-radius: 14px; overflow: hidden;
    background: #111a2c; border: 1px solid #33425e;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.window-bar {
    display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
    background: #182238; border-bottom: 1px solid #2c3a55;
    font-size: 13px; color: var(--fog); font-weight: 600;
}
.window-bar img { height: 20px; width: auto; }
.window-bar span:last-child { margin-left: auto; font-weight: 500; font-size: 12px; }
.window > img { width: 100%; height: auto; }
.shot { border-radius: var(--r-md); border: 1px solid #33425e; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); background: #1e293b; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--fog); line-height: 1.7; }

/* ───────── 푸터 ───────── */
.footer { padding: 56px 0 72px; border-top: 1px solid rgba(255, 255, 255, .06); background: var(--night-deep); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-logo img { height: 36px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--fog); }
.footer-links a:hover { color: #fff; }
.footer-text { font-size: 13px; color: #6f7c93; margin-left: auto; }
.footer-text a { text-decoration: underline; text-underline-offset: 3px; }
.social-links { display: flex; gap: 10px; }
.social-link {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--rule); color: var(--fog-2); font-size: 18px;
}
.social-link:hover { color: #fff; border-color: var(--fog); }

.kakao-floating { position: fixed; right: 20px; bottom: 20px; z-index: 10000; }
.kakao-floating a {
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: rgba(10, 17, 34, .85); border: 1px solid var(--rule);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.kakao-floating img { width: 34px; height: 34px; }

@media (max-width: 900px) {
    .site-nav { display: none; }
    .section { padding: 80px 0; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 32px); }
    .site-header .wrap { height: 60px; gap: 12px; }
    .site-header .logo img { height: 34px; }
    .header-cta { display: none; }
    .section-head { margin-bottom: 36px; }
    .section-head p { font-size: 16px; }
    .btn { min-height: 48px; padding: 0 18px; font-size: 15px; }
    .footer-text { margin-left: 0; }
    .kakao-floating { right: 14px; bottom: 14px; }
    .kakao-floating a { width: 50px; height: 50px; }
    .kakao-floating img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
