/* ══════════════════════════════════════════════════════════
   CONTENT KIT — shared premium components for long-form
   service pages (HRMS, Odoo Migration, and future additions).
   Extends the existing --blue/--dark/--mid/--border/--sh-*
   tokens from common.css. Does not modify any existing class.
   ══════════════════════════════════════════════════════════ */

/* ── LEDE (intro copy directly under hero) ─────────────── */
.ck-lede {
    padding: 64px 0 8px;
}

.ck-lede p {
    font-size: 1.02rem;
    color: var(--mid);
    line-height: 1.85;
    max-width: 760px;
    margin-bottom: 18px;
}

.ck-lede p.ck-lede-kicker {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.55;
    max-width: 640px;
}

.ck-lede-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ck-lede-cta span {
    font-size: .88rem;
    color: var(--muted);
}

/* ── LEDE BANNER (full-width visual at the top) ─────────── */
.ck-lede-banner {
    margin-bottom: 40px;
}

.ck-lede-banner .ck-img-frame img {
    aspect-ratio: 21 / 7;
    object-fit: cover;
}

/* ── LEDE COLUMNS (article + sidebar, below the banner) ─── */
.ck-lede-columns {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

.ck-lede-col-side {
    padding-top: 4px;
}

.ck-lede-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 26px 0 4px;
}

.ck-lede-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ck-lede-highlight-item i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

.ck-lede-highlight-item strong {
    font-family: 'Manrope', sans-serif;
    font-size: .85rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.35;
}

/* ── PULL QUOTE ──────────────────────────────────────────── */
.ck-pullquote {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--blue-pale);
    border-left: 3px solid var(--blue);
    border-radius: 0 14px 14px 0;
    padding: 22px 26px;
    margin: 8px 0 26px;
}

.ck-pullquote i {
    font-size: 1.3rem;
    color: var(--blue);
    opacity: .55;
    flex-shrink: 0;
    margin-top: 2px;
}

.ck-pullquote p {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.6;
}

/* ── FRAMED IMAGE (premium product/photo visual) ────────── */
.ck-img-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--sh-lg);
    line-height: 0;
}

.ck-img-frame::before {
    content: '';
    position: absolute;
    inset: -14px -14px auto auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 74, 153, .14) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.ck-img-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
}

.ck-img-frame-tight {
    max-width: 560px;
}

@media (max-width: 991px) {
    .ck-lede-columns {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ck-lede-col-side {
        padding-top: 0;
    }

    .ck-lede-banner .ck-img-frame img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 575px) {
    .ck-lede-highlights {
        grid-template-columns: 1fr;
    }

    .ck-lede-banner .ck-img-frame img {
        aspect-ratio: 4 / 3;
    }

    .ck-lede-kicker {
        font-size: 1.05rem !important;
    }
}

/* ── QUICK ANSWERS (GEO block) ──────────────────────────── */
.ck-quick {
    background: var(--blue-pale);
    border: 1px solid rgba(0, 74, 153, .12);
    border-radius: var(--r-lg);
    padding: 36px 36px 8px;
}

.ck-quick-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.ck-quick-head i {
    font-size: 1.2rem;
    color: var(--blue);
}

.ck-quick-head span {
    font-family: 'Manrope', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
}

.ck-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    padding-bottom: 28px;
}

.ck-quick-item .q {
    font-family: 'Manrope', sans-serif;
    font-size: .92rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.ck-quick-item .q i {
    color: var(--blue);
    font-size: .85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.ck-quick-item .a {
    font-size: .88rem;
    color: var(--mid);
    line-height: 1.7;
    margin: 0;
    padding-left: 22px;
}

@media (max-width: 767px) {
    .ck-quick { padding: 28px 22px 6px; }
    .ck-quick-grid { grid-template-columns: 1fr; }
}

/* ── JUMP NAV (on-this-page pills) ──────────────────────── */
.ck-toc {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 20;
    max-width: 100%;
    overflow: hidden;
}

.ck-toc-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ck-toc-inner::-webkit-scrollbar { display: none; }

.ck-toc-label {
    font-family: 'Manrope', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
    padding-right: 4px;
}

.ck-toc a {
    flex-shrink: 0;
    font-family: 'Manrope', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--mid);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: all .18s;
    white-space: nowrap;
}

.ck-toc a:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-pale);
}

