/* Home scene 06.2: ThemeTry, a drawn phone re-skinned by the platform and theme pickers. CSS drawings only. */

.themes {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(30px, 5vw, 90px);
	align-items: center;
	margin-block-start: clamp(70px, 9vw, 140px);
	padding-block-start: clamp(40px, 6vw, 90px);
	border-block-start: var(--hairline) solid var(--ln-s);
}

.th-copy {
	display: grid;
	gap: 22px;
	justify-items: start;
}

.th-copy .d2 {
	font-size: clamp(34px, 4.4vw, 70px);
}

.th-copy .lead,
.th-copy .note {
	color: var(--gray-600);
}

.th-copy .go {
	color: var(--ink-900);
}

.seg {
	display: inline-flex;
	border: var(--hairline) solid var(--ink-900);
}

.seg button {
	height: 46px;
	padding-inline: 24px;
	background: transparent;
	color: var(--ink-900);
	border: 0;
	font-weight: 700;
	cursor: pointer;
	transition:
		background 0.3s,
		color 0.3s;
}

.seg button[aria-pressed="true"] {
	background: var(--ink-900);
	color: var(--white);
}

.tpick {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.tpick[hidden] {
	display: none;
}

.tpick button {
	--a: var(--blue-500);
	--b: var(--ink-900);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 52px;
	padding-inline: 8px 18px;
	background: transparent;
	border: var(--hairline) solid var(--ln-s);
	color: var(--ink-900);
	font-weight: 700;
	cursor: pointer;
	transition:
		border-color 0.3s,
		background 0.3s;
}

.tpick button[data-t="1"] {
	--a: var(--gold-500);
	--b: var(--gold-100);
}

.tpick button[data-t="2"] {
	--a: var(--blue-300);
	--b: var(--ink-700);
}

.tpick button i {
	width: 34px;
	height: 34px;
	background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
	border: var(--hairline) solid var(--ln-s);
}

.tpick button[aria-pressed="true"] {
	border-color: var(--ink-900);
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--ink-900);
}

.th-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(480px, 48vw, 640px);
	perspective: 1400px;
}

.dimv {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	display: flex;
	justify-content: center;
	color: var(--gold-700);
}

.phn {
	--wa: var(--ink-900);
	--wb: var(--blue-500);
	--ic: var(--blue-300);
	--ic2: var(--gold-300);
	position: relative;
	width: clamp(210px, 21vw, 290px);
	aspect-ratio: 9/19;
	border: 8px solid var(--ink-900);
	border-radius: 44px;
	overflow: hidden;
	background: var(--wa);
	box-shadow:
		0 50px 80px -30px rgb(var(--ink-900-rgb) / 0.6),
		0 0 0 1px rgb(var(--ink-900-rgb) / 0.3);
	transform: rotateY(calc(var(--dir) * -16deg)) rotateX(5deg);
	transition:
		transform 1.2s var(--ease),
		border-radius 0.6s var(--ease);
}

.th-stage:hover .phn {
	transform: none;
}

.phn[data-t="1"] {
	--wa: var(--gold-100);
	--wb: var(--gold-500);
	--ic: var(--gold-700);
	--ic2: var(--white);
}

.phn[data-t="2"] {
	--wa: var(--ink-700);
	--wb: var(--blue-300);
	--ic: var(--blue-100);
	--ic2: var(--blue-500);
}

.phn .wall {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(90% 55% at 85% 8%, var(--wb), transparent 70%),
		radial-gradient(60% 40% at 0% 100%, var(--wb), transparent 70%);
}

.phn .isl {
	position: absolute;
	inset-block-start: 2.6%;
	inset-inline-start: 50%;
	width: 30%;
	height: 3.4%;
	margin-inline-start: -15%;
	background: rgb(var(--black-rgb));
	border-radius: 99px;
	z-index: 3;
	transition: all 0.5s var(--ease);
}

.phn .apps {
	position: absolute;
	inset: 13% 8% auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px 12px;
}

.phn .apps i {
	display: block;
	aspect-ratio: 1;
	border-radius: 24%;
	background: var(--ic);
	transition: border-radius 0.6s var(--ease);
}

.phn .apps i:nth-child(3n) {
	background: var(--ic2);
}

.phn .apps i:nth-child(5n) {
	opacity: 0.7;
}

.phn .dock {
	position: absolute;
	inset: auto 7% 5%;
	height: 13%;
	border-radius: 26px;
	background: rgb(var(--white-rgb) / 0.18);
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding-inline: 8px;
	transition: border-radius 0.6s var(--ease);
}

.phn .dock i {
	display: block;
	width: 17%;
	aspect-ratio: 1;
	border-radius: 24%;
	background: var(--ic2);
	transition: border-radius 0.6s var(--ease);
}

.phn .dock i:nth-child(2n) {
	background: var(--ic);
}

.phn .home {
	position: absolute;
	inset-inline-start: 50%;
	inset-block-end: 1.6%;
	width: 34%;
	height: 4px;
	margin-inline-start: -17%;
	border-radius: 4px;
	background: var(--ic);
	opacity: 0.8;
	transition: all 0.5s var(--ease);
}

.phn.android {
	border-radius: 30px;
}

.phn.android .isl {
	width: 9%;
	height: 4.2%;
	margin-inline-start: -4.5%;
	inset-block-start: 2.4%;
	border-radius: 50%;
}

.phn.android .apps i,
.phn.android .dock i {
	border-radius: 50%;
}

.phn.android .dock {
	border-radius: 40px;
}

.phn.android .home {
	width: 22%;
	margin-inline-start: -11%;
}

@keyframes pop {
	0% {
		transform: scale(0.4);
		opacity: 0;
	}

	100% {
		transform: none;
		opacity: 1;
	}
}

.phn.swap .apps i,
.phn.swap .dock i {
	animation: pop 0.7s var(--ease-spring) both;
	animation-delay: calc(var(--k, 0) * 28ms);
}

.rm .phn,
.rm .phn .apps i,
.rm .phn .dock,
.rm .phn .dock i,
.rm .phn .isl,
.rm .phn .home {
	transition: none;
}

.rm .phn.swap .apps i,
.rm .phn.swap .dock i {
	animation: none;
}

@media (max-width: 1000px) {
	.themes {
		grid-template-columns: minmax(0, 1fr);
	}

	.th-stage {
		min-height: 500px;
	}
}
