@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* 이음북 IEUMBOOK Design System — 민트(#6ec7b6) + 모노크롬, 화이트 기반
   토큰 "이름"은 관리자 요금제 badge_color 매핑이 참조하므로 유지, 값만 교체 */
:root {
    /* Mint Primary (#6ec7b6) */
    --saas-primary-h: 168;
    --saas-primary-s: 44%;
    --saas-primary-l: 61%;
    --saas-primary: hsl(var(--saas-primary-h), var(--saas-primary-s), var(--saas-primary-l));
    --saas-primary-dark: hsl(172, 45%, 38%);
    --saas-primary-light: hsl(168, 44%, 95%);

    /* Deep Teal (보조/호버) */
    --saas-secondary-h: 172;
    --saas-secondary-s: 40%;
    --saas-secondary-l: 35%;
    --saas-secondary: hsl(var(--saas-secondary-h), var(--saas-secondary-s), var(--saas-secondary-l));

    /* Ink (구 accent — 무채색화) */
    --saas-accent-h: 210;
    --saas-accent-s: 15%;
    --saas-accent-l: 12%;
    --saas-accent: hsl(var(--saas-accent-h), var(--saas-accent-s), var(--saas-accent-l));

    --saas-bg: #ffffff;
    --saas-bg-alt: #f7f8f8;
    --saas-surface: #ffffff;

    --saas-text: #121417;
    --saas-text-muted: #5b6461;

    --saas-border: #eceeee;
    --saas-border-hover: #d8dcdb;

    /* 보더 중심 미니멀 — 그림자 최소화 */
    --saas-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    --saas-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.06);
    --saas-shadow-md: 0 6px 16px -6px rgb(0 0 0 / 0.08);
    --saas-shadow-lg: 0 12px 28px -10px rgb(0 0 0 / 0.10);
    --saas-shadow-xl: 0 20px 40px -16px rgb(0 0 0 / 0.14);
    --saas-shadow-primary: 0 8px 20px -6px hsla(var(--saas-primary-h), var(--saas-primary-s), 45%, 0.25);

    /* Layout & Misc */
    --saas-radius-sm: 4px;
    --saas-radius: 10px;
    --saas-radius-lg: 14px;
    --saas-radius-full: 9999px;

    --saas-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --saas-header-h: 76px;
    --saas-announcement-h: 38px;
    --saas-announcement-current-h: var(--saas-announcement-h);
    --saas-top-stack-h: calc(var(--saas-header-h) + var(--saas-announcement-h));
    --saas-sticky-stack-h: calc(var(--saas-header-h) + var(--saas-announcement-current-h));

    /* 신규 프론트 토큰 */
    --fr-ink: #121417;
    --fr-gray-1: #f7f8f8;
    --fr-gray-2: #eceeee;
    --fr-gray-3: #9aa3a1;
    --fr-gray-4: #5b6461;
    --fr-sec-pad: clamp(90px, 12vw, 160px);
}

/* Base Optimization */
html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--saas-sticky-stack-h) + 16px);
}

body.saas-landing {
    font-family: var(--saas-font);
    color: var(--saas-text);
    background: var(--saas-bg);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.saas-landing:not(.embed-mode) {
    min-height: 100dvh;
}

/* 첫 화면(히어로) = 뷰포트 높이에서 공지 배너와 헤더 높이를 뺀 나머지 */
.saas-landing-screen {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: calc(100vh - var(--saas-top-stack-h));
    min-height: calc(100vh - var(--saas-top-stack-h));
    height: calc(100svh - var(--saas-top-stack-h));
    min-height: calc(100svh - var(--saas-top-stack-h));
    height: calc(100dvh - var(--saas-top-stack-h));
    min-height: calc(100dvh - var(--saas-top-stack-h));
}

.saas-landing-screen .hero-ed--photo {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* ===== Announcement + Header & Nav ===== */
.front-header-stack {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* 공지 배너와 헤더가 접혀도 문서 흐름의 높이는 유지한다.
       sticky 요소 높이 변화가 scrollY를 되돌려 상태가 반복 토글되는 현상을 방지한다. */
    height: var(--saas-top-stack-h);
    pointer-events: none;
}

.front-announcement {
    height: var(--saas-announcement-current-h);
    overflow: hidden;
    background: #121417;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: height 0.28s ease, opacity 0.2s ease, border-color 0.2s ease, visibility 0s linear 0s;
}

html.front-announcement-hidden {
    --saas-announcement-current-h: 0px;
}

html.front-announcement-hidden .front-announcement {
    opacity: 0;
    border-bottom-color: transparent;
    pointer-events: none;
    visibility: hidden;
    transition-delay: 0s, 0s, 0s, 0.28s;
}

html.front-announcement-hidden .front-announcement-track {
    animation-play-state: paused;
}

.front-announcement-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.front-announcement-link:focus-visible {
    outline: 2px solid var(--saas-primary);
    outline-offset: -3px;
}

.front-announcement-viewport {
    display: block;
    width: 100%;
    overflow: hidden;
}

.front-announcement-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: frontAnnouncementRoll 26s linear infinite;
    will-change: transform;
}

.front-announcement-link:hover .front-announcement-track,
.front-announcement-link:focus-visible .front-announcement-track {
    animation-play-state: paused;
}

.front-announcement-group {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-around;
    min-width: 100vw;
    box-sizing: border-box;
    gap: 28px;
    padding-right: 28px;
    white-space: nowrap;
}

.front-announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.front-announcement-item.is-cta {
    color: var(--saas-primary);
    font-weight: 800;
}

.front-announcement-badge {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--saas-primary);
    color: #121417;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.front-announcement-dot {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
}

