/* ================================================================
   new_intro.css — AI 사업자등록 길잡이 인트로 (new_intro.html)
   ================================================================ */
/* ── Reset & Base ─────────────────────────────────────────── */
body * {
    font-family: 'Freesentation', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ──────────────────────────────────────────
   2단계 프로세스 섹션
   ────────────────────────────────────────── */
.ni-steps-section {
    padding: 7rem 1.5rem 0;
}
.ni-steps-inner {
    max-width: 78rem;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    position: relative;
}

.ni-steps-inner::before {
    content: "";
    position: absolute;
    left: 1.3rem;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 1.5px dashed #BBB;
    z-index: 0;
}

/* ──────────────────────────────────────────
   왼쪽 레이블 컬럼
   ────────────────────────────────────────── */

.ni-steps-label,
.ni-steps-cards,
.ni-cta-col {
    position: relative;
    z-index: 1;
}
.ni-steps-label {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 8rem;
    padding-left: 1.25rem;
    margin-top: 1.6rem;
}
.ni-step-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FF5D1A;
    line-height: 1.2;
    display: block;
    word-break: keep-all;
}
.ni-steps-label-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C2C2C;
    line-height: 1.2;
    margin: 0;
    word-break: keep-all;
}

/* ──────────────────────────────────────────
   카드 컨테이너
   ────────────────────────────────────────── */
.ni-steps-cards {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
    gap: 1.5rem;
}

/* ──────────────────────────────────────────
   Step 카드 공통
   ────────────────────────────────────────── */
.ni-step-card {
    position: relative;
    background: #fff;
    padding: 1.7rem;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 9.2px 4px rgba(0, 0, 0, 0.05);
    justify-content: space-between;
}

.ni-step-card:first-child,
.ni-step-card:nth-child(2) {
    border-radius: 1.625rem;
    border-right: none;
}

.ni-step-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0;
}

.ni-step-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ni-step-num {
    font-size: 2.3rem;
    font-weight: 800;
    color: #FF5D1A;
    line-height: 1.7;
}

