/**
 * Tool landing page.
 * Scoped under .nt-tool/.notylab-tool-page to avoid affecting theme pages.
 */

.notylab-tool-page {
	--nt-accent: #22c7e6;
	--nt-accent-strong: #05b8dc;
	--nt-bg: #fff;
	--nt-bg-alt: #f7f9fb;
	--nt-bg-deep: #f1f5f8;
	--nt-card: #fff;
	--nt-text: #172033;
	--nt-muted: #637083;
	--nt-border: #dce2e8;
	--nt-shadow: 0 18px 45px rgb(10 31 50 / 8%);
}

html[data-theme="dark"] body.notylab-tool-page,
body.notylab-tool-page.dark-mode,
body.notylab-tool-page.dark {
	--nt-bg: #1b1b1b;
	--nt-bg-alt: #232323;
	--nt-bg-deep: #181818;
	--nt-card: #242424;
	--nt-text: #fff;
	--nt-muted: #aeb5c0;
	--nt-border: #3c3f43;
	--nt-shadow: 0 18px 45px rgb(0 0 0 / 22%);
}

.notylab-tool-page #primary,
.notylab-tool-page .site-main {
	max-width: none;
	padding: 0;
}

.nt-container {
	width: min(1200px, calc(100% - 40px));
	margin-inline: auto;
}

.nt-tool {
	overflow: clip;
	color: var(--nt-text);
	background: var(--nt-bg);
	font-size: 15px;
	line-height: 1.75;
}

.nt-tool *,
.nt-tool *::before,
.nt-tool *::after {
	box-sizing: border-box;
}

.nt-tool h1,
.nt-tool h2,
.nt-tool h3,
.nt-tool p {
	margin-top: 0;
}

.nt-tool h1,
.nt-tool h2,
.nt-tool h3 {
	color: var(--nt-text);
	line-height: 1.25;
}

.nt-tool a {
	text-decoration: none;
}

.nt-icon {
	display: inline-block;
	flex: 0 0 auto;
	vertical-align: middle;
}

.nt-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 50px;
	padding-block: 12px;
	overflow: hidden;
	color: var(--nt-muted);
	font-size: 13px;
	white-space: nowrap;
}

.nt-breadcrumbs a {
	color: var(--nt-accent-strong);
}

.nt-breadcrumbs strong {
	overflow: hidden;
	color: inherit;
	text-overflow: ellipsis;
}

.nt-hero {
	position: relative;
	background:
		radial-gradient(circle at 12% 20%, rgb(0 188 217 / 10%), transparent 32%),
		linear-gradient(110deg, color-mix(in srgb, var(--nt-bg-alt) 92%, #06333a), var(--nt-bg));
}

.nt-hero::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(34 199 230 / 4%), transparent 55%);
	content: "";
	pointer-events: none;
}

.nt-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
	min-height: 312px;
	padding-block: 48px;
}

.nt-hero__logo,
.nt-cta__logo {
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--nt-border);
	border-radius: 16px;
	background: var(--nt-card);
	box-shadow: var(--nt-shadow);
}

.nt-hero__logo {
	width: 88px;
	height: 88px;
	color: var(--nt-accent);
}

.nt-hero__logo img,
.nt-cta__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nt-badges,
.nt-pills,
.nt-downloads,
.nt-cta__actions,
.nt-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	align-items: center;
}

.nt-badge,
.nt-pill {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 11px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nt-card) 88%, var(--nt-border));
	color: var(--nt-muted);
	font-size: 12px;
	line-height: 1.35;
}

.nt-badge {
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
}

.nt-badge--free {
	background: #13a56f;
}

.nt-badge--freemium {
	background: #ffad12;
}

.nt-badge--paid {
	background: #5277ff;
}

.nt-hero h1 {
	margin: 12px 0 8px;
	font-size: clamp(32px, 4vw, 46px);
	letter-spacing: -.035em;
}

.nt-hero__description {
	max-width: 650px;
	margin-bottom: 16px;
	color: var(--nt-muted);
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.75;
}

.nt-pills a:hover {
	color: var(--nt-accent);
}

.nt-hero__actions {
	display: grid;
	justify-items: end;
	gap: 16px;
	max-width: 460px;
}

.nt-downloads {
	justify-content: flex-end;
}

.nt-download {
	display: flex;
	gap: 11px;
	align-items: center;
	min-width: 126px;
	min-height: 56px;
	padding: 9px 17px;
	border-radius: 12px;
	background: var(--nt-accent);
	box-shadow: 0 9px 22px rgb(0 190 220 / 18%);
	color: #fff;
	transition: transform .2s ease, background .2s ease;
}

.nt-download:hover {
	background: var(--nt-accent-strong);
	color: #fff;
	transform: translateY(-2px);
}

.nt-download span {
	display: grid;
	line-height: 1.15;
}

.nt-download strong {
	color: inherit;
	font-size: 14px;
}

