/* ── SECTION ── */
.ct-section {
    padding: 100px 0;
}

/* ── HEADER ── */
.ct-header {
    gap: 26px;
    margin-bottom: 61px;
}

/* ── EYEBROW ── */
.ct-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 19.2px;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    color: var(--clr-primary);
    text-align: center;
    display: block;
}

/* ── HEADING ── */
.ct-heading {
    font-family: var(--font-main);
    font-size: 50px;
    font-weight: 700;
    line-height: 57px;
    letter-spacing: -1.86px;
    color: var(--clr-white);
    text-align: center;
    max-width: 1000px;
    margin-bottom: 0;
}

/* ── INTRO TEXT (optional, between header and table) ── */
.ct-intro {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 300;
    line-height: 30px;
    color: var(--clr-white);
    margin-bottom: 61px;
}

.ct-intro p {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
}

.ct-intro strong,
.ct-intro b {
    font-weight: 700;
}

/* When intro is present, tighten gap between header and intro */
.ct-section.has-intro .ct-header {
    margin-bottom: 53px;
}

/* ── TABLE OUTER (allows horizontal scroll on mobile) ── */
.ct-table-outer {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* hide scrollbar across browsers */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE / Edge */
}

.ct-table-outer::-webkit-scrollbar {
    display: none;                /* Chrome / Safari / Opera */
}

/* ── TABLE ── */
.ct-table {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    width: 100%;
}

/* ── COLUMNS ── */
.ct-col {
    display: flex;
    flex-direction: column;
}

/* Proportions from Figma: 394 / 406 / 394 of 1194px total */
.ct-col--cap {
    flex: 0 0 33%;
}

.ct-col--theos {
    flex: 0 0 34%;
}

.ct-col--point {
    flex: 1 1 auto; /* fills remaining space */
}

/* ── COLUMN HEADERS ── */
.ct-col-hd {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--clr-white);
    overflow: hidden;
}

/* Cap + Point headers */
.ct-col-hd--cap,
.ct-col-hd--point {
    height: 107px;
    padding: 14px 20px;
}

.ct-col-hd--cap {
    border-radius: 10px 0 0 0;
}

.ct-col-hd--point {
    border-radius: 0 10px 0 0;
}

/* Theos header — taller, rounded top */
.ct-col-hd--theos {
    height: 139px;
    padding: 48px 20px 14px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

/* ── HEADER BG IMAGE (dot pattern) ── */
.ct-hd-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ct-hd-bg img {
    position: absolute;
    height: 301.7%;
    left: 15.66%;
    top: -74.68%;
    width: 100%;
    max-width: none;
    object-fit: contain;
}

/* Theos header bg: solid cyan + dot overlay */
.ct-hd-bg--theos {
    border-radius: 10px 10px 0 0;
}

.ct-hd-cyan-fill {
    position: absolute;
    inset: 0;
    background: var(--clr-primary);
}

.ct-hd-bg--theos img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: bottom;
}

/* ── COLUMN TITLES ── */
.ct-col-title {
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 700;
    line-height: 28.9px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.ct-col-title--cyan {
    color: var(--clr-primary);
}

.ct-col-title--black {
    color: var(--clr-black);
}

/* ── DATA CELLS ── */
.ct-cell {
    display: flex;
    align-items: center;
    height: 84px;
    padding: 14px 47px;
    border: 1px solid var(--clr-white);
}

.ct-cell span {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 300;
    line-height: 30px;
    display: block;
}

/* Cap column cells — bold labels */
.ct-cell--cap {
    background: var(--clr-black);
}

.ct-cell--cap span {
    font-weight: 700;
    color: var(--clr-white);
    font-size: 20px;
    line-height: 30px;
}

/* Theos column cells — cyan bg, black text */
.ct-cell--theos {
    background: var(--clr-primary);
    padding: 14px 47px;
}

.ct-cell--theos span {
    color: var(--clr-black);
    font-weight: 300;
}

/* Point column cells — black bg, white text */
.ct-cell--point {
    background: var(--clr-black);
}

.ct-cell--point span {
    color: var(--clr-white);
    font-weight: 300;
}

/* ── ROUNDED CORNERS on bottom row ── */
.ct-col--cap .ct-cell:last-child {
    border-radius: 0 0 0 10px;
}

.ct-col--point .ct-cell:last-child {
    border-radius: 0 0 10px 0;
}

/* ── SCROLL HINT (mobile only) ── */
.ct-scroll-hint {
    display: none; /* hidden on desktop */
    margin-top: 20px;
    transition: opacity 0.4s ease;
}

.ct-scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.ct-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 38px;
    background: var(--clr-secondary);
    animation: ct-pulse 1.8s ease-in-out infinite;
}

