/* ============================================================
   App Tabs — blurred section background + left nav + right media card.
   Desktop: 6667:7620 / 6669:20676
   Tablet: 6245:7123
   Mobile: 6245:7648
   ============================================================ */

.app-tabs {
	--at-easing: cubic-bezier(0.22, 1, 0.36, 1);
	--at-duration: 420ms;
	--at-indicator-offset: 0px;
	--at-indicator-size: 120px;
	--app-tabs-bg-desktop: none;
	--app-tabs-bg-mobile: var(--app-tabs-bg-desktop);
	--at-header-h: var(--header-height, 62px);
	--at-step: 100vh;
	--at-tabs-count: 1;

	position: relative;
	width: 100%;
	background: #d9d9d9;
	color: #fff;
	touch-action: pan-y;
	overscroll-behavior: contain;
}

.app-tabs:not(.app-tabs--pinned) {
	overflow: hidden;
	padding: 134px 16px 16px;
}

.app-tabs__track {
	position: relative;
	width: 100%;
	height: calc(var(--at-step) * var(--at-tabs-count));
}

.app-tabs__sticky {
	position: sticky;
	top: var(--at-header-h);
	width: 100%;
	height: calc(100vh - var(--at-header-h));
	overflow: hidden;
	padding: 134px 16px 16px;
	display: flex;
	flex-direction: column;
}

.app-tabs *,
.app-tabs *::before,
.app-tabs *::after {
	box-sizing: border-box;
}

.app-tabs__background,
.app-tabs__background-overlay {
	position: absolute;
	inset: 0;
}

.app-tabs__background {
	background-color: #d9d9d9;
	background-image: var(--app-tabs-bg-desktop);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(8px);
	transform: scale(1.06);
	transform-origin: center;
}

.app-tabs__background-overlay {
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.33) 100%);
}

.app-tabs__inner {
	position: relative;
	z-index: 1;
	width: min(100%, 1408px);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

.app-tabs--pinned .app-tabs__inner {
	flex: 1 1 auto;
	min-height: 0;
}

.app-tabs--pinned .app-tabs__stage {
	flex: 1 1 auto;
	min-height: 0;
	align-items: center;
}

.app-tabs--pinned .app-tabs__nav-wrap,
.app-tabs--pinned .app-tabs__panels {
	min-height: 0;
}

.app-tabs--pinned .app-tabs__panel-card {
	min-height: 0;
	height: 100%;
}

.app-tabs__heading {
	display: flex;
	align-items: flex-end;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(245, 245, 245, 0.33);
}

.app-tabs__heading-label {
	font-size: 18px;
	line-height: 18px;
	letter-spacing: -0.05em;
	font-weight: 500;
	color: #fff;
}

.app-tabs__heading-number {
	margin-left: 4px;
	font-size: 10px;
	line-height: 18px;
	font-weight: 400;
	letter-spacing: -0.05em;
	vertical-align: top;
}

.app-tabs__stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 718px;
	gap: 32px;
	align-items: start;
	padding-top: 12px;
	min-height: 718px;
}

.app-tabs__nav-wrap {
	display: grid;
	grid-template-columns: 4px minmax(0, 1fr);
	gap: 16px;
	align-self: stretch;
	min-height: 718px;
}

.app-tabs__nav-rail {
	position: relative;
	width: 4px;
	height: 100%;
	border-radius: 100px;
	background: rgba(245, 245, 245, 0.33);
	border: 0.88px solid rgba(255, 255, 255, 0.16);
	overflow: hidden;
}

.app-tabs__nav-indicator {
	position: absolute;
	left: 0;
	top: var(--at-indicator-offset);
	width: 100%;
	height: var(--at-indicator-size);
	border-radius: 100px;
	background: #fff;
	transition:
		top var(--at-duration) var(--at-easing),
		height var(--at-duration) var(--at-easing),
		left var(--at-duration) var(--at-easing),
		width var(--at-duration) var(--at-easing);
}

.app-tabs__nav {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 33px;
	min-height: 100%;
}

