/*
 * Agent Pricing — plans, calculator, credit costs, top-ups.
 * Colours and fonts follow the site's Elementor Global Colors / Fonts, with neutral fallbacks.
 */

.ap {
	--ap-accent: var(--e-global-color-primary, #0f6b55);
	--ap-ink: var(--e-global-color-secondary, #17201c);
	--ap-text: var(--e-global-color-text, #45514b);
	--ap-muted: var(--e-global-color-muted, #5d6761);
	--ap-line: var(--e-global-color-line, #e4e6de);
	--ap-paper: var(--e-global-color-paper, #f7f7f2);
	--ap-soft: var(--e-global-color-soft, #e3f1ea);
	--ap-deep: var(--e-global-color-deep, #0e2a22);
	--ap-ondark: var(--e-global-color-ondark, #a9c2b6);
	--ap-highlight: var(--e-global-color-accent, #f4b731);
	--ap-brandtext: var(--e-global-color-brandtext, var(--ap-accent));
	--ap-radius: 22px;
	--ap-ease: cubic-bezier(.22, 1, .36, 1);
	color: var(--ap-text);
	font-family: var(--e-global-typography-text-font-family, inherit), system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	font-variant-numeric: tabular-nums;
}

.ap *,
.ap *::before,
.ap *::after { box-sizing: border-box; }

.ap p { margin: 0; }

.ap h3,
.ap h4 {
	margin: 0;
	color: var(--ap-ink);
	font-family: var(--e-global-typography-primary-font-family, inherit), system-ui, sans-serif;
	letter-spacing: -.01em;
}

.ap a.ap-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--ap-ink);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .3s ease, translate .35s var(--ap-ease), box-shadow .35s var(--ap-ease);
}

.ap a.ap-btn:hover {
	background: var(--ap-accent);
	color: #fff;
	translate: 0 -1px;
	box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .4);
}

.ap a.ap-btn--light { background: #fff; color: var(--ap-ink); }
.ap a.ap-btn--light:hover { background: var(--ap-soft); color: var(--ap-ink); }

.ap .ap-swap { animation: ap-swap .5s var(--ap-ease) both; }

@keyframes ap-swap {
	from { opacity: 0; translate: 0 6px; }
	to   { opacity: 1; translate: 0 0; }
}

/* ------------------------------------------------------------ billing toggle */

.ap .ap-toggle {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .05);
}

.ap .ap-toggle button,
.ap .ap-toggle button:hover,
.ap .ap-toggle button:focus {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ap-muted);
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	transition: color .3s ease;
}

.ap .ap-toggle button[aria-checked="true"] { color: var(--ap-ink); }

.ap .ap-toggle__thumb {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	z-index: 0;
	width: var(--w, 50%);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 14px -6px rgba(0, 0, 0, .2);
	translate: var(--x, 4px) 0;
	transition: translate .5s var(--ap-ease), width .5s var(--ap-ease);
}

.ap .ap-toggle:not(.is-ready) .ap-toggle__thumb { opacity: 0; }

.ap .ap-toggle__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ap-soft);
	color: var(--ap-brandtext);
	font-size: 12px;
}

.ap .ap-toggle--dark { background: rgba(255, 255, 255, .08); }
.ap .ap-toggle--dark button { color: var(--ap-ondark); }
.ap .ap-toggle--dark button[aria-checked="true"] { color: var(--ap-ink); }

/* ------------------------------------------------------------ plans */

.ap-plans {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

.ap-plans__grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
	align-items: stretch;
}

.ap-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 22px;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	background: #fff;
	transition: translate .5s var(--ap-ease), box-shadow .5s var(--ap-ease), border-color .3s ease;
}

@media (hover: hover) {
	.ap-plan:hover {
		translate: 0 -4px;
		border-color: color-mix(in srgb, var(--ap-accent) 35%, var(--ap-line));
		box-shadow: 0 24px 44px -28px rgba(0, 0, 0, .3);
	}
}

.ap-plan__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 26px;
}

.ap .ap-plan__name { font-size: 17px; font-weight: 600; }

.ap-plan__badge {
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--ap-soft);
	color: var(--ap-brandtext);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.ap-plan__tagline { min-height: 44px; color: var(--ap-muted); font-size: 14px; }

.ap-plan__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-top: 4px;
}

.ap-plan__amount {
	display: inline-block;
	color: var(--ap-ink);
	font-family: var(--e-global-typography-primary-font-family, inherit), system-ui, sans-serif;
	font-size: clamp(34px, 3vw, 42px);
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1;
}

.ap-plan__per { color: var(--ap-muted); font-size: 14px; }
.ap-plan__billing { margin-top: -8px; color: var(--ap-muted); font-size: 13px; min-height: 20px; }

.ap-plan__credits {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 14px;
	border-top: 1px solid var(--ap-line);
	font-size: 14px;
}

.ap-plan__credits strong { color: var(--ap-ink); font-weight: 600; }
.ap-plan__credits span { color: var(--ap-muted); font-size: 13px; }
.ap-plan__equiv { color: var(--ap-muted); font-size: 13px; }

.ap-plan__features {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.ap-plan__features li,
.ap-checks li {
	position: relative;
	padding-left: 24px;
}

.ap-plan__features li::before,
.ap-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ap-soft);
}

