/* Admart Power Plans — frontend */

.app-pp {
	--app-pp-radius: 18px;
	--app-pp-font: inherit;
	font-family: var(--app-pp-font);
	color: var(--app-pp-text, #1f4e6d);
	box-sizing: border-box;
	width: 100%;
}
.app-pp *,
.app-pp *::before,
.app-pp *::after { box-sizing: border-box; }

/* ── Header ── */
.app-pp__header {
	background: var(--app-pp-accent, #f17a6e);
	color: #fff;
	padding: 42px 24px 0;
	text-align: center;
}
.app-pp__heading {
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}
.app-pp__subheading {
	margin: 0 0 30px;
	font-size: clamp(14px, 1.2vw, 18px);
	opacity: .92;
}

/* ── Folder-style tabs that connect to the carousel band ── */
.app-pp__tabs {
	display: inline-flex;
	align-items: flex-end;
	gap: 6px;
	padding: 0;
	background: transparent;
	margin-bottom: 0;
	position: relative;
	z-index: 2;
	vertical-align: bottom;
}
.app-pp__tab {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	padding: 13px 28px 15px;
	margin-top: 6px;
	border-radius: 14px 14px 0 0;
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.1;
	font-family: inherit;
	transition: background .25s ease, color .25s ease, margin-top .2s ease, padding .2s ease;
}
.app-pp__tab-label { font-weight: 700; font-size: 15px; }
.app-pp__tab-sub { font-size: 11px; opacity: .85; margin-top: 2px; }
.app-pp__tab:hover { background: rgba(255,255,255,.3); }
.app-pp__tab.is-active {
	background: var(--app-pp-navy, #1f4e6d);
	color: #fff;
	margin-top: 0;
	padding-top: 16px;
	padding-bottom: 18px;
}
.app-pp__tab.is-active .app-pp__tab-sub { opacity: .8; }

/* ── Carousel band (tabs merge into the top of this) ── */
.app-pp__carousels {
	background: var(--app-pp-navy, #1f4e6d);
	padding: 0 16px 60px;
	margin-top: 0;
	position: relative;
}
.app-pp__carousel {
	display: none;
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding-top: 30px;
}
.app-pp__carousel.is-active { display: block; }

.app-pp__viewport {
	overflow: hidden;
	padding: 20px 0 30px;
}
.app-pp__track {
	display: flex;
	gap: 26px;
	transition: transform .45s cubic-bezier(.4,0,.2,1);
	padding: 0 calc((100% - min(var(--app-pp-card-w, 860px), 88vw)) / 2);
}
.app-pp__card {
	flex: 0 0 min(var(--app-pp-card-w, 860px), 88vw);
	background: var(--app-pp-card-bg, #fff);
	border-radius: var(--app-pp-radius);
	padding: 36px 40px;
	box-shadow: 0 18px 40px rgba(0,0,0,.18);
	opacity: .35;
	transform: scale(.95);
	transition: opacity .35s ease, transform .35s ease;
	color: var(--app-pp-text, #1f4e6d);
}
.app-pp__card.is-active {
	opacity: 1;
	transform: scale(1);
}

/* Two-column card: text left, image right */
.app-pp__card-grid {
	display: flex;
	align-items: center;
	gap: 32px;
}
.app-pp__card-text {
	flex: 1 1 55%;
	min-width: 0;
}
.app-pp__card-media {
	flex: 0 0 40%;
	text-align: center;
}
.app-pp__card-media img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	display: inline-block;
}
.app-pp__card--noimg .app-pp__card-text {
	flex-basis: 100%;
	text-align: center;
}

/* Rich-text content rendered inside the card */
.app-pp__card-text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--app-pp-text, #1f4e6d);
}
.app-pp__card-text > :first-child { margin-top: 0; }
.app-pp__card-text > :last-child { margin-bottom: 0; }
.app-pp__card-text p { margin: 0 0 12px; }
.app-pp__card-text ul,
.app-pp__card-text ol { margin: 0 0 12px; padding-left: 20px; }
.app-pp__card-text li { margin-bottom: 6px; }
.app-pp__card-text strong { font-weight: 700; }
.app-pp__card-text a {
	color: var(--app-pp-accent, #f17a6e);
	text-decoration: underline;
}
.app-pp__card-text h1,
.app-pp__card-text h2,
.app-pp__card-text h3 {
	margin: 0 0 10px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--app-pp-text, #1f4e6d);
}
.app-pp__card-text h2 { font-size: clamp(26px, 3vw, 40px); }
.app-pp__card-text h3 { font-size: clamp(22px, 2.4vw, 34px); }
.app-pp__card-text h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }

/* ── Carousel nav ── */
.app-pp__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,.18);
	border: 1px solid rgba(255,255,255,.35);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .25s ease;
}
.app-pp__nav:hover { background: #fff; color: var(--app-pp-navy, #1f4e6d); }
.app-pp__nav--prev { left: 6px; }
.app-pp__nav--next { right: 6px; }

.app-pp__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
}
.app-pp__dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,.35);
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}
.app-pp__dot.is-active { background: #fff; transform: scale(1.2); }

/* ── kWh strip ── */
.app-pp__kwh {
	background: var(--app-pp-accent, #f17a6e);
	color: #fff;
	padding: 22px 16px;
	text-align: center;
	position: relative;
}
.app-pp__kwh::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 14px solid var(--app-pp-navy, #1f4e6d);
}
.app-pp__kwh::after {
	content: "";
	position: absolute;
	bottom: -14px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 14px solid var(--app-pp-accent, #f17a6e);
	z-index: 2;
}
.app-pp__kwh-text {
	margin: 0;
	font-size: clamp(15px, 1.4vw, 20px);
	font-weight: 700;
}

/* ── Connected components ── */
.app-pp__components {
	background: #fff;
	padding: 56px 16px 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
.app-pp__component {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 140px;
	max-width: 220px;
}
.app-pp__component-img {
	max-width: 140px;
	height: auto;
	object-fit: contain;
}
.app-pp__component-label {
	text-align: center;
	font-size: 13px;
	color: var(--app-pp-navy, #1f4e6d);
}
.app-pp__component-label strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 2px;
}
.app-pp__link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--app-pp-accent, #f17a6e);
	margin: 0 8px;
}
.app-pp__link-line {
	display: block;
	width: 36px;
	height: 0;
	border-top: 2px dashed currentColor;
}
.app-pp__link-bolt {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--app-pp-accent, #f17a6e);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Fade on swap */
.app-pp--swapping .app-pp__kwh-text,
.app-pp--swapping .app-pp__component-img,
.app-pp--swapping .app-pp__component-label span {
	opacity: 0;
}
.app-pp__kwh-text,
.app-pp__component-img,
.app-pp__component-label span {
	transition: opacity .25s ease;
}

/* Responsive */
@media (max-width: 860px) {
	.app-pp__card-grid { flex-direction: column; gap: 22px; }
	.app-pp__card-text { flex-basis: auto; text-align: center; }
	.app-pp__card-media { flex-basis: auto; }
	.app-pp__card-media img { max-width: 320px; }
}
@media (max-width: 720px) {
	.app-pp__card { padding: 26px 22px; }
	.app-pp__nav { width: 38px; height: 38px; font-size: 18px; }
	.app-pp__components { gap: 4px; padding: 40px 12px; }
	.app-pp__link-line { width: 18px; }
	.app-pp__component-img { max-width: 100px; }
	.app-pp__card-text h2 { font-size: 28px; }
	.app-pp__card-text h3 { font-size: 24px; }
}
@media (max-width: 420px) {
	.app-pp__components { flex-direction: column; }
	.app-pp__link { transform: rotate(90deg); margin: 4px 0; }
}
