/* ==========================================================================
   GPLWP product page — "technical dossier"
   Its own design system, deliberately unlike the review site: angled masthead,
   left-hand sticky rail, monospace spec ledger, orange action colour.
   All classes are wpg- prefixed so nothing collides with the shared sheet.
   ========================================================================== */

.wpg {
	--ink:      #0B1220;
	--ink-2:    #33415A;
	--muted:    #6C7C93;
	--paper:    #EFF3F6;
	--surface:  #FFFFFF;
	--line:     #D9E1E7;
	--line-2:   #C3CFD8;
	--teal:     #0E8F9C;
	--teal-ink: #073C43;
	--action:   #EE5F26;
	--action-2: #CE4712;
	--on-dark:  #E8F2F4;

	--display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--shell: 1240px;
	--pad: clamp(1.1rem, 4vw, 2.5rem);
	--ease: cubic-bezier(.2,.7,.3,1);

	background: var(--paper);
	color: var(--ink-2);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.72;
}

@media (prefers-color-scheme: dark) {
	.wpg {
		--ink:     #EDF3F5;
		--ink-2:   #BDCAD6;
		--muted:   #8496A8;
		--paper:   #080C13;
		--surface: #10161F;
		--line:    #1E2733;
		--line-2:  #2C3846;
		--teal:    #3FBECC;
		--teal-ink:#CFF0F4;
		--action:  #FF7442;
		--action-2:#EE5F26;
	}
}

.wpg *, .wpg *::before, .wpg *::after { box-sizing: border-box; }
.wpg-shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- angled masthead ---------- */

.wpg-mast {
	position: relative;
	padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(5rem, 10vw, 8rem);
	background:
		radial-gradient(120% 140% at 88% -10%, rgba(14,143,156,.55), transparent 58%),
		linear-gradient(102deg, #08111B 0%, #0B2830 58%, #0E4A52 100%);
	color: var(--on-dark);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), 0 100%);
	overflow: hidden;
}
.wpg-mast::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 56px 100%;
	mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.wpg-mast > .wpg-shell { position: relative; z-index: 1; }

