/*
 * Nandi element library.
 * These selectors are intentionally limited to nfb-template-* and
 * nfb-pattern-* classes so an inserted section cannot restyle the theme.
 */
.nfb-template-setup-note {
	display: none !important;
}

.nfb-template-hero,
.nfb-template-section,
.nfb-template-band,
.nfb-template-trust,
.nfb-pattern-header,
.nfb-pattern-price-card,
.nfb-pattern-form-intro,
.nfb-pattern-urgency,
.nfb-pattern-guarantee,
.nfb-pattern-quote,
.nfb-pattern-support,
.nfb-pattern-confirmation,
.nfb-pattern-access,
.nfb-pattern-legal,
.nfb-pattern-lesson {
	box-sizing: border-box;
}

.nfb-template-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 2rem;
	padding: clamp(2rem, 7vw, 4.5rem);
	border: 1px solid color-mix(in srgb, var(--nfb-primary, #176b55) 16%, transparent);
	border-radius: 1.875rem;
	background:
		radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--nfb-primary, #176b55) 18%, transparent), transparent 36%),
		linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--nfb-primary, #176b55) 8%, #fff) 100%);
	box-shadow: 0 1.25rem 3.5rem rgba(31, 41, 51, .07);
}

.nfb-pattern-hero-centered {
	text-align: center;
}

.nfb-pattern-hero-centered .nfb-template-title,
.nfb-pattern-hero-centered .nfb-template-lead,
.nfb-pattern-video-hero .nfb-template-title,
.nfb-pattern-video-hero .nfb-template-lead {
	margin-right: auto;
	margin-left: auto;
}

.nfb-pattern-video-hero,
.nfb-pattern-final-cta {
	text-align: center;
}

.nfb-pattern-final-cta .nfb-button {
	border-color: #fff;
	background: #fff;
	color: var(--nfb-primary, #176b55) !important;
}

.editor-styles-wrapper .nfb-pattern-final-cta .nfb-next-editor-block {
	justify-content: center;
}

.editor-styles-wrapper .nfb-pattern-final-cta .nfb-next-editor-block .nfb-fake-next {
	border-color: #fff;
	background: #fff;
	color: var(--nfb-primary, #176b55);
}

.nfb-pattern-hero-split .nfb-template-title {
	font-size: clamp(2rem, 4vw, 3.8rem);
}

.nfb-template-eyebrow,
.nfb-pattern-kicker {
	margin: 0 0 .875rem;
	color: var(--nfb-primary, #176b55);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.nfb-template-title {
	max-width: 18ch;
	margin: 0 0 1.25rem;
	font-size: clamp(2.15rem, 6vw, 4.7rem);
	line-height: 1.04;
	letter-spacing: -.045em;
}

.nfb-template-lead {
	max-width: 45rem;
	margin: 0 0 .5rem;
	color: color-mix(in srgb, var(--nfb-text, #1f2933) 78%, transparent);
	font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.nfb-template-section {
	margin: clamp(2.4rem, 7vw, 4.875rem) 0;
}

.nfb-template-section-title {
	max-width: 22ch;
	margin: 0 0 1.5rem;
	font-size: clamp(1.75rem, 4vw, 2.7rem);
	line-height: 1.13;
	letter-spacing: -.025em;
}

.nfb-template-grid,
.nfb-pattern-comparison,
.nfb-pattern-plans,
.nfb-pattern-product,
.nfb-pattern-author,
.nfb-pattern-split {
	gap: clamp(1rem, 3vw, 2rem);
}

.nfb-template-card {
	height: 100%;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid rgba(31, 41, 51, .1);
	border-radius: 1.125rem;
	background: #fff;
	box-shadow: 0 .75rem 1.875rem rgba(31, 41, 51, .05);
}

.nfb-template-card-number {
	margin: 0 0 .75rem;
}

.nfb-template-number {
	display: inline-grid;
	min-width: 2.375rem;
	height: 2.375rem;
	padding: 0 .55rem;
	place-items: center;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nfb-primary, #176b55) 12%, #fff);
	color: var(--nfb-primary, #176b55);
	font-size: .84rem;
	font-weight: 800;
}

.nfb-template-card-title {
	margin: 0 0 .55rem;
	font-size: 1.18rem;
	line-height: 1.25;
}

.nfb-template-card p:last-child,
.nfb-template-band p:last-child,
.nfb-pattern-quote p:last-child,
.nfb-pattern-support p:last-child,
.nfb-pattern-access p:last-child {
	margin-bottom: 0;
}

.nfb-template-band {
	margin: 2.625rem 0;
	padding: clamp(1.6rem, 5vw, 2.75rem);
	border-radius: 1.375rem;
	background: var(--nfb-primary, #176b55);
	color: #fff;
}

.nfb-template-band h1,
.nfb-template-band h2,
.nfb-template-band h3,
.nfb-template-band p,
.nfb-template-band .nfb-template-eyebrow {
	color: #fff;
}

.nfb-template-band h2 {
	margin-top: 0;
}

.nfb-template-trust {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem 1.25rem;
	margin: 1.25rem .25rem 2.75rem;
	color: color-mix(in srgb, var(--nfb-text, #1f2933) 74%, transparent);
	font-size: .9rem;
	font-weight: 650;
}

.nfb-template-small {
	margin-top: 1.125rem;
	color: color-mix(in srgb, var(--nfb-text, #1f2933) 68%, transparent);
	font-size: .88rem;
}

.nfb-template-checklist {
	display: grid;
	gap: .75rem;
	padding: 0;
	list-style: none;
}

.nfb-template-checklist li {
	position: relative;
	padding: .95rem 1.1rem .95rem 3rem;
	border: 1px solid rgba(31, 41, 51, .1);
	border-radius: .75rem;
	background: #fff;
}

.nfb-template-checklist li::before {
	position: absolute;
	left: 1.125rem;
	color: var(--nfb-primary, #176b55);
	font-weight: 800;
	content: "✓";
}

.nfb-template-faq-item {
	margin: 0 0 .75rem;
	padding: 1.25rem 1.375rem;
	border: 1px solid rgba(31, 41, 51, .1);
	border-radius: .875rem;
	background: #fff;
}

.nfb-template-faq-item h3 {
	margin: 0 0 .45rem;
}

.nfb-template-faq-item p {
	margin: 0;
}

.nfb-pattern-header {
	align-items: center;
	margin-bottom: 1.5rem;
	padding: .85rem 1rem;
	border-bottom: 1px solid rgba(31, 41, 51, .1);
}

.nfb-pattern-brand {
	margin: 0;
	color: var(--nfb-primary, #176b55);
	font-size: 1.15rem;
	font-weight: 850;
	letter-spacing: .08em;
}

.nfb-pattern-header-trust {
	margin: 0;
	color: color-mix(in srgb, var(--nfb-text, #1f2933) 72%, transparent);
	font-size: .86rem;
	text-align: right;
}

.nfb-pattern-split {
	align-items: center !important;
}

.nfb-pattern-split-copy {
	padding: clamp(.25rem, 2vw, 1.25rem);
}

.nfb-pattern-portrait img,
.nfb-pattern-author-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 1.25rem;
	object-fit: cover;
	box-shadow: 0 1rem 2.5rem rgba(31, 41, 51, .14);
}

.nfb-pattern-video-placeholder,
.nfb-pattern-media-placeholder {
	display: grid;
	min-height: 15rem;
	margin: 1.5rem 0;
	padding: 2rem;
	place-content: center;
	place-items: center;
	gap: .5rem;
	border: 1px dashed color-mix(in srgb, var(--nfb-primary, #176b55) 45%, #9aa5b1);
	border-radius: 1.125rem;
	background: linear-gradient(135deg, color-mix(in srgb, var(--nfb-primary, #176b55) 9%, #fff), #fff);
	color: var(--nfb-primary, #176b55);
	text-align: center;
}

.nfb-pattern-video-placeholder > *,
.nfb-pattern-media-placeholder > * {
	margin-block: 0 !important;
}

.nfb-pattern-video-placeholder h3,
.nfb-pattern-video-placeholder p {
	color: #fff;
}

.nfb-pattern-video-placeholder {
	aspect-ratio: 16 / 9;
	min-height: 0;
	background: linear-gradient(145deg, #173d34, #176b55);
	color: #fff;
}

.nfb-pattern-media-icon {
	display: grid;
	width: 4.25rem;
	height: 4.25rem;
	margin: 0 auto .75rem;
	place-items: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	font-size: 1.7rem;
}

.nfb-pattern-media-placeholder .nfb-pattern-media-icon {
	background: color-mix(in srgb, var(--nfb-primary, #176b55) 12%, #fff);
}

.nfb-pattern-media-label {
	margin: 0;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .11em;
}

.nfb-pattern-card-muted {
	background: #f5f7f6;
	color: #58645f;
}

.nfb-pattern-card-accent,
.nfb-pattern-plan-featured {
	border-color: color-mix(in srgb, var(--nfb-primary, #176b55) 50%, transparent);
	background: color-mix(in srgb, var(--nfb-primary, #176b55) 6%, #fff);
	box-shadow: 0 .85rem 2.25rem color-mix(in srgb, var(--nfb-primary, #176b55) 13%, transparent);
}

.nfb-pattern-list-muted li::before {
	color: #84918c;
	content: "—";
}

.nfb-pattern-list-muted {
	display: grid;
	gap: .75rem;
	padding: 0;
	list-style: none;
}

.nfb-pattern-list-muted li {
	position: relative;
	padding: .65rem 0 .65rem 1.5rem;
}

.nfb-pattern-list-muted li::before {
	position: absolute;
	left: 0;
	font-weight: 800;
}

.nfb-pattern-price-card,
.nfb-pattern-form-intro,
.nfb-pattern-access,
.nfb-pattern-lesson {
	margin: 2rem auto;
	padding: clamp(1.5rem, 5vw, 3rem);
	border: 1px solid rgba(31, 41, 51, .11);
	border-radius: 1.375rem;
	background: #fff;
	box-shadow: 0 1rem 2.75rem rgba(31, 41, 51, .08);
}

.nfb-pattern-price-card {
	max-width: 42rem;
	border-top: .35rem solid var(--nfb-primary, #176b55);
	text-align: center;
}

.nfb-pattern-price-card .nfb-template-checklist {
	text-align: left;
}

.nfb-pattern-form-intro,
.nfb-pattern-access {
	max-width: 48rem;
	text-align: center;
}

.nfb-pattern-form-intro .nfb-template-trust {
	justify-content: center;
	margin-bottom: 0;
}

.nfb-pattern-lesson {
	max-width: 56rem;
}

.nfb-pattern-price-row {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: baseline;
	margin: 1.25rem 0;
}

.nfb-pattern-price-card .nfb-pattern-price-row {
	justify-content: center;
}

.nfb-pattern-price-row del {
	color: #6b7280;
}

.nfb-pattern-price {
	margin-left: .35rem;
	color: var(--nfb-primary, #176b55);
	font-size: clamp(1.7rem, 4vw, 2.7rem);
	line-height: 1;
}

.nfb-pattern-plans {
	align-items: stretch !important;
}

.nfb-pattern-plan {
	position: relative;
}

.nfb-pattern-plan-featured::before {
	position: absolute;
	top: 0;
	right: 1.2rem;
	padding: .35rem .7rem;
	border-radius: 0 0 .55rem .55rem;
	background: var(--nfb-primary, #176b55);
	color: #fff;
	font-size: .65rem;
	font-weight: 800;
	letter-spacing: .08em;
	content: "DOPORUČENO";
}

.nfb-pattern-product,
.nfb-pattern-author {
	align-items: center !important;
}

.nfb-pattern-product-copy,
.nfb-pattern-author-copy {
	padding: clamp(.5rem, 3vw, 1.75rem);
}

.nfb-pattern-portrait,
.nfb-pattern-author-photo {
	margin: 0;
}

.nfb-pattern-urgency {
	margin: 1.75rem 0;
	padding: 1.05rem 1.25rem;
	border: 1px solid #f0b45a;
	border-radius: .8rem;
	background: #fff7e8;
	color: #663c00;
	text-align: center;
}

.nfb-pattern-urgency-title {
	margin: 0 0 .25rem;
	font-weight: 850;
	letter-spacing: .045em;
}

.nfb-pattern-guarantee,
.nfb-pattern-support {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	margin: 2rem 0;
	padding: 1.5rem;
	border: 1px solid color-mix(in srgb, var(--nfb-primary, #176b55) 28%, transparent);
	border-radius: 1rem;
	background: color-mix(in srgb, var(--nfb-primary, #176b55) 5%, #fff);
}

.nfb-pattern-seal,
.nfb-pattern-support-icon,
.nfb-pattern-confirm-icon {
	display: grid;
	flex: 0 0 auto;
	width: 4rem;
	height: 4rem;
	margin: 0;
	place-items: center;
	border-radius: 999px;
	background: var(--nfb-primary, #176b55);
	color: #fff;
	font-size: 1.65rem;
	font-weight: 900;
}

.nfb-pattern-guarantee-copy h3,
.nfb-pattern-support-copy h3 {
	margin-top: 0;
}

.nfb-pattern-guarantee > *,
.nfb-pattern-support > * {
	margin-block: 0 !important;
}

.nfb-pattern-guarantee-copy,
.nfb-pattern-support-copy {
	min-width: 0;
}

.nfb-pattern-guarantee-copy h3,
.nfb-pattern-support-copy h3,
.nfb-pattern-guarantee-copy p:last-child,
.nfb-pattern-support-copy p:last-child {
	margin-bottom: 0;
}

.nfb-pattern-quote {
	margin: 2rem 0;
	padding: clamp(1.5rem, 5vw, 3rem);
	border-left: .35rem solid var(--nfb-primary, #176b55);
	border-radius: 0 1rem 1rem 0;
	background: #fff;
	box-shadow: 0 .75rem 2rem rgba(31, 41, 51, .06);
	font-style: normal;
}

.nfb-pattern-quote cite {
	display: block;
	margin-top: 1rem;
	color: color-mix(in srgb, var(--nfb-text, #1f2933) 68%, transparent);
	font-style: normal;
	font-weight: 700;
}

.nfb-pattern-quote > p:first-child {
	margin-top: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 3vw, 1.8rem);
	line-height: 1.45;
}

.nfb-pattern-confirmation {
	margin: 0 0 2rem;
	padding: clamp(2rem, 6vw, 4rem);
	border-radius: 1.5rem;
	background: color-mix(in srgb, var(--nfb-primary, #176b55) 7%, #fff);
	text-align: center;
}

.nfb-pattern-confirm-icon {
	margin: 0 auto 1.25rem;
}

.nfb-pattern-confirmation .nfb-template-title,
.nfb-pattern-confirmation .nfb-template-lead {
	margin-right: auto;
	margin-left: auto;
}

.nfb-pattern-reflection {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border-left: .3rem solid var(--nfb-primary, #176b55);
	border-radius: 0 .8rem .8rem 0;
	background: color-mix(in srgb, var(--nfb-primary, #176b55) 6%, #fff);
}

.nfb-pattern-color-bridge {
	background: linear-gradient(125deg, #7d3d79, #176b55 48%, #ba7d25);
}

.nfb-pattern-legal {
	margin-top: 3rem;
	padding: 1.25rem;
	border-top: 1px solid rgba(31, 41, 51, .12);
	color: color-mix(in srgb, var(--nfb-text, #1f2933) 68%, transparent);
	text-align: center;
}

.nfb-pattern-legal-links {
	margin-bottom: .35rem;
	font-weight: 650;
}

/* Instructions are visible only while editing; visitors never see them. */
.editor-styles-wrapper .nfb-template-setup-note,
.block-editor-block-preview__content .nfb-template-setup-note {
	display: block !important;
	margin: 1.125rem 0;
	padding: .875rem 1.125rem;
	border: 1px solid #dba617;
	border-left-width: .32rem;
	border-radius: .5rem;
	background: #fff8df;
	color: #4d3b08;
	font-size: .88rem;
}

.editor-styles-wrapper .nfb-template-setup-note p,
.block-editor-block-preview__content .nfb-template-setup-note p {
	margin: 0;
}

@media (max-width: 782px) {
	.nfb-pattern-header-trust {
		text-align: left;
	}

	.nfb-pattern-split,
	.nfb-pattern-product,
	.nfb-pattern-author,
	.nfb-pattern-comparison,
	.nfb-pattern-plans {
		display: grid;
		grid-template-columns: 1fr;
	}

	.nfb-pattern-header {
		display: grid;
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.nfb-template-hero {
		padding: 1.75rem 1.35rem;
		border-radius: 1.25rem;
	}

	.nfb-template-grid,
	.nfb-template-trust {
		display: grid;
	}

	.nfb-template-band {
		border-radius: 1rem;
	}

	.nfb-pattern-guarantee,
	.nfb-pattern-support {
		align-items: flex-start;
	}

	.nfb-pattern-seal,
	.nfb-pattern-support-icon,
	.nfb-pattern-confirm-icon {
		width: 3rem;
		height: 3rem;
	}
}
