/**
 * Pricing V2 Styles
 * Based on Figma Design: https://www.figma.com/design/KGI6MFZvtDpMIG3iFyL3bG/NEO-Website?node-id=12314-100570
 */

.pricing-v2 {
	background: #f7f6f5;
	font-family: 'DM Sans', sans-serif;
	color: #1a1a1a;
}
body.page-template-template-pricing-v2 { background: #f7f6f5; }

/* Hero band (hero + tabs + tier cards) — carries the hardcoded landing-page-bg.svg.
   Sections inside must keep their own backgrounds transparent so the SVG shows. */
.pv2-hero-band { position: relative; }

body.page-template-template-pricing-v2 .site-header {
	background-color: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.pv2-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 50px;
}

/* =================== HERO =================== */

.pv2-hero {
	position: relative;
	padding: 192px 0 100px;
	overflow: hidden;
	background: transparent;   /* SVG lives on the .pv2-hero-band wrapper */
}

.pv2-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 60px;
	text-align: center;
}

.pv2-hero-copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 780px;
}

.pv2-hero-title {
	font-family: 'TWK Everett', sans-serif;
	font-size: 48px;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -1.44px;
	color: #000000;
	margin: 0;
}

.pv2-hero-subtitle {
	font-family: 'DM Sans', sans-serif;
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
	color: #000000;
	margin: 0;
	max-width: 580px;
	align-self: center;
}

.pv2-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 64px;
	padding: 12px 16px 12px 24px;
	background: #000000;
	border: 2px solid #000000;
	border-radius: 12px;
	color: #ffffff;
	font-family: 'DM Sans', sans-serif;
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.pv2-hero-cta:hover {
	background: #4a4846;
	color: #ffffff;
}

.pv2-hero-cta-icon {
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* =================== TIERS SECTION =================== */

.pv2-tiers {
	padding: 80px 0 100px;
	background: transparent;   /* SVG lives on the .pv2-hero-band wrapper */
}

/* Warm-cream plate that sits BEHIND the tier cards (cards have z-index 1).
   Anchored to .pv2-tiers-inner — needs position:relative on the parent so this
   absolute child is correctly clipped to the section. Stretches from the
   description/filter row down to the bottom of the section. */
.pv2-tiers-inner { position: relative; }
.pv2-cards-bg {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: 100vw;
	top: auto;
	bottom: -100px;          /* match .pv2-tiers padding-bottom */
	height: 75%;              /* leaves the tabs/filter on the SVG */
	background: #fcfaf8;
	z-index: 0;
}
.pv2-product-panel { position: relative; z-index: 1; }

/* Per-product description — sits between tabs and search/filter, swaps per active tab. */
.pv2-product-descs { width: 100%; max-width: 780px; align-self: center; text-align: center; }
.pv2-product-desc {
	margin: 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.45;
	color: #191a23;
}
.pv2-product-desc[hidden] { display: none; }

.pv2-tiers-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 60px;
}

/* Product tabs */
.pv2-tabs {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 4px;
	width: 100%;
	max-width: 1180px;
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.pv2-tab {
	flex: 1 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px 12px;
	font-family: 'DM Sans', sans-serif;
	font-size: 20px;
	font-weight: 500;
	color: #000000;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.pv2-tab:hover {
	color: #4a4846;
}

.pv2-tab.is-active {
	border-bottom-color: #000000;
}

/* Filter bar */
.pv2-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 1180px;
}

.pv2-search {
	position: relative;
	width: 280px;
	max-width: 100%;
}

.pv2-search-input {
	width: 100%;
	height: 48px;
	padding: 6px 12px 6px 44px;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	color: #191a23;
	outline: none;
	transition: border-color 0.2s ease;
}

.pv2-search-input::placeholder {
	color: #656672;
	font-size: 18px;
}

.pv2-search-input:focus {
	border-color: #1a1a1a;
}

.pv2-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: #656672;
	pointer-events: none;
}

.pv2-region {
	position: relative;
	width: 180px;
}

