/*
 * Pricing V3 — the "$50 flat + local provider fee" template.
 *
 * All rules are scoped under `.pv3` so this stylesheet cannot leak into
 * other pages. The design language mirrors neo-home-new (rounded rects, tight
 * type, high contrast), but the atoms are re-declared here rather than
 * imported so the pricing page does not pull the 60KB homepage CSS.
 */

.pv3 {
	--pv3-ink: #191a23;
	--pv3-ink-mid: #4c4d57;
	--pv3-ink-soft: #7a7b85;
	--pv3-rule: rgba(25, 26, 35, 0.12);
	--pv3-rule-soft: rgba(25, 26, 35, 0.08);
	--pv3-hero-bg: #d7e4f0;
	--pv3-paper: #f5eee2;
	--pv3-paper-soft: #f5eee266;
	--pv3-dark: #191a23;

	font-family: 'TWK Everett', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--pv3-ink);
	background: #ffffff;
}

/* ---- container ------------------------------------------------------- */
.pv3-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- eyebrow + section title ---------------------------------------- */
.pv3-eyebrow {
	display: inline-block;
	font-family: 'DM Mono', 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--pv3-ink-soft);
}

.pv3-section-title {
	margin: 12px 0 0;
	font-weight: 500;
	font-size: clamp(28px, 3vw, 34px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--pv3-ink);
}

/* ---- buttons -------------------------------------------------------- */
.pv3-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pv3-btn--solid {
	background: var(--pv3-ink);
	color: #ffffff;
}

.pv3-btn--solid:hover { background: #000; color: #fff; }

.pv3-btn--pill {
	background: #ffffff;
	color: var(--pv3-ink);
}
.pv3-btn--pill:hover { background: #f2f2f4; }

/* Section background image scaffolding. Applied on any section marked
 * `--has-bg`; the <img> sits under the content edge-to-edge so it never
 * clips against the container's max-width. */
.pv3-hero,
.pv3-eor,
.pv3-payroll,
.pv3-faq {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.pv3-section-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}
.pv3-hero > *:not(.pv3-section-bg),
.pv3-eor > *:not(.pv3-section-bg),
.pv3-payroll > *:not(.pv3-section-bg),
.pv3-faq > *:not(.pv3-section-bg) {
	position: relative;
	z-index: 1;
}

/* ================================================================ HERO */
.pv3-hero {
	background: var(--pv3-hero-bg);
	/* Extra top padding pushes the title well clear of the fixed site
	 * header — the previous 72px let "Solutions" bleed into "One flat
	 * platform fee." on wider screens. */
	padding: clamp(140px, 18vh, 200px) 0 clamp(72px, 12vh, 120px);
}

.pv3-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
}

.pv3-hero__title {
	margin: 0;
	font-weight: 500;
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--pv3-ink);
}

.pv3-hero__title-1,
.pv3-hero__title-2 {
	display: block;
}

.pv3-hero__body {
	max-width: 640px;
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--pv3-ink-mid);
}

.pv3-hero__cta {
	margin-top: 8px;
}

/* =============================================== WHITE LABEL EOR ===== */
.pv3-eor {
	background: #ffffff;
	padding: 72px 0 96px;
}

.pv3-eor__head {
	text-align: center;
	margin-bottom: 40px;
}

/* Three cards + big "+" separators. On mobile the row wraps: cards stack
 * full width, the pluses turn into horizontal marks between them.
 */
.pv3-eor__row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: stretch;
	gap: 16px;
}

.pv3-eor__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 26px;
	background: #ffffff;
	border: 1px solid var(--pv3-rule-soft);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
	min-height: 148px;
}

.pv3-eor__value {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 36px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--pv3-ink);
}

.pv3-eor__unit {
	display: inline-block;
	margin-left: 6px;
	font-family: 'DM Mono', 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--pv3-ink-soft);
	vertical-align: middle;
}

.pv3-eor__note {
	margin: auto 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--pv3-ink-mid);
}

.pv3-eor__plus {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 300;
	color: var(--pv3-ink-soft);
	user-select: none;
}

/* Cycling examples. The stack is `position: relative` and each example is
 * absolutely positioned inside it — one visible at a time via `.is-active`.
 * The container's height matches the tallest example so the layout below
 * doesn't jump between countries. If JS never runs, the first example
 * stays visible (baseline layout works without the stack behaviour). */
.pv3-eor__examples {
	position: relative;
	margin: 28px 0 36px;
}

