/* --------------------------------------------------------------------------
   Homepage Features: "What you get" (patterns/features.php, theme 1.9.1)
   Sticky list left, one large colour panel per feature right. Each panel: one
   heading, one line, a link, and a visual that bleeds off its edge. Motion is
   scroll-linked (initFeaturePanels() in main.js sets transform/opacity per
   frame); the rules here are the final, at-rest state.
   Enqueued only on the Homepage template.
   -------------------------------------------------------------------------- */
.section--features {
	background: #fff;
	padding: 72px 0;
}

.fp-title {
	max-width: 820px;
	margin: 0 0 44px;
	font-size: 44px;
	line-height: 1.08;
	letter-spacing: -1.2px;
	color: var(--boltpress-colors-primary);
}

.fp-title span {
	color: #8a5a00;
}

.fp-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

/* ---------- Sticky list ---------- */
.fp-nav {
	display: none;
}

.fp-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-nav__link {
	position: relative;
	display: block;
	padding: 13px 0 13px 20px;
	border-bottom: 1px solid #eceef2;
	font-size: 16px;
	font-weight: 600;
	color: #5a6578;
	text-decoration: none;
	transition: color 0.2s;
}

.fp-nav__link small {
	margin-left: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #8a5a00;
}

.fp-nav__link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -3.5px;
	border-radius: 1px;
	background: var(--boltpress-colors-primary);
	opacity: 0;
	transition: opacity 0.2s;
}

.fp-nav__link:hover {
	color: var(--boltpress-colors-primary);
}

.fp-nav__link.is-active {
	color: var(--boltpress-colors-primary);
	font-weight: 700;
}

.fp-nav__link.is-active::before {
	opacity: 1;
}

.fp-nav__group {
	padding: 22px 0 6px 20px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #8a5a00;
}

/* ---------- Panels ---------- */
.fp-panels {
	display: grid;
	gap: 24px;
}

.fp {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 580px;
	padding: 44px 48px 0;
	border-radius: 28px;
	overflow: hidden;
	color: #fff;
	scroll-margin-top: 110px;
}

.fp p {
	margin: 0;
}

.fp--navy {
	background: #001f3f;
}

.fp--olive {
	background: #3b4131;
}

.fp--blue {
	background: #0a3d7f;
}

.fp--ink {
	background: #0e1626;
}

.fp--yellow {
	background: var(--boltpress-colors-accent);
	color: var(--boltpress-colors-primary);
}

.fp--cream {
	background: var(--boltpress-colors-background-alt);
	color: var(--boltpress-colors-primary);
}

.fp__head {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 28px;
}

.fp__head h3 {
	margin: 0;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.6px;
	color: inherit;
}

.fp__head p {
	max-width: 540px;
	margin-top: 10px;
	font-size: 17px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}

.fp--cream .fp__head p,
.fp--yellow .fp__head p {
	color: rgba(0, 31, 63, 0.78);
}

.fp .fp__kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: rgba(0, 31, 63, 0.7);
}

.fp__btn {
	flex-shrink: 0;
	padding: 12px 20px;
	border-radius: 12px;
	background: #fff;
	color: var(--boltpress-colors-primary);
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.2s;
}

.fp__btn:hover,
.fp__btn:focus-visible {
	color: var(--boltpress-colors-primary);
	transform: translateY(-1px);
}

.fp--cream .fp__btn,
.fp--cream .fp__btn:hover,
.fp--cream .fp__btn:focus-visible,
.fp--yellow .fp__btn,
.fp--yellow .fp__btn:hover,
.fp--yellow .fp__btn:focus-visible {
	background: var(--boltpress-colors-primary);
	color: #fff;
}

.fp__vis {
	position: relative;
	min-height: 400px;
	margin: 0 -48px;
}

/* ---------- Layered screens (parallel projection, like screens laid side by side) ---------- */
.fp-iso {
	position: absolute;
	left: 50%;
	bottom: -100px;
	display: flex;
	align-items: flex-end;
	gap: 18px;
	transform: translateX(-50%);
}

.fp-pane {
	position: relative;
	display: flex;
	flex: 0 0 200px;
	flex-direction: column;
	gap: 8px;
	height: 262px;
	padding: 16px;
	border-radius: 12px;
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.05) 100%);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), -28px 30px 60px rgba(0, 0, 0, 0.28);
	color: #fff;
	transform-origin: left bottom;
}

