/* AgentPulse vs <competitor> pages (shared/templates/compare.html). Builds on
   landing.css and v4-home.css (v4-section, v4-head, v4-pill, g-faq, g-btn). */

.cmp-page { --cmp-green: #1f9d55; --cmp-amber: #c27c0e; --cmp-red: #d93f3f; --cmp-ink-2: #424245; }

/* ---------- hero ---------- */
.cmp-hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.cmp-glow {
    position: absolute; inset: -20% -10% auto; height: 620px; pointer-events: none;
    background:
        radial-gradient(40% 55% at 78% 30%, rgba(69,142,255,.22), transparent 70%),
        radial-gradient(35% 45% at 18% 10%, rgba(146,110,255,.12), transparent 70%);
}
.cmp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cmp-hero nav.cmp-crumbs { position: static; height: auto; border: 0; padding: 0; width: auto; z-index: auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; display: flex; gap: 8px; font-size: 13px; color: var(--ap-mute); margin: 0 0 18px; }
.cmp-crumbs a { color: var(--ap-mute) !important; text-decoration: none; }
.cmp-crumbs a:hover { color: var(--ap-blue) !important; }
.cmp-hero h1 {
    font-size: 64px; line-height: 1.02; letter-spacing: -0.045em; font-weight: 700;
    margin: 0 0 20px; color: var(--ap-ink);
}
.cmp-vs {
    display: inline-block; font-size: .42em; vertical-align: .55em; letter-spacing: 0;
    padding: 6px 12px; border-radius: 999px; background: var(--ap-ink); color: #fff; font-weight: 600;
}
.cmp-lede { font-size: 20px; line-height: 1.5; color: var(--cmp-ink-2); margin: 0 0 28px; max-width: 560px; }
.cmp-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cmp-actions-center { justify-content: center; }
.cmp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--ap-mute); }
.cmp-trust li { position: relative; padding-left: 20px; }
.cmp-trust li::before {
    content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px;
    border-left: 2px solid var(--cmp-green); border-bottom: 2px solid var(--cmp-green); transform: rotate(-45deg);
}

/* matchup card */
.cmp-match {
    background: rgba(255,255,255,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 28px; padding: 10px 26px 18px;
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 80px -30px rgba(29,29,31,.35), inset 0 0 0 1px rgba(0,0,0,.06);
}
.cmp-match-head, .cmp-match-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; align-items: center; }
.cmp-match-head { padding: 16px 0 14px; border-bottom: 1px solid var(--ap-line); }
.cmp-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ap-ink); }
.cmp-brand-ap img { height: 22px; width: auto; display: block; }
.cmp-mono {
    display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; flex: none;
    background: #e8e8ed; color: #6e6e73; font-size: 13px; font-weight: 700;
}
.cmp-match-row { padding: 15px 0; border-bottom: 1px solid var(--ap-line); }
.cmp-match-row:last-of-type { border-bottom: 0; }
.cmp-match-label { font-size: 14px; color: var(--ap-mute); }
.cmp-match-ours { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ap-blue); }
.cmp-match-theirs { font-size: 15px; color: var(--cmp-ink-2); }
.cmp-match-foot { font-size: 12px; color: var(--ap-mute-2); margin: 6px 0 0; }

