:root {
	--pb-primary: #ffade0;
	--pb-on-primary: #5c003f;
	--pb-primary-container: #70104f;
	--pb-on-primary-container: #ffd8ec;
	--pb-bg: #151217;
	--pb-surface: #201b21;
	--pb-surface-high: #2b242c;
	--pb-surface-highest: #382f38;
	--pb-border: #4f434c;
	--pb-outline: #9a8995;
	--pb-text: #f4edf3;
	--pb-muted: #cabfc8;
	--pb-brand: #c31987;
	--pb-brand-bright: #ef54b6;
	--pb-danger: #ffb4ab;
	--pb-warning: #ffcc80;
	--pb-success: #8bd5a2;
	--pb-container: 1240px;
	--pb-radius: 24px;
	--pb-radius-lg: 32px;
	--pb-shadow-1: 0 2px 8px rgb(0 0 0 / 0.24);
	--pb-shadow-3: 0 18px 60px rgb(0 0 0 / 0.32);
	color-scheme: dark;
}

:root[data-pb-theme="light"] {
	--pb-primary: #9e006e;
	--pb-on-primary: #ffffff;
	--pb-primary-container: #ffd8ec;
	--pb-on-primary-container: #3d0029;
	--pb-bg: #fff8fc;
	--pb-surface: #faeef5;
	--pb-surface-high: #f3e3ec;
	--pb-surface-highest: #ead7e2;
	--pb-border: #dac5d1;
	--pb-outline: #8b747f;
	--pb-text: #24181f;
	--pb-muted: #6f5a67;
	--pb-brand-bright: #a00072;
	--pb-shadow-1: 0 2px 8px rgb(80 30 60 / 0.12);
	--pb-shadow-3: 0 18px 60px rgb(80 30 60 / 0.16);
	color-scheme: light;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--pb-text);
	background: var(--pb-bg);
	transition: color 240ms ease, background-color 240ms ease;
}

button,
input {
	font: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--pb-primary);
	text-decoration: none;
}

a:hover {
	color: var(--pb-brand-bright);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.pb-skip-link {
	position: fixed;
	left: -9999px;
	top: 1rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	background: var(--pb-primary);
	color: var(--pb-on-primary);
}

.pb-skip-link:focus {
	left: 1rem;
}

.pb-container {
	width: min(100%, calc(var(--pb-container) + 2.5rem));
	margin: 0 auto;
	padding-inline: 1.25rem;
}

.pb-main {
	min-height: 68vh;
}

.home .pb-main {
	min-height: 100vh;
}

/* Material 3 top app bar */
.pb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid color-mix(in srgb, var(--pb-outline) 24%, transparent);
	background: color-mix(in srgb, var(--pb-bg) 86%, transparent);
	backdrop-filter: blur(22px);
}

.home .pb-header {
	position: absolute;
	inset: 0 0 auto;
	border-bottom: 0;
	color: #fff;
	background: linear-gradient(180deg, rgb(8 3 8 / 0.66), transparent);
	backdrop-filter: none;
}

.home .pb-header .pb-menu a,
.home .pb-header .pb-theme-toggle,
.home .pb-header .pb-header__toggle {
	color: #fff;
}

:root[data-pb-theme="light"] .home .pb-header {
	background: linear-gradient(180deg, rgb(255 255 255 / 0.84), transparent);
}

:root[data-pb-theme="light"] .home .pb-header .pb-menu a,
:root[data-pb-theme="light"] .home .pb-header .pb-theme-toggle,
:root[data-pb-theme="light"] .home .pb-header .pb-header__toggle {
	color: #24181f;
}

.pb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}

.pb-header__brand {
	flex: 0 0 auto;
}

.pb-logo,
.custom-logo-link {
	display: flex;
	align-items: center;
}

.pb-logo img,
.custom-logo {
	width: 188px;
	max-height: 46px;
	object-fit: contain;
}

.pb-header__nav-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
}

.pb-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-menu a {
	display: block;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	color: var(--pb-muted);
	font-size: 0.9rem;
	font-weight: 600;
	transition: color 180ms ease, background-color 180ms ease;
}

.pb-menu a:hover,
.pb-menu .current-menu-item a {
	color: var(--pb-text);
	background: var(--pb-surface-high);
}

.pb-theme-toggle,
.pb-header__toggle {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--pb-text);
	background: transparent;
	cursor: pointer;
}

.pb-theme-toggle:hover,
.pb-header__toggle:hover {
	background: var(--pb-surface-high);
}

.pb-theme-toggle__moon,
:root[data-pb-theme="light"] .pb-theme-toggle__sun {
	display: none;
}

