/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: var(--light); /* Or white, depending on your design flow */
}

.comparison-table-wrapper {
    overflow-x: auto; /* Allows table to scroll horizontally on small screens */
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: white;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures table content isn't too cramped before scrolling */
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #e1e1e8; /* Light border for rows */
}

.comparison-table th {
    background-color: #f8f9fa; /* Light gray header */
    font-weight: 600;
    color: var(--dark);
    font-size: 16px;
}

.comparison-table thead th:first-child {
    border-top-left-radius: 10px;
}

.comparison-table thead th:last-child {
    border-top-right-radius: 10px;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4) {
    text-align: center;
}

.comparison-table .checkmark,
.comparison-table .crossmark,
.comparison-table .partialmark {
    font-size: 20px;
    font-weight: bold;
}

.comparison-table .checkmark {
    color: #28a745; /* Green checkmark */
}

.comparison-table .crossmark {
    color: var(--primary); /* Red crossmark (using your primary color) */
}

/* Partial availability: the feature is present but limited (e.g. a preview). */
.comparison-table .partialmark {
    color: var(--gray);
}

.comparison-table .cell-note {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
    margin-top: 2px;
}

/* Extended Pro column (Keyword Explorer). Shared by features.html and price.html. */
.comparison-table.has-ext { min-width: 760px; }
.comparison-table .ext-col { background: rgba(214, 45, 73, 0.06); }
/* --primary lands at 4.43:1 on this tint — just under AA, so the header gets a
   slightly deeper red. Body cells in the column use --gray, which clears it. */
.comparison-table thead th.ext-col { color: #cf2642; }

.comparison-table .ext-sub {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
    margin-top: 4px;
}

.comparison-table tbody tr:hover {
    background-color: #f1f3f5; /* Slight hover effect for rows */
}

.comparison-table tfoot td {
    border-bottom: none;
    padding-top: 30px;
    padding-bottom: 30px;
}

.comparison-table tfoot .btn {
    width: auto; /* Allow buttons to size based on content */
    padding: 10px 20px;
    font-size: 15px;
}


/* Responsive adjustments for the comparison table */
@media (max-width: 767px) {
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px; /* Reduce padding on smaller screens */
        font-size: 14px;
    }

    .comparison-table .checkmark,
    .comparison-table .crossmark {
        font-size: 18px;
    }

    .comparison-table tfoot .btn {
        width: 100%; /* Make buttons full width on mobile for better tap targets */
        margin-bottom: 10px;
        display: block;
    }
    .comparison-table tfoot td:first-child {
        display:none; /* Hide empty cell on mobile */
    }
    .comparison-table tfoot td {
        text-align:center; /* Center buttons */
    }
}