/* css/pricing-new.css */

.page-container {
    min-height: 100vh;
    background-color: #1a1d21;
}

/* Pricing Intro Section */
.pricing-intro-section {
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.pricing-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 29, 33, 0.85);
}

.pricing-intro-section .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.pricing-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.pricing-subtitle {
    font-size: 20px;
    color: #00e676;
    margin-bottom: 16px;
    font-weight: 600;
}

.pricing-description {
    font-size: 16px;
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.new-pricing-section {
    padding: 80px 0;
    background-color: #1a1d21;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.plan {
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    position: relative;
}

.plan:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Plan colors - header only */
.plan:nth-child(1) {
    border-radius: 16px 0 0 16px;
}

.plan:nth-child(1) .plan-header {
    background: #6c6d70;
}

.plan:nth-child(2) .plan-header {
    background: #00d4e6;
}

.plan:nth-child(3) .plan-header {
    background: #00e676;
}

.plan:nth-child(4) {
    border-radius: 0 16px 16px 0;
}

.plan:nth-child(4) .plan-header {
    background: #5c8eff;
}

.plan.featured {
    transform: none;
}

.plan-header {
    text-align: center;
    padding: 28px 20px 24px;
}

.plan-header h3 {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.plan-header p {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
}

.plan-price {
    text-align: center;
    padding: 20px 20px 4px;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-price .price-text {
    font-size: 12px;
    color: #b0b0b0;
    margin-bottom: 6px;
    font-weight: 500;
}

.plan-price .price-amount {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

/* 영문 버전에서 가격 폰트 크기 줄이기 */
html[lang="en"] .plan-price .price-amount {
    font-size: 22px;
}

.plan-button {
    padding: 0 24px 18px;
    text-align: center;
}

.plan-button .btn-plan {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.98);
    color: #1a1d21;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-button .btn-plan:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.plan-description {
    padding: 4px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-description p {
    font-size: 12px;
    color: #b0b0b0;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 20px 24px 24px;
    margin: 0;
    flex-grow: 1;
}

.plan-features li {
    font-size: 12px;
    color: #d0d0d0;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
}

.plan-features li::before {
    content: '✓';
    font-weight: 900;
    flex-shrink: 0;
    font-size: 14px;
    color: #00e676;
}

.plan-options {
    display: none;
}

.option-group {
    margin-bottom: 16px;
}

.option-group label {
    display: block;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.radio-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
}

.option-group input[type="number"] {
    width: 60px;
    padding: 8px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-gray);
    color: var(--text-white);
    border-radius: 4px;
}

.plan-total {
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-gray);
}

.plan-footer {
    text-align: center;
    margin-top: 24px;
}

.plan-footer p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* Additional styles for the new pricing page design */

.plan.recommended {
    border-color: var(--accent-teal);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.plan-header .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin: 16px 0;
}

.plan-header .price strong {
    font-size: 36px;
    color: var(--accent-teal);
}

.plan-description {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
    min-height: 60px;
}

.plan-features li {
    justify-content: flex-start;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
}

.plan-features .icon-check {
    color: var(--accent-teal);
    margin-right: 12px;
    font-size: 20px;
}

/* Feature Comparison Table */
.feature-comparison-section {
    padding: 80px 0;
    background-color: #1a1d21;
}


.feature-comparison-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 36px;
    font-weight: 700;
}

/* Mobile Plan Tabs */
.mobile-plan-tabs {
    display: none;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
    user-select: none;
}

.mobile-plan-tabs:active {
    cursor: grabbing;
}

.mobile-plan-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.mobile-plan-tabs .plan-tab {
    flex: 0 0 auto;
    min-width: 80px;
    padding: 12px 16px;
    background: #2b2d31;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-plan-tabs .plan-tab:nth-child(1).active {
    background: #8a8c8f;
    border-color: #8a8c8f;
    color: #ffffff;
}

.mobile-plan-tabs .plan-tab:nth-child(2).active {
    background: #00d4e6;
    border-color: #00d4e6;
    color: #ffffff;
}

.mobile-plan-tabs .plan-tab:nth-child(3).active {
    background: #00e676;
    border-color: #00e676;
    color: #ffffff;
}

.mobile-plan-tabs .plan-tab:nth-child(4).active {
    background: #5c8eff;
    border-color: #5c8eff;
    color: #ffffff;
}

/* Mobile Plan Header */
.mobile-plan-header {
    display: none;
    background: #2b2d31;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.mobile-plan-header .selected-plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table {
    overflow-x: auto;
    position: relative;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background-color: #2b2d31;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    color: #e0e0e0;
}

.comparison-table thead {
    transition: all 0.3s ease;
}

.comparison-table thead th {
    background-color: #1f2125;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 16px;
}

.comparison-table thead th:nth-child(2) {
    color: #8a8c8f;
}

.comparison-table thead th:nth-child(3) {
    color: #00d4e6;
}

.comparison-table thead th:nth-child(4) {
    color: #00e676;
}

.comparison-table thead th:nth-child(5) {
    color: #5c8eff;
}


.comparison-table.sticky-header thead th:first-child {
    background-color: #1f2125;
}

.comparison-table.sticky-header thead th:nth-child(2) {
    background-color: #1f2125;
    color: #8a8c8f;
}

.comparison-table.sticky-header thead th:nth-child(3) {
    background-color: #1f2125;
    color: #00d4e6;
}

.comparison-table.sticky-header thead th:nth-child(4) {
    background-color: #1f2125;
    color: #00e676;
}

.comparison-table.sticky-header thead th:nth-child(5) {
    background-color: #1f2125;
    color: #5c8eff;
}

.comparison-table tbody th {
    background-color: #25272b;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
}

/* Section Divider Rows (일반 사용자 / 조직 관리자) */
.comparison-table tbody tr.section-divider td {
    background-color: #16181c;
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 24px 16px;
    text-align: center;
    border-top: 2px solid #00d4e6;
    border-bottom: 2px solid #00d4e6;
}

.comparison-table tbody tr.section-divider:first-child td {
    border-top: none;
}

/* Category Header Rows */
.comparison-table tbody tr.category-header {
    background-color: #1f2125;
}

.comparison-table tbody tr.category-header td {
    background-color: #1f2125;
    font-weight: 700;
    font-size: 14px;
    color: #00e676;
    text-align: left;
    padding: 18px 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-top: 2px solid rgba(0, 230, 118, 0.2);
    border-bottom: 2px solid rgba(0, 230, 118, 0.2);
}

.comparison-table tbody tr.category-header:first-child td {
    border-top: none;
}

.comparison-table tbody tr.category-header:hover {
    background-color: #1f2125;
}

.comparison-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Feature Yes/No Styling */
.comparison-table .feature-yes,
.comparison-table .feature-no {
    font-weight: 700;
    font-size: 20px;
    display: block;
    text-align: center;
}

.comparison-table .feature-yes::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    font-size: 20px;
}

