/* ============================================
   PAGE TITLE — hide Astra's H1 on pages
   where we control H1 directly in content
   ============================================ */
.cf-page-about .entry-title,
.cf-page-bic .entry-title,
.cf-page-best-in-class .entry-title,
.cf-page-services .entry-title,
.cf-page-work .entry-title,
.cf-page-platform .entry-title,
.cf-page-contact .entry-title,
.cf-page-privacy-policy .entry-title,
.cf-page-terms-of-use .entry-title,
.cf-page-cookie-policy .entry-title {
    display: none !important;
}

/* ============================================
   TECH ACCENT PALETTE
   ============================================ */
:root {
    --cf-accent:       #00D9C5;
    --cf-accent-bright:#00EFFF;
    --cf-accent-blue:  #2C6EFF;
    --cf-accent-glow:  rgba(0, 217, 197, 0.15);
    --cf-accent-dim:   rgba(0, 217, 197, 0.2);
}

/* ============================================
   GLOBAL
   ============================================ */
html, body {
    background-color: #0D0D0D !important;
    color: #F8F8FF !important;
}

.site, .site-header, .site-content, .site-footer,
.ast-container, .ast-separate-container,
.main-header-bar, .ast-primary-header-bar {
    background-color: #0D0D0D !important;
    color: #F8F8FF !important;
}

/* ============================================
   TYPOGRAPHY — Inter
   Pesos asignados por rol semántico:
   800 ExtraBold → H1 hero
   700 Bold       → H2 secciones
   600 SemiBold   → H3, botones, nav
   500 Medium     → H4-H6, etiquetas
   400 Regular    → body, párrafos
   300 Light      → citas, pie, captions
   ============================================ */
body,
.ast-single-post .entry-content,
.entry-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #F8F8FF !important;
    line-height: 1.15;
}

h1, .entry-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2, .entry-content h2 {
    font-size: 2.369rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3, .entry-content h3 {
    font-size: 1.777rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4, .entry-content h4 {
    font-size: 1.333rem;
    font-weight: 600;
}

h5, .entry-content h5 {
    font-size: 1.000rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

h6, .entry-content h6 {
    font-size: 0.750rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

p, li, span, label {
    color: #F8F8FF !important;
    font-weight: 400;
}

a {
    font-family: 'Inter', sans-serif;
    color: #F8F8FF;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation a,
.main-header-menu .menu-item a,
.ast-header-custom-item a,
#site-navigation a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: #F8F8FF !important;
}

.main-header-bar {
    background-color: transparent !important;
    border-bottom: none !important;
}

/* ─── STICKY GLASSMORPHISM HEADER ─── */

/* Desktop header — fixed + glass */
#masthead {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(13, 13, 13, 0.55) !important;
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border-bottom: 1px solid rgba(248, 248, 255, 0.07) !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Inner bars transparent so backdrop-filter on #masthead shows through */
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-main-header-wrap,
#masthead #ast-desktop-header,
#masthead .ast-container,
#masthead .ast-separate-container,
#masthead .site-primary-header-wrap {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Scrolled state — more opaque */
#masthead.cf-scrolled {
    background: rgba(13, 13, 13, 0.92) !important;
    border-bottom-color: rgba(248, 248, 255, 0.14) !important;
}

/* Mobile header — same treatment */
#ast-mobile-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(13, 13, 13, 0.55) !important;
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border-bottom: 1px solid rgba(248, 248, 255, 0.07) !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}
#ast-mobile-header .main-header-bar,
#ast-mobile-header .ast-primary-header-bar {
    background: transparent !important;
    border-bottom: none !important;
}
#ast-mobile-header.cf-scrolled {
    background: rgba(13, 13, 13, 0.92) !important;
    border-bottom-color: rgba(248, 248, 255, 0.14) !important;
}

/* Push page content below fixed header — skip BIC (single-screen page) */
body:not(.cf-page-bic):not(.cf-page-best-in-class) {
    padding-top: 80px !important;
}
@media (max-width: 768px) {
    body:not(.cf-page-bic):not(.cf-page-best-in-class) {
        padding-top: 60px !important;
    }
}

/* Logo */
/* Hide site title text — logo image is used instead */
.wp-custom-logo .ast-site-title-wrap {
    display: none !important;
}

.site-title a,
.ast-site-name-title,
.ast-header-logo-target .site-title,
.ast-header-logo-target .site-title a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: #F8F8FF !important;
    text-decoration: none;
}

/* ============================================
   SECTIONS
   ============================================ */
.cf-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero */
.cf-hero {
    padding-top: 140px;
    padding-bottom: 120px;
}

.cf-hero .wp-block-heading {
    font-size: clamp(2.2rem, 5.5vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 820px;
}

.cf-hero__body {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 580px;
    margin: 28px 0 44px;
    opacity: 0.75;
}

/* Trust bar — Light, uppercase, spaced */
.cf-trust {
    border-top: 1px solid rgba(0, 217, 197, 0.35);
    border-bottom: 1px solid rgba(0, 217, 197, 0.35);
    padding: 48px 40px;
}

.cf-trust__tagline,
.cf-trust__stats {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    opacity: 0.75;
    line-height: 1.7;
    margin: 6px 0 !important;
}

/* Problem statement */
.cf-problem {
    padding-bottom: 60px !important;
}

.cf-principles {
    padding-top: 60px !important;
}

.cf-problem .wp-block-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.369rem);
    font-weight: 700;
    margin-bottom: 28px;
}

.cf-problem p {
    font-size: 1rem;
    font-weight: 400;
    max-width: 680px;
    opacity: 0.8;
    line-height: 1.8;
}

/* Services grid */
.cf-services .wp-block-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.369rem);
    font-weight: 700;
}

.cf-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin: 48px 0;
    border: none;
}

.cf-service-item {
    padding: 36px;
    border-right: none;
}

.cf-service-item:last-child {
    border-right: none;
}

.cf-service-item h3 {
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.cf-service-item p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.7;
}

/* Differentiator */
.cf-differentiator .wp-block-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.369rem);
    font-weight: 700;
    margin-bottom: 32px;
}

.cf-differentiator > p {
    max-width: 760px;
    opacity: 0.75;
    line-height: 1.7;
}

.cf-compare-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cf-compare-table table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    border: none;
    margin: 40px 0;
    font-size: 0.9rem;
}

