/* =====================================================================
   LikedWin — /karsilastir sayfası (cp-*)
   marketing.css primitiflerinin üzerine kurulur; yeni renk tanımlamaz.

   TASARIM İLKESİ: her hücre kendi etiketini taşır (.cp-side__who).
   Anasayfadaki bant mobilde takım başlıklarını gizlediği için "bu kutu
   kime ait?" sorusu doğuyordu; burada o soru hiçbir ekranda doğmaz.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1) HERO
   --------------------------------------------------------------------- */
.cp-hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cp-hero__title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(29px, 4.6vw, 54px); font-weight: 800; line-height: 1.08;
    letter-spacing: -.03em; color: var(--mk-ink); margin: 0 0 16px;
    text-wrap: balance;
}
.cp-hero__title .hl {
    background: var(--mk-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.cp-hero__sub {
    font-size: clamp(15px, 1.7vw, 17.5px); line-height: 1.7; color: var(--muted);
    font-weight: 500; margin: 0 auto 26px; max-width: 680px;
}

/* Rakip seçici — mobilde yatay kayan şerit */
.cp-switch {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
    margin-bottom: 6px;
}
.cp-switch__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--radius-pill);
    background: var(--surface); border: 1px solid var(--line-strong);
    color: var(--text); font-size: 13.5px; font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), color var(--ease);
    white-space: nowrap;
}
.cp-switch__btn i { font-size: 12.5px; color: var(--muted-2); transition: color var(--ease); }
.cp-switch__btn:hover {
    transform: translateY(-2px); color: var(--brand);
    border-color: var(--brand-line-2); box-shadow: var(--shadow-md);
}
.cp-switch__btn:hover i { color: var(--brand); }
.cp-switch__btn.is-active {
    background: var(--brand); border-color: var(--brand); color: #fff;
    box-shadow: 0 12px 26px -12px rgba(37, 68, 216, .8);
}
.cp-switch__btn.is-active i { color: #fff; }

/* ---------------------------------------------------------------------
   2) SKOR KARTI (tek rakip modunda)
   --------------------------------------------------------------------- */
.cp-score {
    position: relative;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
    gap: 0; max-width: 720px; margin: clamp(28px, 4vw, 46px) auto 0;
    border-radius: 24px; overflow: visible;
}
.cp-score__side {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: clamp(22px, 3vw, 30px) clamp(16px, 3vw, 28px);
    text-align: center;
}
.cp-score__side--win {
    border-radius: 24px 0 0 24px;
    background: linear-gradient(135deg, #22c55e 0%, var(--ok-fg) 58%, #0f8a3c 100%);
    color: #fff;
    box-shadow: 0 20px 44px -20px rgba(22, 163, 74, .7);
}
.cp-score__side--lose {
    border-radius: 0 24px 24px 0;
    background: var(--surface-2); border: 1px solid var(--line); border-left: 0;
    color: var(--muted);
}
.cp-score__badge {
    position: absolute; top: -11px; left: 25%; transform: translateX(-50%);
    padding: 3px 12px; border-radius: var(--radius-pill);
    background: #fbbf24; color: #7c4a02;
    font-size: 10px; font-weight: 800; letter-spacing: .07em; white-space: nowrap;
    box-shadow: 0 6px 14px -4px rgba(245, 158, 11, .6);
}
.cp-score__who {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(14px, 1.7vw, 17px); font-weight: 800;
}
.cp-score__side--lose .cp-score__who { color: var(--text); }
.cp-score__val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
}
.cp-score__lbl { font-size: 11.5px; font-weight: 600; opacity: .78; letter-spacing: .04em; }
.cp-score__vs {
    position: relative; z-index: 2; align-self: center;
    display: grid; place-items: center;
    width: 52px; height: 52px; margin: 0 -26px; border-radius: 50%;
    background: var(--solid-dark); color: #fff; border: 4px solid var(--bg);
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px;
    box-shadow: 0 12px 26px -10px rgba(16, 24, 40, .55);
}

/* ---------------------------------------------------------------------
   3) FACE-OFF TAHTASI
   --------------------------------------------------------------------- */
.cp-board-sec { padding-top: clamp(44px, 5vw, 74px); }

/* Masaüstü takım başlıkları — tahtanın üstüne yapışır */
.cp-teams {
    position: sticky; top: calc(var(--header-h) + 6px); z-index: 3;
    display: grid; grid-template-columns: 1fr minmax(150px, 210px) 1fr; gap: 10px;
    margin-bottom: 12px;
}
.cp-team {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 14px; border-radius: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(14px, 1.6vw, 17px);
    text-align: center;
}
.cp-team--win {
    background: linear-gradient(135deg, #22c55e 0%, var(--ok-fg) 60%, #0f8a3c 100%);
    color: #fff; box-shadow: 0 14px 28px -16px rgba(22, 163, 74, .8);
}
.cp-team--crit { background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.cp-team--lose { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

.cp-board { display: flex; flex-direction: column; gap: 10px; }

.cp-row {
    display: grid; grid-template-columns: 1fr minmax(150px, 210px) 1fr; gap: 10px;
    align-items: stretch;
}

/* Kriter — ortadaki omurga */
.cp-crit {
    grid-column: 2; grid-row: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 12px; border-radius: 14px; text-align: center;
    background: var(--surface); border: 1px solid var(--line);
}
.cp-crit__ico {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
    background: var(--brand-soft); color: var(--brand); font-size: 14px;
}
.cp-crit__t { font-size: 12.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.3; }

/* İki taraf */
.cp-side {
    display: flex; flex-direction: column; gap: 7px;
    padding: 15px clamp(14px, 1.8vw, 20px); border-radius: 14px;
}
.cp-side--win {
    grid-column: 1; grid-row: 1;
    background: var(--ok-bg); border: 1px solid var(--ok-line);
    align-items: flex-end; text-align: right;
}
.cp-side--lose {
    grid-column: 3; grid-row: 1;
    background: var(--surface-2); border: 1px solid var(--line);
}
.cp-side__who {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.cp-side--win .cp-side__who { color: var(--ok-fg); }
.cp-side--lose .cp-side__who { color: var(--muted-2); }
.cp-side__t { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.cp-side--win .cp-side__t { color: var(--ok-fg); }
.cp-side--lose .cp-side__t { color: var(--muted); }

/* Karar kutusu */
.cp-verdict {
    display: flex; gap: 16px; align-items: flex-start;
    margin-top: clamp(24px, 3vw, 34px);
    padding: clamp(20px, 2.6vw, 28px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--surface) 100%);
    border: 1px solid var(--brand-line);
}
.cp-verdict__ico {
    flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
    background: var(--mk-grad); color: #fff; font-size: 18px;
    box-shadow: 0 12px 24px -12px rgba(37, 68, 216, .9);
}
.cp-verdict__t { margin: 0 0 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800; color: var(--mk-ink); }
.cp-verdict__d { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------------
   4) GENEL BAKIŞ — RAKİP KARTLARI
   --------------------------------------------------------------------- */
.cp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.cp-card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: clamp(22px, 2.6vw, 30px);
}
.cp-card__tag {
    position: absolute; top: 16px; right: 16px;
    padding: 4px 10px; border-radius: var(--radius-pill);
    background: var(--warn-bg); color: var(--warn-fg);
    font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
}
.cp-card__t { margin: 4px 0 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(17px, 2vw, 21px); font-weight: 800; color: var(--mk-ink); letter-spacing: -.02em; }
.cp-card__d { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 500; }

.cp-card__meter { display: flex; align-items: center; gap: 11px; margin-top: 4px; }
.cp-card__bar { flex: 1; height: 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.cp-card__bar b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, var(--ok-fg)); }
.cp-card__num { font-size: 12px; font-weight: 800; color: var(--ok-fg); white-space: nowrap; }

.cp-card__go {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
    font-size: 13.5px; font-weight: 700; color: var(--brand);
}
.cp-card__go i { transition: transform var(--ease); }
.cp-card:hover .cp-card__go i { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   5) ÖZELLİK MATRİSİ
   --------------------------------------------------------------------- */
.cp-matrix-wrap {
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: var(--mk-card); overflow: hidden;
}
/* Tablo KENDİ kutusunda kayar — sayfa gövdesi asla yatay kaymaz */
.cp-matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cp-matrix-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.cp-matrix { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; }
.cp-matrix th, .cp-matrix td { padding: 13px 12px; text-align: center; vertical-align: middle; }
.cp-matrix thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--surface-2); border-bottom: 1px solid var(--line);
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12.5px; font-weight: 800; color: var(--muted);
    white-space: nowrap;
}
.cp-matrix thead th i { display: block; margin: 0 auto 5px; font-size: 15px; color: var(--muted-2); }

/* Özellik sütunu — yatay kaydırmada sabit kalır */
.cp-matrix .cp-matrix__feat {
    position: sticky; left: 0; z-index: 1;
    min-width: 230px; text-align: left; font-weight: 700; color: var(--ink);
    background: var(--surface); border-right: 1px solid var(--line);
}
.cp-matrix thead .cp-matrix__feat { z-index: 3; background: var(--surface-2); }
.cp-matrix .cp-matrix__feat i { display: inline; margin: 0 8px 0 0; color: var(--brand); font-size: 13px; width: 16px; text-align: center; }

/* LikedWin sütunu vurgulu */
.cp-matrix .cp-matrix__lw { background: var(--ok-bg); }
.cp-matrix thead .cp-matrix__lw { background: var(--ok-bg); color: var(--ok-fg); border-bottom-color: var(--ok-line); }
.cp-matrix thead .cp-matrix__lw i { color: var(--ok-fg); }

.cp-matrix tbody tr + tr th, .cp-matrix tbody tr + tr td { border-top: 1px solid var(--line); }
.cp-matrix tbody tr:hover td:not(.cp-matrix__lw) { background: var(--surface-2); }

.cp-mark {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px;
}
.cp-mark.is-yes  { background: var(--ok-fg);   color: #fff; }
.cp-mark.is-part { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); }
.cp-mark.is-no   { background: var(--err-bg);  color: var(--err-fg); }

/* Ekran okuyucu metni — görsel olarak gizli ama okunur */
.cp-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cp-legend {
    display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
    padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2);
    font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.cp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cp-legend .cp-mark { width: 21px; height: 21px; font-size: 10px; }

/* ---------------------------------------------------------------------
   6) ÜÇ TEMEL FARK
   --------------------------------------------------------------------- */
.cp-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.cp-pillar { padding: clamp(22px, 2.6vw, 30px); }
.cp-pillar__t { margin: 14px 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; color: var(--mk-ink); letter-spacing: -.02em; }
.cp-pillar__d { margin: 0 0 14px; font-size: 14px; line-height: 1.65; color: var(--muted); font-weight: 500; }
.cp-pillar__stat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: var(--radius-pill);
    background: var(--brand-soft); color: var(--brand);
    font-size: 12.5px; font-weight: 700;
}
.cp-pillar__stat b { font-weight: 800; }

