/* Planos Page Styles */

.plans-container {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Header Section */
.plans-header-section {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Toggle Switch */
.plans-toggle-wrapper {
    display: inline-flex;
    background: rgba(31, 31, 31, 0.5);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    margin-top: 48px;
    margin-bottom: 48px;
    position: relative;
}

.toggle-btn {
    position: relative;
    z-index: 10;
    padding: 12px 40px;
    border-radius: 6px;
    font-family: "Ubuntu Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.5s ease;
    border: none;
    background: transparent;
    color: #9CA3AF; /* Gray 400 */
}

.toggle-btn:hover {
    color: #FFFFFF;
}

/* Stok Active State */
.toggle-btn.active.stok-active {
    color: #FFFFFF;
    background: #5140F7; /* Brand Purple */
    box-shadow: 0 0 40px rgba(81, 64, 247, 0.8);
}

/* Imersao Active State */
.toggle-btn.active.imersao-active {
    color: #000000;
    background: #8DFFE0;
    box-shadow: 0 0 40px rgba(141, 255, 224, 0.7);
}

/* Title & Subtitle */
.plans-title {
    font-size: 64px; /* Increased for Hero feel */
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .plans-title {
        font-size: 42px;
    }
}

.text-highlight {
    transition: color 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
    opacity: 1;
    filter: blur(0);
}

.text-highlight.stok {
    color: #8DFFE0;
    text-shadow: 0 0 30px rgba(141, 255, 224, 0.8);
}

.text-highlight.imersao {
    color: #5140F7; /* Brand Purple */
    text-shadow: 0 0 30px rgba(81, 64, 247, 0.8);
}

.text-highlight.fade-out {
    opacity: 0;
    filter: brightness(0.4) grayscale(1);
    text-shadow: none !important;
}

.plans-subtitle {
    font-size: 18px;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    transition: opacity 0.5s ease, filter 0.5s ease;
    opacity: 1;
    filter: blur(0);
}

.plans-subtitle.fade-out {
    opacity: 0;
    filter: brightness(0.4) grayscale(1);
}

/* Cards Grid */
.plans-grid-wrapper {
    width: 100%;
    max-width: 1280px;
    margin-bottom: 96px;
    transition: opacity 0.5s ease, filter 0.5s ease;
    opacity: 1;
    filter: blur(0);
}

.plans-grid-wrapper.fade-out {
    opacity: 0;
    filter: brightness(0.4) grayscale(1);
}

.plans-grid-wrapper.fade-out .plan-card,
.plans-grid-wrapper.fade-out .card-badge,
.plans-grid-wrapper.fade-out .card-icon-wrapper,
.plans-grid-wrapper.fade-out .card-cta {
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.plans-grid {
    display: grid;
    gap: 32px;
}

/* Grid Columns based on content */
.plans-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.plans-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1024px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .plans-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .plans-grid.cols-3,
    .plans-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Plan Card */
.plan-card {
    position: relative;
    padding: 32px;
    border-radius: 16px;
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Default border */
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
    overflow: visible; /* Changed from hidden to visible for badge */
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Card Theme: Stok */
.plan-card.theme-stok:hover {
    border-color: rgba(141, 255, 224, 0.5);
    box-shadow: 0 0 50px rgba(141, 255, 224, 0.3);
}

.plan-card.theme-stok.highlight {
    border-color: rgba(141, 255, 224, 0.5);
    box-shadow: 0 0 50px rgba(141, 255, 224, 0.3);
}

/* Card Theme: Imersao */
.plan-card.theme-imersao:hover {
    border-color: rgba(81, 64, 247, 0.5);
    box-shadow: 0 0 50px rgba(81, 64, 247, 0.3);
}

.plan-card.theme-imersao.highlight {
    border-color: rgba(81, 64, 247, 0.5);
    box-shadow: 0 0 50px rgba(81, 64, 247, 0.3);
}

/* Badge */
.card-badge {
    position: absolute;
    top: -1px; /* Align with border */
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    z-index: 2;
    transition: all 0.5s ease;
}

.card-badge.stok {
    background: #8DFFE0;
    color: #000000;
    border-color: #8DFFE0;
    box-shadow: 0 0 25px rgba(141, 255, 224, 0.8);
}

.card-badge.imersao {
    background: #5140F7;
    color: #FFFFFF;
    border-color: #5140F7;
    box-shadow: 0 0 25px rgba(81, 64, 247, 0.8);
}

/* Icon Wrapper */
.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(31, 31, 31, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.5s ease;
}

.plan-card:hover .card-icon-wrapper {
    transform: scale(1.1);
}

.card-icon-wrapper.stok {
    color: #8DFFE0;
    box-shadow: 0 0 20px rgba(141, 255, 224, 0.4);
}

.card-icon-wrapper.imersao {
    color: #5140F7;
    box-shadow: 0 0 20px rgba(81, 64, 247, 0.4);
}

/* Card Content */
.card-name {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.5;
    min-height: 42px;
    margin-bottom: 24px;
}

/* Features List */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #D1D5DB; /* Gray 300 */
    line-height: 1.4;
}

.feature-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: color 0.5s ease;
}

.feature-icon.stok {
    color: #8DFFE0;
}

.feature-icon.imersao {
    color: #5140F7;
}

/* CTA Button */
.card-cta {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-family: "Ubuntu Sans", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.5s ease;
    text-decoration: none;
}

.card-cta.stok {
    background: #8DFFE0;
    color: #000000;
    box-shadow: 0 0 25px rgba(141, 255, 224, 0.5);
}

.card-cta.stok:hover {
    background: rgba(141, 255, 224, 0.8);
    box-shadow: 0 0 40px rgba(141, 255, 224, 0.7);
}

.card-cta.imersao {
    background: #5140F7; /* Brand Purple */
    color: #FFFFFF;
    box-shadow: 0 0 25px rgba(81, 64, 247, 0.5);
}

.card-cta.imersao:hover {
    background: #6E5EFF; /* Lighter Purple */
    box-shadow: 0 0 40px rgba(81, 64, 247, 0.7);
}

/* Gradient Overlay */
.card-gradient-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 16px;
}

.card-gradient-overlay.stok {
    background: linear-gradient(to bottom, rgba(141, 255, 224, 0.1), transparent);
}

.card-gradient-overlay.imersao {
    background: linear-gradient(to bottom, rgba(81, 64, 247, 0.1), transparent);
}

.plan-card:hover .card-gradient-overlay {
    opacity: 1;
}

/* Syllabus Section */
.syllabus-section {
    width: 100%;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease, filter 0.4s ease;
    max-height: 0;
    opacity: 0;
    filter: brightness(1);
}

.syllabus-section.visible {
    max-height: 1000px;
    opacity: 1;
}

.syllabus-section.fade-out {
    opacity: 0;
    filter: brightness(0.4) grayscale(1);
}

.syllabus-container {
    max-width: 1024px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 64px;
}

.syllabus-header {
    text-align: center;
    margin-bottom: 48px;
}

.syllabus-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
}