@keyframes frontAnnouncementRoll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.saas-header {
    height: var(--saas-header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 5%;
    background: hsla(0, 0%, 100%, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    z-index: 1;
    pointer-events: auto;
    border-bottom: 1px solid var(--saas-border);
    transition: all 0.3s ease;
}

.saas-header.scrolled {
    background: hsla(0, 0%, 100%, 0.9);
    height: 70px;
    box-shadow: var(--saas-shadow-sm);
}

.saas-logo {
    text-decoration: none;
    justify-self: start;
    display: flex;
    align-items: center;
}

.saas-logo-img {
    height: 58px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.saas-logo:hover .saas-logo-img {
    opacity: 0.85;
}

.saas-nav {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-self: center;
}

.saas-nav-content {
    display: contents;
}

.saas-header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 데스크탑: 우측 버튼 표시 / 모바일용 버튼 숨김 */
.saas-cta-desktop { display: inline-flex !important; }
.saas-cta-mobile  { display: none !important; }

.saas-nav-mobile-header,
.saas-backdrop {
    display: none;
}

.saas-nav-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 0;
    margin-left: 12px;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 14px;
    transition: background 0.25s ease;
    color: var(--saas-text-muted);
}

.saas-nav-toggle:hover {
    background: rgba(110, 199, 182, 0.08);
}

.saas-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    border-radius: 1px;
}

.saas-nav-toggle span::before,
.saas-nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease;
}

.saas-nav-toggle span::before {
    top: -7px;
}

.saas-nav-toggle span::after {
    top: 7px;
}

.saas-header.nav-open .saas-nav-toggle span {
    background: transparent;
}

.saas-header.nav-open .saas-nav-toggle span::before {
    transform: rotate(45deg) translate(2px, 2px);
}