/* ---------------------------------------------------------------------
   7) GEÇİŞ ADIMLARI
   --------------------------------------------------------------------- */
.cp-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px);
}
.cp-step {
    position: relative; padding: clamp(22px, 2.6vw, 30px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--mk-card);
}
.cp-step__n {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: var(--mk-grad); color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800;
    box-shadow: 0 10px 22px -12px rgba(37, 68, 216, .9);
}
.cp-step__t { margin: 14px 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800; color: var(--mk-ink); letter-spacing: -.02em; }
.cp-step__d { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------------
   8) SSS
   --------------------------------------------------------------------- */
.cp-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.cp-faq__item {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.cp-faq__item.is-open { border-color: var(--brand-line-2); box-shadow: var(--mk-card); }
.cp-faq__q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 17px 20px; background: none; border: 0; cursor: pointer;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; line-height: 1.4;
}
.cp-faq__q i { flex: none; color: var(--muted-2); font-size: 13px; transition: transform var(--ease), color var(--ease); }
.cp-faq__item.is-open .cp-faq__q i { transform: rotate(180deg); color: var(--brand); }
.cp-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s cubic-bezier(.2, .8, .25, 1); }
.cp-faq__item.is-open .cp-faq__a { grid-template-rows: 1fr; }
.cp-faq__in { overflow: hidden; }
.cp-faq__item.is-open .cp-faq__in { padding: 0 20px 19px; }
.cp-faq__in { font-size: 14.5px; line-height: 1.7; color: var(--muted); font-weight: 500; }

