/* --- BASE & VARIABLES --- */
:root {
    --brand-color: #ff6b35;
    --brand-dark: #d44326;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --font-primary: 'Heebo', sans-serif;
    --font-brand: 'Secular One', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* --- NAVBAR --- */
.sub-navbar {
    background-color: #ffffff;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--brand-color);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.navbar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.navbar-logo {
    height: 36px;
    width: auto;
}
.navbar-brand-name {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    margin-top: 0.23rem;
    color: var(--brand-color);
    font-weight: 500;
}


/* --- MAIN CONTENT & HEADER --- */
.pricing-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-header h1 {
    font-family: var(--font-brand);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --- PRODUCT TABS --- */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-link {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -1px; /* Sits on top of the border */
}

.tab-link:hover {
    color: var(--text-primary);
}

.tab-link.active {
    color: var(--brand-color);
    border-bottom-color: var(--brand-color);
}

.tab-link.disabled {
    color: #adb5bd;
    cursor: not-allowed;
}

/* --- PRICING CONTENT (Hidden by default) --- */
.pricing-content {
    display: none;
}
.pricing-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* --- PRICING GRID --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.plan-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* --- Recommended Badge --- */
.recommended {
    border: 2px solid var(--brand-color);
}

.recommend-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-color);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* --- Plan Header --- */
.plan-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.plan-header h2 {
    font-family: var(--font-brand);
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0;
}

.plan-price {
    margin-top: 0.5rem;
}

.plan-price span {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-color);
}

.plan-price .per-month {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.plan-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 1.5rem;
}

/* --- Plan Features --- */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    direction: ltr; /* Ensures checkmark is on the left */
    text-align: left;
}

.plan-features svg {
    width: 20px;
    height: 20px;
    color: var(--brand-color);
    flex-shrink: 0;
}

/* --- Plan Button --- */
.plan-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.plan-button-primary {
    background-color: var(--brand-color);
    border: 2px solid var(--brand-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.plan-button-primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.plan-button-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.plan-button-secondary:hover {
    background-color: var(--bg-light);
    border-color: #adb5bd;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--text-primary);
    color: #adb5bd;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand span {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    color: var(--bg-white);
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.875rem;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }
}
