/* ============================================
   TEAMBRIDG DESIGN SYSTEM — cms.css
   v0.2.0 — "Warm Authority" (Teal + Amber)
   ============================================ */

/* 1. DESIGN TOKENS */
:root {
    /* Color Palette */
    --tb-primary: #0d9488;
    --tb-primary-light: #14b8a6;
    --tb-primary-dark: #0f766e;
    --tb-secondary: #115e59;
    --tb-accent: #f59e0b;
    --tb-accent-light: #fbbf24;
    --tb-bg: #fafaf9;
    --tb-surface: #ffffff;
    --tb-text: #1c1917;
    --tb-muted: #78716c;
    --tb-border: #e7e5e4;
    --tb-border-light: #f5f5f4;
    --tb-success: #059669;
    --tb-error: #dc2626;

    /* Typography */
    --tb-heading-font: 'Plus Jakarta Sans', sans-serif;
    --tb-body-font: 'Inter', sans-serif;
    --tb-mono-font: 'JetBrains Mono', monospace;
    --tb-text-xs: 0.75rem;
    --tb-text-sm: 0.875rem;
    --tb-text-base: 1rem;
    --tb-text-lg: 1.125rem;
    --tb-text-xl: 1.25rem;
    --tb-text-2xl: 1.5rem;
    --tb-text-3xl: 2rem;
    --tb-text-4xl: 2.5rem;
    --tb-text-5xl: 3.5rem;

    /* Spacing */
    --tb-space-1: 0.25rem;
    --tb-space-2: 0.5rem;
    --tb-space-3: 0.75rem;
    --tb-space-4: 1rem;
    --tb-space-6: 1.5rem;
    --tb-space-8: 2rem;
    --tb-space-12: 3rem;
    --tb-space-16: 4rem;
    --tb-space-20: 5rem;
    --tb-space-24: 6rem;

    /* Layout */
    --tb-max-width: 1280px;
    --tb-content-width: 760px;

    /* Borders */
    --tb-radius: 12px;
    --tb-radius-sm: 8px;
    --tb-radius-lg: 16px;
    --tb-radius-xl: 24px;
    --tb-radius-full: 9999px;

    /* Shadows (warm tones) */
    --tb-shadow-sm: 0 1px 3px rgba(28,25,23,0.04);
    --tb-shadow: 0 4px 12px rgba(28,25,23,0.06);
    --tb-shadow-md: 0 8px 24px rgba(28,25,23,0.08);
    --tb-shadow-lg: 0 16px 48px rgba(28,25,23,0.12);

    /* Transitions */
    --tb-transition: 0.2s ease;
    --tb-transition-slow: 0.4s ease;
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; }
.cms-page {
    margin: 0;
    font-family: var(--tb-body-font);
    font-size: var(--tb-text-base);
    color: var(--tb-text);
    background: var(--tb-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.cms-page img { max-width: 100%; height: auto; }

/* 3. TYPOGRAPHY */
.cms-page h1, .cms-page h2, .cms-page h3, .cms-page h4, .cms-page h5 {
    font-family: var(--tb-heading-font);
    line-height: 1.2;
}

/* 4. LAYOUT */
.cms-block {
    padding: var(--tb-space-16) var(--tb-space-6);
    max-width: var(--tb-max-width);
    margin: 0 auto;
}
.section-heading {
    text-align: center;
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-3xl);
    font-weight: 700;
    margin-bottom: var(--tb-space-8);
    color: var(--tb-text);
}

/* 5. BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--tb-radius);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--tb-body-font);
    font-size: var(--tb-text-base);
    transition: all var(--tb-transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--tb-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(13,148,136,0.25);
}
.btn-primary:hover {
    background: var(--tb-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--tb-primary);
    border: 2px solid var(--tb-primary);
}
.btn-secondary:hover {
    background: var(--tb-primary);
    color: white;
}
.btn-accent {
    background: var(--tb-accent);
    color: var(--tb-text);
    box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
.btn-accent:hover {
    background: var(--tb-accent-light);
    transform: translateY(-1px);
}
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--tb-text-lg);
    border-radius: var(--tb-radius-lg);
}
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--tb-text-sm);
}

/* 6. CARDS */
.card {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: var(--tb-space-8);
    transition: all var(--tb-transition);
}
.card:hover {
    box-shadow: var(--tb-shadow-md);
    border-color: var(--tb-border-light);
}

/* 7. SITE HEADER */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--tb-max-width);
    margin: 0 auto;
    padding: 1.25rem var(--tb-space-6);
}
.site-logo {
    font-family: var(--tb-heading-font);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tb-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--tb-space-6);
}
.site-nav a {
    color: var(--tb-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--tb-text-sm);
    transition: color var(--tb-transition);
}
.site-nav a:hover { color: var(--tb-text); }
.site-nav a.nav-active { color: var(--tb-primary); font-weight: 600; }
.btn-login {
    background: var(--tb-primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--tb-radius);
    font-weight: 600;
    font-size: var(--tb-text-sm);
    text-decoration: none;
    transition: all var(--tb-transition);
    box-shadow: 0 2px 8px rgba(13,148,136,0.2);
}
.btn-login:hover {
    background: var(--tb-primary-dark);
    transform: translateY(-1px);
}

