/* =========================================================
   ZenPayoff — main.css
   Design tokens, font-face declarations, reset, container,
   buttons, header, and mobile nav. Loads on every page.
   ========================================================= */

/* -------------------------------------------------
   1. Design tokens
   ------------------------------------------------- */
:root {
	/* Primary colors */
	--zp-color-primary: #0052FF;
	--zp-color-primary-light: #77A3FF;
	--zp-color-primary-lighter: #8AB0FF;
	--zp-color-primary-mid: #0073FF;
	--zp-color-primary-dark: #0036A9;
	--zp-color-black: #000000;

	/* Secondary colors */
	--zp-color-mint: #F3FDF8;
	--zp-color-green: #22C55E;
	--zp-color-yellow: #F2BF4C;
	--zp-color-pale-blue: #BDDCF3;
	--zp-color-off-white: #F7F9FB;

	/* Utility colors (from component-level Figma specs) */
	--zp-color-gray-dark: #434347;
	--zp-color-danger: #F81700;

	/* Text colors */
	--zp-color-text: #0B0B0F;
	--zp-color-text-muted: #6B7280;
	--zp-color-white: #FFFFFF;

	--zp-color-border: #E8E8E8;
	--zp-color-border-input: #D9D9D9;

	/* Typography */
	--zp-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Layout */
	--zp-container-width: 1196px;
	--zp-container-padding: 24px;

	/* Radii */
	--zp-radius-sm: 8px;
	--zp-radius-md: 16px;
	--zp-radius-lg: 24px;

	/* Shadows */
	--zp-shadow-card: 0 4px 24px rgba(0, 41, 145, 0.08);
}

/* -------------------------------------------------
   2. Font-face declarations
   ------------------------------------------------- */
@font-face {
	font-family: 'Plus Jakarta Sans';
	src: url('../fonts/plus-jakarta-sans-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Plus Jakarta Sans';
	src: url('../fonts/plus-jakarta-sans-medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Plus Jakarta Sans';
	src: url('../fonts/plus-jakarta-sans-bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* -------------------------------------------------
   3. Reset
   ------------------------------------------------- */

html,
body {
	overflow-x: hidden;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--zp-font-body);
	font-weight: 400;
	color: var(--zp-color-text);
	background-color: var(--zp-color-white);
	line-height: 1.5;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

ul,
ol {
	list-style: none;
}

table {
	border-collapse: collapse;
	width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* -------------------------------------------------
   4. Container
   ------------------------------------------------- */
.zp-container {
	width: 100%;
	max-width: var(--zp-container-width);
	margin-inline: auto;
	padding-inline: var(--zp-container-padding);
}

.zp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	background: var(--zp-color-primary);
	color: var(--zp-color-white);
	padding: 12px 20px;
	border-radius: var(--zp-radius-sm);
}

.zp-skip-link:focus {
	left: 16px;
	top: 16px;
}

/* -------------------------------------------------
   5. Icons
   ------------------------------------------------- */
.zp-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	flex-shrink: 0;
}

/* -------------------------------------------------
   6. Buttons (reusable sitewide)
   ------------------------------------------------- */
.zp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 25px;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
	transition: opacity .15s ease, border-color .15s ease, color .15s ease;
}

.zp-btn--primary {
	background: linear-gradient(180deg, var(--zp-color-primary) 0%, var(--zp-color-primary-lighter) 100%);
	border: 1px solid var(--zp-color-primary);
	color: var(--zp-color-white);
}

.zp-btn--primary:hover {
	opacity: .92;
}

.zp-btn--outline {
	background: transparent;
	border: 1.5px solid var(--zp-color-pale-blue);
	color: var(--zp-color-black);
}

.zp-btn--outline:hover {
	border-color: var(--zp-color-primary);
	color: var(--zp-color-primary);
}

/* -------------------------------------------------
   7. Header
   ------------------------------------------------- */
.zp-header {
	background: rgba(255, 255, 255, 0.8);
}

.zp-header__inner {
	display: flex;
	align-items: center;
	padding-block: 32px;
	padding-left: clamp(24px, 4.86vw, 70px);
	padding-right: clamp(24px, 3.68vw, 53px);
}

.zp-header__logo-img {
	height: 29px;
	width: auto;
}

.zp-header__nav {
	margin-left: 124px;
	flex: 1;
}

.zp-header__menu {
	display: flex;
	align-items: center;
	gap: 40px;
}

.zp-header__menu a {
	font-size: 16px;
	font-weight: 400;
	color: var(--zp-color-black);
	transition: color .15s ease;
}

.zp-header__menu a:hover,
.zp-header__menu .current-menu-item > a {
	color: var(--zp-color-primary);
}

.zp-header__actions {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-left: 104px;
}

.zp-header__login {
	font-size: 18px;
	font-weight: 700;
	color: var(--zp-color-black);
}

.zp-header__cart {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zp-header__cart .zp-icon {
	width: 25px;
	height: 26px;
}

.zp-header__cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	border-radius: 999px;
	background: var(--zp-color-danger);
	color: var(--zp-color-white);
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-inline: 4px;
}

/* User panel (logged in) */
.zp-header__user {
	position: relative;
}

.zp-header__user-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 171px;
	height: 36px;
	padding-inline: 18px;
	background: var(--zp-color-white);
	border: 1px solid var(--zp-color-pale-blue);
	border-radius: 10px;
}

.zp-header__user-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--zp-color-black);
}

