/* =============================================================
   AGENT.CSS  –  AtBridges Agents Page
   Bootstrap-first layout. This file: design tokens + component
   styles only. No fixed widths, no absolute positioning.
   ============================================================= */

/* ── 1. TOKENS ──────────────────────────────────────────────── */
:root {
    --ag-primary:       #0c4182;
    --ag-primary-hover: #0a3368;
    --ag-primary-light: #eff6ff;
    --ag-blue-mid:      #2b7cee;
    --ag-dark:          #1e2533;
    --ag-body:          #374151;
    --ag-muted:         #6b7280;
    --ag-border:        #e0e5eb;
    --ag-card-shadow:   0 2px 12px rgba(89,121,166,.10);
    --ag-card-hover:    0 12px 36px rgba(89,121,166,.18);
    --ag-radius:        16px;
    --ag-radius-sm:     12px;
    --ag-transition:    0.24s ease;
}

/* ── 2. BASE ─────────────────────────────────────────────────── */
body { color: var(--ag-body); }
a    { text-decoration: none; }

/* ── 3. BACKGROUND HELPER ────────────────────────────────────── */
.ag-bg-light { background-color: #f5f8ff; }

/* ── 4. SECTION SPACING ──────────────────────────────────────── */
.ag-section { padding: 32px 0; }

/* ── 5. TYPOGRAPHY HELPERS ───────────────────────────────────── */
.ag-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--ag-dark);
    line-height: 1.15;
    margin-bottom: .4rem;
}
.ag-section-sub {
    font-size: 1rem;
    color: var(--ag-muted);
    margin-bottom: 0;
}
.ag-body-text {
    font-size: .95rem;
    color: var(--ag-body);
    line-height: 1.75;
}
.ag-text-blue {
    color: var(--ag-primary);
}
.ag-eyebrow {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ag-primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .6rem;
}

/* ── 6. BUTTONS ──────────────────────────────────────────────── */
.ag-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    background: var(--ag-primary);
    color: #fff !important;
    border: 2px solid var(--ag-primary);
    border-radius: var(--ag-radius);
    font-size: .95rem;
    font-weight: 600;
    transition: var(--ag-transition);
    box-shadow: 0 6px 20px rgba(12,65,130,.22);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.ag-btn-primary:hover {
    background: #fff;
    color: var(--ag-primary) !important;
    box-shadow: none;
}

.ag-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    background: transparent;
    color: var(--ag-primary) !important;
    border: 2px solid var(--ag-primary);
    border-radius: var(--ag-radius);
    font-size: .95rem;
    font-weight: 600;
    transition: var(--ag-transition);
    text-decoration: none;
    cursor: pointer;
}
.ag-btn-outline:hover {
    background: var(--ag-primary);
    color: #fff !important;
}

/* CTA section buttons */
.ag-btn-white {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: #fff;
    color: var(--ag-primary) !important;
    border: 2px solid #fff;
    border-radius: var(--ag-radius);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--ag-transition);
    text-decoration: none;
}
.ag-btn-white:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}
.ag-btn-outline-white {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.65);
    border-radius: var(--ag-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--ag-transition);
    text-decoration: none;
}
.ag-btn-outline-white:hover {
    background: #fff;
    color: var(--ag-primary) !important;
}

/* ── 7. PILL LABEL ───────────────────────────────────────────── */
.ag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ag-primary-light);
    color: var(--ag-primary);
    font-size: .82rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 999px;
}

/* ── 8. HERO ─────────────────────────────────────────────────── */
.ag-hero {
    padding: 90px 0 10px;
    background: linear-gradient(160deg, #f5f9ff 0%, #fff 70%);
    overflow: hidden;
}
.ag-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--ag-dark);
    line-height: 1.1;
    margin-bottom: .75rem;
}
.ag-hero-desc {
    font-size: .95rem;
    color: var(--ag-muted);
    line-height: 1.7;
    max-width: 520px;
}
.ag-hero-img {
    width: 100%;
    max-width: 560px;
    filter: drop-shadow(0 16px 40px rgba(12,65,130,.12));
}

