﻿/* Pricing Section */
.pricing {
    background: var(--section-bg);
    padding: 100px 0;
    color: var(--text-dark);
}

.pricing h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    /* color alpha instead of opacity so .grawlr-text-highlight stays full-strength */
    color: rgba(55, 65, 81, 0.88);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Four tiers: avoid cramped columns between tablet and desktop */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pricing-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: var(--primary-purple);
    border-width: 2px;
    transform: none;
    z-index: 2;
    /* Same padding as other cards so the badge does not sit in extra top space */
    padding: 2rem;
    box-shadow:
        0 4px 6px rgba(55, 65, 81, 0.06),
        0 16px 44px rgba(55, 65, 81, 0.14),
        0 0 0 1px rgba(55, 65, 81, 0.06);
}

.pricing-card.popular:hover {
    transform: translateY(-6px);
    border-color: var(--primary-purple);
    box-shadow:
        0 8px 12px rgba(55, 65, 81, 0.08),
        0 22px 52px rgba(55, 65, 81, 0.18),
        0 0 0 1px rgba(55, 65, 81, 0.08);
}

/* Keep PRO title/amount same metrics as other tiers so rows align across cards */
.plan-header {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 1;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.price-block {
    margin-bottom: 2rem;
}

/* Three-row stack: amount | / month | yearly or quote (same row geometry on every card) */
.price-block--stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Same two-row structure on every card: label row (From or invisible spacer) + amount */
.price-line--amount-from {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    white-space: normal;
    min-height: 4.5rem;
    line-height: 1;
}

.price-from-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0.65;
    line-height: 1.2;
    min-height: 0.9rem;
}

.price-from-label--spacer {
    visibility: hidden;
    user-select: none;
}

.price-from-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    line-height: 1;
}

.price-from-stack .currency {
    font-size: 1.5rem;
    vertical-align: baseline;
    margin-right: 0.25em;
}

.price-from-stack .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-from-stack .amount-quote {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.price-line--period {
    min-height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.2rem 0 0;
}

.price-line--period .period {
    font-size: 1rem;
    opacity: 0.7;
}

.price-line--secondary {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.price-yearly-note {
    margin-top: 0.35rem;
    margin-bottom: 0;
    min-height: 1.35em;
    line-height: 1.35;
}

.price-yearly-note--empty {
    visibility: hidden;
    user-select: none;
}

.plan-features {
    list-style: none;
    margin: 0 0 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.plan-features .plan-feature-text {
    flex: 0 1 auto;
}

.plan-features .plan-feature-value {
    font-weight: 600;
}

.plan-features i {
    color: var(--primary-purple);
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.plan-features .pricing-icon-yes {
    color: #16a34a; /* muted green */
}

.plan-features .pricing-icon-no {
    color: #b91c1c; /* muted red */
}

.plan-features .pricing-icon-optional {
    color: #ca8a04; /* muted yellow / amber */
}

/* CTA Section */
.cta {
    background: var(--light-bg);
    padding: 80px 0;
    text-align: center;
    color: var(--text-dark);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cta h2 {
    font-size: 24px;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--section-bg);
    padding: 60px 0 20px;
    color: var(--text-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 200;
    opacity: 0.85;
    font-size: 0.89rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-purple);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    text-align: center;
    opacity: 0.85;
    font-size: 0.85rem;
}

/* Comparison Section */
.comparison {
    background: var(--lighter-bg);
    padding: 100px 0;
}

.comparison h2 {
    text-align: center;
    font-size: 2rem; /* match legal page headings */
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.comparison-subtitle {
    text-align: center;
    font-size: 1rem; /* align with about/features subtitles */
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
    border: 1px solid #8f9194;
    margin-bottom: 3rem;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.comparison-table th {
    background: var(--card-gradient);
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table th.grawlr-column {
    background: var(--card-gradient);
    color: var(--text-dark);
    font-weight: 600;
}

.comparison-table th small {
    display: block;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0.3rem;
}

.comparison-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    vertical-align: middle;
}

.comparison-table td:last-child {
    border-right: none;
}

.feature-name {
    font-weight: 600;
    color: var(--text-dark);
    text-align: left !important;
    background: #e2e2e2;
}

.competitor-cell {
    color: var(--text-dark);
    position: relative;
}

.competitor-cell.cell-missing {
    background: var(--error-bg);
}

.competitor-cell.cell-partial {
    background: var(--warning-bg);
}

.competitor-cell.cell-good {
    background: var(--success-bg);
}

.grawlr-cell {
    background: rgba(34, 197, 94, 0.15);
    color: var(--text-dark);
    font-weight: 500;
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.text-warning {
    color: var(--warning-color);
}

.comparison-table i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .rotating-text-container {
        height: 4.5rem;
        margin-bottom: 2.5rem;
    }
    
    .text-slide {
        font-size: 2rem;
        padding: 0.25rem 0;
        background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: var(--primary-purple);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .pricing-grid {
        gap: 1rem;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-image-container {
        width: 350px;
        height: 250px;
    }
    
    .comparison-table-container {
        margin: 0 -20px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }
    
}

@media (max-width: 480px) {
    .rotating-text-container {
        height: 3rem;
        margin-bottom: 2rem;
    }
    
    .text-slide {
        font-size: 1.6rem;
        padding: 0.2rem 0;
        background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: var(--primary-purple);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-container {
        width: 300px;
        height: 200px;
    }
    
    .hero-image-icon {
        font-size: 2.5rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
    }
    

    
}