.cf-compare-table thead th,
.cf-compare-table tbody td {
    border-left: none !important;
    border-right: none !important;
    color: #0D0D0D !important;
    font-weight: 400;
    opacity: 1;
}

.cf-compare-table thead {
    border-bottom: 1px solid rgba(13, 13, 13, 0.12) !important;
}

.cf-compare-table thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.55;
    padding: 0 24px 16px 0;
    border-top: none !important;
    border-bottom: none !important;
}

.cf-compare-table thead th:first-child {
    width: 130px;
}

.cf-compare-table tbody td {
    padding: 16px 24px 16px 0;
    border-top: none !important;
    border-bottom: 1px solid rgba(13, 13, 13, 0.08) !important;
    vertical-align: top;
    line-height: 1.6;
    opacity: 0.8;
}

.cf-compare-table tbody td:first-child {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.45;
    white-space: nowrap;
}

.cf-dont-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 0 !important;
}

.cf-dont-list li {
    padding: 14px 0 14px 28px !important;
    border-bottom: 1px solid rgba(0, 217, 197, 0.25) !important;
    font-size: 0.95rem !important;
    opacity: 0.75;
    position: relative;
}

.cf-dont-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--cf-accent);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 1;
}

.cf-dont-list li:first-child {
    border-top: 1px solid rgba(0, 217, 197, 0.25) !important;
}

/* "We don't" paragraph checklist — home differentiator section */
.cf-differentiator .cf-compare-table ~ .wp-block-paragraph {
    padding: 6px 0 6px 28px !important;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.75;
    margin: 0 !important;
    border: none !important;
}

.cf-differentiator .cf-compare-table + .wp-block-paragraph {
    margin-top: 16px !important;
}

.cf-differentiator .cf-compare-table ~ .wp-block-paragraph::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--cf-accent);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Work cases (homepage) */
.cf-work-cases .wp-block-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.369rem);
    font-weight: 700;
    margin-bottom: 56px;
}

.cf-case-item {
    padding: 36px 0;
    border-bottom: 1px solid rgba(248, 248, 255, 0.08);
}

.cf-case-item:first-of-type {
    border-top: 1px solid rgba(248, 248, 255, 0.08);
}

.cf-case-item h3 {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    opacity: 0.45 !important;
    margin-bottom: 12px !important;
}

.cf-case-item p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    opacity: 0.75 !important;
    max-width: 820px;
}

.cf-work-cases .wp-block-buttons {
    margin-top: 48px;
}

/* Platform */
.cf-platform .wp-block-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.369rem);
    font-weight: 700;
}

.cf-platform .wp-block-list {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.cf-platform .wp-block-list li {
    font-size: 1rem;
    font-weight: 400;
    padding: 12px 0 12px 28px;
    position: relative;
    border-bottom: 1px solid rgba(248, 248, 255, 0.08);
    opacity: 0.85;
}

.cf-platform .wp-block-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.4;
}

.cf-platform__impact {
    font-size: 0.95rem;
    font-weight: 400;
    background: rgba(248, 248, 255, 0.04);
    border-left: 2px solid rgba(248, 248, 255, 0.4);
    padding: 20px 24px;
    margin: 32px 0;
    line-height: 1.8;
}

/* Testimonials — body in Light */
.cf-testimonials .wp-block-heading {
    font-size: clamp(1.5rem, 2.8vw, 2.369rem);
    font-weight: 700;
}

.cf-testimonial {
    border-left: 2px solid rgba(248, 248, 255, 0.2) !important;
    padding: 24px 32px !important;
    margin: 32px 0 !important;
    background: rgba(248, 248, 255, 0.02);
}

.cf-testimonial p {
    font-size: 1.05rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.75;
    opacity: 0.85;
}

.cf-testimonial cite {
    font-size: 0.82rem;
    font-weight: 500;
    font-style: normal;
    color: #EDEEEB !important;
    opacity: 0.75;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Lead magnet */
.cf-lead-magnet {
    background: rgba(248, 248, 255, 0.03);
    border: 1px solid rgba(248, 248, 255, 0.1);
    border-radius: 4px;
    text-align: center;
    padding: 80px 40px;
}

.cf-lead-magnet .wp-block-heading {
    font-size: 2.369rem;
    font-weight: 700;
}

.cf-lead-magnet p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

/* Closing CTA */
.cf-closing-cta {
    text-align: center;
    padding: 120px 40px;
}

.cf-closing-cta .wp-block-heading {
    font-size: clamp(1.6rem, 3vw, 2.369rem);
    font-weight: 700;
    margin: 0 auto 24px;
}

.cf-closing-cta p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
    margin: 0 auto 40px;
}

/* ============================================
   BUTTONS — SemiBold
   ============================================ */
.wp-block-button__link,
.wp-element-button {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    background-color: var(--cf-accent) !important;
    color: #0D0D0D !important;
    border: 2px solid var(--cf-accent) !important;
    padding: 14px 32px !important;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wp-block-button__link:hover {
    background-color: transparent !important;
    color: var(--cf-accent) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--cf-accent) !important;
    border: 2px solid var(--cf-accent) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--cf-accent) !important;
    color: #0D0D0D !important;
}

/* ============================================
   FOOTER — Light for secondary text
   ============================================ */
.cf-footer {
    background-color: #0D0D0D;
    border-top: 1px solid rgba(248, 248, 255, 0.1);
    padding: 72px 40px 40px;
}

.cf-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.cf-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(248, 248, 255, 0.08);
}

@media (max-width: 768px) {
    .cf-footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.cf-footer__logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: #F8F8FF !important;
}

.cf-footer__desc {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.75;
    opacity: 0.55;
    margin: 0;
    max-width: 340px;
    color: #F8F8FF !important;
}

.cf-footer__heading {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.4;
    margin: 0 0 20px !important;
    color: #F8F8FF !important;
}

.cf-footer__services p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 2;
    opacity: 0.6;
    color: #F8F8FF !important;
}

.cf-footer__contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cf-footer__contact ul li {
    margin-bottom: 10px;
    font-size: 0.88rem;
    font-weight: 300;
    opacity: 0.6;
    color: #F8F8FF !important;
}

.cf-footer__contact a {
    color: #F8F8FF !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.cf-footer__contact a:hover {
    opacity: 1;
}

.cf-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    gap: 24px;
    flex-wrap: wrap;
}