.app-tabs__tab {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	text-align: left;
	font: inherit;
	color: rgba(255, 255, 255, 0.5);
	font-size: 39px;
	line-height: 42px;
	letter-spacing: -0.05em;
	font-weight: 400;
	cursor: pointer;
	transition: color 0.25s ease;
}

.app-tabs__tab:hover {
	color: rgba(255, 255, 255, 0.8);
}

.app-tabs__tab.is-active {
	color: #fff;
}

.app-tabs__tab-label {
	display: block;
}

.app-tabs__panels {
	position: relative;
	min-height: 718px;
}

.app-tabs__panel {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition:
		opacity var(--at-duration) var(--at-easing),
		transform var(--at-duration) var(--at-easing);
}

.app-tabs__panel.is-active {
	position: relative;
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.app-tabs__panel[hidden] {
	display: flex;
}

.app-tabs__panel-card {
	position: relative;
	width: 718px;
	min-height: 718px;
	padding: 36px 36px 48px;
	border-radius: 18px;
	background: #000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 36px;
}

.app-tabs__media {
	position: relative;
	width: 100%;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-tabs__image {
	display: block;
	max-width: min(100%, 500px);
	max-height: 390px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 16px;
}

.app-tabs__video {
	position: relative;
	width: min(100%, 500px);
	aspect-ratio: 500 / 281;
	border-radius: 16px;
	overflow: hidden;
	background: #090909;
}

.app-tabs__video-preview {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.5s ease;
}

.app-tabs__video:hover .app-tabs__video-preview {
	transform: scale(1.02);
}

.app-tabs__video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 84px;
	height: 84px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.app-tabs__video-play svg {
	display: block;
	width: 100%;
	height: 100%;
}

.app-tabs__video:hover .app-tabs__video-play {
	transform: translate(-50%, -50%) scale(1.04);
}

.app-tabs__video.is-playing .app-tabs__video-preview,
.app-tabs__video.is-playing .app-tabs__video-play {
	display: none;
}

.app-tabs__video iframe,
.app-tabs__video video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.app-tabs__caption {
	max-width: 360px;
	margin: 0 auto;
	color: #fff;
	font-size: 21px;
	line-height: 18px;
	letter-spacing: -0.05em;
	font-weight: 500;
	text-align: center;
}

.app-tabs__caption p {
	margin: 0;
}

.app-tabs__callout {
	display: none;
}

.app-tabs__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 62px;
	padding: 0 16px;
	margin-top: 16px;
	background: #fff;
	color: #000;
}

.app-tabs__info {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #000;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: -0.05em;
}

.app-tabs__info-icon {
	width: 36px;
	height: 36px;
	border-radius: 9.536px;
	border: 1px solid rgba(150, 150, 150, 0.33);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #000;
}

.app-tabs__info-icon svg {
	display: block;
	width: 32.571px;
	height: 32.571px;
}

.app-tabs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 97px;
	height: 36px;
	padding: 9px 26px;
	border-radius: 22px;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	letter-spacing: -0.05em;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-tabs__btn--accent {
	background: #1dff60;
	border: 1.33px solid #1dff60;
	color: #090909;
}

.app-tabs__btn:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

@media (min-width: 901px) and (max-width: 1280px) {
	.app-tabs:not(.app-tabs--pinned) {
		padding: 72px 16px 0;
	}

	.app-tabs--pinned .app-tabs__sticky {
		padding: 72px 16px 0;
	}

	.app-tabs__inner {
		max-width: 992px;
	}

	.app-tabs__stage {
		grid-template-columns: 257px 718px;
		gap: 17px;
		min-height: 1104px;
	}

	.app-tabs__nav-wrap {
		min-height: 1104px;
		gap: 17px;
	}

	.app-tabs__nav {
		gap: 20.838px;
	}

	.app-tabs__tab {
		font-size: 24.577px;
		line-height: 26.468px;
		letter-spacing: -0.05em;
	}

	.app-tabs__panels {
		min-height: 1104px;
	}

	.app-tabs__panel-card {
		width: 718px;
		min-height: 1104px;
		padding: 42px 40px 48px;
		gap: 24px;
	}

	.app-tabs__panel--image .app-tabs__image {
		max-width: min(100%, 320px);
		max-height: 680px;
	}

	.app-tabs__panel--video .app-tabs__video {
		width: min(100%, 500px);
	}

	.app-tabs__caption {
		max-width: 360px;
	}

	.app-tabs__callout {
		position: absolute;
		top: 50%;
		right: 59px;
		display: flex;
		align-items: center;
		width: 120px;
		padding: 9px;
		border-radius: 9px;
		background: rgba(83, 85, 76, 0.64);
		backdrop-filter: blur(8px);
		color: #fff;
		font-size: 10px;
		line-height: 12px;
		letter-spacing: -0.02em;
		transform: translateY(-6%);
	}

	.app-tabs__callout p {
		margin: 0;
	}
}

@media (max-width: 900px) {
	.app-tabs {
		--at-step: 70dvh;
	}

	.app-tabs:not(.app-tabs--pinned) {
		padding: 74px 12px 16px;
	}

	.app-tabs--pinned .app-tabs__sticky {
		height: calc(100dvh - var(--at-header-h));
		padding: 74px 12px 16px;
	}

	.app-tabs__background {
		background-image: var(--app-tabs-bg-mobile, var(--app-tabs-bg-desktop));
	}

	.app-tabs__inner {
		width: min(100%, 351px);
	}

	.app-tabs__heading {
		padding-bottom: 10px;
	}

	.app-tabs__stage {
		display: flex;
		flex-direction: column;
		gap: 28px;
		min-height: 0;
	}

	.app-tabs__panels {
		order: 1;
		min-height: 506px;
	}

	.app-tabs__panel {
		justify-content: center;
	}

	.app-tabs__panel-card {
		width: 100%;
		min-height: 506px;
		padding: 36px 18px 28px;
		gap: 24px;
	}

	.app-tabs__media {
		min-height: 340px;
	}

	.app-tabs__panel--image .app-tabs__image {
		max-width: min(100%, 220px);
		max-height: 311px;
	}

	.app-tabs__panel--video .app-tabs__video {
		width: min(100%, 314px);
	}

	.app-tabs__video-play {
		width: 60px;
		height: 60px;
	}

	.app-tabs__caption {
		max-width: 314px;
		font-size: 18px;
		line-height: 18px;
	}

	.app-tabs__callout {
		position: absolute;
		top: 50%;
		right: -4px;
		display: flex;
		align-items: center;
		width: 120px;
		padding: 9px;
		border-radius: 9px;
		background: rgba(83, 85, 76, 0.64);
		backdrop-filter: blur(8px);
		color: #fff;
		font-size: 10px;
		line-height: 12px;
		letter-spacing: -0.02em;
		transform: translateY(-8%);
	}

	.app-tabs__callout p {
		margin: 0;
	}

	.app-tabs__nav-wrap {
		order: 2;
		display: flex;
		flex-direction: column;
		gap: 12px;
		min-height: 0;
	}

	.app-tabs__nav {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 22px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.app-tabs__nav::-webkit-scrollbar {
		display: none;
	}

	.app-tabs__tab {
		flex: 0 0 auto;
		font-size: 26px;
		line-height: 28px;
		white-space: nowrap;
	}

	.app-tabs__nav-rail {
		order: 2;
		width: 100%;
		height: 4px;
	}

	.app-tabs__nav-indicator {
		top: 0;
		left: var(--at-indicator-offset);
		width: var(--at-indicator-size);
		height: 100%;
	}

	.app-tabs__footer {
		margin-top: 12px;
		padding: 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.app-tabs--pinned .app-tabs__track {
		height: auto;
	}

	.app-tabs--pinned .app-tabs__sticky {
		position: static;
		height: auto;
	}

	.app-tabs__nav-indicator,
	.app-tabs__panel {
		transition: none;
	}
}
