/* Scriptation Pricing Table Frontend Styles */
:root {
    --spt-primary: #5046e5;
    --spt-primary-hover: #4338ca;
    --spt-success: #10b981;
    --spt-gray-900: #0f172a;
    --spt-gray-700: #334155;
    --spt-gray-600: #475569;
    --spt-gray-500: #64748b;
    --spt-gray-300: #cbd5e1;
    --spt-gray-200: #e2e8f0;
    --spt-gray-100: #f1f5f9;
    --spt-white: #ffffff;
    --spt-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --spt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.spt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-family: -apple-system, system-ui, sans-serif;
}

/* Toggle */
.spt-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.spt-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.spt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.spt-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--spt-gray-300);
    border-radius: 100px;
    transition: 0.3s;
}

.spt-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: var(--spt-white);
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .spt-slider {
    background: var(--spt-primary);
}

input:checked + .spt-slider:before {
    transform: translateX(28px);
}

#spt-monthly, #spt-annual {
    font-weight: 500;
    color: var(--spt-gray-500);
    transition: color 0.2s;
}

#spt-monthly.active, #spt-annual.active {
    color: var(--spt-gray-900);
}

.spt-badge {
    background: var(--spt-success);
    color: var(--spt-white);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Tabs */
.spt-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.spt-tab {
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--spt-gray-500);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.spt-tab:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--spt-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.spt-tab:hover {
    color: var(--spt-gray-700);
}

.spt-tab.active {
    color: var(--spt-gray-900);
}

.spt-tab.active:after {
    transform: scaleX(1);
}

/* Sections */
.spt-section {
    display: none;
}

.spt-section.active {
    display: block !important;
    animation: fadeIn 0.3s ease-out;
}

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

/* Grid - Default for individual plans (2 columns) */
.spt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid for team/production plans (3 columns) */
.spt-section[data-category="team"] .spt-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .spt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .spt-section[data-category="team"] .spt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spt-grid,
    .spt-section[data-category="team"] .spt-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Cards */
.spt-card {
    background: var(--spt-white);
    border: 1px solid var(--spt-gray-200);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.2s;
}

.spt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--spt-shadow-lg);
}

.spt-card.featured {
    border-color: var(--spt-primary);
    border-width: 2px;
}

.spt-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--spt-primary);
    color: var(--spt-white);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.spt-card h3 {
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
    color: var(--spt-gray-900);
}

.spt-card p {
    color: var(--spt-gray-600);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* Pricing */
.spt-price-box {
    margin-bottom: 1.5rem;
}

.spt-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--spt-gray-900);
    line-height: 1;
}

.spt-price:before {
    content: "$";
    font-size: 1.75rem;
    vertical-align: top;
    position: relative;
    top: 0.25rem;
}

.spt-period {
    color: var(--spt-gray-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.spt-savings {
    color: var(--spt-success);
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Button - Updated to work for both button and a elements */
.spt-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--spt-gray-300);
    background: var(--spt-white);
    color: var(--spt-gray-900);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    font-family: inherit;
}

.spt-btn:hover {
    background: var(--spt-gray-100);
    border-color: var(--spt-gray-400);
    text-decoration: none;
}

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

.spt-btn-primary:hover {
    background: var(--spt-primary-hover);
    border-color: var(--spt-primary-hover);
    text-decoration: none;
    color: var(--spt-white);
}

/* Ensure links don't have visited styles */
a.spt-btn:visited {
    color: var(--spt-gray-900);
}

a.spt-btn-primary:visited {
    color: var(--spt-white);
}

/* Features */
.spt-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spt-features li {
    padding: 0.75rem 0 0.75rem 1.75rem;
    position: relative;
    color: var(--spt-gray-700);
    line-height: 1.5;
}

.spt-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--spt-success);
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .spt-grid {
        grid-template-columns: 1fr;
    }
    
    .spt-price {
        font-size: 2.5rem;
    }
    
    .spt-container {
        padding: 2rem 1rem;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Static Sections - Minimal additions */
.spt-static-section {
    margin-top: 60px;
    padding-top: 40px;
}

/* Responsive for enterprise features grid */
@media (max-width: 768px) {
    .spt-static-section {
        margin-top: 40px;
        padding-top: 30px;
    }
}