/* ===========================================================================
 * Front page — sections 8-10: Pricing, FAQ, closing CTA band.
 *
 * Merged into main.css at the end of the pass; loaded only on the front page
 * for now (inc/enqueue.php).
 *
 * SCOPING NOTE. template-parts/pricing-cards.php is shared with
 * page-templates/pricing.php, so every rule that changes the *structure* of a
 * plan card is scoped to `.sf-pricing-section` (the front-page band). The
 * markup changes in that partial are deliberately inert without these rules:
 * the new wrappers are plain blocks and the decorative span has no box, so the
 * Pricing page keeps rendering exactly as it did.
 *
 * TEMPO. These three bands are the end of the scroll and they now have three
 * different lengths and three different opening shapes: Pricing is a tall band
 * on a two-column masthead, FAQ is deliberately SHORT (.sf-section--compact)
 * on a single-line masthead, and the CTA closes into the footer as one dark
 * block. Nothing here repeats the eyebrow → two-line H2 → one white card
 * lockup the reviewers found on six consecutive bands.
 *
 * Everything decorative here is aria-hidden or a pseudo-element,
 * pointer-events:none, and never carries meaning or legibility.
 * ======================================================================== */


/* ===========================================================================
 * 8. Pricing
 *
 * Before: the tallest band on the page (1120px) opening on the same stacked
 * eyebrow → two-line H2 → lead lockup as every band above it, then three cards
 * that each repeated the same renewal sentence and the same 14-day-refund
 * footnote, with the featured card carrying 32px of extra internal padding so
 * no two cards agreed on a baseline.
 *
 * After: a two-column masthead, three cards that register exactly (identical
 * padding, so heading, price, rule, feature row and button sit on the same y
 * in all three), and the standing terms stated once at the foot of the shared
 * strip. The featured plan is expressed as elevation — it overhangs the row by
 * 14px top *and* bottom with matching extra padding, so it is genuinely lifted
 * while every line inside it stays on its neighbours' baseline.
 * ======================================================================== */

@media (min-width: 900px) {
	/* The band opens on a masthead and closes on a strip; the strip does not
	   need the same 112px of air the title does. */
	.sf-pricing-section { padding-bottom: var(--sf-space-9); }
}

/* --- Masthead ------------------------------------------------------------ */

.sf-pricing-section .sf-pricing-head {
	max-width: none;
	display: grid;
	gap: var(--sf-space-4);
	margin-bottom: var(--sf-space-6);
}
@media (min-width: 900px) {
	.sf-pricing-section .sf-pricing-head {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
		gap: var(--sf-space-7);
		align-items: end;              /* both columns finish on one line */
		margin-bottom: var(--sf-space-7);
	}
}
.sf-pricing-section .sf-pricing-head__title { min-width: 0; }
.sf-pricing-section .sf-pricing-head .sf-h2 {
	font-size: clamp(1.9rem, 1.25rem + 1.6vw, 2.75rem);
	letter-spacing: -0.025em;
}
.sf-pricing-section .sf-pricing-head__aside { min-width: 0; }
.sf-pricing-section .sf-pricing-head__note {
	max-width: 62ch;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--sf-ink-2);            /* 10.11:1 on the band ground #EFF1FA */
}
.sf-pricing-section .sf-pricing-head__aside .sf-btn {
	margin-top: var(--sf-space-4);
	margin-inline-start: -12px;
}

/* --- Homepage board: Free + three Pro plans, one row from 1100px --------- */

.sf-home-plans {
	display: grid;
	gap: var(--sf-space-4);
	align-items: stretch;
}
.sf-home-plans > .sf-pricing { display: grid; gap: var(--sf-space-4); }
@media (min-width: 700px) and (max-width: 1099px) {
	.sf-home-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-home-plans > .sf-pricing { display: contents; }
}
@media (min-width: 1100px) {
	.sf-home-plans {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.06fr) minmax(0, 1fr);
		gap: var(--sf-space-4);
	}
	.sf-home-plans > .sf-pricing { display: contents; }
}
.sf-home-plans .sf-notice { grid-column: 1 / -1; }