.fp-pane:nth-child(1) {
	transform: skewY(-18deg);
}

.fp-pane:nth-child(2) {
	transform: translateY(-71px) skewY(-18deg);
}

.fp-pane:nth-child(3) {
	transform: translateY(-142px) skewY(-18deg);
}

.fp-pane:nth-child(4) {
	transform: translateY(-213px) skewY(-18deg);
}

.fp-pane__label {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.fp-pane__foot {
	margin-top: auto !important;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.55);
}

.fp-pane__title {
	font-family: var(--boltpress-typography-font-family-heading);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.5px;
}

.fp-pane__sub {
	font-size: 13px;
	color: #5a6578;
}

.fp-pane__big {
	font-family: var(--boltpress-typography-font-family-heading);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: #9ff0c0;
}

.fp-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 9px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.07);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.fp-row em {
	margin-left: auto;
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
}

.fp-row.is-bad {
	background: rgba(255, 110, 110, 0.18);
}

.fp-row.is-bad em {
	color: #ffb3b3;
}

.fp-dot {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #6ee7a0;
	box-shadow: 0 0 0 3px rgba(110, 231, 160, 0.16);
}

.fp-row.is-bad .fp-dot {
	background: #ff7a7a;
	box-shadow: 0 0 0 3px rgba(255, 122, 122, 0.18);
}

.fp-dot--end {
	margin-left: auto;
}

.fp-app {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 5px;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 800;
	color: #fff;
}