.syllabus-header p {
    color: #9CA3AF;
}

.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .syllabus-grid {
        grid-template-columns: 1fr;
    }
}

.syllabus-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(31, 31, 31, 0.2);
    transition: border-color 0.3s ease;
}

.syllabus-item:hover {
    border-color: rgba(81, 64, 247, 0.3);
}

.syllabus-icon {
    color: #5140F7;
    margin-top: 4px;
}

.syllabus-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.syllabus-content p {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.5;
}

.syllabus-note {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    margin-top: 32px;
}

/* Plans Table Styles */
.plans-table-wrapper {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
}

.plans-table-header {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1fr;
    padding: 0 32px;
    margin-bottom: 8px;
    font-family: 'Ubuntu Sans';
    font-weight: 700;
    font-size: 16px;
    color: #8DFFE0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1fr;
    align-items: center;
    background: #111;
    border: 1px solid #8DFFE0;
    border-radius: 100px;
    padding: 20px 32px;
    transition: all 0.3s ease;
}

.plan-row:hover {
    background: rgba(141, 255, 224, 0.05);
    box-shadow: 0 0 20px rgba(141, 255, 224, 0.2);
    transform: scale(1.02);
}

.col-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Ubuntu Sans';
    font-weight: 700;
    font-size: 18px;
    color: #FFF;
}

.col-plan i {
    color: #8DFFE0;
}

.col-includes {
    font-family: 'Ubuntu Sans';
    font-size: 16px;
    color: #CCC;
}

