/* ============================================================
   customer-information-page.css  |  prefix: cip-
   Bg via Tally classes: blue-bg / bg-light-cream
   No font-family overrides — native Tally fonts throughout
   ============================================================ */

/* VARIABLES */
:root {
    --cip-primary: #006EA6;
    --cip-gold: #F5B800;
    --cip-navy: #1a2b4a;
    --cip-hero-bg: #F5F0E6;
    --cip-dark: #231F20;
    --cip-muted: #6c757d;
    --cip-border: #dee2e6;
}

/* TALLY BG FALLBACKS */
.blue-bg {
    background-color: #EAF4FB;
}

.bg-light-cream {
    background-color: #FFF9F0;
}

/* UTILITIES */
.cip-max-w-6xl {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.cip-max-w-5xl {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.cip-max-w-3xl {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cip-max-w-2xl {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cip-text-primary {
    color: var(--cip-primary) !important;
}

.cip-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cip-primary);
}

.cip-section-title {
    font-weight: 700;
    line-height: 1.25;
}

/* HERO */
.cip-hero {
    background-color: var(--cip-hero-bg);
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

.cip-hero-svg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 58%;
    pointer-events: none;
}

.cip-hero-inner {
    padding-top: 4rem;
    padding-bottom: 16rem;
    position: relative;
}

@media (min-width: 768px) {
    .cip-hero-inner {
        padding-top: 5rem;
        padding-bottom: 12rem;
    }
}

@media (min-width: 992px) {
    .cip-hero-inner {
        padding-bottom: 14rem;
    }
}

.cip-case-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--cip-gold);
    border-radius: 9999px;
    padding: 0.4rem 1.25rem;
    margin-bottom: 1.5rem;
}

.cip-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--cip-dark);
    flex-shrink: 0;
}

.cip-badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cip-dark);
}

.cip-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--cip-dark);
}

@media (min-width: 768px) {
    .cip-hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 992px) {
    .cip-hero-title {
        font-size: 3.25rem;
    }
}

.cip-hero-subtitle {
    color: var(--cip-dark);
    margin: 0;
}

.cip-highlight-pill {
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    background-color: var(--cip-gold);
    color: var(--cip-dark);
}

.cip-metric-cards {
    max-width: 22rem;
    display: grid;
    gap: 1rem;
}

.cip-metric-card {
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.cip-metric-card:hover {
    transform: scale(1.03);
}

.cip-metric-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.cip-metric-content {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.cip-metric-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.cip-metric-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cip-hero-img {
    max-width: 100%;
    margin-top: 1.5rem;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {

    .cip-metric-value,
    .cip-metric-icon,
    .cip-metric-label {
        color: #000 !important;
    }

    .cip-metric-card {
        border: 1px solid rgb(0 0 0 / 50%);
        backdrop-filter: none;
    }

    .cip-hero-inner {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 768px) {
    .cip-hero-img {
        position: absolute;
        left: 8%;
        bottom: 0;
        transform: translateY(10%);
        max-width: 420px;
        margin-top: 0;
    }
}

/* ABOUT */
.cip-about-img {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--cip-border);
}

/* CHALLENGES */
.cip-challenge-card {
    border-radius: 1rem;
    border: 1px solid var(--cip-border);
    background: #fff;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.cip-challenge-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.cip-challenge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(0, 110, 166, 0.1);
    color: var(--cip-primary);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.cip-challenge-title {
    font-weight: 700;
    color: var(--cip-navy);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cip-challenge-text {
    color: var(--cip-muted);
    line-height: 1.6;
    margin: 0;
}

/* OUTCOMES */
.cip-outcome-block {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--cip-border);
}

.cip-outcome-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.cip-outcome-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(0, 110, 166, 0.1);
    color: var(--cip-primary);
    margin-bottom: 1rem;
}

.cip-outcome-title {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.cip-outcome-img-wrap {
    border-radius: 1rem;
    background: #fff;
    height: 14rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cip-border);
    overflow: hidden;
    padding: 1rem;
}

@media (min-width: 992px) {
    .cip-outcome-img-wrap {
        height: 16rem;
    }
}

.cip-outcome-img-wrap img {
    max-height: 100%;
    object-fit: contain;
    width: 100%;
}

/* BEFORE VS AFTER */
.cip-testimonial-card {
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--cip-border);
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .cip-testimonial-card {
        padding: 2.5rem;
    }
}

.cip-quote-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(0, 110, 166, 0.5);
    display: block;
    margin-bottom: 1.25rem;
}

.cip-testimonial-quote {
    font-style: italic;
    color: var(--cip-navy);
    line-height: 1.7;
    margin: 0;
}

.cip-author-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 110, 166, 0.3);
    flex-shrink: 0;
}