.zp-header__user-chevron {
	width: 14px;
	height: 14px;
	color: var(--zp-color-black);
	transition: transform .15s ease;
}

.zp-header__user.is-open .zp-header__user-chevron {
	transform: rotate(180deg);
}

.zp-header__user-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 171px;
	background: var(--zp-color-white);
	border: 1px solid var(--zp-color-pale-blue);
	border-radius: 10px;
	padding: 16px 18px;
	display: none;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--zp-shadow-card);
	z-index: 50;
}

.zp-header__user.is-open .zp-header__user-dropdown {
	display: flex;
}

.zp-header__sync-label {
	font-size: 10px;
	font-weight: 700;
	color: var(--zp-color-gray-dark);
}

.zp-header__sync-status {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 700;
	color: var(--zp-color-green);
}

.zp-header__sync-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--zp-color-green);
	flex-shrink: 0;
}

.zp-header__dropdown-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--zp-color-gray-dark);
}

.zp-header__dropdown-link .zp-icon {
	width: 12px;
	height: 14px;
	color: currentColor;
}

.zp-header__dropdown-link--danger {
	color: var(--zp-color-danger);
}

.zp-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--zp-color-primary);
	color: var(--zp-color-white);
}

.zp-header__toggle .zp-icon {
	width: 22px;
	height: 22px;
}

/* -------------------------------------------------
   8. Mobile overlay nav
   ------------------------------------------------- */
