/* ===============================
   FONT
=============================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* ===============================
   RESET
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.2px;
    color: #222;
    background: #fff;
}

/* ===============================
   TOKENS
=============================== */
:root {
    --p500: #e5457d;
    --p400: #eb6a97;
    --p300: #f090b1;
    --p100: #fae1ea;

    --text-main: #222;
    --text-sub: #666;
    --text-muted: #888;

    --radius-lg: 32px;
    --radius-md: 22px;
}

/* =================================================
   YUMYUMKIDS-2026 INDEX PAGE (🔥 수정됨)
================================================= */
.index-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, var(--p100) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.index-page a {
    text-decoration: none;
    color: inherit;
}

.index-page .hero {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* 🔥 전체 박스 가로 확장 */
.index-page .hero-content {
    max-width: 1040px;
    /* ⬅️ 핵심 */
    padding: 72px 24px;
    /* 위아래 여유 */
    text-align: center;
}

/* 🔥 흰 박스 자체 크게 */
.index-page .panel {
    background: #fff;
    border-radius: 44px;
    max-width: 770px;
    width: 100%;
    padding: 155px 90px;
    /* ⬅️ 핵심 */
    box-shadow: 0 28px 72px rgba(229, 69, 125, 0.22);
}

html,
body {
    height: 100%;
    overflow-y: auto;
    /* 세로 스크롤 허용 */
    overflow-x: hidden;
    /* 가로 스크롤 방지 */
}

/* 🔥 타이틀 크게 */
.index-page .title {
    font-size: 40px;
    /* 기존 34px */
    font-weight: 800;
    color: var(--p500);
    margin-bottom: 20px;
}

/* 🔥 서브타이틀 크게 */
.index-page .subtitle {
    font-size: 20px;
    /* 기존 17px */
    line-height: 1.8;
    color: var(--text-sub);
    margin-bottom: 56px;
}

/* === ROLE SELECT === */
.index-page .role-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    /* 기존 28px */
    margin: 56px 0;
}

/* 🔥 카드 자체 키움 */
.index-page .role-card {
    background: linear-gradient(180deg, #ffffff, #fff7fa);
    border-radius: 32px;
    padding: 52px 40px;
    /* 기존 36px 28px */
    text-align: center;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-page .role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.16);
}

/* 🔥 아이콘 */
.index-page .role-badge {
    font-size: 40px;
    /* 기존 34px */
    margin-bottom: 20px;
}

/* 🔥 카드 제목 */
.index-page .role-card h3 {
    font-size: 26px;
    /* 기존 22px */
    font-weight: 800;
    margin-bottom: 14px;
}

/* 🔥 카드 설명 */
.index-page .role-card p {
    font-size: 18px;
    /* 기존 16px */
    line-height: 1.7;
    color: var(--text-sub);
}

/* 🔥 힌트 문구 */
.index-page .hint {
    font-size: 16px;
    /* 기존 14px */
    color: var(--text-muted);
    margin-top: 36px;
}

/* =================================================
   OWNER START PAGE (🔥 중간 단계 / 작아야 함)
================================================= */
.owner-start-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff6f9, #ffeef4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.owner-start-page .owner-card {
    max-width: 770px;
    width: 100%;
    padding: 130px 90px;
    background: #fff;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 28px 72px rgba(229, 69, 125, 0.25);
}

.owner-start-page .title {
    font-size: 36px;
    font-weight: 800;
    color: var(--p500);
}

.owner-start-page .lead {
    font-size: 20px;
    line-height: 2;
    color: var(--text-sub);
    margin-top: 24px;
    margin-bottom: 48px;
}

/* =================================================
   OWNER STEP PAGE (🔥 메인 게임)
================================================= */
.owner-step-page {
    min-height: auto;
    /* 🔥 100vh 제거 */
    height: auto;
    background: linear-gradient(180deg, #fff6f9, #fff6f9);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 120px 0;
    /* 위아래 여백 */
}

.owner-step-page .owner-card {
    max-width: 880px;
    width: 100%;
    padding: 96px 72px;
    background: #fff;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 32px 84px rgba(229, 69, 125, 0.22);
}

.owner-step-page .title {
    font-size: 42px;
    font-weight: 800;
    color: var(--p500);
}

.owner-step-page .lead {
    font-size: 26px;
    line-height: 2.1;
    color: var(--text-sub);
    margin-top: 28px;
    margin-bottom: 56px;
}

/* === STEP CONTROL === */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* === REASON LIST === */
.reason-list {
    list-style: none;
    padding: 40px 44px;
    margin: 0 auto 48px;
    max-width: 760px;
    background: linear-gradient(180deg, #fff7fa, #fff2f6);
    border-radius: 28px;
    text-align: left;
}

.reason-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 22px;
    line-height: 2.1;
}

.reason-list li+li {
    margin-top: 14px;
}

.reason-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p500);
    margin-top: 0.95em;
    flex-shrink: 0;
}

