/* JC Plan Cards — leve, sem dependências */

.jcpc {
	--jcpc-gap: 16px;
	--jcpc-per: 3;
	--jcpc-peek: 0px;
	--jcpc-card-w: 320px;
	position: relative;
	box-sizing: border-box;
}

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

.jcpc ul { margin: 0; padding: 0; list-style: none; }

/* ---------- TABS ---------- */
.jcpc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 24px;
}

.jcpc-tab {
	flex: 0 0 auto;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	padding: 14px 28px;
	border: 1px solid #d7dde5;
	border-radius: 8px;
	background: #fff;
	color: #13315c;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.jcpc-tab.is-active {
	background: #1d3f74;
	border-color: #1d3f74;
	color: #fff;
}

.jcpc-tab:focus-visible,
.jcpc-arrow:focus-visible,
.jcpc-dot:focus-visible,
.jcpc-cta:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---------- TRACK ---------- */
.jcpc-viewport { overflow: hidden; }

.jcpc-track {
	display: flex;
	gap: var(--jcpc-gap);
	align-items: stretch;
}

/* modo TABS */
.jcpc[data-active-mode="tabs"] .jcpc-track { display: block; }
.jcpc[data-active-mode="tabs"] .jcpc-slide { display: none; }
.jcpc[data-active-mode="tabs"] .jcpc-slide.is-active {
	display: block;
	max-width: var(--jcpc-card-w);
	margin-left: auto;
	margin-right: auto;
}

/* modo CARROSSEL */
.jcpc[data-active-mode="carousel"] .jcpc-track {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 2px;
}
.jcpc[data-active-mode="carousel"] .jcpc-track::-webkit-scrollbar { display: none; }

.jcpc[data-active-mode="carousel"] .jcpc-slide {
	flex: 0 0 calc((100% - (var(--jcpc-gap) * (var(--jcpc-per) - 1))) / var(--jcpc-per) - var(--jcpc-peek));
	scroll-snap-align: start;
	display: block;
}

.jcpc[data-active-mode="carousel"].is-dragging .jcpc-track {
	scroll-behavior: auto;
	cursor: grabbing;
	scroll-snap-type: none;
}

/* ---------- CARD ---------- */
.jcpc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	transition: transform .25s ease, box-shadow .25s ease;
}

.jcpc-badge {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 0 0 0 12px;
	background: #ffd400;
	color: #0b3a66;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
}

/* topo */
.jcpc-card__head {
	position: relative;
	padding: 22px 22px 18px;
	background: linear-gradient(180deg, #0a63b0 0%, #1e9ae0 100%);
	color: #fff;
}

.jcpc-card__art {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 110px;
	height: auto;
	pointer-events: none;
}

.jcpc-ate {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	margin-bottom: 2px;
}

.jcpc-gigas {
	display: flex;
	align-items: flex-end;
	line-height: 1;
}

.jcpc-gigas__num {
	font-size: 58px;
	font-weight: 800;
	line-height: .9;
}

.jcpc-gigas__suffix {
	font-size: 24px;
	font-weight: 700;
	margin-left: 2px;
}

.jcpc-details {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.jcpc-detail {
	font-size: 12px;
	line-height: 1.3;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

/* corpo */
.jcpc-card__body {
	flex: 1 1 auto;
	padding: 18px 22px;
	background: #fff;
}

.jcpc-benefits {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jcpc-benefit {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.jcpc-benefit__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	font-size: 18px;
	color: #0a63b0;
	background: #eaf4fd;
	overflow: hidden;
}

.jcpc-benefit__icon svg { width: 1em; height: 1em; fill: currentColor; }
.jcpc-benefit__icon--img img { width: 100%; height: 100%; object-fit: cover; }

.jcpc-benefit__text { display: block; }

.jcpc-benefit__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	color: #0f2c4d;
}

.jcpc-benefit__sub {
	display: block;
	font-size: 12px;
	line-height: 1.35;
	color: #5a7086;
}

/* aplicativos */
.jcpc-apps { margin-top: 16px; }

.jcpc-apps__title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #7b8da0;
	margin-bottom: 10px;
}

.jcpc-apps__list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.jcpc-app {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 56px;
}

.jcpc-app__img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 50%;
}

.jcpc-app__name {
	font-size: 11px;
	line-height: 1.2;
	text-align: center;
	color: #5a7086;
}

/* rodapé */
.jcpc-card__footer {
	padding: 16px 22px 20px;
	background: #f6faff;
}

.jcpc-price__de {
	font-size: 12px;
	color: #7b8da0;
	text-decoration: line-through;
}

.jcpc-price { line-height: 1; }

.jcpc-price__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #0f2c4d;
	margin-bottom: 2px;
}

