/* ======================
   Pricing Hero Section
   ====================== */
.pricing-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 50%, #faf5ff 100%);
    text-align: center;
}

@media (min-width: 768px) {
    .pricing-hero {
        padding: 4rem 0 2.5rem;
    }
}

.pricing-hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .pricing-hero-content h1 {
        font-size: 2.5rem;
    }
}

.pricing-hero-content p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .pricing-hero-content p {
        font-size: 1.125rem;
    }
}

/* ======================
   Billing Toggle
   ====================== */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.toggle-label {
    font-weight: 600;
    color: #6b7280;
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: #0ea5e9;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
}

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

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ======================
   Calculator CTA Section
   ====================== */
.calculator-cta-section {
    padding: 2rem 0;
    background: white;
}

@media (min-width: 768px) {
    .calculator-cta-section {
        padding: 2.5rem 0;
    }
}

.calculator-cta-card {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
}

@media (min-width: 768px) {
    .calculator-cta-card {
        gap: 2rem;
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .calculator-cta-card {
        gap: 2.5rem;
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .calculator-cta-card {
        grid-template-columns: 1fr 1fr;
    }
}

.calculator-cta-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .calculator-cta-content {
        text-align: left;
    }
}

.calculator-icon {
    display: inline-flex;
    padding: 1rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.calculator-icon svg {
    width: 3rem;
    height: 3rem;
    color: white;
}

.calculator-cta-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

@media (min-width: 768px) {
    .calculator-cta-content h2 {
        font-size: 1.875rem;
    }
}

.calculator-cta-content > p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.calculator-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .calculator-features {
        justify-content: flex-start;
    }
}

.calc-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.938rem;
    font-weight: 500;
    color: #374151;
}

.calc-feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #0ea5e9;
}

.calculator-cta-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calc-preview {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.calc-preview-header {
    background: #f9fafb;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #d1d5db;
}

.preview-dots span:nth-child(1) {
    background: #ef4444;
}

.preview-dots span:nth-child(2) {
    background: #eab308;
}

.preview-dots span:nth-child(3) {
    background: #10b981;
}

.preview-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.calc-preview-content {
    padding: 2rem;
}

.preview-input {
    margin-bottom: 1.5rem;
}

.preview-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.preview-bar {
    height: 0.75rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    border-radius: 0.375rem;
    width: 100%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.preview-bar.short {
    width: 40%;
}

.preview-bar.medium {
    width: 60%;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.preview-result {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.result-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.result-amount span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    background: none;
    -webkit-text-fill-color: #6b7280;
}

/* ======================
   Pricing Plans
   ====================== */
.pricing-plans {
    padding: 2rem 0;
    background: white;
}

@media (min-width: 768px) {
    .pricing-plans {
        padding: 2.5rem 0;
    }
}

.plans-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .plans-grid {
        margin-bottom: 2.5rem;
    }
}

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

.plan-card {
    position: relative;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .plan-card {
        padding: 1.75rem;
    }
}

.plan-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.plan-card.popular {
    border-color: #0ea5e9;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popular-badge svg {
    width: 1rem;
    height: 1rem;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.plan-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.plan-name {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: #6b7280;
    font-size: 1rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b7280;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.amount.custom-price {
    font-size: 2.5rem;
}

.period {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 500;
}

.price-description {
    color: #6b7280;
    font-size: 0.875rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #374151;
}

.plan-features li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ======================
   Pricing Info Cards
   ====================== */
.pricing-info {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .pricing-info {
        margin-top: 2.5rem;
    }
}

@media (min-width: 768px) {
    .pricing-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    text-align: center;
    padding: 1.5rem;
}

.info-card svg {
    width: 3rem;
    height: 3rem;
    color: #0ea5e9;
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #6b7280;
    font-size: 0.938rem;
}

/* ======================
   Comparison Table
   ====================== */
.comparison-section {
    padding: 2rem 0;
    background: #f9fafb;
}

@media (min-width: 768px) {
    .comparison-section {
        padding: 2.5rem 0;
    }
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
}

.comparison-table th.feature-column {
    text-align: left;
    width: 30%;
}

.comparison-table th.popular-column {
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    color: white;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    color: #374151;
}

.comparison-table td.feature-name {
    text-align: left;
    font-weight: 500;
}

.comparison-table td svg {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
}

.comparison-table td svg[data-lucide="check"] {
    color: #10b981;
}

.comparison-table td svg[data-lucide="x"] {
    color: #ef4444;
}

.comparison-table .popular-column {
    background: rgba(14, 165, 233, 0.05);
}

/* ======================
   FAQ Section
   ====================== */
.faq-section {
    padding: 2rem 0;
    background: white;
}

@media (min-width: 768px) {
    .faq-section {
        padding: 2.5rem 0;
    }
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .faq-grid {
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.faq-item h3 {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.faq-item h3 svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #0ea5e9;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
    border-radius: 0.75rem;
}

.faq-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .faq-cta h3 {
        font-size: 1.75rem;
    }
}

.faq-cta p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ======================
   Active Nav Link
   ====================== */
.nav-links a.active {
    color: #0ea5e9;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
}

/* ======================
   Responsive Adjustments
   ====================== */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 2.5rem 0 1.5rem;
    }
    
    .pricing-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .pricing-hero-content p {
        font-size: 0.938rem;
    }
    
    .plan-card.popular {
        transform: scale(1);
    }
    
    .plan-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
    }
}

/* ======================
   Print Styles
   ====================== */
@media print {
    .navbar,
    .cta,
    .footer {
        display: none;
    }
    
    .plan-card {
        break-inside: avoid;
    }
}