.ap-plan__features li::after,
.ap-checks li::after {
	content: "";
	position: absolute;
	left: 5.5px;
	top: calc(.2em + 4px);
	width: 5px;
	height: 8px;
	border-right: 1.75px solid var(--ap-accent);
	border-bottom: 1.75px solid var(--ap-accent);
	rotate: 45deg;
}

.ap-plan.is-featured {
	border-color: transparent;
	background:
		radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--ap-highlight) 22%, transparent), transparent 60%),
		var(--ap-deep);
	color: var(--ap-ondark);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}

.ap-plan.is-featured .ap-plan__name,
.ap-plan.is-featured .ap-plan__amount,
.ap-plan.is-featured .ap-plan__credits strong { color: #fff; }

.ap-plan.is-featured .ap-plan__tagline,
.ap-plan.is-featured .ap-plan__per,
.ap-plan.is-featured .ap-plan__billing,
.ap-plan.is-featured .ap-plan__credits span,
.ap-plan.is-featured .ap-plan__equiv { color: var(--ap-ondark); }

.ap-plan.is-featured .ap-plan__credits { border-color: rgba(255, 255, 255, .12); }
.ap-plan.is-featured .ap-plan__badge { background: var(--ap-highlight); color: var(--ap-ink); }
.ap-plan.is-featured .ap-plan__features li::before { background: rgba(255, 255, 255, .12); }
.ap-plan.is-featured .ap-plan__features li::after { border-color: #fff; }

.ap-foot { color: var(--ap-muted); font-size: 13px; text-align: center; }

/* ------------------------------------------------------------ calculator */

.ap-calc {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
	gap: 20px;
	align-items: start;
}

.ap-calc__inputs {
	padding: 10px 28px 12px;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	background: #fff;
}

.ap-calc__head { padding: 22px 0 18px; border-bottom: 1px solid var(--ap-line); }
.ap .ap-calc__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ap-calc__intro { margin-top: 6px !important; color: var(--ap-muted); font-size: 14px; }

.ap-row {
	display: grid;
	gap: 10px;
	padding: 18px 0;
	border-bottom: 1px solid var(--ap-line);
}

.ap-row:last-child { border-bottom: 0; }

.ap-row__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.ap-row__top label { color: var(--ap-ink); font-weight: 600; font-size: 15px; }

.ap-row__rate {
	flex: none;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--ap-paper);
	color: var(--ap-muted);
	font-size: 12px;
	white-space: nowrap;
}

.ap-row__controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 116px;
	gap: 16px;
	align-items: center;
}

.ap .ap-row__range {
	width: 100%;
	height: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--ap-accent) var(--p, 0%), var(--ap-line) var(--p, 0%));
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.ap .ap-row__range::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	border: 2px solid var(--ap-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	-webkit-appearance: none;
	appearance: none;
	transition: scale .2s var(--ap-ease);
}

.ap .ap-row__range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--ap-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.ap .ap-row__range:active::-webkit-slider-thumb { scale: 1.15; }
.ap .ap-row__range:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 6px; }

.ap .ap-row__num {
	width: 100%;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid var(--ap-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ap-ink);
	font: inherit;
	font-weight: 600;
	text-align: right;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ap .ap-row__num:focus {
	border-color: var(--ap-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ap-accent) 18%, transparent);
	outline: none;
}

.ap-row__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.ap-row__note { color: var(--ap-muted); font-size: 12.5px; }
.ap-row__credits { flex: none; margin-left: auto; color: var(--ap-ink); font-size: 13px; font-weight: 600; }

.ap-calc__summary {
	position: sticky;
	top: calc(var(--amk-header-h, 72px) + 20px);
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
	border-radius: var(--ap-radius);
	background:
		radial-gradient(110% 60% at 100% 0%, color-mix(in srgb, var(--ap-highlight) 20%, transparent), transparent 60%),
		var(--ap-deep);
	color: var(--ap-ondark);
	box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .5);
}

