/* GTA Yourself (dfirst.ai/gta/, scripts/landing/offer-pages/gta-yourself.mjs).
   The site's own system: white paper, ink, hairlines, lime only on actions.
   The colour comes from the cards themselves. Everything is prefixed gy-.
   A card is a picture with a layer of words over it; its sizes are in
   container units, so one design holds from a phone to a wide screen. */
@font-face {
	font-family: "GY Script";
	src: url("/landing/assets/gta/MrDafoe-Regular.ttf") format("truetype");
	font-display: swap;
}
@font-face {
	font-family: "GY Caps";
	src: url("/fonts/media-editor/BebasNeue-Regular.ttf") format("truetype");
	font-display: swap;
}
.gy-page {
	--gy-plum: #1d0f33;
	--gy-lime: #e2ff52;
	overflow-x: clip;
}
.gy-hero {
	padding-bottom: 8px;
}
.gy-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
	gap: 48px 64px;
	align-items: center;
}
.gy-copy .mp-lede {
	margin-top: 22px;
}

/* ── The box: one address, one action ── */
.gy-box {
	display: grid;
	gap: 12px;
	max-width: 540px;
	margin-top: 32px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 16px 60px rgb(29 29 31 / 0.06);
}
.gy-label {
	font-size: 13px;
	font-weight: 600;
}
.gy-field {
	display: flex;
	gap: 8px;
}
.gy-field input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #cfcfd6;
	border-radius: 12px;
	background: var(--paper-2);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}
.gy-field input:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	background: #fff;
}
.gy-make {
	min-height: 52px;
	border: 0;
	font-family: inherit;
	cursor: pointer;
}
.gy-make:disabled {
	background: var(--paper);
	color: var(--faint);
	cursor: default;
	transform: none;
}
.gy-status {
	min-height: 20px;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.45;
}
.gy-status.is-warn {
	color: #b3261e;
}
.gy-progress[hidden],
.gy-next[hidden],
.gy-photo[hidden],
.gy-download[hidden],
.gy-missions[hidden] {
	display: none;
}
.gy-progress {
	height: 4px;
	border-radius: 4px;
	background: var(--line-2);
	overflow: hidden;
}
.gy-progress i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 4px;
	background: var(--ink);
	transition: width 0.4s linear;
}
.gy-photo {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1.5px dashed #cfcfd6;
	border-radius: 14px;
	cursor: pointer;
}
.gy-photo:hover {
	border-color: var(--ink);
}
.gy-photo.is-set {
	border-style: solid;
	border-color: var(--ink);
}
.gy-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.gy-photo-text {
	display: grid;
	gap: 3px;
}
.gy-photo-text b {
	font-size: 15px;
	font-weight: 600;
}
.gy-photo-text small {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
}
.gy-next {
	display: grid;
	gap: 4px;
	justify-items: center;
}
.gy-next .button {
	width: 100%;
	min-height: 52px;
	justify-content: space-between;
}
.gy-note {
	color: var(--faint);
	font-size: 12.5px;
	text-align: center;
}

