:root {
    --primary: #5E43FF;
    --primary-light: #8B78FF;
    --primary-dark: #4A36CC;
    /* 보조·강조도 동일 톤(청록/주황 제거) */
    --secondary: #A894FF;
    --accent: #6E52E0;
    --text-dark: #111827;
    /* 본문·보조: 밝은 배경에서 대비 강화 */
    --text-muted: #1f2937;
    /* 푸터 어두운 배경용 보조색 */
    --footer-muted: #b3c0cd;
    --footer-muted-soft: #8b98a8;
    --bg-light: #F8F7FC;
    --white: #ffffff;
    --border: #E8E5F2;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --z-fab: 9999;
    --z-nav: 10000;
    --z-mobile-menu: 10001;
}

.text-highlight {
    color: var(--primary);
    font-weight: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* 한글·혼용: 어절 단위 유지, 공백·두음 규칙에서 줄바꿈 */
    word-break: keep-all;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    line-break: strict;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* iOS Safari 등: 100vh/dvh와 실제 뷰포트 보정 */
    min-height: 100%;
    min-height: -webkit-fill-available;
}

body {
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.72;
    font-weight: 500;
    word-break: keep-all;
    /* keep-all 유지 + 긴 토큰(이메일·URL)만 필요 시 분할 — 문장은 띄어쓰기·한글 규칙 우선 */
    overflow-wrap: break-word;
    hyphens: none;
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    /* 콘텐츠가 한 화면보다 짧을 때 푸터 아래 흰 여백 제거(메인이 늘어나 푸터가 바닥에 붙음) */
    display: flex;
    flex-direction: column;
}

/* 본문·랜딩 콘텐츠: 한글 keep-all + 공백·규칙 기반 줄바꿈 */
main {
    min-width: 0;
    flex: 1 0 auto;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 기본 본문 가독성(길게 읽는 영역 기준) */
p {
    line-height: 1.75;
    font-weight: 500;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 공백이 없는 긴 문자열(이메일/URL/긴 번호 등)만 예외적으로 줄바꿈 허용 */
.allow-break-word,
.modal-body,
.footer-legal,
.footer-meta-row,
.modern-table th,
.modern-table td {
    overflow-wrap: break-word;
}

/* 링크 가독성 + 키보드 포커스 */
a {
    color: inherit;
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    outline-offset: 0;
}

/* 폼 입력 포커스 보라 테두리 제거 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 67, 255, 0.12);
    border-color: rgba(94, 67, 255, 0.35);
}

/* ====================== */
/*   Floating Button(FAB) */
/* ====================== */
.fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: var(--z-fab);
    display: flex;
    /* + 버튼이 아래, 메뉴가 위로 뜨도록 */
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(94, 67, 255, 0.28);
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fab-main:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(94, 67, 255, 0.32);
}

.fab-menu {
    display: grid;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab.open .fab-menu {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.fab-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(6px);
    justify-content: center;
}

.fab-item:hover {
    transform: translateY(-1px);
    border-color: rgba(94, 67, 255, 0.35);
    box-shadow: var(--shadow-md);
}

.fab-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.fab-label {
    display: none;
}

@media (max-width: 480px) {
    .fab {
        right: max(14px, env(safe-area-inset-right));
        bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .fab-main {
        width: 52px;
        height: 52px;
        font-size: 30px;
    }

    .fab-item {
        width: 46px;
        height: 46px;
    }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
}

/* ====================== */
/*       Navbar           */
/* ====================== */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease-in-out, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}

/* 스크롤 후: 헤더를 반투명 + 블러(데스크톱) — 모바일은 아래 미디어쿼리에서 블러 끔 */
.navbar-wrapper.is-scrolled {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(232, 229, 242, 0.4);
    box-shadow: 0 4px 28px rgba(94, 67, 255, 0.07);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: 72px;
    max-width: 1140px;
    margin: 0 auto;
    min-width: 0;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -1px;
    z-index: 1001;
    min-width: 0;
    flex: 1 1 auto;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.nav-brand .logo-text {
    color: var(--primary);
}

.nav-brand .divider {
    color: rgba(94, 67, 255, 0.35);
    margin: 0 8px;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.nav-cta {
    color: var(--white);
}

.nav-links .btn.nav-cta {
    padding: 10px 18px;
    font-size: 0.98rem;
    line-height: 1.2;
    border-radius: 10px;
}

.nav-links a.nav-cta:hover {
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ====================== */
/*      Hero Section      */
/* ====================== */
.hero-section {
    padding: 40px 0;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(94, 67, 255, 0.05) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.hero-text,
.hero-visual {
    min-width: 0;
}

.hero-text {
    justify-self: end;
    max-width: 560px;
    width: 100%;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(94, 67, 255, 0.08);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.8px;
    font-weight: 600;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-btns .btn {
    font-weight: 500;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    max-width: 540px;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(94, 67, 255, 0.18));
}

/* ====================== */
/*        Sections        */
/* ====================== */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--white);
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
    letter-spacing: -1.2px;
    font-weight: 700;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: break-word;
    /* 본문 상속 대비: 섹션 제목은 항상 진한 색(모바일에서 연해 보이는 현상 방지) */
    color: var(--text-dark);
    -webkit-text-fill-color: var(--text-dark);
    text-shadow: none;
}

/* FAQ 섹션 제목: 모바일에서 확실히 검정으로 보이도록 고정 */
#faq .section-header h2 {
    color: #000000;
    -webkit-text-fill-color: #000000;
    opacity: 1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.65;
}

.text-center {
    text-align: center;
}

/* Icon Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.icon-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: 0.4s;
    text-align: center;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.icon-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.icon-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.icon-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 2.2rem;
}

.icon-box.purple {
    background: rgba(94, 67, 255, 0.1);
    color: var(--primary);
}

.icon-box.green {
    background: rgba(0, 209, 178, 0.1);
    color: #00D1B2;
}

.icon-box.orange {
    background: rgba(255, 138, 0, 0.1);
    color: #FF8A00;
}

/* Table Container */
.table-container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

.modern-table th,
.modern-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    line-height: 1.65;
    color: var(--text-dark);
    font-weight: 500;
}

.modern-table th {
    background: #F7F5FF;
    font-weight: 600;
}

/* Coverage Cards */
.coverage-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.coverage-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 54px 42px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: 0.35s ease;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.coverage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(94, 67, 255, 0.25);
}

.coverage-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    margin: 0 auto 28px;
}

