﻿/* ==========================================================================
   인클루드웹 포털 전용 보조 스타일
   - 공통 디자인 시스템은 web-modern.css (ConPlan 과 공유, cx- 접두어)
   - 여기에는 포털에만 필요한 요소만 둔다 (iw- 접두어)
   ========================================================================== */

html,
body {
    margin: 0;
    background: #ffffff;
}

.cx-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cx-app main {
    flex: 1 0 auto;
}

/* 모바일 드로어 (hidden 속성으로 토글) */
.cx-drawer[hidden] {
    display: none;
}

@media (min-width: 1100px) {
    .cx-drawer {
        display: none !important;
    }
}

/* 어두운 푸터용 로고 (컬러 로고를 흰색으로) */
.iw-logo-light {
    filter: brightness(0) invert(1);
}

.cx-header__brand img {
    height: 30px;
}

/* 외부 링크 아이콘 */
.iw-ext {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

/* ---------- 스크린샷 갤러리 ---------------------------------------------- */

.iw-shot {
    display: flex;
    flex-direction: column;
    background: var(--cx-white);
    border: 1px solid var(--cx-ink-200);
    border-radius: var(--cx-radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.iw-shot:hover {
    transform: translateY(-4px);
    box-shadow: var(--cx-shadow);
}

.iw-shot__img {
    display: block;
    aspect-ratio: 2 / 1;
    background: var(--cx-ink-50);
    border-bottom: 1px solid var(--cx-ink-100);
    overflow: hidden;
}

.iw-shot__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

.iw-shot__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iw-shot__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cx-ink-900);
}

.iw-shot__text {
    font-size: .875rem;
    line-height: 1.65;
    color: var(--cx-ink-500);
}

/* 카드가 <button> 이므로 기본 버튼 모양을 지운다 */
.cx-app button.iw-shot {
    width: 100%;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
}

.cx-app button.iw-shot:focus-visible {
    outline: 2px solid var(--cx-accent);
    outline-offset: 2px;
}

/* 스크린샷 확대 보기 (새 탭 대신 페이지 위에 띄움) */
.iw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 24px;
    background: rgba(11, 12, 14, .82);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
    animation: iw-fade .15s ease;
}

.iw-lightbox:focus {
    outline: none;
}

.iw-lightbox__figure {
    margin: 0;
    max-width: min(1400px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: default;
}

.iw-lightbox__figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    border-radius: var(--cx-radius);
    background: var(--cx-white);
    box-shadow: var(--cx-shadow-lg);
}

.iw-lightbox__figure figcaption {
    color: var(--cx-white);
    font-weight: 600;
    text-align: center;
}

.cx-app .iw-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--cx-white);
    cursor: pointer;
}

.cx-app .iw-lightbox__close:hover {
    background: rgba(255, 255, 255, .24);
}

@keyframes iw-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- 정보 목록 (연락처, 데모 계정 등) ----------------------------- */

.iw-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.iw-info__row {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cx-ink-100);
    font-size: .9375rem;
}

.iw-info__row:last-child {
    border-bottom: 0;
}

.iw-info__label {
    flex: 0 0 110px;
    color: var(--cx-ink-400);
}

.iw-info__value {
    color: var(--cx-ink-900);
    font-weight: 600;
    word-break: break-all;
}

.cx-section--dark .iw-info__row,
.cx-cta .iw-info__row {
    border-bottom-color: rgba(255, 255, 255, .08);
}

.cx-section--dark .iw-info__value,
.cx-cta .iw-info__value {
    color: var(--cx-white);
}

/* ---------- 연혁 타임라인 ------------------------------------------------ */

.iw-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 28px;
}

.iw-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--cx-ink-100);
}

.iw-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--cx-ink-100);
}

.iw-timeline__item:last-child {
    border-bottom: 0;
}

.iw-timeline__item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cx-white);
    border: 2px solid var(--cx-accent);
}

