/*
 * Weight Tracker's pages on the website: "Join Weight Tracker", "Partner
 * invitation", and the Supporter notes in WooCommerce. Colors, fonts and
 * rounding come from the theme (Blocksy's palette) when it has them, so the
 * pages follow the site if its colors change. The values after the commas are
 * used with other themes.
 */

.wt-page,
.wt-supporter-status,
.wt-account-status {
	--wt-dark: var(--theme-palette-color-4, #0b0f12);
	--wt-accent: var(--theme-palette-color-1, #2872fa);
	--wt-text: var(--theme-palette-color-3, #515455);
	--wt-border: var(--theme-palette-color-5, #e1e8ed);
	--wt-soft: var(--theme-palette-color-6, #f2f5f7);
	--wt-white: var(--theme-palette-color-8, #ffffff);
	--wt-mint: var(--theme-palette-color-9, #cbe1e4);
	--wt-radius: 24px;
}

/* The theme's own title and top spacing make way for the dark band. */
.wt-plugin-page .hero-section,
.wt-plugin-page .wp-block-post-title {
	display: none;
}
.wt-plugin-page .ct-container-full[data-vertical-spacing] {
	padding-top: 0;
}

.wt-page {
	margin-top: 0;
	margin-bottom: 0;
	color: var(--wt-text);
}
.wt-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Dark title band */
.wt-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 150px;
	background: var(--wt-dark);
	color: rgba(255, 255, 255, 0.72);
}
/* Under a see-through header (like the 05fit.club one), start lower. */
body:has([data-transparent-row="yes"]) .wt-hero {
	padding-top: 190px;
}
.wt-hero::before,
.wt-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	pointer-events: none;
}
.wt-hero::before {
	width: 420px;
	height: 420px;
	right: -120px;
	top: -60px;
}
.wt-hero::after {
	width: 220px;
	height: 220px;
	left: -90px;
	bottom: -40px;
}
.wt-hero .wt-wrap {
	position: relative;
	z-index: 1;
}
.wt-eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	border-radius: 100px;
	background: var(--wt-mint);
	color: var(--wt-dark);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.wt-hero h1 {
	max-width: 760px;
	margin: 0;
	color: var(--wt-white);
	font-size: clamp(32px, 5vw, 54px);
	line-height: 1.12;
}
.wt-lede {
	max-width: 620px;
	margin: 18px 0 0;
	font-size: 18px;
	line-height: 1.6;
}

/* Content, pulled up over the band */
.wt-main {
	position: relative;
	z-index: 2;
	margin-top: -100px;
	padding-bottom: 80px;
}
.wt-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.wt-card {
	max-width: 560px;
	padding: 40px;
	border: 1px solid var(--wt-border);
	border-radius: var(--wt-radius);
	background: var(--wt-white);
	box-shadow: 0 30px 60px -30px rgba(8, 12, 14, 0.25);
	box-sizing: border-box;
}
.wt-columns .wt-card {
	max-width: none;
}
.wt-card > :last-child,
.wt-aside > :last-child {
	margin-bottom: 0;
}
.wt-card h2,
.wt-aside h2 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}
.wt-card p {
	margin: 0 0 16px;
	line-height: 1.6;
}

/* Side panel */
.wt-aside {
	padding: 40px;
	border-radius: var(--wt-radius);
	background: var(--wt-mint);
	color: var(--wt-dark);
}
.wt-aside h2 + p,
.wt-aside p {
	margin: 0 0 24px;
	line-height: 1.6;
}

/* Numbered steps */
.wt-steps {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: wt-step;
}
.wt-steps li {
	position: relative;
	margin: 0 0 22px;
	padding-left: 52px;
	counter-increment: wt-step;
	line-height: 1.5;
}
.wt-steps li:last-child {
	margin-bottom: 0;
}
.wt-steps li::before {
	content: counter(wt-step);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wt-dark);
	color: var(--wt-white);
	font-weight: 700;
	font-size: 15px;
}
.wt-steps li.is-done::before {
	content: "✓";
	background: var(--wt-accent);
}
.wt-steps strong {
	display: block;
	color: var(--wt-dark);
}
.wt-steps span {
	display: block;
	font-size: 15px;
	opacity: 0.85;
}
.wt-card .wt-steps {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--wt-border);
}

/* Form */
.wt-form label {
	display: block;
	margin: 0 0 18px;
}
.wt-label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 8px;
	color: var(--wt-dark);
	font-size: 15px;
	font-weight: 600;
}
.wt-label small {
	font-size: 13px;
	font-weight: 400;
	color: var(--wt-text);
	opacity: 0.8;
}
.wt-form input:not([type="checkbox"]):not([type="hidden"]) {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
}
.wt-hidden {
	position: absolute !important;
	left: -9999px;
}
.wt-check,
.wt-form .wt-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 6px 0 24px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wt-text);
	cursor: pointer;
}
.wt-check input {
	flex: none;
	width: auto;
	margin-top: 3px;
}

/* Buttons: the theme's button look, made full width in forms */
.wt-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	min-height: 52px;
	padding: 0 32px;
	border-radius: var(--theme-button-border-radius, 100px);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.wt-form .wt-button {
	width: 100%;
}
.wt-button-outline,
.wt-button-outline:visited {
	border: 2px solid var(--wt-dark);
	background: transparent;
	color: var(--wt-dark);
}
.wt-button-outline:hover {
	background: var(--wt-dark);
	color: var(--wt-white);
}
.wt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}
.wt-actions .wt-button {
	flex: 1 1 160px;
}
.wt-small {
	margin: 18px 0 0;
	font-size: 14px;
	text-align: center;
}
.wt-error {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: 14px;
	background: #fdecea;
	color: #b42318;
	font-size: 15px;
	font-weight: 600;
}
.wt-highlight {
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--wt-mint);
	color: var(--wt-dark);
	font-weight: 600;
}

/* "Done" and notice cards */
.wt-notice {
	max-width: 620px;
}
.wt-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--wt-mint);
	color: var(--wt-dark);
}
.wt-icon svg {
	width: 28px;
	height: 28px;
}
.wt-icon-check {
	background: var(--wt-accent);
	color: var(--wt-white);
}

/* WooCommerce: the Supporter status under an order, and on My Account */
.wt-supporter-status {
	margin: 32px 0;
	padding: 28px 32px;
	border-radius: var(--wt-radius);
	background: var(--wt-mint);
	color: var(--wt-dark);
}
.wt-supporter-status h2 {
	margin: 0 0 8px;
	font-size: 20px;
}
.wt-supporter-status p {
	margin: 0;
	line-height: 1.6;
}
.wt-account-status {
	margin: 24px 0;
	padding: 18px 22px;
	border-left: 4px solid var(--wt-accent);
	border-radius: 14px;
	background: var(--wt-soft);
	color: var(--wt-dark);
	line-height: 1.6;
}

/* Phones and narrow windows */
@media (max-width: 860px) {
	.wt-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 600px) {
	.wt-wrap {
		padding: 0 16px;
	}
	.wt-hero {
		padding: 48px 0 120px;
	}
	body:has([data-transparent-row="yes"]) .wt-hero {
		padding-top: 130px;
	}
	.wt-lede {
		font-size: 16px;
	}
	.wt-card,
	.wt-aside {
		padding: 26px 22px;
		border-radius: 20px;
	}
	.wt-label {
		flex-direction: column;
		gap: 2px;
	}
}