.nt-download small {
	margin-top: 4px;
	font-size: 11px;
}

.nt-website {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 8px 15px;
	border: 1px solid color-mix(in srgb, var(--nt-accent) 45%, var(--nt-border));
	border-radius: 10px;
	color: var(--nt-accent);
	font-weight: 600;
}

.nt-nav {
	position: sticky;
	z-index: 50;
	top: var(--wp-admin--admin-bar--height, 0);
	border-block: 1px solid var(--nt-border);
	background: color-mix(in srgb, var(--nt-bg) 93%, transparent);
	backdrop-filter: blur(14px);
}

.nt-nav__inner {
	display: flex;
	gap: 38px;
	overflow-x: auto;
	scrollbar-width: none;
}

.nt-nav__inner a {
	position: relative;
	flex: 0 0 auto;
	padding: 16px 0;
	color: var(--nt-muted);
	font-size: 13px;
	font-weight: 600;
}

.nt-nav__inner a::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: var(--nt-accent);
	content: "";
	opacity: 0;
	transform: scaleX(.3);
	transition: .2s ease;
}

.nt-nav__inner a:hover,
.nt-nav__inner a.is-active {
	color: var(--nt-text);
}

.nt-nav__inner a.is-active::after {
	opacity: 1;
	transform: scaleX(1);
}

.nt-section {
	padding-block: 64px;
	background: var(--nt-bg);
	scroll-margin-top: 90px;
}

.nt-section--alt {
	background: var(--nt-bg-alt);
}

.nt-section--deep {
	background: var(--nt-bg-deep);
}

.nt-section__header {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 30px;
}

.nt-section__header > span {
	display: grid;
	flex: 0 0 40px;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgb(34 199 230 / 12%);
	color: var(--nt-accent);
}

.nt-section__header > .nt-section__icon--blue {
	background: rgb(55 124 255 / 12%);
	color: #397cff;
}

.nt-section__header > .nt-section__icon--green {
	background: rgb(5 190 130 / 12%);
	color: #08be82;
}

.nt-section__header h2 {
	margin: 3px 0 0;
	font-size: clamp(23px, 2.5vw, 29px);
	letter-spacing: -.025em;
}

.nt-section__header p {
	margin: 4px 0 0;
	color: var(--nt-muted);
}

.nt-prose {
	max-width: 1200px;
	color: var(--nt-muted);
}

.nt-prose > :first-child {
	margin-top: 0;
}

.nt-prose > :last-child {
	margin-bottom: 0;
}

.nt-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.nt-card {
	border: 1px solid var(--nt-border);
	border-radius: 16px;
	background: var(--nt-card);
	box-shadow: 0 1px 0 rgb(255 255 255 / 2%);
}

.nt-feature {
	min-height: 210px;
	padding: 24px;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nt-feature:hover,
.nt-related:hover,
.nt-tutorial:hover {
	border-color: color-mix(in srgb, var(--nt-accent) 55%, var(--nt-border));
	box-shadow: var(--nt-shadow);
	transform: translateY(-3px);
}

.nt-card__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 11px;
	background: rgb(34 199 230 / 12%);
	color: var(--nt-accent);
}

.nt-card h3 {
	margin-bottom: 10px;
	font-size: 16px;
}

.nt-card p,
.nt-card li {
	color: var(--nt-muted);
	font-size: 14px;
}

.nt-feature ul {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0 0 0 18px;
}

.nt-feature li::marker {
	color: var(--nt-accent);
}

.nt-usecase-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.nt-usecase {
	display: flex;
	gap: 16px;
	padding: 22px 24px;
}

.nt-usecase__number {
	display: grid;
	flex: 0 0 38px;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--nt-accent);
	color: #fff;
	font-weight: 700;
}

.nt-usecase h3 {
	margin: 3px 0 5px;
}

.nt-usecase p {
	margin-bottom: 0;
}

.nt-guide-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.nt-guide {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 13px;
	align-items: center;
	padding: 16px 20px;
	border: 1px solid var(--nt-border);
	border-radius: 14px;
	background: var(--nt-card);
	color: var(--nt-text);
	transition: border-color .2s ease, transform .2s ease;
}

.nt-guide:hover {
	border-color: #397cff;
	color: var(--nt-text);
	transform: translateX(3px);
}

.nt-guide > span {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: rgb(55 124 255 / 12%);
	color: #397cff;
}

.nt-guide b {
	color: var(--nt-muted);
	font-size: 24px;
}

.nt-tutorial-grid,
.nt-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.nt-tutorial {
	overflow: hidden;
	transition: .2s ease;
}

.nt-tutorial__image {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: color-mix(in srgb, var(--nt-card) 75%, var(--nt-border));
	color: var(--nt-muted);
}

.nt-tutorial__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.nt-tutorial:hover .nt-tutorial__image img {
	transform: scale(1.035);
}