/* Mobile hamburger toggle */
.nav-toggle { display: none; }

/* 8. SITE FOOTER */
.site-footer {
    color: var(--tb-muted);
    font-size: var(--tb-text-sm);
    border-top: 1px solid var(--tb-border);
    margin-top: var(--tb-space-16);
    background: var(--tb-surface);
}
.footer-content {
    max-width: var(--tb-max-width);
    margin: 0 auto;
    padding: var(--tb-space-12) var(--tb-space-6) var(--tb-space-8);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tb-space-8);
    margin-bottom: var(--tb-space-8);
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-col h4 {
    font-family: var(--tb-heading-font);
    font-weight: 700;
    color: var(--tb-text);
    font-size: var(--tb-text-xs);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-col a {
    color: var(--tb-muted);
    text-decoration: none;
    transition: color var(--tb-transition);
    font-size: var(--tb-text-sm);
}
.footer-col a:hover { color: var(--tb-primary); }
.footer-bottom {
    text-align: center;
    padding-top: var(--tb-space-6);
    border-top: 1px solid var(--tb-border-light);
    color: var(--tb-muted);
}

/* ============================================
   CMS BLOCK TYPES
   ============================================ */

/* 9. HERO */
.hero-section {
    text-align: center;
    padding: var(--tb-space-24) var(--tb-space-8);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--tb-primary) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--tb-accent) 0%, transparent 70%);
    opacity: 0.04;
    border-radius: 50%;
    pointer-events: none;
}
.hero-section h1 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-5xl);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: var(--tb-space-6);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}
.hero-subtext {
    font-size: var(--tb-text-xl);
    color: var(--tb-muted);
    max-width: 620px;
    margin: 0 auto var(--tb-space-8);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: var(--tb-radius-full);
    background: rgba(13,148,136,0.08);
    color: var(--tb-primary);
    font-size: var(--tb-text-sm);
    font-weight: 600;
    margin-bottom: var(--tb-space-6);
    position: relative;
    z-index: 1;
}
.hero-buttons {
    display: flex;
    gap: var(--tb-space-4);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Split hero layout */
.hero-section.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tb-space-12);
    text-align: left;
    align-items: center;
}
.hero-split .hero-content { position: relative; z-index: 1; }
.hero-split .hero-visual { position: relative; z-index: 1; }
.hero-split .hero-visual svg { width: 100%; height: auto; }
.hero-split h1 { font-size: var(--tb-text-4xl); }
.hero-split .hero-subtext { margin: 0 0 var(--tb-space-8); }
.hero-split .hero-buttons { justify-content: flex-start; }

/* 10. FEATURE CARDS */
.feature-cards {
    display: grid;
    gap: var(--tb-space-8);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    padding: var(--tb-space-8);
    border-radius: var(--tb-radius-lg);
    border: 1px solid var(--tb-border);
    background: var(--tb-surface);
    transition: all var(--tb-transition);
}
.feature-card:hover {
    box-shadow: var(--tb-shadow-md);
    border-color: rgba(13,148,136,0.2);
    transform: translateY(-2px);
}
.feature-card h3 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-xl);
    font-weight: 700;
    margin: var(--tb-space-4) 0 var(--tb-space-2);
    color: var(--tb-text);
}
.feature-card p {
    color: var(--tb-muted);
    line-height: 1.65;
    font-size: var(--tb-text-sm);
}
.feature-icon {
    font-size: 1.75rem;
    color: var(--tb-primary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,148,136,0.08);
    border-radius: var(--tb-radius);
}
.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--tb-primary);
}

