/* Agency / landing pricing page — modern redesign */
:root {
  --ap-brand: #2f5bff;
  --ap-brand-dark: #2448d8;
  --ap-accent: #5b6ef5;
  --ap-ink: #0e1736;
  --ap-text: #42506c;
  --ap-muted: #6f7c95;
  --ap-line: #e5eaf4;
  --ap-soft: #f5f7fc;
  --ap-success: #13a876;
  --ap-white: #fff;
}

/* Light hero pages: keep existing ud-header readable (dark logo / links) */
body.agency-pricing-page .ud-header,
body.agency-light-page .ud-header {
  background-color: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 -1px 0 0 rgba(229, 234, 244, .95);
}

body.agency-pricing-page .ud-header .navbar-toggler .toggler-icon,
body.agency-light-page .ud-header .navbar-toggler .toggler-icon {
  background-color: var(--ap-ink);
}

body.agency-pricing-page .ud-header .navbar-nav .nav-item > a,
body.agency-light-page .ud-header .navbar-nav .nav-item > a {
  color: #4c5871;
}

body.agency-pricing-page .ud-header .navbar-nav .nav-item > a:hover,
body.agency-pricing-page .ud-header .navbar-nav .nav-item > a.active,
body.agency-light-page .ud-header .navbar-nav .nav-item > a:hover,
body.agency-light-page .ud-header .navbar-nav .nav-item > a.active {
  color: var(--ap-brand);
  opacity: 1;
}

body.agency-pricing-page .ud-header .navbar-btn .ud-white-btn,
body.agency-light-page .ud-header .navbar-btn .ud-white-btn {
  background: linear-gradient(110deg, var(--ap-brand), #4f6ef7);
  color: #fff;
  border: 0;
}

body.agency-pricing-page .ud-header .navbar-btn .ud-white-btn:hover,
body.agency-light-page .ud-header .navbar-btn .ud-white-btn:hover {
  background: var(--ap-brand-dark);
  color: #fff;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  body.agency-pricing-page .ud-header .navbar-collapse,
  body.agency-light-page .ud-header .navbar-collapse {
    border: 1px solid var(--ap-line);
  }
}

.agency-pricing-hero,
.agency-page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 7% 20%, rgba(18, 214, 160, .08), transparent 24%),
    radial-gradient(circle at 91% 5%, rgba(47, 91, 255, .12), transparent 27%),
    linear-gradient(180deg, #fbfcff 0%, #f0f4ff 100%);
}

.agency-pricing-hero {
  padding: 140px 0 30px;
}

.agency-page-hero {
  padding: 132px 0 72px;
}

.agency-pricing-hero::before,
.agency-pricing-hero::after,
.agency-page-hero::before,
.agency-page-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.agency-pricing-hero::before,
.agency-page-hero::before {
  width: 380px;
  height: 380px;
  top: -250px;
  left: 50%;
  border: 1px solid rgba(47, 91, 255, .1);
  box-shadow: 0 0 0 65px rgba(47, 91, 255, .025), 0 0 0 130px rgba(47, 91, 255, .018);
  transform: translateX(-50%);
}

.agency-pricing-hero::after,
.agency-page-hero::after {
  width: 14px;
  height: 14px;
  top: 100px;
  right: 13%;
  background: rgba(47, 91, 255, .45);
  box-shadow:
    -78vw 170px 0 0 rgba(18, 214, 160, .4),
    -8vw 220px 0 0 rgba(47, 91, 255, .4);
  filter: blur(5px);
  opacity: .7;
}

.agency-page-hero .container {
  position: relative;
  z-index: 1;
}

.agency-page-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  color: var(--ap-ink);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.agency-page-hero .agency-pricing-eyebrow {
  margin-bottom: 1rem;
}

.agency-page-hero-copy {
  max-width: 620px;
  margin: .85rem auto 0;
  color: #5c6982;
  font-size: 1.02rem;
  line-height: 1.7;
}

.agency-pricing-hero .container {
  position: relative;
  z-index: 1;
}

.agency-pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .48rem .8rem;
  color: var(--ap-brand);
  border: 1px solid #dce4ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(36, 72, 216, .06);
}