.sf-pricing-section .sf-pricing__each {
	margin: 8px 0 0;
	min-height: 1.35em;
	font-family: var(--sf-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--sf-ink-2);
}

.sf-pricing-section .sf-pricing__card--free {
	background: linear-gradient(180deg, #F8FAFF 0%, #fff 42%);
	border-color: rgba(79, 70, 229, .28);
	box-shadow: var(--sf-e2);
}
.sf-pricing-section .sf-pricing__card--free .sf-pricing__amount { color: var(--sf-brand-ink); }

/* --- Free plugin strip (kept for any leftover markup) -------------------- */

.sf-pricing-free {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-4);
	margin-bottom: var(--sf-space-6);
	padding: 18px 22px;
	background: var(--sf-surface);
	border: 1px solid rgba(79, 70, 229, .18);
	border-radius: var(--sf-r-xl);
	box-shadow: var(--sf-e1);
}
.sf-pricing-free__kicker {
	margin: 0 0 4px;
	font-family: var(--sf-font-mono);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sf-brand-ink);
}
.sf-pricing-free__lead {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--sf-ink);
}
.sf-pricing-free .sf-btn { flex: none; }

/* --- The plan board ------------------------------------------------------ */

.sf-plans { position: relative; }
.sf-plans > .sf-pricing,
.sf-plans > .sf-pricing__shared { position: relative; z-index: 1; }

/* Decorative spotlight. The cards are opaque, so this only shows through the
   gutters and around the featured card — depth, not a coloured panel. */
.sf-pricing-section .sf-plans__glow {
	display: block;
	position: absolute;
	z-index: 0;
	top: -46px;
	bottom: 34%;
	inset-inline-start: 50%;
	width: min(760px, 72%);
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(124, 92, 255, .30), rgba(79, 140, 255, .14) 58%, transparent 80%);
	filter: blur(46px);
	pointer-events: none;
}

/* --- Cards --------------------------------------------------------------- */

@media (min-width: 900px) {
	/* Stretch, not centre: the three cards are one row of equal boxes so every
	   internal row lands on the same y. The featured card's emphasis comes from
	   elevation, not from being a different size internally. */
	.sf-pricing-section .sf-pricing { align-items: stretch; gap: var(--sf-space-4); }
}

.sf-pricing-section .sf-pricing__card {
	padding: var(--sf-space-6) var(--sf-space-5) var(--sf-space-5);
	border-radius: var(--sf-r-xl);
	border-color: rgba(79, 70, 229, .16);
	box-shadow: var(--sf-e2);
	transition: transform .2s var(--sf-ease), box-shadow .2s var(--sf-ease);
}
.sf-pricing-section .sf-pricing__card:not(.sf-pricing__card--featured):hover {
	transform: translateY(-3px);
	box-shadow: var(--sf-e3);
}

/* The featured plan has to earn the badge: gradient border, a violet wash that
   fades out before the price, and a glow that belongs to the brand rather than
   a generic drop shadow. */