.cf-footer__copy {
    font-size: 0.78rem;
    font-weight: 300;
    color: #EDEEEB !important;
    opacity: 0.55;
    margin: 0;
}

.cf-footer__legal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cf-footer__legal a {
    font-size: 0.78rem;
    font-weight: 400;
    color: #EDEEEB !important;
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.cf-footer__legal a:hover {
    opacity: 1;
}

.cf-footer__legal span {
    color: #EDEEEB !important;
    opacity: 0.3;
}

/* Hide Astra default footer */
.ast-small-footer,
.footer-widget-area {
    display: none !important;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* Hero */
.cf-about-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 900px;
    line-height: 1.15;
}

/* Company Story */
.cf-company-story > .wp-block-heading {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.45;
    margin-bottom: 48px;
}

.cf-story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid rgba(248, 248, 255, 0.1);
}

.cf-story-item {
    padding: 36px 32px;
    border-right: 1px solid rgba(248, 248, 255, 0.1);
}

.cf-story-item:last-child {
    border-right: none;
}

.cf-story-year {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.45;
    margin-bottom: 16px !important;
}

.cf-story-item > p:not(.cf-story-year) {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.75;
    opacity: 0.8;
}

/* Leadership */
.cf-leadership > .wp-block-heading {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.45;
    margin-bottom: 40px;
}

.cf-leader-card {
    border: 1px solid rgba(248, 248, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.cf-leader-header {
    padding: 36px 40px;
    border-bottom: 1px solid rgba(248, 248, 255, 0.1);
    background: rgba(248, 248, 255, 0.03);
}

.cf-leader-header h3 {
    font-size: 1.777rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.cf-leader-title {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #EDEEEB !important;
    opacity: 0.6;
    margin: 0 !important;
    letter-spacing: 0.04em;
}

.cf-leader-body {
    padding: 0 40px;
}

.cf-leader-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(248, 248, 255, 0.07);
    align-items: baseline;
}

.cf-leader-row:last-child {
    border-bottom: none;
}

.cf-leader-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.4;
    margin: 0 !important;
    padding-top: 2px;
}

.cf-leader-value {
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    opacity: 0.85;
    margin: 0 !important;
}

.cf-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
}

.cf-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border: 1px solid rgba(248, 248, 255, 0.2);
    border-radius: 2px;
    color: #EDEEEB !important;
    opacity: 0.75;
    white-space: nowrap;
}

/* Company intro — flowing paragraphs */
.cf-company-body {
    max-width: 760px;
}
.cf-company-body p {
    font-size: 0.97rem !important;
    line-height: 1.8 !important;
    opacity: 0.82;
    margin-bottom: 20px !important;
}
.cf-company-body p:last-child {
    margin-bottom: 0 !important;
}

/* Leader bio — flowing paragraphs */
.cf-leader-bio {
    padding: 32px 0;
    border-bottom: 1px solid rgba(248, 248, 255, 0.07);
}
.cf-leader-bio p {
    font-size: 0.92rem !important;
    line-height: 1.75 !important;
    opacity: 0.85;
    margin-bottom: 16px !important;
}
.cf-leader-bio p:last-child {
    margin-bottom: 0 !important;
}

/* Principles / How We Work */
.cf-principles > .wp-block-heading {
    font-size: clamp(1.5rem, 3.5vw, 2.369rem);
    font-weight: 700;
    margin-bottom: 56px;
}

.cf-principles > .cf-principles-grid {
    grid-column: 1 / -1;
    margin-top: 2.5rem;
}

.cf-principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 3.5rem;
}

.cf-principle-item {
    padding: 1.25rem 0 2.5rem;
    border-top: 2px solid rgba(0, 217, 197, 0.45);
    margin-top: 0 !important;
}

.cf-principle-item h3 {
    font-size: 1.333rem !important;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: #F8F8FF;
}

.cf-principle-item p {
    font-size: 0.875rem !important;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(248, 248, 255, 0.6) !important;
    opacity: 1;
    margin: 0 !important;
}

/* ============================================
   SERVICES PAGE
   ============================================ */

/* H1 intro */
.cf-services-intro h1 {
    font-size: clamp(2.2rem, 4vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 820px;
    margin-bottom: 24px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Lead paragraph below H1 */
.cf-services-intro {
    padding-bottom: 0;
    border-bottom: 1px solid rgba(0, 217, 197, 0.35);
}

.cf-services-lead {
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    font-weight: 300 !important;
    line-height: 1.65 !important;
    max-width: 820px;
    opacity: 0.65;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Service group section */
.cf-service-group {
    padding-top: 72px;
    padding-bottom: 72px;
    border-bottom: 1px solid rgba(0, 217, 197, 0.35);
}

.cf-service-group--last {
    border-bottom: none;
}

.cf-service-group__header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 48px;
}

.cf-group-num {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em;
    color: #EDEEEB !important;
    opacity: 0.4;
    white-space: nowrap;
    margin: 0 !important;
    padding-top: 4px;
    min-width: 48px;
}

.cf-service-group__header h2 {
    font-size: clamp(1.4rem, 2.8vw, 2.369rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 !important;
}

/* Service cards grid — 2 columns */
.cf-service-group__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 3.5rem;
    margin-left: 72px;
    align-items: start;
}

/* 3-column variant for last group */
.cf-service-group__grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.cf-service-card {
    padding: 36px 0;
    margin-top: 0 !important;
}

.cf-service-card h3 {
    font-size: 1.333rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    line-height: 1.3;
}

.cf-service-card p {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #EDEEEB !important;
    opacity: 0.7;
    margin: 0 !important;
}

/* ============================================
   PLATFORM PAGE
   ============================================ */

/* Hero */
.cf-platform-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 820px;
    margin-bottom: 28px;
}

.cf-platform-hero__body {
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    max-width: 600px;
    opacity: 0.75;
    margin-bottom: 40px !important;
}

/* Problem */
.cf-platform-problem {
    border-top: 1px solid rgba(248, 248, 255, 0.08);
    border-bottom: 1px solid rgba(248, 248, 255, 0.08);
}

.cf-platform-problem h2 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.45;
    margin-bottom: 24px;
}

.cf-platform-problem p {
    font-size: 1.1rem !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
    max-width: 800px;
    opacity: 0.8;
}

/* Agents section */
.cf-platform-agents > .wp-block-heading {
    font-size: clamp(1.5rem, 3.5vw, 2.369rem);
    font-weight: 700;
    margin-bottom: 48px;
}