/* ── The stage: the mission in front of two more, the file as words ── */
.gy-stage {
	display: grid;
	gap: 14px;
	min-width: 0;
}
.gy-cards {
	display: grid;
	gap: 16px;
}
.gy-card {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 4 / 5;
	margin: 0;
	border-radius: 18px;
	background: var(--gy-plum);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.gy-card > img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.gy-card > :not(img) {
	z-index: 1;
}
.gy-card.is-new,
.gy-facts.is-new {
	animation: gy-reveal 0.8s var(--ease) both;
}
.gy-stage-line {
	color: var(--muted);
	font-size: 14px;
}
/* The words: one layer over the picture. 1cqw = 1% of the card's width. */
.gy-shade {
	position: absolute;
	inset: auto 0 0 0;
	height: 58%;
	background: linear-gradient(180deg, rgb(38 18 62 / 0), rgb(38 18 62 / 0.55) 42%, rgb(27 12 48 / 0.92));
}
.gy-top {
	position: absolute;
	inset: 4.4cqw 5.2cqw auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: "GY Caps", Impact, sans-serif;
	font-size: 3.2cqw;
	letter-spacing: 0.07em;
	text-shadow: 0 0.2cqw 1.3cqw rgb(27 12 48 / 0.6);
}
.gy-stars {
	font-family: Inter, Arial, sans-serif;
	font-size: 2.8cqw;
	letter-spacing: 0.14em;
	color: var(--gy-lime);
}
.gy-stars i {
	font-style: normal;
	color: rgb(255 255 255 / 0.5);
}
.gy-name {
	position: absolute;
	left: 4cqw;
	bottom: 26.5cqw;
	font-family: "GY Script", "Brush Script MT", cursive;
	font-size: 23cqw;
	line-height: 1;
	white-space: nowrap;
	padding: 0 4cqw 3cqw 1.2cqw;
	transform: rotate(-6deg);
	transform-origin: left bottom;
	background: linear-gradient(180deg, #fff 18%, #ffd3ee 55%, #ff8fd2 92%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0.65cqw 0.65cqw 0 var(--gy-lime)) drop-shadow(0 1.3cqw 2.4cqw rgb(27 12 48 / 0.6));
}
.gy-name.is-long {
	font-size: 17cqw;
}
.gy-meta {
	position: absolute;
	inset: auto 5.5cqw 6cqw;
}
.gy-fact {
	font-family: "GY Caps", Impact, sans-serif;
	font-size: 3.1cqw;
	letter-spacing: 0.08em;
	color: var(--gy-lime);
}
.gy-title {
	margin-top: 0.5cqw;
	font-family: "GY Caps", Impact, sans-serif;
	font-size: 10.4cqw;
	line-height: 0.95;
}
.gy-line {
	max-width: 76cqw;
	margin-top: 1.3cqw;
	font-size: 3.15cqw;
	line-height: 1.3;
}
.gy-mark {
	position: absolute;
	right: 5.4cqw;
	bottom: 6.1cqw;
	font-size: 1.6cqw;
	font-weight: 700;
	letter-spacing: 0.24em;
	color: rgb(255 255 255 / 0.62);
}
/* A profile with no public photo: a painted scene and a place for one. */
.gy-mission.is-nophoto .gy-scene {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.gy-you {
	position: absolute;
	left: 50%;
	top: 31%;
	z-index: 1;
	width: 38cqw;
	aspect-ratio: 1;
	translate: -50% -50%;
	display: grid;
	place-items: center;
	border: 0.55cqw dashed rgb(255 255 255 / 0.9);
	border-radius: 50%;
	background: rgb(42 14 58 / 0.42) center / cover no-repeat;
	backdrop-filter: blur(3px);
	color: #fff;
	font: 400 4.6cqw / 1.1 "GY Caps", "Bebas Neue", sans-serif;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}
.gy-you.is-set {
	border: 0.7cqw solid #e2ff52;
	backdrop-filter: none;
}
/* While the first mission is painted from the added photo, the scene dims. */
.gy-mission.is-nophoto-painting .gy-scene {
	opacity: 0.35;
}
.gy-you.is-set span {
	display: none;
}
/* A mission whose picture is still being painted, or waits on the board. */
.gy-mission.is-painting::before,
.gy-mission.is-waiting::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(115deg, #b9a7f0, #ffb7a8 45%, #7fdcd6);
	background-size: 220% 220%;
}
.gy-mission.is-painting::before {
	animation: gy-wash 4s ease-in-out infinite alternate;
}
.gy-mission.is-painting::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / 0.4) 50%, transparent 65%);
	background-size: 250% 100%;
	animation: gy-sweep 2.2s linear infinite;
}
/* The fan: the newest mission in front of two more, so six reads at a glance. */
.gy-fan {
	position: relative;
	aspect-ratio: 1.16;
}
.gy-fan .gy-card {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	width: 66%;
	box-shadow: 0 18px 50px rgb(29 15 51 / 0.22);
}
.gy-fan .gy-back1 {
	left: 21%;
	z-index: 2;
	transform: rotate(5deg) scale(0.93);
	filter: brightness(0.94);
}
.gy-fan .gy-back2 {
	left: 38%;
	z-index: 1;
	transform: rotate(10deg) scale(0.86);
	filter: brightness(0.88);
}
/* The way to the rest: on the cards that are still behind. */
.gy-all {
	position: absolute;
	right: 2%;
	bottom: 13%;
	z-index: 4;
	gap: 14px;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgb(29 15 51 / 0.35);
}
/* The file: one quiet sheet under the cards. The charge in the cards' own
   capitals, three stat bars like the game's, nothing else. */
