/* JettSEO — /agency (white-label SEO for agencies). Scoped under .agency-page.
   Uses the site design system verbatim: Inter, brand blue→purple gradient,
   navy text, container 1200 / 24px, section rhythm 96px, --fs-* type scale,
   radius + shadow tokens from style.css :root. The partner form reuses the
   homepage application card (.fg-apply-form-card / .fg-apply-form). */

.agency-page { font-family: var(--f-sans); color: var(--c-text); background: #fff; overflow-x: hidden; }
.agency-page *, .agency-page *::before, .agency-page *::after { box-sizing: border-box; }
:where(.agency-page) p { margin: 0 0 14px; line-height: 1.65; color: var(--c-text-soft); }
:where(.agency-page) p:last-child { margin-bottom: 0; }

.ag-wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ag-section { padding: 96px 0; }
.ag-section-soft { background: linear-gradient(to bottom, #fff 0%, #f7f7fb 120px, #f7f7fb calc(100% - 120px), #fff 100%); }

/* Type */
.ag-eyebrow { display: inline-block; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .18em; color: var(--c-grad-to); text-transform: uppercase; margin-bottom: 16px; }
.ag-h1 { font-family: var(--f-display); font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin: 0 0 24px; }
.ag-h2 { font-family: var(--f-display); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 0 0 20px; }
.ag-h2-light { color: #fff; }
.ag-grad { background: var(--c-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ag-grad-light { background: linear-gradient(120deg, #8ab4ff, #d3a9ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ag-lead { font-size: var(--fs-h4); color: var(--c-text); font-weight: 500; }
.ag-kicker { font-weight: 700; color: var(--c-text); margin-top: 24px; }
.ag-h3-accent { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 700; color: var(--c-blue); margin-bottom: 18px; }
.ag-head { max-width: 46rem; margin-bottom: 48px; }
.ag-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.ag-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ag-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: var(--radius-btn); font-size: var(--fs-btn); font-weight: 600; text-decoration: none; color: var(--c-text); background: #fff; border: 1.5px solid var(--c-border); box-shadow: var(--shadow-sm); transition: transform var(--motion-base) var(--ease), box-shadow var(--motion-base) var(--ease), border-color var(--motion-base) var(--ease); }
.ag-btn-outline:hover { color: var(--c-text); transform: translateY(-2px); border-color: rgba(147,51,234,.45); box-shadow: var(--shadow-md); }
.ag-btn-outline .fg-rebuild-arrow { transition: transform var(--motion-base) var(--ease); }
.ag-btn-outline:hover .fg-rebuild-arrow { transform: translateX(4px); }

/* Hero — centred, like the reference */
.ag-hero { background: linear-gradient(to bottom, rgba(248,250,252,.6) 0%, #fff 100%); padding: 40px 0 96px; }
.ag-hero-inner { text-align: center; max-width: 58rem; padding-bottom: 56px; }
.ag-hero .ag-h1 { max-width: none; }
.ag-hero-lead { font-size: var(--fs-h4); line-height: 1.6; color: var(--c-text); font-weight: 500; margin: 0 auto 14px; max-width: 44rem; }
.ag-hero-sub { font-size: var(--fs-body); line-height: 1.65; color: var(--c-text-soft); margin: 0 auto 34px; max-width: 42rem; }
.ag-hero-visual { margin: 0 0 20px; }
.ag-hero-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ag-hero-strip li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--c-border-soft); box-shadow: var(--shadow-card); font-size: 13.5px; color: var(--c-text-soft); }
.ag-hero-strip svg { width: 26px; height: 26px; flex: none; color: var(--c-blue); }
.ag-hero-strip strong { display: block; font-family: var(--f-display); font-size: 17px; color: var(--c-text); letter-spacing: -.01em; }

/* Hatched stage panel — the reference's "product UI on a tinted, striped
   backdrop" device, in the brand tint. Cards inside are .ag-mock. */
.ag-mock-stage { position: relative; isolation: isolate; border-radius: var(--radius-lg); overflow: hidden; padding: 40px; background-color: #f6f5ff; background-image: repeating-linear-gradient(135deg, rgba(37,99,235,.075) 0 1px, transparent 1px 22px); border: 1px solid rgba(37,99,235,.08); display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: stretch; }
.ag-mock-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ag-mock-col:first-child { justify-content: space-between; }
.ag-mock-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ag-mock-glow { position: absolute; z-index: -1; right: -120px; top: -140px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(147,51,234,.16), rgba(147,51,234,0) 68%); pointer-events: none; }
.ag-mock { background: #fff; border-radius: 14px; border: 1px solid rgba(10,14,39,.06); box-shadow: 0 18px 40px rgba(10,14,39,.10), 0 2px 6px rgba(10,14,39,.05); font-size: 13px; color: var(--c-text); line-height: 1.35; min-width: 0; }
.ag-mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-border-soft); }
.ag-mock-title { font-weight: 600; font-size: 13.5px; letter-spacing: -.005em; }
.ag-mock-muted { color: var(--c-text-muted); font-size: 12px; }
.ag-mock-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; }
.ag-mock-brand i { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 7px; background: var(--c-btn-grad); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.ag-mock-brand small { font-weight: 500; color: var(--c-text-muted); font-size: 12px; }
.ag-mock-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; background: #f1f0f7; color: var(--c-text-soft); white-space: nowrap; }
.ag-mock-pill-grad { background: var(--c-btn-grad); color: #fff; }
.ag-mock-pill-live { background: rgba(16,185,129,.12); color: #047857; }
.ag-mock-pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; margin-right: 6px; }
.ag-mock-tabs { display: flex; gap: 18px; padding: 10px 16px 0; font-size: 12.5px; font-weight: 500; color: var(--c-text-muted); border-bottom: 1px solid var(--c-border-soft); }
.ag-mock-tabs span { padding-bottom: 9px; border-bottom: 2px solid transparent; }
.ag-mock-tabs .is-on { color: var(--c-blue); border-color: var(--c-blue); font-weight: 600; }
.ag-mock-rows { list-style: none; margin: 0; padding: 6px 8px; }
.ag-mock-rows li { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.ag-mock-rows li + li { border-top: 1px solid var(--c-border-soft); }
.ag-mock-rows li.is-new { background: #faf9ff; }
.ag-mock-avatar { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: rgba(37,99,235,.10); color: var(--c-blue); font-weight: 700; font-size: 12px; }
.ag-mock-avatar-plus { background: #eeedf7; color: var(--c-text-muted); font-size: 16px; }
.ag-mock-client, .ag-mock-metric { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-mock-client strong { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-mock-client small, .ag-mock-metric small { font-size: 11.5px; color: var(--c-text-muted); white-space: nowrap; }
.ag-mock-metric { text-align: right; }
.ag-mock-metric strong { font-family: var(--f-display); font-size: 14px; font-weight: 700; letter-spacing: -.01em; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ag-mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--c-border-soft); font-size: 12px; color: var(--c-text-muted); }
.ag-mock-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-btn); background: var(--c-text); color: #fff; font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.ag-mock-chart { padding-bottom: 6px; }
.ag-mock-svg { display: block; width: calc(100% - 32px); height: 110px; margin: 14px 16px 0; }
.ag-mock-axis { display: flex; justify-content: space-between; padding: 6px 16px 0; font-size: 11px; color: var(--c-text-muted); }
.ag-mock-caption { padding: 10px 16px 10px; font-size: 12px; color: var(--c-text-soft); }
.ag-mock-caption strong { color: var(--c-text); }
.ag-mock-kwrows { list-style: none; margin: 0; padding: 6px 16px 10px; }
.ag-mock-kwrows li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; padding: 8px 0; font-size: 12.5px; }
.ag-mock-kwrows li + li { border-top: 1px solid var(--c-border-soft); }
.ag-mock-kwname { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-mock-before { color: var(--c-text-muted); text-decoration: line-through; text-decoration-color: rgba(138,143,159,.6); }
.ag-mock-arrow { color: var(--c-grad-to); font-weight: 700; }
.ag-mock-after { min-width: 34px; text-align: center; padding: 2px 7px; border-radius: 6px; background: #f1f0f7; font-weight: 700; }
.ag-mock-after.is-top { background: var(--c-btn-grad); color: #fff; }
.ag-mock-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: var(--radius-pill); background: #fff; border: 1px solid rgba(147,51,234,.18); box-shadow: var(--shadow-md); font-size: 12.5px; font-weight: 600; color: var(--c-text); white-space: nowrap; }
.ag-mock-chip svg { width: 18px; height: 18px; color: var(--c-grad-to); flex: none; }
.ag-mock-chip em { font-style: normal; font-weight: 500; color: var(--c-text-muted); }

/* White-label stage: report in front, delivery checklist behind */
.ag-mock-stage-wl { display: block; padding: 40px 32px 32px; min-height: 420px; }
.ag-mock-behind { position: absolute; left: 26px; top: 30px; width: 40%; transform: rotate(-2.5deg); transform-origin: top left; }
.ag-mock-behind .ag-mock-bar { padding: 12px 14px; }
.ag-mock-behind .ag-mock-title { font-size: 12.5px; }
.ag-mock-behind .ag-mock-title small { display: block; font-weight: 500; color: var(--c-text-muted); font-size: 11px; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .08em; }
.ag-mock-checks { list-style: none; margin: 0; padding: 6px 14px 10px; }
.ag-mock-checks li { position: relative; padding: 7px 0 7px 26px; font-size: 12px; color: var(--c-text-soft); white-space: nowrap; }
.ag-mock-checks li + li { border-top: 1px solid var(--c-border-soft); }
.ag-mock-checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-btn-grad); }
.ag-mock-checks li::after { content: ""; position: absolute; left: 5.5px; top: 12px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ag-mock-report { position: relative; width: 72%; margin-left: 28%; margin-top: 36px; }
.ag-mock-report-head { display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 6px; }
.ag-mock-report-head strong { font-size: 15px; letter-spacing: -.01em; }
.ag-mock-report-head small { font-size: 12px; color: var(--c-text-muted); }
.ag-mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px 16px 4px; }
.ag-mock-kpis div { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px; border-radius: 10px; background: #faf9ff; border: 1px solid var(--c-border-soft); }
.ag-mock-kpis strong { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; white-space: nowrap; }
.ag-mock-kpis small { font-size: 11px; color: var(--c-text-muted); line-height: 1.3; }
.ag-mock-bars { padding: 12px 16px 14px; }
.ag-mock-barrow { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 10px; }
.ag-mock-barrow i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, #2563eb, #9333ea); opacity: .85; }
.ag-mock-barrow i:last-child { opacity: 1; }

/* Two-column split */
.ag-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ag-split-copy .ag-h2 { max-width: 22ch; }
.ag-split-media { margin-bottom: 40px; grid-template-columns: .9fr 1.1fr; }
.ag-media { margin: 0; min-width: 0; }

/* Feature tiles (6) */
.ag-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ag-tiles li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--c-border-soft); box-shadow: var(--shadow-card); font-weight: 600; color: var(--c-text); font-size: 15px; }
.ag-tiles svg { width: 26px; height: 26px; flex: none; color: var(--c-blue); }

/* Navy band + pillars */
.ag-band { position: relative; overflow: hidden; padding: 96px 0; background: linear-gradient(120deg, #0A0E27 0%, #171d3e 58%, #241147 100%); }
.ag-band-glow { position: absolute; top: -140px; right: -80px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(147,51,234,.5), rgba(147,51,234,0) 70%); }
.ag-band-head { position: relative; z-index: 1; max-width: 58rem; margin-bottom: 56px; }
.ag-band-lead { font-size: var(--fs-h4); color: rgba(255,255,255,.82); }
.ag-pillars { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ag-pillar { padding: 28px 24px; border-radius: var(--radius-card); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(4px); }
.ag-pillar-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--c-btn-grad); color: #fff; margin-bottom: 18px; box-shadow: var(--shadow-blue); }
.ag-pillar-icon svg { width: 22px; height: 22px; }
.ag-pillar h3 { font-size: var(--fs-h4); color: #fff; margin: 0 0 10px; letter-spacing: -.01em; }
.ag-pillar p { color: rgba(255,255,255,.72); font-size: 15px; }

/* Cards (services / white-label) */
.ag-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ag-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ag-card { padding: 28px 26px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--c-border-soft); box-shadow: var(--shadow-card); transition: transform var(--motion-base) var(--ease), box-shadow var(--motion-base) var(--ease); }
.ag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.ag-card-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(37,99,235,.08); color: var(--c-blue); margin-bottom: 16px; }
.ag-card-icon svg { width: 22px; height: 22px; }
.ag-card h3 { font-size: var(--fs-h4); margin: 0 0 8px; letter-spacing: -.01em; }
.ag-card p { font-size: 15px; }

/* Steps 01–05 — one horizontal row with hairline dividers (reference pattern) */
.ag-how-head { margin-bottom: 40px; }
.ag-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ag-steps li { display: flex; flex-direction: column; gap: 14px; padding: 8px 22px 12px; border-left: 1px solid var(--c-border); }
.ag-steps li:last-child { border-right: 1px solid var(--c-border); }
.ag-step-n { font-family: var(--f-display); font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ag-steps h3 { font-size: var(--fs-h3); margin: 0 0 10px; letter-spacing: -.01em; line-height: 1.3; }
.ag-steps p { font-size: 14.5px; margin-bottom: 8px; }
.ag-how-foot { display: flex; justify-content: center; margin-top: 44px; }

/* Flow chips */
.ag-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; }
.ag-flow li { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: #fff; border: 1.5px solid var(--c-border); font-weight: 600; font-size: 15px; color: var(--c-text); box-shadow: var(--shadow-sm); }
.ag-flow li { position: relative; }
.ag-flow li:not(:last-child) { margin-right: 34px; }
.ag-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); color: var(--c-grad-to); font-weight: 700; font-size: 18px; line-height: 1; }
.ag-flow .ag-flow-end { color: #fff; background: var(--c-btn-grad); border-color: transparent; box-shadow: var(--shadow-blue); }

/* Check list */
.ag-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ag-checks li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--c-border-soft); box-shadow: var(--shadow-card); }
.ag-check { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-btn-grad); color: #fff; }
.ag-check svg { width: 18px; height: 18px; stroke-width: 2.6; }
.ag-checks h3 { font-size: 16px; margin: 6px 0 4px; letter-spacing: -.01em; }
.ag-checks p { font-size: 14.5px; }

/* Proof cards */
.ag-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.ag-proof-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; padding: 26px 28px; border-radius: var(--radius-card); color: #fff; text-decoration: none; position: relative; overflow: hidden; box-shadow: var(--shadow-card); transition: transform var(--motion-base) var(--ease), box-shadow var(--motion-base) var(--ease); }
.ag-proof-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 100% 0%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.ag-proof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); color: #fff; }
.ag-proof-tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-bottom: auto; }
.ag-proof-big { font-family: var(--f-display); font-size: clamp(36px, 4vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-top: 28px; }
.ag-proof-label { font-size: 15px; opacity: .9; margin-top: 6px; }
.ag-proof-client { font-size: 13px; opacity: .75; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); }
.cs-tone-healthcare { background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); }
.cs-tone-ecommerce  { background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%); }
.cs-tone-realestate { background: linear-gradient(135deg, #0A0E27 0%, #2e1065 100%); }
.cs-tone-local      { background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%); }
.cs-tone-b2b        { background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%); }
.ag-proof-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ag-badges { display: flex; gap: 12px; }
.ag-badges img { width: 88px; height: 88px; display: block; }

/* FAQ */
.ag-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.ag-faq-head { position: sticky; top: 100px; }
.ag-faq-item { border-top: 1px solid var(--c-border-soft); }
.ag-faq-item:last-child { border-bottom: 1px solid var(--c-border-soft); }
.ag-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; }
.ag-faq-item summary::-webkit-details-marker { display: none; }
.ag-faq-item summary h3 { font-size: var(--fs-h4); margin: 0; letter-spacing: -.01em; line-height: 1.35; }
.ag-faq-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--c-border); transition: transform var(--motion-base) var(--ease), background var(--motion-base) var(--ease); }
.ag-faq-plus::before, .ag-faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--c-text); transform: translate(-50%, -50%); transition: transform var(--motion-base) var(--ease); }
.ag-faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.ag-faq-item[open] .ag-faq-plus { background: var(--c-btn-grad); border-color: transparent; }
.ag-faq-item[open] .ag-faq-plus::before, .ag-faq-item[open] .ag-faq-plus::after { background: #fff; }
.ag-faq-item[open] .ag-faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.ag-faq-item > p { padding: 0 48px 22px 0; font-size: 15.5px; }

/* Closing CTA + form */
.ag-cta { position: relative; overflow: hidden; padding: 96px 0 112px; background: linear-gradient(120deg, #0A0E27 0%, #171d3e 58%, #241147 100%); }
.ag-cta-head { max-width: 50rem; margin-bottom: 64px; }
.ag-cta-title { font-family: var(--f-display); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 0 0 18px; color: #fff; }
.ag-cta-lead { font-size: var(--fs-h4); color: rgba(255,255,255,.82); max-width: 42rem; }
.ag-cta-head .fg-rebuild-cta { margin-top: 14px; }
.ag-cta-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.ag-cta-h3 { font-family: var(--f-display); font-size: var(--fs-h3); color: #fff; margin: 0 0 8px; letter-spacing: -.01em; }
.ag-cta-p { color: rgba(255,255,255,.7); font-weight: 500; }
.ag-cta-list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 12px; }
.ag-cta-list li { position: relative; padding-left: 30px; color: #fff; font-size: 15.5px; line-height: 1.5; }
.ag-cta-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-btn-grad) ; }
.ag-cta-list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ag-host { display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px; border-radius: var(--radius-card); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); max-width: 420px; }
.ag-host img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.ag-host figcaption { display: flex; flex-direction: column; gap: 2px; color: rgba(255,255,255,.75); font-size: 14px; }
.ag-host strong { color: #fff; font-size: 15px; }
/* The application card's tokens live on .fg-apply on the homepage; redeclare them here so the card is white on the navy band. */
.ag-form-card { --ap-bg: hsl(255 100% 99%); --ap-fg: hsl(240 35% 12%); --ap-fg-soft: hsl(240 20% 28%); --ap-muted: hsl(240 10% 50%); --ap-border: hsl(270 30% 92%); --ap-card: #fff; --ap-primary: hsl(270 85% 65%); --ap-accent: hsl(250 85% 70%); }
.ag-form textarea { display: block; width: 100%; min-height: 96px; padding: 15px 16px; border: 1px solid #eae6f9; border-radius: 12px; background: #faf9ff; font-family: inherit; font-size: 14px; color: hsl(240 35% 12%); resize: vertical; transition: border-color var(--motion-base) var(--ease), box-shadow var(--motion-base) var(--ease), background var(--motion-base) var(--ease); }
.ag-form textarea::placeholder { color: #a6a1c4; }
.ag-form textarea:focus { outline: none; background: #fff; border-color: #2f5cf6; box-shadow: 0 0 0 3px rgba(47,92,246,.14); }

/* Scroll-reveal (reuses the site .reveal -> .visible via main.js) */
.agency-page .reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--motion-slow) var(--ease), transform var(--motion-slow) var(--ease); }
.agency-page .reveal.visible { opacity: 1; transform: translateY(0); }
.agency-page .ag-cards .ag-card:nth-child(3n+2), .agency-page .ag-pillars .ag-pillar:nth-child(2), .agency-page .ag-proof .ag-proof-card:nth-child(2) { transition-delay: 90ms; }
.agency-page .ag-cards .ag-card:nth-child(3n+3), .agency-page .ag-pillars .ag-pillar:nth-child(3), .agency-page .ag-proof .ag-proof-card:nth-child(3) { transition-delay: 180ms; }
.agency-page .ag-pillars .ag-pillar:nth-child(4) { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
    .agency-page .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
    .ag-pillars, .ag-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ag-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ag-hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ag-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .ag-steps li:nth-child(4) { border-left-color: var(--c-border); }
    .ag-steps li:last-child { border-right: 0; }
    .ag-mock-stage { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 860px) {
    .ag-section, .ag-band, .ag-cta { padding-top: 72px; padding-bottom: 72px; }
    .ag-hero { padding-bottom: 64px; }
    .ag-split, .ag-faq-wrap, .ag-cta-grid { grid-template-columns: 1fr; gap: 36px; }
    .ag-faq-head { position: static; }
    .ag-split-copy .ag-h2 { max-width: none; }
    .ag-split-media .ag-media { order: -1; }
    .ag-proof { grid-template-columns: 1fr; }
    .ag-proof-card { min-height: 200px; }
    .agency-page .ag-cards .ag-card, .agency-page .ag-pillars .ag-pillar, .agency-page .ag-proof .ag-proof-card { transition-delay: 0ms !important; }
}
@media (max-width: 560px) {
    .ag-wrap { padding-left: 18px; padding-right: 18px; }
    .ag-cards, .ag-pillars, .ag-cards-4, .ag-tiles { grid-template-columns: 1fr; }
    .ag-steps { grid-template-columns: 1fr; }
    .ag-hero-strip { grid-template-columns: 1fr; }
    .ag-mock-stage { padding: 18px; }
    .ag-mock-rows li { grid-template-columns: 30px 1fr auto; }
    .ag-mock-rows .ag-mock-pill { display: none; }
    .ag-mock-client small { overflow: hidden; text-overflow: ellipsis; }
    .ag-mock-metric { max-width: 96px; }
    .ag-mock-metric small { white-space: normal; line-height: 1.2; }
    .ag-mock-brand small { display: none; }
    .ag-mock-tabs { gap: 14px; overflow: hidden; }
    .ag-mock-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ag-mock-stage-wl { padding: 18px; min-height: 0; }
    .ag-mock-behind { position: static; width: auto; transform: none; margin-bottom: 14px; }
    .ag-mock-report { margin-left: 0; width: auto; margin-top: 0; }
    .ag-mock-kpis { grid-template-columns: 1fr; }
    .ag-cta-row .fg-rebuild-cta, .ag-cta-row .ag-btn-outline { width: 100%; }
    .ag-flow { flex-direction: column; gap: 30px; }
    .ag-flow li:not(:last-child) { margin-right: 0; }
    .ag-flow li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -28px; transform: translateX(50%); }
    .ag-faq-item > p { padding-right: 0; }
}
