/* ============================================================
   Delto Web — Agent Landing Page styles
   Loaded only on /agents/<key> pages.
   Section prefix: .ap-* (agent-page)
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────── */
.ap-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 60px) var(--gutter) 80px;
  background: linear-gradient(165deg, #011a1f 0%, #01373d 55%, #012228 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.ap-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1100px) { .ap-hero-inner { grid-template-columns: 1fr; gap: 40px; } }

/* Eyebrow — single solid lilac chip with an orbiting dot of light */
.ap-eyebrow-tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: rgba(206,199,255,.16);
  border: 1px solid rgba(206,199,255,.32);
  color: var(--dt-lilac);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
  isolation: isolate;
}
/* The light point — travels along the chip's border-box.
   `offset-path: border-box` traces the actual rounded shape of the
   element; `offset-anchor: center` keeps the dot's center on the path. */
.ap-eyebrow-tag::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 4px var(--dt-lilac),
    0 0 10px rgba(206,199,255,.85),
    0 0 20px rgba(206,199,255,.5),
    0 0 32px rgba(206,199,255,.25);
  offset-path: border-box;
  offset-anchor: center;
  offset-distance: 0%;
  animation: ap-eyebrow-orbit 4.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes ap-eyebrow-orbit {
  to { offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-eyebrow-tag::after { animation: none; opacity: 0; }
}
@supports not (offset-path: border-box) {
  .ap-eyebrow-tag::after { display: none; }
}

.ap-hero-copy h1 {
  font-family: var(--dt-font-display);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 24px;
}
.ap-hero-copy h1 .hl { color: var(--dt-lime); position: relative; }
.ap-hero-sub {
  font-size: 18px; line-height: 1.55;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 36px;
}
.ap-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

/* Reuse hero-badges from site.css (Microsoft / Meta / Fintech medal) */

/* Phone column — channel toggle on top, phone below */
.ap-hero-phone {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 18px;
}
.ap-phone-stage { position: relative; }


/* ── SECTION HEAD shared ────────────────────────────────── */
.sect-sub {
  font-size: 17px; line-height: 1.55;
  color: var(--dt-fg-muted);
  max-width: 660px;
  margin-top: 12px;
}
.sect-sub.on-dark-sub { color: rgba(255,255,255,.7); }
.eyebrow.on-dark { color: var(--dt-lime); }
.eyebrow.on-dark::before { background: var(--dt-lime); }

/* ── SHIFT ─────────────────────────────────────────────── */
.ap-shift-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .ap-shift-grid { grid-template-columns: 1fr; gap: 24px; }
  .ap-shift-arrow { display: none; }
}
.ap-shift-col {
  padding: 28px 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(1,55,61,.10);
  background: #fff;
}
.ap-shift-old { background: rgba(1,55,61,.03); opacity: .85; }
.ap-shift-new {
  background: linear-gradient(180deg, rgba(192,244,61,.10) 0%, rgba(206,199,255,.10) 100%);
  border-color: rgba(155,200,50,.30);
  box-shadow: 0 12px 32px rgba(155,200,50,.10);
}
.ap-shift-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: rgba(1,55,61,.55);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}
.ap-shift-label-new { color: var(--dt-lime-dark); }
.ap-shift-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(214,40,40,.14);
  color: #c2261e;
}
.ap-shift-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--dt-lime);
  color: var(--dt-teal);
}
.ap-shift-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-shift-list li {
  font-size: 14px; line-height: 1.5;
  color: var(--dt-fg-muted);
  padding-left: 22px;
  position: relative;
}
.ap-shift-list li::before {
  content: '×'; position: absolute; left: 0; top: 0;
  color: #c2261e;
  font-weight: 700;
}
.ap-shift-list-new li { color: var(--dt-teal); }
.ap-shift-list-new li::before { content: '✓'; color: var(--dt-lime-dark); }
.ap-shift-arrow { display: flex; align-items: center; justify-content: center; position: relative; }
.ap-shift-arrow-line {
  position: absolute; left: 8px; right: 8px;
  height: 2px;
  background: linear-gradient(90deg, rgba(1,55,61,.20), var(--dt-lime));
}
.ap-shift-arrow-tip {
  position: relative; z-index: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--dt-lime);
  color: var(--dt-teal);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(192,244,61,.40);
}