/* 11. IMAGE + TEXT */
.image-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tb-space-16);
    align-items: center;
}
.image-text-section.image-left .image-text-visual { order: -1; }
.image-text-content h2 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-3xl);
    font-weight: 700;
    margin-bottom: var(--tb-space-4);
}
.image-text-content p {
    color: var(--tb-muted);
    line-height: 1.7;
    margin-bottom: var(--tb-space-6);
    font-size: var(--tb-text-lg);
}
.image-text-visual svg { width: 100%; height: auto; }

/* 12. LOGO WALL */
.logo-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--tb-space-12);
    padding: var(--tb-space-8) 0;
}
.logo-wall-item {
    opacity: 0.5;
    transition: opacity var(--tb-transition);
    max-width: 120px;
}
.logo-wall-item:hover { opacity: 0.8; }
.logo-wall-item svg { width: 100%; height: auto; }

/* 13. STATS */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--tb-space-8);
    text-align: center;
}
.stat-value {
    font-size: var(--tb-text-4xl);
    font-weight: 800;
    color: var(--tb-primary);
    font-family: var(--tb-heading-font);
    letter-spacing: -0.02em;
}
.stat-label {
    color: var(--tb-muted);
    font-size: var(--tb-text-lg);
    margin-top: var(--tb-space-2);
}

/* 14. PRICING TABLE */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--tb-space-8);
    align-items: start;
}
.pricing-tier {
    padding: var(--tb-space-8);
    border-radius: var(--tb-radius-lg);
    border: 1px solid var(--tb-border);
    text-align: center;
    background: var(--tb-surface);
    transition: all var(--tb-transition);
}
.pricing-tier:hover {
    box-shadow: var(--tb-shadow);
}
.pricing-tier--highlighted {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 2px var(--tb-primary), var(--tb-shadow-md);
    position: relative;
    transform: scale(1.02);
}
.pricing-tier h3 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-2xl);
    font-weight: 700;
    margin-bottom: var(--tb-space-2);
}
.pricing-price {
    font-size: var(--tb-text-4xl);
    font-weight: 800;
    color: var(--tb-primary);
    font-family: var(--tb-heading-font);
}
.pricing-period {
    color: var(--tb-muted);
    margin-bottom: var(--tb-space-6);
    font-size: var(--tb-text-sm);
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--tb-space-6) 0;
    text-align: left;
}
.pricing-features li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--tb-border-light);
    font-size: var(--tb-text-sm);
    color: var(--tb-text);
}
.pricing-features li::before {
    content: "✓ ";
    color: var(--tb-success);
    font-weight: bold;
}