.fp-app--a { background: #7f54b3; }
.fp-app--b { background: #e2498a; }
.fp-app--c { background: #2d9cdb; }
.fp-app--d { background: #f2994a; }

.fp-meter {
	height: 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.fp-meter i {
	display: block;
	width: 100%;
	height: 100%;
	background: #6ee7a0;
}

.fp-spark {
	width: 100%;
	height: 44px;
	color: #ff8c8c;
}

.fp-cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.fp-cal i {
	aspect-ratio: 1;
	border-radius: 4px;
	background: rgba(110, 231, 160, 0.55);
}

.fp-cal i.is-today {
	background: #6ee7a0;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.fp-big-ic {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
}

.fp-big-ic svg {
	width: 24px;
	height: 24px;
}

.fp-big-ic--ok {
	background: #e3f4ea;
	color: #1f8a52;
}

.fp-big-ic--glass {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.fp-big-ic--shield {
	background: #e8effa;
	color: #0a3d7f;
}

/* The front screen is the outcome: solid, calm, one message. */
.fp-pane--hero {
	background: linear-gradient(170deg, #ffffff 0%, #f1f4f8 100%);
	border-color: rgba(255, 255, 255, 0.9);
	box-shadow: inset 0 1px 0 #fff, -30px 34px 70px rgba(0, 0, 0, 0.35);
	color: var(--boltpress-colors-primary);
}

.fp-pane--hero .fp-pane__label {
	color: #5a6578;
}

.fp-steps {
	display: flex;
	gap: 5px;
	margin-top: auto !important;
}

.fp-steps i {
	flex: 1;
	height: 5px;
	border-radius: 5px;
	background: #b9c6d6;
}

.fp-steps i.is-bad {
	background: #e05252;
}

.fp-steps i.is-ok {
	background: #1f8a52;
}

.fp-fakebtn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	margin-top: auto !important;
	padding: 8px 14px;
	border-radius: 9px;
	background: var(--boltpress-colors-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.fp-fakebtn svg {
	width: 14px;
	height: 14px;
}

/* ---------- Flat views shared ---------- */
.fp-board,
.fp-mail,
.fp-apps,
.fp-portal,
.fp-preview {
	position: absolute;
	background: #fff;
	color: var(--boltpress-colors-primary);
}

/* Uptime */
.fp-board {
	left: 48px;
	right: 18%;
	bottom: -40px;
	padding: 24px 26px 64px;
	border-radius: 20px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.fp-board__head,
.fp-apps__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-size: 15px;
}

.fp-board__head span {
	font-size: 13px;
	font-weight: 600;
	color: #5a6578;
}

.fp-bars {
	display: grid;
	grid-template-columns: repeat(60, 1fr);
	gap: 3px;
	height: 120px;
	margin-top: 20px;
}

.fp-bars i {
	border-radius: 3px;
	background: #bfe6cf;
}

.fp-bars i.is-down {
	background: #d64545;
}

.fp-mail {
	right: 40px;
	top: 60px;
	width: 320px;
	padding: 18px 20px;
	border-radius: 16px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.fp-mail__from {
	font-size: 12.5px;
	font-weight: 700;
	color: #5a6578;
}

.fp-mail__subj {
	margin-top: 4px !important;
	font-size: 17px;
	font-weight: 800;
}

.fp-mail__subj::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 8px;
	border-radius: 50%;
	background: #d64545;
	vertical-align: 2px;
}

.fp-mail__body {
	margin-top: 4px !important;
	font-size: 14.5px;
	color: #4a5568;
}

/* Free plan live (1.13.0): the mock shows the email as a switch the owner turned on,
   since down and recovery email is off until then (FT27). The card is a row taller, so
   it starts higher to keep clear of the uptime board (phones reset it below). */
.fp-mail--opt {
	top: 20px;
}

.fp-mail .fp-mail__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--boltpress-colors-border);
	font-size: 12.5px;
	font-weight: 700;
	color: var(--boltpress-colors-text);
}

.fp-mail__opt .fp-switch {
	flex-shrink: 0;
}

/* BoltPress MCP */
.fp--yellow .mcp-logo {
	border-color: var(--boltpress-colors-accent);
}

.fp--yellow .mcp-logo--plus {
	background: #ffe866;
}

.fp-mcp-flow {
	position: absolute;
	right: 48px;
	top: 70px;
}

.fp-apps {
	left: 48px;
	bottom: -36px;
	width: min(430px, calc(100% - 96px));
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 22px 22px 56px;
	border-radius: 20px;
	box-shadow: 0 30px 60px -24px rgba(0, 31, 63, 0.45);
}

.fp-apps__head span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: #1f8a52;
}

.fp-apps__head svg {
	width: 14px;
	height: 14px;
}

.fp-apps__row {
	display: grid;
	grid-template-columns: 34px 1fr auto 40px;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	background: #f6f7f9;
	font-size: 15px;
}

.fp-apps__row em {
	font-style: normal;
	font-size: 13px;
	font-weight: 600;
	color: #5a6578;
}

.fp-apps__logo {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 1px solid #e6e9ee;
}

.fp-apps__logo img {
	width: 20px;
	height: 20px;
}

.fp-switch {
	position: relative;
	width: 40px;
	height: 23px;
	border-radius: 999px;
	background: #cbd2dc;
}

.fp-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #fff;
}

.fp-switch.is-on {
	background: var(--boltpress-colors-primary);
}

.fp-switch.is-on::after {
	left: 20px;
	background: var(--boltpress-colors-accent);
}

.fp-apps__foot {
	padding-top: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #5a6578;
}

/* Your own developer: a portal window plus the delivered page */
.fp-portal {
	left: 48px;
	right: -40px;
	top: 26px;
	bottom: -60px;
	display: grid;
	grid-template-columns: 210px 1fr;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 34px 70px -28px rgba(0, 31, 63, 0.45);
}

.fp-portal__side {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 20px 14px;
	background: #f4f6f9;
	border-right: 1px solid #e6e9ee;
}

.fp-portal__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px !important;
	font-family: var(--boltpress-typography-font-family-heading);
	font-size: 16px;
	font-weight: 800;
}

.fp-portal__brand .fp-av {
	width: 28px;
	height: 28px;
}

.fp-portal__nav {
	padding: 0 8px 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #8a94a6;
}

.fp-portal__item {
	display: grid;
	gap: 2px;
	padding: 10px;
	border-radius: 10px;
	font-size: 13.5px;
}

.fp-portal__item.is-on {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 31, 63, 0.08);
}

.fp-portal__item span {
	font-size: 12px;
	font-weight: 700;
	color: #8a94a6;
}

.fp-portal__item span.is-done,
.fp-portal__title span.is-done {
	color: #1f8a52;
}

.fp-portal__item span.is-run {
	color: #8a5a00;
}

.fp-portal__main {
	display: grid;
	align-content: start;
	gap: 16px;
	padding: 22px 26px;
}

.fp-portal__title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
}

.fp-portal__title b {
	font-family: var(--boltpress-typography-font-family-heading);
}

.fp-portal__title span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 800;
}

.fp-portal__title svg {
	width: 13px;
	height: 13px;
}

.fp-track {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	max-width: 420px;
}

