/* ==================== 비즈서치 - Professional B2B Design ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 87.5%; /* 14px base */
    scroll-behavior: smooth;
}

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --secondary: #475569;
    --bg: #F8FAFC;
    --card-bg: #ffffff;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-sub: #64748B;
    --text-muted: #94A3B8;
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --error: #EF4444;
    --error-light: #FEF2F2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ==================== Header ==================== */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
    margin-bottom: 0;
    transition: box-shadow 0.2s;
}

.sticky-header.scrolled {
    box-shadow: var(--shadow);
}

header { margin-bottom: 0; padding: 0; }

/* Launch Banner */
.launch-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-light);
    border-bottom: 1px solid #BFDBFE;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--primary);
}

.launch-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.launch-close {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.15s;
    line-height: 1;
}

.launch-close:hover {
    opacity: 1;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon { width: 32px; height: 32px; object-fit: contain; }

.logo-text { display: flex; flex-direction: column; }

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin: 0;
    font-weight: 400;
}

.auth-buttons { display: flex; gap: 0.5rem; align-items: center; }

.btn-auth {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-auth:hover { border-color: var(--primary); color: var(--primary); }

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

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

.user-menu { display: flex; gap: 0.6rem; align-items: center; }

.user-plan-badge {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-email { font-size: 0.8rem; color: var(--text-sub); }

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem 2.5rem;
    margin: 1.5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255,255,255,0.25);
    z-index: -1;
    border-radius: 2px;
}

.hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-hero-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ==================== Tab Navigation ==================== */
.tab-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s ease; }

.tab-description {
    background: var(--primary-light);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary);
}

.tab-description p { margin: 0; font-size: 0.85rem; color: var(--text); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==================== Main Query Area ==================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    color: var(--text);
    font-weight: 700;
}

.description {
    color: var(--text-sub);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

#businessNumbers {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Consolas', monospace;
    resize: vertical;
    transition: border-color 0.15s;
    margin-bottom: 0.75rem;
}

#businessNumbers:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.button-group { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; }

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

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

.btn-secondary {
    background: white;
    color: var(--text-sub);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--text-sub); }

/* Usage Display */
.usage-display {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-sub);
}

.usage-display:empty {
    display: none;
}

.usage-display strong { color: var(--primary); font-weight: 700; }

.usage-display.limit-reached {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: var(--primary);
}

.btn-upgrade-inline {
    margin-left: 0.4rem;
    padding: 0.2rem 0.6rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upgrade-inline:hover {
    background: var(--primary-hover);
}

.info-box {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    margin-top: auto;
}

.info-box strong { color: var(--text); display: block; margin-bottom: 0.3rem; font-size: 0.85rem; }

.info-box ul { list-style: none; padding-left: 0; }

.info-box li {
    color: var(--text-sub);
    font-size: 0.8rem;
    padding: 0.15rem 0 0.15rem 1rem;
    position: relative;
}

.info-box li:before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: var(--primary);
}

/* ==================== Results ==================== */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid var(--border);
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-export:hover { background: var(--primary-hover); }
.btn-export svg { flex-shrink: 0; }

.result-summary-message {
    padding: 0.5rem 0.85rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-sub);
    background: var(--bg);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    display: none;
}

.result-summary-message.show { display: block; }
.result-summary-message .success { color: var(--success); font-weight: 600; }
.result-summary-message .error { color: var(--error); font-weight: 600; }
.result-summary-message .total { color: var(--text); font-weight: 600; }

.result-container { flex: 1; overflow: auto; min-height: 0; }

.table-scroll-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    text-align: center;
}

.empty-state svg { margin-bottom: 0.75rem; color: var(--border); width: 64px; height: 64px; }

.result-disclaimer {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
    color: #64748B;
    line-height: 1.7;
    border-top: 1px solid var(--border);
}

