:root {
	--color-bg: rgb(255, 255, 255);
	--color-text: rgb(34, 34, 34);
	--color-dark-grey: rgb(103, 103, 103);
	--color-grey: rgb(180, 180, 180);
	--color-light-grey: rgb(209, 209, 209);
	--color-primary: rgb(23, 69, 163);
	--color-secondary: rgb(0, 108, 173);
	--color-accent-1: rgb(0, 172, 204);
	--color-accent-2: rgb(134, 31, 195);
	--color-accent-3: rgb(194, 32, 121);
	--color-accent-4: rgb(139, 204, 62);
	--color-error: rgb(238, 71, 50);
	--color-warning: rgb(255, 148, 64);
	--color-highlight: rgb(254, 209, 22);
	font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
	font-family: Figtree;
	line-height: 1.35em;
	color: var(--color-text);
}
sup {
	font-family: Figtree;
	line-height: 1em;
  font-size: 0.75em;
  margin-left: -0.25em;
}

body {
	background-color: rgba(0, 108, 173, .075);
}

section,
main {
	max-width: 1400px;
	margin: 5rem auto;
}

section {
	text-align: left;
	text-wrap: balance;
}

section h1 {
	font-size: 2.4rem;
	margin-bottom: .4em;
	font-weight: 600;
}

.section-footer {
  margin-top: -4rem;
  font-size: 0.75rem;
}
/* h1 em {
	background-image: linear-gradient(-35deg, var(--color-secondary), var(--color-accent-1));
	color: transparent;
	background-clip: text;
	font-style: italic;
} */

p em {
	font-style: italic;
}

p strong {
	font-weight: 600;
}

section p {
	max-width: 50em;
	font-size: 1.2em;
	margin-bottom: .6em;
}

main {
	margin-top: 7rem;
	display: flex;
	flex-basis: auto;
	gap: 2rem;
	flex-wrap: wrap;
}

@media screen and (max-width:1200px) {

	section,
	main {
		margin-left: 2rem;
		margin-right: 2rem;
	}

	main {
		grid-template-columns: 1fr 1fr;
		gap: 4rem 2rem;
	}

	.product {
		order: 2;
		width: calc(50% - 1rem);
	}

	.product-shiny {
		order: 1;
	}

	.mobile-order-4 {
		order: 4;
	}
}

.show-mobile {
	display: none;
}

.hide-mobile {
	display: inline-block;
}

@media screen and (max-width:600px) {
	.show-mobile {
		display: inline-block;
	}

	.hide-mobile {
		display: none;
	}

	section,
	main {
		margin: 2rem;
	}

	main {
		gap: 2rem;
	}

  .section-footer {
    margin-top: -1rem;
    font-size: 0.75rem;
  }

	.product {
		width: 100%;
	}

	.product-current,
	.product-shiny {
		margin-top: 2rem;
	}
}

@media screen and (min-width: 1201px) {
	.product {
		flex: 1 1 0;
	}

	.product-shiny {
		flex-grow: 1.2;
		margin-top: -2rem;
		margin-bottom: 2rem;
		/* scale: 1.035; */
	}
}

.product {
	background-color: var(--color-bg);
	position: relative;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	border: 2px solid var(--color-light-grey);
	border-radius: .6rem;
	box-sizing: border-box;
	/* box-shadow: 1px 3px 9px 1px rgba(22, 22, 22, .1); */
}

.product-img {
	height: 6rem;
	width: auto;
	margin-bottom: 1rem;
}

.product-name {
	font-size: 1.4rem;
	margin-bottom: 1rem;
}

.product-shiny .product-price h3 {
	font-weight: 600;
	color: transparent;
	background-clip: text;
	background-image: linear-gradient(-35deg, var(--color-primary), var(--color-accent-1));
}

.product-shiny .product-price h3 span {
	color: var(--color-text);
	font-weight: 400;
}

.product-price {
	font-size: 2.4rem;
	margin: 1rem 0 .8rem 0;
}

.product-price .discount {
	position: relative;
	display: inline-block;
	font-size: 1.8rem;
	margin-left: .2em;
}

.product-price .discount:before {
	content: "";
	display: block;
	position: absolute;
	height: 2px;
	top: .8em;
	width: 105%;
	transform: rotate(-5deg);
	background-color: var(--color-highlight);
	border-radius: 1px;
}

.product-duration {
	font-size: 1.4rem;
}

.product-blurb {
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	background-color: rgba(209, 209, 209, .35);
	padding: .4rem;
	box-sizing: border-box;
	border-radius: .4rem .4rem 0 0;
}

.product-blurb h4 {
	color: var(--color-text)
}

.product-description {
	font-size: 1rem;
	padding-top: 1rem;
	margin-top: 1rem;
	border-top: 2px solid var(--color-light-grey);
	width: 100%;
	text-align: left;
	text-wrap: balance;
}

