/*!
 * Influenzic Gen 2 — Pricing Cards, Website Stepper, Tooltips & FAQ Accordion
 *
 * @package influenzic
 */

/* ── Website Stepper ── */
.g2-site-stepper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0 auto 38px;
}

.g2-site-stepper__controls {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.g2-site-stepper__label {
	font-size: 15px;
	font-weight: 600;
	color: #0f0f1e;
}

.g2-site-stepper__box {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: var(--g2-radius-pill);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.g2-site-stepper__btn {
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: rgba(var(--g2-primary-rgb), 0.10);
	color: var(--g2-primary);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.g2-site-stepper__btn:hover:not(:disabled) {
	background: var(--g2-primary);
	color: #ffffff;
}

.g2-site-stepper__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.g2-site-stepper__val {
	min-width: 46px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--g2-text-heading);
}

.g2-site-stepper__hint {
	margin: 0;
	min-height: 1.6em;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--g2-text-body);
	text-align: center;
}

.g2-site-stepper__hint strong {
	color: var(--g2-primary);
	font-weight: 700;
}

/* ── Pricing Section & Tier Grid ── */
.g2-tier-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 1140px;
	margin: 0 auto 24px;
}

.g2-tier-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 780px;
}

.g2-section--pricing {
	padding: 64px 0;
}

.g2-pricing-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 28px;
}

.g2-pricing-eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--g2-radius-pill);
	background: rgba(var(--g2-primary-rgb), 0.10);
	color: var(--g2-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.g2-pricing-head .g2-h2 {
	font-size: clamp(32px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.025em;
	margin: 0 0 14px;
}

.g2-pricing-head .g2-pf__sub {
	font-size: 16px;
	line-height: 1.6;
	color: var(--g2-text-body);
	margin: 0;
}

.g2-tier-earlybird {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 18px;
	padding: 5px 12px;
	border-radius: var(--g2-radius-pill);
	background: rgba(var(--g2-primary-rgb), 0.10);
	color: var(--g2-primary);
	font-size: 12px;
	font-weight: 700;
}

.g2-tier-earlybird__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.g2-tier-card {
	padding: 34px 28px;
	border-radius: var(--g2-radius-md);
	background: #ffffff;
	border: 1px solid var(--g2-border);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.g2-tier-card--best {
	background: linear-gradient(160deg, var(--g2-primary) 0%, var(--g2-primary-hover) 100%);
	border-color: transparent;
	box-shadow: 0 20px 44px rgba(var(--g2-primary-rgb), 0.24);
	color: #ffffff;
}

.g2-tier-card.is-stepper-selected {
	outline: 2.5px solid var(--g2-primary);
	outline-offset: 6px;
}

.g2-tier-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: #ffffff;
	color: var(--g2-primary);
	border: 1px solid var(--g2-border-blue);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.7px;
	padding: 5px 16px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.g2-tier-name {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--g2-text-muted);
}

.g2-tier-card--best .g2-tier-name {
	color: rgba(255, 255, 255, 0.82);
}

.g2-tier-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.g2-tier-price strong {
	font-size: 48px;
	line-height: 1;
	letter-spacing: -0.03em;
	font-weight: 700;
	color: var(--g2-text-heading);
}

.g2-tier-price span {
	font-size: 14px;
	font-weight: 500;
	color: var(--g2-text-muted);
}

.g2-tier-card--best .g2-tier-price strong {
	color: #ffffff;
}

.g2-tier-card--best .g2-tier-price span {
	color: rgba(255, 255, 255, 0.74);
}

.g2-tier-strike {
	text-decoration: line-through;
	text-decoration-color: var(--g2-accent);
}

.g2-tier-card--best .g2-tier-strike {
	text-decoration-color: #fda4af;
}

.g2-tier-promo-pill {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0 12px;
	padding: 4px 10px;
	border-radius: var(--g2-radius-pill);
	background: rgba(var(--g2-tertiary-rgb), 0.12);
	border: 1px solid rgba(var(--g2-tertiary-rgb), 0.28);
	color: var(--g2-tertiary);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.g2-tier-card--best .g2-tier-promo-pill {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #ffffff;
}

.g2-tier-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 13px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--g2-radius-md);
	background: var(--g2-primary);
	color: #ffffff;
	border: 2px solid var(--g2-primary);
	margin: 16px 0 26px;
	transition: all 0.2s ease;
}

.g2-tier-btn:hover {
	background: #ffffff;
	border-color: var(--g2-primary);
	color: var(--g2-primary);
}

.g2-tier-card--best .g2-tier-btn {
	background: #ffffff;
	color: var(--g2-primary);
	border: 2px solid #ffffff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.g2-tier-card--best .g2-tier-btn:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.85);
	box-shadow: none;
}

.g2-tier-groups {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.g2-tier-card--best .g2-tier-groups {
	border-top-color: rgba(255, 255, 255, 0.18);
}

.g2-tier-group-title {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--g2-text-muted);
	margin-bottom: 8px;
}

.g2-tier-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	color: #4b5563;
}

