/* The packages page (REQ-448, REQ-498 to REQ-501, REQ-557 to REQ-562), design ג of 11.10.2026: membership cards on the
   bright ground of design ב. Loaded on /packages/ only. */
.bnb-packages {
	/* The green that carries white text, in both themes: the dark theme turns --bnb-verified light (11.10 review). */
	--bnb-pk-green: #146b43;
	display: grid;
	gap: var(--bnb-space-6);
	/* A minimum of 0, or the comparison table's 36rem pushes the whole page sideways on a phone (11.10, run 2). */
	grid-template-columns: minmax(0, 1fr);
	padding-block: var(--bnb-space-6) var(--bnb-space-8);
	position: relative;
}

.bnb-packages::before {
	background:
		radial-gradient(520px 420px at 92% 0%, rgb(226 192 106 / 26%), transparent 65%),
		radial-gradient(460px 420px at 0% 28%, rgb(31 111 120 / 14%), transparent 65%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

/* ---------- The opening ---------- */
/* A picture under a navy veil, as in design ג. The veil is darkest where the text starts; the panel keeps its own
   colours in both themes. */
.bnb-pk-hero {
	background: #0d2244;
	border-radius: 28px;
	box-shadow: 0 24px 60px rgb(13 34 68 / 28%);
	color: #fff;
	display: grid;
	gap: var(--bnb-space-3);
	isolation: isolate;
	justify-items: start;
	overflow: hidden;
	padding: clamp(1.75rem, 5vw, 3.5rem);
	padding-block-end: calc(clamp(1.75rem, 5vw, 3.5rem) + 2.5rem);
	position: relative;
}

.bnb-pk-hero > :not(.bnb-pk-hero-art) {
	max-inline-size: 38rem;
}

.bnb-pk-hero-art {
	inset: 0;
	position: absolute;
	z-index: -2;
}

.bnb-pk-hero-art img {
	block-size: 100%;
	inline-size: 100%;
	max-inline-size: none;
	object-fit: cover;
}

.bnb-pk-hero::after {
	background: linear-gradient(270deg, rgb(13 34 68 / 94%) 0%, rgb(13 34 68 / 84%) 48%, rgb(13 34 68 / 35%) 100%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

[dir="ltr"] .bnb-pk-hero::after {
	background: linear-gradient(90deg, rgb(13 34 68 / 94%) 0%, rgb(13 34 68 / 84%) 48%, rgb(13 34 68 / 35%) 100%);
}

.bnb-pk-hero h1 {
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.12;
	margin: 0;
	text-wrap: balance;
}

.bnb-pk-hero .bnb-packages-lede {
	color: #dbe3ef;
}

.bnb-pk-hero .bnb-pk-kicker {
	border-radius: 18px;
	font-size: 0.95rem;
	justify-content: flex-start;
}

.bnb-packages-lede {
	color: var(--bnb-ink-soft);
	font-size: 1.15rem;
	margin: 0;
	max-inline-size: 46rem;
}

.bnb-pk-kicker {
	align-items: center;
	background: rgb(255 255 255 / 12%);
	border: 1px solid rgb(255 255 255 / 28%);
	border-radius: var(--bnb-r-pill);
	color: #fff;
	display: inline-flex;
	flex-wrap: wrap;
	font-weight: 600;
	gap: var(--bnb-space-2);
	justify-content: center;
	margin: 0;
	padding: var(--bnb-space-2) var(--bnb-space-4);
}

.bnb-pk-kicker strong {
	background: var(--bnb-gold-bright);
	border-radius: var(--bnb-r-pill);
	color: var(--bnb-navy-950);
	font-size: 0.85rem;
	padding: 2px 10px;
}

.bnb-pk-kicker a {
	color: #f4dc93;
	font-weight: 700;
}

/* ---------- The period, chosen on the page itself ---------- */
.bnb-pk-periods {
	background: var(--bnb-surface);
	margin-block-start: calc(-1 * (var(--bnb-space-6) + 1.75rem));
	position: relative;
	z-index: 1;
	border: 1px solid var(--bnb-line);
	border-radius: var(--bnb-r-pill);
	box-shadow: 0 10px 26px rgb(20 27 44 / 10%);
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	inline-size: fit-content;
	justify-content: center;
	margin-inline: auto;
	max-inline-size: 100%;
	padding: 5px;
}

.bnb-pk-radio {
	block-size: 1px;
	inline-size: 1px;
	opacity: 0;
	position: absolute;
}

.bnb-pk-periods label {
	border-radius: var(--bnb-r-pill);
	color: var(--bnb-ink-soft);
	cursor: pointer;
	font-weight: 700;
	padding: 8px 16px;
}

.bnb-pk-periods label small {
	font-weight: 600;
	opacity: 0.85;
}

.bnb-pk-radio:checked + label {
	background: var(--bnb-pk-green);
	color: #fff;
}

/* Windows high contrast paints no backgrounds: the chosen period keeps a frame. */
@media (forced-colors: active) {
	.bnb-pk-radio:checked + label {
		outline: 2px solid highlight;
	}
}

.bnb-pk-radio:focus-visible + label {
	outline: 3px solid var(--bnb-gold-bright);
	outline-offset: 2px;
}

/* The year shows first. This rule stays apart from the :has() rules below: a browser that does not know :has() drops a
   whole selector list that contains it, and the card would show all three prices and three buttons (11.10 review). */
.bnb-pk-price.is-quarter,
.bnb-pk-price.is-month,
.bnb-pk-cta.is-quarter,
.bnb-pk-cta.is-month {
	display: none;
}

.bnb-packages:has(#bnb-pk-quarter:checked) .bnb-pk-price.is-year,
.bnb-packages:has(#bnb-pk-quarter:checked) .bnb-pk-cta.is-year,
.bnb-packages:has(#bnb-pk-month:checked) .bnb-pk-price.is-year,
.bnb-packages:has(#bnb-pk-month:checked) .bnb-pk-cta.is-year {
	display: none;
}

.bnb-packages:has(#bnb-pk-quarter:checked) .bnb-pk-price.is-quarter,
.bnb-packages:has(#bnb-pk-month:checked) .bnb-pk-price.is-month {
	display: block;
}

.bnb-packages:has(#bnb-pk-quarter:checked) .bnb-pk-cta.is-quarter,
.bnb-packages:has(#bnb-pk-month:checked) .bnb-pk-cta.is-month {
	display: inline-flex;
}

/* The circle has no quarter: under „רבעוני” it keeps its year. */
.bnb-packages:has(#bnb-pk-quarter:checked) .bnb-pk-price.keeps-quarter {
	display: block;
}

.bnb-packages:has(#bnb-pk-quarter:checked) .bnb-pk-cta.keeps-quarter {
	display: inline-flex;
}

/* Without :has() the switch would move nothing: the year stands alone. */
@supports not selector(:has(*)) {
	.bnb-pk-periods {
		display: none;
	}
}

/* ---------- The three tiers ---------- */
.bnb-packages-cards {
	align-items: start;
	display: grid;
	gap: var(--bnb-space-5);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bnb-package {
	background: var(--bnb-surface);
	border: 1px solid var(--bnb-line);
	border-radius: 26px;
	box-shadow: 0 18px 44px rgb(20 27 44 / 10%), 0 2px 6px rgb(20 27 44 / 6%);
	display: flex;
	flex-direction: column;
	gap: var(--bnb-space-3);
	padding: var(--bnb-space-5);
	position: relative;
}

.bnb-package.is-best {
	border: 2px solid var(--bnb-verified);
	box-shadow: 0 26px 56px rgb(20 107 67 / 18%), 0 2px 6px rgb(20 27 44 / 6%);
}

.bnb-package.is-premium {
	border: 2px solid var(--bnb-gold-bright);
	box-shadow: 0 26px 56px rgb(138 100 32 / 20%), 0 2px 6px rgb(20 27 44 / 6%);
}

.bnb-package.is-current {
	outline: 3px solid var(--bnb-verified);
	outline-offset: 3px;
}

.bnb-package h2 {
	color: var(--bnb-heading-ink);
	font-size: 1.4rem;
	margin: 0;
}

.bnb-package-tag {
	color: var(--bnb-muted);
	font-weight: 600;
	margin: -0.4rem 0 0;
}

.bnb-package-price {
	color: var(--bnb-heading-ink);
	font-size: 2.3rem;
	font-variant-numeric: tabular-nums;
	font-weight: 900;
	line-height: 1.05;
	margin: 0;
}

.bnb-package-price small {
	color: var(--bnb-muted);
	font-size: 0.95rem;
	font-weight: 600;
}

.bnb-package-alt {
	color: var(--bnb-ink-soft);
	font-size: 0.95rem;
	margin: 0.2rem 0 0;
}

.bnb-pk-deal {
	background: rgb(20 107 67 / 10%);
	border-radius: var(--bnb-r-pill);
	color: var(--bnb-verified);
	display: inline-block;
	font-weight: 800;
	margin: 0.5rem 0 0;
	padding: 3px 12px;
}

.bnb-package-badge,
.bnb-package-current {
	background: var(--bnb-pk-green);
	border-radius: var(--bnb-r-pill);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 800;
	inset-block-start: -14px;
	inset-inline-start: var(--bnb-space-5);
	margin: 0;
	padding: 3px 14px;
	position: absolute;
	z-index: 1;
}

.bnb-package-owner {
	background: var(--bnb-gold-pale);
	border-inline-start: 4px solid var(--bnb-gold-bright);
	border-radius: var(--bnb-r-sm);
	color: var(--bnb-gold-ink);
	font-weight: 700;
	margin: 0;
	padding: var(--bnb-space-2) var(--bnb-space-3);
}

.bnb-package-list {
	display: grid;
	gap: var(--bnb-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bnb-package-list li {
	display: flex;
	gap: var(--bnb-space-2);
}

.bnb-package-list li::before {
	color: var(--bnb-verified);
	content: "✓";
	flex: none;
	font-weight: 800;
}

.bnb-package-list li.is-plus::before {
	color: var(--bnb-gold);
	content: "+";
}

.bnb-package .bnb-button {
	margin-block: var(--bnb-space-1);
}

.bnb-pk-cta {
	justify-content: center;
}

/* The site's button paints its text navy with !important, which on green or black would vanish. */
.bnb-package.is-best .bnb-pk-cta {
	background: var(--bnb-pk-green);
	border-color: var(--bnb-pk-green);
	color: #fff !important;
}

.bnb-package.is-best .bnb-pk-cta:hover {
	background: #0f5c3b;
}

.bnb-package.is-premium .bnb-pk-cta {
	background: #0b0a08;
	border-color: #8a6420;
	color: #f4dc93 !important;
}

.bnb-package.is-premium .bnb-pk-cta:hover {
	background: #1b1407;
}

/* Two classes: the portal's `.bnb-portal-page img` caps every picture at its box, and this one runs edge to edge. */
.bnb-package .bnb-pk-tier-art {
	aspect-ratio: 16 / 7;
	block-size: auto;
	border-radius: 24px 24px 0 0;
	display: block;
	inline-size: calc(100% + 2 * var(--bnb-space-5));
	margin: calc(-1 * var(--bnb-space-5)) calc(-1 * var(--bnb-space-5)) 0;
	max-inline-size: none;
	object-fit: cover;
}

.bnb-package .bnb-pk-tier-art + .bnb-pk-card {
	align-self: center;
	inline-size: 84%;
	margin-block-start: -4.25rem;
}

/* The circle's advertising, in its own band (design ג). */
.bnb-pk-ads {
	background: #0d2244;
	border-radius: 26px;
	box-shadow: 0 16px 40px rgb(13 34 68 / 25%);
	color: #fff;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	overflow: hidden;
}

.bnb-pk-ads-text {
	align-content: center;
	display: grid;
	gap: var(--bnb-space-2);
	padding: clamp(1.25rem, 4vw, 2.25rem);
}

.bnb-pk-ads h2 {
	color: #f4dc93;
	font-size: 1.45rem;
	margin: 0;
}

.bnb-pk-ads p {
	color: #d6def0;
	margin: 0;
}

.bnb-pk-ads img {
	block-size: 100%;
	inline-size: 100%;
	max-inline-size: none;
	min-block-size: 13rem;
	object-fit: cover;
}

/* Seen by the team only: a tool on the premium card that is still being built. */
.bnb-package-soon {
	background: var(--bnb-gold-pale);
	border-radius: var(--bnb-r-pill);
	color: var(--bnb-gold-ink);
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0 8px;
}

/* ---------- The membership card, drawn in CSS ---------- */
.bnb-pk-card {
	aspect-ratio: 1.586;
	border-radius: 18px;
	box-shadow: 0 18px 36px rgb(10 20 38 / 28%);
	color: #fff;
	display: grid;
	grid-template-rows: auto 1fr auto;
	max-inline-size: min(100%, 22rem);
	overflow: hidden;
	padding: 18px;
	position: relative;
	transform: perspective(900px) rotateX(4deg) rotateY(-5deg);
	transition: transform 0.35s ease;
}

.bnb-package:hover .bnb-pk-card {
	transform: perspective(900px) translateY(-4px);
}

.bnb-pk-card::before {
	background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 28%) 45%, transparent 60%);
	content: "";
	inset: 0;
	mix-blend-mode: overlay;
	position: absolute;
}

.bnb-pk-card-top {
	align-items: center;
	display: flex;
	font-weight: 800;
	gap: 10px;
}

.bnb-pk-emblem {
	background: radial-gradient(circle at 30% 30%, #fff3cc, #c8a24a 60%, #8a6420);
	block-size: 34px;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
	color: #1a1406;
	display: grid;
	font-weight: 900;
	inline-size: 34px;
	place-items: center;
}

.bnb-pk-card-name {
	align-self: end;
	font-size: 1.35rem;
	font-weight: 900;
}

.bnb-pk-card-line {
	font-weight: 700;
	opacity: 0.9;
}

.bnb-pk-card.is-silver {
	background: linear-gradient(135deg, #f5f7fb 0%, #c9d1df 40%, #eef1f7 60%, #aeb8c9 100%);
	color: #1d2740;
}

.bnb-pk-card.is-emerald {
	background: linear-gradient(135deg, #0f5c3b 0%, #1d8a5a 45%, #0c4a30 100%);
}

.bnb-pk-card.is-gold {
	background: radial-gradient(120% 140% at 0% 0%, #2b2412 0%, #0b0a08 55%), #0b0a08;
	border: 1px solid #8a6420;
	color: #f4dc93;
}

.bnb-pk-card.is-gold .bnb-pk-card-name {
	background: linear-gradient(135deg, #fff3cc, #e2c06a 45%, #b8892f);
	background-clip: text;
	color: transparent;
}

/* ---------- The comparison, the steps ---------- */
.bnb-packages-compare h2,
.bnb-packages-steps h2,
.bnb-pk-terms h2 {
	color: var(--bnb-heading-ink);
	font-size: 1.3rem;
	margin: 0 0 var(--bnb-space-3);
}

.bnb-packages-compare .bnb-table-scroll {
	background: var(--bnb-surface);
	border: 1px solid var(--bnb-line);
	border-radius: var(--bnb-r-lg);
	box-shadow: 0 12px 30px rgb(20 27 44 / 8%);
	overflow-x: auto;
	/* The hidden כן and לא are absolutely placed; without this they escape the scroll box and widen the page. */
	position: relative;
}

.bnb-packages-compare table {
	border-collapse: collapse;
	inline-size: 100%;
	min-inline-size: 36rem;
}

.bnb-packages-compare th,
.bnb-packages-compare td {
	border-block-end: 1px solid var(--bnb-line);
	padding: var(--bnb-space-3) var(--bnb-space-4);
	text-align: center;
}

.bnb-packages-compare th[scope="row"],
.bnb-packages-compare thead th:first-child {
	text-align: start;
}

.bnb-packages-compare thead th {
	background: var(--bnb-surface-2);
}

.bnb-yes {
	color: var(--bnb-verified);
	font-weight: 800;
}

.bnb-no {
	color: var(--bnb-muted);
}

.bnb-packages-steps ol {
	counter-reset: bnb-step;
	display: grid;
	gap: var(--bnb-space-3);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.bnb-packages-steps li {
	background: var(--bnb-surface);
	border: 1px dashed var(--bnb-gold-bright);
	border-radius: var(--bnb-r);
	counter-increment: bnb-step;
	padding: var(--bnb-space-4);
}

.bnb-packages-steps li::before {
	color: var(--bnb-gold-ink);
	content: counter(bnb-step) ". ";
	font-weight: 800;
}

/* ---------- The details page: „לרכישה” ---------- */
.bnb-pk-buy {
	display: grid;
	gap: var(--bnb-space-4);
	margin-inline: auto;
	max-inline-size: 46rem;
}

.bnb-pk-back {
	margin: 0;
}

.bnb-pk-buy-head {
	align-items: center;
	display: grid;
	gap: var(--bnb-space-5);
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
}

.bnb-pk-buy h1 {
	color: var(--bnb-heading-ink);
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	margin: 0 0 var(--bnb-space-2);
	text-wrap: balance;
}

.bnb-packages-form {
	background: var(--bnb-surface);
	border: 1px solid var(--bnb-line);
	border-radius: var(--bnb-r-lg);
	box-shadow: 0 14px 36px rgb(20 27 44 / 8%);
	display: grid;
	gap: var(--bnb-space-2);
	padding: var(--bnb-space-5);
}

.bnb-packages-form fieldset {
	border: 0;
	display: grid;
	gap: var(--bnb-space-2);
	margin: 0 0 var(--bnb-space-2);
	padding: 0;
}

.bnb-packages-form legend {
	font-weight: 700;
	margin-block-end: var(--bnb-space-2);
}

.bnb-packages-form label {
	font-weight: 600;
}

.bnb-pk-terms {
	display: grid;
	gap: var(--bnb-space-2);
	margin-block-start: var(--bnb-space-3);
}

.bnb-pk-terms-box {
	background: var(--bnb-surface-2);
	border: 1px solid var(--bnb-line);
	border-radius: var(--bnb-r);
	max-block-size: 16rem;
	overflow-y: auto;
	padding: var(--bnb-space-3) var(--bnb-space-4);
}

.bnb-pk-terms-box h3 {
	font-size: 1rem;
	margin: var(--bnb-space-3) 0 var(--bnb-space-1);
}

.bnb-pk-terms-box h3:first-child {
	margin-block-start: 0;
}

.bnb-pk-terms-box p {
	color: var(--bnb-ink-soft);
	margin: 0;
}

.bnb-pk-progress {
	background: var(--bnb-line);
	block-size: 6px;
	border-radius: 6px;
	overflow: hidden;
}

.bnb-pk-progress span {
	background: var(--bnb-verified);
	block-size: 100%;
	display: block;
	inline-size: 0;
}

.bnb-pk-accept {
	font-weight: 700;
}

.bnb-packages-form .bnb-button {
	justify-self: start;
	margin-block-start: var(--bnb-space-2);
}

.bnb-packages-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bnb-space-3);
	margin: var(--bnb-space-3) 0 0;
}

.bnb-packages-small {
	color: var(--bnb-muted);
	font-size: 0.9rem;
	margin: 0;
}

.bnb-pk-thanks {
	background: var(--bnb-surface);
	border: 1px solid var(--bnb-line);
	border-radius: var(--bnb-r-lg);
	padding: var(--bnb-space-5);
}

.bnb-pk-thanks h1 {
	color: var(--bnb-verified);
}

@media (max-width: 52rem) {
	.bnb-packages-cards,
	.bnb-packages-steps ol,
	.bnb-pk-buy-head {
		grid-template-columns: minmax(0, 1fr);
	}

	.bnb-package.is-best {
		order: -1;
	}

	.bnb-pk-card {
		transform: none;
	}

	.bnb-pk-ads {
		grid-template-columns: minmax(0, 1fr);
	}

	.bnb-pk-ads img {
		aspect-ratio: 16 / 7;
		min-block-size: 0;
	}
}

@media (max-width: 40rem) {
	.bnb-pk-hero::after,
	[dir="ltr"] .bnb-pk-hero::after {
		background: rgb(13 34 68 / 84%);
	}
}

/* The regular price of full membership, struck beside the launch offer that brings it to zero (12.10.2026). */
.bnb-pk-was {
	color: var(--bnb-muted);
	font-size: 1.1rem;
	font-weight: 700;
	margin-inline-start: 0.35rem;
}