.iw-timeline__date {
    font-size: .875rem;
    font-weight: 600;
    color: var(--cx-accent-ink);
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

.iw-timeline__name {
    font-weight: 700;
    color: var(--cx-ink-900);
}

.iw-timeline__desc {
    margin-top: 2px;
    font-size: .9375rem;
    color: var(--cx-ink-500);
}

/* ---------- 요금제 선택 (견적 페이지) ------------------------------------ */

.iw-plan-option {
    position: relative;
    cursor: pointer;
}

.iw-plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.iw-plan-option .cx-plan {
    height: 100%;
}

.iw-plan-option__check {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    border: 2px solid var(--cx-ink-200);
    background: var(--cx-white);
    transition: all .15s ease;
}

.iw-plan-option input:checked + .cx-plan {
    border-color: var(--cx-accent);
    box-shadow: 0 0 0 3px var(--cx-accent-soft), var(--cx-shadow);
}

.iw-plan-option input:checked + .cx-plan .iw-plan-option__check {
    border-color: var(--cx-accent);
    background: var(--cx-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.iw-plan-option input:focus-visible + .cx-plan {
    outline: 2px solid var(--cx-accent);
    outline-offset: 2px;
}

.iw-plan-type {
    font-size: .8125rem;
    color: var(--cx-ink-400);
    margin-top: 2px;
}

/* ---------- 폼 검증 메시지 (jquery.validate) ----------------------------- */

.cx-app label.error {
    font-size: .8125rem;
    color: #d64545;
}

.cx-app .cx-input.error,
.cx-app .cx-textarea.error {
    border-color: #d64545;
}

/* ---------- 빈 상태 ------------------------------------------------------ */

.iw-empty {
    text-align: center;
    padding: clamp(48px, 6vw, 88px) 24px;
    border: 1px dashed var(--cx-ink-200);
    border-radius: var(--cx-radius-lg);
    background: var(--cx-ink-50);
}

/* 고객사 로고 10개가 3열에서 빈칸이 생기지 않도록 태블릿까지 5열 유지 */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .cx-logos {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .iw-timeline__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .iw-info__label {
        flex-basis: 90px;
    }
}

/* 라우터 FocusOnNavigate 가 h1 에 포커스를 주면서 생기는 테두리 제거 */
.cx-app h1:focus {
    outline: none;
}

/* 구독결제 페이지: 요금제 카드를 버튼으로 선택 */
.cx-app .iw-plan-select {
    width: 100%;
    align-items: stretch;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.cx-app .iw-plan-select.is-selected {
    border-color: var(--cx-accent);
    box-shadow: 0 0 0 3px var(--cx-accent-soft), var(--cx-shadow);
}

.cx-app .iw-plan-select.is-selected .iw-plan-option__check {
    border-color: var(--cx-accent);
    background: var(--cx-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.cx-app .iw-plan-select:focus-visible {
    outline: 2px solid var(--cx-accent);
    outline-offset: 2px;
}

.cx-app .iw-plan-select .cx-plan__price {
    flex-wrap: wrap;
}

.cx-app .iw-plan-select .cx-plan__unit {
    white-space: nowrap;
}

/* 블로그 썸네일: 이미지를 분류명 위에 겹쳐 두고, 로드 실패 시 분류명이 보이게 한다 */
.cx-app .cx-post__thumb img {
    position: absolute;
    inset: 0;
}

/* 헤더 메뉴: 샌드박스 테마의 루트 글자 크기(20px) 때문에 rem 기준 메뉴가 넓어지므로 px 로 고정 */
.cx-app .cx-nav__link {
    font-size: 16px;
    padding: 0 12px;
}

.cx-app .cx-nav__link.is-active::after {
    left: 12px;
    right: 12px;
}

@media (max-width: 1279.98px) {
    .cx-app .cx-nav {
        margin-left: 0;
    }

    .cx-app .cx-nav__link {
        font-size: 15px;
        padding: 0 8px;
    }

    .cx-app .cx-nav__link.is-active::after {
        left: 8px;
        right: 8px;
    }
}

/* 메뉴 6개 + 로그인 버튼이 한 줄에 들어가지 않는 폭부터는 햄버거 메뉴 사용 */
@media (max-width: 1099.98px) {
    .cx-app .cx-nav,
    .cx-app .cx-header__actions .cx-btn {
        display: none;
    }

    .cx-app .cx-burger {
        display: inline-flex;
    }
}

/* 푸터 3단 (회사 정보 · Get in Touch · Menu) */
@media (min-width: 992px) {
    .cx-footer__grid.iw-footer-3 {
        grid-template-columns: 1.2fr 1.2fr 1fr;
    }
}

/* 고객사 로고: 투명 배경으로 정리한 로고(Images/clients, 480x200)를 크게 보여 준다 */
.cx-app .cx-logos__item {
    padding: 16px 20px;
}

.cx-app .cx-logos__item img {
    width: 100%;
    max-width: 200px;
    max-height: none;
    opacity: .75;
}

.cx-app .cx-work__logo {
    padding: 12px;
    background: var(--cx-white);
}

.cx-app .cx-work__logo img {
    height: 100%;
    opacity: .8;
}

/* 로고 (SVG): 헤더 메뉴 폭에 맞춘 높이 */
.cx-app .cx-header__brand img {
    height: 24px;
    width: auto;
}

.cx-app .cx-footer__logo {
    height: 24px;
    width: auto;
}

/* ---------- 로그인 / 회원가입 -------------------------------------------- */

.iw-auth {
    padding: clamp(48px, 7vw, 104px) 0;
    background: var(--cx-ink-50);
}

.iw-auth__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    max-width: 1000px;
    margin: 0 auto;
    background: var(--cx-white);
    border: 1px solid var(--cx-ink-200);
    border-radius: var(--cx-radius-xl);
    box-shadow: var(--cx-shadow-lg);
    overflow: hidden;
}

.iw-auth__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: clamp(32px, 5vw, 56px);
    background: var(--cx-ink-900);
    color: var(--cx-ink-300);
    overflow: hidden;
}

/* 페이지 헤드와 같은 격자 + 아쿠아 광원 */
.iw-auth__aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.iw-auth__aside::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -220px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 169, 199, .28), transparent 62%);
}

.iw-auth__aside > * {
    position: relative;
    z-index: 1;
}

.iw-auth__aside h2 {
    color: var(--cx-white);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.iw-auth__aside .cx-eyebrow {
    color: var(--cx-accent-bright);
}

.iw-auth__aside .cx-body,
.iw-auth__aside .cx-check li {
    color: var(--cx-ink-300);
}

.iw-auth__aside .cx-check {
    margin-top: 8px;
}

.iw-auth__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(32px, 5vw, 56px);
}

.iw-auth__body .cx-form {
    margin-top: 18px;
}

.iw-auth__foot {
    margin-top: 16px;
    text-align: center;
}

.iw-auth__foot .cx-link {
    display: inline;
}

@media (max-width: 767.98px) {
    .iw-auth__card {
        grid-template-columns: minmax(0, 1fr);
    }

    .iw-auth__aside {
        display: none;
    }
}

/* ---------- 구독 정보 / 결제 ------------------------------------------- */

.iw-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iw-stat strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cx-ink-900);
    font-variant-numeric: tabular-nums;
}

/* Telerik 그리드를 카드 안에 넣을 때 바깥 테두리 제거 */
.iw-grid-card .k-grid {
    border: 0;
}

.iw-card-number {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.iw-card-number .cx-input {
    text-align: center;
    letter-spacing: .15em;
}

.iw-table-wrap {
    overflow-x: auto;
}

@media (min-width: 992px) {
    .iw-sticky {
        position: sticky;
        top: calc(var(--cx-nav-h) + 24px);
    }
}

@media (max-width: 767.98px) {
    .iw-card-number {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
