/* ============================================================
   Styles specific to Agentic AI page only
   Uses CSS variables defined in site.css
   ============================================================ */

.nav-link_ai-agents {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    color: var(--text) !important;
}

/* - PILL MARGIN (ai/bc use 1.6rem) - */
.pill {
    margin-bottom: 1.6rem;
}

/* - H1 SIZE (ai/bc smaller than main) - */
h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin-bottom: 1.4rem;
}

/* - ACCENT GRADIENT TEXT (hero h1 .accent-text) - */
.accent-text {
    background: linear-gradient(
        90deg,
        #28d3d0 0%,
        #3c83f6 12%,
        #7c3bed 50%,
        #f772a6 80%,
        #fbac2e 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.dark .accent-text {
    background: unset;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--accent);
}

.gradient-border:before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.205px;
    border-radius: inherit;
    background: var(--accent-gradient);
    pointer-events: none;

    /* cuts out the middle so only the border shows */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.gradient-border>* {
    position: relative;
    z-index: 1;
}

html.dark .gradient-border::before {
    padding: var(--stroke-weight-1, 1px);
    background: #B5FF00;
}

/* - DIVIDER - */
.ai-divider {
    height: 1px;
    background: var(--border);
}

/* - SECTION WRAPPER - */
.ai-section {
    padding: clamp(64px, 8vw, 108px) 0 40px;
}

.ai-section--alt {
    background: var(--bg-soft);
}

.ai-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2.4rem;
}

.ai-sec-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ai-sec-header .eyebrow {
    width: 100%;
}

.ai-sec-header h2 {
    max-width: 470px;
}

.ai-sec-sub {
    font-size: clamp(0.94rem, 1.4vw, 1.06rem);
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.65;
    margin-top: 0.5rem;
}

#solve .ai-sec-header .ai-sec-sub {
    max-width: 665px;
}

/* - HERO GRID - */
.ai-hero {
    padding: 9.5rem 2.4rem 5.5rem;
}

.ai-hero-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

@media (max-width: 980px) {
    .ai-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* - HERO BACKBONE DIAGRAM - */

.ai-bb-eyebrow {
    font-family: 'Geist Mono', monospace;
    font-size: 0.69rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.ai-bb-eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--text-dim);
}

.ai-bb-flow {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0;
    align-items: center;
}

@media (max-width: 600px) {
    .ai-bb-flow {
        grid-template-columns: 1fr;
    }
}

.ai-bb-sources {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-right: -1rem;
}

.ai-bb-src {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 58px;
    padding: 7px 4px;
    border-radius: 9px;
    color: var(--text-dim);
    opacity: 0.5;
}

.ai-bb-src svg {
    width: 17px;
    height: 17px;
}

.ai-bb-src span {
    font-family: 'Geist Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
}

.ai-bb-src--on {
    opacity: 1;
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: var(--surface-2);
}

.ai-bb-core {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.3);
}

.ai-bb-core svg {
    width: 28px;
    height: 28px;
    stroke: var(--on-accent);
}

.ai-bb-prims {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ai-bb-prim {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
    align-items: flex-start;
}

.ai-bb-prim:first-child {
    border-top: none;
}

.ai-bb-prim-icon {
    color: var(--text);
    margin-top: 2px;
}

.ai-bb-prim-icon svg {
    width: 20px;
    height: 20px;
}

.ai-prim-num {
    font-family: 'Geist Mono', monospace;
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.ai-prim-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.015em;
    margin-bottom: 0.25rem;
}

.ai-bb-prim p:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* - ICON CARDS (fragmented stack + primitives) - */
.ai-icards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    list-style: none;
    padding: 0;
    margin-top: 2.8rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(/wp-content/uploads/2026/06/ai-icards-bg.webp);
}

@media (max-width: 980px) {
    .ai-icards {
        grid-template-columns: repeat(3, 1fr);
        background-size: contain;
    }
}

