* {
    box-sizing: border-box;
}

/* 오버스크롤(바운스) 제거 — 문서 끝을 넘어설 때 canvas 배경이 드러나는 것 방지 */
html {
    overscroll-behavior-y: none;
}

:root {
    --text-primary: #171717;
    --text-secondary: #4d4d4d;
    --brand: #9cffc4;
    --card-bg: #ffffff;
    --card-border: #ebebeb;
    --bg-cream: #fafafa;
    /* --bg-cream: #fcfbf8; */
    --bg-header: #fef9ed;
    --bg-footer: #f0eee6;
    --bg-dark: #211d1d;
    --bg-dark-card: #28282a;
    --content-max: 520px;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Pretendard", sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 56px 24px;
    padding-bottom: 96px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* header */
.renewal-header {
    position: fixed;
    top: 16px;
    left: 24px;
    right: 24px;
    z-index: 100;
    max-width: calc(var(--content-max) - 48px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    /* 스크롤에 1:1 연동해 renewal.js가 인라인 transform으로 직접 이동(트랜지션 없이 즉시 반응) */
    will-change: transform;
}

.renewal-header .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.renewal-header .service-name {
    font-family: "Google Sans Flex", "Pretendard", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.renewal-header .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.renewal-header .menu-toggle .icon-menu-svg {
    color: var(--text-secondary);
}

.renewal-header .menu-toggle .icon-menu-path {
    stroke-width: 1px;
}

.renewal-header .icon-close {
    display: none;
}

.renewal-header.is-open .icon-hamburger {
    display: none;
}

.renewal-header.is-open .icon-close {
    display: block;
}

/* 열리는 메뉴 — grid rows 트랜지션으로 헤더가 아래로 늘어나고 다시 접힘 */
.header-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.header-menu-list {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}

.renewal-header.is-open .header-menu {
    grid-template-rows: 1fr;
}

.menu-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.menu-link:first-child {
    margin-top: 24px;
}

.menu-link+.menu-link {
    margin-top: 24px;
}

.menu-link:last-child {
    margin-bottom: 16px;
}

/* hero — 배경 자동 슬라이드 + 딤 + 흰 헤드라인 */
.hero {
    position: relative;
    height: 100vh;
    /* svh: 하단 바가 보이는 상태 기준 고정 높이 — 스크롤 중 브라우저 UI가 접혀도 값이 변하지 않아 출렁임 없음 */
    height: 100svh;
    /* JS가 로드 시 1회 측정한 픽셀값 — 단위 해석 편차 없이 완전 고정(미설정 시 svh 폴백) */
    height: var(--app-height, 100svh);
    display: flex;
    /* 변경: 제목과 버튼을 세로로 정렬 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 변경: 세로 정렬 시 제목-버튼 간격 */
    gap: 32px;
    overflow: hidden;
}

/* 스크롤로 hero를 완전히 지나치면 숨김 — 최하단 오버스크롤 시 hero 노출 방지(renewal.js에서 토글) */
.hero.is-past {
    visibility: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

/* 모바일(~767px) 배경 이미지 — 원본 PNG를 웹용으로 압축한 JPEG 사용 */
.hero-slide:nth-child(1) {
    background-image: url("../assets/images/img_a.jpg");
}

.hero-slide:nth-child(2) {
    background-image: url("../assets/images/img_b.jpg");
}

.hero-slide:nth-child(3) {
    background-image: url("../assets/images/img_c.jpg");
}

/* PC/태블릿(768px~) 배경 이미지 — 사이트 공통 분기 기준(767px)과 일치 */
@media (min-width: 768px) {
    .hero-slide:nth-child(1) {
        background-image: url("../assets/images/main_img_01.jpg");
    }

    .hero-slide:nth-child(2) {
        background-image: url("../assets/images/main_img_02.jpg");
    }

    .hero-slide:nth-child(3) {
        background-image: url("../assets/images/main_img_03.jpg");
    }
}

.hero-dim {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-title {
    position: relative;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}

/* 변경: 고정 히어로 위로 스크롤되는 콘텐츠 시작 섹션 — 배경 투명 */
.problem {
    /* margin-top: var(--app-height, 100svh); */
    background-color: transparent;
    height: 70vh;
    height: 70svh;
    height: calc(var(--app-height, 100svh) * 0.7);
    padding: var(--problem-pad, 24px);
}

.problem-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: transparent;
    border-radius: var(--problem-radius, 24px);
}

.problem-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
}

/* service — 카드 2개 */
.service {
    background-color: var(--bg-cream);
}

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
}

.card-obje {
    display: flex;
    width: 48px;
    height: 48px;
}

/* 두 번째 카드 아이콘 — 기둥 2개 모양(피그마 vector 재현) */
.card-obje--pillars {
    position: relative;
}

.card-obje--pillars .pillar {
    position: absolute;
    top: 2px;
    width: 21px;
    height: 44px;
    background-color: var(--brand);
    border-radius: 8px 100px 100px 8px;
}

.card-obje--pillars .pillar:first-child {
    left: 3px;
}

.card-obje--pillars .pillar:last-child {
    left: 24px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

/* reason — 다크 섹션 */
.reason {
    background-color: var(--bg-dark);
}

.reason .section-subtitle,
.reason .section-title,
.reason .card-title,
.reason .card-subtitle {
    color: #fff;
}

.reason-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reason-card {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 24px;
    background-color: rgba(128, 128, 128, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.reason-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(250, 250, 250, 0.5);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.reason-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reason-card .card-title {
    font-weight: 500;
}

.reason-card .card-subtitle {
    font-size: 15px;
    font-weight: 400;
}

/* discount — 가격 비교(다크 섹션) */
.discount {
    background-color: var(--bg-dark);
}

.discount .section-title {
    color: #fff;
}

.discount .section-inner {
    gap: 24px;
}

.discount-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.discount-cards {
    position: relative;
    display: flex;
    gap: 8px;
    width: 100%;
}

.discount-card {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 222px;
    padding: 20px;
    border-radius: 16px;
}

.discount-card--light {
    background-color: var(--card-bg);
    border: 1px solid rgba(235, 235, 235, 0.08);
}

.discount-card--dark {
    background-color: #282828;
    border: 1px solid rgba(235, 235, 235, 0.06);
    color: #fff;
}

.discount-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discount-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.discount-card--dark .discount-card-title {
    text-transform: uppercase;
}

.discount-card-desc {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.discount-card--dark .discount-card-desc {
    font-weight: 400;
    color: #fff;
}

.discount-price {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.price-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-unit {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    padding-bottom: 3px;
    color: var(--text-secondary);
}

.discount-card--dark .price-unit {
    color: #fff;
}

/* 두 카드 사이 중앙에 겹치는 회전 스티커 */
.discount-sticker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    padding: 16px 24px;
    background-color: var(--brand);
    border-radius: 100px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
}

.discount-caption {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #999;
}

/* package — MMMH 패키지: 등급별 이미지 캐러셀(스크롤스냅 스와이프 + 점 인디케이터) */
.package .section-inner {
    gap: 40px;
    background-color: #fff;
}

.package-tier {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-tier-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.package-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: var(--text-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.package-tier-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.package-tier-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.package-tier-desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.package-carousel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* 섹션 좌우 패딩(24px) 밖으로 빼내 이미지가 화면 끝까지 가도록.
       패딩으로 첫 슬라이드는 제목과 정렬 유지, scroll-padding으로 스냅 위치도 24px에 맞춤 */
    margin-inline: -24px;
    padding-inline: 24px;
    scroll-padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.package-track::-webkit-scrollbar {
    display: none;
}

.package-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background-color: #d9d9d9;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.package-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.package-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.package-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #d9d9d9;
    transition: background-color 0.2s ease;
}

.package-dot.is-active {
    background-color: var(--text-primary);
}

.package-note {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-note-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.package-note-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: package-note;
}

.package-note-list li {
    counter-increment: package-note;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #999;
}

.package-note-list li::before {
    content: counter(package-note) ". ";
}

/* cta — hero처럼 뷰포트 전체 높이, 콘텐츠는 중앙 정렬 */
.cta {
    background-color: #fff;
    min-height: 100vh;
    /* svh: 하단 바 상태와 무관한 고정 높이(hero와 동일한 이유) */
    min-height: 100svh;
    min-height: var(--app-height, 100svh);
    display: flex;
    align-items: center;
}

.cta .section-inner {
    width: 100%;
    gap: 40px;
    align-items: center;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.cta-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

/* 추가: 방문 시 확인 가능한 내용 — 심플 텍스트 리스트 */
.cta-checklist {
    margin-top: 24px;
    text-align: left;
    padding: 20px;
    background-color: #f5f5f5;
    border: 1px solid rgba(235, 235, 235, 0.06);
    border-radius: 16px;
}

.cta-checklist-lead {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 1.2em;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.cta-checklist-items li strong {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cta-button {
    /* 변경: 배경 슬라이드(absolute) 위로 올려 깜빡임 방지 */
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 56px;
    background-color: var(--brand);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* 추가: 하단 CTA 버튼 텍스트-화살표 간격 */
.cta .cta-button {
    width: 100%;
    max-width: 480px;
    gap: 6px;
}

.cta-button-icon {
    flex-shrink: 0;
}

/* faq — 자주 묻는 질문 아코디언 */
.faq {
    background-color: #fafafa;
}

.faq-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--card-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    text-align: left;
}

.faq-question-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.faq-caret {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-caret {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    min-height: 0;
}

.faq-answer-text {
    padding: 16px;
    background-color: #f5f5f5;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0em;
    color: var(--text-primary);
}

/* footer */
.footer {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 24px;
    padding-bottom: 32px;
    background-color: #fafafa;
    color: var(--text-primary);
}

.footer a {
    color: inherit;
}

.footer a:hover,
.footer a:focus-visible {
    text-decoration: underline;
}

/* 콘텐츠 폭 — 다른 섹션과 동일한 최대폭 중앙 정렬 */
.footer-contact,
.footer-info {
    width: 100%;
    max-width: calc(var(--content-max) - 48px);
    margin: 0 auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
}

.footer-contact-hours {
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.footer-chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 사업자 정보 아코디언 — 기본 접힘, 토글 시 grid rows 전환 */
.footer-biz {
    display: flex;
    flex-direction: column;
}

.footer-biz-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

.footer-biz-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -0.01em;
}

.footer-biz-caret {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.footer-biz.is-open .footer-biz-caret {
    transform: rotate(180deg);
}

.footer-biz-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.footer-biz.is-open .footer-biz-detail {
    grid-template-rows: 1fr;
}

.footer-biz-rows {
    overflow: hidden;
    min-height: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-biz-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* 펼쳤을 때 제목과 첫 행 사이 간격 */
.footer-biz-row:first-child {
    margin-top: 16px;
}

.footer-biz-row dt {
    flex-shrink: 0;
    width: 80px;
    font-weight: 600;
}

.footer-biz-row dd {
    margin: 0;
    flex: 1 0 0;
    min-width: 1px;
    font-weight: 400;
    line-height: 1.3;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}