.ct-scroll-btn img {
    width: 19px;
    height: 19px;
    display: block;
    transform: rotate(-47deg);
}

@keyframes ct-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}

/* ── FOOTER TEXT ── */
.ct-footer-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 300;
    line-height: 30px;
    color: var(--clr-white);
    margin-top: 25px;
    margin-bottom: 0;
}

.ct-footer-text p {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 300;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── LG (< 1200px) ── */
@media (max-width: 1199.98px) {
    .ct-section { padding: 72px 0; }

    .ct-heading {
        font-size: 38px;
        line-height: 1.1;
        letter-spacing: -1px;
    }
}

/* ── MD (< 992px) ── */
@media (max-width: 991.98px) {
    .ct-col-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .ct-cell span {
        font-size: 16px;
        line-height: 22px;
    }

    .ct-cell--cap span {
        font-size: 16px;
    }

    .ct-cell {
        padding: 12px 20px;
    }
}

/* ── SM / Mobile (< 768px) — match Figma mobile design exactly ── */
@media (max-width: 767.98px) {
    .ct-table-outer {
        scroll-snap-type: x mandatory;
    }

    .ct-col {
        scroll-snap-align: start;
    }

    .ct-section { padding: 56px 0; }

    .ct-header {
        margin-bottom: 40px;
    }

    .ct-heading {
        font-size: 30px;
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    /* Lock to Figma mobile px widths; outer wrapper scrolls */
    .ct-col{
        flex: 0 0 100%;
        max-width: 100%;
    }
    .ct-col-hd--cap{
        border-radius: 10px 10px 0 0;
    }
    .ct-col--cap .ct-cell:last-child{
        border-radius: 0;
    }
    .ct-col-hd--theos{
        height: 107px;
        padding: 14px 16px; 
    }
    .ct-col-hd--theos, .ct-hd-bg--theos{
        border-radius: 0;
    }
    .ct-col-hd--point{
        border-radius: 0;
    }
    .ct-col--point .ct-cell:last-child{
        border-radius: 0 0 10px 10px;
    }

    /* .ct-col--cap {
        flex: 0 0 134px;
        min-width: 134px;
    }

    .ct-col--theos {
        flex: 0 0 163px;
        min-width: 163px;
    }

    .ct-col--point {
        flex: 1 1 134px;
        min-width: 134px;
    } */

    /* Mobile header padding */
    /* .ct-col-hd--cap,
    .ct-col-hd--point {
        padding: 14px 16px;
    } */

    /* .ct-col-hd--theos {
        padding: 48px 16px 14px;
    } */

    /* Mobile column title sizes */
    .ct-col-title {
        font-size: 20px;
        line-height: 23px;
    }

    /* Mobile cell padding */
    .ct-cell {
        padding: 14px 16px;
        height: 84px;
    }

    /* Mobile cell font sizes */
    .ct-cell--cap span {
        font-size: 14px;
        line-height: 16px;
    }

    .ct-cell--theos span {
        font-size: 16px;
        line-height: 16px;
    }

    .ct-cell--point span {
        font-size: 14px;
        line-height: 16px;
    }

    .ct-footer-text {
        font-size: 16px;
        line-height: 24px;
    }

    .ct-scroll-hint {
        display: flex;
    }
}

/* ── XS (< 576px) ── */
@media (max-width: 575.98px) {
    .ct-section { padding: 40px 0; }

    .ct-heading {
        font-size: 26px;
        letter-spacing: -0.3px;
    }
}

@media (min-width: 992px){
    .ct-table{
        flex-wrap: nowrap;
    }
}