@charset "UTF-8";

/* ==========================================================================
   CSS Variables (Restricted Color Palette with Soft Opacity Variations)
   ========================================================================== */
:root {
    --primary: #ff6a00;
    --secondary: #03002e;
    --white: #ffffff;
    
    /* Soft opacity of specified colors to prevent a harsh UI appearance */
    --border-soft: rgba(3, 0, 46, 0.12);
    --text-soft: rgba(3, 0, 46, 0.7);
    --shadow-soft: rgba(3, 0, 46, 0.06);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Layout (font-family removed)
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--secondary);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
/*     padding: 30px 16px; */
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.header {
    text-align: center;
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--secondary);
    color: rgb(255 106 0) !important;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header h1 .highlight {
    color: var(--primary);
}

.header p {
    font-size: 0.95rem;
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================================================
   Toggle Switch Section
   ========================================================================== */
.toggle-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.toggle-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-soft);
    transition: color var(--transition-fast);
    cursor: pointer;
    user-select: none;
}

.toggle-label.active {
    color: var(--primary);
    font-weight: 700;
}

.save-badge {
    background: var(--primary);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 4px;
    text-transform: uppercase;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--secondary);
    transition: var(--transition-normal);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; 
    width: 18px;
    left: 4px; 
    bottom: 4px;
    background-color: var(--white);
    transition: var(--transition-normal);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ==========================================================================
   Pricing Cards Grid (Align items set to 'start' to remove empty space)
   ========================================================================== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    align-items: start; /* Prevents cards with fewer features from stretching unnecessarily */
}

/* ==========================================================================
   Pricing Card Styling
   ========================================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 20px 16px;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px var(--shadow-soft);
}

/* Featured / Best Value Card */
.card.featured {
    border: 2px solid var(--primary);
}

.card.free {
    border: 1px solid var(--border-soft);
}

/* Card Badges */
.badge-top {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-best { 
    background: var(--primary); 
    color: var(--white); 
}

.badge-free { 
    background: var(--secondary); 
    color: var(--white); 
}

/* Card Details */
.card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin: 6px 0;
    font-weight: 800;
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ==========================================================================
   Pricing Elements & Strikethrough Price
   ========================================================================== */
.price-section {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price, .price-monthly, .price-yearly {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-soft);
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: 6px;
    display: inline-block;
}

.currency {
    font-size: 1.15rem;
    vertical-align: super;
    margin-right: 2px;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 500;
}

.price-save {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */
.btn {
    width: 100%;
/*     padding: 10px; */
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
/*     margin-bottom: 16px; */
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.02);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.02);
}

/* ==========================================================================
   Features List
   ========================================================================== */
.features {
    text-align: left;
    margin-top: 16px; /* Uniform margin replaces the 'margin-top: auto' */
}

.features-header {
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 6px 0 6px 0px;
    position: relative;
    font-size: 0.85rem;
    color: var(--secondary);
    border-bottom: 1px solid var(--border-soft);
    line-height: 1.3;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* .feature-list li::before { */
/*     content: "✓"; */
/*     position: absolute; */
/*     left: 0; */
/*     color: var(--primary); */
/*     font-weight: 900; */
/*     font-size: 0.9rem; */
/* } */


/* Styles only the first character (the icon) */
.feature-list li::first-letter {
    font-weight: bold;
    font-size: 1.1em;
    padding-right: 5px;
}

/* Color for Checkmark */
.feature-list li.y::first-letter {
    color: #28a745; /* Professional Green */
}

/* Color for Cross */
.feature-list li.n::first-letter {
    color: #dc3545; /* Professional Red */
}

.hidden {
    display: none;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .container {
/*         padding: 15px 10px; */
    }
    
    .header {
        margin-bottom: 16px;
    }
    
    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .header p {
        font-size: 0.85rem;
    }
    
    .toggle-section {
        margin: 16px 0;
        gap: 8px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card {
        padding: 16px 12px;
        border-radius: 12px;
    }
    
    .card-description {
        margin-bottom: 12px;
    }
    
    .price-section {
        margin-bottom: 12px;
    }
    
    .btn {
/*         padding: 8px; */
/*         margin-bottom: 12px; */
        font-size: 0.8rem;
    }
}