/* 15. TESTIMONIALS */
.testimonials-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--tb-space-8);
}
.testimonial-card {
    padding: var(--tb-space-8);
    border-radius: var(--tb-radius-lg);
    border: 1px solid var(--tb-border);
    background: var(--tb-surface);
    transition: all var(--tb-transition);
}
.testimonial-card:hover {
    box-shadow: var(--tb-shadow);
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--tb-text);
    line-height: 1.7;
    margin: 0 0 var(--tb-space-6);
    font-size: var(--tb-text-base);
}
.testimonial-card blockquote::before {
    content: "\201C";
    font-size: 2.5rem;
    color: var(--tb-primary);
    display: block;
    margin-bottom: var(--tb-space-2);
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-author {
    display: flex;
    flex-direction: column;
}
.testimonial-author strong { color: var(--tb-text); font-size: var(--tb-text-sm); }
.testimonial-author span { color: var(--tb-muted); font-size: var(--tb-text-xs); }

/* 16. CTA */
.cta-section {
    text-align: center;
    padding: var(--tb-space-16) var(--tb-space-8);
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-secondary));
    border-radius: var(--tb-radius-xl);
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-section h2 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-3xl);
    font-weight: 700;
    margin-bottom: var(--tb-space-4);
    position: relative;
    z-index: 1;
}
.cta-section p {
    opacity: 0.9;
    margin-bottom: var(--tb-space-8);
    font-size: var(--tb-text-lg);
    position: relative;
    z-index: 1;
}
.cta-section .btn-primary {
    background: white;
    color: var(--tb-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}
.cta-section .btn-primary:hover {
    background: var(--tb-bg);
    transform: translateY(-2px);
}

/* 17. FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--tb-border);
    padding: var(--tb-space-4) 0;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: var(--tb-text-lg);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--tb-space-2) 0;
    transition: color var(--tb-transition);
}
.faq-item summary:hover { color: var(--tb-primary); }
.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--tb-muted);
    transition: transform var(--tb-transition);
}
.faq-item[open] summary::after {
    content: "\2212";
    color: var(--tb-primary);
}
.faq-answer {
    padding: var(--tb-space-2) 0 var(--tb-space-4);
    color: var(--tb-muted);
    line-height: 1.7;
    font-size: var(--tb-text-base);
}

/* 18. COMPARISON TABLE */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--tb-text-sm);
}
.comparison-table th,
.comparison-table td {
    padding: var(--tb-space-4);
    text-align: left;
    border-bottom: 1px solid var(--tb-border);
}
.comparison-table th {
    font-family: var(--tb-heading-font);
    font-weight: 700;
    background: var(--tb-border-light);
    color: var(--tb-text);
}
.comparison-table th:first-child { border-radius: var(--tb-radius-sm) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--tb-radius-sm) 0 0; }
.comparison-table td { color: var(--tb-muted); }
.comparison-check { color: var(--tb-success); font-weight: 700; }
.comparison-cross { color: var(--tb-error); font-weight: 700; }

/* 19. TIMELINE */
.timeline-section {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.timeline-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tb-border);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    padding: var(--tb-space-6) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tb-space-8);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--tb-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.timeline-date {
    font-family: var(--tb-heading-font);
    font-weight: 700;
    color: var(--tb-primary);
    font-size: var(--tb-text-sm);
}
.timeline-content h3 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-lg);
    font-weight: 700;
    margin-bottom: var(--tb-space-2);
}
.timeline-content p {
    color: var(--tb-muted);
    line-height: 1.6;
    font-size: var(--tb-text-sm);
}

/* 20. STEPS */
.steps-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--tb-space-8);
    counter-reset: step;
}
.step-item {
    text-align: center;
    position: relative;
    padding: var(--tb-space-8) var(--tb-space-4);
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tb-primary);
    color: white;
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-xl);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--tb-space-4);
}
.step-item h3 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-lg);
    font-weight: 700;
    margin-bottom: var(--tb-space-2);
}
.step-item p {
    color: var(--tb-muted);
    line-height: 1.6;
    font-size: var(--tb-text-sm);
}

/* 21. BANNER */
.banner-block {
    text-align: center;
    padding: var(--tb-space-3) var(--tb-space-6);
    font-size: var(--tb-text-sm);
    font-weight: 500;
}
.banner-block.banner-info {
    background: rgba(13,148,136,0.08);
    color: var(--tb-primary-dark);
}
.banner-block.banner-promo {
    background: rgba(245,158,11,0.1);
    color: #92400e;
}
.banner-block.banner-warning {
    background: rgba(220,38,38,0.08);
    color: var(--tb-error);
}
.banner-block a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    margin-left: var(--tb-space-2);
}

/* 22. ICON LIST */
.icon-list {
    max-width: 800px;
    margin: 0 auto;
}
.icon-list-item {
    display: flex;
    gap: var(--tb-space-6);
    padding: var(--tb-space-6) 0;
    border-bottom: 1px solid var(--tb-border-light);
}
.icon-list-item:last-child { border-bottom: none; }
.icon-list-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,148,136,0.08);
    border-radius: var(--tb-radius);
    color: var(--tb-primary);
}
.icon-list-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--tb-primary);
}
.icon-list-content h3 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-lg);
    font-weight: 700;
    margin-bottom: var(--tb-space-1);
}
.icon-list-content p {
    color: var(--tb-muted);
    line-height: 1.6;
    font-size: var(--tb-text-sm);
}