.pv3-eor__example {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	padding: 20px 26px;
	background: var(--pv3-paper);
	border-radius: 14px;
	font-size: 15px;
	color: var(--pv3-ink);
	/* Stack members. Only .is-active fades in; the rest sit at opacity 0. */
	position: absolute;
	inset: 0 0 auto 0;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	pointer-events: none;
}
.pv3-eor__example:first-child {
	position: relative;
	/* First card also stays in flow to reserve the row's height — every
	   sibling sits over the top of it. */
}
.pv3-eor__example.is-active {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.pv3-eor__example-label { flex: 0 0 auto; }
.pv3-eor__example-body  { flex: 1 1 auto; color: var(--pv3-ink-mid); }

/* Circular flag. Uses the site-wide circle-flags SVG set (already
 * pre-cropped to a circle), matching template-marketplace-list.php and
 * template-pricing-v2.php. Just size + subtle rim for legibility on the
 * beige example row. */
.pv3-flag {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: block;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(25, 26, 35, 0.08);
}

/* Dots — one per example. Small monotone circles under the row that go
 * dark for the active country and act as skip-to controls. */
.pv3-eor__dots {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	gap: 8px;
	justify-content: center;
	position: absolute;
	left: 0;
	right: 0;
	bottom: -24px;
}
.pv3-eor__dot {
	appearance: none;
	background: rgba(25, 26, 35, 0.2);
	border: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}
.pv3-eor__dot:hover { background: rgba(25, 26, 35, 0.4); }
.pv3-eor__dot.is-active {
	background: var(--pv3-ink);
	transform: scale(1.15);
}

/* Dark CTA banner */
.pv3-eor__banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 28px 32px;
	background: var(--pv3-dark);
	color: #ffffff;
	border-radius: 16px;
}

.pv3-eor__banner-copy { flex: 1 1 0; }
.pv3-eor__banner-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.01em;
}
.pv3-eor__banner-body {
	margin: 0;
	max-width: 640px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}

/* =========================================== WHITE LABEL PAYROLL ===== */
.pv3-payroll {
	background: var(--pv3-paper);
	padding: 72px 0 96px;
}

.pv3-payroll__head {
	text-align: center;
	margin-bottom: 24px;
}

.pv3-payroll__sub {
	margin: 12px auto 0;
	max-width: 640px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--pv3-ink-mid);
}

/* Toggle — pure CSS. Two radios drive the visual state; the labels ARE the
 * pills. `:has()` (baseline in 2024+) toggles the price swap inside the
 * card. Falls back gracefully in older browsers: both prices show, styled
 * identically. */
.pv3-payroll__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 auto 24px;
	padding: 4px;
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}
.pv3-payroll__toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pv3-payroll__toggle label {
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pv3-ink-mid);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.pv3-payroll__toggle input:checked + label {
	background: var(--pv3-ink);
	color: #ffffff;
}

.pv3-payroll__card {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 48px;
	padding: 44px 48px;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pv3-payroll__price {
	margin: 12px 0 8px;
	font-size: clamp(36px, 4.5vw, 48px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--pv3-ink);
}

/* Price-swap: annual is default; when Monthly is checked, hide annual and
 * show monthly. Uses :has() up the tree to the payroll section so the
 * toggle can live above the card. */
.pv3-payroll__price-monthly { display: none; }
.pv3-payroll__price-annual  { display: inline; }
.pv3-payroll:has(#pv3-cadence-monthly:checked) .pv3-payroll__price-annual  { display: none; }
.pv3-payroll:has(#pv3-cadence-monthly:checked) .pv3-payroll__price-monthly { display: inline; }

.pv3-payroll__price-unit {
	margin-left: 6px;
	font-family: 'DM Mono', 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 15px;
	font-weight: 400;
	color: var(--pv3-ink-soft);
}

.pv3-payroll__billing {
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--pv3-ink-soft);
}
.pv3-payroll__desc {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--pv3-ink-mid);
}
.pv3-payroll__cta { align-self: flex-start; }
.pv3-payroll__foot {
	margin: 20px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--pv3-ink-soft);
}

.pv3-payroll__features { padding-top: 4px; }
.pv3-payroll__features-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 32px;
}
.pv3-payroll__features-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--pv3-ink);
}
.pv3-check {
	flex: 0 0 16px;
	margin-top: 2px;
	color: var(--pv3-ink);
}

/* ================================================================= FAQ */
.pv3-faq {
	background: #ffffff;
	padding: 96px 0 120px;
}

.pv3-faq__inner {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	gap: 56px;
}

.pv3-faq__intro-body {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--pv3-ink-mid);
}

.pv3-faq__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--pv3-rule);
}

.pv3-faq__item {
	border-bottom: 1px solid var(--pv3-rule);
}

.pv3-faq__item details { padding: 0; }
.pv3-faq__item summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 15px;
	font-weight: 500;
	color: var(--pv3-ink);
}
.pv3-faq__item summary::-webkit-details-marker { display: none; }

.pv3-faq__chev {
	flex: 0 0 14px;
	color: var(--pv3-ink-soft);
	transition: transform 0.2s;
}
.pv3-faq__item details[open] .pv3-faq__chev { transform: rotate(180deg); }

.pv3-faq__a {
	padding: 0 4px 22px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--pv3-ink-mid);
}
.pv3-faq__a p:first-child { margin-top: 0; }
.pv3-faq__a p:last-child  { margin-bottom: 0; }

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

@media (max-width: 900px) {
	.pv3-eor__row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.pv3-eor__plus {
		font-size: 22px;
		padding: 6px 0;
	}

	.pv3-eor__banner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.pv3-payroll__card {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 32px 24px;
	}
	.pv3-payroll__features-list {
		grid-template-columns: 1fr;
	}

	.pv3-faq__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 560px) {
	.pv3-hero { padding: 56px 0 64px; }
	.pv3-eor, .pv3-payroll { padding: 56px 0 72px; }
	.pv3-faq { padding: 64px 0 88px; }

	.pv3-eor__example {
		padding: 16px 20px;
	}
	.pv3-eor__banner {
		padding: 24px;
	}
}