.zp-mobile-nav {
	position: fixed;
	inset: 0;
	background: var(--zp-color-white);
	z-index: 1000;
	padding-top: 16px;
	padding-inline: 34px;
	padding-bottom: 40px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .25s ease;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.zp-mobile-nav.is-open {
	transform: translateX(0);
}

.zp-mobile-nav__close {
	position: relative;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--zp-color-primary);
	color: var(--zp-color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 32px;
}

.zp-mobile-nav__close::before {
	content: '';
	position: absolute;
	inset: -12px;
}

.zp-mobile-nav__close .zp-icon {
	width: 12px;
	height: 12px;
}

.zp-mobile-nav__label {
	font-size: 18px;
	font-weight: 700;
	color: var(--zp-color-primary);
	margin-bottom: 16px;
}

.zp-mobile-nav__menu {
	display: flex;
	flex-direction: column;
	gap: 33px;
}

.zp-mobile-nav__menu a {
	display: block;
	font-size: 18px;
	font-weight: 400;
	color: var(--zp-color-black);
}

.zp-mobile-nav__menu-item--small {
	font-size: 16px !important;
}

.zp-mobile-nav__menu .current-menu-item > a {
	display: block;
	width: fit-content;
	min-width: 163px;
	padding: 13px 20px;
	background: linear-gradient(180deg, var(--zp-color-primary) 0%, var(--zp-color-primary-light) 100%);
	border: 1px solid var(--zp-color-primary);
	border-radius: 15px;
	color: var(--zp-color-white);
	font-weight: 700;
}

.zp-mobile-nav__account .zp-header__sync-status {
	font-size: 13px;
}

.zp-mobile-nav__account .zp-header__dropdown-link {
	font-size: 18px;
	font-weight: 400;
	gap: 12px;
	justify-content: flex-start;
}

.zp-mobile-nav__account .zp-header__dropdown-link .zp-icon:last-child {
	margin-left: auto;
}

.zp-mobile-nav__account {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

body.zp-no-scroll {
	overflow: hidden;
}

/* -------------------------------------------------
   9. Breakpoints
   ------------------------------------------------- */
@media (max-width: 1024px) {
	.zp-header__nav,
	.zp-header__login,
	.zp-header__cta,
	.zp-header__cart,
	.zp-header__user {
		display: none;
	}

	.zp-header__toggle {
		display: flex;
	}

	.zp-header__inner {
		padding-block: 16px;
		padding-inline: 24px;
	}
}

@media (min-width: 1025px) {
	.zp-mobile-nav {
		display: none;
	}
}

/* -------------------------------------------------
   10. Footer
   ------------------------------------------------- */
.zp-footer {
	background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.zp-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 48px;
}

.zp-footer__brand {
	flex: 1 1 260px;
	max-width: 280px;
}

.zp-footer__logo img {
	height: 30px;
	width: auto;
}

.zp-footer__tagline {
	margin-top: 24px;
	font-size: 14px;
	color: var(--zp-color-black);
	max-width: 219px;
}

.zp-footer__col {
	flex: 0 1 140px;
}

.zp-footer__heading {
	font-size: 14px;
	font-weight: 700;
	color: var(--zp-color-black);
	margin-bottom: 24px;
}

.zp-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.zp-footer__col a {
	font-size: 16px;
	font-weight: 400;
	color: var(--zp-color-black);
	transition: color .15s ease;
}

.zp-footer__col a:hover {
	color: var(--zp-color-primary);
}

.zp-footer__subscribe {
	flex: 0 1 220px;
}

.zp-footer__subscribe-form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 192px;
	height: 32px;
	background: var(--zp-color-white);
	border: 1px solid var(--zp-color-border-input);
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	padding-left: 12px;
	margin-top: 16px;
}

.zp-footer__subscribe-form input {
	flex: 1;
	border: none;
	background: none;
	font-size: 12px;
	color: var(--zp-color-black);
	min-width: 0;
}

.zp-footer__subscribe-form input::placeholder {
	color: var(--zp-color-border-input);
}

.zp-footer__subscribe-form button {
	height: 22px;
	padding-inline: 14px;
	margin-right: 5px;
	background: linear-gradient(180deg, var(--zp-color-primary) 0%, var(--zp-color-primary-light) 100%);
	border: 1px solid var(--zp-color-primary);
	border-radius: 6px;
	color: var(--zp-color-white);
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.zp-footer__social {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
}

.zp-footer__social .zp-icon {
	width: 24px;
	height: 24px;
}

.zp-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-block: 20px;
	border-top: 1px solid var(--zp-color-border);
	font-size: 11px;
	font-weight: 500;
	color: var(--zp-color-black);
}

.zp-footer__meta {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 13px;
	font-weight: 400;
	color: var(--zp-color-black);
}

.zp-footer__meta span,
.zp-footer__meta a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.zp-footer__meta a {
	text-decoration: underline;
}

.zp-footer__meta .zp-icon {
	width: 14px;
	height: 14px;
}

.zp-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 768px) {
	.zp-footer__top {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 32px 16px;
		padding-top: 40px;
	}

	.zp-footer__brand {
		grid-column: 1 / -1;
		grid-row: 1;
		max-width: none;
	}

	.zp-footer__top nav.zp-footer__col:nth-of-type(1) {
		grid-column: 1;
		grid-row: 2;
	}

	.zp-footer__top nav.zp-footer__col:nth-of-type(2) {
		grid-column: 2;
		grid-row: 2;
	}

	.zp-footer__top nav.zp-footer__col:nth-of-type(3) {
		grid-column: 2;
		grid-row: 3;
	}

	.zp-footer__subscribe {
		grid-column: 1 / -1;
		grid-row: 4;
		max-width: none;
	}

	.zp-footer__heading {
		font-size: 16px;
	}

	.zp-footer__subscribe-form {
		max-width: 100%;
	}

	.zp-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}