.ap-calc__summary .ap-toggle { align-self: flex-start; margin-bottom: 8px; }

.ap-sum__label {
	color: var(--ap-ondark);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ap-sum__credits {
	margin-bottom: 8px !important;
	color: #fff;
	font-size: 44px;
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1.05;
}

.ap-sum__result { display: flex; flex-direction: column; gap: 10px; }
.ap-sum__plan { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }

.ap-sum__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	color: #fff;
	font-size: 40px;
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1;
}

.ap-sum__per { color: var(--ap-ondark); font-size: 14px; font-weight: 500; letter-spacing: 0; }

.ap-sum__lines {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 6px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	list-style: none;
	font-size: 14px;
}

.ap-sum__lines li { display: flex; justify-content: space-between; gap: 12px; }
.ap-sum__lines li span:last-child { color: #fff; font-weight: 600; }

.ap-sum__meter {
	height: 6px;
	margin-top: 6px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .12);
	overflow: hidden;
}

.ap-sum__meter span {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: var(--ap-highlight);
	transition: width .5s var(--ap-ease);
}

.ap-sum__note { font-size: 13px; }
.ap-calc__summary .ap-btn { margin-top: 6px; }

.ap-sum__compare {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
}

.ap-sum__compare summary { color: #fff; font-weight: 600; cursor: pointer; }

.ap-sum__compare ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.ap-sum__compare li { display: flex; justify-content: space-between; gap: 12px; }
.ap-sum__compare li.is-best { color: #fff; font-weight: 600; }
.ap-sum__compare small { opacity: .7; }

.ap a.ap-sum__contact { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; opacity: .85; }
.ap a.ap-sum__contact:hover { color: #fff; opacity: 1; }

/* ------------------------------------------------------------ credit costs */

.ap-credits { display: grid; gap: 20px; }
.ap-credits.has-side { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: start; }

.ap-credits__table {
	padding: 6px 26px;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	background: #fff;
}

.ap-credits__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--ap-line);
}

.ap-credits__row:last-child { border-bottom: 0; }

.ap-credits__row--head {
	color: var(--ap-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ap-credits__row strong { display: block; color: var(--ap-ink); font-weight: 600; }
.ap-credits__row small { display: block; margin-top: 2px; color: var(--ap-muted); font-size: 13px; }

.ap-credits__value {
	color: var(--ap-ink);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -.02em;
	text-align: right;
	white-space: nowrap;
}

.ap-credits__value small { display: inline; font-size: 13px; font-weight: 500; letter-spacing: 0; }

.ap-credits__side { display: flex; flex-direction: column; gap: 14px; }

.ap-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border-radius: var(--ap-radius);
	background: var(--ap-paper);
}

.ap .ap-box h3 { font-size: 16px; font-weight: 600; }
.ap-box ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ap-box p { font-size: 14px; }
.ap-box--muted { background: transparent; border: 1px dashed var(--ap-line); }

.ap-dots li { position: relative; padding-left: 16px; }

.ap-dots li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ap-highlight);
}

/* ------------------------------------------------------------ top-ups */

.ap-topups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.ap-topup {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	background: #fff;
}

.ap-topup__credits { color: var(--ap-ink); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ap-topup__credits span { color: var(--ap-muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.ap-topup__price { color: var(--ap-ink); font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.ap-topup__meta { color: var(--ap-muted); font-size: 13px; }

/* Compact result that stays in view while adjusting sliders on small screens. */
.ap-calc__mini { display: none; }

/* ------------------------------------------------------------ small screens */

@media (max-width: 1024px) {
	.ap-calc,
	.ap-credits.has-side { grid-template-columns: 1fr; }
	.ap-calc__summary { position: static; }

	.ap-calc__mini {
		position: sticky;
		bottom: 12px;
		z-index: 5;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin: 6px -6px 10px;
		padding: 12px 18px;
		border-radius: 999px;
		background: var(--ap-deep);
		color: var(--ap-ondark);
		font-size: 14px;
		box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
	}

	.ap-calc__mini strong { color: #fff; font-size: 16px; }
}

@media (max-width: 767px) {
	.ap-calc__inputs { padding: 4px 18px 8px; }
	.ap-row__controls { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
	.ap-row__foot { flex-direction: column; gap: 4px; }
	.ap-row__credits { margin-left: 0; }
	.ap-credits__table { padding: 4px 18px; }
	.ap-plan__tagline { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ap *,
	.ap .ap-swap { animation: none !important; transition: none !important; }
}

.ap .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
