/*
 * Pricing page A/B test, variant B (core/includes/pricing-ab.php).
 * Loaded next to pricing-old.min.css on the English Pricing page while the test
 * runs. Everything is scoped to .iu-pab* so the old design is untouched; which
 * version shows is decided by the inline rules printed with the bucket script.
 * Plain CSS on purpose: it lives only as long as the test.
 */

.iu-pab-head {
	text-align: center;
}

.iu-pab-sub {
	margin: -8px auto 16px;
	max-width: 760px;
	text-wrap: balance;
	font-family: 'Gilroy-Regular', Arial, sans-serif;
	font-size: 18px;
	color: #5d6580;
}

.pricing__plan .iu-pab {
	flex: 0 0 100%;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	font-family: 'Gilroy-Regular', Arial, sans-serif;
	color: #151a2d;
}

/* Monthly / Yearly switch */
.iu-pab-period {
	display: inline-grid;
	grid-template-columns: auto auto;
	gap: 4px;
	padding: 4px;
	margin: 4px auto 28px;
	border-radius: 12px;
	background: #eef1f8;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.iu-pab-period button {
	font: inherit;
	font-family: 'Gilroy-Bold', Arial, sans-serif;
	font-size: 16px;
	border: 0;
	border-radius: 9px;
	padding: 10px 22px;
	background: transparent;
	color: #5d6580;
	cursor: pointer;
}