/* Five AI Agents — pyramid grid (2 top, 3 bottom) */
.cf-agents-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0 2.5rem;
    margin-bottom: 32px;
    align-items: start;
}

/* Row 1: 2 wider cards (span 3 of 6 cols = 50% each) */
.cf-agents-grid .cf-agent-card:nth-child(1),
.cf-agents-grid .cf-agent-card:nth-child(2) { grid-column: span 3; }

/* Row 2: 3 narrower cards (span 2 of 6 cols = 33% each) */
.cf-agents-grid .cf-agent-card:nth-child(3),
.cf-agents-grid .cf-agent-card:nth-child(4),
.cf-agents-grid .cf-agent-card:nth-child(5) { grid-column: span 2; }

/* Row 2: extra top spacing to separate from row 1 */
.cf-agents-grid .cf-agent-card:nth-child(n+3) { padding-top: 2.5rem; }

.cf-agents-grid .cf-agent-card {
    min-width: 0;
    padding: 36px 0;
    border-top: none !important;
    margin-top: 0 !important;
}

.cf-agents-grid .cf-agent-card h3 {
    font-size: 1.333rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    line-height: 1.3;
    color: #EDEEEB;
}

.cf-agents-grid .cf-agent-card p {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #EDEEEB !important;
    opacity: 0.7;
    margin: 0 !important;
}

/* Privacy guarantee */
.cf-agent-privacy {
    border: 1px solid rgba(248, 248, 255, 0.08);
    padding: 20px 28px;
    background: rgba(248, 248, 255, 0.02);
}

.cf-agent-privacy .wp-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.cf-agent-privacy .wp-block-list li {
    font-size: 0.750rem;
    font-weight: 500;
    color: #EDEEEB !important;
    opacity: 0.55;
    padding-left: 16px;
    position: relative;
}

.cf-agent-privacy .wp-block-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    opacity: 0.5;
}

/* White Paper section */
.cf-whitepaper {
    border-top: 1px solid rgba(0, 217, 197, 0.35);
}

.cf-whitepaper > .wp-block-heading {
    font-size: clamp(1.6rem, 3vw, 2.369rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.cf-whitepaper__intro {
    font-size: 1rem !important;
    font-weight: 300 !important;
    opacity: 0.65;
    max-width: 720px;
    line-height: 1.7 !important;
    margin-bottom: 56px !important;
}

.cf-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 3rem;
    margin-bottom: 40px;
    align-items: start;
}

.cf-case-mini {
    padding: 28px 0;
    border-top: 1px solid rgba(0, 217, 197, 0.35);
    margin-top: 0 !important;
}

/* First row: no top border */
.cf-case-mini:nth-child(-n+3) {
    border-top: none;
}

.cf-case-mini__meta {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.4;
    margin-bottom: 10px !important;
}

.cf-case-mini h3 {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.005em;
}

.cf-case-mini__result {
    font-size: 0.78rem !important;
    font-weight: 300 !important;
    color: #EDEEEB !important;
    opacity: 0.6;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.cf-whitepaper__disclaimer {
    font-size: 0.75rem !important;
    font-weight: 300 !important;
    color: #EDEEEB !important;
    opacity: 0.35;
    text-align: center;
    margin-bottom: 32px !important;
}

/* ============================================
   WORK / CASE STUDIES PAGE
   ============================================ */

.cf-work-intro h1 {
    font-size: clamp(2.2rem, 4vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 860px;
    line-height: 1.12;
}

.cf-case {
    padding-top: 72px;
    padding-bottom: 72px;
    border-bottom: 1px solid rgba(0, 217, 197, 0.35);
}

.cf-case:last-child {
    border-bottom: none;
}

.cf-case__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cf-case__num {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em;
    color: #EDEEEB !important;
    opacity: 0.4;
    margin: 0 !important;
}

.cf-case__tags {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    color: #EDEEEB !important;
    opacity: 0.55;
    margin: 0 !important;
}

.cf-case h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.369rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    max-width: 760px;
}

.cf-case__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 3rem;
    align-items: start;
}

.cf-case__block {
    padding: 32px 0;
    margin-top: 0 !important;
}

.cf-case__block h3 {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.45;
    margin-bottom: 14px !important;
}

.cf-case__block p {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #EDEEEB !important;
    opacity: 0.75;
    margin: 0 !important;
}

/* ============================================
   BIC PAGE
   ============================================ */
.cf-bic-hero {
    padding-bottom: 0;
}

.cf-bic-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 860px;
    line-height: 1.1;
}

.cf-bic-content {
    padding-top: 60px;
}

.cf-bic-grid.wp-block-columns {
    gap: 80px;
    align-items: flex-start;
}

.cf-bic-left > p:first-child {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.75;
    opacity: 0.8;
    margin-bottom: 40px;
}

.cf-bic-left h2 {
    font-size: 2.369rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 20px;
}

.cf-bic-left .wp-block-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.cf-bic-left .wp-block-list li {
    padding: 14px 0 14px 28px;
    position: relative;
    border-bottom: 1px solid rgba(248, 248, 255, 0.08);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.85;
    color: #F8F8FF !important;
}

.cf-bic-left .wp-block-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.4;
}

.cf-bic-left .wp-block-list li:first-child {
    border-top: 1px solid rgba(248, 248, 255, 0.08);
}

.cf-bic-cta-text {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 40px !important;
    opacity: 1 !important;
}

/* Form */
.cf-bic-right {
    position: sticky;
    top: 40px;
}

.cf-form-wrap {
    background: rgba(248, 248, 255, 0.04);
    border: 1px solid rgba(248, 248, 255, 0.12);
    border-radius: 4px;
    padding: 40px;
}

.cf-form__field {
    margin-bottom: 20px;
}

.cf-form__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.7;
    margin-bottom: 8px;
}

.cf-form__input {
    width: 100%;
    background: rgba(248, 248, 255, 0.06);
    border: 1px solid rgba(248, 248, 255, 0.18);
    border-radius: 2px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #F8F8FF;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cf-form__input::placeholder {
    color: rgba(248, 248, 255, 0.3);
}

.cf-form__input:focus {
    border-color: rgba(248, 248, 255, 0.5);
    background: rgba(248, 248, 255, 0.08);
}

