/* 성격 기질 유형 검사 — 공통 스타일 */

/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-light: #7c8ff0;
    --primary-dark: #5468d4;
    --secondary: #764ba2;
    --accent: #f093fb;
    --accent-light: #f5b0fc;
    --white: #ffffff;
    --bg-light: #f5f3ff;
    --text-dark: #1a1a2e;
    --text-mid: #4a4a6a;
    --text-light: #8888aa;
    --border: #d5d0e8;
    --gold: #f0c27f;
    --gold-dark: #c49b4d;
    --success: #27ae60;
    --error: #e74c3c;
}

body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 공통 컨테이너 */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 화면 전환 */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.screen.active {
    display: block;
}

/* ===========================
   시작 화면
=========================== */
.start-header {
    text-align: center;
    margin-bottom: 30px;
}

.start-header h1 {
    font-size: 2.2rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 8px;
    line-height: 1.3;
}

.start-header .subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
}

.intro-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    text-align: center;
    width: 100%;
    max-width: 520px;
}

.intro-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.intro-description {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 28px;
}

.intro-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.feature-tag {
    background: var(--bg-light);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 추천 배지 */
.referral-badge {
    display: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.referral-badge.show {
    display: block;
}

.start-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    width: 100%;
    max-width: 300px;
    font-family: inherit;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(102,126,234,0.5);
}

.start-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* ===========================
   테스트 화면
=========================== */
.progress-wrapper {
    width: 100%;
    max-width: 520px;
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.progress-count {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* 5문항 페이지 레이아웃 */
.question-page-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 520px;
}

.question-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.question-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.question-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.question-number {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-text-likert {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Likert 스케일 라디오 */
.likert-group {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.likert-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.likert-radio {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border: 2.5px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto 4px;
    background: var(--white);
}

.likert-radio:hover {
    border-color: var(--primary-light);
    background: var(--bg-light);
}

.likert-radio:checked {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(102,126,234,0.4);
}

.likert-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-light);
    line-height: 1.2;
    word-break: keep-all;
}

/* 페이지 네비게이션 */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.nav-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    border: none;
}

.prev-btn {
    background: #f0eff5;
    color: var(--text-mid);
}

.prev-btn:hover {
    background: #e5e3ed;
}

.next-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    flex: 1;
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.45);
}

.next-btn:disabled {
    background: #c8c5d8;
    box-shadow: none;
    cursor: not-allowed;
    color: rgba(255,255,255,0.7);
}

/* ===========================
   로딩 화면
=========================== */
.loading-card {
    background: white;
    border-radius: 24px;
    padding: 56px 32px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.loading-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-mid);
    font-weight: 500;
}

.loading-dots {
    display: inline-block;
    animation: dots 1.5s infinite;
}

.loading-bar-wrapper {
    margin-top: 24px;
    background: #e8e6f0;
    border-radius: 6px;
    height: 6px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 6px;
    width: 0%;
    animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ===========================
   무료 결과 화면
=========================== */
.result-header {
    text-align: center;
    margin-bottom: 24px;
}

.result-header h2 {
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.result-header p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
}

.result-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 520px;
    margin-bottom: 20px;
}

/* 유형 배지 */
.result-type-badge {
    text-align: center;
    margin-bottom: 28px;
    padding: 28px 20px;
    border-radius: 18px;
    background: var(--bg-color, #f5f3ff);
}

.result-type-emoji {
    font-size: 4rem;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

.result-type-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--type-color, #667eea);
    margin-bottom: 8px;
}

.result-type-tagline {
    font-size: 0.95rem;
    color: var(--text-mid);
    font-style: italic;
}

/* 차트 컨테이너 */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 24px auto;
}

/* 차원별 바 */
.dimension-bars-section {
    margin: 24px 0;
}

.dimension-bar-wrapper {
    margin-bottom: 14px;
}

.dimension-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.dim-name {
    color: var(--text-dark);
}

.dim-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.dim-pct {
    font-weight: 700;
    color: var(--primary);
}

.dimension-bar {
    height: 10px;
    background: #e8e6f0;
    border-radius: 5px;
    overflow: hidden;
}

.dimension-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 하이라이트 */
.highlights-section {
    margin: 24px 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-item {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* ===========================
   Paywall / 잠금 영역
=========================== */
.locked-section {
    position: relative;
    margin-top: 24px;
}

.locked-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.paywall-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
}

.paywall-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.paywall-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.paywall-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 16px;
    line-height: 1.5;
}

.paywall-features {
    text-align: left;
    margin-bottom: 20px;
}

.paywall-feature {
    font-size: 0.85rem;
    color: var(--text-mid);
    padding: 3px 0;
}