.sf-pricing-section .sf-pricing__card--featured {
	border: 1px solid rgba(165, 180, 252, .28);
	background: linear-gradient(180deg, #1E1B4B 0%, #0F172A 62%);
	box-shadow: var(--sf-e4), 0 36px 80px -34px rgba(79, 70, 229, .62);
	z-index: 2;
	color: var(--sf-on-dark);
}
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__name,
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__features li strong { color: #fff; }
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__seats,
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__period,
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__features { color: var(--sf-on-dark-muted); }
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__amount,
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__currency { color: #fff; }
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__each,
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__note { color: var(--sf-on-dark-muted); }
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__features::before {
	background: linear-gradient(90deg, rgba(165, 180, 252, .55), rgba(165, 180, 252, .12) 58%, transparent);
}
.sf-pricing-section .sf-pricing__card--featured .sf-pricing__seat-line { border-top-color: rgba(255, 255, 255, .12); }
.sf-pricing-section .sf-pricing__card--featured .sf-check { color: var(--sf-on-dark-brand); }
@media (min-width: 900px) {
	/* The lift. The card's box grows 14px past the row at the top and at the
	   bottom, and its padding grows by exactly the same 14px at each end — so
	   the *box* is raised and dropped while every line of content inside it
	   still starts and ends on the same y as the two flanking cards. */
	.sf-pricing-section .sf-pricing__card--featured {
		margin-block: -14px;
		padding-top: calc(var(--sf-space-6) + 14px);
		padding-bottom: calc(var(--sf-space-5) + 14px);
	}
}

/* Name and badge share one row; the seats line sits below it at full width, so
   the badge can never squeeze it into a second line and knock the featured
   card's price off the baseline its neighbours sit on. */
.sf-pricing-section .sf-pricing__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-3);
	/* Taller than both the name's line box (21.6px) and the badge (24px), so
	   the row measures the same on the card that has a badge and the two that
	   do not — without it the featured card's price sat 1px low. */
	min-height: 30px;
}
.sf-pricing-section .sf-pricing__name {
	font-size: 1.125rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--sf-ink);
}
.sf-pricing-section .sf-pricing__seats {
	margin-top: 9px;
	min-height: 2.2em;
	font-size: 0.6875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sf-ink-2);
}

/* Between 900 and 1199 the columns are ~225px wide and "Licence for 25
   WooCommerce sites" wrapped to a second line on one card only, dropping that
   card's price off the row's shared baseline. Tighter tracking keeps all three
   on one line; nothing else needs to move. */
@media (min-width: 900px) and (max-width: 1199px) {
	.sf-pricing-section .sf-pricing__seats { font-size: 0.625rem; letter-spacing: 0.03em; }
}

.sf-pricing-section .sf-pricing__flag { position: static; }
.sf-pricing-section .sf-pricing__flag .sf-badge {
	padding: 5px 11px;
	font-family: var(--sf-font-mono);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .75);
}
.sf-pricing-section .sf-pricing__flag .sf-badge::before { background: rgba(255, 255, 255, .92); }

/* --- Price --------------------------------------------------------------- */

.sf-pricing-section .sf-pricing__price {
	margin-top: var(--sf-space-5);
	gap: 3px;
}
.sf-pricing-section .sf-pricing__currency {
	align-self: flex-start;
	margin-top: 8px;
	font-family: var(--sf-font-display);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--sf-ink-2);
}
.sf-pricing-section .sf-pricing__amount {
	font-size: clamp(3rem, 2.1rem + 2vw, 3.75rem);
	letter-spacing: -0.045em;
}
.sf-pricing-section .sf-pricing__period {
	align-self: flex-end;
	margin-bottom: 9px;
	margin-inline-start: 5px;
	font-family: var(--sf-font-mono);
	font-size: 0.75rem;
	color: var(--sf-muted);
}

/* Only shown when a tier carries its own text, or when the caller has no
   shared strip to state the standing terms in (the Pricing page template). */
.sf-pricing-section .sf-pricing__note {
	margin-top: var(--sf-space-3);
	min-height: calc(1.45em * 3);
	max-width: 36ch;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--sf-ink-2);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.sf-pricing-section .sf-pricing__note--slot { visibility: hidden; }

/* --- Included line + CTA ------------------------------------------------- */

/* A gradient hairline reads as a considered divider; the flat 1px rule read as
   a table border. The list is a flex column so the activation row can pin to
   the bottom of the card via margin-top:auto — all three activation lines and
   all three buttons then sit on one shared baseline even though the 25-site
   plan lists one more feature. */
.sf-pricing-section .sf-pricing__features {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	margin-top: var(--sf-space-5);
	padding-top: var(--sf-space-3);
	border-top: 0;
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--sf-ink-2);
}
.sf-pricing-section .sf-pricing__features::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(79, 70, 229, .34), rgba(124, 58, 237, .14) 58%, rgba(124, 58, 237, 0));
	pointer-events: none;
}
.sf-pricing-section .sf-pricing__features li { padding: 4px 0; }
.sf-pricing-section .sf-pricing__features li strong { font-weight: 600; color: var(--sf-ink); }
/* The generated "N site activations" summary row: separated from the plan's
   feature copy by a quiet hairline of its own. */
