/* "See If It Fits" qualification flow
   Two pieces: the dropdown that replaces the hero's second button, and the
   modal it opens. Both are driven by js/fit-form.js — the copy and the step
   logic live there, not here.

   Phone overrides are in responsive.css, like every other media query. */

/* ---------------- hero dropdown ---------------- */
.fit-drop {
	position: relative;
	display: inline-block;
}
.fit-drop > .btn .chev {
	transition: transform 0.18s;
}
.fit-drop.open > .btn .chev {
	transform: rotate(180deg);
}
.fit-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 320px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.5);
	padding: 8px;
	z-index: 40;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition:
		opacity 0.18s,
		transform 0.18s;
}
.fit-drop.open .fit-menu {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.fit-menu-head {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--grey-40);
	padding: 10px 12px 8px;
}
.fit-menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	border-radius: 10px;
	padding: 12px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--grey-70);
	cursor: pointer;
	transition:
		background 0.13s,
		color 0.13s;
}
.fit-menu button:hover {
	background: var(--green-surface);
	color: var(--green);
}
.fit-menu button svg {
	width: 15px;
	height: 15px;
	margin-left: auto;
	color: var(--green-40);
	flex: 0 0 auto;
}

/* ---------------- modal shell ---------------- */
.fit-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(17, 42, 31, 0.58);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.22s;
}
.fit-overlay[hidden] {
	display: none;
}
.fit-overlay.show {
	opacity: 1;
}
.fit-modal {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: min(88vh, 760px);
	overflow-y: auto;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
	padding: 34px 36px 32px;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.22s;
}
.fit-overlay.show .fit-modal {
	transform: none;
}
.fit-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--grey-50);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition:
		color 0.14s,
		border-color 0.14s;
}
.fit-close:hover {
	color: var(--grey-70);
	border-color: var(--grey-20);
}
.fit-close svg {
	width: 15px;
	height: 15px;
}

/* ---------------- progress + question ---------------- */
.fit-prog {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 22px;
	padding-right: 48px;
}
.fit-prog .seg {
	height: 4px;
	flex: 1;
	border-radius: 4px;
	background: var(--grey-medium);
	transition: background 0.2s;
}
.fit-prog .seg.on {
	background: var(--green);
}
.fit-prog .plabel {
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--green-40);
	margin-left: 10px;
	white-space: nowrap;
}
.fit-q {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--grey-70);
	line-height: 1.15;
	text-wrap: balance;
}
.fit-sub {
	font-size: 14.5px;
	color: var(--grey-60);
	margin-top: 8px;
	line-height: 1.5;
}

/* ---------------- answer options ---------------- */
.fit-opts {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}
.fit-opt {
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
	background: var(--grey-light);
	border: 1px solid var(--border);
	border-radius: 13px;
	padding: 16px 18px;
	cursor: pointer;
	font-family: inherit;
	transition:
		transform 0.14s,
		box-shadow 0.14s,
		border-color 0.14s,
		background 0.14s;
}
.fit-opt:hover {
	background: #fff;
	border-color: var(--green-20);
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -18px rgba(20, 50, 35, 0.3);
}
.fit-opt .foi {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--green-10);
	color: var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.fit-opt .foi svg {
	width: 19px;
	height: 19px;
}
.fit-opt .fot {
	flex: 1;
	min-width: 0;
}
.fit-opt .fot h4 {
	font-size: 15px;
	font-weight: 700;
	color: var(--grey-70);
}
.fit-opt .fot p {
	font-size: 12.5px;
	color: var(--grey-50);
	margin-top: 2px;
	line-height: 1.4;
}
.fit-opt .arr {
	width: 16px;
	height: 16px;
	color: var(--green-40);
	flex: 0 0 auto;
}
.fit-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--grey-50);
	cursor: pointer;
	padding: 6px 0;
	margin-top: 20px;
}
.fit-back:hover {
	color: var(--green);
}
.fit-back svg {
	width: 14px;
	height: 14px;
}

/* ---------------- the fit report ---------------- */
.fit-report {
	position: relative;
	margin-top: 20px;
}
.fit-report-body {
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 22px;
	background: var(--grey-light);
	transition: filter 0.4s;
}
/* .locked is what the email gate lifts — blurred and unreadable until then. */
.fit-report-body.locked {
	filter: blur(8px);
	pointer-events: none;
	user-select: none;
	max-height: 250px;
	overflow: hidden;
}
.fit-report-body h3 {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--grey-70);
	line-height: 1.25;
	text-wrap: balance;
}
.fit-tier {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--green-20);
	border-radius: 12px;
	padding: 14px 16px;
	margin-top: 16px;
}
.fit-tier .tk {
	font-family: "IBM Plex Mono", monospace;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--green-40);
}
.fit-tier .tv {
	font-size: 15.5px;
	font-weight: 800;
	color: var(--green);
	margin-top: 2px;
}
.fit-tier .td {
	font-size: 12.5px;
	color: var(--grey-60);
	margin-top: 2px;
	line-height: 1.4;
}
.fit-bullets {
	list-style: none;
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.fit-bullets li {
	display: flex;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--grey-60);
}
.fit-bullets svg {
	width: 16px;
	height: 16px;
	color: var(--green);
	flex: 0 0 auto;
	margin-top: 2px;
}
.fit-impact {
	margin-top: 14px;
}
.fit-done {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 20px;
}
.fit-done .note {
	font-size: 12.5px;
	color: var(--grey-50);
	flex: 1;
	min-width: 160px;
}

/* ---------------- email gate ---------------- */
/* Floats over the bottom of the blurred report; .gated reserves the room for it. */
.fit-report.gated {
	padding-bottom: 150px;
}
.fit-gate {
	position: absolute;
	left: 50%;
	bottom: -18px;
	transform: translateX(-50%);
	width: min(92%, 440px);
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 22px 50px -20px rgba(20, 50, 35, 0.35);
}
.fit-gate .gh {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--grey-70);
}
.fit-gate .gh svg {
	width: 16px;
	height: 16px;
	color: var(--green);
}
.fit-gate .gs {
	font-size: 12.5px;
	color: var(--grey-50);
	margin-top: 5px;
	line-height: 1.45;
}
.fit-gate .row {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}
.fit-gate input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--grey-20);
	border-radius: 9px;
	padding: 11px 13px;
	font-family: inherit;
	font-size: 14px;
	color: var(--grey-70);
	outline: none;
	transition:
		border-color 0.14s,
		box-shadow 0.14s;
}
.fit-gate input[type="email"]:focus {
	border-color: var(--green-40);
	box-shadow: 0 0 0 3px var(--green-10);
}
.fit-gate .btn {
	padding: 11px 16px;
	font-size: 14px;
}
.fit-consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin-top: 13px;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--grey-50);
	cursor: pointer;
}
.fit-consent input {
	margin-top: 2px;
	accent-color: var(--green);
	flex: 0 0 auto;
}
.fit-consent a {
	color: var(--green);
	text-decoration: underline;
}

/* Honeypot. Must stay in the layout and remain focusable-in-principle so a bot
   that reads computed styles still fills it — display:none is the one thing that
   would give the game away. Off-screen and out of the tab order instead. */
.fit-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.fit-turnstile {
	margin-top: 12px;
}
.fit-err {
	margin-top: 10px;
	padding: 9px 11px;
	border: 1px solid var(--st-rej-bd);
	border-radius: 8px;
	background: var(--st-rej-bg);
	color: var(--st-rej-fg);
	font-size: 12.5px;
	line-height: 1.45;
}
