/* ==========================================================================
   COMPARISON PAGES (/compare/*), homepage framed design system.
   Uses home.css tokens (body.home-frame) plus these page rules, scoped to
   body.compare-frame. Loaded only by compare/*.html as /compare.css?v=N.
   ========================================================================== */
body.compare-frame { background: var(--page); }

/* Light sections sit in the homepage's hairline frame (.hf-frame in home.css) */
body.compare-frame .compare-section > .container { max-width: none; padding: 96px var(--gutter); }

/* ---------- Hero (same treatment as the case-studies hero) ---------- */
body.compare-frame .compare-hero {
    margin-top: var(--nav-h);
    padding: clamp(64px, 10vh, 112px) var(--gutter) clamp(48px, 7vh, 80px);
    text-align: center;
    background-image: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(70, 138, 247, 0.10), transparent 70%);
}
body.compare-frame .compare-hero::after {
    content: '';
    position: absolute; top: 0; right: 0; width: 64px; height: 64px;
    border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(to bottom left, var(--page) calc(50% - 0.5px), var(--line-strong) 50%, #fff calc(50% + 0.5px));
}
body.compare-frame .compare-hero-inner { max-width: 840px; margin: 0 auto; }
body.compare-frame .compare-breadcrumb,
body.compare-frame .compare-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--deep-purple); background: var(--lavender);
    border: 1px solid rgba(70, 46, 125, 0.28); border-radius: 2px;
    padding: 7px 14px; margin-bottom: 20px;
}
body.compare-frame .compare-breadcrumb a { color: var(--deep-purple); text-decoration: underline; text-underline-offset: 2px; }
body.compare-frame .compare-hero h1 {
    font-family: var(--font);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600; letter-spacing: -0.035em; line-height: 1.06;
    color: var(--navy); text-wrap: balance; margin: 0 0 18px;
}
body.compare-frame .compare-hero-sub { font-size: 18px; line-height: 1.6; color: rgba(1, 28, 64, 0.82); max-width: 62ch; margin: 0 auto 30px; }
body.compare-frame .compare-hero-cta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
body.compare-frame .compare-hero-cta .btn { min-height: 48px; padding: 0 26px; }