.coverage-icon.purple {
    background: rgba(94, 67, 255, 0.1);
    color: var(--primary);
}

.coverage-icon.orange {
    background: rgba(255, 138, 0, 0.1);
    color: #FF8A00;
}

.coverage-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.coverage-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.55;
}

.coverage-note {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
}

.process-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.process-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 500;
}

.step-badge {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(94, 67, 255, 0.2);
}

/* Process Stepper (alt version) */
.process-steps {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.process-step {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 16px;
    min-width: 0;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 34px 26px;
    box-shadow: var(--shadow-sm);
    transition: 0.35s ease;
    text-align: center;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    width: fit-content;
    margin: 0 auto 22px;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(94, 67, 255, 0.22);
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.28);
    font-size: 1.75rem;
    margin: 0 auto 18px;
}

.step-emoji {
    line-height: 1;
    transform: translateY(1px);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
    text-align: center;
}

.step-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    font-weight: 500;
}

/* FAQ Style */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--white);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    touch-action: manipulation;
    /* 모바일: button 기본(회색/시스템색) 방지 + 질문 문구를 확실히 검정 */
    color: #000000;
    -webkit-text-fill-color: #000000;
    text-shadow: none;
}

.faq-trigger span {
    flex: 1 1 auto;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    color: #000000;
    -webkit-text-fill-color: #000000;
}

.faq-trigger i {
    flex-shrink: 0;
    color: rgba(94, 67, 255, 0.65);
    transition: color 0.2s ease, transform 0.2s ease;
}

.faq-item.active .faq-trigger i {
    color: var(--primary);
}

.faq-content {
    padding: 0 32px 24px;
    display: none;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 500;
}

/* Form Style */
.contact-bg {
    background: var(--white);
    border-top: none;
}

/* FAQ ↔ Contact 섹션 사이 구분선 제거(안전장치) */
#faq.section,
#contact.section {
    border-top: none;
    border-bottom: none;
}

.form-card {
    background: var(--white);
    border-radius: 30px;
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    /* Added line to define the box */
    font-size: 1rem;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    position: relative;
    z-index: 1;
}