:root[data-pb-theme="light"] .pb-theme-toggle__moon {
	display: inline;
}

.pb-header__toggle {
	display: none;
}

.pb-header__toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 2px auto;
	background: currentColor;
}

/* Hero */
.pb-hero {
	padding: 1.5rem 0 5.5rem;
}

.home .pb-hero {
	padding: 0;
}

.home .pb-hero > .pb-container {
	position: relative;
	width: 100%;
	max-width: none;
	padding: 0;
}

.pb-hero__media {
	position: relative;
	min-height: min(720px, 76vh);
	overflow: hidden;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow-3);
	isolation: isolate;
}

.home .pb-hero__media {
	min-height: 100svh;
	height: 100svh;
	border-radius: 0;
	box-shadow: none;
}

.pb-hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity 450ms ease, transform 800ms ease;
}

.pb-hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
}

.pb-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgb(10 5 10 / 0.8) 0%, rgb(10 5 10 / 0.4) 44%, transparent 74%),
		linear-gradient(0deg, rgb(10 5 10 / 0.42), transparent 48%);
}

.pb-hero__content {
	position: absolute;
	z-index: 2;
	left: clamp(1.75rem, 6vw, 4.75rem);
	top: 50%;
	width: min(620px, calc(100% - 3.5rem));
	transform: translateY(-42%);
}

.home .pb-hero__content {
	top: 32%;
	transform: translateY(-50%);
}

.pb-eyebrow {
	display: block;
	margin-bottom: 1rem;
	color: var(--pb-brand-bright);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.pb-hero__title {
	max-width: 10ch;
	margin: 0;
	color: #fff;
	font-size: clamp(3rem, 6vw, 5.6rem);
	font-weight: 720;
	line-height: 0.96;
	letter-spacing: -0.065em;
}

.pb-hero__desc {
	max-width: 560px;
	margin: 1.25rem 0 0;
	color: #eadfe6;
	font-size: clamp(1rem, 2vw, 1.2rem);
	line-height: 1.55;
}

.pb-hero__dots {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 1.75rem;
	display: flex;
	gap: 0.625rem;
	padding: 0.5rem;
	border-radius: 999px;
	background: rgb(16 8 14 / 0.48);
	backdrop-filter: blur(12px);
	transform: translateX(-50%);
}

.pb-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.44);
	cursor: pointer;
	transition: width 200ms ease, background-color 200ms ease;
}

.pb-hero__dot.is-active {
	width: 34px;
	background: var(--pb-brand-bright);
}

.pb-hero__search-panel {
	position: relative;
	z-index: 4;
	width: min(920px, calc(100% - 3rem));
	margin: -3rem auto 0;
	padding: 1.25rem;
	border-radius: 28px;
	background: var(--pb-surface-high);
	box-shadow: var(--pb-shadow-3);
}

.home .pb-hero__search-panel {
	position: absolute;
	z-index: 5;
	top: 58%;
	left: 50%;
	width: min(920px, calc(100% - 3rem));
	margin: 0;
	transform: translate(-50%, -50%);
	background: color-mix(in srgb, var(--pb-surface-high) 88%, transparent);
	backdrop-filter: blur(20px);
}

/* Search field */
.pb-search {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 58px;
	padding: 0.5rem 0.625rem 0.5rem 1.1rem;
	border: 1px solid color-mix(in srgb, var(--pb-outline) 45%, transparent);
	border-radius: 20px;
	background: var(--pb-surface);
}

.pb-search:focus-within {
	border-color: var(--pb-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pb-primary) 18%, transparent);
}

.pb-search__label {
	display: none;
}

.pb-search__icon {
	flex: 0 0 auto;
	color: var(--pb-primary);
	font-size: 2rem;
	line-height: 1;
	transform: rotate(-15deg);
}

.pb-search__input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	color: var(--pb-text);
	background: transparent;
}

.pb-search__input::placeholder {
	color: var(--pb-muted);
}

.pb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.2rem;
	border: 0;
	border-radius: 999px;
	color: var(--pb-text);
	background: var(--pb-surface-highest);
	font-weight: 700;
	cursor: pointer;
}

.pb-button--primary {
	color: var(--pb-on-primary);
	background: var(--pb-primary);
	box-shadow: var(--pb-shadow-1);
}

.pb-button:hover {
	color: var(--pb-on-primary);
	background: color-mix(in srgb, var(--pb-primary) 88%, white);
}

.pb-quick-links,
.pb-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 0.875rem;
}