@media (max-width: 600px) {
    .ai-icards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ai-icard {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    transition: border-color 0.2s;
}

.ai-icard:hover {
    border-color: var(--border-strong);
}

.ai-icard--on {
    border-color: var(--border-strong);
    background: var(--accent-soft);
}

.ai-ic {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.ai-icard--on .ai-ic {
    color: var(--accent);
}

.ai-ic svg {
    width: 22px;
    height: 22px;
}

.ai-ic-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.781rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    backdrop-filter: blur(2px);
}

.ai-icard--on .ai-ic-label {
    color: var(--accent);
}

.ai-ic-sub {
    font-family: 'Geist Mono', monospace;
    font-size: 0.67rem;
    color: var(--text-dim);
}

/* - PROBLEM COLUMNS (TLDR + numbered list) - */
.ai-prob-cols {
    display: grid;
    grid-template-columns: 0.55fr 1fr;
    gap: 3rem;
    margin-top: 2.8rem;
    align-items: start;
}

@media (max-width: 768px) {
    .ai-prob-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.ai-tldr {
    padding: 1.8rem 1.6rem;
    position: sticky;
    top: 100px;
}

@media (max-width: 767px) {
    .ai-tldr {
        top: 0;
        position: relative;
    }
}

.ai-tldr-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Geist Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.ai-tldr-icon {
    color: var(--accent);
    display: flex;
}

.ai-tldr-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.ai-tldr h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.6rem;
}

.ai-tldr p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.ai-nlist {
    list-style: none;
    padding: 0;
}

.ai-nrow {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1.2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.ai-nlist .ai-nrow:last-child {
    border-bottom: 0;
}

.ai-nn {
    font-family: 'Geist Mono', monospace;
    font-size: 1.25rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    padding-top: 0.2rem;
}

.ai-nrow h3 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.ai-nrow p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* - FEATURE GRID - */
.ai-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 2.8rem;
}

.ai-feat-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-top: 2.8rem;
}

@media (max-width: 768px) {
    .ai-feat-grid,
    .ai-feat-grid-4 {
        grid-template-columns: 1fr;
    }
}

.ai-feat {
    border-right: 1px solid var(--border);
    padding: 1.8rem 1.6rem;
    transition: border-color 0.2s, transform 0.2s;
}

.ai-feat .ai-feat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.3rem;
    align-items: end;
}

html.dark .ai-feat-header svg path {
    fill: var(--accent);
}

.ai-feat-grid .ai-feat:nth-child(-n+3) {
    border-bottom: 1px solid var(--border);
}

.ai-feat-grid-4 .ai-feat:nth-child(-n+4) {
    border-bottom: 1px solid var(--border);
}

.ai-feat-grid-4 svg {
    margin-bottom: 10px;
}

.ai-feat-grid .ai-feat:nth-child(3),
.ai-feat-grid .ai-feat:nth-child(6) {
    border-right: none;
}

.ai-feat-grid-4 .ai-feat:nth-child(4),
.ai-feat-grid-4 .ai-feat:nth-child(8) {
    border-right: none;
}

@media (max-width: 767px) {
    .ai-feat-grid .ai-feat {
        padding: 1.8rem 0;
        border-right: 0
    }

    .ai-feat-grid .ai-feat:nth-child(-n+5) {
        border-bottom: 1px solid var(--border);
    }
}

.ai-feat:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.ai-feat-num {
    font-family: 'Geist Mono', monospace;
    font-size: 2.25rem !important;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap:0;
    margin-bottom: -0.6rem;
    text-align: right;
}

.ai-feat-num small {
    font-size: 0.863rem;
    margin-top: -0.5rem;
}