.iu-pab-period button[aria-pressed="true"] {
	background: #fff;
	color: #151a2d;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.iu-pab-period button:focus-visible,
.iu-pab-plan:focus-visible {
	outline: 2px solid #33b2f8;
	outline-offset: 2px;
}

.iu-pab-save {
	color: #1f9d63;
	margin-left: 6px;
}

/* Plans: three cards on wide screens */
.iu-pab-plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.iu-pab-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px 24px 24px;
	background: #fff;
	border: 2px solid transparent;
	border-top: 6px solid var(--plan-color, #33b2f8);
	border-radius: 20px;
	box-shadow: 0 4px 18px 0 #0000001A;
	min-width: 0;
}

.iu-pab-plan.is-recommended {
	border-color: #33b2f8;
	border-top-color: var(--plan-color, #33b2f8);
}

.iu-pab-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	padding: 3px 12px;
	border-radius: 20px;
	background: #33b2f8;
	color: #fff;
	font-family: 'Gilroy-Bold', Arial, sans-serif;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.iu-pab-dot {
	display: none;
}

.iu-pab-name strong {
	display: block;
	font-family: 'Gilroy-Bold', Arial, sans-serif;
	font-size: 24px;
	color: var(--plan-color, #151a2d);
}

.iu-pab-credits {
	font-size: 16px;
	color: #5d6580;
}

.iu-pab-purpose {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: #5d6580;
	min-height: 2.8em;
}

.iu-pab-price {
	font-variant-numeric: tabular-nums;
}

.iu-pab-amount {
	font-family: 'Gilroy-Bold', Arial, sans-serif;
	font-size: 40px;
	line-height: 1;
}

.iu-pab-per {
	font-size: 18px;
	color: #5d6580;
}

.iu-pab-billed {
	display: block;
	margin-top: 6px;
	font-family: 'Gilroy-Bold', Arial, sans-serif;
	font-size: 15px;
	color: #151a2d;
}

.iu-pab .iu-pab-buy {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	text-align: center;
	padding: 14px 16px;
	border-radius: 7px;
	background: #33b2f8;
	box-shadow: 0 4px 24px 0 #33B2F84D;
	color: #fff;
	font-family: 'Gilroy-Bold', Arial, sans-serif;
	font-size: 18px;
	text-decoration: none;
}

.iu-pab .iu-pab-buy.is-current-plan {
	background: #9ba3ac;
	box-shadow: none;
	pointer-events: none;
}

.iu-pab-mobile-buy,
.iu-pab-mobile-perks {
	display: none !important;
}

.iu-pab-features {
	margin: 4px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid #e9e9e9;
	list-style: none;
	font-size: 15px;
	color: #5d6580;
}

.iu-pab-features-lead {
	margin: 4px 0 -6px;
	padding-top: 14px;
	border-top: 1px solid #e9e9e9;
	font-family: 'Gilroy-Bold', Arial, sans-serif;
	font-size: 15px;
	color: #151a2d;
}

.iu-pab-features.has-lead {
	border-top: 0;
	padding-top: 0;
}

.iu-pab-features li {
	position: relative;
	padding-left: 22px;
	list-style: none;
}

.iu-pab-features li::marker {
	content: none;
}

.iu-pab-features li + li {
	margin-top: 6px;
}

.iu-pab-features li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 6px;
	width: 10px;
	height: 6px;
	border-left: 2px solid #33b2f8;
	border-bottom: 2px solid #33b2f8;
	transform: rotate(-45deg);
}

.iu-pab-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin: 26px 0 10px;
	font-size: 15px;
	color: #5d6580;
}

.iu-pab-trust span::before {
	content: "\2713\00a0";
	color: #1f9d63;
	font-family: 'Gilroy-Bold', Arial, sans-serif;
}

.iu-pab-note {
	margin: 0;
	font-size: 14px;
	color: #5d6580;
}

/* Phones: plans as rows, one button for the picked plan */
@media (max-width: 767px) {
	.iu-pab-sub {
		font-size: 15px;
	}

	.iu-pab-period {
		display: grid;
		left: 0;
		transform: none;
		margin: 0 0 16px;
	}

	.iu-pab-period button {
		padding: 10px 8px;
		font-size: 15px;
	}

	.iu-pab-plans {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.iu-pab-plan {
		display: grid;
		grid-template-columns: 22px minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px;
		padding: 14px 12px;
		border: 2px solid #dde2ef;
		border-radius: 14px;
		box-shadow: none;
		cursor: pointer;
	}

	.iu-pab-plan.is-recommended {
		border-color: #dde2ef;
	}

	.iu-pab-plan.is-selected {
		border-color: #33b2f8;
		background: #eef7fe;
	}

	.iu-pab-badge {
		top: -10px;
		left: auto;
		right: 12px;
		transform: none;
		font-size: 10.5px;
		padding: 2px 8px;
	}

	.iu-pab-dot {
		display: block;
		width: 20px;
		height: 20px;
		border: 2px solid #c5ccdc;
		border-radius: 50%;
		position: relative;
	}

	.iu-pab-plan.is-selected .iu-pab-dot {
		border-color: #33b2f8;
	}

	.iu-pab-plan.is-selected .iu-pab-dot::after {
		content: "";
		position: absolute;
		inset: 3px;
		border-radius: 50%;
		background: #33b2f8;
	}

	.iu-pab-name strong {
		font-size: 17px;
	}

	.iu-pab-credits {
		font-size: 13px;
	}

	.iu-pab-price {
		text-align: right;
	}

	.iu-pab-amount {
		font-size: 20px;
	}

	.iu-pab-per {
		font-size: 13px;
	}

	.iu-pab-billed {
		margin-top: 2px;
		font-size: 11.5px;
	}

	.iu-pab-purpose,
	.iu-pab-plan .iu-pab-buy,
	.iu-pab-features,
	.iu-pab-features-lead,
	.iu-pab-note {
		display: none !important;
	}

	.iu-pab-mobile-perks {
		display: block !important;
		margin: 12px 0 0;
		font-size: 13px;
		line-height: 1.4;
		text-align: center;
		color: #4b536b;
	}

	.iu-pab-mobile-buy {
		display: block !important;
		margin-top: 12px;
	}

	.iu-pab-trust {
		margin: 12px 0 4px;
		font-size: 13px;
		gap: 4px 14px;
	}
}

/*
 * FAQ in the site's own style: compiled unchanged from assets/scss/section/faq.scss
 * (the old Pricing design does not load it, see pricing-old.scss). Markup in
 * iu_pricing_ab_render_faq(), opening and closing by assets/js/custom.js.
 */
/* Variables
-------------------------------------------------------------- */
.faq {
  margin: 70px 0 90px;
}
.faq h2 {
  margin: 0 0 45px;
  text-align: center;
}

.faq__list {
  display: flex;
  justify-content: space-between;
  margin: 0 -20px;
}
.faq__list .col {
  width: 50%;
  padding: 0 30px;
}
.faq__list .item {
  max-width: 620px;
  width: 100%;
  margin: 30px auto;
  color: #fff;
  box-sizing: border-box;
}
.faq__list .item .head {
  display: flex;
  min-height: 97px;
  align-items: center;
  position: relative;
  padding: 0 70px 0 35px;
  border-radius: 20px;
  background-color: #5A70CF;
  cursor: pointer;
}
.faq__list .item .head svg {
  width: 25px;
  height: 25px;
  position: absolute;
  top: 35px;
  right: 25px;
  transition: transform 0.3s;
}
.faq__list .item span {
  height: 46px;
  min-width: 46px;
  margin-right: 22px;
  background-color: #A49BEE;
  border-radius: 50%;
  text-align: center;
  line-height: 46px;
  font-size: 24px;
}
.faq__list .item h3 {
  padding: 16px 0;
}
.faq__list .item .cont {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #111111;
  line-height: 30px;
}
.faq__list .item .cont > div {
  position: relative;
  padding: 43px 0 15px 7%;
}
.faq__list .item .cont > div:after {
  content: "";
  position: absolute;
  top: 43px;
  bottom: 15px;
  left: 15px;
  width: 3px;
  height: calc(100% - 43px - 15px);
  background: #FFD074;
  border-radius: 50px;
}
.faq__list .item .cont a {
  text-decoration: underline;
  transition: color 0.3s;
}
.faq__list .item .cont a:hover {
  color: #33B2F8;
}
.faq__list .item ul {
  padding: 0;
}
.faq__list .open .head svg {
  transform: scaleY(-1);
}
.faq__list .open .cont {
  max-height: 400px;
}

body.home .faq h2 {
  margin-top: 75px;
}

@media (max-width: 1024px) {
  .faq {
    margin: 70px 0 56px;
  }
  .faq h2 {
    margin: 0 0 47px 0;
  }
  .faq__list {
    margin: 0;
  }
  .faq__list .col {
    width: 48%;
    padding: 0;
  }
  .faq__list .item {
    max-width: none;
    margin: 0;
    padding: 11px 0;
  }
  .faq__list .item h3 {
    padding: 16px 20px 16px 0;
  }
  .faq__list .item .head {
    padding: 0 35px 0 22px;
  }
  .faq__list .item .head:after {
    width: 16px;
    height: 16px;
  }
  .faq__list .item .cont > div:after {
    left: 4px;
  }
  .faq__list .item span {
    height: 36px;
    min-width: 36px;
    line-height: 36px;
    font-size: 20px;
  }
}
@media (max-width: 980px) {
  .faq__list {
    flex-direction: column;
    align-items: center;
  }
  .faq__list .col {
    width: 80%;
  }
}
@media (max-width: 768px) {
  .faq h2 {
    margin: 0 0 38px 0;
  }
  .faq__list .item .head {
    padding: 0 50px 0 22px;
  }
  .faq__list .col {
    width: 100%;
  }
}
