/* ==========================================================================
   TCSI Page Styles
   ========================================================================== */

.tcsi-page-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #334155;
}

.tcsi-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Hero ---------- */
.tcsi-hero {
    padding: 80px 0 64px;
    text-align: center;
    background: #fff;
}

.tcsi-hero-badge {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.tcsi-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tcsi-hero-desc {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Section shared ---------- */
.tcsi-section {
    padding: 80px 0;
}

.tcsi-section--alt {
    background: #f8fafc;
}

.tcsi-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.tcsi-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.tcsi-section-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Card grid (features, advantages, methodology) ---------- */
.tcsi-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tcsi-card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.tcsi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px 28px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tcsi-section--alt .tcsi-card {
    background: #fff;
}

.tcsi-section:not(.tcsi-section--alt) .tcsi-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.tcsi-card:hover {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.tcsi-card-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #64748b;
}

.tcsi-card-icon svg {
    width: 24px;
    height: 24px;
}

.tcsi-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 10px;
}

.tcsi-card-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ---------- Formula ---------- */
.tcsi-formula-card {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.tcsi-formula-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 28px;
}

.tcsi-formula-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.tcsi-formula-body {
    padding: 32px 28px;
}

.tcsi-formula-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-bottom: 28px;
}

.tcsi-formula-code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: #0f172a;
    font-weight: 600;
    line-height: 1.5;
}

.tcsi-params {
    display: grid;
    gap: 12px;
}

.tcsi-param {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.tcsi-param-symbol {
    font-weight: 700;
    color: #0f172a;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    min-width: 28px;
    flex-shrink: 0;
}

.tcsi-param-desc {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Formula sub-features (below formula card) */
.tcsi-formula-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.tcsi-formula-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.tcsi-section--alt .tcsi-formula-feat {
    background: #fff;
}

.tcsi-formula-feat-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
}

.tcsi-formula-feat-icon svg {
    width: 20px;
    height: 20px;
}

.tcsi-formula-feat h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px;
}

.tcsi-formula-feat p {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Comparison table ---------- */
.tcsi-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.tcsi-table {
    width: 100%;
    border-collapse: collapse;
}

.tcsi-table thead th {
    padding: 16px 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.tcsi-table thead th:first-child {
    color: #0f172a;
}

.tcsi-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.tcsi-table tbody tr:last-child {
    border-bottom: none;
}

.tcsi-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.tcsi-table td {
    padding: 16px 24px;
    font-size: 0.9375rem;
    vertical-align: middle;
}

.tcsi-table td:first-child {
    font-weight: 600;
    color: #0f172a;
}

.tcsi-table td:nth-child(2) {
    color: #94a3b8;
}

.tcsi-table .tcsi-check {
    color: #0f172a;
    font-weight: 500;
}

.tcsi-table .tcsi-check::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #dcfce7;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
}

.tcsi-table .tcsi-check::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 10px;
    border: solid #16a34a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: relative;
    left: -21px;
    top: -2px;
    margin-right: -6px;
}

/* ---------- CTA ---------- */
.tcsi-cta {
    padding: 80px 0;
    background: #0f172a;
    text-align: center;
}

.tcsi-cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.tcsi-cta-desc {
    font-size: 1.0625rem;
    color: #94a3b8;
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.tcsi-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0f172a;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tcsi-cta-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    color: #0f172a;
    text-decoration: none;
}

.tcsi-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .tcsi-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tcsi-hero {
        padding: 56px 0 48px;
    }

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

    .tcsi-card-grid,
    .tcsi-card-grid--2,
    .tcsi-formula-features {
        grid-template-columns: 1fr;
    }

    .tcsi-card {
        padding: 24px 20px;
    }

    .tcsi-formula-body {
        padding: 24px 20px;
    }

    .tcsi-formula-display {
        padding: 20px 16px;
    }

    /* Table stacks on mobile */
    .tcsi-table thead {
        display: none;
    }

    .tcsi-table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 16px 20px;
        gap: 8px;
        border-bottom: 1px solid #e2e8f0;
    }

    .tcsi-table td {
        padding: 0;
    }

    .tcsi-table td:first-child {
        font-size: 0.875rem;
        color: #64748b;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .tcsi-table td:nth-child(2) {
        font-size: 0.875rem;
    }

    .tcsi-table td:nth-child(2)::before {
        content: 'ACSI: ';
        font-weight: 600;
        color: #94a3b8;
    }

    .tcsi-table td:nth-child(3)::before {
        content: 'TCSI: ';
        font-weight: 600;
        color: #0f172a;
    }

    .tcsi-cta {
        padding: 56px 0;
    }

    .tcsi-cta-btn {
        padding: 12px 24px;
    }
}
