/*
 * Product pages (inc/product-page.php, patterns/page-product-*.php) and the /product/ overview
 * (patterns/page-product.php). The step strip and product map are styled by blocks/steps/style.css.
 */

/* ---------- Hero: step strip, then the product ---------- */
.fx-product-hero { padding-block: clamp(24px, 3vw, 32px) clamp(28px, 3.5vw, 40px); }
.fx-product-hero__copy { margin-top: clamp(24px, 3vw, 32px); }
.fx-product-hero__visual { margin-top: 24px; }
.fx-product-hero__visual > * { margin: 0; }
.fx-band--ink .fx-product-hero__visual + p.fx-product-hero__opening { margin-top: 28px; }
.fx-product-hero .fx-product-shot--image img { border-color: var(--wp--preset--color--ink-700); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); /* no token */ }
.fx-product-hero__title { font-size: clamp(36px, 4.2vw, 52px); }
.fx-product-hero .fx-eyebrow + .fx-hero-title { margin-top: 16px; }
.fx-product-hero__subtitle {
	margin-top: 10px;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--fg-on-dark-2);
}
.fx-product-hits {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.fx-product-hits li {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--ink-700);
	background: var(--wp--preset--color--ink-800);
	border-radius: var(--wp--custom--radius--pill);
	padding: 5px 12px;
}
.fx-band--ink p.fx-product-hero__opening {
	margin-top: 20px;
	padding-left: 16px;
	border-left: 3px solid var(--wp--preset--color--lit);
	font-size: clamp(19px, 2.4vw, 24px);
	line-height: 1.4;
	color: var(--wp--preset--color--white);
}
.fx-product-hero__lede { margin-top: 14px; }

/* ---------- Shared section bits ---------- */
.fx-product-dark h2,
/* Every section's heading and text use the full container width (no line-length caps on product pages). */
:is([class*="fx-product-"], [class*="fx-products-"]) :is(.fx-lede, .fx-measure) { max-width: none; }

/* ---------- What's dark without it ---------- */
.fx-product-dark__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-top: 32px;
}
.fx-product-dark__grid > * { margin: 0 !important; }
.fx-product-dark__item {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-top: 3px solid var(--wp--preset--color--signal);
	border-radius: var(--wp--custom--radius--md);
	padding: 22px;
}
.fx-product-dark__item h3 { font-size: 17px; line-height: 1.3; }
.fx-product-dark__item p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--fg-2); }
.fx-product-example {
	margin-top: 16px;
	padding: 18px 20px;
	background: var(--wp--preset--color--soft);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
}
.fx-band--soft .fx-product-example { background: var(--wp--preset--color--white); }
.fx-product-example p:not(.fx-mono-label) { margin-top: 6px; color: var(--wp--preset--color--ink); }
.fx-product-example__label { color: var(--wp--preset--color--brand); }

/* ---------- What it does ---------- */
.fx-product-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
	margin-top: 32px;
}
.fx-product-features > * { margin: 0 !important; }
.fx-product-feature {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	padding: 22px;
}
.fx-product-feature h3 { font-size: 17px; line-height: 1.3; }
.fx-product-feature p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--fg-2); }
.fx-product-close {
	margin-top: 24px;
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: 1.55;
	color: var(--wp--preset--color--ink);
}
.fx-product-works { margin-top: 40px; }
.fx-product-works h3 { font-size: var(--wp--preset--font-size--h-3); }
.fx-product-works__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 24px;
	margin-top: 12px;
	border-top: 1px solid var(--wp--preset--color--border);
}
.fx-product-works__grid > * { margin: 0 !important; }
.fx-product-works__row { padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.fx-product-works__row p:not(.fx-mono-label) { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--wp--preset--color--ink); }
.fx-product-works__note { margin-top: 14px; font-size: 14px; color: var(--wp--preset--color--fg-3); }

