/* ============================================================
   AGENT INTEGRATION PAGE — Supplementary styles
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────────── */
.agent-hero {
    background: var(--brand-darker);
    color: #ffffff;
    padding: calc(48px + 64px) 80px 56px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.agent-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.agent-kicker {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
}

.agent-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.92;
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.agent-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: var(--space-lg);
}

/* Discovery bar */
.agent-discovery-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.discovery-item {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    background: var(--brand-darker);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.15s ease;
}

.discovery-item:hover {
    background: var(--brand-dark);
}

.discovery-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.discovery-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255,255,255,0.2);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.discovery-link:hover {
    color: rgba(255,255,255,0.9);
    text-decoration-color: rgba(255,255,255,0.5);
}

/* ── Path number ─────────────────────────────────────────────── */
.agent-path-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand-mid);
    background: var(--brand-tint);
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

/* ── Capability grid ─────────────────────────────────────────── */
.agent-capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--space-md) 0;
}

.agent-capability {
    background: var(--white);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: background 0.15s ease;
}

.agent-capability:hover {
    background: var(--notion-warm);
}

.capability-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.agent-capability h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.agent-capability p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.agent-capability code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--brand-tint);
    color: var(--brand-dark);
    padding: 1px 5px;
    border-radius: 2px;
}

/* ── Subheads ────────────────────────────────────────────────── */
.agent-subhead {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: var(--space-md) 0 var(--space-sm);
}

/* ── Code blocks ─────────────────────────────────────────────── */
.agent-code-block {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--space-sm) 0 var(--space-md);
}

.agent-code-block .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    background: var(--notion-warm);
    border-bottom: 1px solid var(--border);
}

.agent-code-block .code-title {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    font-family: var(--font-mono);
}

.agent-code-block .code-lang {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.agent-code-block .code-block {
    background: var(--brand-darker);
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.agent-code-block .code-block code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    white-space: pre;
    display: block;
}

/* ── Tools table ─────────────────────────────────────────────── */
.agent-tools-table {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--space-sm) 0 var(--space-md);
}

.tool-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
    font-size: 0.88rem;
    transition: background 0.12s ease;
}

.tool-row:hover {
    background: var(--notion-warm);
}

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

.tool-row--header {
    background: var(--notion-warm);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.tool-row--header:hover {
    background: var(--notion-warm);
}

.tool-row code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand-dark);
    background: var(--brand-tint);
    padding: 2px 6px;
    border-radius: 2px;
}

.tool-row span {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Prompt chips ────────────────────────────────────────────── */
.agent-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--space-sm) 0 var(--space-md);
}

.agent-prompt-chip {
    font-size: 0.82rem;
    color: var(--text-default);
    background: var(--notion-warm);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 14px;
    cursor: default;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.agent-prompt-chip:hover {
    background: var(--brand-tint);
    border-color: var(--brand-mid);
    color: var(--brand-dark);
}

/* ── Workflows ───────────────────────────────────────────────── */
.agent-workflows {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--space-sm) 0 var(--space-md);
}

.workflow-item {
    background: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    transition: background 0.12s ease;
}

.workflow-item:hover {
    background: var(--notion-warm);
}

.workflow-trigger {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-mid);
    background: var(--brand-tint);
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.workflow-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-default);
}

.workflow-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ── Settlement loop ─────────────────────────────────────────── */
.loop-diagram {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: var(--space-md) 0;
    max-width: 600px;
}

.loop-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    width: 100%;
    transition: background 0.12s ease;
}

.loop-step:hover {
    background: var(--notion-warm);
}

.loop-step--beta {
    border-color: var(--brand-mid);
    background: var(--brand-tint);
}

.loop-step--beta:hover {
    background: #d4e8e6;
}

.loop-step-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--brand-mid);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 24px;
}

.loop-step-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.loop-step-content code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--brand-dark);
    background: var(--brand-tint);
    padding: 2px 7px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 6px;
}

.loop-step-content p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-top: 6px;
}

.loop-arrow {
    font-size: 1.2rem;
    color: var(--border-dark);
    margin: 4px 0 4px 20px;
    line-height: 1;
}

/* ── Access grid ─────────────────────────────────────────────── */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--space-md) 0;
}

.access-card {
    background: var(--white);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.access-card h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.01em;
}

.access-card--beta {
    background: var(--brand-tint);
}

.access-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.access-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.access-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.access-list code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(25, 47, 45, 0.08);
    color: var(--brand-dark);
    padding: 1px 5px;
    border-radius: 2px;
}

.btn-primary-teal {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--brand-dark);
    border: 1px solid var(--brand-dark);
    padding: 11px 22px;
    border-radius: 3px;
    transition: background 0.15s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.btn-primary-teal:hover {
    background: var(--brand-mid);
    border-color: var(--brand-mid);
}

.access-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: -8px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .agent-hero { padding-left: 48px; padding-right: 48px; }
}

@media (max-width: 768px) {
    .agent-hero {
        padding: calc(48px + 40px) var(--space-md) var(--space-lg);
    }

    .agent-capability-grid {
        grid-template-columns: 1fr;
    }

    .tool-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tool-row--header {
        display: none;
    }

    .access-grid {
        grid-template-columns: 1fr;
    }

    .workflow-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .workflow-trigger {
        min-width: auto;
    }
}
