/* -------------------------------------------------------------------------- *
 *  POWER.CRO - conversion 404 page (includes/page-404.php + templates/404.php)
 *
 *  Everything is scoped under .ppcro-404. Mobile first: the base block is the
 *  390px composition, the two min-width queries add the tablet and desktop ones.
 *  No external fonts and no CDNs - type comes from the Woodmart variables that
 *  are already on the page (Manrope for titles, Inter for text).
 * -------------------------------------------------------------------------- */

.ppcro-404 {
	--pp404-ink: #1f1a38;
	--pp404-body: #5c5776;
	--pp404-purple: #5d4f89;
	--pp404-purple-dk: #453a6d;
	--pp404-line: #eae7f3;
	--pp404-ground: #f8f7fc;
	--pp404-radius: 16px;

	margin: 0 0 46px;
	font-family: var(--wd-text-font, "Inter", Arial, Helvetica, sans-serif);
	color: var(--pp404-ink);
	-webkit-font-smoothing: antialiased;
}

.ppcro-404 * {
	box-sizing: border-box;
}

/* Article placement (informational-product.php): the block follows the research
   article's last section, so it needs its own breathing room above. */
.ppcro-404--article {
	margin-top: 40px;
}

/* ==========================================================================
   1. Access panel - the purple field
   ========================================================================== */

.ppcro-404__gate {
	position: relative;
	overflow: hidden;
	padding: 30px 22px 32px;
	border-radius: var(--pp404-radius);
	background:
		radial-gradient(78% 108% at 88% -18%, rgba(139, 118, 201, 0.62) 0%, rgba(139, 118, 201, 0) 62%),
		linear-gradient(154deg, #4c3f77 0%, #3b3163 46%, #2b2349 100%);
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.13),
		0 14px 28px -18px rgba(31, 22, 66, 0.6),
		0 40px 70px -46px rgba(31, 22, 66, 0.85);
}

/* Graph-rule texture: the lab-form grammar the brand's own product sheets use.
   Ruled across the WHOLE field (a masked corner is wallpaper, not a form); the base
   rule stays low enough for white body copy, with a brighter pass under the highlight. */
.ppcro-404__gate::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 28px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 28px);
	pointer-events: none;
}

/* Second, brighter pass so the rule reads as ruled paper where the light falls. */
.ppcro-404__gate::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 28px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 28px);
	-webkit-mask-image: radial-gradient(72% 100% at 96% -6%, #000 0%, transparent 70%);
	mask-image: radial-gradient(72% 100% at 96% -6%, #000 0%, transparent 70%);
	pointer-events: none;
}

.ppcro-404__gate-in {
	position: relative;
	display: grid;
	gap: 28px;
}

/* --- status tag ---------------------------------------------------------- */

.ppcro-404__tag {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 6px 14px 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.09);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.11em;
	line-height: 1.3;
	text-transform: uppercase;
	color: #fff;
}

.ppcro-404__tag-ic {
	display: block;
	flex: none;
	width: 14px;
	height: 14px;
	color: rgba(255, 255, 255, 0.85);
}

.ppcro-404__tag-code {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.14em;
}

.ppcro-404__tag-sep {
	flex: none;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
}

.ppcro-404__tag-txt {
	letter-spacing: 0.09em;
}

/* --- headline + lead ----------------------------------------------------- */

.ppcro-404__title {
	margin: 18px 0 0;
	font-family: var(--wd-title-font, "Manrope", Arial, Helvetica, sans-serif);
	font-size: clamp(25px, 5.6vw, 32px);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.021em;
	color: #fff;
	text-wrap: balance;
}

.ppcro-404__lead {
	max-width: 54ch;
	margin: 14px 0 0;
	font-size: 15.5px;
	line-height: 1.68;
	color: rgba(255, 255, 255, 0.86);
	text-wrap: pretty;
}

/* --- buttons ------------------------------------------------------------- */

.ppcro-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 0;
}