/* Status Card (에러, 한도초과 등) */
.status-card {
    max-width: 480px;
    margin: 2.5rem auto;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.status-card--info {
    border-color: #BFDBFE;
    background: linear-gradient(180deg, #EFF6FF 0%, #ffffff 100%);
}

.status-card--error {
    border-color: var(--border);
    background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}

.status-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.status-card--info .status-card__icon {
    background: #DBEAFE;
    color: var(--primary);
}

.status-card--error .status-card__icon {
    background: var(--bg);
    color: var(--text-sub);
}

.status-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.status-card__message {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-sub);
    margin-bottom: 1.5rem;
}

.status-card__message:last-child {
    margin-bottom: 0;
}

.status-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.status-card__btn--info {
    background: var(--primary);
    color: white;
}

.status-card__btn--info:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.status-card__btn--error {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.status-card__btn--error:hover {
    background: var(--border);
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 0.75rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-progress {
    width: 180px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.loading-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Result Table */
.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
}

.result-table thead {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
}

.result-table th {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    font-size: 0.75rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.result-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.result-table tbody tr:hover { background: var(--bg); }

.business-number {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.status-text { line-height: 1.5; }
.inquiry-date { color: var(--text-sub); text-align: center; white-space: nowrap; }

/* Error Row */
table.result-table tbody tr.error-row,
table.result-table tbody tr[data-error="true"] {
    background: var(--error-light) !important;
    border-left: 3px solid var(--error) !important;
}

table.result-table tbody tr.error-row td,
table.result-table tbody tr[data-error="true"] td {
    color: var(--error) !important;
    font-weight: 600 !important;
}

.error-cell { color: var(--error) !important; font-weight: 600 !important; }

/* ==================== How It Works ==================== */
.how-it-works-section {
    margin: 1rem 0 0 0;
    padding: 1.5rem 0 0.5rem 0;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.step-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex: 1;
    max-width: 240px;
    position: relative;
    transition: all 0.2s;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
}

.step-icon { color: var(--primary); margin-bottom: 0.75rem; }

.step-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }

.step-card p { font-size: 0.8rem; color: var(--text-sub); line-height: 1.5; }

.step-divider { color: var(--text-muted); flex-shrink: 0; }

/* ==================== Comparison Section ==================== */
.comparison-section {
    margin: 1rem 0 0 0;
    padding: 1.5rem 0 0.5rem 0;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 1.5rem;
}

.comparison-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.comparison-card.before { background: var(--bg); }
.comparison-card.before::before { background: var(--text-muted); }

.comparison-card.after {
    background: linear-gradient(to bottom, var(--primary-light) 0%, white 100%);
    border-color: var(--primary);
}
.comparison-card.after::before { background: var(--primary); }

.comparison-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-header.before-header { color: var(--text-sub); }
.comparison-header.after-header { color: var(--primary); }

.comparison-header svg { width: 40px; height: 40px; }

.comparison-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.comparison-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text);
    border-radius: 6px;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.comparison-list li svg { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-time {
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.comparison-time.primary {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.comparison-time strong {
    font-weight: 800;
    font-size: 1.5rem;
    display: block;
    margin-top: 0.25rem;
}

/* ==================== Pricing Section ==================== */
.pricing-section {
    margin: 0.5rem 0 1.5rem 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
    border-radius: var(--radius-lg);
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-sub);
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 880px;
    margin: 0 auto;
}

.pricing-card-landing {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card-landing:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.pricing-card-landing.featured-plan {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--primary);
}

.plan-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-price-area {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.price-original {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
}

.price-amount {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.price-amount small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-left: 1px;
}

.price-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.plan-features-landing {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.plan-features-landing li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text);
}

.plan-features-landing li.feature-disabled { color: var(--text-muted); opacity: 0.6; }
.plan-features-landing svg { flex-shrink: 0; width: 16px; height: 16px; }

.btn-plan-landing {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    transition: all 0.15s;
}

.btn-plan-landing:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.btn-plan-landing.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ==================== FAQ Section ==================== */
.faq-section {
    margin: 0.5rem 0 1rem 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.faq-container { margin-top: 1.5rem; }

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item:hover { border-color: var(--primary); }

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: all 0.15s;
}

.faq-question span { flex: 1; min-width: 0; }
.faq-question:hover { background: var(--bg); }
.faq-item.active .faq-question { color: var(--primary); background: var(--primary-light); }

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0.5rem 1.25rem 1.25rem;
}

.faq-answer p { color: var(--text-sub); line-height: 1.7; font-size: 0.85rem; }

/* ==================== Final CTA ==================== */
.final-cta-section {
    text-align: center;
    padding: 3rem 2rem;
    margin: 1rem 0 0 0;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.final-cta-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.final-cta-section p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-final-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-final-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==================== Logged-in State ==================== */
body.logged-in .marketing-only {
    display: none !important;
}

/* ==================== Contact Section ==================== */
.contact-section {
    max-width: 600px;
    margin: 1rem auto 0 auto;
    padding: 2rem 0 0 0;
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.15s;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.contact-form textarea {
    resize: vertical;
}

.btn-contact-submit {
    width: 100%;
    padding: 0.7rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-contact-submit:hover {
    background: var(--primary-hover);
}

.contact-notice {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== Footer ==================== */
footer {
    text-align: center;
    padding: 2rem 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-business-info {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-company {
    font-weight: 700;
    color: var(--text-sub);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.footer-details {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-divider {
    margin: 0 0.4rem;
    color: var(--border);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer-details span {
        display: block;
    }
    .footer-details .footer-divider {
        display: none;
    }
}


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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 92%;
    max-height: 90vh;
    overflow: auto;
    animation: slideUp 0.2s ease;
}

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

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 1.5rem; }

.modal-description { color: var(--text-sub); margin-bottom: 1.25rem; font-size: 0.9rem; }

/* Export Modal */
.export-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.export-option {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.export-option:hover {
    border-color: var(--primary);
    background: white;
}

.export-icon { margin-bottom: 0.5rem; color: var(--primary); }
.export-label { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.export-desc { font-size: 0.7rem; color: var(--text-muted); }

/* Upgrade Modal */
/* 내 구독 모달 */
.myplan-modal { max-width: 420px; }

.myplan-content { padding: 0.5rem 0; }

.myplan-loading { text-align: center; padding: 2rem; color: var(--text-muted); }

.myplan-info { display: flex; flex-direction: column; gap: 0.75rem; }

.myplan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.myplan-row:last-child { border-bottom: none; }

.myplan-label { color: var(--text-muted); font-weight: 500; }

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

.myplan-value.pro { color: var(--primary); }

.myplan-upgrade-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.myplan-upgrade-btn:hover { background: var(--primary-hover); }

.upgrade-modal { max-width: 700px; }

.upgrade-message {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
}

.upgrade-message svg { margin-bottom: 0.75rem; width: 48px; height: 48px; }

.upgrade-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.upgrade-subtitle { font-size: 0.9rem; color: var(--text-sub); }

.pricing-plans { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.pricing-plans .pricing-card { max-width: 320px; width: 100%; }

.upgrade-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.price-small-original {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.15rem;
}

.pricing-card {
    position: relative;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s;
}

.pricing-card:hover { border-color: var(--primary); }

.pricing-card.featured {
    border-color: var(--primary);
    background: var(--primary-light);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.plan-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.plan-header h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }

.plan-price { display: flex; align-items: baseline; gap: 0.2rem; }
.plan-price .price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.plan-price .period { font-size: 0.85rem; color: var(--text-sub); }

.plan-features { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.plan-features li { padding: 0.35rem 0; color: var(--text-sub); font-size: 0.85rem; }
.plan-features li strong { color: var(--primary); }

.btn-plan {
    width: 100%;
    padding: 0.65rem;
    border: 1.5px solid var(--primary);
    background: white;
    color: var(--primary);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.85rem;
}

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

.upgrade-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-sub);
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 6px;
}

/* Auth Modal */
.auth-modal { max-width: 400px; }

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.form-group input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.auth-error {
    background: var(--error-light);
    color: var(--error);
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.btn-auth-submit {
    width: 100%;
    padding: 0.7rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-auth-submit:hover { background: var(--primary-hover); }

.auth-toggle {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.auth-toggle span { color: var(--text-sub); font-size: 0.8rem; margin-right: 0.3rem; }

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-text:hover { text-decoration: underline; }

/* Upgrade Hint */
.upgrade-hint {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.upgrade-hint:hover { text-decoration: underline; }

/* Search Tab */
.search-content { max-width: 100%; }

.search-box { display: flex; gap: 0.75rem; margin-bottom: 1rem; }

.search-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.15s;
}

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

.corp-name { font-weight: 600; }

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-lg);
    border-left: 3px solid var(--primary);
    max-width: 380px;
    min-width: 280px;
    animation: toastIn 0.3s ease;
    position: relative;
}

.toast.toast-exit { animation: toastOut 0.2s ease forwards; }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.8rem; color: var(--text); margin-bottom: 0.15rem; }
.toast-message { font-size: 0.75rem; color: var(--text-sub); line-height: 1.4; }

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.15rem;
    flex-shrink: 0;
    opacity: 0.5;
}

.toast-close:hover { opacity: 1; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 3px;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 var(--radius) 0;
    animation: toastProgress 4s linear forwards;
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-success .toast-progress { background: var(--success); }
.toast.toast-error { border-left-color: var(--error); }
.toast.toast-error .toast-progress { background: var(--error); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-warning .toast-progress { background: var(--warning); }

@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(60px); } }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

/* ==================== Scroll Animations ==================== */
.scroll-fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.scroll-fade-up.visible { opacity: 1; transform: translateY(0); }

.scroll-fade-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.scroll-fade-left.visible { opacity: 1; transform: translateX(0); }

.scroll-fade-right { opacity: 0; transform: translateX(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.scroll-fade-right.visible { opacity: 1; transform: translateX(0); }

.scroll-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.4s ease, transform 0.4s ease; }
.scroll-scale.visible { opacity: 1; transform: scale(1); }

.scroll-animate-delay-1 { transition-delay: 0.1s; }
.scroll-animate-delay-2 { transition-delay: 0.2s; }
.scroll-animate-delay-3 { transition-delay: 0.3s; }
.scroll-animate-delay-4 { transition-delay: 0.35s; }
.scroll-animate-delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .scroll-fade-up, .scroll-fade-left, .scroll-fade-right, .scroll-scale {
        opacity: 1; transform: none; transition: none;
    }
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .main-content { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
    .pricing-card-landing.featured-plan { order: -1; }
    .comparison-container { grid-template-columns: 1fr; }
    .comparison-arrow { display: none; }
    .steps-container { flex-direction: column; gap: 1rem; }
    .step-divider { transform: rotate(90deg); }
    .step-card { max-width: 100%; width: 100%; }
}

@media (max-width: 640px) {
    html { font-size: 87.5%; }
    .container { padding: 0 1rem; }

    .sticky-header { padding: 0.6rem 1rem; }
    .logo-icon { width: 28px; height: 28px; }
    .logo { font-size: 1.1rem; }
    .subtitle { display: none; }
    .user-email { display: none; }

    .btn-auth { padding: 0.35rem 0.6rem; font-size: 0.75rem; }

    .hero-section { padding: 2rem 1.5rem; margin: 1rem 0; }
    .hero-title { font-size: 1.5rem; }
    .hero-description { font-size: 0.85rem; }
    .hero-buttons { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; }

    .card { padding: 1.25rem; }
    .button-group { flex-direction: column; }
    .result-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .btn-export { width: 100%; justify-content: center; }
    .result-table { min-width: 480px; }

    .export-options { grid-template-columns: 1fr; }
    .modal-content { width: 95%; }

    .section-title { font-size: 1.35rem; }
    .section-subtitle { font-size: 0.85rem; margin-bottom: 1.25rem; }

    .upgrade-plans { grid-template-columns: 1fr; }

    .toast-container { top: auto; bottom: 1rem; right: 0.75rem; left: 0.75rem; }
    .toast { min-width: auto; max-width: 100%; }

    .search-box { flex-direction: column; }
}

/* Coming Soon Tab */
.tab-btn.coming-soon { color: var(--text-muted); opacity: 0.6; cursor: default; position: relative; }
.tab-btn.coming-soon:hover { background: transparent; color: var(--text-muted); }
.tab-btn.coming-soon::after {
    content: 'SOON';
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    font-size: 0.5rem;
    background: var(--secondary);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 700;
}

.input-section, .result-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.active { background: var(--success-light); color: var(--success); }
.status-badge.inactive { background: var(--error-light); color: var(--error); }
.status-badge.error { background: var(--warning-light); color: var(--warning); }
