/*
	Home page redesign (index.php): WordPress websites and Progressive Web Apps

	Loaded by that page alone, after style.css. Builds on the .pws- primitives there; everything new is .pws2- so it
	cannot touch the live pages.
*/

/* ---------------------------------------------------------------- Hero and the two choices */

/* The photograph is set inline, as on the live home page; style.css darkens it */
.pws2-hero {
	padding-bottom: 150px;
}

.pws2-hero .pws-hero-title {
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Pulled up over the bottom of the hero */
.pws2-choices {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: -90px;
}

.pws2-choice {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 32px 30px;
	border: 1px solid var(--pws-line);
	border-top: 4px solid var(--pws-blue);
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(20, 30, 40, 0.18);
	color: inherit;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pws2-choice:hover,
.pws2-choice:focus {
	transform: translateY(-4px);
	box-shadow: 0 30px 70px rgba(20, 30, 40, 0.24);
	color: inherit;
	text-decoration: none;
}

.pws2-choice-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 6px;
	background: var(--pws-blue);
	color: #ffffff;
	font-size: 28px;
}

.pws2-choice-body {
	display: block;
}

.pws2-choice-label,
.pws2-choice-text {
	display: block;
}

.pws2-choice-label {
	margin-bottom: 8px;
	font-size: 22px;
	font-weight: 700;
	color: var(--pws-ink);
}

.pws2-choice-text {
	font-size: 15px;
	line-height: 1.65;
	color: var(--pws-ink-soft);
}

@media (max-width: 800px) {

	.pws2-choices {
		grid-template-columns: 1fr;
	}

	.pws2-hero {
		padding-bottom: 130px;
	}
}

@media (max-width: 480px) {

	.pws2-choice {
		flex-direction: column;
		gap: 16px;
	}
}


/* ---------------------------------------------------------------- Trust strip */

.pws2-trust {
	padding: 56px 0 8px 0;
	text-align: center;
}

.pws2-rating {
	margin-bottom: 26px;
}

.pws2-trust-label {
	margin: 0 0 22px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8a95a0;
}


/* ---------------------------------------------------------------- Service sections */

.pws2-title {
	margin: 0 0 22px 0;
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--pws-ink);
}

.pws2-subhead {
	margin: 72px 0 26px 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--pws-ink);
}

/* The eyebrow is a <p> inside .pws-prose, whose paragraph rule would otherwise win */
.pws-prose .pws-eyebrow,
.pws2-pwa .pws-prose .pws-eyebrow {
	margin-bottom: 12px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--pws-blue);
}

.pws-ticks {
	margin-bottom: 8px;
}

.pws-split-media img {
	box-shadow: 0 18px 48px rgba(20, 30, 40, 0.16);
}


/* ---------------------------------------------------------------- Progressive Web Apps (the dark band) */

.pws2-pwa .pws2-title,
.pws2-pwa .pws2-subhead,
.pws2-pwa .pws-prose p {
	color: rgba(255, 255, 255, 0.82);
}

.pws2-pwa .pws2-title,
.pws2-pwa .pws2-subhead {
	color: #ffffff;
}

.pws2-pwa .pws-tile {
	border-color: rgba(255, 255, 255, 0.12);
}

.pws2-feature {
	padding: 28px 24px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
}

.pws2-features {
	margin-top: 64px;
}

.pws2-feature .pws-card-icon {
	margin-bottom: 16px;
}

.pws2-feature-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

.pws2-feature-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.7);
}

/* The phone: a frame, a notch and a screen, drawn in CSS so there is no mockup picture to ship */
.pws2-phone-wrap {
	display: flex;
	justify-content: center;
}

.pws2-phone {
	position: relative;
	width: 260px;
	padding: 12px;
	border-radius: 38px;
	background: #0f1114;
	box-shadow: 0 0 0 2px #3a4048, 0 30px 70px rgba(0, 0, 0, 0.5);
}

.pws2-phone:before {
	content: "";
	position: absolute;
	top: 20px;
	left: 50%;
	z-index: 2;
	width: 70px;
	height: 6px;
	margin-left: -35px;
	border-radius: 3px;
	background: #2a2f35;
}

.pws2-phone-screen {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	height: 470px;
	border-radius: 28px;
	background: #ffffff;
}

.pws-split-media .pws2-phone-screen img {
	width: 100%;
	height: 100%;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: left top;
}

.pws2-phone-install {
	position: absolute;
	right: 14px;
	bottom: 18px;
	left: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--pws-blue);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	color: #ffffff;
}


/* ---------------------------------------------------------------- Compare, testimonials, process */

.pws2-compare {
	align-items: stretch;
}

.pws2-compare-card {
	padding: 36px 32px;
}

.pws2-compare-card .pws-card-title {
	font-size: 24px;
}

.pws2-compare-card .pws-eyebrow {
	margin-bottom: 8px;
}

.pws2-testimonial {
	border: 1px solid var(--pws-line);
	box-shadow: none;
}

/* Four steps rather than the home page's five */
.pws2-steps {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {

	.pws2-steps {
		grid-template-columns: 1fr;
	}
}