/* ── STICKY CTA BAR ──────────────────────────────────────── */
.ck-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100px;
    z-index: 900;
    background: linear-gradient(135deg, #001e4a 0%, #004a99 65%, #0061c2 100%);
    box-shadow: 0 -8px 28px rgba(0, 20, 60, .28);
    transition: bottom .35s ease;
}

.ck-sticky-cta.is-visible {
    bottom: 0;
}

.ck-sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.ck-sticky-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ck-sticky-cta-text strong {
    font-family: 'Manrope', sans-serif;
    font-size: .92rem;
    font-weight: 800;
    color: #fff;
}

.ck-sticky-cta-text span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .68);
}

.ck-sticky-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ck-sticky-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .55);
    font-size: 1.1rem;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
    transition: color .18s;
}

.ck-sticky-close:hover { color: #fff; }

@media (max-width: 640px) {
    .ck-sticky-cta-text span { display: none; }
    .ck-sticky-cta-inner { padding: 12px 0; }
}

/* ── TABLES (comparisons, decision matrices) ────────────── */
.ck-table-wrap {
    overflow-x: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    min-width: 0;
}

/* Grid/flex items default to min-width:auto, which stops a wide table
   (or any wide child) from shrinking below its own content width and
   stretches the whole page on mobile. Reset it on every direct child
   of the grid layouts used across these content pages. */
.op-benefit-layout > *,
.op-overview-layout > *,
.ck-lede-columns > *,
.row > [class*="col-"] {
    min-width: 0;
}

table.ck-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    background: var(--white);
}

table.ck-table caption {
    caption-side: top;
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue);
    padding: 16px 20px 0;
}

table.ck-table th {
    font-family: 'Manrope', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    background: var(--blue);
    text-align: left;
    padding: 14px 18px;
    white-space: nowrap;
}

table.ck-table th:first-child { border-radius: 0; }

table.ck-table td {
    font-size: .87rem;
    color: var(--mid);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
}

table.ck-table tr:last-child td { border-bottom: none; }
table.ck-table tr:nth-child(even) td { background: var(--bg); }
table.ck-table td strong { color: var(--dark); }

table.ck-table td.ck-hi {
    color: var(--blue);
    font-weight: 700;
}

/* ── DENSE LIST (compact icon rows, replaces giant-card walls) ── */
.ck-dense {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 28px;
}

.ck-dense.ck-dense-1 { grid-template-columns: 1fr; }

.ck-dense-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.ck-dense-item:last-child,
.ck-dense-item:nth-last-child(2) { border-bottom: none; }

.ck-dense-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .92rem;
    flex-shrink: 0;
}