.g2-tier-card--best .g2-tier-list {
	color: rgba(255, 255, 255, 0.92);
}

.g2-tier-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	line-height: 1.4;
}

.g2-tier-item > svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

.g2-tier-item-text {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.g2-tier-card:has(.inzc-ptable__tip--active),
.g2-tier-card:has(.inzc-ptable__tip:hover),
.g2-tier-card:has(.inzc-ptable__tip:focus) {
	z-index: 20;
}

/* ── Pricing Tooltips ── */
.inzc-ptable__tip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
	vertical-align: middle;
	outline: none;
	z-index: 1;
}

.inzc-ptable__tip:hover,
.inzc-ptable__tip:focus-within,
.inzc-ptable__tip--active {
	z-index: 200;
}

.inzc-ptable__tip-body {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	width: max-content;
	max-width: 280px;
	padding: 10px 14px;
	background: #0f172a;
	color: #ffffff;
	font-size: 0.78125rem;
	font-weight: 500;
	line-height: 1.45;
	border-radius: 8px;
	box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.4), 0 8px 12px -6px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
	z-index: 99999;
	white-space: normal;
	text-align: left;
}

.inzc-ptable__tip-body::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: calc(-6px + var(--tip-arrow-offset, 0px));
	margin-top: -1px;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #0f172a;
	pointer-events: none;
}

.inzc-ptable__tip:hover .inzc-ptable__tip-body,
.inzc-ptable__tip:focus .inzc-ptable__tip-body,
.inzc-ptable__tip:focus-within .inzc-ptable__tip-body,
.inzc-ptable__tip--active .inzc-ptable__tip-body {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.g2-tier-item .inzc-ptable__tip-icon {
	width: 14px;
	height: 14px;
	color: var(--g2-text-muted);
	margin-left: 2px;
}

.g2-tier-item .inzc-ptable__tip:hover .inzc-ptable__tip-icon,
.g2-tier-item .inzc-ptable__tip--active .inzc-ptable__tip-icon {
	color: var(--g2-primary);
}

.g2-tier-card--best .g2-tier-item .inzc-ptable__tip-icon {
	color: rgba(255, 255, 255, 0.72);
}

.g2-tier-card--best .g2-tier-item .inzc-ptable__tip:hover .inzc-ptable__tip-icon,
.g2-tier-card--best .g2-tier-item .inzc-ptable__tip--active .inzc-ptable__tip-icon {
	color: #ffffff;
}

.g2-tier-item.is-yes > svg {
	color: var(--g2-tertiary);
}

.g2-tier-card--best .g2-tier-item.is-yes > svg {
	color: #ffffff;
}

.g2-tier-item.is-no {
	color: #94a3b8;
}

.g2-tier-item.is-no > svg {
	color: #94a3b8;
}

.g2-tier-card--best .g2-tier-item.is-no {
	color: rgba(255, 255, 255, 0.55);
}

.g2-tier-card--best .g2-tier-item.is-no > svg {
	color: rgba(255, 255, 255, 0.55);
}

.g2-pricing-footnote {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px 10px;
	max-width: 1140px;
	margin: 6px auto 0;
	font-size: 14px;
	color: var(--g2-text-muted);
	text-align: center;
}

.g2-pricing-footnote__sep {
	opacity: 0.55;
}

.g2-pricing-footnote a {
	color: var(--g2-primary);
	font-weight: 600;
	text-decoration: none;
}

.g2-pricing-footnote a:hover {
	text-decoration: underline;
}

/* ── FAQ Accordion ── */
.g2-faq-section {
	padding: 72px 0;
}

.g2-faq-wrap {
	max-width: 820px;
	margin: 0 auto;
}

.g2-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.g2-faq-item {
	background: #ffffff;
	border: 1px solid var(--g2-border);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.g2-faq-item.is-open {
	border-color: var(--g2-border-blue);
	box-shadow: 0 8px 24px rgba(var(--g2-primary-rgb), 0.06);
}

.g2-faq-q {
	width: 100%;
	background: transparent;
	border: 0;
	padding: 18px 22px;
	text-align: left;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--g2-text-heading);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	line-height: 1.4;
}

.g2-faq-chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease, color 0.2s ease;
	color: var(--g2-text-muted);
}

