/* ===================================================================
 * LiveSpark Agency Plan LP
 * Builds on src/lp.css so the page stays visually tied to the main LP.
 * =================================================================*/

.agency-nav {
  gap: 22px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1;
}

.badge-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #07101a;
  background: var(--brand-mint);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.35);
}

.agency-hero {
  position: relative;
  padding: 70px 0 44px;
}

.agency-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: 52px;
}

.agency-hero-copy {
  min-width: 0;
}

.agency-hero-title {
  margin: 18px 0 22px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.13;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.agency-hero-title .accent,
.agency-panel-top h2,
.gift-message strong {
  background: var(--grad-holo);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: holoShift 8s ease-in-out infinite;
}

.agency-title-line {
  display: inline-block;
}

.agency-hero-sub {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--text-2);
  font-size: clamp(15px, 1.65vw, 17px);
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.agency-hero-panel {
  position: relative;
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(170, 190, 255, 0.22);
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(77, 137, 255, 0.18), transparent 64%),
    radial-gradient(ellipse 70% 75% at 100% 100%, rgba(168, 85, 247, 0.22), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(16, 19, 38, 0.74);
  box-shadow:
    0 40px 90px -34px rgba(110, 99, 255, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.agency-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.55), transparent 36%, transparent 64%, rgba(236, 72, 153, 0.48));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.agency-panel-top,
.gift-livebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.agency-panel-kicker,
.mini-label,
.gift-message span {
  margin: 0;
  color: var(--text-3);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.agency-panel-top h2 {
  margin: 2px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 900;
  max-width: 360px;
}

.agency-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #bfffe1;
  background: rgba(34, 224, 122, 0.08);
  border: 1px solid rgba(34, 224, 122, 0.24);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.agency-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  margin-top: 20px;
}

.agency-video-card {
  position: relative;
  min-height: 310px;
  border-radius: 22px;
  overflow: hidden;
  background: #080a14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.8);
}

.agency-video-card video,
.agency-demo-image {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  opacity: 0.88;
}

.agency-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(4, 6, 15, 0.88) 100%),
    linear-gradient(90deg, rgba(4, 6, 15, 0.42), transparent 45%);
  pointer-events: none;
}

.agency-video-caption {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.agency-video-caption span {
  display: block;
  color: var(--brand-cyan);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agency-video-caption strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.35;
}

.agency-side-stack {
  display: grid;
  gap: 14px;
}

.agency-mini-card {
  min-width: 0;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(9, 12, 28, 0.72);
}

.agency-mini-card strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.agency-mini-card .num {
  font-size: 44px;
  line-height: 0.95;
  color: #fff;
}

.agency-mini-card span:last-child {
  color: var(--text-3);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
}

.agency-roster {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.roster-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.roster-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
}

.roster-avatar.tone-cyan {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
}

.roster-avatar.tone-gold {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-pink));
}

.roster-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.roster-status {
  padding: 4px 9px;
  border-radius: 999px;
  color: #dce7ff;
  background: rgba(77, 137, 255, 0.16);
  border: 1px solid rgba(77, 137, 255, 0.28);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.roster-status.special {
  color: #ffe6b6;
  background: rgba(255, 197, 107, 0.14);
  border-color: rgba(255, 197, 107, 0.34);
}

.agency-note-panel {
  padding: 22px 26px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(77, 137, 255, 0.16), rgba(168, 85, 247, 0.14), rgba(34, 211, 238, 0.12)),
    rgba(22, 26, 50, 0.45);
  border: 1px solid rgba(170, 190, 255, 0.18);
}

.agency-note-panel p {
  margin: 0;
}

.agency-check-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.agency-check-item,
.agency-feature-card,
.agency-benefit-grid article,
.agency-flow article {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.015)),
    var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.agency-check-item {
  min-height: 150px;
  padding: 22px 18px;
}

.agency-check-item span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: #07101a;
  background: var(--brand-mint);
  font-weight: 900;
}

.agency-check-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.75;
}

.agency-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.agency-feature-card {
  padding: 30px 26px;
  overflow: hidden;
}

.agency-feature-card::before,
.agency-benefit-grid article::before,
.agency-flow article::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 190, 255, 0.42), transparent);
}

.agency-feature-card-strong {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(94, 234, 212, 0.16), transparent 65%),
    radial-gradient(ellipse 90% 70% at 0% 100%, rgba(236, 72, 153, 0.13), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(22, 26, 50, 0.58);
  border-color: rgba(170, 190, 255, 0.24);
}

