// Go Pro page

$gp_ink        : #1d2327;
$gp_ink_soft   : #50575e;
$gp_ink_faint  : #8c8f94;
$gp_line       : #dcdcde;
$gp_brand_1    : #5b21e0;
$gp_brand_2    : #9b2fd6;
$gp_brand_tint : #f4effd;
$gp_brand_line : #e2d6fb;
$gp_gold       : #e8a415;
$gp_good_bg    : #eaf7ee;
$gp_good_ink   : #1e7a3e;
$gp_gradient   : linear-gradient(135deg, $gp_brand_1, $gp_brand_2);
$gp_shadow_sm  : 0 1px 2px rgba(29, 23, 58, .06);
$gp_shadow_md  : 0 8px 24px -8px rgba(60, 20, 120, .18);

$gp_check_green : "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231e7a3e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E";
$gp_check_white : "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E";
$gp_dash        : "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8h7' stroke='%23a7aaad' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E";

.gs-book-showcase-app-view-container .gsb-gopro {

	max-width: 1150px; // 1120px of content, same as the Welcome page.
	margin-left: 0;
	color: $gp_ink;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;

	*, *:before, *:after {
		box-sizing: border-box;
	}

	h2, h3, h4 {
		color: $gp_ink;
		text-wrap: balance;
	}

	a {
		text-decoration: none;
	}

	// Buttons
	.gsb-gp-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		font-weight: 700;
		font-size: 14px;
		line-height: 1.2;
		border-radius: 8px;
		padding: 12px 20px;
		border: none;
		cursor: pointer;
		transition: transform .12s ease, box-shadow .12s ease;

		&:hover {
			transform: translateY(-1px);
		}
	}

	.gsb-gp-btn-primary {
		background: #fff;
		color: $gp_brand_1;
		box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
	}

	.gsb-gp-btn-ghost {
		background: rgba(255, 255, 255, .1);
		color: #fff;
		border: 1px solid rgba(255, 255, 255, .4);
	}

	.gsb-gp-btn-brand {
		background: $gp_gradient;
		color: #fff;
		box-shadow: 0 6px 16px -4px rgba(91, 33, 224, .5);
	}

	.gsb-gp-btn-outline {
		background: #fff;
		color: $gp_brand_1;
		border: 1.5px solid $gp_brand_1;
	}

	.gsb-gp-btn-solid {
		background: $gp_ink;
		color: #fff;
	}

	// Hero
	.gsb-gp-hero {
		background: linear-gradient(120deg, #4f18c9 0%, $gp_brand_1 45%, $gp_brand_2 100%);
		border-radius: 14px;
		padding: 40px 40px 36px;
		color: #fff;
		position: relative;
		overflow: hidden;
		box-shadow: $gp_shadow_md;

		&:after {
			content: "";
			position: absolute;
			right: -60px;
			top: -80px;
			width: 280px;
			height: 280px;
			border-radius: 50%;
			background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), transparent 70%);
			pointer-events: none;
		}

		h2 {
			font-size: 32px;
			line-height: 1.15;
			margin: 0 0 14px;
			max-width: 640px;
			color: #fff;
			font-weight: 800;
		}
	}

	.gsb-gp-hero-eyebrow {
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: #e6d9ff;
		display: flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 14px;
	}

	.gsb-gp-cap {
		background: rgba(255, 255, 255, .16);
		padding: 2px 8px;
		border-radius: 20px;
		color: #e6d9ff;
	}

	.gsb-gp-lede {
		font-size: 15.5px;
		line-height: 1.6;
		max-width: 560px;
		color: #eee6ff;
		margin: 0 0 24px;
	}

	.gsb-gp-ctas {
		display: flex;
		align-items: center;
		gap: 18px;
		flex-wrap: wrap;
	}

	.gsb-gp-stats {
		display: flex;
		gap: 28px;
		margin-top: 28px;
		padding-top: 22px;
		border-top: 1px solid rgba(255, 255, 255, .22);
		flex-wrap: wrap;
	}

	.gsb-gp-stat {
		b {
			display: block;
			font-size: 22px;
			color: #fff;
		}
		span {
			font-size: 12px;
			color: #e6d9ff;
		}
	}

	// Sections
	.gsb-gp-block {
		margin-top: 44px;
		scroll-margin-top: 50px;
	}

	.gsb-gp-block-head {
		margin-bottom: 22px;
		max-width: 640px;

		h3 {
			font-size: 23px;
			line-height: 1.3;
			margin: 0 0 8px;
		}

		p {
			font-size: 14.5px;
			color: $gp_ink_soft;
			line-height: 1.6;
			margin: 0;
		}
	}

	.gsb-gp-block-head .gsb-gp-kicker,
	.gsb-gp-kicker {
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: $gp_brand_1;
		margin: 0 0 8px;
	}

	// Comparison
	.gsb-gp-compare {
		background: #fff;
		border: 1px solid $gp_line;
		border-radius: 14px;
		overflow: hidden;
		box-shadow: $gp_shadow_sm;
	}

	.gsb-gp-row {
		display: grid;
		grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;

		& + .gsb-gp-row > * {
			border-top: 1px solid #ececef;
		}

		& + .gsb-gp-row > .gsb-gp-pro {
			border-top-color: $gp_brand_line;
		}

		&:not(.gsb-gp-head):not(.gsb-gp-foot):hover {
			.gsb-gp-feat, .gsb-gp-free {
				background: #fbfaff;
			}
		}
	}

	.gsb-gp-feat {
		padding: 16px 24px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 3px;
		transition: background .15s;

		b {
			font-size: 14px;
			font-weight: 600;
			color: $gp_ink;
		}

		small {
			font-size: 12.5px;
			color: $gp_ink_soft;
			line-height: 1.45;
		}
	}

	.gsb-gp-cc {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 14px 16px;
		text-align: center;
		font-size: 13px;
		line-height: 1.35;
		transition: background .15s;
	}

	.gsb-gp-free {
		color: $gp_ink_soft;
	}

	.gsb-gp-pro {
		background: $gp_brand_tint;
		color: $gp_ink;
		font-weight: 600;
		border-left: 1px solid $gp_brand_line;
	}

	.gsb-gp-lbl {
		text-wrap: balance;
	}

	.gsb-gp-ic-yes, .gsb-gp-ic-no {
		width: 22px;
		height: 22px;
		border-radius: 50%;
		flex: none;
		background-repeat: no-repeat;
		background-position: center;
		background-size: 14px;
	}

	.gsb-gp-ic-yes {
		background-color: $gp_good_bg;
		background-image: url($gp_check_green);
	}

	.gsb-gp-pro .gsb-gp-ic-yes {
		background-color: $gp_brand_1;
		background-image: url($gp_check_white);
	}

	.gsb-gp-ic-no {
		background-color: #f1f1f3;
		background-image: url($gp_dash);
	}

	.gsb-gp-head {
		> * {
			padding: 18px 16px;
		}

		.gsb-gp-feat {
			color: #000000;
			font-size: 15px;
			font-weight: 900;
			letter-spacing: .06em;
			padding: 18px 24px;
			text-transform: uppercase;
		}

		.gsb-gp-cc {
			flex-direction: column;
			gap: 2px;
		}

		.gsb-gp-plan-name {
			font-size: 16px;
			font-weight: 800;
			color: $gp_ink;
		}

		.gsb-gp-plan-sub {
			font-size: 11.5px;
			color: $gp_ink_faint;
			font-weight: 500;
		}

		.gsb-gp-pro {
			background: $gp_gradient;
			border-left-color: transparent;

			.gsb-gp-plan-name {
				color: #fff;
			}

			.gsb-gp-plan-sub {
				color: #e6d9ff;
			}
		}
	}

	.gsb-gp-foot {
		.gsb-gp-feat {
			background: #fafafa;
		}

		.gsb-gp-free {
			background: #fafafa;
			font-size: 12px;
			color: $gp_ink_faint;
		}

		.gsb-gp-pro {
			padding: 16px;
		}

		.gsb-gp-btn {
			width: 100%;
			padding: 10px 14px;
			font-size: 13px;
		}
	}

	// Showcase
	.gsb-gp-showcase {
		display: grid;
		grid-template-columns: 1.05fr 1fr;
		gap: 32px;
		align-items: center;
	}

	.gsb-gp-showcase-copy {
		h3 {
			font-size: 22px;
			margin: 0 0 10px;
		}

		p {
			font-size: 14.5px;
			color: $gp_ink_soft;
			line-height: 1.65;
			margin: 0 0 16px;
		}
	}

	.gsb-gp-list {
		list-style: none;
		margin: 0 0 20px;
		padding: 0;
		display: flex;
		flex-direction: column;
		gap: 9px;

		li {
			font-size: 13.5px;
			display: flex;
			gap: 9px;
			align-items: flex-start;
			margin: 0;
			color: $gp_ink;
		}
	}

	.gsb-gp-ck {
		color: $gp_brand_1;
		font-weight: 800;
	}

	.gsb-gp-mock-card {
		background: #fff;
		border: 1px solid $gp_line;
		border-radius: 12px;
		box-shadow: $gp_shadow_md;
		padding: 20px;

		h4 {
			margin: 0 0 3px;
			font-size: 15.5px;
		}
	}

	.gsb-gp-mrow {
		display: flex;
		gap: 14px;
		align-items: flex-start;
	}

	// A stand-in book cover for the example card.
	.gsb-gp-mock-cover {
		width: 62px;
		height: 92px;
		border-radius: 3px 6px 6px 3px;
		background: linear-gradient(135deg, #2a1065, $gp_brand_1 60%, #c23fb0);
		box-shadow: inset 4px 0 0 rgba(0, 0, 0, .18), 0 6px 14px -6px rgba(60, 20, 120, .5);
		flex: none;
		position: relative;

		span {
			position: absolute;
			left: 12px;
			right: 8px;
			top: 18px;
			height: 26px;
			border-top: 2px solid rgba(255, 255, 255, .7);
			border-bottom: 2px solid rgba(255, 255, 255, .35);
		}
	}

	.gsb-gp-mock-stars {
		margin-top: 6px;
		color: $gp_gold;
		font-size: 13px;
		letter-spacing: 2px;
	}

	.gsb-gp-mock-stores {
		margin-top: 14px;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
		font-size: 12px;
		color: $gp_ink_soft;

		i {
			font-style: normal;
			font-weight: 700;
			font-size: 12px;
			color: #fff;
			background: $gp_gradient;
			padding: 6px 12px;
			border-radius: 6px;
		}
	}

	.gsb-gp-tag {
		display: inline-block;
		font-size: 10.5px;
		font-weight: 700;
		color: $gp_brand_1;
		background: $gp_brand_tint;
		padding: 2px 8px;
		border-radius: 20px;
		margin-bottom: 8px;
	}

	.gsb-gp-mock-meta {
		font-size: 12.5px;
		color: $gp_ink_soft;
	}

	.gsb-gp-mock-fields {
		margin-top: 14px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.gsb-gp-mock-field {
		background: #fafafa;
		border: 1px solid $gp_line;
		border-radius: 8px;
		padding: 8px 10px;

		span {
			display: block;
			font-size: 10px;
			text-transform: uppercase;
			letter-spacing: .04em;
			color: $gp_ink_faint;
			margin-bottom: 3px;
		}

		b {
			font-size: 12.5px;
			font-weight: 600;
		}
	}

	// Pricing
	.gsb-gp-billing {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		background: #fff;
		border: 1px solid $gp_line;
		border-radius: 30px;
		padding: 5px;
		margin-bottom: 26px;

		button {
			border: none;
			background: transparent;
			font-size: 13px;
			font-weight: 600;
			padding: 8px 16px;
			border-radius: 24px;
			cursor: pointer;
			color: $gp_ink_soft;

			&.active {
				background: $gp_ink;
				color: #fff;
			}
		}
	}

	.gsb-gp-save {
		font-size: 11px;
		font-weight: 700;
		padding: 2px 7px;
		border-radius: 20px;
		margin-left: 2px;
		background: $gp_good_bg;
		color: $gp_good_ink !important;
	}

	.gsb-gp-plans {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}

	.gsb-gp-plan {
		background: #fff;
		border: 1px solid $gp_line;
		border-radius: 12px;
		padding: 24px;
		display: flex;
		flex-direction: column;
		box-shadow: $gp_shadow_sm;
		position: relative;

		h4 {
			margin: 6px 0 2px;
			font-size: 16px;
		}

		ul {
			list-style: none;
			margin: 0 0 20px;
			padding: 0;
			display: flex;
			flex-direction: column;
			gap: 8px;
			flex: 1;
		}

		li {
			font-size: 13px;
			display: flex;
			gap: 8px;
			margin: 0;
			color: $gp_ink;

			.gsb-gp-ck {
				color: $gp_good_ink;
			}
		}

		.gsb-gp-btn {
			width: 100%;
		}
	}

	.gsb-gp-featured {
		border: 2px solid $gp_brand_1;
		box-shadow: $gp_shadow_md;
	}

	.gsb-gp-ribbon {
		position: absolute;
		top: -11px;
		left: 24px;
		background: $gp_gradient;
		color: #fff !important;
		font-size: 10.5px;
		font-weight: 800;
		padding: 4px 10px;
		border-radius: 20px;
		letter-spacing: .03em;
	}

	.gsb-gp-sites, .gsb-gp-per {
		font-size: 12.5px;
		color: $gp_ink_soft;
	}

	.gsb-gp-sites {
		margin-bottom: 16px;
	}

	.gsb-gp-per {
		margin-bottom: 18px;

		small {
			font-size: 11.5px;
			color: $gp_ink_faint;
		}
	}

	.gsb-gp-price {
		font-size: 34px;
		font-weight: 800;
		font-variant-numeric: tabular-nums;
		line-height: 1.2;

		sup {
			font-size: 15px;
		}
	}

	.gsb-gp-bundles-head {
		margin-top: 40px;
		margin-bottom: 18px;

		h4 {
			margin: 0 0 4px;
			font-size: 17px;
		}

		p {
			margin: 0;
			font-size: 13px;
			color: $gp_ink_soft;
		}
	}

	.gsb-gp-bundles {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.gsb-gp-bundle {
		background: #fff;
		border: 1px solid $gp_line;
		border-radius: 12px;
		padding: 24px;
		display: flex;
		flex-direction: column;
		box-shadow: $gp_shadow_sm;
		position: relative;

		h4 {
			margin: 6px 0 2px;
			font-size: 16px;
		}

		.gsb-gp-btn {
			width: 100%;
			margin-top: auto;
		}
	}

	.gsb-gp-bundle-price {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 6px;
		margin-bottom: 16px;
		font-size: 12.5px;
		color: $gp_ink_soft;

		b {
			font-size: 26px;
			font-weight: 800;
			color: $gp_ink;
			font-variant-numeric: tabular-nums;
		}

		.gsb-gp-save {
			margin-left: 6px;
			font-style: normal;
		}
	}

	.gsb-gp-bundle-lead {
		margin: 0 0 8px;
		font-size: 12.5px;
		font-weight: 600;
		color: $gp_ink;
	}

	.gsb-gp-bundle-plugins {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin: 0 0 20px;
		padding: 0;
		list-style: none;

		li {
			margin: 0;
			padding: 4px 9px;
			background: $gp_brand_tint;
			border-radius: 6px;
			font-size: 12px;
			color: $gp_ink;
		}
	}

	.gsb-gp-proof {
		display: flex;
		gap: 18px;
		margin-top: 36px;
	}

	.gsb-gp-proof-card {
		flex: 1;
		background: #fff;
		border: 1px solid $gp_line;
		border-radius: 10px;
		padding: 16px 18px;
		display: flex;
		gap: 12px;
		align-items: flex-start;

		b {
			display: block;
			font-size: 13.5px;
			margin-bottom: 3px;
		}

		span {
			font-size: 12.5px;
			color: $gp_ink_soft;
			line-height: 1.5;
		}
	}

	.gsb-gp-proof-ic {
		font-size: 20px;
	}

	// Reviews
	// Masonry: each card is as tall as its review, so long and short reviews sit
	// together without empty space.
	// The script places each review in the shortest of three columns.
	.gsb-gp-reviews {
		display: flex;
		align-items: stretch; // Columns share one height; the last card in each fills it.
		gap: 16px;

		@media (max-width: 960px) {
			flex-direction: column;
			align-items: stretch;
		}
	}

	.gsb-gp-reviews-col {
		display: flex;
		flex: 1 1 0;
		flex-direction: column;
		gap: 16px;
		min-width: 0;

		> :last-child {
			flex: 1 1 auto;
		}

		@media (max-width: 960px) {
			flex-basis: auto;
		}
	}

	.gsb-gp-review {
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: 20px;
		background: #fff;
		border: 1px solid $gp_line;
		border-radius: 12px;
		box-shadow: $gp_shadow_sm;

		h4 {
			margin: 0 0 6px;
			font-size: 14.5px;
			line-height: 1.4;
		}

		blockquote {
			margin: 0 0 16px;
			color: $gp_ink_soft;
			font-size: 13.5px;
			line-height: 1.6;
		}

		figcaption {
			display: flex;
			align-items: center;
			gap: 10px;
			margin-top: auto; // Author stays at the bottom when a card stretches.
			font-size: 13px;
		}

		b, time {
			display: block;
		}

		time {
			color: $gp_ink_faint;
			font-size: 12px;
		}
	}

	// Rating summary card that fills the shortest column.
	.gsb-gp-review--rating {
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 150px;
		background: linear-gradient(160deg, #f6f4ff 0%, #eef0ff 100%);
		border-color: #e3defc;
		text-align: center;
		text-decoration: none;
		transition: border-color .15s ease, box-shadow .15s ease;

		&:hover,
		&:focus {
			border-color: #c4b5fd;
			box-shadow: 0 6px 18px rgba(109, 40, 217, 0.12);
		}

		.gsb-gp-review-stars {
			margin: 0;
		}
	}

	.gsb-gp-rating-score {
		color: #1f2937;
		font-size: 36px;
		font-weight: 800;
		line-height: 1;
	}

	.gsb-gp-rating-text {
		color: #6b7280;
		font-size: 13px;
	}

	.gsb-gp-rating-link {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		color: #6d28d9;
		font-size: 13px;
		font-weight: 600;
	}

	.gsb-gp-review-stars {
		margin-bottom: 10px;
		color: $gp_gold;
		font-size: 15px;
		letter-spacing: 2px;
		line-height: 1;
	}

	.gsb-gp-review-avatar {
		display: grid;
		place-items: center;
		flex: none;
		width: 34px;
		height: 34px;
		border-radius: 50%;
		background: $gp_brand_tint;
		color: $gp_brand_1;
		font-weight: 700;
	}

	// Sticky footer CTA
	.gsb-gp-sticky {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin-top: 44px;
		background: #fff;
		border: 1px solid $gp_line;
		box-shadow: 0 -8px 20px rgba(20, 10, 50, .06);
		padding: 14px 24px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		border-radius: 12px 12px 0 0;
		transition: opacity .45s ease, transform .45s ease, visibility 0s linear 0s;

		// Hidden while the pricing section is on screen.
		&.is-hidden {
			opacity: 0;
			transform: translateY(24px);
			visibility: hidden;
			pointer-events: none;
			transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
		}

		b {
			display: block;
			font-size: 14px;
		}

		span {
			font-size: 12px;
			color: $gp_ink_soft;
		}
	}

	@media (max-width: 960px) {
		.gsb-gp-plans, .gsb-gp-bundles, .gsb-gp-showcase, .gsb-gp-reviews {
			grid-template-columns: 1fr;
		}

		.gsb-gp-proof {
			flex-direction: column;
		}
	}

	@media #{$mobile} {
		.gsb-gp-cap {
			white-space: nowrap;
		}

		.gsb-gp-hero {
			padding: 28px 22px;

			h2 {
				font-size: 24px;
			}
		}

		.gsb-gp-row {
			grid-template-columns: minmax(0, 1fr) 92px 92px;
		}

		.gsb-gp-feat {
			padding: 14px;
		}

		.gsb-gp-cc {
			flex-direction: column;
			gap: 4px;
			padding: 12px 8px;
			font-size: 11.5px;
		}

		.gsb-gp-head {
			.gsb-gp-feat {
				padding: 14px;
			}

			.gsb-gp-plan-sub {
				display: none;
			}
		}

		.gsb-gp-foot {
			.gsb-gp-pro {
				padding: 12px 8px;
			}

			.gsb-gp-free {
				font-size: 11px;
			}

			.gsb-gp-btn {
				padding: 9px 6px;
				font-size: 12px;
				white-space: nowrap;
			}
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.gsb-gp-btn, .gsb-gp-feat, .gsb-gp-cc {
			transition: none;
		}
	}
}