.saas-header.nav-open .saas-nav-toggle span::after {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* 패드 및 모바일 대응 (전체적인 한 줄 레이아웃 유지) */
@media (max-width: 1024px) {
    :root {
        --saas-header-h: 70px;
    }

    .saas-header {
        height: 70px;
        padding: 0 3%;
        gap: 10px;
    }

    .saas-nav {
        gap: clamp(8px, 1.5vw, 20px);
        /* 화면 너비에 따라 간격 유동적 조절 */
    }

    .saas-logo-img {
        height: clamp(42px, 6vw, 55px);
    }

    .saas-nav-link {
        font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    }

    .saas-btn {
        padding: 8px 16px;
        font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    }
}

@media (max-width: 640px) {
    :root {
        --saas-announcement-h: 40px;
    }

    .front-announcement-track {
        animation-duration: 22s;
    }

    .front-announcement-group {
        gap: 22px;
        padding-right: 22px;
    }

    .front-announcement-item {
        font-size: 0.77rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .front-announcement {
        transition: none;
    }

    .front-announcement-track {
        width: 100%;
        animation: none;
        transform: none;
        justify-content: center;
    }

    .front-announcement-group {
        min-width: 0;
        padding: 0 14px;
        justify-content: center;
    }

    .front-announcement-group.is-clone,
    .front-announcement-group .front-announcement-dot,
    .front-announcement-group .front-announcement-item:not(:first-of-type) {
        display: none;
    }
}

@media (max-width: 900px) {
    .saas-nav-toggle {
        display: flex;
    }

    /* 모바일: 우측 데스크탑 버튼 숨기고 패널 내 버튼 표시 */
    .saas-cta-desktop { display: none !important; }
    .saas-cta-mobile  { display: flex !important; }

    /* 모바일: 좌측 패널형 메뉴 */
    .saas-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: 72vw;
        max-width: 420px;
        height: 100vh;
        background: #fff;
        flex-direction: row;
        gap: 0;
        padding: 24px 0 24px 0;
        z-index: 10001;
        box-shadow: 12px 0 50px rgba(15, 23, 42, 0.12);
        transform: translateX(-100%);
        will-change: transform, opacity;
        overflow-y: auto;
    }

    /* remove left icons column for this layout */
    .saas-nav-left-col,
    .saas-nav-icons,
    .saas-nav-icon,
    .saas-badge {
        display: none;
    }

    .saas-nav-content {
        flex: 1 1 auto;
        padding: 8px 24px 24px 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .saas-nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        margin-bottom: 12px;
    }

    .saas-nav-mobile-brand {
        font-size: 1rem;
        font-weight: 800;
        color: var(--saas-text);
        text-decoration: none;
        letter-spacing: 0.02em;
        margin: 0 auto;
    }

    .saas-nav-close {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 12px;
        background: transparent;
        color: var(--saas-text-muted);
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
        position: absolute;
        right: 0;
        top: 0;
    }

    .saas-nav-close span {
        position: relative;
        display: block;
        width: 18px;
        height: 18px;
        background: transparent;
    }

    .saas-nav-close span::before,
    .saas-nav-close span::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 18px;
        height: 2px;
        background: currentColor;
        transform-origin: center;
    }

    .saas-nav-close span::before {
        transform: translateY(-50%) rotate(45deg);
    }

    .saas-nav-close span::after {
        transform: translateY(-50%) rotate(-45deg);
    }

    .saas-header.nav-open {
        background: transparent;
    }

    .saas-header.nav-open .saas-logo,
    .saas-header.nav-open .saas-header-right {
        opacity: 0;
        pointer-events: none;
    }

    .saas-header.nav-open .saas-nav {
        /* GSAP가 애니메이션을 담당함 */
    }

    .saas-nav-link {
        width: 100%;
        display: block;
        padding: 18px 0;
        border-radius: 0;
        color: #475569;
        background: transparent;
        font-weight: 700;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .saas-cta-link {
        background: var(--saas-primary);
        color: #fff;
        justify-content: center;
        border-radius: 18px;
        padding: 14px 0;
        font-weight: 800;
        width: 100%;
        margin-top: 18px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .saas-cta-link:hover {
        background: #2563eb;
        color: #fff;
    }

    .saas-nav-link:hover {
        background: #e2e8f0;
        color: #0f172a;
        transform: none;
    }

    .saas-nav-link::after {
        display: none;
    }

    .saas-nav-dropdown {
        width: 100%;
    }

    .saas-dropdown-content {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        min-width: auto;
        border-radius: 0;
    }

    .saas-dropdown-content::before {
        display: none;
    }

    .saas-dropdown-content a {
        display: block;
        padding: 12px 14px;
        margin: 0 0 8px;
        border-radius: 12px;
        background: #f8fafc;
        color: #0f172a;
    }

    .saas-dropdown-content a:last-child {
        margin-bottom: 0;
    }

    .saas-dropdown-title {
        color: #64748b;
        padding: 0 0 12px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    /* backdrop to mask the remaining viewport on menu open */
    .saas-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 72vw;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.04);
        z-index: 10000;
    }

    .saas-header.nav-open .saas-backdrop {
        display: block;
    }
}

/* 7인치 패드 세로 및 소형 모바일 (약 600px 이하) 추가 최적화 */
@media (max-width: 640px) {
    .saas-header {
        padding: 0 10px;
        gap: 5px;
    }

    .saas-nav {
        gap: 8px;
    }

    .saas-logo-img {
        height: 40px;
    }

    .saas-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.saas-nav-link {
    position: relative;
    text-decoration: none;
    color: var(--saas-text-muted);
    font-weight: 600;
    font-size: 0.9375rem;
    padding-bottom: 3px;
    display: inline-flex;
    align-items: center;
    transition: color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 그라디언트 언더라인 — 왼쪽에서 오른쪽으로 슬라이드인 */
.saas-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--saas-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.saas-nav-link:hover {
    color: var(--saas-primary);
    transform: translateY(-2px);
}

.saas-nav-link:hover::after {
    transform: scaleX(1);
}

/* CTA inside nav */
.saas-cta-link {
    padding: 8px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 드롭다운 chevron 회전 */
.saas-nav-dropdown .saas-nav-link i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.saas-nav-dropdown:hover .saas-nav-link i {
    transform: rotate(180deg);
}

.saas-btn {
    padding: 12px 28px;
    border-radius: var(--saas-radius-full);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.saas-btn-primary {
    background: var(--saas-primary);
    color: #fff;
    box-shadow: var(--saas-shadow-primary);
}

.saas-btn-primary:hover {
    background: var(--saas-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px hsla(var(--saas-primary-h), var(--saas-primary-s), var(--saas-primary-l), 0.4);
}

.saas-btn-primary:active {
    transform: translateY(0);
}

.saas-btn-pink {
    background: var(--fr-ink);
    color: #fff;
    box-shadow: none;
    border: none;
}

.saas-btn-pink:hover {
    background: #2a2f33;
    transform: translateY(-2px);
    box-shadow: var(--saas-shadow-md);
}

/* Nav Button Style */
.saas-btn-support {
    padding: 8px 18px;
    border-radius: 12px;
    background: hsla(var(--saas-primary-h), var(--saas-primary-s), var(--saas-primary-l), 0.1);
    color: var(--saas-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid hsla(var(--saas-primary-h), var(--saas-primary-s), var(--saas-primary-l), 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.saas-btn-support:hover {
    background: var(--saas-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(var(--saas-primary-h), var(--saas-primary-s), var(--saas-primary-l), 0.25);
}

/* Dropdown System */
.saas-nav-dropdown {
    position: relative;
    display: inline-block;
    font-family: var(--saas-font);
}

.saas-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.06));
}

.saas-dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff;
    min-width: 180px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
    opacity: 0;
    visibility: hidden;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 16px 16px;
    z-index: 1100;
}

.saas-nav-dropdown:hover .saas-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 드롭다운 타이틀 */
.saas-dropdown-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    padding: 0 8px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.saas-dropdown-content a {
    display: block;
    padding: 9px 8px;
    text-decoration: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.saas-dropdown-content a:hover {
    background: #f8faff;
    color: var(--saas-primary-dark);
}

/* 뱃지 (EVENT 등) */
.saas-dropdown-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 100px;
    background: var(--saas-primary-dark);
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}

/* ===== Hero Section (Legacy – fallback) ===== */
.saas-hero {
    padding: 120px 5% 80px;
    text-align: center;
    background: radial-gradient(circle at top left, #f3f4ff 0%, #ffffff 50%);
}

.saas-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #eef2ff;
    color: var(--saas-primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8125rem;
    margin-bottom: 24px;
}

.saas-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.saas-hero-title span {
    background: linear-gradient(90deg, var(--saas-primary), var(--saas-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.saas-hero-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.125rem;
    color: var(--saas-text-muted);
}

/* ===== Hero Section – Editorial ===== */
.hero-ed {
    background: #f0ede8;
    overflow: hidden;
    position: relative;
    padding: 0;
    min-height: 620px;
}

/* 메인 히어로(포토): 배경 등은 index.php <head> */
.hero-ed--photo {
    box-sizing: border-box;
    position: relative;
    background-color: var(--saas-primary-light);
}

.hero-ed--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, hsla(var(--saas-primary-h), var(--saas-primary-s), var(--saas-primary-l), 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, hsla(var(--saas-secondary-h), var(--saas-secondary-s), var(--saas-secondary-l), 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Premium Pink Badge */
.hero-ed-badge-circle {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 12px 48px rgba(255, 0, 128, 0.4);
    animation: heroBadgeFloat 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes heroBadgeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.hero-ed-badge-circle span {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-ed-inner {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-ed--photo .hero-ed-inner--photo-simple {
    padding: 0;
    min-height: 0;
}

/* 하단 중앙: 무료로 시작하기 */
.hero-ed-cta--photo-corner {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: max-content;
    max-width: calc(100% - 32px);
    z-index: 10;
}

.hero-ed-cta--photo-corner .saas-btn {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Hero Content Styling */
.hero-ed-content {
    position: absolute;
    top: 35%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 5;
    padding-right: 20px;
}

.hero-ed-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--saas-text);
    letter-spacing: -0.04em;
}

.hero-ed-desc {
    font-size: 1.25rem;
    color: var(--saas-text-muted);
    margin-bottom: 32px;
}

.hero-ed-actions {
    display: flex;
    gap: 16px;
}

.text-primary {
    color: var(--saas-primary) !important;
}

.saas-btn-outline {
    background: hsla(0, 0%, 100%, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--saas-text);
    border: 1px solid var(--saas-border);
}

.saas-btn-outline:hover {
    background: #fff;
    border-color: var(--saas-primary);
    color: var(--saas-primary);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .hero-ed-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        max-width: 100%;
        padding: 80px 5% 40px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-ed-actions {
        justify-content: center;
    }
}



.hero-ed-badge--photo-corner {
    position: absolute;
    right: -78px;
    bottom: calc(32% + 250px);
    z-index: 4;
}

@media (max-width: 1024px) {
    .hero-ed-cta--photo-corner {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin: 20px auto 60px;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-ed-badge--photo-corner {
        display: none;
    }
}








/* ===== Pricing Section ===== */
.saas-pricing {
    padding: 100px 5%;
    background: var(--saas-bg-alt);
}

.saas-section-head {
    text-align: center;
    margin-bottom: 60px;
}

.saas-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.saas-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.saas-price-card {
    background: #fff;
    padding: 48px;
    border-radius: var(--saas-radius);
    border: 1px solid var(--saas-border);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.saas-price-card.featured {
    border-color: var(--saas-primary);
    box-shadow: var(--saas-shadow-lg);
    transform: scale(1.05);
    z-index: 10;
}

@media (max-width: 1024px) {
    .saas-pricing-grid {
        display: flex;
        overflow-x: auto;
        padding: 20px 5% 40px;
        /* 요약된 카드 쉐도우를 위한 패딩 */
        gap: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox 스크롤바 숨김 */
        margin: 0 -5%;
        /* 부모 패딩 상쇄를 위한 마진 */
    }

    .saas-pricing-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari 스크롤바 숨김 */
    }

    .saas-price-card {
        min-width: 320px;
        /* 기존 카드 느낌을 살리도록 축소하지 않음 */
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 48px 40px;
        /* 원본 패딩에 가깝게 복구 */
    }

    .saas-price-card.featured {
        transform: none;
    }
}

.saas-price-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--saas-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--saas-radius-full);
    box-shadow: 0 4px 10px rgba(18, 20, 23, 0.14);
}

.saas-price-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.saas-price-val {
    font-size: clamp(2.2rem, 6.5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 24px;
    white-space: nowrap;
    letter-spacing: -0.05em;
}

.saas-price-val span {
    display: inline-block;
    margin-left: 0.45rem;
    font-size: 1rem;
    color: var(--saas-text-muted);
    letter-spacing: 0;
}

.saas-price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    flex: 1;
}

.saas-price-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
}

.saas-price-list li i {
    color: #10b981;
}

.saas-price-list li.disabled {
    color: var(--saas-text-muted);
    opacity: 0.6;
}

.saas-price-list li.disabled i {
    color: var(--saas-border);
}

/* ===== Features ===== */
.saas-features {
    padding: 100px 5%;
}

.saas-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.saas-feature-item {
    padding: 40px;
    border-radius: var(--saas-radius-lg);
    background: var(--saas-surface);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--saas-border);
}

.saas-feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--saas-shadow-xl);
    border-color: var(--saas-primary-light);
}

.saas-feature-icon {
    width: 56px;
    height: 56px;
    background: hsla(var(--saas-primary-h), var(--saas-primary-s), var(--saas-primary-l), 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--saas-primary);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.saas-feature-item:hover .saas-feature-icon {
    background: var(--saas-primary);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

.saas-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.saas-feature-desc {
    font-size: 0.9375rem;
    color: var(--saas-text-muted);
}

/* ===== Book Showcase ===== */
.saas-showcase {
    padding: 100px 5%;
    background: var(--saas-bg-alt);
}

/* ===== Modal System ===== */
.saas-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalFadeIn 0.3s ease;
}

.saas-modal-backdrop.active {
    display: flex;
}

.saas-modal {
    background: #fff;
    width: 95%;
    max-width: 480px;
    /* 필드가 많아져서 약간 너비 확장 */
    max-height: 90vh;
    /* 화면을 넘지 않도록 제한 */
    overflow-y: auto;
    /* 내용이 많을 시 스크롤 지원 */
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

@media (max-width: 640px) {
    .saas-modal {
        padding: 30px 20px;
    }

    #registerForm>div[style*="grid"] {
        grid-template-columns: 1fr !important;
        /* 모바일에서는 기관명/부서를 1열로 */
        gap: 0 !important;
    }
}

.saas-modal-backdrop.active .saas-modal {
    transform: translateY(0);
}

.saas-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: #fff;
    border: 1px solid var(--saas-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--saas-text-muted);
    font-size: 22px;
    line-height: 1;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.saas-modal-close:hover {
    background: var(--saas-primary);
    border-color: var(--saas-primary);
    color: #fff;
    transform: rotate(90deg);
}

.saas-auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--saas-border);
}

.saas-auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    color: var(--saas-text-muted);
    cursor: pointer;
    position: relative;
}

.saas-auth-tab.active {
    color: var(--saas-primary);
}

.saas-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--saas-primary);
}

.saas-form-group {
    margin-bottom: 20px;
}

.saas-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.saas-form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--saas-radius);
    border: 1px solid var(--saas-border);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: var(--saas-bg);
}

.saas-form-input:focus {
    border-color: var(--saas-primary);
    background: var(--saas-surface);
    box-shadow: 0 0 0 4px hsla(var(--saas-primary-h), var(--saas-primary-s), var(--saas-primary-l), 0.1);
}

/* ===== Design Service Section ===== */
.saas-design-service {
    padding: 100px 5%;
    background: var(--saas-surface);
}

.design-process-roadmap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 60px auto 100px;
}

/* 분기 로드맵 */
.design-process-roadmap-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1300px;
    margin: 60px auto 100px;
    padding: 0 5%;
}

