/* ==========================================================================
   Pricing & FAQs — "The questions in the margin."
   Native <details>. Default (mobile, no JS): answers open beneath their
   questions. .is-margin (900px+, JS): questions left, the open answer set
   beside its question in the right margin; it is positioned, so switching
   answers never moves the questions.
   ========================================================================== */

.el-pf {
	padding: clamp(3.5rem, 7vw, 5.5rem) var(--el-gutter, 1.25rem) clamp(4rem, 8vw, 6rem);
	color: var(--el-ink, #070816);
}

.el-pf p,
.el-pf h2 {
	margin: 0;
}

.el-pf__inner {
	max-width: var(--el-wide, 1240px);
	margin: 0 auto;
}

.el-pf__title {
	font-size: clamp(2.25rem, 4.2vw, 3.5rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.el-pf__title .el-grad {
	white-space: nowrap;
}

.el-pf__list {
	position: relative;
	margin-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--el-ink, #070816);
}

.el-pf__item {
	border-bottom: 1px solid var(--el-line, #e6e8ed);
}

.el-pf__q {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr) 1.5rem;
	align-items: baseline;
	gap: 0.75rem;
	padding: 1.25rem 0;
	list-style: none;
	cursor: pointer;
	border-radius: 4px;
	transition: color 0.2s ease;
}

.el-pf__q::-webkit-details-marker,
.el-pf__q::marker {
	display: none;
	content: "";
}

.el-pf__q:hover {
	color: var(--el-blue, #003dfa);
}

.el-pf__q:focus-visible {
	outline: 2px solid var(--el-blue, #003dfa);
	outline-offset: 4px;
}

.el-pf__num {
	color: #6b7080;
	font-size: 0.8125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.el-pf__qtext {
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

/* Plus / minus mark */
.el-pf__mark {
	position: relative;
	align-self: center;
	width: 14px;
	height: 14px;
	justify-self: end;
}

.el-pf__mark::before,
.el-pf__mark::after {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 14px;
	height: 2px;
	background-color: currentColor;
	transition: transform 0.2s ease;
}

.el-pf__mark::after {
	transform: rotate(90deg);
}

.el-pf__item[open] .el-pf__mark::after {
	transform: rotate(0deg);
}

/* Selected question */
.el-pf__item[open] .el-pf__q {
	color: var(--el-ink, #070816);
}

.el-pf__item[open] .el-pf__num {
	color: var(--el-coral, #fb484c);
}

.el-pf__a {
	padding: 0 0 1.5rem 3.5rem;
}

.el-pf__a p {
	max-width: 36rem;
	padding-left: 1.25rem;
	border-left: 2px solid;
	border-image: linear-gradient(180deg, #003dfa, #fb484c) 1;
	color: #3d4150;
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* ---------- Desktop margin-note layout (JS adds .is-margin) ---------- */

@media (min-width: 900px) {
	.el-pf.is-margin .el-pf__list {
		width: 54%;
	}

	.el-pf.is-margin .el-pf__item[open] .el-pf__q {
		box-shadow: inset 3px 0 0 var(--el-coral, #fb484c);
		padding-left: 0.875rem;
		margin-left: -0.875rem;
	}

	.el-pf.is-margin .el-pf__item[open] .el-pf__mark {
		visibility: hidden;
	}

	/* The open answer sits in the right margin, beside its question */
	.el-pf.is-margin .el-pf__a {
		position: absolute;
		left: calc(100% + clamp(2.5rem, 5vw, 4.5rem));
		top: var(--el-pf-top, 0);
		width: calc(85% - clamp(2.5rem, 5vw, 4.5rem));
		padding: 1.25rem 0 0;
	}

	/* A short connector from the selected question to its note */
	.el-pf.is-margin .el-pf__a::before {
		content: "";
		position: absolute;
		top: 2.05rem;
		right: calc(100% + 0.75rem);
		width: clamp(1.5rem, 3.5vw, 3.5rem);
		border-top: 1px solid var(--el-coral, #fb484c);
	}

	.el-pf.is-margin .el-pf__a p {
		font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
		line-height: 1.55;
		color: var(--el-ink, #070816);
		animation: el-pf-in 0.25s ease;
	}
}

@keyframes el-pf-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.el-pf__q,
	.el-pf__mark::before,
	.el-pf__mark::after {
		transition: none;
	}

	.el-pf.is-margin .el-pf__a p {
		animation: none;
	}
}