.pb-chip,
.pb-category {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.4rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--pb-outline) 48%, transparent);
	border-radius: 10px;
	color: var(--pb-muted);
	background: transparent;
	font-size: 0.875rem;
	font-weight: 600;
}

.pb-chip:hover,
.pb-category:hover {
	border-color: var(--pb-primary);
	color: var(--pb-text);
	background: color-mix(in srgb, var(--pb-primary) 10%, transparent);
}

/* Sections and cards */
.pb-section {
	padding: 5rem 0;
}

.pb-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
}

.pb-section-title,
.pb-page-title {
	margin: 0;
	font-size: clamp(2.1rem, 4vw, 3.6rem);
	font-weight: 680;
	line-height: 1.05;
	letter-spacing: -0.05em;
}

.pb-section-link {
	flex: 0 0 auto;
	font-weight: 700;
}

.pb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.pb-tool-card,
.pb-content-card {
	height: 100%;
	overflow: hidden;
	border: 0;
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.pb-tool-card:hover,
.pb-content-card:hover {
	background: var(--pb-surface-high);
	box-shadow: var(--pb-shadow-1);
	transform: translateY(-4px);
}

.pb-tool-card__link,
.pb-content-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.4rem;
	color: inherit;
}

.pb-tool-card__top {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1rem;
}

.pb-tool-card__logo,
.pb-tool-card__placeholder {
	width: 54px;
	height: 54px;
	flex: 0 0 auto;
	border-radius: 17px;
}

.pb-tool-card__logo {
	object-fit: cover;
}

.pb-tool-card__placeholder {
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(145deg, #a00072, #ed50b3);
	font-size: 1.35rem;
	font-weight: 800;
}

.pb-tool-card__title,
.pb-content-card__title {
	margin: 0 0 0.3rem;
	color: var(--pb-text);
	font-size: 1.2rem;
	line-height: 1.3;
}

.pb-tool-card__type {
	color: var(--pb-brand-bright);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pb-tool-card__desc,
.pb-content-card__desc {
	flex: 1;
	margin: 0 0 1rem;
	color: var(--pb-muted);
	font-size: 0.94rem;
	line-height: 1.55;
}

.pb-tool-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
}

.pb-tool-card__meta span,
.pb-badge {
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	color: var(--pb-muted);
	background: var(--pb-surface-highest);
	font-size: 0.78rem;
}

.pb-content-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.pb-content-card__body {
	padding: 1.25rem;
}

.pb-empty {
	padding: 3rem;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-surface);
	text-align: center;
}

.pb-empty h2 {
	margin: 0;
}

.pb-empty p {
	margin: 0.75rem 0 0;
	color: var(--pb-muted);
}

.pb-section--collections {
	background: var(--pb-surface);
}

.pb-collections-layout {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(3rem, 8vw, 7rem);
}

.pb-collection-list {
	display: flex;
	flex-direction: column;
}

.pb-collection-list a {
	display: grid;
	grid-template-columns: 46px 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 1.4rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--pb-outline) 30%, transparent);
	color: var(--pb-text);
}

.pb-collection-list a:hover {
	color: var(--pb-primary);
}

.pb-collection-list span {
	color: var(--pb-muted);
	font-size: 0.82rem;
}

/* Archives and single content */
.pb-page,
.pb-archive,
.pb-single-tool {
	padding: 3rem 0 5rem;
}

.pb-page-header {
	margin-bottom: 2.5rem;
}

.pb-page-desc,
.pb-post__date {
	color: var(--pb-muted);
}

.pb-breadcrumbs {
	margin-bottom: 1.5rem;
}

.pb-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--pb-muted);
	font-size: 0.84rem;
}

.pb-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.4rem;
	color: var(--pb-outline);
}

.pb-breadcrumbs a {
	color: var(--pb-muted);
}

.pb-cover__image {
	width: 100%;
	aspect-ratio: 1200 / 630;
	object-fit: cover;
	border-radius: var(--pb-radius-lg);
}

.pb-tool-hero {
	padding: 1.75rem;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-surface);
}

.pb-tool-hero__top {
	display: flex;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.pb-tool-hero__logo,
.pb-tool-hero__placeholder {
	width: 76px;
	height: 76px;
	flex: 0 0 auto;
	border-radius: 22px;
}

.pb-tool-hero__logo {
	object-fit: cover;
}

.pb-tool-hero__placeholder {
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(145deg, #a00072, #ed50b3);
	font-size: 1.75rem;
	font-weight: 800;
}

.pb-tool-hero__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.pb-tool-hero__desc {
	margin: 0;
	color: var(--pb-muted);
}

.pb-tool-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 2rem;
	margin: 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--pb-border);
}