.jcpc-price__row {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
}

.jcpc-price__currency {
	font-size: 20px;
	font-weight: 700;
	color: #0f2c4d;
}

.jcpc-price__value {
	font-size: 44px;
	font-weight: 800;
	color: #0f2c4d;
}

.jcpc-price__period {
	font-size: 12px;
	font-weight: 600;
	color: #5a7086;
}

.jcpc-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 14px;
	padding: 14px 20px;
	border-radius: 8px;
	background: #ffd400;
	color: #0b3a66;
	font-weight: 800;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.jcpc-cta:hover { color: #0b3a66; }

.jcpc-note {
	margin-top: 8px;
	font-size: 11px;
	color: #7b8da0;
	text-align: center;
}

/* ---------- SETAS ---------- */
.jcpc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #0f2c4d;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(15, 44, 77, .18);
	transition: opacity .2s ease, background-color .2s ease;
}

.jcpc-arrow svg { width: 16px; height: 16px; }
.jcpc-arrow--prev { left: 6px; }
.jcpc-arrow--next { right: 6px; }
.jcpc-arrow[hidden] { display: none; }
.jcpc-arrow.is-disabled { opacity: .35; pointer-events: none; }

.jcpc--arrows-outside { padding-left: 56px; padding-right: 56px; }
.jcpc--arrows-outside .jcpc-arrow--prev { left: 0; }
.jcpc--arrows-outside .jcpc-arrow--next { right: 0; }

.jcpc--arrows-bottom { padding-bottom: 56px; }
.jcpc--arrows-bottom .jcpc-arrow { top: auto; bottom: 0; transform: none; }
.jcpc--arrows-bottom .jcpc-arrow--prev { left: calc(50% - 52px); }
.jcpc--arrows-bottom .jcpc-arrow--next { right: calc(50% - 52px); }

/* ---------- BOLINHAS ---------- */
.jcpc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.jcpc-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c9d6e2;
	cursor: pointer;
	transition: width .2s ease, background-color .2s ease;
}

.jcpc-dot.is-active { width: 22px; background: #0a63b0; }

/* ---------- ESTADOS ---------- */
.jcpc[data-active-mode="tabs"] .jcpc-arrow,
.jcpc[data-active-mode="tabs"] .jcpc-dots { display: none; }

.jcpc--mobile-carousel .jcpc-tabs { display: flex; }
@media (max-width: 767px) {
	.jcpc--mobile-carousel[data-active-mode="carousel"] .jcpc-tabs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.jcpc-track { scroll-behavior: auto; }
	.jcpc-card,
	.jcpc-cta,
	.jcpc-tab { transition: none; }
}

/* ---------- FAIXA DE PREVIEW DO AGENDADOR (so aparece no editor) ---------- */
.jcpc-preview-flag {
	margin: 0 0 10px;
	padding: 6px 12px;
	border: 1px solid #ffe08a;
	border-radius: 6px;
	background: #fff3cd;
	color: #7a5b00;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

/* ---------- MAIS DETALHES (expansivel abaixo do card) ---------- */
.jcpc-extras {
	border-top: 1px solid rgba(0, 0, 0, .08);
	text-align: left;
}

.jcpc-extras__toggle {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #0a63b0;
	user-select: none;
}

.jcpc-extras__toggle::-webkit-details-marker { display: none; }
.jcpc-extras__toggle::marker { content: ""; }

.jcpc-extras__chevron {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform .2s ease;
}

.jcpc-extras[open] .jcpc-extras__chevron { transform: rotate(180deg); }
.jcpc-extras[open] .jcpc-extras__more { display: none; }
.jcpc-extras:not([open]) .jcpc-extras__less { display: none; }

.jcpc-extras__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 4px 16px 16px;
}

.jcpc-extras__text { font-size: 14px; line-height: 1.5; }

.jcpc-extras__item-title {
	display: block;
	margin-bottom: 2px;
}

.jcpc-extras__img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.jcpc-extras__link {
	font-size: 14px;
	font-weight: 600;
	color: #0a63b0;
	text-decoration: underline;
}

.jcpc-extras__link:hover { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
	.jcpc-extras__chevron { transition: none; }
}
