/* ==========================================================================
   SUBPAGE THEME — BASE DARK SYSTEM
   Matches home page color system exactly.
   Does NOT force all sections dark — individual pages control section bg.
   ========================================================================== */

/* ---- Body base ---- */
body {
    background: #0a0a0c;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Header ---- */
.site-header {
    background-color: transparent;
}

/* ---- Hero section base ---- */
.hero-section {
    background: #0a0a0c;
    color: #ffffff;
}

/* ---- Dark section utility ---- */
.section-dark {
    background: #0a0a0c;
    color: #ffffff;
}

.section-dark-alt {
    background: #121217;
    color: #ffffff;
}

/* ---- Light section utility (mirrors home page off-white sections) ---- */
.section-light {
    background: #fbfbfc;
    color: #0a0a0c;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light p,
.section-light li {
    color: #0a0a0c;
}

.section-light .section-eyebrow,
.section-light .section-title span {
    color: #5E0ED7;
}

.section-light .capability-col {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* ---- Cards: solid dark surfaces, no glassmorphism ---- */
.capability-card,
.matrix-card,
.stat-card,
.treatment-card,
.workflow-step-card,
.workflow-step-visual,
.proof-card,
.cta-banner-glass,
.footer-pre-cta {
    background: #121217;
    border-color: rgba(255, 255, 255, 0.08);
}

.capability-card:hover,
.matrix-card:hover,
.treatment-card:hover,
.workflow-step-card:hover {
    background: #181822;
    border-color: rgba(94, 14, 215, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* ---- Buttons: solid purple, no gradient ---- */
.btn-primary {
    background: #5E0ED7;
    border-radius: 8px;
    box-shadow: none;
}

.btn-primary:hover {
    background: #731bf0;
    box-shadow: 0 8px 20px rgba(94, 14, 215, 0.25);
    transform: translateY(-2px);
}

/* ---- Section title accent span ---- */
.section-title span,
.hero-title span.accent {
    color: #5E0ED7;
}

/* ---- Eyebrow labels ---- */
.section-eyebrow {
    color: #5E0ED7;
}

/* ---- Text colors on dark sections ---- */
.section-dark .sub-hero-description,
.section-dark-alt .sub-hero-description,
.hero-section .sub-hero-description {
    color: #a0a0b0;
}

/* ---- Stat cards ---- */
.stat-value {
    color: #5E0ED7;
}

.stat-label {
    color: #a0a0b0;
}

/* ---- GHL subpage hero ---- */
.ghl-hero,
.sub-hero-section {
    background: #0a0a0c;
}

/* ---- CTA section ---- */
.ghl-cta-section {
    background: #0a0a0c;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cta-banner-glass {
    background: #121217;
    border-color: rgba(255, 255, 255, 0.08);
}

.cta-eyebrow {
    color: #5E0ED7;
}

.cta-title {
    color: #ffffff;
}

.cta-desc {
    color: #a0a0b0;
}

/* ---- Footer ---- */
.site-footer {
    background: #0a0a0c;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-pre-cta {
    background: #121217;
    border-color: rgba(255, 255, 255, 0.08);
}

.footer-pre-cta-title {
    color: #ffffff;
}

.footer-pre-cta-desc {
    color: #a0a0b0;
}

/* ---- Workflow pipeline center line ---- */
.workflow-pipeline-grid::before {
    background: rgba(94, 14, 215, 0.2);
}

/* ---- Workflow step number badge ---- */
.workflow-step-num {
    background: rgba(94, 14, 215, 0.1);
    border-color: rgba(94, 14, 215, 0.3);
}

/* ---- Visual rows inside workflow cards ---- */
.visual-row {
    background: rgba(255, 255, 255, 0.03);
}

/* ---- Sim messages ---- */
.sim-message.ai {
    background: rgba(94, 14, 215, 0.12);
    border-color: rgba(94, 14, 215, 0.25);
}

.sim-message.patient {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ---- Hero visual card ---- */
.hero-visual-card {
    background: #121217;
    border-color: rgba(94, 14, 215, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.hero-visual-card::before {
    display: none;
}


/* ==========================================================================
   CASE STUDY DETAIL EDITORIAL STYLES
   ========================================================================== */

.case-study-hero {
    padding-top: clamp(120px, 14vh, 160px);
    padding-bottom: clamp(3rem, 6vh, 5rem);
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(10, 10, 12, 1) 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-study-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.case-study-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.25rem;
    max-width: 900px;
}

.case-study-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: #94a3b8;
    max-width: 780px;
    margin-bottom: 2.5rem;
}

.case-study-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.metric-card-editorial {
    background: rgba(18, 18, 23, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card-editorial:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
}

.metric-val-large {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #6366f1;
    line-height: 1.1;
    margin-bottom: 0.35rem;

    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-lbl-small {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
    line-height: 1.4;
}

.case-study-container {
    max-width: 1040px;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.case-study-body-section {
    padding: clamp(3.5rem, 7vh, 5.5rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-editorial-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.editorial-text-p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.75;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.before-card {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.after-card {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.card-tag-red {
    display: inline-block;
    color: #f87171;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-tag-green {
    display: inline-block;
    color: #34d399;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.pipeline-step-box {
    background: rgba(24, 24, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.pipeline-num {
    background: #6366f1;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* Utility classes added for inline style cleanup */
.section-subtitle {
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 0.875rem auto 0;
    font-size: 1rem;
    line-height: 1.7;
}


.section-spacer {
    margin-top: 100px;
    margin-bottom: 100px;
}


.nowrap {
    white-space: nowrap;
}


.pb-350 {
    padding-bottom: 350px;
}