/* ---------- What it watches ---------- */
.fx-product-watch { align-items: flex-start; }
.fx-product-watch__observe { margin-top: 18px; font-size: 15px; color: var(--wp--preset--color--fg-2); }
.fx-product-watch__observe a { color: var(--wp--preset--color--brand); text-decoration: underline; text-underline-offset: 3px; }
.fx-product-checks {
	background: var(--wp--preset--color--ink-800);
	border: 1px solid var(--wp--preset--color--ink-700);
	border-radius: var(--wp--custom--radius--lg);
	padding: 20px;
}
.fx-product-checks__label { color: var(--wp--preset--color--fg-on-dark-3); }
.fx-product-checks__label .fx-illustrative { margin-left: 8px; }
.fx-product-checks__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.fx-product-checks__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	padding: 10px 12px 10px 28px;
	position: relative;
	background: rgba(255, 255, 255, 0.03); /* no token */
	border: 1px solid var(--wp--preset--color--ink-700);
	border-radius: var(--wp--custom--radius--md);
	font-size: 14px;
	line-height: 1.4;
	color: var(--wp--preset--color--white);
}
.fx-product-checks__list li::before {
	content: "";
	position: absolute;
	left: 11px;
	top: calc(50% - 4px);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--success);
}
.fx-product-checks__list li.is-warn::before { background: var(--wp--preset--color--signal); }
.fx-product-checks__list code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: transparent;
	color: var(--wp--preset--color--fg-on-dark-3);
}
.fx-product-checks__list li.is-warn code { color: var(--wp--preset--color--signal); }

/* ---------- Visual: screenshot placeholder or diagram ---------- */
.fx-product-visual .fx-eyebrow + h2 { margin-bottom: 20px; }
.fx-product-shot { margin: 0; }
.fx-product-shot__frame {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	aspect-ratio: 16 / 9;
	padding: 24px;
	background: var(--wp--preset--color--ink-800);
	border: 1px dashed var(--wp--preset--color--fg-on-dark-3);
	border-radius: var(--wp--custom--radius--lg);
	text-align: center;
	font-family: var(--wp--preset--font-family--mono);
}
.fx-product-shot__label { font-size: 14px; letter-spacing: 0.04em; color: var(--wp--preset--color--white); }
.fx-product-shot__file { font-size: 11px; letter-spacing: 0.06em; color: var(--wp--preset--color--fg-on-dark-3); }
@media (max-width: 700px) {
	.fx-product-shot__frame { aspect-ratio: 4 / 3; }
}
.fx-product-shot--image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: 0 12px 32px rgba(10, 25, 34, 0.08); /* no token */
}
/* Phones keep the full 16:9 screen: the screens are flat and fill the frame, so nothing is cropped. */

/* Universal ID / activation loop: the same panel as the funnel trace and How It Works diagrams */
.fx-product-diagram {
	min-width: 0;
	margin: 0;
	border: 1px solid var(--wp--preset--color--ink-700);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--ink-800);
	padding: 20px 20px 16px;
}
.fx-product-diagram__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.fx-product-diagram__label {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--mono-sm);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--fg-on-dark-3);
}
.fx-product-diagram .fx-illustrative { margin-left: 8px; }
.fx-product-diagram:not(.is-ready) .fx-product-diagram__toggle { display: none; }
.fx-product-diagram svg { display: block; width: 100%; height: auto; }
.fx-product-diagram .fx-hiw-diagram__svg--narrow { display: none; max-width: 420px; margin-inline: auto; }
.fx-product-diagram .fx-when-lit { opacity: 0; }
.fx-product-diagram .fx-when-off { opacity: 1; }
.fx-product-diagram.is-lit .fx-when-lit { opacity: 1; }
.fx-product-diagram.is-lit .fx-when-off { opacity: 0; }
.fx-product-diagram [class^="fx-when-"] { transition: opacity 700ms var(--wp--custom--easing); }
.fx-product-diagram__foot { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--wp--preset--color--ink-700); }
.fx-product-diagram__readout {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--mono-sm);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--signal);
}
/* Lights on is the good state: its readout is violet; amber stays for problems. */
.fx-product-diagram.is-lit .fx-product-diagram__readout { color: var(--wp--preset--color--lit); }
.fx-product-diagram__caption { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--wp--preset--color--fg-on-dark-2); }
@media (prefers-reduced-motion: reduce) {
	.fx-product-diagram [class^="fx-when-"] { transition: none; }
}
@media (max-width: 700px) {
	.fx-product-diagram { padding: 16px 14px 14px; }
	.fx-product-diagram__head { align-items: flex-start; }
	.fx-product-diagram .fx-hiw-diagram__svg--wide { display: none; }
	.fx-product-diagram .fx-hiw-diagram__svg--narrow { display: block; }
}