.cf-form__submit {
    width: 100%;
    margin-top: 8px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.cf-form__disclaimer {
    font-size: 0.75rem !important;
    font-weight: 300 !important;
    color: #EDEEEB !important;
    opacity: 0.45 !important;
    margin-top: 16px !important;
    line-height: 1.5 !important;
    text-align: center;
}

.cf-form__error {
    font-size: 0.85rem;
    color: #ff6b6b !important;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 107, 107, 0.08);
    border-left: 2px solid #ff6b6b;
    border-radius: 2px;
}

.cf-form--success {
    padding: 40px;
    border: 1px solid rgba(248, 248, 255, 0.12);
    border-radius: 4px;
    text-align: center;
}

.cf-form__success-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    opacity: 1 !important;
}

.cf-form__success-body {
    font-size: 0.95rem !important;
    opacity: 0.7 !important;
    line-height: 1.7 !important;
}

/* ============================================
   BIC — STANDALONE LANDING PAGE
   EN: .cf-page-bic  |  ES: .cf-page-best-in-class
   No nav · No footer · Single screen
   ============================================ */

/* Hide navigation, mobile header, footer */
.cf-page-bic .ast-builder-menu-1,
.cf-page-bic .ast-builder-menu-1-focus-item,
.cf-page-bic #ast-mobile-header,
.cf-page-bic #colophon,
.cf-page-bic .cf-footer,
.cf-page-best-in-class .ast-builder-menu-1,
.cf-page-best-in-class .ast-builder-menu-1-focus-item,
.cf-page-best-in-class #ast-mobile-header,
.cf-page-best-in-class #colophon,
.cf-page-best-in-class .cf-footer {
    display: none !important;
}

/* Single screen: lock to viewport, no scroll */
.cf-page-bic #page,
.cf-page-best-in-class #page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cf-page-bic #content,
.cf-page-best-in-class #content {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.cf-page-bic #primary,
.cf-page-best-in-class #primary {
    width: 100%;
}
/* Only reset padding on the content area — NOT the header container */
.cf-page-bic #content .entry-content,
.cf-page-best-in-class #content .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Language toggle strip */
.cf-bic-lang {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}
.cf-bic-lang .lang-switcher {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cf-bic-lang .lang-switcher a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F8F8FF;
    opacity: 0.3;
    transition: opacity 0.2s;
}
.cf-bic-lang .lang-switcher a:hover {
    opacity: 0.7;
    text-decoration: none;
}
.cf-bic-lang .lang-switcher .current-lang a {
    opacity: 1;
}
.cf-bic-lang .lang-switcher li + li::before {
    content: "·";
    color: #F8F8FF;
    opacity: 0.25;
    display: inline-block;
}

/* Hero section: hidden — H1 moved into left column */
.cf-page-bic .cf-bic-hero,
.cf-page-best-in-class .cf-bic-hero {
    display: none !important;
}

/* Content section: compact for single screen */
.cf-page-bic .cf-bic-content,
.cf-page-best-in-class .cf-bic-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Columns: vertically centered */
.cf-page-bic .cf-bic-grid.wp-block-columns,
.cf-page-best-in-class .cf-bic-grid.wp-block-columns {
    align-items: center !important;
}
.cf-page-bic .cf-bic-right,
.cf-page-best-in-class .cf-bic-right {
    position: static !important;
    top: auto !important;
}

/* Eyebrow label */
.cf-bic-eyebrow {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    opacity: 0.4 !important;
    margin-bottom: 14px !important;
    margin-top: 0 !important;
}

/* H1 inside the left column */
.cf-page-bic .cf-bic-left h1.wp-block-heading,
.cf-page-best-in-class .cf-bic-left h1.wp-block-heading {
    font-size: clamp(2.2rem, 2.8vw, 3.157rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
    margin-bottom: 18px !important;
}

/* Compact first paragraph (description) */
.cf-page-bic .cf-bic-left > p:first-child,
.cf-page-best-in-class .cf-bic-left > p:first-child {
    font-size: 1rem !important;
    opacity: 0.7 !important;
    margin-bottom: 20px !important;
    line-height: 1.65 !important;
}

/* Compact list */
.cf-page-bic .cf-bic-left .wp-block-list,
.cf-page-best-in-class .cf-bic-left .wp-block-list {
    margin-bottom: 16px;
}
.cf-page-bic .cf-bic-left .wp-block-list li,
.cf-page-best-in-class .cf-bic-left .wp-block-list li {
    padding: 10px 0 10px 28px;
}

/* CTA text */
.cf-page-bic .cf-bic-cta-text,
.cf-page-best-in-class .cf-bic-cta-text {
    margin-top: 16px !important;
    opacity: 0.55 !important;
}

/* Collapse entry-header (title hidden but still adds margin) */
.cf-page-bic .entry-header,
.cf-page-best-in-class .entry-header {
    display: none !important;
}

/* Remove Astra's default article inner padding on BIC */
.cf-page-bic .ast-article-inner,
.cf-page-best-in-class .ast-article-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Shift vertical alignment slightly toward top for visual balance */
.cf-page-bic #content,
.cf-page-best-in-class #content {
    align-items: flex-start !important;
    padding-top: 40px !important;
}

/* =============================================
   SECTION COLOR VARIANTS
   ============================================= */

.cf-section--light h1,
.cf-section--light h2,
.cf-section--light h3,
.cf-section--light h4,
.cf-section--light p,
.cf-section--light li,
.cf-section--light td,
.cf-section--light th,
.cf-section--light cite,
.cf-section--light blockquote,
.cf-section--light strong {
    color: #0D0D0D !important;
}
.cf-section--light .cf-dont-list li {
    border-color: rgba(13,13,13,0.1) !important;
    opacity: 0.78;
    color: #0D0D0D !important;
}
.cf-section--light .cf-dont-list li:first-child { border-top-color: rgba(13,13,13,0.1) !important; }
.cf-section--light .cf-testimonial { border-color: rgba(13,13,13,0.12) !important; }
.cf-section--light .cf-covers { border-top-color: rgba(13,13,13,0.08) !important; }
.cf-section--light .cf-outcome { border-top-color: rgba(13,13,13,0.08) !important; }
.cf-section--light .wp-block-button__link {
    background-color: var(--cf-accent) !important;
    color: #0D0D0D !important;
    border-color: var(--cf-accent) !important;
}