.ppcro-404__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ppcro-404__btn--primary {
	background: #fff;
	color: var(--pp404-purple-dk);
	box-shadow: 0 8px 18px -10px rgba(15, 8, 40, 0.75);
}

.ppcro-404__btn--primary:hover,
.ppcro-404__btn--primary:focus-visible {
	background: #f1edfb;
	color: #372d5c;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -10px rgba(15, 8, 40, 0.8);
}

.ppcro-404__btn--ghost {
	border-color: rgba(255, 255, 255, 0.48);
	background: transparent;
	color: #fff;
}

.ppcro-404__btn--ghost:hover,
.ppcro-404__btn--ghost:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.ppcro-404__gate .ppcro-404__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* --- reassurance line ---------------------------------------------------- */

.ppcro-404__note {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	max-width: 52ch;
	margin: 18px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.83);
}

.ppcro-404__note-ic {
	display: block;
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 3px;
	color: #c6bcea;
}

/* ==========================================================================
   2. Restricted catalog card - the mechanism, shown
   ========================================================================== */

.ppcro-404__locked {
	position: relative;
	max-width: 380px;
	padding: 20px 20px 16px;
	border-radius: 14px;
	background: #fff;
	color: var(--pp404-ink);
	/* The offset spread ring is a second sheet behind the card: the entries that
	   stay closed. Drawn as a shadow so it paints outside the card, above the
	   panel's own background. */
	box-shadow:
		12px 14px 0 -4px rgba(255, 255, 255, 0.19),
		12px 14px 0 -3px rgba(255, 255, 255, 0.34),
		0 18px 36px -20px rgba(12, 6, 34, 0.7);
}

.ppcro-404__locked-badge {
	position: absolute;
	top: -14px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 8px;
	border-radius: 50%;
	background: var(--pp404-purple);
	color: #fff;
	box-shadow: 0 8px 16px -8px rgba(20, 10, 55, 0.85);
}

.ppcro-404__locked-tag {
	margin: 0 0 12px;
	padding-right: 40px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--pp404-purple);
}

.ppcro-404__rows {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
}

.ppcro-404__row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 52px;
	gap: 14px;
	align-items: center;
	margin: 0;
	padding: 14px 0;
	list-style: none;
}

.ppcro-404__row + .ppcro-404__row {
	border-top: 1px solid var(--pp404-line);
}

/* Pen silhouette in the thumbnail slot - the products are pens, not vials. */
.ppcro-404__row .sw {
	position: relative;
	overflow: hidden;
	width: 42px;
	height: 42px;
	border-radius: 9px;
	background: linear-gradient(158deg, #f0edfa 0%, #e1dcf1 100%);
}

.ppcro-404__row .sw::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 50%;
	width: 9px;
	height: 32px;
	border-radius: 5px 5px 4px 4px;
	background: linear-gradient(180deg, #9184c2 0%, #5d4f89 62%, #4a3f75 100%);
	transform: translateX(-50%);
}

/* Cap plus the seam where it meets the barrel - the detail that makes it a pen. */
.ppcro-404__row .sw::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 50%;
	width: 9px;
	height: 11px;
	border-radius: 5px 5px 1px 1px;
	background: rgba(255, 255, 255, 0.66);
	box-shadow: 0 1px 0 rgba(74, 63, 117, 0.55);
	transform: translateX(-50%);
}