/* 23. SOCIAL PROOF BAR */
.social-proof-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tb-space-12);
    padding: var(--tb-space-6);
    flex-wrap: wrap;
}
.social-proof-item {
    text-align: center;
}
.social-proof-value {
    font-family: var(--tb-heading-font);
    font-weight: 800;
    font-size: var(--tb-text-2xl);
    color: var(--tb-text);
}
.social-proof-label {
    color: var(--tb-muted);
    font-size: var(--tb-text-sm);
}
.social-proof-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--tb-space-2);
    padding: var(--tb-space-2) var(--tb-space-4);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-full);
    font-size: var(--tb-text-sm);
    font-weight: 600;
    color: var(--tb-muted);
}

/* 24. TWO COLUMN TEXT */
.two-column-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tb-space-12);
}
.two-column-text p {
    color: var(--tb-muted);
    line-height: 1.7;
}
.two-column-text a { color: var(--tb-primary); text-decoration: underline; }

/* 25. BLOG PREVIEW */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--tb-space-8);
}

/* 26. TEXT BLOCK */
.text-block {
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}
.text-block h2 { font-family: var(--tb-heading-font); font-size: var(--tb-text-3xl); margin: var(--tb-space-8) 0 var(--tb-space-4); }
.text-block h3 { font-family: var(--tb-heading-font); font-size: var(--tb-text-2xl); margin: var(--tb-space-6) 0 var(--tb-space-3); }
.text-block p { margin-bottom: var(--tb-space-4); color: var(--tb-muted); }
.text-block a { color: var(--tb-primary); text-decoration: underline; }

/* ============================================
   BLOG
   ============================================ */

