/*------------------------------------------------------------------------------
 Public pages: the home page (.home) and the registration banner (.reg-hero).

 Linked from index.aspx and registration.aspx only, and self-contained: it
 defines its own colours and fonts, so the pages look the same under the
 classic style.css and under style-v2.css.
------------------------------------------------------------------------------*/
.home, .reg-hero {
	--pub-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Noto Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;
	--pub-fs: 12px;
	--pub-fs-sm: 11px;
	--pub-text: #3f4850;
	--pub-heading: #2f3a44;
	--pub-muted: #6b7680;
	--pub-line: #dde5ec;
	--pub-blue: #0077a8;
	--pub-sky-dark: #5f9ac6;
	--pub-deep: #0b3a5e;
	--pub-deep-mid: #1668a3;
	--pub-gold: #f9cf04;
	--pub-gold-dark: #d6b201;
	--pub-warm: #ffe45c;
	--pub-radius: 6px;
}

.home {
	float: left;
	width: 647px;
	padding: 16px;
	font: var(--pub-fs)/1.55 var(--pub-font);
	color: var(--pub-text);
	text-align: left;
}
/* The site stylesheets float every image in the form and pad every
   paragraph; neither applies inside these blocks. */
.home img, .reg-hero img {
	float: none;
}
.home p, .reg-hero p {
	margin: 0;
	padding: 0;
	text-align: left;
}