/* === NOTICE === */
.notice {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 56px;
}

/* =================================================
   MOCKUP STEPS (🔥 문제의 핵심 해결)
================================================= */
.mockup-steps {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 48px 0;
    align-items: flex-start;
}

.mockup-step {
    width: 320px;
    text-align: center;
    flex-shrink: 0;
    overflow: hidden;
    /* 카드 밖 노출 방지 */
}

/* 🔑 핵심: 높이 줄이고 contain 유지 */
.mockup-step img {
    width: 100%;
    height: 520px;
    /* 기존보다 살짝 줄임 */
    object-fit: contain;
    /* 전체 화면 유지 */
    background: #fff;
    /* 투명 여백 대비 */
    border-radius: 5px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16);
    display: block;
}

/* =================================================
   BUTTONS
================================================= */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.owner-start-page .cta,
.owner-step-page .cta {
    height: 84px;
    border-radius: var(--radius-md);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none;
}

.cta.primary {
    background: var(--p500);
    color: #fff;
}

.cta.secondary {
    background: #fff;
    color: var(--p500);
    border: 2px solid var(--p300);
}

.cta.tertiary {
    background: #eecae5;
    color: var(--p500);
    border: 2px solid var(--p300);
}

/* =================================================
   MOBILE
================================================= */
@media (max-width: 768px) {
    .index-page .role-select {
        grid-template-columns: 1fr;
    }

    .owner-start-page .owner-card,
    .owner-step-page .owner-card {
        padding: 64px 24px;
    }

    .mockup-steps {
        flex-wrap: wrap;
    }

    .mockup-step img {
        max-height: 420px;
    }

    .mockup-row {
        flex-direction: column;
        gap: 24px;
    }

    .mockup-row .mockup {
        max-width: 100%;
    }
}

/* ===============================
   STEP 7 FINAL
=============================== */

.final-notice {
    font-size: 25px;
    font-weight: 600;
    color: #4a4a4a;

    /* 🔥 박스 하나 */
    max-width: 760px;
    margin: 0 auto 56px;
    padding: 40px 48px;
    background: #fff7fa;
    border: 1.5px solid #f3c3d3;
    border-radius: 24px;

    line-height: 1.7;
    text-align: center;
}

/* 강조 문구 */
.final-notice strong {
    color: var(--p500);
}

.final-complete-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--p500);
    margin-bottom: 24px;
}

.final-complete-desc {
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-sub);
    margin-bottom: 40px;
}

.teacher-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--p500);
    text-decoration: underline;
}

/* ===============================
   TEACHER START SPACING FIX
=============================== */

.owner-start-page .button-group {
    margin-bottom: 28px;
}

.owner-start-page .notice {
    margin-top: 20px;
}

/* STEP 설명 문구 한글 깨짐 방지 */
.step-desc,
.step-desc li {
    letter-spacing: -0.01em;
    word-break: keep-all;
    white-space: normal;
    line-height: 1.6;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

/* ===============================
   STEP 7 FINAL
=============================== */

.final-notice {
    font-size: 20px;
    font-weight: 600;
    color: #d6456f;
    margin: 40px 0 56px;
}

.final-complete-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--p500);
    margin-bottom: 24px;
}

.final-complete-desc {
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-sub);
    margin-bottom: 40px;
}

.teacher-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--p500);
    text-decoration: underline;
}

/* ===============================
   TEACHER STEP UTILS
=============================== */
.lead-bold {
    font-weight: 700;
}

.mockup-lg {
    max-width: 960px;
    width: 100%;
    display: block;
    margin: 32px auto;
}

.reason-list-sm {
    max-width: 640px;
    margin: 0 auto 40px;
}

.final-step-content {
    padding: 40px 0;
}

.mt-lg {
    margin-top: 48px;
}

.mt-md {
    margin-top: 24px;
}

/* 카카오톡 채널 버튼 전용 */
.cta.secondary.kakao {
    background: #FEE500;
    color: #3A1D1D;
    border: 2px solid #FEE500;
}

/* 이미지 위아래 배치 */
.mockup-column {
    display: flex;
    flex-direction: column;
    /* 🔥 세로 정렬 */
    align-items: center;
    gap: 32px;
    /* 이미지 사이 간격 */
    margin: 32px auto;
    max-width: 960px;
}

.mockup-column .mockup {
    width: 100%;
    max-width: 960px;
    display: block;
}

/* 나란히 쓰는 작은 mockup */
.mockup-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px auto;
    max-width: 960px;
}

.mockup-sm {
    width: 100%;
    max-width: 420px;
    /* 🔥 여기 숫자로 크기 조절 */
    display: block;
}