.gy-facts {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: 18px 36px;
	min-width: 0;
	margin-top: 4px;
	padding: 20px 24px 22px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
}
.gy-facts-label {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line-2);
	font-size: 13px;
	font-weight: 600;
}
.gy-facts .gy-stars {
	font-size: 14px;
	letter-spacing: 0.16em;
	color: var(--ink);
}
.gy-facts .gy-stars i {
	color: var(--line);
}
.gy-facts-wanted b {
	display: block;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
}
.gy-facts-wanted span {
	display: block;
	font-family: "GY Caps", Impact, sans-serif;
	font-size: clamp(30px, 2.7vw, 40px);
	line-height: 0.98;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	text-wrap: balance;
}
.gy-facts dl {
	display: grid;
	gap: 14px;
	margin: 0;
}
.gy-facts dl div {
	--lv: 5;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 7px 16px;
}
.gy-facts dt {
	color: var(--muted);
	font-size: 13.5px;
}
.gy-facts dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	text-align: right;
}
/* The bar: ten segments, as many filled as the stat's level. */
.gy-facts dl div::after {
	content: "";
	grid-column: 1 / -1;
	height: 6px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--ink) calc(var(--lv) * 10%), var(--line) 0);
	-webkit-mask: repeating-linear-gradient(to right, #000 0 calc(10% - 3px), transparent 0 10%);
	mask: repeating-linear-gradient(to right, #000 0 calc(10% - 3px), transparent 0 10%);
}
.gy-facts [data-lv="1"] {
	--lv: 1;
}
.gy-facts [data-lv="2"] {
	--lv: 2;
}
.gy-facts [data-lv="3"] {
	--lv: 3;
}
.gy-facts [data-lv="4"] {
	--lv: 4;
}
.gy-facts [data-lv="5"] {
	--lv: 5;
}
.gy-facts [data-lv="6"] {
	--lv: 6;
}
.gy-facts [data-lv="7"] {
	--lv: 7;
}
.gy-facts [data-lv="8"] {
	--lv: 8;
}
.gy-facts [data-lv="9"] {
	--lv: 9;
}
.gy-facts [data-lv="10"] {
	--lv: 10;
}

/* ── The six missions of a result, as words: the frames wait on the board ── */
.gy-missions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
}
.gy-missions li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 2px 10px;
	padding: 12px 0;
	border-top: 1px solid var(--line-2);
}
.gy-missions i {
	grid-row: span 2;
	font-style: normal;
	color: var(--faint);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	padding-top: 2px;
}
.gy-missions b {
	font-size: 15px;
	font-weight: 600;
}
.gy-missions span {
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.4;
}

@keyframes gy-wash {
	from {
		background-position: 0% 0%;
	}
	to {
		background-position: 100% 100%;
	}
}
@keyframes gy-sweep {
	from {
		background-position: 130% 0;
	}
	to {
		background-position: -130% 0;
	}
}
/* `translate`, not `transform`: the cards behind keep their tilt. */
@keyframes gy-reveal {
	from {
		opacity: 0;
		translate: 0 10px;
	}
	to {
		opacity: 1;
		translate: 0 0;
	}
}

/* ── The example, mission by mission, each with the line it came from ── */
.gy-story {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 20px;
}
.gy-source {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.45;
}
.gy-source b {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
}
.gy-story-cta {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}

/* ── How it works ── */
.gy-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.gy-steps li {
	padding: 26px 26px 30px;
	border: 1px solid var(--line);
	border-radius: 20px;
}
.gy-step-n {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: 22px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

/* ── From the frames to the brand ── */
.gy-brand {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: 40px 64px;
	align-items: center;
	padding: 48px;
	border-radius: 28px;
	background: var(--paper);
}
.gy-brand h2 {
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.045em;
	text-wrap: balance;
}
.gy-brand h2 .grey {
	display: block;
}
.gy-brand p {
	max-width: 520px;
	margin-top: 18px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.6;
}
.gy-brand .actions {
	margin-top: 14px;
}
.gy-brand-art {
	aspect-ratio: 1200 / 963;
	border-radius: 20px;
	overflow: hidden;
}

@media (max-width: 1020px) {
	.gy-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.gy-box {
		max-width: none;
	}
	.gy-story {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.gy-steps,
	.gy-brand {
		grid-template-columns: minmax(0, 1fr);
	}
	.gy-brand {
		padding: 28px;
	}
	.gy-stage {
		scroll-margin-top: 84px;
	}
}
@media (max-width: 560px) {
	.gy-field {
		flex-direction: column;
	}
	.gy-make {
		width: 100%;
		justify-content: space-between;
	}
	/* The way to the rest sits under the fan, full width, where a thumb finds it. */
	.gy-fan {
		aspect-ratio: auto;
		padding-top: 96%;
		margin-bottom: 62px;
	}
	.gy-all {
		right: 0;
		left: 0;
		bottom: -62px;
		justify-content: space-between;
		border-radius: 5px;
		box-shadow: none;
	}
	.gy-facts,
	.gy-missions {
		grid-template-columns: minmax(0, 1fr);
	}
	.gy-facts {
		padding: 18px 18px 20px;
	}
	.gy-story {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.gy-card.is-new,
	.gy-facts.is-new,
	.gy-mission.is-painting::before,
	.gy-mission.is-painting::after {
		animation: none;
	}
}