/* ── 9. STEPS ────────────────────────────────────────────────── */
.ag-steps-line {
    position: absolute;
    top: 56px;
    left: calc(16.66% + 56px);
    right: calc(16.66% + 56px);
    height: 2px;
    background: var(--ag-border);
    z-index: 0;
}
.ag-step-card {
    background: #fff;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius);
    padding: 32px 24px 28px;
    box-shadow: var(--ag-card-shadow);
    transition: var(--ag-transition);
    position: relative;
    z-index: 1;
}
.ag-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ag-card-hover);
}
.ag-step-icon {
    width: 80px;
    height: 80px;
    background: var(--ag-primary-light);
    border-radius: var(--ag-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ag-step-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.ag-step-badge {
    display: inline-flex;
    align-items: center;
    background: var(--ag-primary-light);
    color: var(--ag-primary);
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    margin-top: 12px;
}
.ag-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ag-dark);
    margin-bottom: 8px;
}
.ag-step-desc {
    font-size: .87rem;
    color: var(--ag-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── 10. AGENT CARDS (6-grid) ────────────────────────────────── */
.ag-agent-card {
    background: #fff;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius);
    padding: 28px 24px;
    box-shadow: var(--ag-card-shadow);
    transition: var(--ag-transition);
}
.ag-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ag-card-hover);
}
.ag-agent-icon-box {
    width: 52px;
    height: 52px;
    background: var(--ag-primary);
    border-radius: var(--ag-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ag-agent-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.ag-agent-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ag-dark);
    margin-bottom: 6px;
}
.ag-agent-desc {
    font-size: .85rem;
    color: var(--ag-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── 11. FEATURE SHOWCASE ROWS ───────────────────────────────── */
.ag-feat-badge {
    display: inline-flex;
    align-items: center;
    background: var(--ag-primary-light);
    color: var(--ag-primary);
    font-size: .8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
}
.ag-feat-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--ag-dark);
    line-height: 1.2;
}
.ag-feat-desc {
    font-size: .95rem;
    color: var(--ag-body);
    line-height: 1.7;
}
.ag-feat-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ag-feat-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--ag-body);
}
.ag-feat-list .bi-check-circle-fill {
    color: var(--ag-primary);
    font-size: .95rem;
    flex-shrink: 0;
}
.ag-feature-img {
    width: 100%;
    border-radius: var(--ag-radius);
    box-shadow: 0 20px 55px rgba(0,0,0,.18);
}

/* ── 12. WHY CHOOSE ──────────────────────────────────────────── */
.ag-why-icon-box {
    width: 48px;
    height: 48px;
    background: var(--ag-primary-light);
    border-radius: var(--ag-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ag-why-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.ag-why-title {
    font-size: .97rem;
    font-weight: 700;
    color: var(--ag-dark);
    margin-bottom: 3px;
}
.ag-why-desc {
    font-size: .85rem;
    color: var(--ag-muted);
    line-height: 1.55;
}

/* ── 13. INTEGRATIONS ────────────────────────────────────────── */
.ag-integration-card {
    background: #fff;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-sm);
    box-shadow: var(--ag-card-shadow);
    transition: var(--ag-transition);
    min-height: 120px;
}
.ag-integration-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ag-card-hover);
}
.ag-integration-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.ag-integration-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ag-dark);
    display: block;
}

/* ── 14. FAQ ─────────────────────────────────────────────────── */
.ag-faq-item {
    border-radius: var(--ag-radius-sm) !important;
    overflow: hidden;
    box-shadow: var(--ag-card-shadow);
    background: #fff;
}
.ag-faq-btn {
    font-size: .97rem;
    font-weight: 600;
    color: var(--ag-dark);
    background: #fff;
    padding: 20px 24px;
    border-radius: var(--ag-radius-sm) !important;
    box-shadow: none !important;
}
.ag-faq-btn:not(.collapsed) {
    color: var(--ag-primary);
    background: var(--ag-primary-light);
}
.ag-faq-btn::after {
    filter: none;
}
.ag-faq-btn:not(.collapsed)::after {
    filter: invert(18%) sepia(80%) saturate(1600%) hue-rotate(194deg) brightness(93%);
}
.ag-faq-body {
    font-size: .9rem;
    color: var(--ag-body);
    line-height: 1.7;
    padding: 0 24px 20px;
    background: #fff;
}

