/* Login page: the pitch beside the sign-in card (views/loginPitch.php) and the
   feature band below it (views/loginFeatures.php). The card keeps its own styles
   in userlogin.css; .stage only positions it. */

/* Metropolis ships every weight but font.css only registers Medium. Register the
   weights this page needs under an alias so the card's rendering is unchanged. */
@font-face { font-family: "MetropolisWeb"; font-weight: 400; font-display: swap; src: url("../fonts/metropolis/Webfonts/WOFF/Metropolis-Medium.woff") format("woff"); }
@font-face { font-family: "MetropolisWeb"; font-weight: 600; font-display: swap; src: url("../fonts/metropolis/Webfonts/WOFF/Metropolis-SemiBold.woff") format("woff"); }
@font-face { font-family: "MetropolisWeb"; font-weight: 800; font-display: swap; src: url("../fonts/metropolis/Webfonts/WOFF/Metropolis-ExtraBold.woff") format("woff"); }

.pitch,
.features {
	--ink: #0f1c28;
	--ink-2: #3b4d5e;
	--steel: #5f7891;
	--green-deep: #2f7a27;
	--rule: rgba(15, 28, 40, .18);
	color: var(--ink);
	font-family: "MetropolisWeb", "Metropolis", system-ui, sans-serif;
}

/* the blue band: pitch on the left, card on the right */
.stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 520px;
	column-gap: 72px;
	align-items: start;
	width: 100%;
	max-width: 1148px;
	box-sizing: border-box;
	padding: calc(60px + 2vh) 24px 56px;
}

.stage .form-v1-content { grid-column: 2; grid-row: 1; margin: 0; width: 100%; } /* fill the 520px track */
.stage .pitch { grid-column: 1; grid-row: 1; align-self: center; }

/* the 2FA step: card alone, centred as before */
.stage--solo { display: flex; justify-content: center; }
.stage--solo .form-v1-content { margin: 0 0 16px; }

.pitch__title {
	font-weight: 800;
	font-size: 44px;
	line-height: 1.06;
	letter-spacing: -.02em;
	margin: 0 0 18px;
}

.pitch__lead {
	font-size: 17px;
	line-height: 1.5;
	color: var(--ink-2);
	max-width: 30em;
	margin: 0 0 32px;
}

.pitch__trial {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 14px;
}

.pitch__button,
.features-cta__button {
	display: inline-block;
	background: var(--green-deep);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 22px;
	border-radius: 6px;
	text-decoration: none;
}

.pitch__button:hover,
.features-cta__button:hover { background: #276a21; }

/* the white band */
.features {
	width: 100%;
	background: #fff;
	padding: 56px 0 48px;
}

.features__inner {
	max-width: 1148px;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0 24px;
}

.features__title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -.01em;
	max-width: 36em;
	margin: 0 0 32px;
}

/* groups flow down the columns in the app's menu order, so short groups fill
   the space beside tall ones */
.feature-groups {
	column-count: 3;
	column-gap: 48px;
}

.feature-group {
	break-inside: avoid;
	margin-bottom: 40px;
}

.feature-group__title {
	margin: 0 0 14px;
	padding-top: 12px;
	border-top: 2px solid var(--ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.feature {
	display: grid;
	align-content: start;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 12px;
}

.feature i,
.feature svg {
	grid-row: 1 / 3;
	font-size: 20px;
	line-height: 1;
	margin-top: 1px;
	--fa-primary-color: var(--ink);
	--fa-secondary-color: var(--steel);
	--fa-secondary-opacity: .5;
}

.feature__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.feature__title a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.feature__text {
	margin: 2px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ink-2);
}

.feature__new {
	display: inline-block;
	vertical-align: 2px;
	margin-left: 6px;
	padding: 1px 7px 2px;
	border-radius: 999px;
	background: var(--green-deep);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.features-more {
	margin: 24px 0 0;
	font-size: 15px;
	color: var(--ink-2);
}

.features-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* close */
.features-cta {
	margin-top: 16px;
	padding-top: 32px;
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.features-cta__signin { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.pitch a:focus-visible,
.features a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
#login_form { scroll-margin-top: 72px; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* breakpoints: match userlogin.css (991 / 767) */
@media screen and (max-width: 991px) {
	.stage { display: block; padding-bottom: 48px; }
	.stage .form-v1-content { margin: 0 auto; width: calc(100% - 105px); } /* as userlogin.css */
	.pitch { padding-top: 40px; max-width: 520px; margin: 0 auto; text-align: center; }
	.pitch__title { font-size: 36px; }
	.pitch__lead { margin-left: auto; margin-right: auto; }
	.feature-groups { column-count: 2; }
}

@media screen and (max-width: 767px) {
	/* the card already insets itself (userlogin.css: width calc(100% - 40px)) */
	.stage { padding-left: 0; padding-right: 0; }
	.stage .form-v1-content { width: calc(100% - 40px); } /* as userlogin.css at 575px */
	.pitch { padding-left: 20px; padding-right: 20px; }
	.pitch__title { font-size: 30px; line-height: 1.1; letter-spacing: -.015em; }
	.pitch__button, .features-cta__button { width: 100%; box-sizing: border-box; text-align: center; }
	.features { padding: 44px 0 48px; }
	.features__inner { padding: 0 20px; }
	.feature-groups { column-count: 1; }
	.feature-group { margin-bottom: 32px; }
}
