/* ============================================================
   BULK COMMUNICATION PAGE — page-specific parts.
   Builds on ai-agent-modern.css and qa-modern.css.
   ============================================================ */
.bk-page {
  --bk-wa: #22c55e;
}

/* ── Hero ────────────────────────────────────────────── */
.bk-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ag-muted);
  font-size: 13px;
  font-weight: 600;
}
.bk-crumbs a {
  color: var(--ag-muted);
  text-decoration: none;
}
.bk-crumbs a:hover {
  color: var(--ag-indigo);
}
.bk-crumbs b {
  color: var(--ag-ink);
}
.bk-hero h1 {
  max-width: 640px;
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
}
.bk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px !important;
}
.bk-chips a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--ag-line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.bk-chips a svg {
  color: var(--ag-indigo);
}
.bk-chips a:hover {
  border-color: #c7cdfb;
  color: var(--ag-indigo);
  transform: translateY(-2px);
}
.ec-motion .bk-chips li {
  animation: agPop 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.5s + var(--d, 0ms));
}

/* Broadcast hub */
.bk-hub {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  justify-self: center;
}
.bk-hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bk-hub-lines line {
  stroke: #cdd3f8;
  stroke-width: 1.5;
}
.bk-hub-lines .bk-pulse {
  stroke: #6366f1;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 150;
  animation: bkPulse 2s linear infinite;
}
.bk-hub-ring {
  fill: none;
  stroke: #d8dcfa;
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
  transform-origin: 200px 200px;
  animation: agSpin 60s linear infinite;
}
.bk-hub-ring--in {
  stroke: #c9bdfc;
  animation-direction: reverse;
  animation-duration: 40s;
}
.bk-hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--ag-dark);
  color: #fff;
  translate: -50% -50%;
  box-shadow:
    0 0 0 12px rgba(79, 70, 229, 0.1),
    0 24px 50px rgba(11, 16, 38, 0.35);
  animation: bkCore 3s ease-in-out infinite;
}
.bk-hub-core svg {
  margin-bottom: 4px;
  color: #a5b4fc;
}
.bk-hub-core strong {
  font-size: 14px;
}
.bk-hub-core small {
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
}
.bk-node {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 104px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ag-ink);
  font-size: 13px;
  font-weight: 700;
  translate: -50% -50%;
  box-shadow: 0 16px 34px -14px rgba(79, 70, 229, 0.45);
  animation: agBob 5s ease-in-out infinite;
}
.bk-node svg {
  padding: 7px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ag-grad);
  color: #fff;
}
.bk-node--1 {
  left: 50%;
  top: 12.5%;
}
.bk-node--1 svg {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.bk-node--2 {
  left: 85.7%;
  top: 38.4%;
  animation-delay: -1s;
}
.bk-node--3 {
  left: 72%;
  top: 80.3%;
  animation-delay: -2s;
}
.bk-node--4 {
  left: 28%;
  top: 80.3%;
  animation-delay: -3s;
}
.bk-node--5 {
  left: 14.3%;
  top: 38.4%;
  animation-delay: -4s;
}
.bk-stats dt span {
  font-size: clamp(26px, 2.6vw, 36px);
}

/* ── Quote ───────────────────────────────────────────── */
.bk-quote-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px !important;
}
.bk-quote-channels li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
}
.bk-quote-channels svg {
  color: #a5b4fc;
}

/* ── Channel sections ────────────────────────────────── */
.bk-channel .ag-label b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ag-grad);
  color: #fff;
}
.bk-channel h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}
.bk-channel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.bk-channel-grid--flip .bk-channel-intro {
  order: 2;
}
.bk-channel-intro {
  position: sticky;
  top: 96px;
}
.bk-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bk-feature {
  padding: 22px;
}
.bk-feature .ag-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.bk-feature h3 {
  margin-top: 16px;
  font-size: 16.5px;
}
.bk-feature p {
  font-size: 14px;
}

/* Channel mocks */
.bk-mock-wrap {
  margin-top: 28px;
}
.bk-mock {
  width: min(100%, 380px);
  padding: 18px;
  border: 1px solid var(--ag-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
  animation: agBob 6s ease-in-out infinite;
}
.bk-mock-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ag-line);
}
.bk-mock-top strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}
.bk-mock-top strong svg {
  color: var(--bk-wa);
}
.bk-mock-top small {
  color: var(--ag-muted);
  font-size: 12px;
}
.bk-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ag-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.bk-avatar--sms {
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
}

/* WhatsApp */
.bk-mock--wa .bk-chat {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #efeae2;
}
.bk-bubble {
  max-width: 85%;
  padding: 9px 11px;
  border-radius: 12px 12px 12px 3px;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.bk-bubble--media .bk-media {
  display: block;
  height: 70px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, #c7d2fe, #a78bfa 55%, #7dd3fc);
}
.bk-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.bk-btns b {
  padding: 6px;
  border-top: 1px solid #e2e8f0;
  color: #0284c7;
  font-size: 12px;
  text-align: center;
}
.bk-bubble small {
  display: block;
  margin-top: 4px;
  color: #3b82f6;
  font-size: 10.5px;
  text-align: right;
}
.bk-bubble--me {
  justify-self: end;
  border-radius: 12px 12px 3px 12px;
  background: #d9fdd3;
}
.ec-motion .bk-bubble {
  animation: bkMsg 0.5s ease both;
}
.ec-motion .bk-bubble--me {
  animation-delay: 1.2s;
}

/* OTP */
.bk-mock--otp {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 20px;
  background: linear-gradient(180deg, #111735, #0b1026);
  border-color: transparent;
  color: #fff;
  text-align: center;
}
.bk-mock--otp > svg {
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ag-grad);
}
.bk-otp {
  display: flex;
  gap: 8px;
}
.bk-otp span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font: 800 20px/1 ui-monospace, Menlo, Consolas, monospace;
}
.ec-motion .bk-otp span {
  animation: bkDigit 4s ease-in-out infinite;
  animation-delay: var(--d, 0ms);
}
.bk-mock--otp small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a5b4fc;
  font-size: 12px;
}