/* ── IMPACT ────────────────────────────────────────────── */
.ap-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 900px) { .ap-impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ap-impact-grid { grid-template-columns: 1fr; } }

.ap-impact-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 24px 22px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  transition: all .25s var(--dt-ease-out);
}
/* Top accent stripe — full-width, currentColor */
.ap-impact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: currentColor;
  opacity: .9;
}
/* Bottom radial glow — adds depth, currentColor */
.ap-impact-card::after {
  content: '';
  position: absolute;
  bottom: -60%; right: -20%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: currentColor;
  opacity: .07;
  filter: blur(28px);
  pointer-events: none;
}
.ap-impact-card.pos { color: var(--dt-lime);  border-color: rgba(192,244,61,.18); }
.ap-impact-card.neg { color: var(--dt-lilac); border-color: rgba(206,199,255,.18); }
.ap-impact-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.03) 100%);
}
.ap-impact-card.pos:hover { border-color: rgba(192,244,61,.36); }
.ap-impact-card.neg:hover { border-color: rgba(206,199,255,.36); }

/* Top row — tag + trend chevron badge */
.ap-impact-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.ap-impact-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: currentColor;
}
.ap-impact-trend {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid currentColor;
  color: currentColor;
}
.ap-impact-card.pos .ap-impact-trend { background: rgba(192,244,61,.10); }
.ap-impact-card.neg .ap-impact-trend { background: rgba(206,199,255,.10); }

/* Big number */
.ap-impact-v {
  font-family: var(--dt-font-display);
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  color: currentColor;
  display: flex; align-items: baseline;
  margin: 4px 0 0;
}
.ap-impact-sign { font-size: .8em; }
.ap-impact-suffix { font-size: .50em; font-weight: 700; margin-left: 2px; opacity: .85; }

/* Label */
.ap-impact-l {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.82);
  line-height: 1.4;
  letter-spacing: -.1px;
}

/* Footer attribution */
.ap-impact-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11px; font-weight: 500;
  letter-spacing: .15px;
  color: rgba(255,255,255,.45);
}

