/* ----- 1. (필수) CSS 리셋 ----- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ----- 2. 전역 색상 변수 정의 ----- */
:root {
    --primary-color: #F91A50;  /* 타이미 kPrimaryColor */
    --dark-text: #222222;      /* 기본 글자색 */
    --light-text: #555555;     /* 약간 더 진한 회색 글자 */
    --white-color: #FFFFFF;
    --light-gray-bg: #F9F9F9;  /* 섹션 배경색 */
    --border-color: #EEEEEE;   /* 구분선 색 */
}

/* ----- 3. 기본 페이지 스타일 ----- */

body {
    overflow-x: hidden; /* AOS 가로 스크롤바 방지 */
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6; 
    background-color: var(--white-color);
    color: var(--dark-text);

    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Chrome 및 표준 */
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--dark-text);
}

p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--light-text);
    max-width: 500px; /* 문단이 너무 길어지지 않게 */
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ----- 4. 공통 레이아웃 (헤더, 푸터, 법률 페이지) ----- */

/* [★수정됨] .header-container, .container, .legal-content가
   모든 중앙 정렬을 담당합니다. */
.header-container,
.container,
.legal-content {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 상단 고정 헤더 */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo {
    height: 24px;
    width: auto;
}
.header-container nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--light-text);
    margin-left: 20px;
    transition: color 0.2s ease;
}
.header-container nav a:hover {
    color: var(--dark-text);
    text-decoration: none;
}

/* 법률 페이지(terms, privacy) */
.legal-content {
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: left;
}
.legal-content h1 { font-size: 32px; border-bottom: 2px solid var(--border-color); padding-bottom: 16px; }
.legal-content h2, .legal-content h3 { font-size: 22px; margin-top: 30px; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--dark-text); max-width: none;}
.legal-content ol, .legal-content ul { margin-left: 20px; }

/* 푸터 */
footer {
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center; /* [★] 중앙 정렬 */
    font-size: 14px;
    color: var(--light-text);
    background-color: var(--light-gray-bg);
}
footer p {
    font-size: 14px;
    margin-bottom: 8px;
    max-width: none;
}
.social-icons {
    margin-bottom: 24px;
}
.social-icons a {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background-color: var(--border-color);
    color: var(--light-text);
    border-radius: 50%;
    margin: 0 8px;
    font-size: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
}


/* ===============================================
  '인테리어' 시작
===============================================*/


/* ----- 5. 섹션 1: The Hook (Hero) 스타일 ----- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}
/* [★수정됨] .hero 내부의 .container에도 padding을 줍니다 */
.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 40px;
}

/* ----- 6. 스토어 버튼 스타일 ----- */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #F1F1F1; /* 밝은 회색 */
    color: #333; /* 진한 글씨색 */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-button i {
    font-size: 20px;
    margin-right: 8px;
    color: #333;
}
.store-button:hover {
    transform: scale(1.03);
    text-decoration: none;
}
.store-button:active {
    transform: scale(0.98);
    box-shadow: none;
}


/* ----- 7. 섹션 2 & 3: Solution (Feature) 스타일 ----- */

.feature {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* [★수정됨] 짝수 번째 <section> 태그에만 회색 배경을 줍니다. */
/* (hero=1(흰), feature=2(회), feature.reverse=3(흰)) */
main > section:nth-of-type(even) {
    background-color: var(--light-gray-bg);
}

/* [★수정됨] .feature-item에 PC 중앙 정렬 코드가 이미 있습니다. */
.feature-item {
    text-align: left;
}

.feature-image {
    width: 100%;
    max-width: 450px;
    margin-top: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item h2 {
    font-size: 32px;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 17px;
    color: var(--light-text);
}

/* ----- 8. 섹션 4: Final CTA 스타일 ----- */
.final-cta {
    background-color: var(--primary-color);
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center; /* [★] 중앙 정렬 */
}
.final-cta h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 32px;
}
.final-cta p { /* CTA 섹션의 p 태그 스타일 추가 */
    color: rgba(255,255,255,0.8);
    margin: 0 auto 40px auto;
}


/* ----- 9. PC/태블릿 반응형 스타일 ----- */
@media (min-width: 768px) {
    /* PC에서는 제목 폰트 더 크게 */
    .hero h1 { font-size: 60px; }
    .feature-item h2 { font-size: 40px; }
    .feature-item p { font-size: 18px; }
    .final-cta h2 { font-size: 40px; }

    /* PC에서는 .feature-item 내부 요소들을 가로로 배치 (지그재그) */
    .feature-item {
        display: flex;
        align-items: center;
        gap: 60px;
    }
    
    .feature-item .text-content {
        flex: 1;
    }
    .feature-item .image-content {
        flex: 1;
    }

    .feature-image {
        margin-top: 0;
    }
    
    .feature.reverse .feature-item {
        flex-direction: row-reverse;
    }
}

/* ----- 10. 사전예약 페이지 (prereg.html) 스타일 ----- */
/* (기존 코드와 동일) */
.prereg-page {
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
    background-color: var(--light-gray-bg);
    min-height: 80vh;
}
.prereg-page h2 {
    font-size: 32px;
    margin-bottom: 12px;
}
.prereg-page p {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}
.prereg-form {
    max-width: 450px;
    margin: 0 auto;
}
.prereg-form input[type="tel"] {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    font-family: "Pretendard", sans-serif;
    margin-bottom: 16px;
}
.prereg-form input[type="tel"]:focus {
    border-color: var(--primary-color);
}
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--light-text);
}
.checkbox-group label {
    margin-left: 8px;
}
.prereg-form button[type="submit"] {
    width: 100%;
    padding: 18px 24px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-family: "Pretendard", sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}
.prereg-form button[type="submit"]:hover {
    background-color: #D91A4B;
}