.wpg-crumbs {
	display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
	font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
	text-transform: uppercase; color: rgba(232,242,244,.55); margin-bottom: clamp(1.5rem,4vw,2.6rem);
}
.wpg-crumbs a { color: rgba(232,242,244,.72); text-decoration: none; }
.wpg-crumbs a:hover { color: #fff; }
.wpg-crumbs .rank-math-breadcrumb p { margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }

.wpg-tagline {
	display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
	font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
	color: rgba(232,242,244,.62); margin-bottom: 1rem;
}
.wpg-tagline b { color: #7FE3EF; font-weight: 500; }
.wpg-tagline span[aria-hidden] { opacity: .35; }

.wpg-title {
	margin: 0; max-width: 20ch;
	font-family: var(--display); font-weight: 800;
	font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: .98;
	letter-spacing: -.035em; color: #fff; text-wrap: balance;
}
.wpg-deck {
	margin: 1.15rem 0 0; max-width: 46ch;
	font-size: clamp(1rem, 1.7vw, 1.14rem); line-height: 1.6;
	color: rgba(232,242,244,.72);
}

/* ---------- image band overlapping the notch ---------- */

.wpg-band { margin-top: clamp(-4.5rem, -7vw, -3rem); position: relative; z-index: 2; }
.wpg-band__inner {
	position: relative; overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--surface);
	box-shadow: 0 30px 60px -28px rgba(6,20,28,.55);
}
.wpg-band__inner img, .wpg-band__inner svg {
	display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover;
}
.wpg-band__tag {
	position: absolute; left: 0; bottom: 0;
	padding: .5rem 1rem; background: var(--action); color: #fff;
	font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
}

/* ---------- body: rail left, content right ---------- */

.wpg-body {
	display: grid; grid-template-columns: 300px minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	align-items: start;
}
@media (max-width: 980px) { .wpg-body { grid-template-columns: 1fr; } }

.wpg-rail { position: sticky; top: 92px; display: grid; gap: 1.5rem; }
@media (max-width: 980px) { .wpg-rail { position: static; } }

/* ---------- the download block ---------- */

.wpg-get {
	border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
	padding: 1.3rem 1.35rem 1.4rem;
	box-shadow: 0 1px 0 var(--line);
}
.wpg-get__label {
	font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
	text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem;
}
.wpg-get__name {
	margin: 0 0 1.1rem; font-family: var(--display); font-weight: 700;
	font-size: 1.12rem; line-height: 1.25; letter-spacing: -.02em; color: var(--ink);
}
.wpg-dl {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	width: 100%; padding: .95rem 1.1rem;
	background: var(--action); color: #fff; border: 0; border-radius: 3px;
	font-family: var(--display); font-weight: 700; font-size: .96rem; letter-spacing: -.005em;
	text-decoration: none; cursor: pointer;
	transition: background .16s var(--ease), transform .16s var(--ease);
}
.wpg-dl:hover { background: var(--action-2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.wpg-dl svg { width: 1.05em; height: 1.05em; flex: none; }
.wpg-dl--wide { max-width: 26rem; }
.wpg-get__note {
	margin: .75rem 0 0; font-family: var(--mono); font-size: .72rem;
	line-height: 1.6; color: var(--muted); letter-spacing: .01em;
}

/* ---------- the spec ledger ---------- */

.wpg-ledger { border-top: 2px solid var(--ink); padding-top: .9rem; }
.wpg-ledger__h {
	font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
	text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem;
}
.wpg-ledger dl { margin: 0; display: grid; gap: .55rem; }
.wpg-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .5rem; }
.wpg-row dt { font-size: .84rem; color: var(--muted); }
.wpg-row dd {
	margin: 0; font-family: var(--mono); font-size: .84rem; color: var(--ink);
	font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere;
}
.wpg-row dd a { color: var(--teal); }
.wpg-row i { border-bottom: 1px dotted var(--line-2); transform: translateY(-.3em); }

/* ---------- content ---------- */

.wpg-content { max-width: 44rem; font-size: 1.075rem; }
.wpg-content > * + * { margin-top: 1.15em; }
.wpg-content h2 {
	font-family: var(--display); font-weight: 800; color: var(--ink);
	font-size: clamp(1.35rem, 2.8vw, 1.75rem); letter-spacing: -.03em; line-height: 1.15;
	margin-top: 2.3em; margin-bottom: .5em; scroll-margin-top: 92px;
}
.wpg-content h2::before {
	content: ""; display: block; width: 34px; height: 3px;
	background: var(--action); margin-bottom: .7rem;
}
.wpg-content h2:first-child { margin-top: 0; }
.wpg-content h3 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.2rem; margin-top: 1.8em; }
.wpg-content p { margin: 0 0 1em; }
.wpg-content ul, .wpg-content ol { padding-left: 1.15em; display: grid; gap: .45em; }
.wpg-content li::marker { color: var(--action); }
.wpg-content a { color: var(--teal); text-underline-offset: 2px; }
.wpg-content img { border-radius: 3px; border: 1px solid var(--line); }
.wpg-content [style*="color"] { color: inherit !important; }
.wpg-content [style*="text-align"] { text-align: inherit !important; }
.wpg-content [style*="font-size"] { font-size: inherit !important; }

/* ---------- screenshot ---------- */

.wpg-shot { margin: 2.5rem 0 0; }
.wpg-shot img { width: 100%; border: 1px solid var(--line); border-radius: 3px; display: block; }
.wpg-shot figcaption {
	margin-top: .7rem; font-family: var(--mono); font-size: .74rem;
	letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}

/* ---------- the nulled explainer ---------- */

.wpg-note {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	border: 1px solid color-mix(in oklab, var(--teal) 30%, var(--line));
	border-left: 4px solid var(--teal);
	border-radius: 0 4px 4px 0;
	background: color-mix(in oklab, var(--teal) 7%, var(--surface));
	padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.3rem, 3vw, 2rem);
}
.wpg-note h2 {
	margin: 0 0 .85rem; font-family: var(--display); font-weight: 800;
	font-size: clamp(1.15rem, 2.4vw, 1.42rem); line-height: 1.2;
	letter-spacing: -.025em; color: var(--ink);
}
.wpg-note h2::before { display: none; }
.wpg-note p { margin: 0 0 .85rem; font-size: .98rem; line-height: 1.68; }
.wpg-note p:last-child { margin-bottom: 0; }
.wpg-note strong { color: var(--ink); }
.wpg-note__points {
	list-style: none; padding: 0; margin: 1.15rem 0 0;
	display: grid; gap: .5rem;
}
.wpg-note__points li {
	display: grid; grid-template-columns: 18px 1fr; gap: .6rem; align-items: start;
	font-size: .93rem; color: var(--ink-2);
}
.wpg-note__points li::before {
	content: ""; width: 16px; height: 16px; margin-top: .28em; border-radius: 2px;
	background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------- closing call to action ---------- */

.wpg-close {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem;
	padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.5rem, 4vw, 2.6rem);
	background: linear-gradient(100deg, #08111B, #0E4A52);
	border-radius: 4px; color: var(--on-dark);
}
.wpg-close h2 {
	margin: 0; font-family: var(--display); font-weight: 800; color: #fff;
	font-size: clamp(1.25rem, 3vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15;
}
.wpg-close p { margin: .5rem 0 0; color: rgba(232,242,244,.7); font-size: .95rem; }
@media (max-width: 720px) { .wpg-close { grid-template-columns: 1fr; } }

/* ---------- related: horizontal strip ---------- */

.wpg-more { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.wpg-more__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.wpg-more__h {
	margin: 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em;
	text-transform: uppercase; color: var(--muted);
}
.wpg-more__link { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); text-decoration: none; }
.wpg-strip {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
	gap: 1rem; overflow-x: auto; padding-bottom: .6rem;
	scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.wpg-strip > * { scroll-snap-align: start; }
.wpg-item {
	display: grid; grid-template-rows: auto 1fr; text-decoration: none;
	border: 1px solid var(--line); border-radius: 4px; background: var(--surface); overflow: hidden;
	transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.wpg-item:hover { text-decoration: none; border-color: var(--teal); transform: translateY(-2px); }
.wpg-item__media { aspect-ratio: 16/9; background: var(--paper); overflow: hidden; }
.wpg-item__media img, .wpg-item__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpg-item__body { padding: .85rem 1rem 1rem; display: grid; gap: .3rem; align-content: start; }
.wpg-item__type { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.wpg-item__name { font-family: var(--display); font-weight: 700; font-size: .97rem; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }

/* ---------- mobile sticky download ---------- */

.wpg-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
	display: flex; align-items: center; gap: 1rem;
	padding: .65rem var(--pad); padding-bottom: max(.65rem, env(safe-area-inset-bottom));
	background: color-mix(in oklab, var(--surface) 94%, transparent);
	backdrop-filter: blur(12px); border-top: 1px solid var(--line);
	transform: translateY(100%); transition: transform .26s var(--ease);
}
.wpg-sticky.is-on { transform: translateY(0); }
.wpg-sticky__t { font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpg-sticky__s { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.wpg-sticky .wpg-dl { width: auto; margin-left: auto; padding: .6rem .95rem; font-size: .85rem; }
@media (min-width: 981px) { .wpg-sticky { display: none; } }

@media (prefers-reduced-motion: reduce) { .wpg * { transition-duration: .01ms !important; } }