/* 27. BLOG LIST */
.blog-page {
    max-width: var(--tb-max-width);
    margin: 0 auto;
    padding: 0 var(--tb-space-6);
}
.blog-header {
    text-align: center;
    padding: var(--tb-space-12) 0 var(--tb-space-8);
}
.blog-header h1 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-4xl);
    font-weight: 800;
    margin-bottom: var(--tb-space-2);
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-header p {
    color: var(--tb-muted);
    font-size: var(--tb-text-lg);
}
.blog-categories {
    display: flex;
    gap: var(--tb-space-3);
    justify-content: center;
    margin-bottom: var(--tb-space-8);
    flex-wrap: wrap;
}
.blog-cat-link {
    padding: 0.4rem 1rem;
    border-radius: var(--tb-radius-full);
    border: 1px solid var(--tb-border);
    color: var(--tb-muted);
    text-decoration: none;
    font-size: var(--tb-text-sm);
    font-weight: 500;
    transition: all var(--tb-transition);
}
.blog-cat-link:hover {
    border-color: var(--tb-primary);
    color: var(--tb-primary);
}
.blog-cat-link.active {
    background: var(--tb-primary);
    border-color: var(--tb-primary);
    color: white;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--tb-space-8);
    margin-bottom: var(--tb-space-12);
}
.blog-card {
    border-radius: var(--tb-radius-lg);
    border: 1px solid var(--tb-border);
    overflow: hidden;
    background: var(--tb-surface);
    transition: all var(--tb-transition);
}
.blog-card:hover {
    box-shadow: var(--tb-shadow-md);
    transform: translateY(-2px);
}
.blog-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--tb-border-light);
}
/* Blog featured image gradient placeholders */
.blog-featured-0 { background: linear-gradient(135deg, #0d9488 0%, #115e59 100%); }
.blog-featured-1 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.blog-featured-2 { background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%); }
.blog-featured-3 {
    background: #0d9488;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
                       radial-gradient(circle at 80% 20%, rgba(245,158,11,0.2) 0%, transparent 40%);
}
.blog-featured-4 { background: linear-gradient(135deg, #1c1917 0%, #292524 100%); }
.blog-featured-5 { background: linear-gradient(160deg, #14b8a6 0%, #f59e0b 100%); }
.blog-featured-6 { background: linear-gradient(135deg, #059669 0%, #0d9488 100%); }
.blog-featured-7 {
    background: #115e59;
    background-image: radial-gradient(circle at 70% 70%, rgba(245,158,11,0.15) 0%, transparent 50%);
}
.blog-featured-8 { background: linear-gradient(135deg, #78716c 0%, #57534e 100%); }
.blog-featured-9 { background: linear-gradient(150deg, #0d9488 0%, #f59e0b 50%, #115e59 100%); }
.blog-card-body {
    padding: var(--tb-space-6);
}
.blog-card-category {
    display: inline-block;
    font-size: var(--tb-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tb-primary);
    text-decoration: none;
    margin-bottom: var(--tb-space-2);
}
.blog-card-body h2 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-xl);
    font-weight: 700;
    margin-bottom: var(--tb-space-2);
    line-height: 1.3;
}
.blog-card-body h2 a {
    color: var(--tb-text);
    text-decoration: none;
    transition: color var(--tb-transition);
}
.blog-card-body h2 a:hover { color: var(--tb-primary); }
.blog-card-excerpt {
    color: var(--tb-muted);
    line-height: 1.6;
    font-size: var(--tb-text-sm);
    margin-bottom: var(--tb-space-4);
}
.blog-card-meta {
    color: var(--tb-muted);
    font-size: var(--tb-text-xs);
    display: flex;
    align-items: center;
    gap: var(--tb-space-2);
}
.meta-sep { opacity: 0.4; }
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tb-space-6);
    padding: var(--tb-space-8) 0;
}
.pagination-info {
    color: var(--tb-muted);
    font-size: var(--tb-text-sm);
}
.blog-empty {
    text-align: center;
    padding: var(--tb-space-16) var(--tb-space-8);
    color: var(--tb-muted);
}
.blog-empty h2 {
    font-family: var(--tb-heading-font);
    color: var(--tb-text);
    margin-bottom: var(--tb-space-2);
}

/* 28. BLOG ARTICLE */
.blog-article {
    max-width: var(--tb-content-width);
    margin: 0 auto;
    padding: var(--tb-space-12) var(--tb-space-6);
}
.blog-article-header {
    margin-bottom: var(--tb-space-8);
}
.blog-article-header h1 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-4xl);
    font-weight: 800;
    line-height: 1.15;
    margin: var(--tb-space-2) 0 var(--tb-space-4);
    letter-spacing: -0.02em;
}
.blog-article-meta {
    color: var(--tb-muted);
    font-size: var(--tb-text-sm);
    display: flex;
    align-items: center;
    gap: var(--tb-space-2);
}
.blog-featured-image {
    margin-bottom: var(--tb-space-8);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
}
.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-article-content {
    line-height: 1.8;
    font-size: var(--tb-text-lg);
    color: var(--tb-text);
}
.blog-article-content h2 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-2xl);
    font-weight: 700;
    margin: var(--tb-space-12) 0 var(--tb-space-4);
    color: var(--tb-text);
}
.blog-article-content h3 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-text-xl);
    font-weight: 700;
    margin: var(--tb-space-8) 0 var(--tb-space-3);
}
.blog-article-content p { margin-bottom: var(--tb-space-6); }
.blog-article-content a { color: var(--tb-primary); text-decoration: underline; }
.blog-article-content ul, .blog-article-content ol {
    margin-bottom: var(--tb-space-6);
    padding-left: var(--tb-space-6);
}
.blog-article-content li { margin-bottom: var(--tb-space-2); }
.blog-article-content code {
    background: var(--tb-border-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: var(--tb-mono-font);
}
.blog-article-content strong { font-weight: 700; }
.blog-article-content blockquote {
    border-left: 4px solid var(--tb-primary);
    padding: var(--tb-space-4) var(--tb-space-6);
    margin: var(--tb-space-6) 0;
    background: var(--tb-border-light);
    border-radius: 0 var(--tb-radius-sm) var(--tb-radius-sm) 0;
    font-style: italic;
    color: var(--tb-muted);
}

/* Blog TLDR & CTA boxes (embedded in post content) */
.blog-tldr {
    background: rgba(13,148,136,0.06);
    border-left: 4px solid var(--tb-accent);
    padding: var(--tb-space-4) var(--tb-space-6);
    margin-bottom: var(--tb-space-8);
    border-radius: 0 var(--tb-radius-sm) var(--tb-radius-sm) 0;
    font-size: var(--tb-text-lg);
    line-height: 1.6;
}
.blog-cta-box {
    background: rgba(5,150,105,0.06);
    border: 1px solid rgba(5,150,105,0.2);
    padding: var(--tb-space-6);
    border-radius: var(--tb-radius);
    text-align: center;
    margin-top: var(--tb-space-8);
}
.blog-cta-box a {
    color: var(--tb-primary) !important;
    font-weight: 700;
}
/* Callout boxes in blog content */
.callout-tip {
    background: rgba(245,158,11,0.08);
    border-left: 4px solid var(--tb-accent);
    padding: var(--tb-space-4) var(--tb-space-6);
    margin: var(--tb-space-6) 0;
    border-radius: 0 var(--tb-radius-sm) var(--tb-radius-sm) 0;
}
.callout-info {
    background: rgba(13,148,136,0.06);
    border-left: 4px solid var(--tb-primary);
    padding: var(--tb-space-4) var(--tb-space-6);
    margin: var(--tb-space-6) 0;
    border-radius: 0 var(--tb-radius-sm) var(--tb-radius-sm) 0;
}

.blog-tags {
    display: flex;
    gap: var(--tb-space-2);
    flex-wrap: wrap;
    margin-top: var(--tb-space-8);
    padding-top: var(--tb-space-6);
    border-top: 1px solid var(--tb-border);
}
.blog-tag {
    padding: 0.25rem 0.75rem;
    border-radius: var(--tb-radius-full);
    background: var(--tb-border-light);
    color: var(--tb-muted);
    font-size: var(--tb-text-xs);
    font-weight: 500;
    transition: all var(--tb-transition);
}
.blog-tag:hover {
    background: rgba(13,148,136,0.08);
    color: var(--tb-primary);
}
.blog-back {
    max-width: var(--tb-content-width);
    margin: 0 auto;
    padding: 0 var(--tb-space-6) var(--tb-space-12);
}

/* 29. LOADING & 404 */
.cms-loading, .cms-404 {
    text-align: center;
    padding: var(--tb-space-24) var(--tb-space-8);
}
.cms-404 h1 {
    font-size: var(--tb-text-5xl);
    color: var(--tb-muted);
}

/* 30. ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* 31. TABLET (1024px) */
@media (max-width: 1024px) {
    .hero-section.hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero-split .hero-buttons { justify-content: center; }
    .hero-split .hero-visual { max-width: 500px; margin: 0 auto; }
    .image-text-section { grid-template-columns: 1fr; }
    .image-text-section.image-left .image-text-visual { order: 0; }
    .two-column-text { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .timeline-section::before { left: 24px; }
    .timeline-item { grid-template-columns: 1fr; padding-left: 60px; }
    .timeline-item::before { left: 24px; }
}

/* 32. MOBILE (768px) */
@media (max-width: 768px) {
    .hero-section h1 { font-size: var(--tb-text-3xl); }
    .hero-split h1 { font-size: var(--tb-text-3xl); }
    .hero-section { padding: var(--tb-space-12) var(--tb-space-4); }
    .hero-subtext { font-size: var(--tb-text-base); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .pricing-table { grid-template-columns: 1fr; }
    .pricing-tier--highlighted { transform: none; }
    .cms-block { padding: var(--tb-space-8) var(--tb-space-4); }
    .site-nav { gap: var(--tb-space-3); font-size: var(--tb-text-xs); }
    .footer-links { grid-template-columns: 1fr; gap: var(--tb-space-6); }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-article-header h1 { font-size: var(--tb-text-2xl); }
    .blog-article { padding: var(--tb-space-8) var(--tb-space-4); }
    .blog-article-content { font-size: var(--tb-text-base); }
    .social-proof-bar { gap: var(--tb-space-6); }
    .steps-section { grid-template-columns: 1fr; }
    .comparison-table { font-size: var(--tb-text-xs); }
    .section-heading { font-size: var(--tb-text-2xl); }
    .stats-section { grid-template-columns: repeat(2, 1fr); }
}

/* 33. SMALL MOBILE (480px) */
@media (max-width: 480px) {
    .hero-section h1 { font-size: var(--tb-text-2xl); }
    .hero-buttons { flex-direction: column; align-items: center; }
    .blog-header h1 { font-size: var(--tb-text-2xl); }
    .site-header { flex-direction: column; gap: var(--tb-space-4); }
    .stat-value { font-size: var(--tb-text-3xl); }
}
