/*
 * smartphone-senior.php: smartphone, tablet or TV, compared for an elderly parent.
 * On a phone the table turns into one card per criterion, each cell labelled (data-label).
 */
.compare-body { max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; }
.compare-intro { font-size: 1.1rem; line-height: 1.8; color: var(--muted); margin-bottom: 48px; }
.compare-intro strong { color: var(--dark); }

.compare-section { margin-bottom: 48px; }
.compare-section h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 16px; }
.compare-section p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.compare-section ul { padding-left: 22px; margin-bottom: 14px; }
.compare-section li { color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.compare-section strong { color: var(--dark); }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table caption { text-align: left; color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.compare-table th,
.compare-table td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.5; }
.compare-table thead th { background: var(--light); font-weight: 700; }
.compare-table tbody th { font-weight: 600; color: var(--dark); }
.compare-table td { color: var(--muted); }
.compare-table .compare-highlight { background: var(--primary-light); color: var(--dark); font-weight: 600; }
.compare-table thead .compare-highlight { color: var(--primary); }

.compare-cta {
    margin: 56px 0;
    padding: 40px 32px;
    text-align: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.compare-cta h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.compare-cta p { color: var(--muted); margin-bottom: 24px; }
.compare-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.compare-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    transition: background .2s, border-color .2s;
}
.compare-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.compare-btn-ghost { background: transparent; color: var(--primary); }
.compare-btn-ghost:hover { background: var(--primary-light); border-color: var(--primary); }

.compare-faq dl { display: grid; gap: 20px; }
.compare-faq dt { font-weight: 700; }
.compare-faq dd { color: var(--muted); line-height: 1.75; }

@media (max-width: 680px) {
    .compare-table thead { display: none; }
    .compare-table caption { display: block; width: 100%; }
    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table th,
    .compare-table td { display: block; width: 100%; }
    .compare-table tr {
        margin-bottom: 16px;
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
    }
    .compare-table th,
    .compare-table td { border: none; border-bottom: 1px solid var(--border); }
    .compare-table td:last-child { border-bottom: none; }
    .compare-table tbody th { background: var(--light); }
    .compare-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 2px;
    }
    .compare-cta { padding: 32px 20px; }
}