.sf-pricing-section .sf-pricing__seat-line {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid rgba(79, 70, 229, .12);
}

/* One button height for all three plans (they were 44 / 50 / 44). */
.sf-pricing-section .sf-pricing__cta { margin-top: auto; padding-top: var(--sf-space-5); }
.sf-pricing-section .sf-pricing__cta .sf-btn {
	min-height: 50px;
	font-size: 1rem;
}
/* The "1 Site" and "25 Sites" buttons were a white fill with a #CBD5E1
   hairline on a white card — 1.55:1 boundary against their own background,
   half of the 3:1 a UI component boundary needs, so they did not read as
   buttons at all. A 1.5px indigo edge on an indigo-tinted fill gives the
   boundary 6.29:1 against the card and 5.65:1 against its own fill. */
.sf-pricing-section .sf-pricing__cta .sf-btn--secondary {
	border-width: 1.5px;
	border-color: var(--sf-brand);
	background: var(--sf-brand-tint);
	color: var(--sf-brand-ink);            /* 8.88:1 on #EEF2FF */
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}
.sf-pricing-section .sf-pricing__cta .sf-btn--secondary:hover {
	border-color: var(--sf-brand-deep);
	background: #E0E6FF;
	color: var(--sf-brand-deep);           /* 8.01:1 on #E0E6FF */
}
.sf-pricing-section .sf-pricing__fine {
	margin-top: var(--sf-space-3);
	font-family: var(--sf-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.01em;
	color: var(--sf-muted);
}

/* --- "Every plan includes" + the standing terms -------------------------- */

.sf-pricing-section .sf-pricing__shared {
	position: relative;
	margin-top: var(--sf-space-6);
	padding: var(--sf-space-5);
	background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FF 100%);
	border: 1px solid rgba(79, 70, 229, .16);
	border-radius: var(--sf-r-xl);
	box-shadow: var(--sf-e2);
	display: grid;
	gap: var(--sf-space-4);
}
@media (min-width: 900px) {
	.sf-pricing-section .sf-pricing__shared {
		grid-template-columns: 168px minmax(0, 1fr);
		align-items: start;
		gap: var(--sf-space-4) var(--sf-space-7);
		padding: var(--sf-space-5) var(--sf-space-6);
	}
	/* A hairline dropping out of the featured card, so the panel reads as the
	   base of the plan board rather than a box that happens to sit below it.
	   18px, because the featured card now overhangs the row by 14px. */
	.sf-pricing-section .sf-pricing__shared::before {
		content: "";
		position: absolute;
		top: -18px;
		inset-inline-start: 50%;
		width: 1px;
		height: 18px;
		background: linear-gradient(180deg, rgba(124, 58, 237, 0), rgba(124, 58, 237, .5));
		pointer-events: none;
	}
}
.sf-pricing-section .sf-pricing__shared-title {
	margin: 0;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	color: var(--sf-brand-ink);      /* 8.88:1 on #FFF, 8.4:1 on #F7F8FF */
}
.sf-pricing-section .sf-pricing__shared-head::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	margin-top: var(--sf-space-3);
	border-radius: 2px;
	background: var(--sf-grad-brand);
}
.sf-pricing-section .sf-pricing__shared-list {
	gap: var(--sf-space-3) var(--sf-space-6);
	font-size: 0.9375rem;
	color: var(--sf-ink);
	line-height: 1.5;
}
@media (min-width: 900px) {
	.sf-pricing-section .sf-pricing__shared-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sf-pricing-section .sf-pricing__shared-list .sf-check { margin-top: 1px; }

/* The renewal sentence and the refund line were printed on all three cards.
   Stated once here they cost the band one 21px row instead of ~85px on every
   card, and they belong with "every plan includes" anyway. */
.sf-pricing-section .sf-pricing__terms {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;   /* sentence left, mono fine print right */
	gap: 6px 18px;
	padding-top: var(--sf-space-4);
	border-top: 1px solid rgba(79, 70, 229, .14);
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--sf-muted);          /* 5.17:1 on #F7F8FF */
}
@media (min-width: 900px) {
	.sf-pricing-section .sf-pricing__terms { grid-column: 1 / -1; }
}
.sf-pricing-section .sf-pricing__terms-fine {
	font-family: var(--sf-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.02em;
	color: var(--sf-brand-ink);      /* 8.4:1 on #F7F8FF */
}


/* ===========================================================================
 * 9. FAQ — the short band
 *
 * Before: a split with the heading and one link in a left rail. At 1440 that
 * left everything to the left of x=565 as bare gradient for the whole 696px of
 * the band; the rail held ~200px of content in a 696px column.
 *
 * After: the shared section-head pattern — mono eyebrow stacked above the
 * heading, "All questions" right-aligned on the heading's baseline — over a
 * full-width accordion, and the band runs on .sf-section--compact so it is the
 * short beat between the tall pricing band and the closing dark block.
 * ======================================================================== */

.sf-faq-section .sf-faq-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: var(--sf-space-2);
	margin-bottom: var(--sf-space-5);
}
.sf-faq-section .sf-faq-head__eyebrow { grid-column: 1 / -1; margin: 0; }
@media (min-width: 700px) {
	/* Eyebrow above, then heading and the "All questions" link on one baseline. */
	.sf-faq-section .sf-faq-head {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--sf-space-5);
		align-items: baseline;
	}
	.sf-faq-section .sf-faq-head__link { justify-self: end; margin-inline-end: -12px; }
}
.sf-faq-section .sf-faq-head__title {
	margin: 0;
	min-width: 0;
	font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.4rem);
	letter-spacing: -0.025em;
}