/* ---------- At-a-glance table ---------- */
body.compare-frame .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: #fff; }
body.compare-frame .compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
body.compare-frame .compare-table caption { caption-side: bottom; text-align: left; padding: 14px 20px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
body.compare-frame .compare-table th,
body.compare-frame .compare-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
body.compare-frame .compare-table thead th {
    border-top: 0; background: var(--navy); color: #fff;
    font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
body.compare-frame .compare-table tbody th { width: 22%; font-weight: 600; color: var(--navy); background: var(--page); }
body.compare-frame .compare-table td { width: 39%; }

/* ---------- Where Solum is different: 2x2 framed cards ---------- */
body.compare-frame .compare-points { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
body.compare-frame .compare-point { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
body.compare-frame .compare-point h3 { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 10px; }
body.compare-frame .compare-point p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
body.compare-frame .compare-link { font-size: 14px; font-weight: 600; color: #2563EB; text-decoration: none; }
body.compare-frame .compare-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Honest view, demo questions, sources ---------- */
body.compare-frame .compare-prose { max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0; }
body.compare-frame .compare-questions { counter-reset: q; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 860px; }
body.compare-frame .compare-questions li {
    counter-increment: q; position: relative; padding: 18px 0 18px 56px;
    border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--navy);
}
body.compare-frame .compare-questions li::before {
    content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 18px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-3);
}
body.compare-frame .compare-sources { max-width: 80ch; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
body.compare-frame .compare-sources ul { padding-left: 18px; margin: 0 0 14px; }
body.compare-frame .compare-sources p { margin: 8px 0 0; }
body.compare-frame .compare-sources a { color: #2563EB; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Hub cards ---------- */
body.compare-frame .compare-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
body.compare-frame .compare-card {
    display: block; padding: 32px; background: #fff; text-decoration: none;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .2s;
}
body.compare-frame .compare-card:hover,
body.compare-frame .compare-card:focus-visible { background: var(--page); }
body.compare-frame .compare-card h3 { font-family: var(--font); font-size: 20px; font-weight: 600; color: var(--navy); margin: 0 0 10px; }
body.compare-frame .compare-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

@media (max-width: 900px) {
    body.compare-frame .compare-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body.compare-frame .compare-section > .container { padding: 56px 16px; }
    body.compare-frame .compare-hero { padding: 72px 16px 40px; }
    body.compare-frame .compare-hero::after { width: 40px; height: 40px; }
    body.compare-frame .compare-breadcrumb { font-size: 10px; letter-spacing: 0.1em; padding: 6px 10px; }
    body.compare-frame .compare-hero-sub { font-size: 15px; }
    body.compare-frame .compare-hero-cta .btn { flex: 1 1 100%; }
    body.compare-frame .compare-point, body.compare-frame .compare-card { padding: 24px; }
    body.compare-frame .compare-table { font-size: 14px; }
}

/* FAQ: styles.css caps open answers at 300px; compare answers run longer on phones */
body.compare-frame .faq-item.open .faq-answer { max-height: 900px; }
body.compare-frame .compare-table-wrap:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }

/* ==========================================================================
   v5: richer layout from homepage components (2026-11-12)
   ========================================================================== */
/* Hero "versus" panel */
body.compare-frame .compare-vs { max-width: 980px; margin: 8px auto 0; text-align: left; }
body.compare-frame .compare-vs-label { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
body.compare-frame .compare-vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; border: 1px solid var(--line); background: #fff; }
body.compare-frame .compare-vs-col { padding: 28px 32px; }
body.compare-frame .compare-vs-col.is-solum { background: linear-gradient(180deg, rgba(70, 138, 247, 0.08), rgba(70, 138, 247, 0.02)); border-right: 1px solid var(--line); }
body.compare-frame .compare-vs-col.is-other { border-left: 1px solid var(--line); }
body.compare-frame .compare-vs-name { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 14px; letter-spacing: -0.01em; }
body.compare-frame .compare-vs-col ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
body.compare-frame .compare-vs-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink); }
body.compare-frame .compare-vs-col li svg { flex: 0 0 auto; margin-top: 2px; color: #2563EB; }
body.compare-frame .compare-vs-col.is-other li svg { color: var(--ink-3); }
body.compare-frame .compare-vs-for { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
body.compare-frame .compare-vs-for span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
body.compare-frame .compare-vs-mid { display: flex; align-items: center; justify-content: center; padding: 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep-purple); background: var(--lavender); }

/* Table: Solum column header */
body.compare-frame .compare-table thead th.is-solum { background: #2563EB; }

/* Dark stats band (same treatment as the homepage product showcase) */
body.compare-frame .compare-dark { position: relative; background-color: var(--navy); color: #fff; overflow: hidden; }
body.compare-frame .compare-dark::after { content: ''; position: absolute; left: 50%; top: -30%; width: 1100px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(70, 138, 247, 0.28), transparent); pointer-events: none; }
body.compare-frame .compare-dark > .container { position: relative; z-index: 1; max-width: var(--frame); width: calc(100% - 32px); padding: 96px var(--gutter); border-left: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); }
body.compare-frame .compare-dark .section-header { text-align: center; margin: 0 auto 48px; }
body.compare-frame .compare-dark .section-label { color: rgba(255,255,255,0.6); }
body.compare-frame .compare-dark .section-title { color: #fff; max-width: 20ch; margin: 0 auto 16px; }
body.compare-frame .compare-dark .section-sub { color: rgba(255,255,255,0.72); margin: 0 auto; }
body.compare-frame .compare-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-dark); }
body.compare-frame .compare-stat { padding: 32px 28px; border-right: 1px solid var(--line-dark); background: rgba(255,255,255,0.03); }
body.compare-frame .compare-stat:last-child { border-right: 0; }
body.compare-frame .compare-stat-num { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: #fff; margin-bottom: 12px; }
body.compare-frame .compare-stat-label { display: block; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72); text-transform: uppercase; letter-spacing: 0.08em; }

/* "What Solum does differently": homepage solution cards, 2 x 2 */
body.compare-frame .compare-diff-grid { grid-template-columns: repeat(2, 1fr); }
body.compare-frame .compare-diff-grid .solution-card:nth-child(3n) { border-right: 1px solid var(--line); }
body.compare-frame .compare-diff-grid .solution-card:nth-child(2n) { border-right: 0; }
body.compare-frame .compare-diff-grid .solution-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
body.compare-frame .compare-diff-grid .solution-card:nth-last-child(-n+2) { border-bottom: 0; }
body.compare-frame .compare-diff-grid .solution-card p { font-size: 15px; line-height: 1.6; }
body.compare-frame .solution-card-link { color: #2563EB; }

/* Honest view + demo questions, side by side */
body.compare-frame .compare-split { display: grid; grid-template-columns: 1fr 1fr; }
body.compare-frame .compare-split-col { padding: 96px var(--gutter); }
body.compare-frame .compare-split-col + .compare-split-col { border-left: 1px solid var(--line); }
body.compare-frame .compare-honest { background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 7px); background-color: var(--page); }
body.compare-frame .compare-split .section-title { font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 20px; max-width: 18ch; }
body.compare-frame .compare-split .section-label { display: block; }
body.compare-frame .compare-honest .compare-prose { background: #fff; border: 1px solid var(--line); padding: 24px; font-size: 16px; }

/* Hub: richer comparison card + principles */
body.compare-frame .compare-card { display: flex; flex-direction: column; gap: 12px; }
body.compare-frame .compare-card h3 { margin: 0; }
body.compare-frame .compare-card-vs { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
body.compare-frame .compare-card-vs .is-solum { color: #2563EB; }
body.compare-frame .compare-card-x { padding: 3px 8px; background: var(--lavender); color: var(--deep-purple); font-size: 10px; }
body.compare-frame .compare-tags { display: flex; flex-wrap: wrap; gap: 6px; }
body.compare-frame .compare-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); padding: 5px 9px; background: var(--page); }
body.compare-frame .compare-card-meta { font-size: 13px; color: var(--ink-3); }
body.compare-frame .compare-card-cta { margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #2563EB; }
body.compare-frame .compare-principles-grid .solution-card:nth-last-child(-n+3) { border-bottom: 0; }
body.compare-frame .compare-diff .section-sub a { color: #2563EB; }

@media (max-width: 900px) {
    body.compare-frame .compare-stats { grid-template-columns: repeat(2, 1fr); }
    body.compare-frame .compare-stat:nth-child(2) { border-right: 0; }
    body.compare-frame .compare-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
    body.compare-frame .compare-split { grid-template-columns: 1fr; }
    body.compare-frame .compare-split-col + .compare-split-col { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    body.compare-frame .compare-vs-grid { grid-template-columns: 1fr; }
    body.compare-frame .compare-vs-col.is-solum { border-right: 0; }
    body.compare-frame .compare-vs-col.is-other { border-left: 0; }
    body.compare-frame .compare-vs-mid { padding: 8px; }
    body.compare-frame .compare-vs-col { padding: 22px; }
    body.compare-frame .compare-dark > .container, body.compare-frame .compare-split-col { padding: 56px 16px; }
    body.compare-frame .compare-diff-grid { grid-template-columns: 1fr; }
    body.compare-frame .compare-diff-grid .solution-card { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
    body.compare-frame .compare-diff-grid .solution-card:last-child { border-bottom: 0 !important; }
}

/* Desktop hero: text left, versus panel right, so the logo strip stays in the first screen (as on the homepage) */
@media (min-width: 1024px) {
    body.compare-frame .compare-hero:has(.compare-vs) {
        display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
        text-align: left; padding: clamp(48px, 7vh, 80px) var(--gutter) clamp(40px, 6vh, 64px);
    }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-hero-inner { margin: 0; max-width: none; }
    body.compare-frame .compare-hero:has(.compare-vs) h1 { font-size: clamp(40px, 4vw, 56px); }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-hero-sub { margin: 0 0 26px; font-size: 17px; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-hero-cta { justify-content: flex-start; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-vs { margin: 0; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-vs-grid { grid-template-columns: 1fr; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-vs-col.is-solum { border-right: 0; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-vs-col.is-other { border-left: 0; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-vs-mid { padding: 6px; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-vs-col { padding: 20px 24px; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-vs-col ul { gap: 6px; margin-bottom: 12px; }
    body.compare-frame .compare-hero:has(.compare-vs) .compare-vs-for { padding-top: 10px; }
}
/* Hub: cards stretch to fill the row (one comparison today should not leave empty columns) */
body.compare-frame .compare-cards { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
body.compare-frame .compare-card { padding: 36px var(--gutter); }
body.compare-frame .compare-card h3 { font-size: 26px; letter-spacing: -0.02em; }