.cf-section--mid h1,
.cf-section--mid h2,
.cf-section--mid h3,
.cf-section--mid h4,
.cf-section--mid p,
.cf-section--mid li,
.cf-section--mid td,
.cf-section--mid th,
.cf-section--mid cite,
.cf-section--mid blockquote,
.cf-section--mid strong {
    color: #E7E6D9 !important;
}
.cf-section--mid .cf-principle-item,
.cf-section--mid .cf-principles-grid,
.cf-section--mid .cf-home-agents,
.cf-section--mid .cf-home-agent {
    border-color: rgba(231,230,217,0.1) !important;
}
.cf-section--mid .cf-platform__impact,
.cf-section--mid .cf-agents-note-list li,
.cf-section--mid .cf-impact-list li {
    border-color: rgba(231,230,217,0.08) !important;
    color: #E7E6D9 !important;
}

/* Eliminate Gutenberg block gap between adjacent color bands */
.cf-color-band + .cf-color-band {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Full-width color band wrappers */
.cf-color-band {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.cf-color-band--light { background-color: #F5F2ED !important; }
.cf-color-band--mid { background-color: #212121 !important; }
/* Trust band — dark background override (only this band, not all --light bands) */
.cf-color-band--light:has(.cf-trust) {
    background-color: #0D0D0D !important;
}
.cf-trust .cf-trust__tagline,
.cf-trust .cf-trust__stats {
    color: #F8F8FF !important;
}

/* =============================================
   HEADING SIZE — long headings
   ============================================= */

.cf-problem .wp-block-heading {
    font-size: clamp(1.5rem, 2.8vw, 2.369rem);
    max-width: 840px;
}
.cf-services .wp-block-heading {
    font-size: clamp(1.5rem, 2vw, 2.369rem);
    max-width: 700px;
    line-height: 1.35;
}
.cf-work-cases .wp-block-heading {
    font-size: clamp(1.5rem, 2.5vw, 2.369rem);
    max-width: 720px;
}

/* =============================================
   GRID ALIGNMENT — consistent card heights
   ============================================= */

.cf-service-item {
    display: flex !important;
    flex-direction: column !important;
}
.cf-service-item h3 {
    min-height: 2.8rem;
}

/* =============================================
   SERVICES — covers line
   ============================================= */

.cf-covers {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    opacity: 0.45 !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(248,248,255,0.08);
    line-height: 1.7 !important;
}

/* =============================================
   PLATFORM — agents & impact on homepage
   ============================================= */

.cf-platform .wp-block-heading.cf-agents-heading {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    margin: 40px 0 0 !important;
}

/* Agents Carousel */
.cf-agents-carousel {
    width: 100%;
    max-width: 600px;
    margin: 24px 0 32px;
}
.cf-agents-track-wrap { overflow: hidden; }
.cf-agents-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cf-agent-card {
    min-width: 100%;
    box-sizing: border-box;
    padding: 32px 0 28px;
    border-top: 1px solid rgba(248,248,255,0.12);
}
.cf-agent-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #F8F8FF;
    opacity: 0.4;
    margin-bottom: 16px;
}
.cf-agent-name {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #F8F8FF !important;
    margin: 0 0 12px !important;
    letter-spacing: -0.01em !important;
}
.cf-agent-desc {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: #F8F8FF !important;
    opacity: 0.7;
    margin: 0 !important;
}
.cf-agents-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}
.cf-agents-btn {
    background: none;
    border: 1px solid rgba(248,248,255,0.2);
    color: #F8F8FF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.cf-agents-btn:hover { border-color: rgba(248,248,255,0.6); }
.cf-agents-dots { display: flex; gap: 0; }
.cf-agents-dot {
    background: none;
    border: none;
    color: #F8F8FF;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    opacity: 0.3;
    cursor: pointer;
    padding: 6px 10px;
    transition: opacity 0.2s;
}
.cf-agents-dot.active { opacity: 1; }
.cf-agents-dot:hover { opacity: 0.65; }

.cf-check-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 32px !important;
}
.cf-check-list li {
    padding: 7px 0 7px 26px !important;
    position: relative;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    opacity: 0.8;
}
.cf-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 600;
    opacity: 0.5;
}

.cf-agents-note-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 32px !important;
}
.cf-agents-note-list li {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(248,248,255,0.07) !important;
    font-size: 0.85rem !important;
    opacity: 0.6 !important;
}
.cf-agents-note-list li:first-child {
    border-top: 1px solid rgba(248,248,255,0.07) !important;
}

.cf-impact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 8px 0 32px !important;
}
.cf-impact-list li {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(248,248,255,0.07) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}
.cf-impact-list li:first-child {
    border-top: 1px solid rgba(248,248,255,0.07) !important;
}

/* =============================================
   WORK CASES — full structure
   ============================================= */

.cf-case-label {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    opacity: 0.4 !important;
    margin-bottom: 8px !important;
}
.cf-case-client {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 16px !important;
    opacity: 1 !important;
}
.cf-outcome {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    opacity: 0.6 !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(248,248,255,0.08) !important;
    line-height: 1.65 !important;
}

/* ============================================
   FOUR STEPS — 2×2 GRID LAYOUT
   ============================================ */
.cf-principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.5rem;
    align-items: start;
}

/* Reset legacy 56px margin from .cf-principles > .wp-block-heading */
.cf-principles > .wp-block-heading {
    margin-bottom: 0;
}

/* "Four steps. No shortcuts." — full width, row 1 */
.cf-principles > *:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0.75rem !important;
}

/* Subtitle paragraph — full width, muted (only p, not grid wrappers) */
.cf-principles > p.wp-block-paragraph:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 1rem !important;
    color: rgba(248, 248, 255, 0.6) !important;
    margin-bottom: 3rem !important;
    max-width: 600px;
}

/* Steps 1–4: explicit grid placement */
.cf-principles > *:nth-child(3)  { grid-column: 1; grid-row: 3; }
.cf-principles > *:nth-child(4)  { grid-column: 1; grid-row: 4; }
.cf-principles > *:nth-child(5)  { grid-column: 2; grid-row: 3; }
.cf-principles > *:nth-child(6)  { grid-column: 2; grid-row: 4; }
.cf-principles > *:nth-child(7)  { grid-column: 1; grid-row: 5; padding-top: 2.5rem; }
.cf-principles > *:nth-child(8)  { grid-column: 1; grid-row: 6; }
.cf-principles > *:nth-child(9)  { grid-column: 2; grid-row: 5; padding-top: 2.5rem; }
.cf-principles > *:nth-child(10) { grid-column: 2; grid-row: 6; }