.cp-faq__more { margin: 22px auto 0; text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; }
.cp-faq__more a { color: var(--brand); font-weight: 700; }
.cp-faq__more a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   9) RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 980px) {
    .cp-pillars, .cp-steps { grid-template-columns: 1fr; }
    .cp-cards { grid-template-columns: 1fr; }

    /* Takım başlıkları gizlenir — etiket zaten her hücrenin içinde */
    .cp-teams { display: none; }

    /* Satır → dikey mini kart: kriter başlıkta, iki cevap altında */
    .cp-row {
        grid-template-columns: 1fr; gap: 0;
        background: var(--surface); border: 1px solid var(--line);
        border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md);
    }
    .cp-crit {
        grid-column: 1; grid-row: auto;
        flex-direction: row; justify-content: flex-start; gap: 10px;
        border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
        padding: 12px 15px; text-align: left;
    }
    .cp-crit__ico { width: 28px; height: 28px; font-size: 12.5px; }
    .cp-crit__t { font-size: 13.5px; }

    .cp-side {
        grid-column: 1; grid-row: auto;
        align-items: flex-start; text-align: left;
        border: 0; border-radius: 0; padding: 13px 15px;
    }
    .cp-side--win  { box-shadow: inset 3px 0 0 var(--ok-fg); }
    .cp-side--lose { box-shadow: inset 3px 0 0 var(--line-strong); border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
    /* Seçici mobilde tek satırda yana kayar (satır başı yapıp yer kaplamasın) */
    .cp-switch {
        flex-wrap: nowrap; justify-content: flex-start;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        /* .container'ın 20px iç boşluğunu aşıp kenardan kenara kaydır */
        margin-inline: -20px; padding: 4px 20px 10px;
        scrollbar-width: none;
    }
    .cp-switch::-webkit-scrollbar { display: none; }
    .cp-switch__btn { flex: none; }

    /* Skor kartı: yan yana sıkışmak yerine alt alta */
    .cp-score { grid-template-columns: 1fr; max-width: 420px; }
    .cp-score__side--win  { border-radius: 22px 22px 0 0; }
    .cp-score__side--lose { border-radius: 0 0 22px 22px; border-left: 1px solid var(--line); border-top: 0; }
    .cp-score__badge { left: 50%; }
    .cp-score__vs { margin: -26px auto; }

    .cp-verdict { flex-direction: column; gap: 12px; }
    .cp-matrix { min-width: 620px; font-size: 12.5px; }
    .cp-matrix .cp-matrix__feat { min-width: 175px; }
    .cp-matrix th, .cp-matrix td { padding: 11px 9px; }
    .cp-legend { gap: 12px; font-size: 11.5px; }
}

/* ---------------------------------------------------------------------
   10) HAREKETİ AZALT
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .cp-switch__btn, .cp-card__go i, .cp-faq__q i, .cp-faq__a { transition: none; }
}