.agency-card-index {
  margin-bottom: 22px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 206, 255, 0.5);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.agency-feature-card h3,
.agency-overlay-points h3,
.agency-benefit-grid h3,
.agency-flow h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

.agency-feature-card p,
.agency-overlay-copy p,
.agency-overlay-points p,
.agency-benefit-grid p,
.agency-flow p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.85;
}

.agency-overlay-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)),
    rgba(6, 8, 20, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.agency-overlay-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 52px;
}

.agency-overlay-copy .section-title {
  text-align: left;
  margin-bottom: 18px;
}

.agency-overlay-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.agency-overlay-points article {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.agency-gift-stage {
  min-width: 0;
  padding: 1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(77, 137, 255, 0.5), rgba(168, 85, 247, 0.38), rgba(34, 211, 238, 0.42));
  box-shadow: 0 30px 80px -30px rgba(34, 211, 238, 0.42);
}

.gift-screen {
  position: relative;
  min-height: 520px;
  border-radius: calc(var(--radius-xl) - 1px);
  overflow: hidden;
  padding: 20px;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(ellipse 80% 65% at 50% 35%, rgba(77, 137, 255, 0.24), transparent 68%),
    linear-gradient(180deg, #151b38 0%, #070914 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.gift-livebar {
  position: relative;
  z-index: 2;
  color: var(--text-3);
  font-size: 12px;
}

.gift-box {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(68%, 340px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.46));
  animation: giftFloat 4.6s ease-in-out infinite;
}

.gift-box-asset {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22px;
}

@keyframes giftFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

.gift-lid,
.gift-body {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04)),
    linear-gradient(135deg, #4D89FF, #A855F7 54%, #EC4899);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.gift-lid {
  top: 6%;
  height: 28%;
  transform: rotate(-2deg);
}

.gift-body {
  top: 34%;
  bottom: 0;
}

.gift-ribbon {
  position: absolute;
  top: 3%;
  bottom: 0;
  left: 50%;
  width: 22%;
  transform: translateX(-50%);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFDC8A, #FFB347 54%, #F472B6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  z-index: 2;
}

.gift-logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 58%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 24px;
  color: #07101a;
  background: rgba(255, 255, 255, 0.88);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.55);
}

.gift-message {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.gift-message strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
}

.agency-pricing-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 197, 107, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    var(--panel);
  border: 1px solid rgba(170, 190, 255, 0.2);
  box-shadow: var(--shadow-card);
}

.agency-price-table {
  display: grid;
  gap: 10px;
}

.agency-price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 17px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.agency-price-head {
  color: var(--text-3);
  background: transparent;
  border-color: transparent;
  padding-top: 0;
  padding-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.agency-price-row strong {
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
}

.agency-price-note {
  margin: 20px 0 0;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.8;
}

.agency-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.agency-benefit-grid article {
  padding: 24px 20px;
}

.agency-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.agency-flow article {
  padding: 26px 20px;
}

.agency-flow span {
  display: block;
  margin-bottom: 18px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 206, 255, 0.48);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.faq-chevron {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .agency-nav .nav-link {
    display: none;
  }

  .agency-hero-grid,
  .agency-overlay-grid {
    grid-template-columns: 1fr;
  }

  .agency-hero-panel,
  .agency-gift-stage {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
  }

  .agency-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-check-item:last-child {
    grid-column: 1 / -1;
  }

  .agency-benefit-grid,
  .agency-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .agency-hero {
    padding-top: 48px;
  }

  .agency-feature-grid {
    grid-template-columns: 1fr;
  }

  .agency-preview-grid {
    grid-template-columns: 1fr;
  }

  .agency-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-video-card,
  .agency-video-card video,
  .agency-demo-image {
    min-height: 360px;
  }

  .agency-overlay-copy .section-title {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .agency-nav {
    margin-right: 0;
  }

  .agency-nav .nav-cta {
    display: none !important;
  }

  .agency-hero-title {
    font-size: clamp(33px, 10vw, 40px);
  }

  .agency-hero-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .agency-panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .agency-video-card,
  .agency-video-card video,
  .agency-demo-image {
    min-height: 330px;
  }

  .agency-side-stack,
  .agency-check-grid,
  .agency-benefit-grid,
  .agency-flow {
    grid-template-columns: 1fr;
  }

  .agency-check-item:last-child {
    grid-column: auto;
  }

  .gift-screen {
    min-height: 430px;
    padding: 16px;
  }

  .gift-box {
    width: 72%;
  }

  .gift-message {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .agency-price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .agency-price-head {
    display: none;
  }
}