/* --- The panel ----------------------------------------------------------- */

.sf-faq-section .sf-faq {
	margin-top: 0;
	padding: var(--sf-space-2);
	background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFF 100%);
	border: 1px solid rgba(79, 70, 229, .16);
	border-radius: var(--sf-r-xl);
	box-shadow: var(--sf-e3);
}
@media (min-width: 600px) {
	.sf-faq-section .sf-faq { padding: var(--sf-space-3); }
}

.sf-faq-section .sf-faq__item {
	border-bottom: 0;
	border-radius: var(--sf-r);
}
/* Separator between rows, inset so it never touches the panel edge. */
.sf-faq-section .sf-faq__item + .sf-faq__item::after {
	content: "";
	position: absolute;
	inset-inline: 16px;
	top: 0;
	height: 1px;
	background: var(--sf-line);
	pointer-events: none;
}
/* An open row is a panel of its own; the rules that would box it in are
   dropped above and below it. Two separate rules, not one selector list: a
   list containing an unsupported selector is discarded whole. */
.sf-faq-section .sf-faq__item[open]::after { background: transparent; }
.sf-faq-section .sf-faq__item[open] + .sf-faq__item::after { background: transparent; }

/* The brand marker down the open row. */
.sf-faq-section .sf-faq__item::before {
	inset-block: 8px;
	inset-inline-start: 0;
	width: 3px;
	border-radius: 3px;
}

.sf-faq-section .sf-faq__item > summary {
	padding: 13px 12px 13px 18px;
	gap: var(--sf-space-4);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	border-radius: var(--sf-r);
	transition: background .18s var(--sf-ease), color .18s var(--sf-ease);
}
.sf-faq-section .sf-faq__item > summary:hover { background: rgba(79, 70, 229, .055); }
.sf-faq-section .sf-faq__item[open] {
	background: linear-gradient(180deg, rgba(238, 242, 255, .8), rgba(238, 242, 255, 0) 92%);
}
.sf-faq-section .sf-faq__item[open] > summary { color: var(--sf-brand-ink); }   /* 8.4:1 on #EEF2FF */
.sf-faq-section .sf-faq__item[open] > summary:hover { background: transparent; }

/* Open/closed affordance: a chevron chip, not a bare 8px caret. Closed it is a
   brand-tinted disc; open it fills with the brand gradient and flips. */
