/* ===================== For Agencies: partnership brochure layout ===================== */

/* ---- diagonal hero ---- */
.ag-hero { position: relative; padding: 140px 0 100px; color: #fff; overflow: hidden;
  background: linear-gradient(105deg, #0b0c39 0%, #0b0c39 58%, #f6f7fb 58.1%, #f6f7fb 100%); }
.ag-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--cz-red) 0 58%, transparent 58%); }
.ag-hero .container { position: relative; z-index: 1; }
.ag-crumb { margin: 0 0 24px; }
.ag-crumb a, .ag-crumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .7); }
.ag-crumb .active { color: #fff; }
.ag-tag { display: inline-flex; gap: 8px; align-items: center; background: var(--cz-red); padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ag-title { color: #fff; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.15; margin: 20px 0 16px; }
.ag-lead { font-size: 18.5px; color: rgba(255, 255, 255, .85); max-width: 600px; margin-bottom: 28px; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ag-ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .5); }
.ag-ghost:hover { background: #fff; color: var(--cz-ink); }
.ag-perks { background: #fff; color: var(--cz-ink-2); border-radius: 20px; padding: 30px; box-shadow: 0 30px 60px rgba(14, 16, 75, .18); border-top: 5px solid var(--cz-red); }
.ag-perks h2 { font-size: 20px; margin: 0 0 16px; color: var(--cz-ink); }
.ag-perks ul { margin: 0 0 14px; padding: 0; }
.ag-perks li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #eceef5; font-weight: 800; }
.ag-perks li:last-child { border-bottom: 0; }
.ag-perks .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff0f2; color: var(--cz-red); display: inline-flex; align-items: center; justify-content: center; }
.ag-perks .note { margin: 0; font-size: 14px; font-weight: 700; color: #667594; }
.ag-perks .note i { color: var(--cz-red); margin-right: 6px; }
@media (max-width: 991px) {
  .ag-hero { background: #0b0c39; padding: 120px 0 60px; }
  .ag-hero::before { background: var(--cz-red); }
  .ag-perks { margin-top: 36px; }
}

/* ---- built-for strip ---- */
.ag-for { background: #fff; border-bottom: 1px solid #e6e8f2; padding: 18px 0; }
.ag-for .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ag-for .lab { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cz-red); }
.ag-for ul { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; }
.ag-for li { font-weight: 800; color: var(--cz-ink-2); position: relative; }
.ag-for li + li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #c9cde0; transform: translateY(-50%); }

/* ---- numbered chapters ---- */
.ag-chapters { background: #fff; padding: 30px 0 20px; }
.ag-ch { display: grid; grid-template-columns: 210px 1fr; gap: 40px; padding: 60px 0; border-bottom: 1px solid #eceef5; }
.ag-ch:last-child { border-bottom: 0; }
.ag-ch .rail { position: sticky; top: 110px; align-self: start; }
.ag-ch .no { display: block; font-size: 88px; font-weight: 800; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--cz-red); letter-spacing: -.02em; }
.ag-ch .nm { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cz-ink-2); border-top: 3px solid var(--cz-red); padding-top: 8px; }
.ag-ch .body h2 { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.22; margin: 0 0 16px; }
.ag-ch .p { font-size: 17px; line-height: 1.8; }
@media (max-width: 991px) {
  .ag-ch { grid-template-columns: 1fr; gap: 14px; padding: 44px 0; }
  .ag-ch .rail { position: static; display: flex; align-items: baseline; gap: 14px; }
  .ag-ch .no { font-size: 48px; }
  .ag-ch .nm { margin: 0; }
}

.ag-bullets { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.ag-bullets li { background: var(--cz-soft); border-left: 3px solid var(--cz-red); padding: 8px 14px; font-weight: 700; color: var(--cz-ink-2); border-radius: 0 8px 8px 0; font-size: 15px; }
.ag-terms { width: 100%; margin-top: 26px; border-collapse: collapse; border: 1px solid #e6e8f2; border-radius: 12px; overflow: hidden; }
.ag-terms caption { caption-side: top; text-align: left; font-weight: 800; color: var(--cz-ink); padding: 0 0 10px; }
.ag-terms th, .ag-terms td { padding: 13px 18px; border-bottom: 1px solid #eceef5; }
.ag-terms th { width: 34%; background: var(--cz-soft); color: var(--cz-ink); }
.ag-terms tr:last-child th, .ag-terms tr:last-child td { border-bottom: 0; }

.ag-fit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 6px 0 0; padding: 0; }
.ag-fit li { display: flex; gap: 14px; align-items: flex-start; font-weight: 700; color: var(--cz-ink-2); }
.ag-fit i { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--cz-red); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
@media (max-width: 767px) { .ag-fit { grid-template-columns: 1fr; } }

.ag-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #dfe3ee; }
.ag-feat .f { padding: 24px 22px 24px 0; border-bottom: 1px solid #dfe3ee; border-right: 1px solid #dfe3ee; padding-left: 22px; }
.ag-feat .f:nth-child(3n) { border-right: 0; padding-right: 0; }
.ag-feat .f:nth-child(3n+1) { padding-left: 0; }
.ag-feat i { font-size: 24px; color: var(--cz-red); margin-bottom: 12px; display: block; }
.ag-feat h3 { font-size: 18px; margin: 0 0 6px; }
.ag-feat p { margin: 0; font-size: 15px; }
@media (max-width: 991px) { .ag-feat { grid-template-columns: repeat(2, 1fr); } .ag-feat .f, .ag-feat .f:nth-child(3n) { border-right: 1px solid #dfe3ee; padding: 22px; } .ag-feat .f:nth-child(2n) { border-right: 0; } }
@media (max-width: 575px) { .ag-feat { grid-template-columns: 1fr; } .ag-feat .f { border-right: 0 !important; padding: 20px 0 !important; } }

.ag-scen .accordion-item { border: 0; border-bottom: 1px solid #dfe3ee; border-radius: 0; background: transparent; }
.ag-scen .accordion-button { background: transparent; box-shadow: none; font-weight: 800; font-size: 19px; color: var(--cz-ink); padding: 20px 0; }
.ag-scen .accordion-button:not(.collapsed) { color: var(--cz-red); background: transparent; }
.ag-scen .accordion-body { padding: 0 0 22px; }
.ag-scen .accordion-body p { font-size: 17px; font-weight: 600; color: var(--cz-ink-2); }
.ag-scen .accordion-body ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ag-scen .accordion-body li { background: var(--cz-soft); border-radius: 20px; padding: 6px 14px; font-weight: 700; font-size: 14px; color: var(--cz-ink-2); }

.ag-models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid #dfe3ee; border-radius: 16px; overflow: hidden; }
.ag-models article { padding: 26px; border-right: 1px solid #dfe3ee; border-bottom: 1px solid #dfe3ee; }
.ag-models article:nth-child(2n) { border-right: 0; }
.ag-models article:nth-last-child(-n+2) { border-bottom: 0; }
.ag-models h3 { font-size: 19px; margin: 0 0 6px; }
.ag-models p { margin: 0 0 12px; font-size: 15.5px; }
.ag-models span { font-size: 13.5px; font-weight: 800; color: var(--cz-red); display: flex; gap: 8px; }
.ag-models span i { margin-top: 3px; }
@media (max-width: 767px) { .ag-models { grid-template-columns: 1fr; } .ag-models article { border-right: 0 !important; border-bottom: 1px solid #dfe3ee !important; } .ag-models article:last-child { border-bottom: 0 !important; } }

.ag-cmp-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid #dfe3ee; }
.ag-cmp { width: 100%; min-width: 560px; border-collapse: collapse; }
.ag-cmp thead th { background: var(--cz-ink); color: #fff; padding: 15px 18px; font-size: 14px; text-align: left; }
.ag-cmp thead th.us { background: var(--cz-red); }
.ag-cmp th, .ag-cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eceef5; vertical-align: top; }
.ag-cmp tbody th { background: #fafbfe; color: var(--cz-ink); width: 22%; }
.ag-cmp td.us { background: #fff7f8; font-weight: 700; color: var(--cz-ink-2); }
.ag-cmp tbody tr:last-child th, .ag-cmp tbody tr:last-child td { border-bottom: 0; }

.ag-std { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; margin: 0; padding: 0; }
.ag-std li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eceef5; font-weight: 700; color: var(--cz-ink-2); }
.ag-std i { color: var(--cz-red); font-size: 18px; margin-top: 1px; }
@media (max-width: 767px) { .ag-std { grid-template-columns: 1fr; } }

/* ascending steps */
.ag-steps { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 14px; margin: 0; padding: 0; align-items: end; padding-top: 6px; }
.ag-steps li { background: #fff; border: 1px solid #dfe3ee; border-bottom: 5px solid var(--cz-red); border-radius: 12px 12px 0 0; padding: 18px 16px 20px; min-height: calc(120px + var(--i) * 20px); position: relative; }
.ag-steps li:nth-child(odd) { border-bottom-color: var(--cz-ink); }
.ag-steps .k { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--cz-ink); color: #fff; font-weight: 800; font-size: 14px; align-items: center; justify-content: center; margin-bottom: 10px; }
.ag-steps li:nth-child(even) .k { background: var(--cz-red); }
.ag-steps h3 { font-size: 16.5px; margin: 0 0 6px; }
.ag-steps p { margin: 0; font-size: 14.5px; }
@media (max-width: 991px) { .ag-steps { grid-template-columns: 1fr; } .ag-steps li { min-height: 0; border-radius: 12px; } }

/* ---- marquee ---- */
.ag-tech { background: var(--cz-ink); color: #fff; padding: 76px 0 70px; overflow: hidden; }
.ag-tech h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); margin: 0 0 34px; }
.ag-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--cz-red); margin-bottom: 10px; }
.ag-tech .ag-eyebrow { color: #ff8fa0; }
.ag-mq { margin-bottom: 16px; }
.ag-mq .g { display: block; padding: 0 var(--bs-gutter-x, 12px); margin: 0 auto 8px; max-width: 1320px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ag-mq .vp { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ag-mq .track { display: flex; width: max-content; animation: agScroll 38s linear infinite; }
.ag-mq.rev .track { animation-direction: reverse; animation-duration: 46s; }
.ag-mq:hover .track { animation-play-state: paused; }
.ag-mq ul { display: flex; gap: 12px; margin: 0; padding: 0 6px; }
.ag-mq li { white-space: nowrap; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); padding: 11px 22px; border-radius: 30px; font-weight: 700; }
@keyframes agScroll { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .ag-mq .track { animation: none; } .ag-mq .vp { overflow-x: auto; } }

/* ---- resell ---- */
.ag-sell { background: var(--cz-soft); padding: 80px 0; }
.ag-sell h2 { font-size: 26px; margin-bottom: 18px; }
.ag-sell-list { display: grid; gap: 10px; }
.ag-sell-list a { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e6e8f2; border-radius: 14px; padding: 14px 18px; color: var(--cz-ink); font-weight: 800; transition: border-color .2s, transform .2s; }
.ag-sell-list a:hover { border-color: var(--cz-red); transform: translateX(4px); }
.ag-sell-list .ic { width: 42px; height: 42px; border-radius: 12px; background: #fff0f2; color: var(--cz-red); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; }
.ag-sell-list .t { flex: 1; }
.ag-sell-list a > i { color: var(--cz-red); font-size: 11px; }
.ag-also { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.ag-also h3 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #667594; margin-bottom: 12px; }
.ag-also ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.ag-also a { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #dfe3ee; border-radius: 30px; padding: 8px 16px; font-weight: 700; font-size: 14px; color: var(--cz-ink-2); }
.ag-also a i { color: var(--cz-red); }
.ag-also a:hover { background: var(--cz-red); border-color: var(--cz-red); color: #fff; }
.ag-also a:hover i { color: #fff; }
@media (max-width: 767px) { .ag-also { grid-template-columns: 1fr; } }

/* ---- FAQ open list ---- */
.ag-faq { background: #fff; padding: 84px 0; }
.ag-faq-head { position: sticky; top: 110px; }
.ag-faq-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 12px; }
.ag-qa { margin: 0; }
.ag-qa > div { padding: 22px 0; border-bottom: 1px solid #e6e8f2; }
.ag-qa > div:first-child { padding-top: 0; }
.ag-qa dt { display: flex; gap: 14px; font-size: 19px; font-weight: 800; color: var(--cz-ink); line-height: 1.35; margin-bottom: 8px; }
.ag-qa dt span { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: var(--cz-red); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; margin-top: -2px; }
.ag-qa dd { margin: 0 0 0 46px; font-size: 16.5px; line-height: 1.75; }

/* ---- next ---- */
.ag-next { background: var(--cz-soft); padding: 60px 0; }
.ag-next h2 { font-size: 26px; margin-bottom: 22px; }
.ag-next .n { position: relative; display: block; background: #fff; border-radius: 16px; padding: 22px 22px 22px 84px; border: 1px solid #e6e8f2; color: var(--cz-ink); height: 100%; transition: border-color .2s, box-shadow .2s; }
.ag-next .n:hover { border-color: var(--cz-red); box-shadow: 0 14px 30px rgba(220, 15, 47, .1); }
.ag-next .ic { position: absolute; left: 22px; top: 22px; width: 48px; height: 48px; border-radius: 14px; background: #fff0f2; color: var(--cz-red); display: inline-flex; align-items: center; justify-content: center; }
.ag-next b { display: block; font-size: 17px; margin-bottom: 4px; }
.ag-next small { display: block; color: #4d5a78; line-height: 1.5; font-size: 14px; }
.ag-next .go { position: absolute; right: 18px; top: 22px; color: var(--cz-red); font-size: 11px; }

/* ---- apply ---- */
.ag-apply { background: linear-gradient(135deg, #0b0c39, #14176c); color: #fff; padding: 84px 0; }
.ag-apply h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 24px; }
.ag-apply .ag-eyebrow { color: #ff8fa0; }
.ag-next-steps { margin: 0; padding: 0; }
.ag-next-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; color: rgba(255, 255, 255, .9); font-weight: 600; }
.ag-next-steps b { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--cz-red); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ag-form { background: #fff; color: var(--cz-ink-2); border-radius: 20px; padding: 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.ag-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ag-form input, .ag-form textarea { width: 100%; border: 1px solid #dcdfec; border-radius: 10px; padding: 12px 15px; font-size: 15px; background: #fff; }
.ag-form input:disabled { background: var(--cz-soft); color: #667594; }
.ag-form input:focus, .ag-form textarea:focus { outline: 0; border-color: var(--cz-red); box-shadow: 0 0 0 3px rgba(220, 15, 47, .12); }