/* Step headings: teal accent bar on top */
.cf-principles > h3.wp-block-heading {
    font-size: 1.333rem !important;
    font-weight: 700;
    border-top: 2px solid rgba(0, 217, 197, 0.45);
    padding-top: 1.25rem;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.01em;
    color: #F8F8FF;
}

/* Step body text: only paragraphs directly after a step h3 */
.cf-principles > h3.wp-block-heading + p.wp-block-paragraph {
    font-size: 0.875rem !important;
    line-height: 1.75;
    color: rgba(248, 248, 255, 0.6) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Mobile: single column */
@media (max-width: 768px) {
    .cf-principles {
        grid-template-columns: 1fr !important;
    }
    .cf-principles > *:nth-child(n) {
        grid-column: 1 !important;
        grid-row: auto !important;
        padding-top: 0 !important;
    }
    .cf-principles > h3.wp-block-heading {
        margin-top: 2rem !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
    .cf-section {
        padding: 80px 32px;
    }

    .cf-problem { padding-bottom: 60px !important; }
    .cf-principles { padding-top: 60px !important; }

    .cf-hero {
        padding-top: 100px;
        padding-bottom: 80px;
    }

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

    .cf-service-item:nth-child(2) {
        border-right: none;
    }

    .cf-service-item:nth-child(3) {
        border-top: 1px solid rgba(248, 248, 255, 0.1);
    }

    /* Services page — 1 col on tablet, reduce offset */
    .cf-service-group__grid,
    .cf-service-group__grid--three {
        grid-template-columns: 1fr;
        margin-left: 32px;
        gap: 0;
    }
    .cf-service-card {
        padding: 28px 0;
        border-bottom: 1px solid rgba(0, 217, 197, 0.28);
    }
    .cf-service-card:last-child {
        border-bottom: none;
    }

    /* Agents grid — 2 col pyramid on tablet */
    .cf-agents-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 2rem;
    }
    .cf-agents-grid .cf-agent-card:nth-child(1),
    .cf-agents-grid .cf-agent-card:nth-child(2),
    .cf-agents-grid .cf-agent-card:nth-child(3),
    .cf-agents-grid .cf-agent-card:nth-child(4),
    .cf-agents-grid .cf-agent-card:nth-child(5) {
        grid-column: span 1;
    }
    .cf-agents-grid .cf-agent-card:nth-child(n+3) {
        padding-top: 1.5rem;
    }

    /* Cases mini grid — 2 col on tablet */
    .cf-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 2rem;
    }

    /* Work case grid — 2 col on tablet */
    .cf-case__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 2rem;
    }

    /* BIC: stack on tablet */
    .cf-bic-grid.wp-block-columns {
        flex-direction: column;
        gap: 40px;
    }
    .cf-bic-right {
        position: static;
    }

    /* CTA sections padding on tablet */
    .cf-lead-magnet {
        padding: 64px 32px;
    }
    .cf-closing-cta {
        padding: 100px 32px;
    }

    /* Contact details gap */
    .cf-contact-details {
        gap: 56px;
    }

    /* .cf-principles-grid stays 2-col on tablet (already base) */
}

/* Mobile — 768px */
@media (max-width: 768px) {
    .cf-section {
        padding: 64px 24px;
    }

    .cf-problem { padding-bottom: 60px !important; }
    .cf-principles { padding-top: 60px !important; }

    .cf-hero {
        padding-top: 80px;
        padding-bottom: 64px;
    }

    .cf-hero .wp-block-heading {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .cf-hero__body {
        font-size: 1rem;
        margin: 20px 0 32px;
    }

    .wp-block-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cf-services__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cf-service-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(248, 248, 255, 0.1);
        grid-column: auto !important;
        border-top: none !important;
    }

    .cf-trust {
        padding: 40px 24px;
    }

    .cf-platform .wp-block-list li {
        font-size: 0.9rem;
    }

    .cf-testimonial {
        padding: 20px 20px !important;
    }

    .cf-lead-magnet {
        padding: 56px 24px;
    }

    .cf-closing-cta {
        padding: 80px 24px;
    }

    /* Platform mobile */
    .cf-agents-grid {
        grid-template-columns: 1fr;
    }
    .cf-agents-grid .cf-agent-card:nth-child(n) {
        grid-column: 1 !important;
        padding-top: 0 !important;
    }
    .cf-agents-grid .cf-agent-card {
        margin-top: 1.5rem !important;
    }
    .cf-agents-grid .cf-agent-card:first-child {
        margin-top: 0 !important;
    }
    .cf-agent-privacy .wp-block-list {
        flex-direction: column;
        gap: 12px;
    }
    .cf-cases-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 2rem;
    }
    /* In 2-col mobile, restore border-top to item 3 (desktop removed it as 3rd of row 1) */
    .cf-case-mini:nth-child(3) {
        border-top: 1px solid rgba(0, 217, 197, 0.35);
    }
    /* Only first 2 items have no top border in 2-col layout */
    .cf-case-mini:nth-child(-n+2) {
        border-top: none;
    }

    /* Work / Case Studies mobile */
    .cf-case__meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    .cf-case__grid {
        grid-template-columns: 1fr;
    }
    .cf-case__block {
        border-bottom: 1px solid rgba(0, 217, 197, 0.28);
        padding: 24px 0;
    }
    .cf-case__block:last-child {
        border-bottom: none;
    }

    /* Services mobile */
    .cf-service-group__header {
        flex-direction: column;
        gap: 8px;
    }
    .cf-service-group__grid,
    .cf-service-group__grid--three {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
    .cf-service-card {
        padding: 28px 0;
        border-bottom: 1px solid rgba(0, 217, 197, 0.28);
    }
    .cf-service-card:last-child {
        border-bottom: none;
    }

    /* About mobile */
    .cf-story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cf-story-item {
        border-bottom: 1px solid rgba(248, 248, 255, 0.1);
    }
    .cf-story-item:nth-child(even) {
        border-right: none;
    }
    .cf-leader-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .cf-principles-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .cf-principle-item {
        padding-bottom: 2rem;
    }
    .cf-leader-header,
    .cf-leader-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* BIC mobile */
    .cf-bic-grid.wp-block-columns {
        flex-direction: column;
        gap: 48px;
    }

    .cf-bic-right {
        position: static;
    }

    .cf-form-wrap {
        padding: 28px 24px;
    }

    /* Footer mobile */
    .cf-footer {
        padding: 56px 24px 32px;
    }

    .cf-footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .cf-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 24px;
    }

    .cf-footer__legal {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
    .cf-section {
        padding: 56px 20px;
    }

    .cf-hero .wp-block-heading {
        font-size: 1.75rem;
    }

    .cf-story-grid {
        grid-template-columns: 1fr;
    }

    .cf-story-item {
        border-right: none;
    }

    .cf-agents-grid {
        grid-template-columns: 1fr;
    }

    .cf-agent-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(248, 248, 255, 0.1);
    }

    .cf-agent-card:last-child {
        border-bottom: none;
        grid-column: auto;
    }

    .cf-cases-grid {
        grid-template-columns: 1fr;
    }

    .cf-case-mini {
        border-right: none !important;
        border-bottom: 1px solid rgba(248, 248, 255, 0.08) !important;
    }

    .cf-case-mini:last-child {
        border-bottom: none !important;
    }

    .wp-block-button__link,
    .wp-element-button {
        width: 100%;
        text-align: center;
        padding: 16px 24px !important;
    }
}