.pv2-region-select {
	width: 100%;
	height: 48px;
	padding: 0 36px 0 12px;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	color: #191a23;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	outline: none;
}

.pv2-region-caret {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: #191a23;
	pointer-events: none;
}

/* Hide filter bar entirely when WP/JS sets hidden attribute (default styling does this,
   but make it explicit so the flex container doesn't leave a gap). */
.pv2-filters[hidden] {
	display: none;
}

/* Tier grid */
.pv2-tier-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 380px));
	gap: 20px;
	width: 100%;
	max-width: 1180px;
	justify-content: center;
}

.pv2-tier-grid[hidden] {
	display: none;
}

/* Features-layout grid uses items-start so cards with different feature
   counts don't stretch each other. */
.pv2-tier-grid--features {
	align-items: start;
}

.pv2-tier-card {
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 28px;
	padding: 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pv2-tier-label {
	font-family: 'TWK Everett', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #000000;
	width: 100%;
	letter-spacing: 0;
}

.pv2-tier-subtitle {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: #52525b;
	width: 100%;
	margin: 0;
}

.pv2-tier-price-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.pv2-tier-price {
	font-family: 'TWK Everett', sans-serif;
	font-size: 36px;
	font-weight: 500;
	line-height: 1.1;
	color: #000000;
	margin: 0;
}

.pv2-tier-cadence {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 300;
	color: #656672;
	margin-top: 2px;
}

.pv2-tier-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 48px;
	padding: 12px 16px 12px 24px;
	background: #000000;
	border: 2px solid #000000;
	border-radius: 12px;
	color: #ffffff;
	font-family: 'DM Sans', sans-serif;
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.pv2-tier-cta:hover {
	background: transparent;
	color: #000000;
}

/* Country list inside card */
.pv2-tier-countries {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
}

.pv2-tier-country-list {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 0;
}

.pv2-tier-country {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
	border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.pv2-tier-country:last-child {
	border-bottom: none;
}

.pv2-tier-country-flag {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 9999px;
	overflow: hidden;
	background: #d4d4d8;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.pv2-tier-country-flag img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pv2-tier-country-name {
	flex: 1 0 0;
	min-width: 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #191a23;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pv2-tier-country-price {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
}

.pv2-tier-country-price-from {
	font-weight: 300;
	color: #656672;
}

.pv2-tier-country-price-amount {
	font-weight: 500;
	color: #191a23;
}

.pv2-tier-see-all {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 300;
	color: #000000;
	text-decoration: underline;
	letter-spacing: 0.14px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.pv2-tier-see-all svg {
	transform: rotate(-90deg);
	width: 12px;
	height: 12px;
}

.pv2-tier-no-results {
	display: none;
	padding: 16px 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 300;
	color: #656672;
}

.pv2-tier-no-results.is-visible {
	display: block;
}

/* ---- Feature-list card variant (non-Hire tabs) ---- */

.pv2-tier-card--features {
	align-items: stretch;
}

.pv2-tier-card--features .pv2-tier-label,
.pv2-tier-card--features .pv2-tier-cta {
	text-align: left;
}

.pv2-tier-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.pv2-tier-feature {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.pv2-tier-feature-icon {
	flex-shrink: 0;
	width: 21px;
	height: 21px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #4f46e5;
}

.pv2-tier-feature-text {
	flex: 1 1 auto;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
	color: #191a23;
}

/* =================== EXPANDED COUNTRY GRID (NEO Hire only) =================== */

.pv2-expand[hidden] {
	display: none;
}

.pv2-expand {
	width: 100%;
	max-width: 1180px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pv2-expand-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
}

.pv2-expand-title {
	margin: 0;
	font-family: 'TWK Everett', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #000000;
}

.pv2-expand-close {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #1c1c1b;
	text-decoration: underline;
	letter-spacing: 0.16px;
}

.pv2-expand-close svg {
	width: 12px;
	height: 12px;
	margin-left: 4px;
}

.pv2-expand-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
}

.pv2-mini-card[hidden] {
	display: none;
}

.pv2-mini-card {
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 28px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: stretch;
}

.pv2-mini-card-label {
	font-family: 'TWK Everett', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #000000;
	width: 100%;
}

.pv2-mini-card-flag-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.pv2-mini-card-flag {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	overflow: hidden;
	background: #d4d4d8;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.pv2-mini-card-flag img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pv2-mini-card-country {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #191a23;
	text-align: center;
}

.pv2-mini-card-price-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.pv2-mini-card-price {
	font-family: 'TWK Everett', sans-serif;
	font-size: 20px;
	font-weight: 500;
	color: #000000;
	line-height: 1.1;
}

.pv2-mini-card-cadence {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 300;
	color: #656672;
	margin-top: 2px;
}

.pv2-mini-card-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	padding: 8px 12px;
	background: #ede8e4;
	border: none;
	border-radius: 12px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #000000;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pv2-mini-card-cta:hover {
	background: #ddd6cd;
	color: #000000;
}

.pv2-expand-pagination {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	width: 100%;
}

.pv2-expand-pagination-count {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 300;
	color: #656672;
}

.pv2-expand-pagination-btn {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ede8e4;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	color: #000000;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.pv2-expand-pagination-btn:hover:not(:disabled) {
	background: #ddd6cd;
}

.pv2-expand-pagination-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* =================== FAQ =================== */

.pv2-faq {
	background: #f5f1ed;
	padding: 60px 0;
}

.pv2-faq-inner {
	display: grid;
	grid-template-columns: 1fr 780px;
	gap: 50px;
	max-width: 1180px;
	margin: 0 auto;
}

.pv2-faq-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pv2-faq-title {
	font-family: 'TWK Everett', sans-serif;
	font-size: 36px;
	font-weight: 500;
	line-height: 1.1;
	color: #000000;
	margin: 0;
}

.pv2-faq-subtitle {
	font-family: 'DM Sans', sans-serif;
	font-size: 20px;
	font-weight: 300;
	line-height: 1.4;
	color: #000000;
	margin: 0;
}

.pv2-faq-list {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
}

.pv2-faq-item {
	border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}

.pv2-faq-item:last-child {
	border-bottom: none;
}

.pv2-faq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 28px;
	color: #000000;
}

.pv2-faq-indicator {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
	color: #000000;
}

.pv2-faq-item.is-open .pv2-faq-indicator {
	transform: rotate(-90deg);
}

.pv2-faq-answer {
	display: none;
	padding: 0 0 16px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
	color: #1a1a1a;
}

.pv2-faq-item.is-open .pv2-faq-answer {
	display: block;
}

/* =================== RESPONSIVE =================== */

@media (max-width: 1024px) {
	.pv2-container {
		padding: 0 24px;
	}

	.pv2-hero {
		padding: 140px 0 80px;
	}

	.pv2-hero-title {
		font-size: 40px;
		letter-spacing: -1.2px;
	}

	.pv2-hero-subtitle {
		font-size: 22px;
	}

	.pv2-tiers {
		padding: 60px 0 80px;
	}

	.pv2-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		-webkit-overflow-scrolling: touch;
	}

	.pv2-tab {
		flex: 0 0 auto;
		min-width: 160px;
	}

	.pv2-tier-grid {
		grid-template-columns: minmax(0, 380px);
		justify-content: center;
	}

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

	.pv2-faq-inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 0 24px;
	}
}

@media (max-width: 768px) {
	.pv2-hero {
		padding: 120px 0 60px;
	}

	.pv2-hero-title {
		font-size: 32px;
		letter-spacing: -0.96px;
	}

	.pv2-hero-subtitle {
		font-size: 18px;
	}

	.pv2-hero-cta {
		height: 56px;
		font-size: 18px;
	}

	.pv2-tier-card {
		padding: 24px;
	}

	.pv2-tier-price {
		font-size: 30px;
	}

	.pv2-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.pv2-search,
	.pv2-region {
		width: 100%;
	}

	.pv2-faq-title {
		font-size: 28px;
	}

	.pv2-expand-grid {
		grid-template-columns: 1fr;
	}

	.pv2-expand-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}
