/* SP Plans & Login */

/* ---- Header: logo and menu start at the left edge, buttons stay on the right ---- */
@media (min-width: 1000px) {
	#header [data-device="desktop"] [data-row] > .ct-container {
		width: 100%;
		max-width: none;
		padding-inline: clamp(16px, 2.2vw, 40px);
		grid-template-columns: auto minmax(0, 1fr);
	}

	#header [data-device="desktop"] [data-column="end"],
	#header [data-device="desktop"] [data-column="end"] > [data-items] {
		width: 100%;
	}

	/* the menu fills the space between the logo and the buttons, its items spread evenly */
	#header [data-device="desktop"] [data-column="end"] nav[data-id="menu"] {
		flex: 1 1 auto;
		margin-inline: 0;
	}

	#header [data-device="desktop"] [data-column="end"] nav[data-id="menu"] > ul.menu {
		width: 100%;
		justify-content: space-evenly;
	}
}

/* ---- Login button (outlined partner of "Book a demo") ---- */
#header .sp-login-cta .sp-login-btn {
	--theme-button-text-initial-color: #4b1a84;
	--theme-button-text-hover-color: #fff;
	--theme-button-background-initial-color: #4b1a84;
	--theme-button-background-hover-color: #4b1a84;
	--theme-button-border: 2px solid #4b1a84;
	--theme-button-border-hover-color: #4b1a84;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 5px 22px;
	border: 2px solid #4b1a84;
	border-radius: 999px;
	background: transparent;
	color: #4b1a84;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, color .2s;
}

#header .sp-login-cta .sp-login-btn:hover {
	background: #4b1a84;
	color: #fff;
}

/* ---- Plans page ---- */
.sp-plans {
	--sp-purple: #4b1a84;
	--sp-pink: #c0178c;
	margin: 0 auto;
	padding: 8px 0 56px;
	max-width: 1220px;
}

.sp-plans-head {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
}

.sp-plans-head h2 {
	margin: 0 0 12px;
	color: var(--sp-purple);
}

.sp-plans-head p {
	margin: 0;
	color: #4a4458;
	font-size: 18px;
}

.sp-plans-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 380px));
	justify-content: center;
	gap: 34px 28px;
	align-items: stretch;
}

.sp-plans-grid[data-count="1"] { grid-template-columns: minmax(0, 420px); }
.sp-plans-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 400px)); }

@media (max-width: 999px) {
	.sp-plans-grid,
	.sp-plans-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 400px)); }
}

@media (max-width: 699px) {
	.sp-plans-grid,
	.sp-plans-grid[data-count="1"],
	.sp-plans-grid[data-count="2"] { grid-template-columns: minmax(0, 440px); }
}

/* ---- Many plans: the rows scroll inside the box (no scrollbar drawn), the page stays put ---- */
.sp-plans-box {
	position: relative;
}

.sp-plans-scroll {
	padding: 20px 12px 8px;
}

@media (min-width: 700px) {
	.sp-plans-box.is-scrolling .sp-plans-scroll {
		max-height: 640px;
		padding-bottom: 40px;
		overflow-y: auto;
		overscroll-behavior: contain;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-ms-overflow-style: none;
		outline: none;
	}

	.sp-plans-box.is-scrolling .sp-plans-scroll::-webkit-scrollbar {
		display: none;
	}

	/* soft fade over the row that is peeking in, until the last row is reached */
	.sp-plans-box.is-scrolling::after {
		content: "";
		position: absolute;
		inset: auto 0 0 0;
		height: 110px;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
		pointer-events: none;
		transition: opacity .25s;
	}

	.sp-plans-box.is-scrolling.at-end::after,
	.sp-plans-box.is-scrolling.at-end .sp-plans-hint {
		opacity: 0;
	}
}

.sp-plans-hint {
	position: absolute;
	left: 50%;
	bottom: 6px;
	z-index: 1;
	transform: translateX(-50%);
	padding: 6px 16px;
	border-radius: 999px;
	background: #f3ecfb;
	color: var(--sp-purple);
	font-size: 13px;
	font-weight: 700;
	pointer-events: none;
	transition: opacity .25s;
}

@media (max-width: 699px) {
	.sp-plans-hint { display: none; }
}

.sp-plan-more {
	margin-top: 4px;
}

.sp-plan-more summary {
	color: var(--sp-purple);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.sp-plan-more .sp-plan-list {
	margin-top: 12px;
	padding-top: 0;
	border-top: 0;
}

.sp-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 28px 28px;
	border: 1px solid #e6dff2;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(75, 26, 132, .07);
	transition: transform .2s, box-shadow .2s;
}

.sp-plan:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(75, 26, 132, .14);
}

.sp-plan.is-recommended {
	border: 2px solid var(--sp-purple);
}

.sp-plan-ribbon {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 16px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--sp-purple), var(--sp-pink));
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.sp-plan-type {
	align-self: flex-start;
	padding: 3px 12px;
	border-radius: 999px;
	background: #f3ecfb;
	color: var(--sp-purple);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.sp-plans .sp-plan .sp-plan-name {
	margin: 14px 0 10px;
	color: #1d1530;
	font-size: 26px;
	line-height: 1.2;
}

.sp-plan-price {
	color: var(--sp-purple);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
}

.sp-plan-price small {
	color: #6b6480;
	font-size: 15px;
	font-weight: 500;
}

.sp-plan-gst {
	margin-left: 4px;
	color: #6b6480;
	font-size: 17px;
	font-weight: 700;
	vertical-align: middle;
}

.sp-plan-note {
	margin-top: 6px;
	color: #6b6480;
	font-size: 14px;
}

.sp-plan-includes {
	margin: 18px 0 0;
	color: #3b3450;
	font-size: 15px;
}

.sp-plan-list {
	margin: 18px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #eee8f6;
	list-style: none;
}

.sp-plan-list li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 28px;
	color: #3b3450;
	font-size: 15px;
}

.sp-plan-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sp-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.sp-plan-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--sp-purple);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s;
}

.sp-plan > .sp-plan-btn {
	margin-top: auto;
}

.sp-plan > .sp-plan-list,
.sp-plan > .sp-plan-more {
	margin-bottom: 22px;
}

.sp-plan-btn:hover {
	background: var(--sp-pink);
}

.sp-plans-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 36px 28px;
	border: 1px dashed #d8cdea;
	border-radius: 18px;
	text-align: center;
}

.sp-plans-empty p {
	margin: 0 0 20px;
	color: #4a4458;
}