/* ============================================
   MOBILE HEADER & NAVIGATION
   ============================================ */

/* Mobile header bar — background handled by sticky glass CSS above */
#ast-mobile-header,
#ast-mobile-header .main-header-bar,
#ast-mobile-header .ast-primary-header-bar {
    background-color: transparent !important;
    border-bottom: none !important;
}

/* Logo text */
#ast-mobile-header .site-title a,
#ast-mobile-header .site-title a:hover,
#ast-mobile-header .site-title a:focus {
    color: #F8F8FF !important;
}

/* Hamburger button icon */
#ast-mobile-header button.menu-toggle,
#ast-mobile-header .ast-mobile-menu-trigger-minimal,
#ast-mobile-header .ast-mobile-menu-trigger-minimal .ast-icon,
#ast-mobile-header .menu-toggle .ast-icon {
    color: #F8F8FF !important;
    fill: #F8F8FF !important;
}

#ast-mobile-header button.menu-toggle svg,
#ast-mobile-header .ast-mobile-menu-trigger-minimal svg {
    fill: #F8F8FF !important;
    color: #F8F8FF !important;
}

/* Mobile nav dropdown area */
#ast-mobile-header .main-navigation,
#ast-mobile-header #ast-mobile-site-navigation,
#ast-mobile-header .ast-builder-grid-row {
    background-color: #0D0D0D !important;
}

/* Mobile menu list */
#ast-mobile-header ul.main-header-menu,
#ast-mobile-header #ast-hf-mobile-menu {
    background-color: #111111 !important;
    padding: 0;
}

/* Mobile menu items */
#ast-mobile-header .menu-item {
    border-bottom: 1px solid rgba(248, 248, 255, 0.08) !important;
    background-color: transparent !important;
}

#ast-mobile-header .menu-item:last-child {
    border-bottom: none !important;
}

/* Mobile menu links */
#ast-mobile-header .menu-link,
#ast-mobile-header .menu-link:hover,
#ast-mobile-header .menu-link:focus {
    color: #F8F8FF !important;
    background-color: transparent !important;
    padding: 14px 20px !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.cf-contact-hero {
    padding: 80px 0 48px;
    border-bottom: 1px solid rgba(0, 217, 197, 0.35);
}

.cf-contact-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.cf-contact-lead {
    font-size: 1.1rem !important;
    font-weight: 300 !important;
    opacity: 0.65;
    margin: 0 !important;
}

.cf-contact-details {
    padding: 64px 0;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 80px;
    align-items: flex-start;
}

.cf-contact-details .cf-contact-item.wp-block-group {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.cf-contact-item:last-child {
    padding-bottom: 0;
}

.cf-contact-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.45;
    margin-bottom: 12px !important;
}

.cf-contact-item p {
    margin: 0 !important;
}

.cf-contact-item a {
    font-size: 1.5rem;
    font-weight: 500;
    color: #F8F8FF !important;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.cf-contact-item a:hover {
    opacity: 0.75;
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, Cookies)
   ============================================ */

.cf-legal-page {
    padding: 72px 0 96px;
    max-width: 740px;
}

.cf-legal-page h1 {
    font-size: clamp(2.2rem, 4vw, 3.157rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.cf-legal-meta {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    color: #EDEEEB !important;
    opacity: 0.45;
    margin-bottom: 56px !important;
    margin-top: 0 !important;
}

.cf-legal-page h2 {
    font-size: 2.369rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    margin-top: 40px !important;
    margin-bottom: 12px !important;
    color: #F8F8FF;
}

.cf-legal-page p {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    color: #EDEEEB !important;
    opacity: 0.75;
    margin-bottom: 0 !important;
}

.cf-legal-page a {
    color: #F8F8FF !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .cf-contact-hero {
        padding: 56px 0 40px;
    }

    .cf-contact-details {
        flex-direction: column;
        gap: 36px;
    }

    .cf-contact-item a {
        font-size: 1.2rem;
    }

    .cf-legal-page {
        padding: 48px 0 64px;
    }
}

/* ============================================
   LANGUAGE SWITCHER (Polylang)
   ============================================ */

.cf-footer__bottom {
    flex-wrap: wrap;
    gap: 16px;
}

.cf-footer__bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cf-footer__lang {
    display: flex;
    align-items: center;
}

.cf-footer__lang ul.lang-switcher {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.cf-footer__lang ul.lang-switcher li {
    margin: 0 !important;
    padding: 0 !important;
}

.cf-footer__lang ul.lang-switcher li a,
.cf-footer__lang ul.lang-switcher li span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #EDEEEB !important;
    opacity: 0.45;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid rgba(248, 248, 255, 0.12);
    border-radius: 3px;
    transition: opacity 0.2s, border-color 0.2s;
    display: block;
}

.cf-footer__lang ul.lang-switcher li a:hover {
    opacity: 0.8 !important;
    border-color: rgba(248, 248, 255, 0.3);
}

.cf-footer__lang ul.lang-switcher li.current-lang a,
.cf-footer__lang ul.lang-switcher li.current-lang span {
    opacity: 0.9 !important;
    color: #F8F8FF !important;
    border-color: rgba(248, 248, 255, 0.3);
}

@media (max-width: 768px) {
    .cf-footer__bottom-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