.ni-step-img--keyboard {
    width: 10rem;
    height: auto;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.ni-step-img--report {
    width: 4rem;
    height: auto;
    flex-shrink: 0;
    margin-top: -0.15rem;
}

.ni-step-tag {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FF5D1A;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.ni-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c2c2c;
    display: block;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.ni-step-desc {
    font-size: 1rem;
    color: #2c2c2c;
    font-weight: 400;
    line-height: 1.55;
    margin: 0;
    word-break: keep-all;
    line-height: 1.3;
}
/* ──────────────────────────────────────────
   AI CTA 컬럼 래퍼
   ────────────────────────────────────────── */
.ni-cta-col {
    flex-shrink: 0;
    width: 12.5rem;
    display: flex;
    flex-direction: column;
}

/* ──────────────────────────────────────────
   AI CTA 카드
   ────────────────────────────────────────── */
.ni-cta-card {
    flex: 1;
    border-radius: 26px;
    background: linear-gradient(146deg, #FF5D1A 15%, #D93A27, #B02E4F, #7A2160, #641B5A, #FF5D1A);
    background-size: 200% 200%;
    animation: ni-cta-grad 5s linear infinite;
    box-shadow: 0 0 9.2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1.3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-decoration: none;
}

@keyframes ni-cta-grad {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.ni-cta-card:hover .ni-cta-arrow {
    animation: ni-arrow-slide 0.45s ease-out forwards;
}

@keyframes ni-arrow-slide {
    0%   { transform: translateX(-6px) translateY(0.02em); opacity: 0.4; }
    60%  { transform: translateX(5px)  translateY(0.02em); opacity: 1; }
    100% { transform: translateX(3px)  translateY(0.02em); opacity: 1; }
}

.ni-cta-ai-badge {
    width: 3rem;
    height: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ni-cta-body {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.ni-cta-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.45;
    margin: 0;
    padding: 0;
    word-break: keep-all;
}

.ni-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4.3rem;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 0;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    border: none;
    width: auto;
    margin-top: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ni-cta-btn:hover {
    opacity: 1;
    transform: none;
    text-decoration: none;
    color: #fff;
}

.ni-cta-btn-text {
    display: inline-block;
    line-height: 1;
}

.ni-cta-arrow {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transform: translateY(0.02em);
}

/* ──────────────────────────────────────────
   이전기록 보기 버튼
   ────────────────────────────────────────── */
.ni-history-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(129deg, #A8A8A8 60%, #666 97.5%);
    color: #FFFFFF;
    box-shadow: 0 0 9.2px 4px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 2.4rem 1.3rem 1rem;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: -0.01em;
    word-break: keep-all;
    margin-top: -2rem;
    position: relative;
    z-index: 0;
}

.ni-cta-card {
    z-index: 1;
}

.ni-history-btn:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

.ni-history-btn:hover .ni-history-arrow {
    animation: ni-arrow-slide 0.45s ease-out forwards;
}

.ni-history-arrow {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transform: translateY(0.02em);
    flex-shrink: 0;
}

/* ──────────────────────────────────────────
   동의 체크박스 행 (섹션 하단 우측 정렬)
   ────────────────────────────────────────── */
.ni-consent-row {
    max-width: 78rem;
    margin: 1.9rem auto 0;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 2rem;
}
.ni-consent-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}
.ni-consent-wrap input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.3rem;
    accent-color: #FF5D1A;
    cursor: pointer;
}
.ni-consent-label {
    font-size: 0.95rem;
    font-weight: 300;
    color: #343434;
    cursor: pointer;
    user-select: none;
}

.ni-consent-link {
    color: #343434;
    text-decoration: underline;
    cursor: pointer;
}
.ni-consent-link:hover {
    color: #FF5D1A;
}

/* ── 동의 오류 ── */
.ni-consent-wrap.shake {
    animation: ni-shake 0.38s ease;
}
@keyframes ni-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}
.ni-consent-wrap.error .ni-consent-label { color: #343434; }
.ni-consent-wrap.error .ni-consent-label .req { color: #343434; font-weight: 500; }

/* ──────────────────────────────────────────
   개인정보 수집 이용 동의 인라인 섹션
   3열: [섹션 라벨] | [항목] | [내용]
   ────────────────────────────────────────── */
.ni-privacy-section {
    padding: 0 1.5rem 1.5rem;
    background: transparent;
}

.ni-privacy-grid {
    max-width: 78rem;
    padding-left: 10rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 10rem 12rem minmax(0, 1fr);
    column-gap: 2.5rem;
    row-gap: 0;
    align-items: start;
}

/* 상단 제목 3개 */
.ni-privacy-head {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #b8b8b8;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ni-privacy-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #d8d8d8;
}

/* 왼쪽 첫 열은 제목만 있고 아래는 비워둠 */
.ni-privacy-empty {
    min-height: 1px;
}

.ni-privacy-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #b5b5b5;
    margin-bottom: 5px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    word-break: keep-all;
}


.ni-privacy-value {
    font-size: 0.75rem;
    font-weight: 300;
    color: #b7b7b7;
    line-height: 1.7;
    letter-spacing: -0.01em;
    word-break: keep-all;
}
/* ================================================================
   반응형: Tablet (≤ 1023px)
   ================================================================ */
@media (max-width: 1023px) {
    .ni-steps-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .ni-steps-inner::before {
        top: calc(50% + 3rem);
    }
    .ni-steps-label {
        width: 100%;
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }
    .ni-step-badge {
        font-size: 1.3rem;
    }
    .ni-steps-cards {
        flex: 1;
        min-width: 0;
    }
    .ni-cta-col {
        width: auto;
        flex: 0 0 13.5rem;
        margin-left: 1rem;
    }
    .ni-privacy-label-col {
        width: 7rem;
    }
    .ni-privacy-table thead th:first-child {
        width: 8rem;
    }
}

/* ================================================================
   반응형: Mobile (≤ 767px)
   ================================================================ */
@media (max-width: 767px) {
    .ni-steps-section {
        padding: 5rem 1rem 0;
    }
    .ni-steps-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.6rem;
    }
    .ni-steps-inner::before {
        display: none;
    }
    .ni-steps-label {
        order: -1;
        width: 100%;
        flex-shrink: 0;
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
        margin-bottom: 0.25rem;
        margin-top: 0;
    }
    .ni-steps-cards {
        flex: 3;
        min-width: 0;
        flex-direction: row;
        gap: 0.6rem;
    }
    /* 모바일: 카드 */
    .ni-step-card {
        border-radius: 1.25rem;
        border-right: none;
        padding: 1rem;
        flex: 1;
        min-width: 0;
    }
    .ni-step-top {
        margin-bottom: 0.25rem;
    }
    .ni-step-img--keyboard,
    .ni-step-img--report {
        display: none;
    }
    .ni-cta-col {
        flex: 1;
        min-width: 0;
        margin-left: 0;
    }
    .ni-cta-card {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0;
        padding: 1rem;
        border-radius: 1.25rem;
        min-height: unset;
    }
    .ni-cta-ai-badge {
        width: 2.8rem;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }
    .ni-cta-body {
        margin-top: auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex: unset;
        min-width: unset;
    }
    .ni-cta-title {
        flex: unset;
        font-size: 1.1rem;
        padding-bottom: 0;
        white-space: normal;
    }
    .ni-cta-btn {
        width: auto;
        gap: 0.5rem;
        font-size: 1.4rem;
        padding: 0;
        flex-shrink: 0;
    }
    .ni-history-btn {
        border-radius: 0 0 1.25rem 1.25rem;
        font-size: 0.9rem;
        padding: 1.75rem 1.2rem 0.75rem;
        margin-top: -1rem;
    }
    .ni-consent-row {
        justify-content: flex-start;
        padding-bottom: 1.5rem;
    }

    .ni-privacy-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 0;
    }
    .ni-privacy-head::after {
        display:none;
    }
    .ni-privacy-head:first-child {
        font-size: 0.72rem;
        font-weight: 600;
        color: #aaa;
        padding-bottom: 0.4rem;
        margin-bottom: 0.4rem;
    }
    .ni-privacy-head:nth-child(2),
    .ni-privacy-head:nth-child(3) {
        display: none;
    }
    .ni-privacy-empty {
        display: none;
    }
    .ni-privacy-label {
        font-size: 0.72rem;
        font-weight: 600;
        color: #aaa;
        padding-top: 0.65rem;
        margin-top: 0.35rem;
        margin-bottom: 0.2rem;
        border-top: 1px solid #ebebeb;
        line-height: 1.3;
    }
    .ni-privacy-value {
        font-size: 0.72rem;
        padding-bottom: 0.35rem;
        line-height: 1.65;
    }
}

/* ================================================================
   반응형: Small Mobile (≤ 479px)
   ================================================================ */
@media (max-width: 479px) {
    .ni-steps-section {
        padding: 3rem 0.75rem 0;
    }
    .ni-step-num {
        font-size: 1.8rem;
    }
    .ni-step-title {
        font-size: 0.9rem;
    }
    .ni-step-desc {
        font-size: 0.73rem;
    }
    .ni-cta-card {
        padding: 1.4rem 1.2rem;
        gap: 0;
        border-radius: 1rem;
        min-height: 9rem;
    }
    .ni-cta-ai-badge {
        width: 2.2rem;
    }
    .ni-cta-title {
        font-size: 1rem;
    }
    .ni-cta-btn {
        font-size: 1.2rem;
        gap: 0.4rem;
    }
    .ni-cta-arrow {
        font-size: 1.4rem;
    }
    .ni-history-btn {
        border-radius: 0 0 1rem 1rem;
        font-size: 0.85rem;
        padding: 1.4rem 1.2rem 0.74em;
        margin-top: -1rem;
    }
    .ni-history-arrow {
        font-size: 1rem;
    }
}