.agency-pricing-hero h1 {
  max-width: 790px;
  margin: 1.15rem auto .9rem;
  color: var(--ap-ink);
  font-size: clamp(2.2rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.agency-pricing-gradient-text {
  color: var(--ap-brand);
  background: linear-gradient(105deg, #2f5bff, #4f6ef7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.agency-pricing-hero-copy {
  max-width: 630px;
  margin: 0 auto;
  color: #5c6982;
  font-size: 1.05rem;
  line-height: 1.75;
}

.agency-pricing-hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1.25rem;
  padding: 0;
  margin: 1.45rem 0 0;
  list-style: none;
  color: #4f5d76;
  font-size: .83rem;
  font-weight: 650;
}

.agency-pricing-hero-proof i {
  margin-right: .36rem;
  color: var(--ap-success);
}

/* Pricing section */
.agency-pricing-section {
  position: relative;
  padding: 0 0 72px;
  background: #fff;
  margin-top: 121px;
}

.agency-pricing-shell {
  position: relative;
  z-index: 2;
  margin-top: -96px;
}

.agency-pricing-billing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  max-width: 960px;
  padding: .65rem .7rem .65rem 1.2rem;
  margin: 0 auto 1.35rem;
  border: 1px solid var(--ap-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 50px rgba(17, 31, 72, .08);
}

.agency-pricing-billing-caption {
  display: flex;
  align-items: center;
  gap: .62rem;
  color: #4e5d78;
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
}

.agency-pricing-billing-caption i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ap-brand);
  border-radius: 9px;
  background: #edf2ff;
}

.agency-pricing-billing-count {
  padding: .25rem .48rem;
  color: var(--ap-brand);
  border-radius: 999px;
  background: #edf2ff;
  font-size: .64rem;
  font-weight: 800;
}

.agency-pricing-billing-picker {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: .4rem;
  margin-left: auto;
  max-width: 100%;
  width: max-content;
  min-width: 0;
}

.agency-pricing-billing-viewport {
  flex: 0 1 auto;
  width: max-content;
  max-width: min(100%, 520px);
  min-width: 0;
  overflow: hidden;
  border-radius: 13px;
  background: #f1f4fa;
}

.agency-pricing-billing-switch {
  display: flex;
  gap: .25rem;
  padding: .25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.agency-pricing-billing-switch::-webkit-scrollbar {
  display: none;
}

.agency-pricing-billing-switch a,
.agency-pricing-billing-switch button {
  flex: 0 0 auto;
  min-width: 88px;
  padding: .62rem .85rem;
  color: #63708a;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: .78rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  scroll-snap-align: center;
  transition: .2s ease;
  white-space: nowrap;
}

.agency-pricing-billing-switch a:hover,
.agency-pricing-billing-switch button:hover {
  color: var(--ap-ink);
}

.agency-pricing-billing-switch a.active,
.agency-pricing-billing-switch button.active {
  color: var(--ap-brand);
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 54, .09);
}

.agency-pricing-billing-switch a.ppu-opt {
  color: #b45309;
  font-weight: 800;
}

.agency-pricing-billing-switch a.ppu-opt.active {
  color: #92400e;
  background: #fff7ed;
}

.agency-pricing-billing-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #63708a;
  border: 1px solid #e2e7f1;
  border-radius: 10px;
  background: #fff;
  font-size: .72rem;
  cursor: pointer;
  transition: .2s ease;
}

.agency-pricing-billing-arrow:hover:not(:disabled) {
  color: var(--ap-brand);
  border-color: #cdd8ff;
  background: #f7f9ff;
}

.agency-pricing-billing-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* Plans grid */
.agency-pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.agency-pricing-plans[data-count="1"] {
  max-width: 420px;
}

.agency-pricing-plans[data-count="2"] {
  max-width: 960px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agency-pricing-plans[data-count="3"] {
  max-width: 1100px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agency-plan-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(17, 31, 72, .08);
  text-align: left;
}

.agency-plan-card.premium {
  color: #fff;
  border-color: #243ca3;
  background:
    radial-gradient(circle at 92% 8%, rgba(91, 110, 245, .45), transparent 28%),
    radial-gradient(circle at 4% 90%, rgba(18, 214, 160, .14), transparent 27%),
    linear-gradient(145deg, #15245c 0%, #213c9b 52%, #2a3a9e 100%);
  box-shadow: 0 28px 70px rgba(36, 63, 170, .25);
}

.agency-plan-card.premium::before {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, #7de5ff, #c8b9ff, transparent);
}

.agency-plan-card.whitelabel {
  border-color: #f0d9a8;
  background:
    radial-gradient(circle at 90% 0%, rgba(251, 191, 36, .12), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, #fff 100%);
}

.agency-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.agency-plan-label {
  display: block;
  margin-bottom: .35rem;
  color: #8793aa;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.agency-plan-card.premium .agency-plan-label {
  color: #bdcafa;
}

.agency-plan-card.whitelabel .agency-plan-label {
  color: #b45309;
}

.agency-plan-title {
  margin: 0;
  color: var(--ap-ink);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.agency-plan-card.premium .agency-plan-title {
  color: #fff;
}

.agency-plan-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ap-brand);
  border: 1px solid #dfe6fa;
  border-radius: 13px;
  background: #f5f7ff;
  font-size: 1rem;
}

.agency-plan-card.whitelabel .agency-plan-icon {
  color: #b45309;
  border-color: #f5e0b8;
  background: #fff8eb;
}

.agency-popular-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .65rem;
  color: #14205a;
  border-radius: 999px;
  background: #fff;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .045em;
  white-space: nowrap;
}

.agency-popular-badge.wl {
  color: #78350f;
  background: #fef3c7;
}

.agency-plan-description {
  min-height: 0;
  margin: 1rem 0 0;
  color: #69768e;
  font-size: .84rem;
  line-height: 1.55;
}

.agency-plan-card.premium .agency-plan-description {
  color: #d5defa;
}

.agency-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .35rem .55rem;
  min-height: 56px;
  margin: 1.1rem 0 .75rem;
  color: var(--ap-ink);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
}