.fp-track span {
	padding-top: 8px;
	border-top: 3px solid #dfe4ea;
	font-size: 12px;
	font-weight: 700;
	color: #8a94a6;
}

.fp-track span.is-on {
	border-top-color: #1f8a52;
	color: var(--boltpress-colors-primary);
}

.fp-msg {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 12px;
	align-items: start;
	max-width: 400px;
}

.fp-msg p {
	font-size: 15px;
	line-height: 1.5;
	color: #2d3748;
}

.fp-msg b {
	display: block;
	font-size: 13.5px;
	color: var(--boltpress-colors-primary);
}

.fp-av {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #e8ecf2;
	color: var(--boltpress-colors-primary);
	font-family: var(--boltpress-typography-font-family-heading);
	font-size: 14px;
	font-weight: 800;
}

.fp-av--dev {
	background: var(--boltpress-colors-primary);
	color: var(--boltpress-colors-accent);
}

.fp-av svg {
	width: 16px;
	height: 16px;
}

.fp-preview {
	right: 36px;
	bottom: -40px;
	width: 230px;
	display: grid;
	gap: 8px;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid #e6e9ee;
	box-shadow: 0 30px 60px -18px rgba(0, 31, 63, 0.4);
	transform: rotate(2deg);
}

.fp-preview__label {
	font-size: 11px;
	font-weight: 700;
	color: #8a94a6;
}

.fp-preview__title {
	font-family: var(--boltpress-typography-font-family-heading);
	font-size: 18px;
	font-weight: 800;
}

.fp-field {
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid #e1e5eb;
	font-size: 12.5px;
	color: #8a94a6;
}

.fp-field--btn {
	border: 0;
	background: var(--boltpress-colors-accent);
	color: var(--boltpress-colors-primary);
	font-weight: 800;
	text-align: center;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 1024px) {
	.fp-layout {
		grid-template-columns: 220px 1fr;
		gap: 40px;
	}

	.fp-nav {
		display: block;
		position: sticky;
		top: 120px;
		align-self: start;
	}
}

@media (max-width: 1023px) {
	.fp__head {
		flex-direction: column;
		gap: 18px;
	}

	.fp-mcp-flow {
		display: none;
	}

	/* The taller Free-plan mail card (1.13.0) clears the uptime board here too */
	.fp-mail--opt {
		top: 0;
	}
}

@media (max-width: 767px) {
	.section--features {
		padding: 48px 0;
	}

	.fp-title {
		margin-bottom: 28px;
		font-size: var(--boltpress-typography-font-size-3xl);
		letter-spacing: -0.5px;
	}

	.fp {
		min-height: 520px;
		padding: 28px 24px 0;
		border-radius: 22px;
	}

	.fp__head h3 {
		font-size: 24px;
	}

	.fp__head p {
		font-size: 16px;
	}

	.fp__vis {
		min-height: 300px;
		margin: 0 -24px;
	}

	.fp-iso {
		left: 12px;
		bottom: -120px;
		transform: scale(0.6);
		transform-origin: left bottom;
	}

	.fp-board {
		left: 20px;
		right: 20px;
		padding-bottom: 50px;
	}

	.fp-bars {
		height: 80px;
		gap: 2px;
	}

	.fp-mail {
		left: 20px;
		right: 20px;
		top: 10px;
		width: auto;
	}

	/* Uptime panel: the mail card is too tall to float over the board here (the plain
	   card overlapped it by 18px at 320-360px, the Free switch card by up to 102px), so
	   the card and the board stack in the flow: card on top, board at the bottom edge,
	   still running 40px past it. The panel grows instead of the two overlapping. */
	.fp__vis--stack {
		display: flex;
		flex-direction: column;
	}

	.fp__vis--stack .fp-mail {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		order: -1;
		margin: 10px 20px 16px;
	}

	.fp__vis--stack .fp-board {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		margin: auto 20px -40px;
	}

	.fp-apps {
		left: 20px;
		width: calc(100% - 40px);
	}

	.fp-apps__row {
		grid-template-columns: 30px 1fr 40px;
	}

	.fp-apps__row em {
		display: none;
	}

	.fp-portal {
		left: 20px;
		right: -10px;
		top: 20px;
		grid-template-columns: 1fr;
	}

	.fp-portal__side {
		display: none;
	}

	.fp-preview {
		display: none;
	}
}