.cip-author-name {
    font-weight: 700;
    color: var(--cip-navy);
    margin: 0;
}

.cip-author-role {
    color: var(--cip-muted);
    margin: 0;
}

.cip-compare-header {
    background: rgba(248, 249, 250, 0.8);
}

.cip-th {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cip-muted);
}

.cip-th-after {
    color: var(--cip-primary) !important;
}

.cip-process-name {
    font-weight: 600;
    color: var(--cip-navy);
}

.cip-process-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(0, 110, 166, 0.1);
    color: var(--cip-primary);
    flex-shrink: 0;
}

.cip-compare-row {
    transition: background-color 0.2s ease;
}

.cip-compare-row:hover {
    background-color: rgba(248, 249, 250, 0.6);
}

.cip-after-value {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--cip-navy);
}

.cip-after-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cip-primary);
    flex-shrink: 0;
    margin-top: 0.4rem;
}

/* FEATURES */
.cip-feature-eyebrow-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cip-feature-divider {
    width: 2rem;
    height: 1px;
    background: var(--cip-primary);
}

.cip-feature-eyebrow {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(35, 31, 32, 0.5);
    margin: 0;
}

.cip-features-headline {
    font-weight: 600;
    line-height: 1.2;
    max-width: 22ch;
}

.cip-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--cip-border);
    border: 1px solid var(--cip-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cip-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cip-feature-item {
    padding: 1.5rem;
    background: #fff;
    display: flex;
    gap: 1.25rem;
    transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
    .cip-feature-item {
        padding: 2rem;
    }
}

.cip-feature-item:hover {
    background: #f8f9fa;
}

.cip-feature-icon {
    color: var(--cip-primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cip-feature-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--cip-navy);
}

.cip-feature-text {
    color: var(--cip-muted);
    line-height: 1.6;
    margin: 0;
}

/* PEER USE CASES */
.cip-peer-divider {
    width: 2rem;
    height: 1px;
    background: var(--cip-primary);
}

.cip-peer-title {
    font-weight: 700;
    color: var(--cip-navy);
    line-height: 1.2;
}

.cip-peer-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--cip-border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .cip-peer-card {
        padding: 2.5rem;
    }
}

.cip-peer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cip-primary), transparent);
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.cip-peer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 110, 166, 0.15);
}

.cip-peer-card:hover::before {
    opacity: 1;
}

.cip-peer-num {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 0.25rem 0.5rem;
    border-radius: 0.125rem;
    background: #ffc107;
    color: var(--cip-dark);
}

.cip-peer-line {
    flex: 1;
    height: 1px;
    background: var(--cip-border);
}

.cip-peer-card-title {
    font-weight: 700;
    color: var(--cip-navy);
    line-height: 1.35;
    margin-bottom: 1rem;
}

.cip-peer-highlight {
    border-left: 2px solid var(--cip-primary);
    padding-left: 0.75rem;
    font-weight: 600;
    color: var(--cip-navy);
    line-height: 1.4;
}

/* SCROLL REVEAL */
.cip-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cip-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .cip-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .cip-metric-card:hover,
    .cip-challenge-card:hover,
    .cip-peer-card:hover {
        transform: none;
    }
}