.agency-plan-card.premium .agency-plan-price {
  color: #fff;
}

.agency-plan-price small,
.agency-plan-price .period {
  margin: 0 0 .15rem;
  color: #7a879e;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 0;
}

.agency-plan-card.premium .agency-plan-price small,
.agency-plan-card.premium .agency-plan-price .period {
  color: #c8d2f5;
}

.agency-plan-save {
  display: inline-flex;
  align-items: center;
  padding: .3rem .55rem;
  margin: 0 0 .55rem;
  color: #0f766e;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .72rem;
  font-weight: 750;
}

.agency-plan-card:not(.premium) .agency-plan-save {
  color: var(--ap-success);
  border-color: #c7efe0;
  background: #eefbf5;
}

.agency-plan-discount-terms {
  margin: 0 0 .85rem;
  color: #8490a5;
  font-size: .78rem;
  line-height: 1.45;
}

.agency-plan-card.premium .agency-plan-discount-terms {
  color: #bdc8ea;
}

.agency-channel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf0f6;
  font-size: 1.15rem;
}

.agency-plan-card.premium .agency-channel-row {
  border-color: rgba(255, 255, 255, .15);
}

.agency-channel-row i {
  margin: 0 .1rem;
}

.agency-subscriber-control {
  padding: .85rem .95rem .75rem;
  margin: .95rem 0 .15rem;
  border: 1px solid #e8edf7;
  border-radius: 14px;
  background: #f7f9fc;
}

.agency-plan-card.premium .agency-subscriber-control {
  border-color: rgba(255, 255, 255, .17);
  background: rgba(255, 255, 255, .09);
}

.agency-subscriber-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .62rem;
  color: #5b6880;
  font-size: .75rem;
  font-weight: 700;
}

.agency-plan-card.premium .agency-subscriber-top {
  color: #d9e1fb;
}

.agency-subscriber-top strong {
  color: var(--ap-ink);
  font-size: .9rem;
}

.agency-plan-card.premium .agency-subscriber-top strong {
  color: #fff;
}

.agency-subscriber-control input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  accent-color: var(--ap-brand);
  cursor: pointer;
}

.agency-plan-card.premium .agency-subscriber-control input[type="range"] {
  accent-color: #9be6ff;
}

.agency-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .55rem;
  color: #5b6880;
  font-size: .75rem;
  font-weight: 700;
}

.agency-user-row strong {
  color: #b45309;
  font-size: .9rem;
}

.agency-included-title {
  margin: 1.15rem 0 .35rem;
  color: #4f5c75;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.agency-plan-card.premium .agency-included-title {
  color: #bdc8eb;
}

.agency-feature-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0 0 1.4rem;
  list-style: none;
}

.agency-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .5rem 0;
  color: #4b5871;
  border-bottom: 1px solid #f0f2f7;
  font-size: .8rem;
  line-height: 1.4;
  text-align: left;
}

.agency-feature-list li:last-child {
  border-bottom: 0;
}

.agency-feature-list i {
  margin-top: .12rem;
  flex: 0 0 auto;
  color: var(--ap-success);
}

.agency-feature-list .unavailable,
.agency-feature-list .unavailable i {
  color: #9ba5b7;
}

.agency-plan-card.premium .agency-feature-list li {
  color: #eff3ff;
  border-color: rgba(255, 255, 255, .11);
}

.agency-plan-card.premium .agency-feature-list i {
  color: #7cf0cd;
}

.agency-plan-card.premium .agency-feature-list .unavailable,
.agency-plan-card.premium .agency-feature-list .unavailable i {
  color: #9da9d0;
}