/* ── 15. CTA SECTION + WAVE ──────────────────────────────────── */

/*
   Wrapper: white background so the area OUTSIDE the SVG arc
   (above the curve) stays white — matching the FAQ section bg.
*/
.ag-cta-wrapper {
    background: #f5f8ff;   /* same as ag-bg-light (FAQ section bg) */
    margin: 0;
    padding: 0;
}

/*
   The wave container: zero height of its own — the SVG fills it.
   overflow:hidden clips any sub-pixel rendering artefacts.
   The SVG path fills navy; the rect area outside path = transparent
   so the white wrapper bg shows through cleanly.
*/
.ag-cta-wave {
    line-height: 0;
    overflow: hidden;
    background: transparent;
}
.ag-cta-wave svg {
    display: block;
    width: 100%;
    height: 86px;
}

/* Actual CTA content sits on navy, NO top padding — wave bridges it */
.ag-cta-section {
    background: var(--ag-primary);
    padding: 60px 0 80px;
    margin: 0;
}

.ag-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}
.ag-cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── 16. PRICING CARDS ───────────────────────────────────────── */
.ag-plan-card {
    background: #fff;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius);
    padding: 28px 24px;
    box-shadow: var(--ag-card-shadow);
    transition: var(--ag-transition);
    position: relative;
    overflow: hidden;
}
.ag-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ag-card-hover);
}
.ag-plan-featured {
    border: 2px solid var(--ag-primary);
    box-shadow: 0 12px 40px rgba(12,65,130,.18);
}
.ag-plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--ag-primary), #47b4eb);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 0 0 12px 12px;
    white-space: nowrap;
}
.ag-plan-header { margin-bottom: 16px; margin-top: 20px; }
.ag-plan-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ag-dark);
    margin-bottom: 6px;
}
.ag-plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ag-primary);
    line-height: 1;
}
.ag-plan-period {
    font-size: .85rem;
    font-weight: 400;
    color: var(--ag-muted);
    margin-left: 4px;
}
.ag-plan-feat-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ag-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}
.ag-plan-feat {
    font-size: .84rem;
    color: var(--ag-body);
    line-height: 1.45;
}

/* ── 17. RESPONSIVE ──────────────────────────────────────────── */
/* Tablet ≤ 991px */
@media (max-width: 991.98px) {
    .ag-hero { padding: 60px 0 50px; }
    .ag-hero-title { font-size: 2rem; }
    .ag-section { padding: 56px 0; }
    .ag-section-title { font-size: 1.85rem; }
    .ag-steps-line { display: none; }

    /* Feature rows: image always stacks on top on tablet */
    .ag-feature-row [class*="order-lg-"] { order: unset !important; }
    .ag-feature-img { margin-bottom: 24px; }
}

/* Mobile ≤ 767px */
@media (max-width: 767.98px) {
    .ag-hero { padding: 48px 0 0px; text-align: center; }
    .ag-hero-desc { margin: 0 auto; }
    .ag-hero .d-flex { justify-content: center; }
    .ag-hero-img { display: none; }

    .ag-section { padding: 24px 0; }
    .ag-section-title { font-size: 1.6rem; }

    .ag-btn-primary,
    .ag-btn-outline { width: 100%; justify-content: center; }

    /* Hero buttons don't go full-width */
    .ag-hero .ag-btn-primary,
    .ag-hero .ag-btn-outline { width: auto; }

    /* Wave scales with viewport — keep height so it doesn't collapse */
    .ag-cta-wave svg { height: 50px !important; }
    .ag-cta-section { padding: 40px 0 60px; }
    .ag-cta-title { font-size: 1.6rem; }

    .ag-plan-card { margin-bottom: 16px; }

    .ag-feat-badge { font-size: .75rem; }
    .ag-feat-title { font-size: 1.3rem; }
}

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
    .ag-hero-title { font-size: 1.6rem; }
    .ag-section-title { font-size: 1.4rem; }
    .ag-agent-card { padding: 20px 16px; }
    .ag-step-card { padding: 22px 16px; }
    .ag-integration-card { min-height: 100px; }
    .ag-integration-logo { width: 38px; height: 38px; }
}