/* ── HOW IT WORKS ──────────────────────────────────────── */
.ap-how-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
}
@media (max-width: 1000px) { .ap-how-pipeline { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 520px)  { .ap-how-pipeline { grid-template-columns: 1fr; gap: 28px; } }
.ap-how-step {
  position: relative;
  padding: 24px 22px 26px;
  background: #fff;
  border: 1px solid rgba(1,55,61,.10);
  border-radius: 16px;
  animation: ap-step-in .6s var(--dt-ease-out) both;
}
@keyframes ap-step-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ap-how-num {
  font-family: var(--dt-font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--dt-lime-dark);
  letter-spacing: 1.4px;
  margin-bottom: 10px;
}
.ap-how-step-t {
  font-family: var(--dt-font-display);
  font-size: 17px; font-weight: 700;
  color: var(--dt-teal);
  margin-bottom: 8px;
  letter-spacing: -.2px;
  line-height: 1.2;
}
.ap-how-step-d { font-size: 13.5px; line-height: 1.5; color: var(--dt-fg-muted); }

/* Loading → check status indicator (top-right of each card).
   Each card has --step-delay set per nth-child so the wave runs
   left → right. Animations are infinite — after the wave reaches
   card 4, card 1 starts the next cycle. The cycle period is 3.5s.
   Within each card's own cycle:
     0% – 24%   spinner visible (rotating)
     28%        spinner hidden, check pops in (slight overshoot)
     32% – 92%  check stays
     100%       check faded out, spinner ready for next loop
   Animations are paused until the pipeline enters viewport (gets
   `.in` via the IntersectionObserver reveal hook). */
.ap-how-step { --step-delay: 0s; }
.ap-how-step:nth-child(1) { --step-delay: 0s;    }
.ap-how-step:nth-child(2) { --step-delay: 0.55s; }
.ap-how-step:nth-child(3) { --step-delay: 1.10s; }
.ap-how-step:nth-child(4) { --step-delay: 1.65s; }

.ap-how-status {
  position: absolute;
  top: 14px; right: 14px;
  width: 22px; height: 22px;
  color: rgba(1,55,61,.32);
}
.ap-how-spin,
.ap-how-check {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
/* Spinner: continuous rotation (transform), and an opacity cycle that
   loops with the per-card delay. Two animations don't conflict because
   each modifies a different property. */
.ap-how-spin {
  animation:
    ap-how-spin 0.85s linear infinite,
    ap-how-spin-loop 3.5s linear var(--step-delay) infinite;
  animation-play-state: paused, paused;
}
.ap-how-check {
  color: var(--dt-lime);
  opacity: 0;
  transform: scale(.4);
  animation: ap-how-check-loop 3.5s linear var(--step-delay) infinite;
  animation-play-state: paused;
}
.ap-how-step::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--dt-lime);
  opacity: 0;
  pointer-events: none;
  animation: ap-how-step-loop 3.5s linear var(--step-delay) infinite;
  animation-play-state: paused;
}
.ap-how-pipeline.in .ap-how-spin       { animation-play-state: running, running; }
.ap-how-pipeline.in .ap-how-check      { animation-play-state: running; }
.ap-how-pipeline.in .ap-how-step::after{ animation-play-state: running; }

@keyframes ap-how-spin { to { transform: rotate(360deg); } }
@keyframes ap-how-spin-loop {
  0%, 24%  { opacity: 1; }
  28%, 92% { opacity: 0; }
  100%     { opacity: 1; }
}
@keyframes ap-how-check-loop {
  0%, 24%  { opacity: 0; transform: scale(.4); }
  28%      { opacity: 1; transform: scale(1.15); }
  32%      { opacity: 1; transform: scale(1); }
  92%      { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(.4); }
}
@keyframes ap-how-step-loop {
  0%, 24%  { opacity: 0; }
  28%, 92% { opacity: .35; }
  100%     { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-how-spin { display: none; }
  .ap-how-check { opacity: 1; transform: scale(1); animation: none; }
  .ap-how-step::after { opacity: .35; animation: none; }
}
.ap-how-conn {
  position: absolute;
  top: 50%; right: -28px;
  transform: translateY(-50%);
  display: inline-flex; gap: 4px;
}
@media (max-width: 1000px) { .ap-how-conn { display: none; } }
.ap-how-conn-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--dt-lime-dark);
  opacity: .4;
  animation: ap-conn-pulse 1.6s ease-in-out infinite;
}
.ap-how-conn-dot:nth-child(2) { animation-delay: .15s; }
.ap-how-conn-dot:nth-child(3) { animation-delay: .30s; }
@keyframes ap-conn-pulse {
  0%, 100% { opacity: .25; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* ── CAPABILITIES ──────────────────────────────────────── */
.ap-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 1000px) { .ap-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ap-cap-grid { grid-template-columns: 1fr; } }
.ap-cap-card {
  padding: 24px 22px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(1,55,61,.08);
  transition: all .25s var(--dt-ease-out);
}
.ap-cap-card:hover {
  background: #fff;
  transform: translateY(-2px);
  border-color: rgba(155,200,50,.40);
  box-shadow: 0 12px 32px rgba(1,55,61,.08);
}
.ap-cap-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ap-cap-card-t {
  font-family: var(--dt-font-display);
  font-size: 16px; font-weight: 700;
  color: var(--dt-teal);
  letter-spacing: -.2px;
  line-height: 1.2;
}
.ap-cap-card-badge {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 1px;
  padding: 2.5px 7px;
  border-radius: 4px;
  background: var(--dt-lime);
  color: var(--dt-teal);
  text-transform: uppercase;
}
.ap-cap-card-d { font-size: 13.5px; line-height: 1.5; color: var(--dt-fg-muted); }

/* ── BUILT FOR BANKING — 2-block grid (integrations + human) ──── */
.ap-built-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 900px) { .ap-built-grid { grid-template-columns: 1fr; } }