/* ---------- Proof ---------- */
.fx-product-proof {
	margin-top: 20px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-left: 3px solid var(--wp--preset--color--brand);
	border-radius: var(--wp--custom--radius--md);
	padding: clamp(22px, 3vw, 32px);
}
.fx-product-proof__label { color: var(--wp--preset--color--brand); }
.fx-product-proof__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	margin-top: 16px;
}
.fx-product-proof__row + .fx-product-proof__row { padding-top: 20px; border-top: 1px solid var(--wp--preset--color--border); }
.fx-product-proof__stat {
	flex: 0 0 auto;
	font-family: var(--wp--preset--font-family--mono);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--brand);
}
.fx-product-proof__text { flex: 1 1 320px; min-width: 0; }
.fx-product-proof__head { font-size: var(--wp--preset--font-size--body-lg); line-height: 1.45; color: var(--wp--preset--color--ink); }
.fx-product-proof__text p:not(.fx-product-proof__head) { margin-top: 8px; color: var(--wp--preset--color--fg-2); }
.fx-product-proof__quote { margin: 16px 0 0; padding: 0; border: 0; }
.fx-product-proof__quote p { max-width: 62ch; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--wp--preset--color--ink); }
.fx-product-proof__quote cite { display: block; margin-top: 14px; font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--fg-2); }

/* ---------- Next step, how you get it, what feeds it ---------- */
.fx-product-next {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 32px;
}
.fx-product-next > * { margin: 0 !important; }
.fx-product-next__card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	padding: 22px;
}
.fx-product-next__card--how { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); }
.fx-product-next__card--how h3 { color: var(--wp--preset--color--white); }
.fx-product-next .fx-product-next__card--how p:not(.fx-mono-label) { color: var(--wp--preset--color--fg-on-dark-2); }
.fx-product-next__card--how .fx-mono-label { color: var(--wp--preset--color--lit); }
.fx-product-next__card--how a { color: var(--wp--preset--color--white); text-decoration: underline; text-underline-offset: 3px; }
.fx-product-next__card h3 { margin-top: 8px; font-size: 18px; line-height: 1.3; }
.fx-product-next__card h3 a { color: var(--wp--preset--color--brand); }
.fx-product-next__card p:not(.fx-mono-label) { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--fg-2); }

/* ---------- Call to action ---------- */
.fx-product-cta { padding-block: clamp(56px, 7vw, 88px); }
.fx-band--ink p.fx-product-cta__deeper { margin: 24px auto 0; max-width: 60ch; font-size: 15px; color: var(--wp--preset--color--fg-on-dark-3); }
.fx-band--ink p.fx-product-cta__deeper strong { color: var(--wp--preset--color--white); font-weight: 600; }

/* ---------- /product/ overview ---------- */
.fx-products-hero { padding-block: clamp(48px, 6vw, 80px); }
.fx-products-hero__title { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.06; }
.fx-products-hero__steps { margin-top: 16px; }
.fx-products-hero__steps strong { color: var(--wp--preset--color--white); font-weight: 600; }
.fx-products-hero .fx-steps-block { margin-top: clamp(32px, 4vw, 48px); }

.fx-products-steps { padding-block: clamp(48px, 6vw, 80px); }
.fx-products-steps .fx-products-steps__lede { margin-top: 16px; margin-bottom: 32px; }
.fx-products-step {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	padding-block: 32px;
	border-top: 1px solid var(--wp--preset--color--border);
}
.fx-products-step:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }
.fx-products-step__intro { flex: 1 1 260px; min-width: 0; }
.fx-products-step__intro .fx-eyebrow { font-size: 14px; }
.fx-products-step__intro p:not(.fx-eyebrow) { margin-top: 18px; font-size: var(--wp--preset--font-size--body-lg); line-height: 1.55; color: var(--wp--preset--color--fg-2); }
.fx-products-step__cards {
	flex: 2 1 520px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.fx-products-step__cards > * { margin: 0 !important; }
.fx-products-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	padding: 22px;
}
.fx-products-card h3 { font-size: 20px; line-height: 1.25; }
.fx-products-card h3 a { color: var(--wp--preset--color--ink); }
.fx-products-card h3 a:hover { color: var(--wp--preset--color--brand); }
.fx-products-card__title { margin-top: 4px; font-weight: 500; color: var(--wp--preset--color--ink); }
.fx-products-card p:not(.fx-products-card__title):not(.fx-products-card__more) { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--fg-2); }
.fx-products-card__more { margin-top: 14px; font-family: var(--wp--preset--font-family--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.fx-products-card__more a { color: var(--wp--preset--color--brand); }
.fx-products-delivery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 32px;
}
.fx-products-delivery__grid > * { margin: 0 !important; }
.fx-products-delivery__grid h3 { font-size: 18px; }
.fx-products-delivery__grid p:not(.fx-mono-label) { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--fg-2); }

.fx-product-hero__visual-heading { font-size: 1rem; line-height: 1.4; margin-bottom: 12px; }
.fx-product-hero__visual-heading .fx-eyebrow { margin-right: 8px; }