/* Call to action, the same on the hero and at the end of the page. */
.home a.home-button:link, .home a.home-button:visited {
	display: inline-block;
	height: 3rem;
	padding: 0 2rem;
	line-height: 3rem;
	white-space: nowrap;
	font: bold 1.25rem/3rem var(--pub-font);
	color: #4a3b00;
	text-decoration: none;
	background: linear-gradient(to bottom, var(--pub-gold) 48%, var(--pub-gold-dark) 100%);
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.home a.home-button:hover {
	background: linear-gradient(to bottom, #ffe04d 0%, #e6c000 100%);
}

/* Hero: the photo as a real image (alt text for search engines) under a
   gradient that keeps the text readable on the left. */
.home-hero {
	position: relative;
	height: 330px;
	border-radius: var(--pub-radius);
	overflow: hidden;
	background: linear-gradient(135deg, var(--pub-deep) 0%, var(--pub-deep-mid) 55%, var(--pub-sky-dark) 100%);
	box-shadow: 0 2px 8px rgba(20, 60, 100, 0.25);
}
.home-hero-photo {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(6, 30, 52, 0.85) 0%, rgba(6, 30, 52, 0.55) 45%, rgba(6, 30, 52, 0) 75%);
}
.home-hero-text {
	position: relative;
	z-index: 1;
	width: 400px;
	padding: 26px 28px;
	color: #fff;
}
.home h1 {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	font: bold 1.9rem/1.2 var(--pub-font);
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.home h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 12px;
	border-radius: 2px;
	background: var(--pub-gold);
}
.home .home-lead {
	margin: 0 0 18px;
	font-size: var(--pub-fs);
	line-height: 1.6;
	font-weight: 600;
	color: #fff;
	/* a soft halo plus a thin edge keep the intro readable over the riders
	   without darkening the photo */
	text-shadow: 0 0 6px rgba(6, 30, 52, 0.9), 0 1px 2px rgba(0, 0, 0, 0.8);
}
.home-chips {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.home-chips li {
	display: inline-block;
	margin: 0 6px 4px 0;
	padding: 2px 10px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
	font-size: var(--pub-fs-sm);
	color: #fff;
}

/* Sections: titles with the chevron badge used across the v2 design. */
.home-section {
	margin-top: 30px;
}
.home h2 {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font: bold 1.3rem/1.3 var(--pub-font);
	color: var(--pub-blue);
	text-shadow: none;
}
.home h2::before {
	content: "\00BB";
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 8px;
	border-radius: 4px;
	background: linear-gradient(to bottom, #8fc4e6 0%, var(--pub-sky-dark) 100%);
	color: #fff;
	text-align: center;
	font: bold 14px/19px var(--pub-font);
	vertical-align: 2px;
}
.home h3 {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font: bold var(--pub-fs)/1.35 var(--pub-font);
	color: var(--pub-heading);
}

/* How it works: three numbered steps. */
.home-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.home-steps li {
	position: relative;
	padding: 14px 14px 14px 52px;
	background: #f7fafc;
	border: 1px solid var(--pub-line);
	border-radius: var(--pub-radius);
	counter-increment: step;
}
.home-steps li::before {
	content: counter(step);
	position: absolute;
	left: 14px;
	top: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pub-gold);
	color: #4a3b00;
	font: bold 15px/28px var(--pub-font);
	text-align: center;
}

/* Screenshots of the game (fictional data), each opening at full size. */
.home-shot-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.home-shots figure {
	margin: 0;
}
.home-shots img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
	object-position: left top;
	border: 1px solid var(--pub-line);
	border-radius: var(--pub-radius);
	box-shadow: 0 1px 4px rgba(20, 60, 100, 0.15);
}
.home-shots a:hover img {
	border-color: #0099cb;
	box-shadow: 0 2px 8px rgba(0, 119, 168, 0.3);
}
.home-shots figcaption {
	margin-top: 6px;
	font-size: var(--pub-fs-sm);
	color: var(--pub-muted);
	text-align: center;
}

.home-about p + p {
	margin-top: 8px;
}

/* Features: 2 x 3 grid. */
.home-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.home-feature {
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--pub-line);
	border-radius: var(--pub-radius);
	box-shadow: 0 1px 3px rgba(20, 60, 100, 0.08);
}
.home-icon {
	display: inline-block;
	width: 34px;
	height: 34px;
	margin-bottom: 8px;
	border-radius: 8px;
	background: linear-gradient(135deg, #1aa6d6 0%, var(--pub-blue) 100%);
}
.home-icon svg {
	width: 22px;
	height: 22px;
	margin: 6px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.home-feature p {
	color: var(--pub-muted);
}

/* Facts strip: the grey mountain photo blended into the deep blue. */
.home-facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 30px;
	padding: 24px 10px;
	border-radius: var(--pub-radius);
	background:
		linear-gradient(to bottom, rgba(6, 30, 52, 0.35), rgba(6, 30, 52, 0.55)),
		url("../images/peloton-mountain.webp") center 70% / cover,
		linear-gradient(135deg, var(--pub-deep) 0%, var(--pub-deep-mid) 100%);
	background-blend-mode: normal, screen, normal;
	text-align: center;
	box-shadow: 0 2px 8px rgba(20, 60, 100, 0.25);
}
.home-facts strong {
	display: block;
	font: bold 1.6rem/1.2 var(--pub-font);
	color: var(--pub-warm);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.home-facts span {
	font-size: var(--pub-fs-sm);
	color: rgba(255, 255, 255, 0.85);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.home-final {
	text-align: center;
}
.home-final p {
	max-width: 480px;
	margin: 0 auto 16px;
	text-align: center;
}

/* Registration banner: a slim strip of the mountain-back photo behind the
   title and intro, so the form still starts near the top of the page. */
.reg-hero {
	position: relative;
	height: 110px;
	margin: 10px 0 30px;
	border-radius: var(--pub-radius);
	overflow: hidden;
	background: var(--pub-deep);
	box-shadow: 0 2px 8px rgba(20, 60, 100, 0.25);
}
.reg-hero-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.reg-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(6, 30, 52, 0.85) 0%, rgba(6, 30, 52, 0.6) 55%, rgba(6, 30, 52, 0.1) 85%);
}
.reg-hero-text {
	position: relative;
	z-index: 1;
	width: 520px;
	padding: 16px 24px;
}
.reg-hero h1 {
	margin: 0 0 8px;
	padding: 0 0 0.35rem;
	font: bold 1.6rem/1.2 var(--pub-font);
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	border-bottom: 3px solid var(--pub-gold);
}
.reg-hero p {
	font: bold var(--pub-fs)/1.5 var(--pub-font);
	color: rgba(255, 255, 255, 0.92);
}
/* The first section title follows the banner directly: the banner's margin
   already gives the 30px gap used under the home hero. */
.reg-hero ~ [id$="pnlForm"] > h2:first-child {
	margin-top: 0;
}
