/* ============================================================
   Section 05 - Failure modes (Three common ways production AI breaks)
   ============================================================ */

.nl-failure-modes {
    position: relative;
    width: 100%;
    padding: 96px 0 39px;
    background: #141C31;
    overflow: hidden;
}

/* Background grid and mask */
.nl-failure-modes__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.nl-failure-modes__mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #D9D9D9 0.48%, rgba(217, 217, 217, 0) 33.67%, rgba(217, 217, 217, 0) 85.52%, #D9D9D9 100%);
    opacity: 0.14;
}

.nl-failure-modes__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.09) 1.2607px, transparent 1.2607px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1.2607px, transparent 1.2607px);
    background-size: 80.68px 80.68px;
    background-position: 40.34px 30px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
}

.nl-failure-modes__inner {
    position: relative;
    z-index: 2;
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
}

.nl-failure-modes__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    width: 100%;
    margin-bottom: 64px;
}

.nl-failure-modes__title {
    margin: 0;
    width: 100%;
    color: #FFFFFF;
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-style: normal;
    font-weight: 700;
    /* Normalized from the original 64px to match the refreshed sections' scale */
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.18;
    letter-spacing: -1px;
    font-feature-settings: 'zero' on;
}

/* "And more" row (replaces the Browse Playbooks CTA) */
.nl-failure-modes__cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Responsive */
@media (max-width: 1100px) {
    .nl-failure-modes {
        padding: 88px 0 64px;
    }

    .nl-failure-modes__header {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .nl-failure-modes {
        padding: 72px 0 56px;
    }
}

.nl-failure-modes__and-more {
    margin: 0;
    max-width: 760px;
    text-align: center;
    color: #90A1B9;
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.1px;
}

.nl-failure-modes__and-more-link {
    color: var(--nl-blue, #3B82F6);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nl-failure-modes__and-more-link:hover {
    text-decoration: underline;
}

/* ============================================================
   §2 "The pain" — three-way proof showcase (replaces the regression
   text-block layout above). Heading + intro + horizontal tab strip +
   scaled <iframe> panel + caption. Existing tokens only.
   ============================================================ */

/* Intro line under the heading — muted secondary text, one line */
.nl-proof-intro {
    margin: 0;
    max-width: 900px;
    text-align: center;
    color: #AFBCD5;
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.1px;
}

.nl-proof-intro__em {
    color: #E8EDF5;
    font-weight: 600;
}

/* Slim horizontal tab strip — title + one-line subtext per tab (BSO tab styling) */
.nl-proof-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 1130px;
    margin: 0 auto;
}

.nl-proof-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 18px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #0F1223;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.nl-proof-tab:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.nl-proof-tab--active {
    background: var(--nl-blue, #3B82F6);
    border-color: var(--nl-blue, #3B82F6);
}

.nl-proof-tab:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.9);
    outline-offset: 2px;
}

.nl-proof-tab__title {
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.2px;
    color: #C7D3E6;
}

.nl-proof-tab__sub {
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-weight: 500;
    font-size: 12px;
    line-height: 1.3;
    color: #90A1B9;
    opacity: 0.75;
}

.nl-proof-tab--active .nl-proof-tab__title,
.nl-proof-tab--active .nl-proof-tab__sub {
    color: #FFFFFF;
    opacity: 1;
}

@media (max-width: 768px) {
    .nl-proof-tabs {
        flex-direction: column;
    }

}

/* Panel stage: scaled iframe + caption */
.nl-proof-stage {
    margin-top: clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.nl-proof-frame {
    width: 100%;
    max-width: 1130px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.8);
    background: #05070c;
}

.nl-proof-iframe {
    width: 1331px;
    height: 697px;
    border: 0;
    display: block;
    transform-origin: top left;
}

.nl-proof-caption {
    margin: 0;
    max-width: 900px;
    text-align: center;
    color: var(--nl-text-dim, #90A1B9);
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(13px, 1.3vw, 15px);
    font-style: italic;
    line-height: 1.5;
}