.g2-faq-item.is-open .g2-faq-chevron {
	transform: rotate(180deg);
	color: var(--g2-primary);
}

.g2-faq-a {
	padding: 0 22px 18px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--g2-text-body);
}

.g2-faq-a p {
	margin: 0;
}

.g2-still-questions {
	padding: 18px 22px;
	border-radius: 14px;
	background: var(--g2-bg-tint-blue);
	border: 1px solid var(--g2-border-blue);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 14px;
}

.g2-still-questions strong {
	display: block;
	font-size: 15px;
	color: var(--g2-text-heading);
	margin-bottom: 2px;
}

.g2-still-questions span {
	color: var(--g2-text-body);
}

.g2-still-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.g2-still-btn {
	background: #ffffff;
	border: 1.5px solid var(--g2-border-blue);
	border-radius: 10px;
	padding: 10px 18px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--g2-primary);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.g2-still-btn:hover {
	background: var(--g2-primary);
	border-color: var(--g2-primary);
	color: #ffffff;
}

.g2-still-btn--primary {
	background: var(--g2-primary);
	border-color: var(--g2-primary);
	color: #ffffff;
}

.g2-still-btn--primary:hover {
	background: var(--g2-primary-hover);
	border-color: var(--g2-primary-hover);
	color: #ffffff;
}

@media (max-width: 768px) {
	.g2-pricing-head {
		text-align: left;
		margin-left: 0;
		margin-right: 0;
	}

	.g2-pricing-sec,
	.g2-faq-section {
		padding: 56px 0;
	}

	.g2-site-stepper__monthly {
		display: block;
		margin-top: 2px;
	}

	.g2-tier-card {
		padding: 24px 16px;
	}

	.g2-tier-item {
		font-size: 13px;
		gap: 8px;
	}

	.g2-tier-item .inzc-ptable__tip-body {
		max-width: min(260px, calc(100vw - 36px));
	}

	.g2-pricing-footnote {
		flex-direction: column;
		gap: 6px;
		margin-top: 10px;
	}

	.g2-pricing-footnote__sep {
		display: none;
	}

	.g2-still-questions {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px 16px;
	}

	.g2-still-actions {
		flex-wrap: wrap;
		width: 100%;
	}

	.g2-tier-grid,
	.g2-tier-grid--2 {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		padding: 20px 10px 18px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.g2-tier-grid::-webkit-scrollbar {
		display: none;
	}

	.g2-tier-grid > *,
	.g2-tier-grid--2 > * {
		flex: 0 0 84%;
		scroll-snap-align: center;
	}

	.g2-tier-grid > *:last-child,
	.g2-tier-grid--2 > *:last-child {
		scroll-snap-align: end;
	}
}