.paywall-feature::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
}

/* 결제 CTA */
.unlock-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(240,194,127,0.4);
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    max-width: 320px;
}

.unlock-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(240,194,127,0.5);
}

.price-info {
    margin-top: 8px;
    font-size: 0.85rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 6px;
}

.current-price {
    color: var(--gold-dark);
    font-weight: 700;
}

.referral-discount-badge {
    display: none;
    background: var(--error);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    margin-left: 6px;
}

.referral-discount-badge.show {
    display: inline-block;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.floating-cta.show {
    display: flex;
}

.floating-cta .unlock-cta {
    max-width: 400px;
}

/* ===========================
   이메일 & 추천코드 입력
=========================== */
.payment-inputs {
    margin: 20px 0;
}

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 6px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-light);
}

.referral-status {
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 600;
}

.referral-status.valid {
    color: var(--success);
}

.referral-status.invalid {
    color: var(--error);
}

/* ===========================
   결제 모달
=========================== */
.payment-modal .modal-content {
    max-width: 420px;
}

.payment-summary {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.payment-summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.payment-methods-info {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 16px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-mid);
}

.terms-check input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.terms-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.pay-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    font-family: inherit;
}

.pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.5);
}

.pay-btn:disabled {
    background: #c8c5d8;
    box-shadow: none;
    cursor: not-allowed;
}

/* ===========================
   유료 결과 화면
=========================== */
.paid-section {
    margin-bottom: 24px;
}

.paid-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}

.paid-section-content {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.75;
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: 14px;
    border-left: 4px solid var(--primary);
}

/* 강점/주의 태그 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.strength-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.caution-tag {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 성장 전략 리스트 */
.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.strategy-item:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.strategy-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.strategy-text {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* 레퍼럴 코드 섹션 */
.referral-section {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 2px solid var(--gold);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    margin-top: 24px;
}

.referral-section h3 {
    font-size: 1.1rem;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.referral-code-display {
    background: white;
    border: 2px dashed var(--gold);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-bottom: 12px;
    display: inline-block;
    cursor: pointer;
}

.referral-code-display:hover {
    background: #fffde7;
}

.referral-share-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.referral-share-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

/* ===========================
   면책 고지
=========================== */
.disclaimer-box {
    background: #f8f6ff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 20px 0;
}

.disclaimer-text {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   액션 버튼
=========================== */
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 520px;
}

.restart-btn {
    background: linear-gradient(135deg, #546e7a 0%, #78909c 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(84,110,122,0.3);
    font-family: inherit;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

/* ===========================
   공유 모달
=========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: block;
}

.modal-content {
    background: white;
    margin: 15% auto;
    border-radius: 22px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.35);
}

.modal-body {
    padding: 24px;
}

/* ===========================
   Premium 배지 (대시보드용)
=========================== */
.premium-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 1px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ===========================
   이력 다시 보기 안내
=========================== */
.resume-banner {
    display: none;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #90caf9;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 520px;
}

.resume-banner.show {
    display: block;
}

.resume-banner p {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 12px;
}

.resume-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.resume-yes, .resume-no {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.resume-yes {
    background: var(--primary);
    color: white;
}

.resume-no {
    background: #e0e0e0;
    color: var(--text-mid);
}

/* ===========================
   애니메이션
=========================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   반응형
=========================== */
@media (max-width: 768px) {
    .container { padding: 16px; }
    .start-header h1 { font-size: 1.8rem; }
    .intro-card, .question-page-card, .result-card {
        padding: 28px 20px;
    }
    .result-header h2 { font-size: 1.7rem; }
    .result-type-name { font-size: 1.5rem; }
    .result-actions { flex-direction: column; align-items: center; }
    .restart-btn { width: 100%; max-width: 300px; }
    .likert-radio {
        width: 28px;
        height: 28px;
    }
    .likert-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .start-header h1 { font-size: 1.55rem; }
    .intro-icon { font-size: 3rem; }
    .question-text-likert { font-size: 0.95rem; }
    .likert-radio {
        width: 26px;
        height: 26px;
    }
    .likert-label {
        font-size: 0.55rem;
    }
    .result-type-emoji { font-size: 3rem; }
    .result-type-name { font-size: 1.35rem; }
    .floating-cta {
        flex-direction: column;
        padding: 10px 16px;
    }
}

/* ===========================
   접근성
=========================== */
.likert-radio:focus,
.start-btn:focus,
.restart-btn:focus,
.unlock-cta:focus, .pay-btn:focus,
.nav-btn:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ========================
   Footer
======================== */
.main-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 4rem 2rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #6366f1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
}