.pb-tool-meta__row {
	display: contents;
}

.pb-tool-meta__label,
.pb-tool-meta__value {
	margin: 0;
}

.pb-tool-meta__label {
	color: var(--pb-muted);
}

.pb-tool-meta__value {
	font-weight: 700;
}

.pb-content {
	max-width: 780px;
	margin: 3rem auto 0;
	font-size: 1.08rem;
	line-height: 1.78;
}

.pb-content h2,
.pb-content h3,
.pb-content h4 {
	color: var(--pb-text);
	line-height: 1.25;
}

.pb-content h2 {
	margin: 2.5rem 0 1rem;
	font-size: 1.8rem;
}

.pb-content h3 {
	margin: 2rem 0 0.8rem;
	font-size: 1.4rem;
}

.pb-content img,
.pb-screenshot img {
	border-radius: var(--pb-radius);
}

.pb-content blockquote {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--pb-primary);
	border-radius: 0 18px 18px 0;
	color: var(--pb-muted);
	background: var(--pb-surface);
}

.pb-content table {
	width: 100%;
	border-collapse: collapse;
}

.pb-content th,
.pb-content td {
	padding: 0.8rem;
	border: 1px solid var(--pb-border);
	text-align: left;
}

.pb-alternatives {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--pb-border);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	border-radius: 999px;
	color: var(--pb-text);
	background: var(--pb-surface);
}

.page-numbers.current,
.page-numbers:hover {
	color: var(--pb-on-primary);
	background: var(--pb-primary);
}

.pb-badge--danger { color: var(--pb-danger); }
.pb-badge--warning { color: var(--pb-warning); }
.pb-badge--success { color: var(--pb-success); }

/* Footer */
.pb-footer {
	border-top: 1px solid color-mix(in srgb, var(--pb-outline) 30%, transparent);
}

.pb-footer__inner {
	display: grid;
	grid-template-columns: 180px 1fr auto;
	align-items: center;
	gap: 1.5rem;
	padding-block: 3rem;
	color: var(--pb-muted);
}

.pb-footer__logo img {
	width: 180px;
}

.pb-footer p {
	margin: 0;
}

@media (max-width: 900px) {
	.pb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pb-collections-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.pb-header__inner {
		min-height: 66px;
	}

	.pb-logo img,
	.custom-logo {
		width: 160px;
	}

	.pb-header__toggle {
		display: block;
		margin-left: auto;
	}

	.pb-header__nav-wrap {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 1rem;
		right: 1rem;
		display: none;
		padding: 1rem;
		border-radius: var(--pb-radius);
		background: var(--pb-surface-high);
		box-shadow: var(--pb-shadow-3);
	}

	.pb-header__nav-wrap.is-open {
		display: flex;
	}

	.pb-menu {
		flex-direction: column;
	}

	.pb-menu a {
		padding: 0.75rem 1rem;
	}

	.pb-hero {
		padding: 0.75rem 0 4rem;
	}

	.home .pb-hero {
		padding: 0;
	}

	.pb-hero__media {
		min-height: 610px;
		border-radius: 24px;
	}

	.home .pb-hero__media {
		min-height: 100svh;
		height: 100svh;
		border-radius: 0;
	}

	.pb-hero__scrim {
		background: linear-gradient(0deg, rgb(10 5 10 / 0.78), rgb(10 5 10 / 0.08) 72%);
	}

	.pb-hero__content {
		left: 1.6rem;
		right: 1.6rem;
		top: auto;
		bottom: 5rem;
		width: auto;
		transform: none;
	}

	.home .pb-hero__content {
		top: 19%;
		bottom: auto;
		transform: none;
	}

	.pb-hero__title {
		font-size: clamp(2.8rem, 13vw, 4.3rem);
	}

	.pb-hero__search-panel {
		width: calc(100% - 1.5rem);
		margin-top: 0.75rem;
		padding: 0.75rem;
		border-radius: 22px;
	}

	.home .pb-hero__search-panel {
		top: auto;
		bottom: 4.5rem;
		left: 50%;
		width: calc(100% - 1.5rem);
		margin: 0;
		transform: translateX(-50%);
	}

	.pb-search__button {
		display: none;
	}

	.pb-quick-links {
		flex-wrap: nowrap;
		overflow-x: auto;
	}

	.pb-chip {
		flex: 0 0 auto;
	}

	.pb-section {
		padding: 3.75rem 0;
	}

	.pb-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.pb-grid {
		grid-template-columns: 1fr;
	}

	.pb-tool-meta {
		grid-template-columns: 1fr;
	}

	.pb-footer__inner {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