.agency-plan-card.premium .agency-feature-list .text-warning {
  color: #fcd34d !important;
}

.agency-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  padding: .84rem 1rem;
  margin-top: auto;
  color: var(--ap-brand);
  border: 1px solid #d9e1fa;
  border-radius: 12px;
  background: #f5f7ff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  transition: .2s ease;
}

.agency-plan-button:hover {
  color: var(--ap-brand-dark);
  border-color: #becafa;
  transform: translateY(-1px);
  text-decoration: none;
}

.agency-plan-card.premium .agency-plan-button {
  color: #223eae;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 12px 25px rgba(7, 17, 66, .2);
}

.agency-plan-card.whitelabel .agency-plan-button {
  color: #92400e;
  border-color: #f5e0b8;
  background: #fff8eb;
}

.agency-channel-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1.6rem;
  padding: 1.65rem 1rem 0;
  color: #78859c;
  font-size: .76rem;
  font-weight: 750;
}

.agency-channel-strip span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}

.agency-channel-strip i {
  color: var(--ap-brand);
  font-size: .92rem;
}

/* Features + CTA */
.agency-pricing-features {
  padding: 80px 0;
  background: var(--ap-soft);
}

.agency-pricing-section-head {
  max-width: 650px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.agency-pricing-section-tag {
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--ap-brand);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.agency-pricing-section-head h2 {
  margin: 0 0 .7rem;
  color: var(--ap-ink);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.agency-pricing-section-head p {
  margin: 0;
  color: var(--ap-muted);
  font-size: .96rem;
  line-height: 1.65;
}

.agency-benefit-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--ap-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 31, 72, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.agency-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(17, 31, 72, .09);
}

.agency-benefit-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 1.15rem;
  place-items: center;
  color: var(--ap-brand);
  border-radius: 13px;
  background: #edf2ff;
  font-size: 1.05rem;
}

.agency-benefit-card.tone-2 .agency-benefit-icon {
  color: #4f6ef7;
  background: #eef1ff;
}

.agency-benefit-card.tone-3 .agency-benefit-icon {
  color: #0c9e73;
  background: #e9faf4;
}

.agency-benefit-card.tone-4 .agency-benefit-icon {
  color: #df7a12;
  background: #fff5e8;
}

.agency-benefit-card h3 {
  margin: 0 0 .55rem;
  font-size: 1rem;
  font-weight: 790;
  letter-spacing: -.02em;
  color: var(--ap-ink);
}

.agency-benefit-card p {
  margin: 0;
  color: #6b7890;
  font-size: .82rem;
  line-height: 1.65;
}

.agency-pricing-final-cta {
  padding: 72px 0 40px;
  background: #fff;
}

.agency-cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.75rem;
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 15%, rgba(79, 110, 247, .55), transparent 30%),
    linear-gradient(125deg, #101d49, #203b9b);
  box-shadow: 0 28px 65px rgba(24, 48, 126, .2);
}

.agency-cta-panel::after {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -170px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .035), 0 0 0 84px rgba(255, 255, 255, .025);
}

.agency-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.agency-cta-copy span {
  color: #a9f0dc;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.agency-cta-copy h2 {
  margin: .65rem 0 .6rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
}

.agency-cta-copy p {
  margin: 0;
  color: #cbd5f1;
  font-size: .9rem;
  line-height: 1.65;
}

.agency-cta-btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .9rem 1.25rem;
  color: #2446c5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(5, 15, 58, .25);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.agency-cta-btn:hover {
  color: #17379f;
  transform: translateY(-2px);
  text-decoration: none;
}

.agency-page-content {
  padding-top: 1.5rem;
}

/* Addon pricing page */
.agency-addons-section {
  position: relative;
  padding: 40px 0 16px;
  background: #fff;
}

.agency-addons-section.agency-page-content {
  padding-top: 40px;
}

.agency-addons-section + .agency-pricing-final-cta {
  padding-top: 28px;
}

.agency-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.agency-addon-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.65rem 1.65rem 1.35rem;
  overflow: hidden;
  border: 1px solid #d9e0f5;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 91, 255, .07), transparent 42%),
    #fff;
  box-shadow: 0 18px 48px rgba(17, 31, 72, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.agency-addon-card::before {
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, #7de5ff, #8ea2ff, transparent);
}

.agency-addon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(33, 60, 155, .14);
}

.agency-addon-card-top {
  margin-bottom: 1rem;
}