.ai-feat h3 {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ai-feat p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* - HOW IT FITS - */
.ai-fits-note {
    font-size: clamp(0.92rem, 1.3vw, 1rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 0.5rem;
    margin-bottom: 0;
    column-count: 2;
    column-gap: 46px;
    height: unset;
    column-fill: auto;
    overflow: hidden;
}

@media (max-width: 767px) {
    .ai-fits-note {
        column-count: 1;
        height: auto;
        margin-top: 2rem;
    }
}

.ai-fits-note strong {
    color: var(--text);
    font-weight: 600;
}

.arch-v2-brand {
    position: relative;
    margin-bottom: 80px;
}

.arch-v2-brand:before {
    content: "Capture";
    position: absolute;
    top: 200%;
    color: var(--text-dim);
    font-size: 0.904rem;
    line-height: 1.205rem;
    text-transform: uppercase;
}

.arch-v2-brand:after {
    content: "";
    display: block;
    width: 1.205px;
    height: 14.458px;
    background: rgba(128, 128, 128, 0.5);
    position: absolute;
    right: 50%;
    top: 300%;
    transform: translateY(-50%);
}

.arch-v2-icon::after,
.arch-v2-col--left .arch-v2-nodes .arch-v2-node:nth-child(2) .arch-v2-icon::after {
     width: 65%;
}

.arch-v2-col--left .arch-v2-nodes .arch-v2-node:nth-child(5) .arch-v2-icon::after {
    width: 50%;
}

.arch-v2-col { 
    padding: 6.5rem 4rem 4rem 1.75rem;
}

.arch-v2-col--right {
    padding: 6.5rem 1.75rem 4rem 4rem;
}

@media (max-width: 1024px) {
    .arch-diagram-v2 {
        padding: 0;
    }
    
    .arch-v2-col {
        padding: 1rem 0;
    }

    .arch-v2-col--right .arch-v2-node {
        padding-left: 0;
    }
}

.arch-v2-gap {
    margin: 8px;
    width: 1.205px;
    height: 14.458px;
    background: rgba(128, 128, 128, 0.5);
}

.arch-v2-center .arch-v2-card:nth-child(6),
.arch-v2-center .arch-v2-card:nth-child(6):before {
    background: unset;
}

.arch-v2-center .arch-v2-card:nth-child(6) {
    padding-bottom: 40px;
}

.ai-flow {
        display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 22px;
    align-items: stretch;
    margin-top: 46px;
}

@media (max-width: 768px) {
    .ai-flow {
        grid-template-columns: 1fr;
    }
}

.ai-fcol {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    background: var(--bg);
}

.ai-fcol h3 {
    font-size: 0.78rem;
    font-family: 'Geist Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.1rem;
}

.ai-chips {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.ai-chips li {
    font-family: 'Geist Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-2);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    display: inline-block;
}

.ai-fmid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 160px;
}

@media (max-width: 768px) {
    .ai-fmid {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        min-width: unset;
    }
}

.ai-lane {
    display: flex;
    font-family: 'Geist Mono', monospace;
    font-size: 0.63rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    align-items: center;
    gap: 0.75rem;
}

.ai-lane:before,
.ai-lane:after {
    content: "";
    height: 1px;
    width: 16px;
    background: var(--border);
}

.ai-fnode {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 1.1rem 1rem;
    text-align: center;
    width: 100%;
}

.ai-fnode-big {
    display: block;
    font-family: 'Geist Mono', monospace;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.ai-fnode-sm {
    display: block;
    font-family: 'Geist Mono', monospace;
    font-size: 0.67rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* - PROVEN ENGINE / EARLY NOTE - */
.ai-early-note {
    font-size: clamp(0.92rem, 1.3vw, 1rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 820px;
    margin-top: 0.5rem;
}

.ai-early-note strong {
    color: var(--text);
    font-weight: 600;
}

.ai-early-note a {
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border-strong);
    transition: border-color 0.2s, color 0.2s;
}

.ai-early-note a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* - TRUST STRIP (shared with main, redeclared for page context) - */
.trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-soft);
}

.trust-grid-container {
    position: relative;
    border-radius: 0.5rem;
    margin-bottom: -2.125rem;
    background: var(--bg-soft);
}

.trust-grid {
    width: 1163px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.trust-grid div {
    padding: 2rem;
    border-right: 1px solid #28D3D0;
}

.trust-grid div:last-child {
    border-right: unset;
}

@media (max-width: 1024px) {
    .trust-grid-container {
        margin-bottom: 0;
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        width: auto;
    }

    .trust-grid div:nth-child(3){
        border-right: unset;
    }

    .trust-grid div {
         border-bottom: 1px solid #28D3D0;
    }

    .trust-grid div:nth-child(4) {
        border-bottom: unset;
    }
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-grid div {
        padding: 1rem;
    }

    .trust-grid div:nth-child(3){
        border-right: 1px solid #28D3D0;
    }
    
    .trust-grid div:nth-child(2),
    .trust-grid div:nth-child(4){
        border-right: unset;
    }

    .trust-grid div:nth-child(4) {
        border-bottom: 1px solid #28D3D0;
    }

    .trust-grid div:last-child {
        border-bottom: unset;
    }
}

.trust-num {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.trust-num small {
    color: var(--text-2);
    font-size: 0.55em;
    margin-left: 0.15em;
    font-weight: 500;
}

.trust-lbl {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* - FAQ (shared classes from page.css, scoped here for ai page) - */
.faq-list {
    margin-top: 2.4rem;
    border-top: 1px solid var(--border);
}

.faq-list details {
    border-bottom: 1px solid var(--border);
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 1.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary h3 {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.faq-plus {
    font-family: 'Geist Mono', monospace;
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.faq-list details[open] .faq-plus {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 1.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 820px;
}