.product-shiny .product-description {
	border-top: 2px solid rgba(139, 204, 62, .45);
}

.product-description p {
	opacity: .7;
}


.contents {
	padding: 1.4rem 1.4rem 1rem 1.4rem;
}

.footer {
	width: calc(100% - 2.8rem);
	padding-top: 1rem;
	margin: 0 1.4rem 2rem 1.4rem;
	border-top: 2px solid var(--color-light-grey);
	box-sizing: border-box;
	text-align: left;
}

.product-shiny .footer {
	border-top: 2px solid rgba(139, 204, 62, .45);
}

.button {
	display: inline-block;
	width: 100%;
	padding: 1rem;
	margin-top: 1rem;
	border-radius: 2rem;
	background-color: var(--color-bg);
	color: var(--color-primary);
	border-color: var(--color-primary);
	border-width: 2px;
	border-style: solid;
	text-align: center;
	box-sizing: border-box;
	font-weight: 500;
	text-decoration: none;
}

.button:focus,
.button:hover {
	cursor: pointer;
	box-shadow: 0 0 0 .2em rgba(23, 69, 163, .2);
	-webkit-transition: all .15s ease-in-out;
	-moz-transition: all .15s ease-in-out;
	-ms-transition: all .15s ease-in-out;
	-o-transition: all .15s ease-in-out;
	transition: all .15s ease-in-out;
}

.product-shiny .button {
	color: var(--color-bg);
	background-color: var(--color-primary);
}

/* .product-shiny .button:focus,
.product-shiny .button:hover {
	box-shadow: 0 0 0 .2em rgba(23, 69, 163, .2);
} */

.product-shiny .button svg {
	width: 1.2rem;
	height: 1.2rem;
	margin-bottom: -.25rem;
	fill: var(--color-bg);
}

.product-unavailable .contents,
.product-unavailable .footer {
	opacity: .5;
}

.product-unavailable .button:focus,
.product-unavailable .button:hover {
	box-shadow: none;
}

.product-unavailable *,
.product-unavailable .button {
	cursor: not-allowed;
}


.product-shiny {
	background-clip: padding-box;
	border-radius: .6rem;
	border: 2px solid var(--color-accent-4);
	position: relative;
	box-shadow: 1px 2px 12px 5px rgba(139, 204, 62, .35);
}

.product-shiny .product-blurb {
	background-color: rgba(139, 204, 62, .45);
}

.product-shiny .product-blurb h4 {
	color: #004a30;
}

/*
.product-shiny:before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 2px;
	margin: -2px;
	border-radius: .6rem;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	z-index: -1;
	background: -webkit-linear-gradient(25deg, var(--color-accent-1), var(--color-accent-4));
	background: -moz-linear-gradient(25deg, var(--color-accent-1), var(--color-accent-4));
	background: -o-linear-gradient(25deg, var(--color-accent-1), var(--color-accent-4));
	background: linear-gradient(25deg, var(--color-accent-1), var(--color-accent-4));
}
*/
.current-plan-brow,
.shiny-plan-brow {
	position: absolute;
	top: -2.4rem;
	text-align: center;
	width: 100%;
}

.shiny-plan-brow p,
.current-plan-brow p {
	border-radius: 1rem;
	padding: .25rem 1rem;
	font-weight: 500;
	display: inline-block;
	font-size: 1rem;
}

.current-plan-brow p {
	background-color: rgba(209, 209, 209, .35);
	color: var(--color-text);
}

.shiny-plan-brow p {
	background-color: rgba(0, 172, 204, .2);
	color: var(--color-secondary);
}

.shiny-plan-brow svg {
	margin: auto;
	fill: var(--color-secondary);
	height: 1.2rem;
	width: 1.2rem;
	margin-bottom: -.25rem;
}

.tooltip {
	cursor: pointer;
	position: relative;
}

.tooltip svg {
	fill: var(--color-accent-2);
	height: 1.2em;
	vertical-align: sub;
}

.tooltip:before {
	bottom: 2.4em;
	right: -2em;
	padding: .6em;
	background-color: var(--color-light-grey);
	border-radius: .6em;
	content: attr(aria-label);
	-webkit-transition: all .15s ease-in-out;
	-moz-transition: all .15s ease-in-out;
	-ms-transition: all .15s ease-in-out;
	-o-transition: all .15s ease-in-out;
	transition: all .15s ease-in-out;
	width: 14em;
	z-index: 999;
}

.tooltip:before,
.tooltip:after {
	position: absolute;
	color: var(--color-text);
	font-size: .8em;
	line-height: 1.2em;
	opacity: 0;
	visibility: hidden;
}

.tooltip:focus:before,
.tooltip:focus:after,
.tooltip:hover:before,
.tooltip:hover:after,
.tooltip:active:before,
.tooltip:active:after {
	visibility: visible;
	opacity: 1;
}