.agency-addon-title {
  margin: 0 0 .85rem;
  color: var(--ap-ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
}

.agency-addon-variation,
.agency-addon-title .addon_variation_class {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: .62rem .85rem;
  color: var(--ap-ink);
  border: 1px solid var(--ap-line);
  border-radius: 12px;
  background: #f7f9ff;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ap-brand) 50%),
    linear-gradient(135deg, var(--ap-brand) 50%, transparent 50%),
    linear-gradient(to right, #f7f9ff, #f7f9ff);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.agency-addon-variation:focus,
.agency-addon-title .addon_variation_class:focus {
  outline: 0;
  border-color: #c8d4ff;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, .12);
}

.agency-addon-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .55rem;
  color: var(--ap-ink);
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.agency-addon-price .put_addon_price {
  color: #1a2f7a;
}

.agency-addon-period,
.agency-addon-price .put_addon_validity {
  display: inline-block;
  margin-left: .15rem;
  color: var(--ap-muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.agency-addon-terms {
  margin: .55rem 0 0;
  color: #8793aa;
  font-size: .78rem;
  line-height: 1.45;
}

.agency-addon-body {
  flex: 1 1 auto;
  max-height: 220px;
  margin: 0 0 1.15rem;
  padding-right: .25rem;
  overflow-y: auto;
  color: #5f6d86;
  font-size: .88rem;
  line-height: 1.65;
}

.agency-addon-body::-webkit-scrollbar {
  width: 5px;
}

.agency-addon-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d7deef;
}

.agency-addon-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  margin-top: auto;
  padding: .85rem 1.1rem;
  color: #fff !important;
  border: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 20%, rgba(91, 110, 245, .45), transparent 40%),
    linear-gradient(145deg, #15245c 0%, #213c9b 52%, #2a3a9e 100%);
  box-shadow: 0 14px 28px rgba(33, 60, 155, .28);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.agency-addon-cta:hover {
  color: #fff !important;
  filter: brightness(1.06);
  box-shadow: 0 18px 34px rgba(21, 36, 92, .34);
  transform: translateY(-1px);
}

.agency-addon-cta--ghost {
  width: auto;
  color: var(--ap-brand) !important;
  background: #edf2ff;
  box-shadow: none;
}

.agency-addon-cta--ghost:hover {
  color: var(--ap-brand-dark) !important;
  background: #e2e9ff;
}

.agency-addons-empty {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ap-muted);
}

.agency-addons-empty p {
  margin: 0 0 1rem;
}

@media (max-width: 991.98px) {
  .agency-pricing-hero {
    padding: 120px 0 130px;
  }

  .agency-page-hero {
    padding: 118px 0 56px;
  }

  .agency-pricing-plans[data-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
  }

  .agency-addons-grid {
    max-width: 780px;
  }
}

@media (max-width: 767.98px) {
  .agency-pricing-hero {
    padding: 108px 0 118px;
  }

  .agency-page-hero {
    padding: 104px 0 48px;
  }

  .agency-pricing-hero h1,
  .agency-page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.85rem);
  }

  .agency-pricing-hero-copy {
    font-size: .96rem;
  }

  .agency-pricing-shell {
    margin-top: -78px;
  }

  .agency-pricing-billing-bar {
    align-items: stretch;
    flex-direction: column;
    padding: .8rem;
    border-radius: 16px;
  }

  .agency-pricing-billing-caption {
    justify-content: center;
  }

  .agency-pricing-billing-picker {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .agency-pricing-billing-viewport {
    max-width: 100%;
  }

  .agency-pricing-plans,
  .agency-pricing-plans[data-count="2"],
  .agency-pricing-plans[data-count="3"] {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .agency-plan-card {
    padding: 1.55rem;
  }

  .agency-pricing-features {
    padding: 64px 0;
  }

  .agency-pricing-final-cta {
    padding: 52px 0 24px;
  }

  .agency-cta-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem;
  }
}

@media (max-width: 479.98px) {
  .agency-pricing-hero-proof {
    align-items: flex-start;
    flex-direction: column;
    width: max-content;
    margin-inline: auto;
    text-align: left;
  }

  .agency-pricing-billing-caption {
    display: none;
  }

  .agency-pricing-billing-switch a,
  .agency-pricing-billing-switch button {
    min-width: 78px;
    padding-inline: .6rem;
    font-size: .69rem;
  }

  .agency-plan-card {
    padding: 1.3rem;
    border-radius: 22px;
  }

  .agency-plan-price {
    font-size: 2rem;
  }

  .agency-popular-badge {
    padding-inline: .5rem;
    font-size: .58rem;
  }

  .agency-cta-panel {
    padding: 1.6rem;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-benefit-card,
  .agency-plan-button,
  .agency-cta-btn {
    transition: none;
  }
}