.ppcro-404__row .ln {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

/* Redaction, not a loading skeleton: struck-through censor bars in the brand ink. */
.ppcro-404__row .b {
	display: block;
	height: 11px;
	border-radius: 2px;
	background: repeating-linear-gradient(118deg, #4a3f75 0 7px, #5a4d8b 7px 14px);
}

.ppcro-404__row .b2 {
	height: 8px;
	background: repeating-linear-gradient(118deg, #b7aed6 0 6px, #c7c0e0 6px 12px);
}

.ppcro-404__row .pr {
	display: block;
	height: 13px;
	border-radius: 2px;
	background: repeating-linear-gradient(118deg, #4a3f75 0 7px, #5a4d8b 7px 14px);
}

.ppcro-404__row:nth-child(1) .b1 { width: 78%; }
.ppcro-404__row:nth-child(1) .b2 { width: 46%; }
.ppcro-404__row:nth-child(2) .b1 { width: 62%; }
.ppcro-404__row:nth-child(2) .b2 { width: 38%; }
.ppcro-404__row:nth-child(3) .b1 { width: 71%; }
.ppcro-404__row:nth-child(3) .b2 { width: 30%; }

.ppcro-404__locked-cap {
	margin: 14px 0 0;
	padding-top: 13px;
	border-top: 1px solid var(--pp404-line);
	font-size: 12.5px;
	line-height: 1.5;
	color: #6c6784;
}

/* --- the one authored moment: the rows settle, then a single scan passes --- */

.ppcro-404__row {
	animation: ppcro-404-rise 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ppcro-404__row:nth-child(1) { animation-delay: 0.10s; }
.ppcro-404__row:nth-child(2) { animation-delay: 0.19s; }
.ppcro-404__row:nth-child(3) { animation-delay: 0.28s; }

.ppcro-404__rows::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(104deg, transparent 34%, rgba(93, 79, 137, 0.16) 48%, transparent 62%);
	pointer-events: none;
	animation: ppcro-404-scan 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.55s 1 both;
}

@keyframes ppcro-404-rise {
	from { opacity: 0.35; transform: translateY(9px); }
	to   { opacity: 1;    transform: none; }
}

@keyframes ppcro-404-scan {
	from { transform: translateX(-135%); }
	to   { transform: translateX(135%); }
}

@media (prefers-reduced-motion: reduce) {
	.ppcro-404__row,
	.ppcro-404__rows::after,
	.ppcro-404__btn {
		animation: none;
		transition: none;
	}
	.ppcro-404__rows::after { opacity: 0; }
}

/* ==========================================================================
   3. Benefits - one panel divided by hairlines, not four floating cards.
      2x2 from the smallest viewport (a single stacked column pushed the search
      below the fold on phones), 4-up on desktop.
   ========================================================================== */

.ppcro-404__benefits {
	overflow: hidden;
	margin: 18px 0 0;
	border: 1px solid var(--pp404-line);
	border-radius: var(--pp404-radius);
	background: #fff;
}

.ppcro-404__benefits-head {
	margin: 0;
	padding: 16px 22px;
	border-bottom: 1px solid var(--pp404-line);
	background: var(--pp404-ground);
	font-family: var(--wd-title-font, "Manrope", Arial, Helvetica, sans-serif);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.008em;
	line-height: 1.35;
	text-transform: none;
	color: var(--pp404-ink);
}

.ppcro-404__benefits-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ppcro-404__benefit {
	min-width: 0;
	padding: 18px 16px 20px;
}

/* Hairline between the two columns, one under the top row. */
.ppcro-404__benefit:nth-child(2n) {
	border-left: 1px solid var(--pp404-line);
}

.ppcro-404__benefit:nth-child(n + 3) {
	border-top: 1px solid var(--pp404-line);
}

.ppcro-404__bic {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0 0 13px;
	border-radius: 12px;
	background: #f2effa;
	color: var(--pp404-purple);
	font-size: 17px;
	line-height: 1;
}

.ppcro-404__benefit:first-child .ppcro-404__bic {
	background: var(--pp404-purple);
	color: #fff;
	box-shadow: 0 6px 14px -8px rgba(93, 79, 137, 0.9);
}

.ppcro-404__benefit-title {
	margin: 0 0 7px;
	font-family: var(--wd-title-font, "Manrope", Arial, Helvetica, sans-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: -0.006em;
	color: var(--pp404-ink);
	text-transform: none;
}

.ppcro-404__benefit-text {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--pp404-body);
	text-wrap: pretty;
}

/* ==========================================================================
   4. Close - product search and the quick links
   ========================================================================== */

.ppcro-404__close {
	display: grid;
	gap: 24px;
	margin: 18px 0 0;
	padding: 24px 22px;
	border: 1px solid var(--pp404-line);
	border-radius: var(--pp404-radius);
	background: var(--pp404-ground);
}

.ppcro-404__close-title {
	margin: 0 0 14px;
	font-family: var(--wd-title-font, "Manrope", Arial, Helvetica, sans-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.008em;
	color: var(--pp404-ink);
	text-transform: none;
}

.ppcro-404__search .wd-search-form {
	max-width: 520px;
	margin: 0;
}

.ppcro-404__search form.searchform {
	position: relative;
	margin: 0;
}

.ppcro-404__search form.searchform input.s,
.ppcro-404__search form.searchform input[type="text"] {
	width: 100%;
	height: 50px;
	padding: 0 62px 0 16px;
	border: 1px solid #ddd8ea;
	border-radius: 9px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	color: var(--pp404-ink);
	box-shadow: none;
}

.ppcro-404__search form.searchform input.s::placeholder,
.ppcro-404__search form.searchform input[type="text"]::placeholder {
	color: #6b6683;
	opacity: 1;
}

.ppcro-404__search form.searchform input.s:focus,
.ppcro-404__search form.searchform input[type="text"]:focus {
	border-color: var(--pp404-purple);
	box-shadow: 0 0 0 3px rgba(93, 79, 137, 0.16);
}

.ppcro-404__search form.searchform input.s:focus-visible,
.ppcro-404__search form.searchform input[type="text"]:focus-visible,
.ppcro-404__search form.searchform button.searchsubmit:focus-visible,
.ppcro-404__links a:focus-visible {
	outline: 2px solid var(--pp404-purple);
	outline-offset: 2px;
}

.ppcro-404__search form.searchform button.searchsubmit {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 46px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 7px;
	background: var(--pp404-purple);
	color: #fff;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.ppcro-404__search form.searchform button.searchsubmit:hover,
.ppcro-404__search form.searchform button.searchsubmit:focus-visible {
	background: #4b3f74;
	color: #fff;
}

.ppcro-404__search form.searchform button.searchsubmit::before {
	color: #fff;
}

.ppcro-404__search form.searchform button.searchsubmit span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ppcro-404__search .wd-clear-search {
	right: 60px;
}

/* --- quick links --------------------------------------------------------- */

.ppcro-404__links-title {
	margin: 0 0 11px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #5f5a76;
}

.ppcro-404__links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppcro-404__links li {
	margin: 0;
	list-style: none;
}

.ppcro-404__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #e2ddef;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	color: #3f3565;
	text-decoration: none;
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.ppcro-404__links a:hover,
.ppcro-404__links a:focus-visible {
	border-color: var(--pp404-purple);
	background: #fff;
	color: var(--pp404-purple);
}

/* ==========================================================================
   5. Member variant - quiet, no pitch, no locked card
   ========================================================================== */

.ppcro-404--member .ppcro-404__gate {
	background: linear-gradient(168deg, #f7f5fc 0%, #eeeaf8 100%);
	border: 1px solid #e4dff2;
	color: var(--pp404-ink);
	box-shadow: none;
}

.ppcro-404--member .ppcro-404__gate::before {
	background-image:
		repeating-linear-gradient(0deg, rgba(93, 79, 137, 0.08) 0 1px, transparent 1px 30px),
		repeating-linear-gradient(90deg, rgba(93, 79, 137, 0.08) 0 1px, transparent 1px 30px);
}

.ppcro-404--member .ppcro-404__tag {
	border-color: #ddd6ef;
	background: #fff;
	color: var(--pp404-purple);
}

.ppcro-404--member .ppcro-404__tag-ic { color: var(--pp404-purple); }
.ppcro-404--member .ppcro-404__tag-sep { background: rgba(93, 79, 137, 0.5); }
.ppcro-404--member .ppcro-404__title { color: var(--pp404-ink); }
.ppcro-404--member .ppcro-404__lead { color: var(--pp404-body); }

.ppcro-404--member .ppcro-404__btn--primary {
	background: var(--pp404-purple);
	color: #fff;
	box-shadow: 0 8px 18px -10px rgba(93, 79, 137, 0.85);
}

.ppcro-404--member .ppcro-404__btn--primary:hover,
.ppcro-404--member .ppcro-404__btn--primary:focus-visible {
	background: #4b3f74;
	color: #fff;
}

.ppcro-404--member .ppcro-404__btn--ghost {
	border-color: #d5cee9;
	background: #fff;
	color: #3f3565;
}

.ppcro-404--member .ppcro-404__btn--ghost:hover,
.ppcro-404--member .ppcro-404__btn--ghost:focus-visible {
	border-color: var(--pp404-purple);
	background: #fff;
	color: var(--pp404-purple);
}

.ppcro-404--member .ppcro-404__gate .ppcro-404__btn:focus-visible {
	outline: 2px solid var(--pp404-purple);
	outline-offset: 3px;
}

/* ==========================================================================
   6. Tablet
   ========================================================================== */

@media (min-width: 601px) {
	.ppcro-404 { margin-bottom: 56px; }

	.ppcro-404__gate {
		padding: 44px 40px 46px;
	}

	.ppcro-404__gate-in {
		gap: 38px;
	}

	.ppcro-404__title {
		margin-top: 22px;
		font-size: clamp(30px, 4.1vw, 40px);
	}

	.ppcro-404__lead {
		margin-top: 16px;
		font-size: 16.5px;
	}

	.ppcro-404__locked {
		max-width: 430px;
		padding: 24px 24px 18px;
	}

	.ppcro-404__benefits {
		margin-top: 34px;
	}

	.ppcro-404__close {
		margin-top: 22px;
	}

	/* No benefits panel in the member variant, so the close bar inherits the lead gap. */
	.ppcro-404--member .ppcro-404__close {
		margin-top: 34px;
	}

	.ppcro-404__benefits-head {
		padding: 18px 26px;
		font-size: 20px;
	}

	.ppcro-404__close-title {
		font-size: 20px;
	}

	.ppcro-404__benefit {
		padding: 24px 26px;
	}

	.ppcro-404__bic {
		width: 44px;
		height: 44px;
		margin-bottom: 15px;
	}

	.ppcro-404__benefit-title {
		font-size: 15.5px;
	}

	.ppcro-404__benefit-text {
		font-size: 14px;
	}

	.ppcro-404__close {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		gap: 32px 44px;
		padding: 30px 32px;
	}
}

/* ==========================================================================
   7. Desktop
   ========================================================================== */

@media (min-width: 1025px) {
	.ppcro-404 { margin-bottom: 64px; }

	.ppcro-404__gate {
		padding: 58px 56px 60px;
	}

	.ppcro-404--guest .ppcro-404__gate-in {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
		align-items: center;
		gap: 56px;
	}

	.ppcro-404__title {
		font-size: clamp(36px, 2.9vw, 44px);
	}

	/* Member variant carries no locked card, so the second column takes the actions and
	   the panel becomes a band instead of a box with a guest-sized void on the right. */
	.ppcro-404--member .ppcro-404__gate {
		padding: 40px 56px 42px;
	}

	.ppcro-404--member .ppcro-404__gate-in {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 56px;
	}

	.ppcro-404--member .ppcro-404__actions {
		margin-top: 0;
		flex-wrap: nowrap;
	}

	.ppcro-404--member .ppcro-404__title {
		max-width: 20ch;
	}

	.ppcro-404--member .ppcro-404__lead {
		max-width: 52ch;
	}

	.ppcro-404__locked {
		justify-self: stretch;
		width: 100%;
		max-width: 100%;
		padding: 26px 26px 20px;
	}

	.ppcro-404__benefits-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ppcro-404__benefit:nth-child(n + 3) {
		border-top: 0;
	}

	.ppcro-404__benefit + .ppcro-404__benefit {
		border-left: 1px solid var(--pp404-line);
	}

	.ppcro-404__close {
		gap: 32px 56px;
		padding: 32px 36px;
	}

	.ppcro-404__search .wd-search-form {
		max-width: none;
	}
}