.comparison-table .feature-no::before {
    content: '\f068';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    font-size: 20px;
}

/* Plan-specific colors for feature indicators */
.comparison-table td[data-plan="free"] .feature-yes {
    color: #8a8c8f;
}

.comparison-table td[data-plan="free"] .feature-no {
    color: #4a4c4f;
}

.comparison-table td[data-plan="basic"] .feature-yes {
    color: #00c473;
}

.comparison-table td[data-plan="basic"] .feature-no {
    color: #555555;
}

.comparison-table td[data-plan="team"] .feature-yes {
    color: #00c473;
}

.comparison-table td[data-plan="team"] .feature-no {
    color: #555555;
}

.comparison-table td[data-plan="enterprise"] .feature-yes {
    color: #69a7f3;
}

.comparison-table td[data-plan="enterprise"] .feature-no {
    color: #555555;
}

.comparison-table .icon-check {
    color: #00e676;
    font-size: 20px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #1a1d21;
    display: none; /* 나중에 사용하기 위해 숨김 */
}

.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-list {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #00e676;
}

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

.faq-answer p {
    padding: 0 0 28px 0;
    font-size: 15px;
    color: #b0b0b0;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
}

.faq-item.active .icon-arrow-down {
    transform: rotate(180deg);
}

.icon-arrow-down {
    transition: transform 0.3s ease-in-out;
    color: #00e676;
}

.comparison-table tbody td.plan-col {
    height: 56px;
}

/* Responsive adjustments for pricing plans */
@media (max-width: 1200px) {
    .pricing-plans {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 900px;
    }

    .plan:nth-child(1) {
        border-radius: 16px 0 0 0;
    }

    .plan:nth-child(2) {
        border-radius: 0 16px 0 0;
    }

    .plan:nth-child(3) {
        border-radius: 0 0 0 16px;
    }

    .plan:nth-child(4) {
        border-radius: 0 0 16px 0;
    }
}

@media (max-width: 768px) {
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 500px;
    }

    .mobile-plan-tabs .plan-tab {
        padding: 12px 4px !important;
        font-size: 11px !important;
    }

    .plan:nth-child(1),
    .plan:nth-child(2),
    .plan:nth-child(3),
    .plan:nth-child(4) {
        border-radius: 16px;
    }

    .new-pricing-section {
        padding: 40px 20px !important;
    }

    .feature-comparison-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .faq-section {
        padding: 40px 20px;
    }

    /* Mobile Tab Menu */
    .mobile-plan-tabs {
        display: flex;
    }

    .mobile-plan-header {
        display: block;
    }

    .comparison-table {
        overflow-x: visible;
    }

    .comparison-table table {
        min-width: auto;
        display: table;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tbody td.plan-col {
        display: none;
    }

    .comparison-table tbody td.plan-col.active {
        display: table-cell;
    }

    .comparison-table tbody td.feature-label {
        width: 50%;
        text-align: left;
        font-weight: 600;
    }

    /* Category header on mobile */
    .comparison-table tbody tr.category-header td {
        display: table-cell !important;
        width: 100%;
        font-size: 13px;
        padding: 14px 12px;
        letter-spacing: 0.5px;
    }

    /* Feature indicators on mobile */
    .comparison-table .feature-yes,
    .comparison-table .feature-no {
        font-size: 18px;
    }

    /* Disable sticky header on mobile */
    .comparison-table.sticky-header thead {
        position: static !important;
        top: auto !important;
    }
}

/* Pricing Notice Section */
.pricing-notice-section {
    padding: 40px 0 60px;
    background-color: #1a1d21;
}

.pricing-notice-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-notice {
    background: linear-gradient(135deg, rgba(0, 212, 230, 0.1) 0%, rgba(0, 230, 118, 0.1) 100%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
}

.pricing-notice .notice-main {
    font-size: 16px;
    font-weight: 600;
    color: #00e676;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.pricing-notice .notice-sub {
    font-size: 13px;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pricing-notice-section {
        padding: 30px 20px 40px;
    }

    .pricing-notice {
        padding: 20px 24px;
    }

    .pricing-notice .notice-main {
        font-size: 14px;
    }

    .pricing-notice .notice-sub {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .plan-header h3 {
        font-size: 24px;
    }

    .plan-price .price-amount {
        font-size: 40px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .pricing-notice {
        padding: 18px 20px;
    }

    .pricing-notice .notice-main {
        font-size: 13px;
    }

    .pricing-notice .notice-sub {
        font-size: 11px;
    }
}