/* 1B.5 visual contract. Layout/scale only. No mockup copy. */

html {
	overflow-x: clip;
}

body {
	background: var(--yepx-color-bg-page);
	padding-top: 0;
	overflow-x: clip;
	max-width: 100%;
}

.admin-bar body {
	padding-top: 0;
}

.yepx-branding img,
.yepx-site-branding img,
.yepx-logo {
	max-width: min(170px, 100%);
}

.yepx-btn,
.yepx .wp-block-button__link,
.yepx-header__cta .yepx-btn,
.yepx-header__cta .yepx-btn--header,
.yepx-header__cta .yepx-btn--compact,
.yepx-slider__actions .yepx-btn,
.yepx-section--cta .yepx-btn,
.yepx-px__copy .yepx-btn,
.yepx-showcase .yepx-btn,
.yepx-drawer__cta .yepx-btn,
.yepx-px__tabs [role="tab"],
.yepx-integrations__badges a,
.yepx-integrations__badges span {
	border-radius: 9999px !important;
}

.yepx-btn,
.yepx .wp-block-button__link {
	min-height: 52px;
	height: 52px;
	padding: 0 1.85rem;
	font-weight: 700;
	gap: 0.55rem;
	box-shadow: var(--yepx-shadow-brand);
}

.yepx-btn:hover,
.yepx-btn:focus {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px rgba(6, 186, 243, 0.28);
}

.yepx-btn:active {
	transform: none;
	box-shadow: 0 6px 16px rgba(6, 186, 243, 0.16);
}

.yepx-btn:focus-visible {
	outline: 3px solid var(--yepx-color-focus);
	outline-offset: 3px;
}

.yepx-btn--compact,
.yepx-btn--header {
	min-height: 48px;
	height: 48px;
	padding: 0 1.35rem;
}

.yepx-btn--ghost,
.yepx-btn--soft,
.yepx-btn--secondary {
	border-radius: 9999px !important;
}

.yepx-nav--primary .yepx-mega {
	top: calc(100% + 12px);
	width: min(1160px, calc(100vw - 48px));
	max-width: 1160px;
	padding: 1.7rem 1.85rem 1.25rem;
	border-radius: 26px;
	box-shadow: var(--yepx-shadow-panel), var(--yepx-shadow-floating);
	border: 1px solid var(--yepx-color-border-soft);
}

.yepx-nav-overlay {
	background: rgba(11, 44, 61, 0.42);
	transition: opacity 280ms var(--yepx-ease);
}

.yepx-drawer {
	width: min(88vw, 380px);
	max-width: 380px;
	border-radius: 28px 0 0 28px;
	transition: transform 280ms var(--yepx-ease), visibility 280ms var(--yepx-ease);
	box-shadow: var(--yepx-shadow-panel);
}

.yepx-drawer__brand .yepx-logo {
	max-height: 32px;
	max-width: 148px;
}

.yepx-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.yepx-hero-stage,
.yepx-slider {
	background:
		radial-gradient(circle at 78% 22%, rgba(6, 186, 243, 0.18), transparent 34%),
		radial-gradient(circle at 12% 88%, rgba(6, 186, 243, 0.06), transparent 28%),
		var(--yepx-gradient-hero);
}

.yepx-hero-stage .yepx-slider__copy,
.yepx-hero-stage .yepx-slider__desc {
	font-size: 1.0625rem;
	line-height: 1.65;
	max-width: 38rem;
}

.yepx-slider__img,
.yepx-slider__media img,
.yepx-hero-stage .yepx-slider__media img {
	border-radius: 24px;
	box-shadow: var(--yepx-shadow-panel);
	border: 8px solid #fff;
	background: #fff;
}

.yepx-hero-benefits li:nth-child(n + 4) {
	display: none;
}