.dpr-common {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.dpr-fork-arrow {
    color: var(--saas-border);
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: arrowPulse 2s infinite;
}

.dpr-branches {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.dpr-branch {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--saas-bg-alt);
    border-radius: 20px;
    padding: 16px 20px;
    border: 1px solid var(--saas-border);
}

.dpr-branch-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.dpr-branch-label--ebook {
    background: rgba(110, 199, 182, 0.12);
    color: var(--saas-primary-dark);
}

.dpr-branch-label--print {
    background: rgba(53, 141, 129, 0.12);
    color: #358d81;
}

.dpr-branch-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.dpr-branch-step {
    flex: 1;
    padding: 20px 16px;
}

.dpr-branch-arrow {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .design-process-roadmap-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .dpr-common {
        flex-direction: column;
    }

    .dpr-fork-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .dpr-branch {
        flex-direction: column;
        align-items: flex-start;
    }

    .dpr-branch-label {
        writing-mode: horizontal-tb;
        padding: 4px 12px;
    }

    .dpr-branch-steps {
        flex-direction: column;
        width: 100%;
    }

    .dpr-branch-arrow {
        transform: rotate(90deg);
    }
}

/* ───────────────────────────────────────────
   Award-style 세로 플로우 프로세스
─────────────────────────────────────────── */
.dp-flow-section {
    background: #080d1a;
    color: #fff;
    padding: 120px 5% 140px;
}

.dp-flow-header {
    max-width: 700px;
    margin: 0 auto 80px;
    text-align: center;
}

.dp-flow-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--saas-primary-dark);
    margin-bottom: 20px;
    border: 1px solid rgba(110, 199, 182, 0.4);
    padding: 5px 14px;
    border-radius: 100px;
}