.sf-faq-section .sf-faq__item > summary::after {
	content: "";
	flex: none;
	width: 30px;
	height: 30px;
	margin: 0;
	border: 1px solid rgba(79, 70, 229, .18);
	border-radius: 50%;
	background-color: var(--sf-brand-tint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 15px 15px;
	transform: none;
	transition: transform .22s var(--sf-ease), background-color .18s var(--sf-ease), border-color .18s var(--sf-ease);
}
.sf-faq-section .sf-faq__item > summary:hover::after {
	background-color: #E0E6FF;
	border-color: rgba(79, 70, 229, .34);
}
.sf-faq-section .sf-faq__item[open] > summary::after {
	margin: 0;
	transform: rotate(180deg);
	border-color: transparent;
	background-color: var(--sf-brand);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
		var(--sf-grad-brand);
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	background-size: 15px 15px, cover;
	box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
}

/* The rows are full-container now, so the answer needs a measure of its own —
   a 1130px line is unreadable however wide the panel is. */
.sf-faq-section .sf-faq__body {
	padding: 2px 52px 18px 18px;
	max-width: 92ch;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--sf-ink-2);
}


/* ===========================================================================
 * 10. Closing CTA band
 *
 * The card sits fully above the footer on the page ground. An earlier version
 * painted a dark ramp under the lower third of the card so it straddled the
 * footer — that read as overlap. Primary stays the indigo gradient; secondary
 * is a glass button.
 * ======================================================================== */

.sf-cta-section {
	position: relative;
	padding-top: var(--sf-space-6);
	padding-bottom: var(--sf-space-7);
	background: var(--sf-ground-2);
	border-top: var(--sf-border);
}
@media (min-width: 900px) {
	.sf-cta-section {
		padding-top: var(--sf-space-6);
		padding-bottom: var(--sf-space-8);
	}
}

/* The card sits fully on this section. No dark ramp under it — that made the
   band overlap the footer. The footer starts cleanly below. */
.sf-cta-section::after { display: none; }
.sf-cta-section > .sf-container { position: relative; z-index: 1; }

.sf-cta-section .sf-cta-band {
	overflow: hidden;
	padding: var(--sf-space-6) var(--sf-space-5);
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, .12);
	background-color: #080C1A;
	background-image: radial-gradient(140% 128% at 50% -22%, #1E1A56 0%, #0D1128 44%, #080C1A 100%);
	box-shadow:
		0 2px 6px rgba(50, 40, 120, .10),
		0 28px 64px -36px rgba(35, 24, 105, .55),
		inset 0 1px 0 rgba(255, 255, 255, .10);
	text-align: center;
	justify-items: center;
	gap: var(--sf-space-5);
}
@media (min-width: 900px) {
	.sf-cta-section .sf-cta-band {
		grid-template-columns: minmax(0, 1fr);
		padding: 40px var(--sf-space-8);
	}
}

/* Aurora: corners and top only. The centre column, where the heading and the
   sub-line sit, stays on the base dark so text contrast never depends on where
   a gradient happens to land. */
.sf-cta-section .sf-cta-band::before {
	inset: 0;
	background:
		radial-gradient(55% 42% at 50% -18%, rgba(124, 58, 237, .40), transparent 70%),
		radial-gradient(52% 62% at 12% 4%, rgba(99, 102, 241, .46), transparent 66%),
		radial-gradient(48% 58% at 90% 2%, rgba(168, 85, 247, .34), transparent 66%),
		radial-gradient(46% 52% at 6% 104%, rgba(99, 102, 241, .30), transparent 68%),
		radial-gradient(44% 50% at 96% 100%, rgba(124, 58, 237, .26), transparent 68%),
		radial-gradient(70% 44% at 50% 122%, rgba(34, 211, 238, .20), transparent 70%);
}
.sf-cta-section .sf-cta-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 46px 46px;
	-webkit-mask-image: radial-gradient(74% 96% at 50% 0%, #000, transparent 74%);
	mask-image: radial-gradient(74% 96% at 50% 0%, #000, transparent 74%);
}

/* A lit hairline along the top edge — the detail that makes the card read as
   an object with a light source rather than a filled rectangle. */
.sf-cta-section .sf-cta-band__edge {
	position: absolute;
	top: 0;
	inset-inline: 14%;
	height: 1px;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .85) 50%, transparent);
}