/* SMS */
.bk-sms {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  background: #eef2ff;
}
.bk-sms p {
  color: #1e293b;
  font-size: 13px;
  line-height: 1.45;
}
.bk-sms small {
  display: block;
  margin-top: 6px;
  color: var(--ag-indigo);
  font-size: 11px;
  font-weight: 700;
}
.bk-sms--promo {
  background: #f5f3ff;
}
.ec-motion .bk-sms {
  animation: bkMsg 0.5s ease both;
}
.ec-motion .bk-sms--promo {
  animation-delay: 0.9s;
}

/* Email */
.bk-inbox-tabs {
  display: flex;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ag-line);
  color: var(--ag-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.bk-inbox-tabs b {
  color: var(--ag-indigo);
  box-shadow: 0 2px 0 var(--ag-indigo);
}
.bk-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 6px;
  border-bottom: 1px solid #f1f3f9;
}
.bk-mail strong {
  display: block;
  font-size: 13.5px;
}
.bk-mail small {
  color: var(--ag-muted);
  font-size: 11.5px;
}
.bk-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ag-indigo);
}
.ec-motion .bk-mail {
  animation: bkMsg 0.5s ease both;
  animation-delay: calc(0.3s + var(--d, 0ms));
}
.bk-mail-stats {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.bk-mail-stats span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7f8f1;
  color: #047857;
  font-size: 11.5px;
  font-weight: 700;
}

/* Voice */
.bk-mock--voice {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px 20px;
  text-align: center;
}
.bk-call-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  animation: bkRing 2s ease-in-out infinite;
}
.bk-mock--voice strong {
  font-size: 14.5px;
}
.bk-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}
.bk-wave i {
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: var(--ag-grad);
  animation: bkWave 1s ease-in-out infinite alternate;
}
.bk-keys {
  display: grid;
  gap: 6px;
  width: 100%;
}
.bk-keys span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ag-soft);
  font-size: 13px;
  font-weight: 600;
}
.bk-keys b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ag-dark);
  color: #fff;
}

/* ── Why choose ──────────────────────────────────────── */
.bk-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.bk-why-grid .qa-soft-card h3 {
  font-size: 17px;
}

/* ── Final ───────────────────────────────────────────── */
.bk-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.bk-final .ag-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.bk-final-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 26px !important;
}
.bk-final-checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e2e8f0;
  font-size: 14.5px;
  font-weight: 600;
}
.bk-final-checks svg {
  flex: none;
  color: #34d399;
}
.bk-trial {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(79, 70, 229, 0.28), rgba(124, 58, 237, 0.12));
}
.bk-trial-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--ag-grad);
  color: #fff;
}
.bk-trial strong {
  margin-top: 6px;
  color: #fff;
  font: 800 22px/1.25 var(--font-primary, sans-serif);
}
.bk-trial small {
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.6;
}
.bk-trial .ag-cta {
  margin-top: 10px;
}
.bk-trial p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #94a3b8;
  font-size: 13px;
}

/* ── Motion ──────────────────────────────────────────── */
@keyframes bkPulse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -164;
  }
}
@keyframes bkCore {
  50% {
    box-shadow:
      0 0 0 20px rgba(79, 70, 229, 0.05),
      0 24px 50px rgba(11, 16, 38, 0.35);
  }
}
@keyframes bkMsg {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes bkDigit {
  0%,
  70%,
  100% {
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  10% {
    border-color: #818cf8;
    color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
  }
}
@keyframes bkRing {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
}
@keyframes bkWave {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .bk-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bk-channel-grid,
  .bk-final-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bk-channel-grid--flip .bk-channel-intro {
    order: 0;
  }
  .bk-channel-intro {
    position: static;
  }
  .bk-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bk-hero h1 {
    font-size: 2.2rem;
  }
  .bk-node {
    min-width: 0;
    padding: 8px 10px;
    font-size: 11px;
  }
  .bk-node svg {
    width: 30px;
    height: 30px;
    padding: 6px;
  }
  .bk-hub-core {
    width: 96px;
    height: 96px;
  }
  .bk-hub-core strong {
    font-size: 12px;
  }
  .bk-features,
  .bk-why-grid,
  .bk-final-checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .bk-otp span {
    width: 32px;
    height: 40px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-hub-lines .bk-pulse,
  .bk-hub-ring,
  .bk-hub-core,
  .bk-node,
  .bk-mock,
  .bk-otp span,
  .bk-call-ico,
  .bk-wave i,
  .bk-bubble,
  .bk-sms,
  .bk-mail {
    animation: none !important;
  }
}