/* ---------- product film ---------- */
.cmp-film-section { padding: 8px 0 24px; }
.cmp-film { position: relative; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden; background: #111; }
.cmp-film .g-video-slot img, .cmp-film .g-video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-film-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); pointer-events: none; }
.cmp-film-chips { position: absolute; left: 24px; bottom: 22px; right: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.cmp-film-chips span {
    font-size: 13px; font-weight: 600; color: #fff; padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

/* ---------- verdict ---------- */
.cmp-verdict { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.cmp-card { background: var(--ap-fill); border-radius: 28px; padding: 34px 32px; display: flex; flex-direction: column; }
.cmp-card-ap { background: linear-gradient(140deg, #458EFF 0%, #2f6fe0 55%, #2556c4 100%); color: #fff; box-shadow: 0 24px 60px -28px rgba(47,111,224,.7); }
.cmp-card-kicker { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--ap-ink); }
.cmp-card-ap .cmp-card-kicker { color: #fff; }
.cmp-ticks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 14px; }
.cmp-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--ap-ink); }
.cmp-card-ap .cmp-ticks li { color: #fff; }
.cmp-card-ap .cmp-mark-yes { background: rgba(255,255,255,.22); color: #fff; }
.cmp-btn-light { margin-top: 26px; align-self: flex-start; background: #fff; color: var(--ap-blue) !important; }
.cmp-btn-light:hover { background: #f0f5ff; }

/* status marks */
.cmp-mark { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; }
.cmp-mark svg { width: 14px; height: 14px; }
.cmp-mark-yes { background: rgba(31,157,85,.12); color: var(--cmp-green); }
.cmp-mark-partial { background: rgba(194,124,14,.13); color: var(--cmp-amber); }
.cmp-mark-no { background: rgba(217,63,63,.1); color: var(--cmp-red); }
.cmp-mark-info { background: #e8e8ed; color: #86868b; }

/* ---------- table ---------- */
.cmp-table-wrap { overflow-x: auto; background: #fff; border-radius: 28px; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 20px 50px -30px rgba(0,0,0,.25); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; min-width: 680px; table-layout: fixed; }
.cmp-table thead th:first-child { width: 22%; }
.cmp-table thead th.cmp-col-ap, .cmp-table thead th.cmp-col-them { width: 39%; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--ap-line); }
.cmp-table thead th { position: sticky; top: 0; z-index: 1; background: #fff; padding-top: 24px; padding-bottom: 20px; font-size: 15px; font-weight: 600; color: var(--ap-ink); vertical-align: middle; }
.cmp-table thead .cmp-col-them { display: table-cell; }
.cmp-table thead .cmp-col-them .cmp-mono { margin-right: 8px; vertical-align: middle; }
.cmp-th-logo { height: 22px; width: auto; display: block; }
.cmp-table tbody th { font-weight: 600; color: var(--ap-ink); width: 22%; }
.cmp-table td { color: var(--cmp-ink-2); width: 39%; }
.cmp-cell { display: flex; gap: 12px; align-items: flex-start; }
.cmp-table .cmp-col-ap { background: rgba(69,142,255,.06); box-shadow: inset 1px 0 0 rgba(69,142,255,.18), inset -1px 0 0 rgba(69,142,255,.18); }
.cmp-table thead .cmp-col-ap { background: rgba(69,142,255,.06); border-top-left-radius: 18px; border-top-right-radius: 18px; box-shadow: inset 1px 0 0 rgba(69,142,255,.18), inset -1px 0 0 rgba(69,142,255,.18), inset 0 3px 0 var(--ap-blue); }
.cmp-table .cmp-col-ap .cmp-cell span { color: var(--ap-ink); }
.cmp-table tfoot td { border-bottom: 0; padding-top: 18px; padding-bottom: 22px; }
.cmp-btn-sm { padding: 10px 18px; font-size: 14px; }
.cmp-table-note { font-size: 13px; color: var(--ap-mute); margin: 16px 6px 0; }
.cmp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- showcase ---------- */
.cmp-fx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cmp-fx { margin: 0; background: var(--ap-fill); border-radius: 22px; overflow: hidden; }
.cmp-fx .g-video-slot { aspect-ratio: 4 / 5; height: auto; }
.cmp-fx .g-video-slot img, .cmp-fx .g-video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-fx figcaption { padding: 16px 18px 18px; display: grid; gap: 4px; }
.cmp-fx figcaption strong { font-size: 16px; color: var(--ap-ink); }
.cmp-fx figcaption span { font-size: 14px; line-height: 1.4; color: var(--ap-mute); }

.cmp-formats {
    margin-top: 20px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center;
    background: var(--ap-ink); color: #fff; border-radius: 28px; padding: 36px 40px;
}
.cmp-formats h3 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 10px; }
.cmp-formats p { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.72); margin: 0; }
.cmp-formats-media { display: flex; gap: 14px; align-items: flex-end; justify-content: flex-end; }
.cmp-fmt { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: #2a2a2d; flex: none; }
.cmp-fmt img, .cmp-fmt .g-video-slot img, .cmp-fmt .g-video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-fmt-916 { width: 110px; aspect-ratio: 9 / 16; }
.cmp-fmt-169 { width: 300px; aspect-ratio: 16 / 9; }
.cmp-fmt-11 { width: 150px; aspect-ratio: 1; }
.cmp-fmt figcaption {
    position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 700; color: #fff;
    padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.45);
}

/* ---------- differences ---------- */
.cmp-diff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cmp-diff { background: #fff; border-radius: 24px; padding: 28px 26px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); transition: transform .2s ease, box-shadow .2s ease; }
.cmp-diff:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(69,142,255,.25), 0 18px 40px -26px rgba(0,0,0,.3); }
.cmp-diff-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(69,142,255,.1); color: var(--ap-blue); margin-bottom: 18px; }
.cmp-icon { width: 22px; height: 22px; }
.cmp-diff h3 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 700; color: var(--ap-ink); }
.cmp-diff p { font-size: 15px; line-height: 1.55; color: var(--cmp-ink-2); margin: 0; }

/* ---------- faq ---------- */
.cmp-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.cmp-faq-head h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.035em; margin: 14px 0 12px; color: var(--ap-ink); }
.cmp-faq-head p { color: var(--ap-mute); font-size: 17px; margin: 0; }
.cmp-faq-grid .g-faq-list { margin: 0; max-width: none; }

/* ---------- more comparisons ---------- */
.cmp-more { padding: 8px 0 56px; }
.cmp-more h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ap-ink); }
.cmp-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cmp-more-card {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-radius: 18px;
    background: var(--ap-fill); color: var(--ap-ink) !important; font-weight: 600; text-decoration: none;
    transition: background .2s ease;
}
.cmp-more-card:hover { background: #ebebf0; }
.cmp-more-card span:last-child { color: var(--ap-blue); font-size: 20px; }

/* ---------- close ---------- */
.cmp-close-section { padding: 0 0 72px; }
.cmp-close {
    position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 32px; padding: 88px 28px;
    background: linear-gradient(180deg, rgba(10,14,24,.55), rgba(10,14,24,.82)), var(--cmp-close-bg) center / cover no-repeat, #0b0f18;
}
.cmp-close h2 { font-size: 52px; line-height: 1.04; letter-spacing: -0.04em; margin: 0 auto 14px; max-width: 760px; }
.cmp-close > p { font-size: 19px; color: rgba(255,255,255,.8); margin: 0 auto 30px; max-width: 560px; }
.cmp-close-link { color: #fff !important; font-size: 17px; font-weight: 500; text-decoration: none; }
.cmp-close-link:hover { text-decoration: underline; }
.cmp-close .cmp-close-note { font-size: 13px; color: rgba(255,255,255,.65); margin: 22px auto 0; }
.cmp-legal { font-size: 12px; color: var(--ap-mute-2); text-align: center; max-width: 640px; margin: 22px auto 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .cmp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .cmp-fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cmp-formats { grid-template-columns: 1fr; }
    .cmp-formats-media { justify-content: flex-start; }
    .cmp-faq-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
    .cmp-diff-grid, .cmp-verdict, .cmp-more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 734px) {
    .cmp-hero { padding: 40px 0 32px; }
    .cmp-hero h1 { font-size: 42px; }
    .cmp-lede { font-size: 18px; }
    .cmp-match { padding: 6px 18px 14px; border-radius: 22px; }
    .cmp-match-ours { font-size: 16px; }
    .cmp-match-theirs, .cmp-match-label { font-size: 13px; }
    .cmp-film { aspect-ratio: 4 / 3; border-radius: 22px; }
    .cmp-film-chips span:nth-child(3) { display: none; }
    .cmp-formats { padding: 28px 22px; }
    .cmp-fmt-916 { width: 70px; } .cmp-fmt-169 { width: 170px; } .cmp-fmt-11 { width: 90px; }
    .cmp-close { padding: 56px 20px; border-radius: 24px; }
    .cmp-close h2 { font-size: 34px; }
    .cmp-faq-head h2 { font-size: 30px; }

    /* table: each feature becomes its own two-column row */
    .cmp-table-wrap { overflow: hidden; border-radius: 22px; }
    .cmp-table { min-width: 0; font-size: 14px; }
    .cmp-table, .cmp-table thead, .cmp-table tbody, .cmp-table tfoot { display: block; }
    .cmp-table tr { display: grid; grid-template-columns: 1fr 1fr; }
    .cmp-table th, .cmp-table td { width: auto !important; padding: 14px 16px; }
    .cmp-table thead tr > th:first-child { display: none; }
    .cmp-table thead th { position: static; padding: 18px 16px 14px; font-size: 14px; }
    .cmp-table thead .cmp-col-them { display: block; }
    .cmp-table tbody th { grid-column: 1 / -1; padding: 18px 16px 4px; border-bottom: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ap-mute); }
    .cmp-table tfoot tr > td:first-child, .cmp-table tfoot tr > td:last-child { display: none; }
    .cmp-table tfoot tr { grid-template-columns: 1fr; }
    .cmp-table tfoot .cmp-col-ap { background: none; box-shadow: none; text-align: center; }
    .cmp-th-logo { height: 18px; }
    .cmp-cell { gap: 8px; }
}