.sf-cta-section .sf-cta-band__text { max-width: 100%; }
.sf-cta-section .sf-cta-band .sf-h2 {
	max-width: 24ch;
	margin-inline: auto;
	font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
}
@media (min-width: 900px) {
	.sf-cta-section .sf-cta-band .sf-h2 { max-width: 32ch; }
}
.sf-cta-section .sf-cta-band__text p {
	margin-inline: auto;
	max-width: 58ch;
	font-size: 1.0625rem;
	color: var(--sf-on-dark-muted);   /* 8.41:1 on the band ground */
}

.sf-cta-section .sf-cta-band__actions { justify-content: center; gap: var(--sf-space-4); }
/* The brand gradient, so indigo is present in the last thing the page says.
   The light edge keeps the button's boundary at 3.82:1 against the card even
   where the gradient is at its darkest. */
.sf-cta-section .sf-cta-band .sf-btn--primary {
	border-color: rgba(196, 181, 253, .55);
	box-shadow: 0 16px 40px -14px rgba(99, 102, 241, .85);
}
.sf-cta-section .sf-cta-band .sf-btn--primary:hover {
	border-color: rgba(221, 214, 254, .85);
	box-shadow: 0 20px 48px -14px rgba(124, 58, 237, .95);
}
/* Was rgba(255,255,255,.07) behind a .26 border — it read as disabled next to
   a solid fill. Now a real glass button: 5.28:1 edge, 13.5:1 label. */
.sf-cta-section .sf-cta-band .sf-btn--outline-dark {
	border-color: rgba(255, 255, 255, .5);
	background: rgba(255, 255, 255, .12);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
.sf-cta-section .sf-cta-band .sf-btn--outline-dark:hover {
	border-color: rgba(255, 255, 255, .74);
	background: rgba(255, 255, 255, .2);
	color: #fff;
}


/* ===========================================================================
 * Narrow widths
 * ======================================================================== */

@media (max-width: 599px) {
	.sf-pricing-section .sf-pricing__card { padding: var(--sf-space-5) var(--sf-space-4); }
	.sf-pricing-section .sf-pricing__shared { padding: var(--sf-space-5) var(--sf-space-4); }
	.sf-faq-section .sf-faq { padding: 6px; }
	.sf-faq-section .sf-faq__item > summary { padding: 14px 8px 14px 14px; gap: var(--sf-space-3); font-size: 0.9375rem; }
	.sf-faq-section .sf-faq__body { padding: 0 14px 16px; }
	.sf-cta-section .sf-cta-band { padding: var(--sf-space-6) var(--sf-space-4); border-radius: 22px; }
	.sf-cta-section .sf-cta-band__actions { width: 100%; flex-direction: column; align-items: stretch; }
	.sf-cta-section .sf-cta-band__actions .sf-btn { width: 100%; }
}


/* ===========================================================================
 * Accessibility guards
 * ======================================================================== */

@media (prefers-reduced-motion: reduce) {
	.sf-pricing-section .sf-pricing__card,
	.sf-pricing-section .sf-pricing__card:hover,
	.sf-cta-section .sf-cta-band .sf-btn:hover { transform: none; transition: none; }
	.sf-faq-section .sf-faq__item > summary,
	.sf-faq-section .sf-faq__item > summary::after { transition: none; }
	.sf-faq-section .sf-faq__item[open] > summary::after { transform: rotate(180deg); }
}

/* Decoration must never be the reason something is legible. The closing ramp
   is structural, not decoration, so it stays. */
@media (prefers-reduced-transparency: reduce) {
	.sf-pricing-section .sf-plans__glow,
	.sf-cta-section .sf-cta-band__edge,
	.sf-cta-section .sf-cta-band::after { display: none; }
}