.ck-dense-body h6 {
    font-family: 'Manrope', sans-serif;
    font-size: .88rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ck-dense-body p {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.ck-badge {
    font-family: 'Manrope', sans-serif;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #b3491f;
    background: #fdece2;
    padding: 2px 9px;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .ck-dense { grid-template-columns: 1fr; }
    .ck-dense-item:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}

/* ── CHECKLIST GROUPS ────────────────────────────────────── */
.ck-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ck-checklist-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px 24px;
}

.ck-checklist-card h5 {
    font-family: 'Manrope', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.ck-checklist-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ck-checklist-card li {
    display: flex;
    gap: 10px;
    font-size: .86rem;
    color: var(--mid);
    line-height: 1.55;
}

.ck-checklist-card li i {
    color: var(--green);
    font-size: .95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .ck-checklist-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .ck-checklist-grid { grid-template-columns: 1fr; }
}

/* ── MYTH vs FACT ────────────────────────────────────────── */
.ck-myth-grid {
    display: grid;
    gap: 14px;
}

.ck-myth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.ck-myth-cell {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
}

.ck-myth-cell.is-myth {
    background: #fdf2f0;
    border-right: 1px solid var(--border);
}

.ck-myth-cell.is-fact {
    background: #f1f9f4;
}

.ck-myth-cell i {
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.ck-myth-cell.is-myth i { color: #b3372a; }
.ck-myth-cell.is-fact i { color: var(--green); }

.ck-myth-cell .tag {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ck-myth-cell.is-myth .tag { color: #b3372a; }
.ck-myth-cell.is-fact .tag { color: var(--green); }

.ck-myth-cell p {
    margin: 0;
    font-size: .87rem;
    color: var(--dark);
    line-height: 1.55;
}

@media (max-width: 767px) {
    .ck-myth-row { grid-template-columns: 1fr; }
    .ck-myth-cell.is-myth { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── ROI / STAT CARDS ────────────────────────────────────── */
.ck-roi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ck-roi-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    position: relative;
}

.ck-roi-card .roi-tag {
    font-family: 'Manrope', sans-serif;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
    display: block;
}

.ck-roi-card p {
    font-size: .89rem;
    color: var(--mid);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 991px) {
    .ck-roi-grid { grid-template-columns: 1fr; }
}

/* ── READINESS / SELECTION CHECKLIST (single column, check rows) ── */
.ck-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ck-check-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
    color: var(--mid);
    line-height: 1.6;
}

.ck-check-list li:last-child { border-bottom: none; }

.ck-check-list li i {
    color: var(--blue);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── MODULE GRID (dense 2-col cards for large feature sets) ── */
.ck-mod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ck-mod-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.ck-mod-card:hover {
    box-shadow: var(--sh-md);
    border-color: transparent;
    transform: translateY(-2px);
}

.ck-mod-card h6 {
    font-family: 'Manrope', sans-serif;
    font-size: .9rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.ck-mod-card h6 i {
    color: var(--blue);
    font-size: .95rem;
}

.ck-mod-card p {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 767px) {
    .ck-mod-grid { grid-template-columns: 1fr; }
}

/* ── VERSION TIMELINE (v13 -> latest) ───────────────────── */
.ck-version-track {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 8px 0 18px;
}

.ck-version-node {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ck-version-node .dot {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: .82rem;
    color: var(--blue);
    background: var(--blue-light);
    border: 1px solid rgba(0, 74, 153, .18);
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.ck-version-node.is-current .dot {
    background: var(--blue);
    color: #fff;
}

.ck-version-node i {
    color: var(--border);
    font-size: 1rem;
    margin: 0 10px;
}

/* ── APP HIGHLIGHT (mobile app feature section with CSS phone mockup) ── */
.ck-app-section {
    background: linear-gradient(140deg, #001e4a 0%, #004a99 60%, #0061c2 100%);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    padding: 64px;
}

.ck-app-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.ck-app-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ck-app-copy .eyebrow {
    color: #8fc0ff;
}

.ck-app-copy h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    margin-bottom: 14px;
}

.ck-app-copy p {
    color: rgba(255, 255, 255, .75);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
}

.ck-app-features {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.ck-app-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
}

.ck-app-features i {
    color: #6fd39a;
    font-size: 1rem;
    flex-shrink: 0;
}

.ck-app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    transition: background .2s, transform .2s;
}

.ck-app-store-btn:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    transform: translateY(-2px);
}

.ck-app-store-btn i {
    font-size: 1.5rem;
}

.ck-app-store-btn span {
    display: block;
    font-size: .68rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.3;
}

.ck-app-store-btn strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
}

/* ── CSS PHONE MOCKUP ────────────────────────────────────── */
.ck-phone-mock {
    width: 240px;
    margin: 0 auto;
    background: #0a1628;
    border-radius: 34px;
    padding: 12px;
    box-shadow: var(--sh-lg), 0 0 0 1px rgba(255, 255, 255, .06);
    position: relative;
    z-index: 1;
}

.ck-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 18px;
    background: #0a1628;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

.ck-phone-screen {
    background: var(--bg);
    border-radius: 24px;
    overflow: hidden;
    padding-top: 22px;
}

.ck-phone-header {
    background: var(--white);
    padding: 10px 16px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid var(--border);
}

.ck-phone-header .dot {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    flex-shrink: 0;
}

.ck-phone-header strong {
    font-family: 'Manrope', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    color: var(--dark);
}

.ck-phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
}

.ck-phone-tile {
    background: var(--white);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: var(--sh-sm);
}

.ck-phone-tile i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #fff;
}

.ck-phone-tile span {
    font-size: .62rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .ck-app-section {
        padding: 40px 28px;
    }

    .ck-app-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .ck-app-features {
        text-align: left;
    }

    .ck-app-store-btn {
        margin: 0 auto;
    }
}

/* ── SECTION INTRO (eyebrow + title + optional lede all pages reuse) ── */
.ck-section-head {
    margin-bottom: 36px;
    max-width: 720px;
}

.ck-section-head p {
    font-size: .95rem;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.7;
}