.dp-flow-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dp-flow-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
}

/* 전체 플로우 컨테이너 */
.dp-flow-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 공통 스텝 묶음 */
.dp-flow-common {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 개별 스텝 */
.dp-step {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.dp-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(110, 199, 182, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.dp-step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(110, 199, 182, 0.3);
}

.dp-step:hover::before {
    opacity: 1;
}

/* 큰 번호 */
.dp-step-num {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.dp-step-num--ebook {
    color: rgba(110, 199, 182, 0.2);
}

.dp-step-num--print {
    color: rgba(53, 141, 129, 0.2);
}

/* 아이콘 + 내용 묶음 */
.dp-step-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.dp-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(110, 199, 182, 0.15);
    color: var(--saas-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.dp-step-icon--ebook {
    background: rgba(110, 199, 182, 0.15);
    color: #818cf8;
}

.dp-step-icon--print {
    background: rgba(53, 141, 129, 0.15);
    color: #f472b6;
}

.dp-step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.dp-step-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

/* 연결선 */
.dp-connector {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    margin: 0 auto;
}

.dp-connector--ebook {
    background: linear-gradient(to bottom, rgba(110, 199, 182, 0.4), rgba(110, 199, 182, 0.1));
}

.dp-connector--print {
    background: linear-gradient(to bottom, rgba(53, 141, 129, 0.4), rgba(53, 141, 129, 0.1));
}

/* 분기 레이블 행 */
.dp-fork-label-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.dp-fork-badge {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dp-fork-badge--ebook {
    background: rgba(110, 199, 182, 0.12);
    color: #818cf8;
    border: 1px solid rgba(110, 199, 182, 0.25);
}

.dp-fork-badge--print {
    background: rgba(53, 141, 129, 0.12);
    color: #f472b6;
    border: 1px solid rgba(53, 141, 129, 0.25);
}

/* 분기 선 행 */
.dp-fork-line-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 30px;
}

.dp-fork-line {
    height: 100%;
    width: 1px;
    margin: 0 auto;
}

.dp-fork-line--left {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(110, 199, 182, 0.4));
}

.dp-fork-line--right {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(53, 141, 129, 0.4));
}

/* 분기 본문 행 */
.dp-branches-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.dp-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dp-branch-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    align-self: stretch;
    margin: 0 20px;
}

/* 모바일 */
@media (max-width: 768px) {
    .dp-flow-section {
        padding: 80px 5% 100px;
    }

    .dp-step {
        padding: 24px 20px;
        gap: 16px;
    }

    .dp-step-num {
        font-size: 3rem;
        min-width: 56px;
    }

    .dp-fork-label-row,
    .dp-fork-line-row,
    .dp-branches-row {
        grid-template-columns: 1fr;
    }

    .dp-branch-divider {
        display: none;
    }

    .dp-fork-badge--print {
        margin-top: 32px;
    }
}

.design-process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 30px;
    background: var(--saas-bg);
    border-radius: 24px;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid var(--saas-border);
}