.ap-built-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(1,55,61,.08);
  border-radius: 24px;
  overflow: hidden;
}
.ap-built-card-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--dt-lime-dark);
  margin-bottom: 8px;
}
.ap-built-card-t {
  font-family: var(--dt-font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--dt-teal);
  letter-spacing: -.3px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.ap-built-card-d { font-size: 14px; line-height: 1.55; color: var(--dt-fg-muted); }

/* Integrations card content */
.ap-built-integ { padding: 32px 32px 28px; }
.ap-built-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(1,55,61,.06);
}
.ap-built-logo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px;
  background: #faf6ee;
  border: 1px solid rgba(1,55,61,.06);
  border-radius: 12px;
  transition: all .2s;
}
.ap-built-logo:hover {
  background: #fff;
  border-color: rgba(155,200,50,.30);
}
.ap-built-logo-img {
  display: inline-block;
  width: 28px; height: 28px;
  background-color: var(--dt-teal);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  -webkit-mask-mode: alpha; mask-mode: alpha;
}
.ap-built-logo[title="AWS"] .ap-built-logo-img,
.ap-built-logo[title="OpenAI"] .ap-built-logo-img,
.ap-built-logo[title="Genesys"] .ap-built-logo-img {
  width: 64px; height: 22px;
}

/* Human card — photo on top half, copy on bottom, with diagonal cut */
.ap-built-human {
  display: flex; flex-direction: column;
  padding: 0;
}
.ap-built-photo {
  position: relative;
  height: 280px;
  overflow: hidden;
  /* Diagonal cut at the bottom — slants toward the copy section */
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.ap-built-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.ap-built-human-copy {
  padding: 24px 32px 32px;
}
@media (max-width: 600px) {
  .ap-built-photo { height: 220px; }
}

/* ── COMPLIANCE ────────────────────────────────────────── */
.ap-comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 700px) { .ap-comp-grid { grid-template-columns: 1fr; } }
.ap-comp-card {
  padding: 24px 24px 26px;
  background: #fff;
  border: 1px solid rgba(1,55,61,.08);
  border-radius: 16px;
}
.ap-comp-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(206,199,255,.20);
  border: 1px solid rgba(206,199,255,.40);
  color: var(--dt-teal);
  margin-bottom: 14px;
}
.ap-comp-card-t {
  font-family: var(--dt-font-display);
  font-size: 16px; font-weight: 700;
  color: var(--dt-teal);
  margin-bottom: 6px;
  letter-spacing: -.2px;
}
.ap-comp-card-d { font-size: 13.5px; line-height: 1.5; color: var(--dt-fg-muted); }

/* ── OTHER AGENTS ──────────────────────────────────────── */
.ap-others-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
@media (max-width: 1000px) { .ap-others-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .ap-others-grid { grid-template-columns: 1fr; } }
.ap-others-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 22px;
  background: #fff;
  border: 1px solid rgba(1,55,61,.10);
  border-radius: 16px;
  transition: all .25s var(--dt-ease-out);
}
.ap-others-card:hover {
  border-color: rgba(155,200,50,.40);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(1,55,61,.10);
}
.ap-others-name {
  font-family: var(--dt-font-display);
  font-size: 18px; font-weight: 700;
  color: var(--dt-teal);
  letter-spacing: -.2px;
}
.ap-others-d { font-size: 13.5px; line-height: 1.5; color: var(--dt-fg-muted); flex: 1; }
.ap-others-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--dt-lime-dark);
  margin-top: 6px;
}
