/* ==========================================================================
   SerpClix /compare/serpclix-alternatives — page-specific styles
   Builds on vnext/seo/css/seo_landing.css (Inter + Outfit, teal #2a9d8f,
   yellow #ffcc00). Only the bespoke comparison components live here.
   ========================================================================== */

/* Hero CTA row */
.cmp-hero-cta {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.cmp-link-secondary {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    color: #228176;
    text-decoration: none;
}
.cmp-link-secondary:hover { color: #2a9d8f; text-decoration: underline; }

.seo-page .btn-yellow:hover,
.seo-page .btn-yellow:focus,
.seo-page .btn-yellow:focus-visible,
.seo-page a.btn-yellow:hover,
.seo-page a.btn-yellow:focus,
.seo-page a.btn-yellow:focus-visible {
    background: linear-gradient(135deg, #ffe033, var(--yellow, #ffd600));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.4);
    color: var(--text-primary, #1a2b3c) !important;
}

/* "Where do clicks come from" callout */
.cmp-callout {
    background: #f3faf8;
    border-left: 4px solid #2a9d8f;
    border-radius: 0 10px 10px 0;
    padding: 18px 24px;
    margin: 0 0 24px;
}
.cmp-callout p { margin: 0; font-size: 1.15rem; color: #1a2b3c; }
.cmp-callout strong { color: #228176; }

/* --------------------------------------------------------------------------
   In-their-own-words table (self-contained; rides .comparison-table-wrapper)
   -------------------------------------------------------------------------- */
.comparison-table.cmp-words {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #dde4eb;
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 2px 12px rgba(26, 43, 60, 0.06);
}
.cmp-words thead th {
    background: #1a2b3c;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 14px 18px;
}
.cmp-words tbody td {
    padding: 15px 18px;
    border-top: 1px solid #eaeff4;
    vertical-align: top;
    text-align: left;
    line-height: 1.55;
    color: #4a5d72;
}
.cmp-words tbody tr:first-child td { border-top: none; }
.cmp-words tbody td:first-child { color: #1a2b3c; white-space: nowrap; }
.cmp-words .cmp-quote { font-style: italic; }
.cmp-words .cmp-price { font-family: 'Outfit', sans-serif; font-weight: 600; color: #1a2b3c; }
.cmp-words .cmp-row-us { background: #edf8f7; }
.cmp-words .cmp-row-us td { border-top: 1px solid #d4efec; }
.cmp-words .cmp-row-us td:first-child { color: #228176; }
.cmp-uspill {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: #2a9d8f;
    padding: 2px 8px;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 6px;
}
.cmp-tbl-note { font-size: 0.95rem; color: #4a5d72; margin-top: 20px; }

/* --------------------------------------------------------------------------
   Per-competitor cards
   -------------------------------------------------------------------------- */
.cmp-alt {
    background: #ffffff;
    border: 1px solid #eaeff4;
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(26, 43, 60, 0.05);
}
.cmp-alt h3 { margin-bottom: 6px; }
.cmp-alt h3 .cmp-alt-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #7b8e9e;
    margin-left: 8px;
}
.cmp-alt p { margin-bottom: 0; margin-top: 12px; }
.cmp-winask {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.cmp-win, .cmp-ask {
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4a5d72;
}
.cmp-win { background: #f0faf6; border: 1px solid #d4efec; }
.cmp-ask { background: #f7f9fb; border: 1px solid #dde4eb; }
.cmp-winask-lbl {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}
.cmp-win .cmp-winask-lbl { color: #228176; }
.cmp-ask .cmp-winask-lbl { color: #7b8e9e; }

/* --------------------------------------------------------------------------
   Fact-check
   -------------------------------------------------------------------------- */
.cmp-fact {
    background: #ffffff;
    border: 1px solid #eaeff4;
    border-left: 4px solid #2a9d8f;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 14px;
}
.cmp-fact-claim {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.cmp-verdict {
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 100px;
    margin-top: 2px;
    white-space: nowrap;
}
.cmp-verdict.cmp-false { background: #d96a6a; }
.cmp-verdict.cmp-neutral { background: #7b8e9e; }
.cmp-fact p { margin-bottom: 0; }
.cmp-fact .cmp-quote { font-style: italic; color: #1a2b3c; }

/* --------------------------------------------------------------------------
   "Where SerpClix loses" list (red ✕ markers)
   -------------------------------------------------------------------------- */
.cmp-lose { margin-top: 8px; }
.cmp-lose li {
    position: relative;
    background: #ffffff;
    border: 1px solid #eaeff4;
    border-radius: 12px;
    padding: 15px 20px 15px 46px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.65;
    color: #4a5d72;
}
.cmp-lose li::before {
    content: "\00d7";
    position: absolute;
    left: 18px;
    top: 13px;
    color: #d96a6a;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}
.cmp-lose li strong { color: #1a2b3c; }

/* --------------------------------------------------------------------------
   Independent-test dark card
   -------------------------------------------------------------------------- */
.cmp-testwrap { padding: 40px 0; }
.cmp-testcard {
    max-width: 760px;
    margin: 0 auto;
    background: #1a2b3c;
    border-radius: 20px;
    padding: 38px 40px;
}
.cmp-testcard h2 { color: #ffffff; text-align: left; margin-bottom: 18px; }
.cmp-testcard p { color: #b9c6d4; }
.cmp-testcard p:last-child { margin-bottom: 0; }
.cmp-testcard a { color: #6fd0c3; }
.cmp-testcard a:hover { color: #8fe0d4; }
.cmp-testcard .cmp-keyline { color: #6fd0c3; font-weight: 600; }

/* --------------------------------------------------------------------------
   "When an alternative makes sense" list
   -------------------------------------------------------------------------- */
.cmp-when { margin-top: 8px; }
.cmp-when li {
    position: relative;
    background: #ffffff;
    border: 1px solid #eaeff4;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.65;
    color: #4a5d72;
}
.cmp-when li strong { color: #1a2b3c; }

/* --------------------------------------------------------------------------
   Six-questions list
   -------------------------------------------------------------------------- */
.cmp-six {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}
.cmp-six li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #eaeff4;
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #4a5d72;
}
.cmp-six-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d4efec;
    color: #228176;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cmp-six li strong { color: #1a2b3c; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
    .cmp-winask, .cmp-six { grid-template-columns: 1fr; }
    .cmp-testcard { padding: 28px 22px; }
    .cmp-words { font-size: 0.9rem; }
    .cmp-words tbody td:first-child { white-space: normal; }
}

/* Stack the "in their own words" table into cards on phones so it never
   overflows the viewport (seo_landing.css only adds horizontal scroll at
   <=480px, and .cmp-words overrides that with overflow:hidden). */
@media (max-width: 600px) {
    .comparison-table.cmp-words,
    .cmp-words tbody,
    .cmp-words tr,
    .cmp-words td {
        display: block;
        width: 100%;
    }
    .comparison-table.cmp-words {
        overflow: visible;
        border: none;
        background: transparent;
        box-shadow: none;
        font-size: 0.95rem;
    }
    .cmp-words thead { display: none; }
    .cmp-words tbody tr {
        background: #ffffff;
        border: 1px solid #dde4eb;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(26, 43, 60, 0.06);
        margin-bottom: 12px;
        padding: 6px 0;
        overflow: hidden;
    }
    .cmp-words tbody tr.cmp-row-us { background: #edf8f7; border-color: #d4efec; }
    .cmp-words tbody td {
        border-top: none;
        border-bottom: none;
        padding: 4px 18px;
    }
    .cmp-words tbody td:first-child {
        padding-top: 15px;
        white-space: normal;
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        font-size: 1.05rem;
        color: #1a2b3c;
    }
    .cmp-words tbody tr.cmp-row-us td:first-child { color: #228176; }
    .cmp-words tbody td:last-child { padding-bottom: 15px; }
    .cmp-words .cmp-price { display: inline-block; margin-top: 2px; }
}