.design-process-step:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: var(--saas-shadow-lg);
    border-color: var(--saas-primary);
}

.process-icon-wrap {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--saas-primary);
    position: relative;
    box-shadow: var(--saas-shadow);
}

.process-num {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--saas-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.process-step-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--saas-text);
}

.process-step-desc {
    font-size: 0.875rem;
    color: var(--saas-text-muted);
    line-height: 1.5;
}

.design-process-arrow {
    color: var(--saas-border);
    font-size: 1.5rem;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

.design-scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 100px auto 0;
}

.design-scope-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--saas-border);
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.design-scope-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--saas-shadow-xl);
    border-color: var(--saas-primary-light);
}

.scope-img-placeholder {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
}

.scope-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--saas-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scope-info {
    padding: 30px;
}

.scope-info h5 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--saas-text);
}

.scope-info p {
    font-size: 0.95rem;
    color: var(--saas-text-muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .design-process-roadmap {
        flex-direction: column;
        gap: 30px;
    }

    .design-process-arrow {
        transform: rotate(90deg);
        animation: arrowPulseV 2s infinite;
    }
}

@keyframes arrowPulseV {

    0%,
    100% {
        transform: rotate(90deg) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: rotate(90deg) translateY(5px);
        opacity: 1;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.saas-form-input:focus {
    border-color: var(--saas-primary);
}

.saas-auth-form {
    display: none;
}

.saas-auth-form.active {
    display: block;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════
   공통 사이트 푸터 (site-footer)
═══════════════════════════════════════════ */
.site-footer {
    background: #fff;
    color: var(--saas-text);
    font-size: 0.875rem;
    padding: 72px 5% 0;
}

.site-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(240px, 1.45fr) minmax(210px, 1.2fr) repeat(3, minmax(96px, 0.72fr));
    gap: 40px 36px;
    padding-bottom: 56px;
    border-bottom: 1px solid #eceeee;
}

.site-footer-logo {
    color: var(--saas-text);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.site-footer-tagline {
    line-height: 1.75;
    color: #5b6461;
    font-size: 0.9rem;
}

.site-footer-col-title {
    color: var(--saas-text);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.site-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer-col li {
    margin-bottom: 12px;
}

.site-footer-col a {
    color: #5b6461;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-col a:hover {
    color: var(--saas-primary-dark);
}

/* Shop Info. / CS Info. — 라벨 : 값 정의목록 */
.site-footer-deflist {
    margin: 0;
}

.site-footer-defrow {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 11px;
    line-height: 1.6;
}

.site-footer-defrow dt {
    flex-shrink: 0;
    color: var(--saas-text);
    font-size: 0.86rem;
    font-weight: 700;
}

.site-footer-defrow dt::after {
    content: ' :';
    color: #9aa3a1;
    font-weight: 500;
}

.site-footer-defrow dd {
    margin: 0;
    color: #5b6461;
    font-size: 0.86rem;
    word-break: keep-all;
}

.site-footer-defrow dd a {
    color: #5b6461;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-defrow dd a:hover {
    color: var(--saas-primary-dark);
}

/* 하단 저작권 · 정책 */
.site-footer-bottom {
    max-width: 1360px;
    margin: 0 auto;
    padding: 26px 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.site-footer-policy {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-policy-btn {
    background: none;
    border: none;
    color: #5b6461;
    font-family: var(--saas-font); /* button은 폰트 미상속 */
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.site-policy-btn:hover {
    color: var(--saas-primary-dark);
}

.site-footer-copy {
    color: #9aa3a1;
    font-size: 0.82rem;
    margin: 0;
}

/* 공통 모달 — 로그인 화면과 동일한 라이트 카드 디자인
   (흰 카드 / 16px 라운드 / #eceeee 보더 / #358d81 액센트) */
.site-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(18, 20, 23, 0.45);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-modal.is-open {
    display: flex;
}

.site-modal-box {
    background: #fff;
    border: 1px solid #eceeee;
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 24px 64px -24px rgba(0, 0, 0, 0.35);
}

.site-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 32px 20px;
    background: #fff;
    border-bottom: 1px solid #eceeee;
    flex-shrink: 0;
}

.site-modal-head h2 {
    color: #121417;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

/* 닫기 버튼 — 회원가입/로그인 모달(.saas-modal-close)과 동일:
   사각형 + hover 시 90° 회전하며 프라이머리로 채워진다 */
.site-modal-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: #fff;
    border: 1px solid var(--saas-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--saas-text-muted);
    font-size: 22px;
    line-height: 1;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-modal-close:hover {
    background: var(--saas-primary);
    border-color: var(--saas-primary);
    color: #fff;
    transform: rotate(90deg);
}

.site-modal-body {
    padding: 26px 32px 32px;
    overflow-y: auto;
    background: #fff;
    color: #5b6461;
    line-height: 1.8;
    font-size: 0.9rem;
    overscroll-behavior: contain;
}

.site-modal-body h3 {
    color: #121417;
    font-size: 1rem;
    font-weight: 700;
    margin: 26px 0 8px;
    padding-left: 11px;
    border-left: 3px solid var(--admin-primary, #358d81);
    line-height: 1.4;
}

.site-modal-body h3:first-child {
    margin-top: 0;
}

.site-modal-body p {
    margin: 0 0 8px;
}

.site-modal-body strong {
    color: #121417;
    font-weight: 700;
}

.site-modal-body ul {
    margin: 0 0 10px;
    padding-left: 18px;
    list-style: disc;
}

.site-modal-body ul ul {
    margin: 6px 0 6px;
    list-style: circle;
}

.site-modal-body li {
    margin-bottom: 5px;
}

.site-modal-body li::marker {
    color: #b9bfbe;
}

/* 본문 스크롤바 — 라이트 톤 */
.site-modal-body::-webkit-scrollbar {
    width: 10px;
}

.site-modal-body::-webkit-scrollbar-thumb {
    background: #dfe3e2;
    border: 3px solid #fff;
    border-radius: 999px;
}

.site-modal-body::-webkit-scrollbar-thumb:hover {
    background: #c9cecd;
}

/* 개인정보 위탁 현황 등 표 */
.site-modal-table-wrap {
    overflow-x: auto;
    margin: 12px 0 14px;
    border: 1px solid #eceeee;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.site-modal-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 0.84rem;
    line-height: 1.6;
}

.site-modal-table th,
.site-modal-table td {
    border-bottom: 1px solid #eceeee;
    border-right: 1px solid #eceeee;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.site-modal-table th:last-child,
.site-modal-table td:last-child {
    border-right: none;
}

.site-modal-table tbody tr:last-child td {
    border-bottom: none;
}

.site-modal-table th {
    background: #f7f8f8;
    color: #121417;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .site-modal {
        padding: 12px;
    }

    .site-modal-box {
        max-height: 88vh;
    }

    .site-modal-head {
        padding: 20px 20px 16px;
    }

    .site-modal-head h2 {
        font-size: 1.25rem;
    }

    .site-modal-body {
        padding: 20px 20px 26px;
    }
}

/* 푸터 반응형 — 6컬럼 → 3컬럼 → 2컬럼 → 1컬럼 */
@media (max-width: 1180px) {
    .site-footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 32px;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 56px;
    }

    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .site-footer-col-info {
        grid-column: 1 / -1;
    }

    .site-brand-select {
        max-width: 100%;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .site-footer-policy {
        gap: 18px;
    }
}

@media (max-width: 420px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer-defrow {
        flex-direction: column;
        gap: 2px;
    }
}

/* 입금은행 확인 버튼 & 정보 */
.site-bank-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #d8dcdb;
    border-radius: 8px;
    color: #010203;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.site-bank-btn:hover {
    background: #f7f8f8;
    border-color: #010203;
}

.site-bank-info {
    display: none;
    margin-top: 12px;
    padding: 14px 16px;
    background: #f7f8f8;
    border: 1px solid #eceeee;
    border-radius: 10px;
    font-size: 0.82rem;
}

.site-bank-info.is-visible {
    display: block;
}

.site-bank-row {
    display: flex;
    gap: 10px;
    padding: 4px 0;
    color: #010203;
}

.site-bank-label {
    color: #9aa3a1;
    min-width: 64px;
    flex-shrink: 0;
}

/* 푸터 Partner Site 커스텀 셀렉트 */
.site-brand-select {
    position: relative;
    margin-top: 26px;
    max-width: 250px;
}

.site-brand-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px 10px 18px;
    background: #fff;
    border: 1px solid #e2e5e5;
    border-radius: 10px;
    color: var(--saas-text);
    font-family: var(--saas-font); /* Pretendard — button은 폰트 미상속이라 명시 */
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s;
}

.site-brand-toggle:hover {
    border-color: #b9bfbe;
}

.site-brand-toggle i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f4f6f6;
    font-size: 0.72rem;
    color: #6b7684;
    transition: transform 0.25s, background 0.2s;
}

.site-brand-toggle:hover i {
    background: #eceeee;
}

.site-brand-select.open .site-brand-toggle i {
    transform: rotate(180deg);
}

.site-brand-list {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eceeee;
    border-radius: 10px;
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.14);
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 50;
}

.site-brand-select.open .site-brand-list {
    display: block;
}

.site-brand-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #010203;
    font-size: 14px;
}

.site-brand-list a:hover {
    background: #f7f8f8;
}

.site-brand-list a small {
    color: #9aa3a1;
    font-size: 0.76rem;
}


/* ===== Floating TOP Button ===== */
.saas-top-button {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1200;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font: inherit;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.saas-top-button.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.saas-top-button i { font-size: .75rem; }
.saas-top-button span { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; }
.saas-top-button:hover { background: var(--saas-primary); transform: translateY(-3px); }
.saas-top-button:focus-visible { outline: 3px solid rgba(110, 199, 182, .45); outline-offset: 3px; }

@media (max-width: 640px) {
    .saas-top-button { right: 18px; bottom: 18px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .saas-top-button { transition: none; }
}