.col-workspace {
    font-family: 'Ubuntu Sans';
    font-size: 16px;
    color: #8DFFE0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.col-user {
    font-family: 'Ubuntu Sans';
    font-size: 16px;
    color: #FFF;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plan-row.enterprise {
    border-color: #FFF;
    background: rgba(255, 255, 255, 0.05);
}

.plan-row.enterprise .col-plan i,
.plan-row.enterprise .col-workspace {
    color: #FFF;
}

.plans-cta-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.btn-prim {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 32px;
    background: #8DFFE0;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 100px;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    color: #050505;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prim:hover {
    background: #8DFFE0;
    box-shadow: 0 0 20px rgba(141, 255, 224, 0.6);
    transform: translateY(-2px);
}

/* Theme Overrides for Table (Stok uses theme-imersao which is Purple) */
.plans-table-wrapper.theme-imersao .plans-table-header {
    color: #5140F7;
    text-shadow: 0 0 15px rgba(81, 64, 247, 0.8);
}

.plans-table-wrapper.theme-imersao .plan-row {
    border-color: #5140F7;
    box-shadow: 0 0 15px rgba(81, 64, 247, 0.2);
}

.plans-table-wrapper.theme-imersao .plan-row:hover {
    background: rgba(81, 64, 247, 0.05);
    border-color: #5140F7;
    box-shadow: 0 0 30px rgba(81, 64, 247, 0.5), inset 0 0 20px rgba(81, 64, 247, 0.1);
}

.plans-table-wrapper.theme-imersao .col-plan i {
    color: #5140F7;
    filter: drop-shadow(0 0 8px rgba(81, 64, 247, 0.8));
}

.plans-table-wrapper.theme-imersao .col-workspace {
    color: #5140F7;
    text-shadow: 0 0 10px rgba(81, 64, 247, 0.6);
}

.plans-table-wrapper.theme-imersao .btn-prim {
    background: #5140F7;
    color: #FFF;
    box-shadow: 0px 4px 15px rgba(81, 64, 247, 0.4);
}

.plans-table-wrapper.theme-imersao .btn-prim:hover {
    background: #5140F7;
    box-shadow: 0 0 40px rgba(81, 64, 247, 0.8);
    transform: translateY(-2px);
}

/* Mobile Responsive for Table */
@media (max-width: 768px) {
    .plans-table-header {
        display: none;
    }

    .plan-row {
        grid-template-columns: 1fr;
        gap: 12px;
        border-radius: 24px;
        text-align: center;
        padding: 24px;
    }

    .col-plan {
        justify-content: center;
        font-size: 24px;
    }

    .col-workspace, .col-user {
        text-align: center;
        font-size: 14px;
        opacity: 0.8;
    }
    
    .col-includes {
        font-size: 16px;
        margin: 8px 0;
    }
}

/* Details Table Styles */
.btn-text {
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.btn-text:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.btn-text i {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.btn-text.theme-stok:hover {
    color: #8DFFE0;
}

.card-details-btn {
    margin-top: auto; /* Push to bottom if flex column */
    align-self: center;
    font-size: 14px;
    margin-bottom: 16px;
    z-index: 5;
}

.details-table-wrapper {
    width: 100%;
    max-width: 1024px;
    margin: 32px auto 0;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Theme Overrides for Imersao Table (Cyan) */
.plans-table-wrapper.theme-stok .plans-table-header {
    color: #8DFFE0;
    text-shadow: 0 0 15px rgba(141, 255, 224, 0.8);
}

.plans-table-wrapper.theme-stok .plan-row {
    border-color: #8DFFE0;
    box-shadow: 0 0 15px rgba(141, 255, 224, 0.2);
}

.plans-table-wrapper.theme-stok .plan-row:hover {
    background: rgba(141, 255, 224, 0.05);
    border-color: #8DFFE0;
    box-shadow: 0 0 30px rgba(141, 255, 224, 0.5), inset 0 0 20px rgba(141, 255, 224, 0.1);
}

.plans-table-wrapper.theme-stok .col-val {
    color: #AAAAAA;
    text-align: center;
}

.plans-table-wrapper.theme-stok .col-feature {
    color: #FFFFFF;
    font-weight: 500;
}