.yepx-section {
	padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.yepx-types,
.yepx-trust,
.yepx-px,
.yepx-cards--spotlight,
.yepx-feature-groups,
.yepx-integrations,
.yepx-quotes,
.yepx-faq,
.yepx-blog {
	background: var(--yepx-color-bg-section);
}

.yepx-showcase,
.yepx-process,
.yepx-intro-video {
	background:
		radial-gradient(circle at 50% 0, rgba(6, 186, 243, 0.08), transparent 42%),
		var(--yepx-color-bg-alt);
}

.yepx-seo {
	background:
		radial-gradient(circle at 18% 0, rgba(6, 186, 243, 0.2), transparent 46%),
		#e7f6fb;
}

.yepx-card,
.yepx-type-card,
.yepx-card--spotlight,
.yepx-guide-card,
.yepx-blog-card a,
.yepx-cards--quotes li {
	border-radius: 22px;
	background: var(--yepx-color-surface);
	border: 1px solid var(--yepx-color-border-soft);
	box-shadow: var(--yepx-shadow-card);
	padding: clamp(1.25rem, 2vw, 1.75rem);
	transition: transform var(--yepx-duration) var(--yepx-ease), box-shadow var(--yepx-duration) var(--yepx-ease);
}

.yepx-card:hover,
.yepx-type-card:hover,
.yepx-card--spotlight:hover,
.yepx-guide-card:hover,
.yepx-blog-card a:hover {
	transform: translateY(-2px);
	box-shadow: var(--yepx-shadow-hover);
}

.yepx-card:focus-within,
.yepx-type-card:focus-within,
.yepx-card--spotlight:focus-within,
.yepx-guide-card:focus-within {
	outline: 3px solid var(--yepx-color-focus);
	outline-offset: 3px;
}

.yepx-icon-well {
	width: 52px;
	height: 52px;
	border-radius: 16px;
}

.yepx-type-card {
	padding: 1.25rem 1.35rem;
}

.yepx-px__tabs {
	gap: 0.5rem;
}

.yepx-px__tabs [role="tab"] {
	min-height: 48px;
	height: 48px;
	padding: 0 1.2rem;
	border-radius: 9999px !important;
	font-weight: 700;
}

.yepx-px__panel,
.yepx-showcase__panel {
	border-radius: 28px;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	background: var(--yepx-color-surface);
	box-shadow: var(--yepx-shadow-panel);
	border: 1px solid var(--yepx-color-border-soft);
}

.yepx-px__stage {
	transition: height 260ms var(--yepx-ease);
}

.yepx-px__panel.is-leave,
.yepx-px__panel.is-enter {
	will-change: opacity, transform;
}

.yepx-showcase {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	background: transparent;
}

.yepx-showcase > .yepx-eyebrow,
.yepx-showcase > h2,
.yepx-showcase > .wp-block-heading {
	grid-column: 1 / -1;
}

.yepx-video__stage,
.yepx-video__poster,
.yepx-video video {
	border-radius: 26px;
}

.yepx-video__play {
	width: 64px;
	height: 64px;
	min-width: 64px;
	border-radius: 9999px !important;
}

.yepx-integrations__badges,
.yepx-refs__track {
	gap: 0.65rem;
}

.yepx-integrations__badges a,
.yepx-integrations__badges span,
.yepx-refs__track li {
	min-height: 44px;
	padding: 0.4rem 0.85rem;
	border-radius: 9999px;
	border: 1px solid var(--yepx-color-border-soft);
	background: var(--yepx-color-surface);
	box-shadow: none;
}

.yepx-cards--process {
	position: relative;
}

.yepx-cards--process li {
	text-align: center;
}

.yepx-process .yepx-icon-well,
.yepx-cards--process .yepx-icon-well {
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	margin-inline: auto;
}

.yepx-faq {
	background: var(--yepx-color-bg-section);
}

.yepx-faq .yepx-wrap > *,
.yepx-faq__list,
.yepx-faq .wp-block-details,
.yepx-faq details {
	max-width: 56rem;
	margin-inline: auto;
}

.yepx-faq details {
	background: var(--yepx-color-surface);
	border: 1px solid var(--yepx-color-border-soft);
	border-radius: 22px;
	padding: 0.35rem 1.15rem;
	box-shadow: var(--yepx-shadow-card);
	margin-bottom: 0.75rem;
}

.yepx-faq summary {
	min-height: 48px;
	font-weight: 700;
}

.yepx-section--cta {
	border-radius: 30px;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
	background: var(--yepx-gradient-cta);
	box-shadow: var(--yepx-shadow-panel);
}

.yepx-footer {
	padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
	.yepx-types__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yepx-section {
		padding-block: clamp(4.5rem, 7vw, 5.5rem);
	}
}

@media (min-width: 1025px) {
	.yepx-slider.is-desktop .yepx-slider__slide,
	.yepx-slider-noscript .yepx-slider__slide {
		display: grid;
		grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
		align-items: center;
		gap: 2rem;
	}

	.yepx-types__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.yepx-hero-benefits li:nth-child(n + 4) {
		display: inline-flex;
	}

	.yepx-showcase {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yepx-showcase > .yepx-eyebrow,
	.yepx-showcase > h2,
	.yepx-showcase > .wp-block-heading {
		grid-column: 1 / -1;
	}

	.yepx-showcase__panel,
	.yepx-showcase__panel:nth-child(even) {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 1.35rem;
	}

	.yepx-showcase__panel h3 {
		font-size: 1.2rem;
	}

	.yepx-px__panel {
		grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
	}

	.yepx-section {
		padding-block: clamp(5.5rem, 8vw, 7rem);
	}
}

@media (max-width: 1279px) {
	body {
		padding-top: 0;
	}

	.yepx-nav-toggle {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}

	.yepx-nav--primary > ul > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		width: 100%;
	}

	.yepx-nav--primary > ul > li > a {
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		gap: 0.75rem;
		min-height: 48px;
		width: calc(100% - 48px);
	}

	.yepx-nav--primary > ul > li > a .yepx-icon-well {
		width: 40px;
		height: 40px;
		flex: 0 0 40px;
		border-radius: 12px;
	}

	.yepx-nav--primary > ul > li > .yepx-submenu-toggle {
		margin-inline-start: auto;
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.yepx-drawer__chevron {
		display: block;
		width: 18px;
		height: 18px;
		transition: transform var(--yepx-duration) var(--yepx-ease);
	}

	.yepx-submenu-toggle[aria-expanded="true"] .yepx-drawer__chevron {
		transform: rotate(180deg);
	}

	.yepx-drawer:not(.is-open) {
		display: flex !important;
		flex-direction: column;
		position: fixed;
		width: min(88vw, 380px);
		max-width: 380px;
		padding: calc(1rem + env(safe-area-inset-top)) 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
		transform: translateX(100%);
		visibility: hidden;
		pointer-events: none;
		contain: layout paint;
	}

	.yepx-drawer.is-open {
		display: flex !important;
		flex-direction: column;
		width: min(88vw, 380px);
		max-width: 380px;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 28px 0 0 28px;
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
	}

	.yepx-btn,
	.yepx .wp-block-button__link {
		min-height: 48px;
	}

	.yepx-section {
		padding-block: clamp(3.5rem, 8vw, 4.5rem);
	}

	.yepx-types__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yepx-showcase,
	.yepx-cards--spotlight,
	.yepx-cards--process,
	.yepx-guide-grid,
	.yepx-blog__list {
		grid-template-columns: 1fr;
	}

	.yepx-hero-stage .yepx-slider__title,
	.yepx-hero-stage h1 {
		font-size: clamp(1.75rem, 7vw, 2.15rem);
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.yepx-types__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yepx-cards--spotlight,
	.yepx-guide-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 430px) {
	.yepx-header__cta {
		display: none;
	}

	.yepx-drawer__cta {
		display: block;
	}

	.yepx-float-card:nth-child(n + 4) {
		display: none;
	}
}

@media (max-width: 320px) {
	.yepx-types__list,
	.yepx-cards--spotlight,
	.yepx-guide-grid,
	.yepx-blog__list {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 1280px) {
	.yepx-showcase {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		align-items: stretch;
	}

	.yepx-showcase > .yepx-eyebrow,
	.yepx-showcase > h2,
	.yepx-showcase > .wp-block-heading {
		grid-column: 1 / -1;
	}

	.yepx-showcase__panel {
		min-width: 0;
		padding: 1.1rem 1.15rem;
	}

	.yepx-showcase__panel h3 {
		font-size: 1.05rem;
		line-height: 1.3;
	}

	.yepx-showcase__media img,
	.yepx-showcase__media svg,
	.yepx-diagram__svg {
		width: 100%;
		max-width: 100%;
		height: auto;
		max-height: 148px;
		object-fit: cover;
	}

	.yepx-drawer__head,
	.yepx-drawer__brand,
	.yepx-drawer__topbar,
	.yepx-drawer__cta {
		display: none !important;
	}

	.yepx-header__cta .yepx-btn,
	.yepx-header__cta .yepx-btn--header,
	.yepx-header__cta .yepx-btn--compact {
		min-height: 48px;
		height: 48px;
		padding-inline: 1.35rem;
	}

	.yepx-drawer {
		width: auto;
		max-width: none;
		border-radius: 0;
		box-shadow: none;
		transition: none;
	}

	.yepx-cards--quotes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.yepx-cards--process {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.yepx-blog__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.yepx-nav--primary > ul > li > a .yepx-icon-well,
	.yepx-drawer__chevron {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yepx-header,
	.yepx-drawer,
	.yepx-btn,
	.yepx-card,
	.yepx-px__panel,
	.yepx-nav-overlay,
	.yepx-mega,
	.yepx-reveal {
		transition-duration: 0.01ms !important;
		animation: none !important;
	}
}