.nt-tutorial__body {
	padding: 22px;
}

.nt-tutorial__body h3 a {
	color: var(--nt-text);
}

.nt-more {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	color: var(--nt-accent);
	font-size: 13px;
	font-weight: 700;
}

.nt-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.nt-gallery > a {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--nt-border);
	border-radius: 15px;
	background: var(--nt-card);
}

.nt-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.nt-gallery a > span {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgb(0 0 0 / 48%);
	color: #fff;
	opacity: 0;
	transition: opacity .2s ease;
}

.nt-gallery a:hover img {
	transform: scale(1.035);
}

.nt-gallery a:hover > span {
	opacity: 1;
}

.nt-cta {
	padding-block: 64px;
	background:
		radial-gradient(circle at 7% 50%, rgb(0 190 220 / 9%), transparent 34%),
		var(--nt-bg-deep);
	scroll-margin-top: 90px;
}

.nt-cta__box {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: center;
	padding: 40px;
	border: 1px solid var(--nt-border);
	border-radius: 22px;
	background: var(--nt-card);
	box-shadow: var(--nt-shadow);
}

.nt-cta h2 {
	margin-bottom: 10px;
	font-size: clamp(26px, 3vw, 34px);
}

.nt-cta p {
	max-width: 650px;
	color: var(--nt-muted);
	font-size: 16px;
}

.nt-cta__button {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 12px 22px;
	border-radius: 12px;
	background: var(--nt-accent);
	color: #fff;
	font-weight: 700;
}

.nt-cta__button:hover {
	background: var(--nt-accent-strong);
	color: #fff;
}

.nt-trust {
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	color: var(--nt-muted);
	font-size: 12px;
}

.nt-trust li {
	display: inline-flex;
	gap: 5px;
	align-items: center;
}

.nt-trust svg {
	color: #08be82;
}

.nt-cta__logo {
	width: 126px;
	height: 126px;
}

.nt-related {
	display: flex;
	gap: 15px;
	align-items: center;
	padding: 18px;
	color: var(--nt-text);
	transition: .2s ease;
}

.nt-related img {
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	border-radius: 12px;
	object-fit: contain;
}

.nt-related span {
	display: grid;
	min-width: 0;
}

.nt-related small {
	overflow: hidden;
	color: var(--nt-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nt-lightbox {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: none;
	place-items: center;
	padding: 40px 80px;
	background: rgb(0 0 0 / 92%);
}

.nt-lightbox.is-open {
	display: grid;
}

.nt-lightbox__image {
	max-width: min(1400px, 100%);
	max-height: calc(100vh - 80px);
	border-radius: 10px;
	object-fit: contain;
}

.nt-lightbox button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 10%);
	color: #fff;
	font-size: 29px;
	cursor: pointer;
}

.nt-lightbox__close {
	top: 22px;
	right: 22px;
}

.nt-lightbox__prev {
	left: 22px;
}

.nt-lightbox__next {
	right: 22px;
}

.nt-lightbox__count {
	position: absolute;
	bottom: 18px;
	color: #fff;
	font-size: 13px;
}

@media (max-width: 1000px) {
	.nt-hero__inner {
		grid-template-columns: 78px 1fr;
	}

	.nt-hero__logo {
		width: 78px;
		height: 78px;
	}

	.nt-hero__actions {
		grid-column: 1 / -1;
		justify-items: start;
		max-width: none;
	}

	.nt-downloads {
		justify-content: flex-start;
	}

	.nt-feature-grid,
	.nt-usecase-grid,
	.nt-tutorial-grid,
	.nt-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.nt-container {
		width: min(100% - 28px, 1200px);
	}

	.nt-hero__inner {
		grid-template-columns: 64px 1fr;
		gap: 18px;
		min-height: 0;
		padding-block: 34px;
	}

	.nt-hero__logo {
		width: 64px;
		height: 64px;
		border-radius: 13px;
	}

	.nt-hero h1 {
		font-size: 30px;
	}

	.nt-hero__description {
		grid-column: 1 / -1;
		font-size: 15px;
	}

	.nt-download {
		flex: 1 1 135px;
	}

	.nt-nav__inner {
		gap: 25px;
	}

	.nt-section,
	.nt-cta {
		padding-block: 46px;
	}

	.nt-feature-grid,
	.nt-usecase-grid,
	.nt-guide-grid,
	.nt-tutorial-grid,
	.nt-related-grid,
	.nt-gallery {
		grid-template-columns: 1fr;
	}

	.nt-cta__box {
		grid-template-columns: 1fr;
		padding: 28px 22px;
	}

	.nt-cta__logo {
		display: none;
	}

	.nt-lightbox {
		padding: 55px 15px;
	}

	.nt-lightbox__prev {
		left: 8px;
	}

	.nt-lightbox__next {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nt-tool *,
	.nt-tool *::before,
	.nt-tool *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