.form-tabs-wrapper {
    max-width: 900px;
    margin: 0 auto 20px;
    /* Changed from -28px to positive 20px for clear separation */
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.form-tabs {
    display: flex;
    background: var(--primary);
    padding: 8px;
    border-radius: 24px;
    gap: 0;
    width: fit-content;
    box-shadow: 0 10px 25px rgba(94, 67, 255, 0.25);
}

.tab-btn {
    padding: 12px 64px;
    /* Increased horizontal padding from 32px to 64px */
    background: none;
    border: none;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    /* Active text: primary color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 28px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.form-group label .required {
    color: #EF4444;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: #FDFDFD;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-dark);
}

.form-group input:not([type="file"]),
.form-group select,
.form-group textarea {
    min-height: 54px;
}

.form-group textarea {
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    text-decoration: none;
    font-size: 1.15rem;
    touch-action: manipulation;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn {
    display: block;
    margin: 30px auto 0;
}

.btn-outline {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(94, 67, 255, 0.06);
    border-color: rgba(94, 67, 255, 0.28);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ====================== */
/*        Footer          */
/* ====================== */
.footer {
    background: #111827;
    color: var(--footer-muted);
    /* 상·하 여백 동일 기준 + 하단 safe-area만 추가 */
    padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
    text-align: left;
    margin-bottom: 0;
    position: relative;
    flex-shrink: 0;
}

.footer-inner {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.footer-top-links {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
}

.footer-top-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-top-links .divider {
    color: #475569;
    font-weight: 400;
    user-select: none;
}

.footer-rule {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    margin: 14px 0;
}

.footer-legal {
    font-size: 0.82rem;
    line-height: 1.85;
    color: var(--footer-muted);
    margin-bottom: 18px;
}

.footer-legal p {
    margin-bottom: 10px;
}

.footer-legal p:last-child {
    margin-bottom: 0;
}

.footer-compliance {
    /* 안내 문단(• 본 광고는…)과 동일 톤 — 회사명·전화·메일만 메타 행에서 별도 강조 */
    color: var(--footer-muted);
    font-weight: 500;
    margin-top: 0;
}

.footer-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--footer-muted);
    margin-bottom: 18px;
}

.footer-meta-piece strong {
    color: var(--white);
    font-weight: 600;
}

.footer-meta-strong {
    color: var(--white);
    font-weight: 700;
}

.footer-meta-sep {
    color: #475569;
    font-weight: 400;
    user-select: none;
}

.footer-copy {
    margin-top: 0;
    font-size: 0.78rem;
    color: var(--footer-muted-soft);
}

/* ====================== */
/*     Media Queries      */
/* ====================== */
@media (max-width: 1024px) {
    .container {
        padding-left: max(32px, env(safe-area-inset-left));
        padding-right: max(32px, env(safe-area-inset-right));
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        justify-self: center;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    /* law 섹션 카드: 화면 줄면 1개씩 차례대로(2열 금지) */
    #law .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .navbar {
        height: 72px;
    }

    /* backdrop-filter는 fixed 조상이 되어 .nav-links 드로어가 헤더 박스 안에만 갇힘 → 모바일에서 끔 */
    .navbar-wrapper {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }

    .navbar-wrapper.is-scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.45);
        border-bottom-color: rgba(232, 229, 242, 0.35);
        box-shadow: 0 4px 24px rgba(94, 67, 255, 0.06);
    }

    .nav-brand {
        font-size: 1.15rem;
        letter-spacing: -0.5px;
        flex: 1;
        min-width: 0;
        word-break: keep-all;
        position: relative;
        z-index: calc(var(--z-mobile-menu) + 1);
    }

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
        position: relative;
        z-index: calc(var(--z-mobile-menu) + 1);
    }

    /* 닫힌 드로어가 화면 밖이어도 터치를 가로채는 경우 방지 */
    .nav-links:not(.active) {
        pointer-events: none;
    }

    .section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-text h1 {
        letter-spacing: -0.95px;
        font-size: 2.2rem;
        line-height: 1.24;
    }

    .hero-text p {
        font-size: 1.12rem;
        line-height: 1.62;
    }

    .section-header h2 {
        font-size: 1.95rem;
        letter-spacing: -0.8px;
        line-height: 1.3;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        min-height: 52px;
    }

    .submit-btn {
        min-height: 52px;
        width: 100%;
        max-width: 100%;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 100dvh;
        max-height: -webkit-fill-available;
        padding: max(32px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        box-shadow: none;
        transition: transform 0.4s ease;
        transform: translateX(100%);
        box-sizing: border-box;
        z-index: var(--z-mobile-menu);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-links a {
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 18px;
        border-radius: 12px;
        touch-action: manipulation;
        font-size: 1.2rem;
    }

    .nav-links .btn.nav-cta {
        font-size: 1.15rem;
        padding: 14px 26px;
        border-radius: 12px;
        margin-top: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 18px;
    }

    .form-card {
        padding: 40px 20px;
        border-radius: 24px;
    }

    #dynamicFormTitle {
        font-size: 1.85rem;
        letter-spacing: -0.8px;
    }

    .form-partner-note {
        padding: 12px 16px;
        font-size: 0.88rem;
        margin-top: 14px;
    }

    .form-tabs-wrapper {
        margin-bottom: 24px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .step-card {
        padding: 30px 22px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.65rem;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .coverage-card {
        padding: 40px 28px;
        border-radius: 28px;
    }

    /* 햄버거 드로어(10001)보다 위에서 플로팅 버튼 항상 탭 가능 — 모달(20000)보다는 낮음 */
    .fab {
        z-index: calc(var(--z-mobile-menu) + 2);
    }

    .footer-meta-row {
        font-size: 0.78rem;
    }

    /* 글로벌 * 의 optimizeLegibility·antialiased 조합이 일부 모바일에서 제목을 옅게 만드는 경우 대응 */
    #faq .section-header h2 {
        text-rendering: geometricPrecision;
        -webkit-font-smoothing: subpixel-antialiased;
    }

    .faq-trigger,
    .faq-trigger span {
        color: #000000;
        -webkit-text-fill-color: #000000;
        text-rendering: geometricPrecision;
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-text h1 {
        font-size: 1.95rem;
        letter-spacing: -0.65px;
        line-height: 1.26;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 32px;
        line-height: 1.62;
    }

    .hero-tag {
        font-size: 0.92rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
        letter-spacing: -0.6px;
    }

    #dynamicFormTitle {
        font-size: 1.6rem;
        letter-spacing: -0.6px;
    }

    .form-card {
        padding: 32px 16px;
    }

    .form-info-box {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ====================== */
/*        Modals          */
/* ====================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(16, 13, 28, 0.62);
    backdrop-filter: blur(5px);
    z-index: 20000;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    display: grid;
    place-items: center;
    align-content: center;
}

.modal-container {
    background: var(--white);
    box-sizing: border-box;
    /* 그리드 안에서 뷰포트보다 넓어지지 않게 — 모바일에서 오른쪽으로 밀리는 현상 방지 */
    width: min(600px, 100%);
    min-width: 0;
    max-width: 100%;
    max-height: min(90vh, 90dvh);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--text-dark);
}

.form-info-box {
    background: transparent;
    border: 1px solid rgba(94, 67, 255, 0.15);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Form Card Header styling */
.form-card-header {
    margin-bottom: 40px;
}

#dynamicFormTitle {
    font-size: 2rem;
    /* Slightly larger title as requested */
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -1px;
}

/* 폼 제목 아래 안내 박스(견적신청 UI와 유사한 톤) */
.form-partner-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    margin: 18px auto 0;
    padding: 14px 20px;
    background: rgba(243, 244, 246, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    box-sizing: border-box;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.65;
    font-weight: 500;
    color: var(--text-muted);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.form-partner-note__icon {
    flex-shrink: 0;
    line-height: 1.45;
    font-size: 1.1rem;
}

.form-partner-note__text {
    min-width: 0;
}

/* 모달 본문: 가독성·행간·자간·좌측 정렬 통일 */
.modal-body {
    padding: 24px 26px 28px;
    overflow-y: auto;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.75;
    letter-spacing: -0.01em;
    font-weight: 500;
    text-align: left;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.modal-rich {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-rich .modal-section {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-sizing: border-box;
    text-align: left;
}

.modal-rich .modal-section + .modal-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.modal-rich h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.4;
    margin: 0 0 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-rich p {
    margin: 0;
    line-height: 1.75;
    letter-spacing: -0.01em;
}

.modal-rich p + p {
    margin-top: 14px;
}

.modal-subtitle {
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.modal-subtitle:first-child {
    margin-top: 0;
}

.modal-note {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.75;
    letter-spacing: -0.01em;
    margin-top: 10px;
    padding: 0;
    background: none;
    border: none;
}

/* 모달 리스트: 본문과 동일 행간·정렬 */
.dot-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dot-list li {
    position: relative;
    padding: 0 0 0 1em;
    margin: 0 0 10px;
    line-height: 1.75;
    letter-spacing: -0.01em;
    background: none;
    border: none;
    border-radius: 0;
}

.dot-list li:last-child {
    margin-bottom: 0;
}

.dot-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    top: 0.06em;
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 480px) {
    .modal-body {
        padding: 20px 18px 24px;
    }
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.btn-close-modal {
    padding: 12px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-close-modal:hover {
    background: var(--primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}