/*
 * BeA.I Theme – közös stílusok mindkét változathoz.
 * A színek és a változatfüggő értékek a tokens-*.css fájlokban vannak (--beai-*).
 * Töréspontok: < 768 mobil · 768–1023 tablet · ≥ 1024 desktop. A menü 900 px alatt vált hamburgerre.
 */

:root {
	--beai-gutter: 20px;
	--beai-h1: var(--beai-h1-size-mobile);
	--beai-h1-lh: var(--beai-h1-line-mobile);
	--beai-h1-ls: -1px;
	--beai-h2: 22px;
	--beai-header-h: 64px;
	--beai-mobile-bar-h: 0px;
}

@media (min-width: 768px) {
	:root {
		--beai-gutter: 40px;
		--beai-h1: calc((var(--beai-h1-size-mobile) + var(--beai-h1-size)) / 2);
		--beai-h1-lh: var(--beai-h1-line);
		--beai-h2: 26px;
	}
}

@media (min-width: 1024px) {
	:root {
		--beai-gutter: 80px;
		--beai-h1: var(--beai-h1-size);
		--beai-h1-ls: -1.5px;
		--beai-h2: 30px;
		--beai-header-h: 84px;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--beai-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--beai-accent);
	color: var(--beai-bg);
}

/* Képernyőolvasónak szóló, látható szöveg nélküli elemek */
.screen-reader-text:not(:focus) {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ------------------------------------------------------------------
 * Fejléc
 * ------------------------------------------------------------------ */

.beai-header {
	position: relative;
	z-index: 50;
}

.beai-header__bar {
	min-height: var(--beai-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.beai-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
}

.beai-brand a {
	display: inline-flex;
	align-items: center;
	gap: inherit;
	min-height: 44px;
	color: var(--beai-text);
	text-decoration: none;
}

.beai-brand a::before {
	content: "";
	flex-shrink: 0;
	box-sizing: border-box;
	width: var(--beai-mark-size-mobile);
	height: var(--beai-mark-size-mobile);
	border: 2px solid var(--beai-mark-color);
	border-radius: 50%;
	box-shadow: var(--beai-mark-shadow);
}

@media (min-width: 1024px) {
	.beai-brand {
		gap: 12px;
		font-size: 18px;
	}

	.beai-brand a::before {
		width: var(--beai-mark-size);
		height: var(--beai-mark-size);
	}
}

/* Menü + gomb */
.beai-header__menu {
	display: flex;
	align-items: center;
	gap: var(--beai-nav-gap);
}

.beai-nav .wp-block-navigation__container {
	gap: var(--beai-nav-gap);
}

.beai-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 14px;
	color: var(--beai-nav-link);
	text-decoration: none;
	transition: color 0.2s ease;
}

.beai-nav .wp-block-navigation-item__content:hover,
.beai-nav .current-menu-item > .wp-block-navigation-item__content,
.beai-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--beai-nav-link-active);
}

.beai-header__cta {
	margin: 0;
}

.beai-btn-sm .wp-block-button__link,
.wp-block-button.beai-btn-sm .wp-element-button {
	padding: 11px 18px;
	font-size: 14px;
	border-radius: var(--beai-button-radius-sm);
	box-shadow: var(--beai-button-shadow-sm);
}

/* Hamburger gomb (csak mobilon és tableten látszik) */
.beai-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--beai-toggle-bg);
	border: 1px solid var(--beai-toggle-border);
	border-radius: 10px;
	color: var(--beai-text);
	cursor: pointer;
}

.beai-menu-toggle svg {
	width: 20px;
	height: 20px;
}

.beai-menu-toggle .beai-icon-close,
.beai-menu-toggle[aria-expanded="true"] .beai-icon-open {
	display: none;
}

.beai-menu-toggle[aria-expanded="true"] .beai-icon-close {
	display: block;
}

@media (max-width: 899px) {
	.js .beai-menu-toggle {
		display: inline-flex;
	}

	/* JavaScript nélkül a menü egyszerűen a fejléc alatt, egymás alatt jelenik meg */
	.beai-header__bar {
		flex-wrap: wrap;
	}

	.beai-header__menu {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding-bottom: 16px;
	}

	.js .beai-header__bar {
		flex-wrap: nowrap;
	}

	.js .beai-header__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: var(--beai-gutter);
		right: var(--beai-gutter);
		padding: 12px 20px 20px;
		background: var(--beai-surface);
		border: 1px solid var(--beai-border);
		border-radius: var(--beai-card-radius);
		box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	}

	.js .beai-header.is-menu-open .beai-header__menu {
		display: flex;
	}

	.beai-nav,
	.beai-nav .wp-block-navigation__container {
		width: 100%;
	}

	.beai-nav .wp-block-navigation__container {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.beai-nav .wp-block-navigation-item {
		width: 100%;
		border-bottom: 1px solid var(--beai-border);
	}

	.beai-nav .wp-block-navigation-item__content {
		width: 100%;
		min-height: 48px;
		font-size: 16px;
	}

	.beai-header .beai-header__menu > .beai-header__cta {
		margin-top: 12px;
	}

	.beai-header__cta .wp-block-button,
	.beai-header__cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* ------------------------------------------------------------------
 * Mobilos alsó kvíz-sáv (görgetéskor is elérhető)
 * ------------------------------------------------------------------ */

.wp-block-buttons.beai-mobile-bar {
	display: none;
}

@media (max-width: 767px) {
	:root {
		--beai-mobile-bar-h: 80px;
	}

	.wp-block-buttons.beai-mobile-bar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		margin: 0;
		padding: 12px var(--beai-gutter) calc(18px + env(safe-area-inset-bottom));
		background: var(--beai-mobile-bar-bg);
		border-top: 1px solid var(--beai-border);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}

	.beai-mobile-bar .wp-block-button,
	.beai-mobile-bar .wp-block-button__link {
		display: block;
		width: 100%;
		text-align: center;
	}

	.beai-mobile-bar .wp-block-button__link {
		padding: 15px;
		font-size: 16px;
		border-radius: var(--beai-button-radius-sm);
		box-shadow: none;
	}

	/* Hogy a sáv ne takarja el a lábléc alját */
	.beai-footer {
		padding-bottom: calc(var(--beai-mobile-bar-h) + 24px) !important;
	}
}

/* ------------------------------------------------------------------
 * Lábléc
 * ------------------------------------------------------------------ */

.beai-footer {
	margin-top: 80px;
	padding-top: 36px;
	padding-bottom: 40px;
	border-top: 1px solid var(--beai-border);
	font-size: 14px;
	color: var(--beai-text-subtle);
}

.beai-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px 40px;
}

.beai-footer p {
	margin: 0;
}

.beai-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.beai-footer__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 600;
	color: var(--beai-text);
}

.beai-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	align-items: center;
}

.beai-footer a {
	color: var(--beai-text-muted);
	text-decoration: none;
}

.beai-footer a:hover {
	color: var(--beai-text);
	text-decoration: underline;
}

.beai-footer__legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.beai-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 0 -2px;
	padding: 0;
	list-style: none;
}

.beai-footer .beai-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	border: 1px solid var(--beai-border);
	border-radius: 50%;
	color: var(--beai-text-muted);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.beai-footer .beai-footer__social a:hover,
.beai-footer .beai-footer__social a:focus-visible {
	color: var(--beai-accent);
	border-color: var(--beai-accent);
	text-decoration: none;
}

.beai-footer__social svg {
	display: block;
}

.beai-footer__copy {
	margin-top: 20px !important;
	font-size: 13px;
}

/* ------------------------------------------------------------------
 * Blokkstílusok
 * ------------------------------------------------------------------ */

/* Eyebrow: kis, ritkított, nagybetűs felirat a címek fölött */
.is-style-eyebrow {
	font-size: 11px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--beai-eyebrow);
}

.is-style-eyebrow strong,
.is-style-eyebrow mark {
	font-weight: inherit;
	color: var(--beai-accent);
	background: none;
}

@media (min-width: 1024px) {
	.is-style-eyebrow {
		font-size: 12px;
		letter-spacing: 3px;
	}
}

/* Kézírás (Caveat) */
.is-style-handwriting {
	font-family: var(--wp--preset--font-family--hand);
	font-weight: 500;
	font-size: 32px;
	line-height: 1.2;
}

/* Bevezető szöveg */
.is-style-lead {
	font-size: 16px;
	line-height: 1.6;
	color: var(--beai-text-muted);
}

@media (min-width: 1024px) {
	.is-style-lead {
		font-size: 18px;
	}
}

/* Másodlagos gomb (keretes) */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-element-button {
	background: var(--beai-button-secondary-bg);
	color: var(--beai-button-secondary-text);
	border: 1px solid var(--beai-button-secondary-border);
	box-shadow: none;
	font-weight: 500;
	padding: 14px 22px;
}

.wp-block-button .wp-block-button__link {
	transition: transform 0.2s ease, filter 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover {
	filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------------
 * Szélesség: 1280 px-es referencia, oldalt var(--beai-gutter) margó
 * ------------------------------------------------------------------ */

.beai-header__bar {
	box-sizing: border-box;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--beai-gutter);
}

/* A fejléc és a lábléc belső elemei ne kapják meg a WordPress alap blokktávolságát
   (a WordPress saját szabálya később töltődik be, ezért erősebb szelektor kell) */
.beai-header .beai-header__bar > *,
.beai-header .beai-header__menu > *,
.beai-footer .beai-footer__inner > *,
.beai-footer .beai-footer__brand > * {
	margin-block: 0;
}

/* ==================================================================
 * Landing oldalak (főoldalak): szekciók és közös komponensek
 * ================================================================== */

.beai-landing {
	position: relative;
	z-index: 1;
}

/* A komponenseken belül gap adja a távolságot, nem a WordPress blokktávolsága */
:is(.beai-landing, .editor-styles-wrapper) :is(
	.beai-sec, .beai-sps-hero__text, .beai-hero-cta, .beai-notebook-scene, .beai-notebook,
	.beai-step, .beai-blockers__grid, .beai-blocker, .beai-cards, .beai-card,
	.beai-who__grid, .beai-who__col, .beai-paper, .beai-faq__list, .beai-final
) > * {
	margin-block: 0;
}

:is(.beai-landing, .editor-styles-wrapper) .beai-sec {
	margin-block: 56px 0;
}

@media (min-width: 1024px) {
	:is(.beai-landing, .editor-styles-wrapper) .beai-sec {
		margin-block-start: 96px;
	}
}

.beai-sec__title {
	font-size: var(--beai-h2);
	line-height: 1.25;
}

/* Gomb nyíllal */
.beai-btn-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.beai-btn-arrow .wp-block-button__link::after {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background: var(--beai-ico-arrow-btn) center / 16px no-repeat;
}

/* Ikondoboz: a .beai-ico-* osztály adja az ikont, a ::before rajzolja ki */
:is(.beai-step, .beai-blocker, .beai-card)::before {
	content: "";
	flex-shrink: 0;
	display: block;
	box-sizing: border-box;
	background: var(--beai-icon-bg, var(--beai-surface-2)) var(--beai-ico) center / 22px no-repeat;
}

/* --- Háromlépéses sáv --- */
.beai-steps {
	display: flex;
	flex-direction: column;
	padding: 22px 20px;
	background: var(--beai-surface-glass);
	border: 1px solid var(--beai-border);
	border-radius: var(--beai-card-radius);
	box-shadow: var(--beai-glow);
}

.beai-step {
	position: relative;
	display: grid;
	grid-template-columns: 46px 1fr;
	column-gap: 14px;
	align-items: center;
}

.beai-step::before {
	grid-row: span 2;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--beai-border-strong);
	background-size: 20px;
}

.beai-step + .beai-step {
	margin-top: 20px !important;
}

/* Függőleges szaggatott összekötő mobilon */
.beai-step + .beai-step::after {
	content: "";
	position: absolute;
	left: 23px;
	top: -20px;
	height: 20px;
	border-left: 1.5px dashed var(--beai-border-strong);
}

.beai-step__title {
	align-self: end;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.beai-step__text {
	align-self: start;
	font-size: 13px;
	line-height: 1.45;
	color: var(--beai-text-subtle);
}

@media (min-width: 900px) {
	.beai-steps {
		flex-direction: row;
		align-items: center;
		padding: 26px 32px;
	}

	/* A lépések közti szabad helyet a nyíl foglalja el, középre igazítva */
	.beai-step {
		flex: 1 1 auto;
		grid-template-columns: 48px auto minmax(56px, 1fr);
	}

	.beai-step:last-child {
		flex: 0 0 auto;
		grid-template-columns: 48px auto;
	}

	.beai-step::before {
		width: 48px;
		height: 48px;
		background-size: 22px;
	}

	.beai-step + .beai-step {
		margin-top: 0 !important;
	}

	.beai-step + .beai-step::after {
		content: none;
	}

	.beai-step:not(:last-child)::after {
		content: "";
		position: static;
		grid-column: 3;
		grid-row: 1 / span 2;
		justify-self: center;
		width: 40px;
		height: 10px;
		border: 0;
		background: var(--beai-ico-dash-arrow) center / 40px 10px no-repeat;
	}
}

/* --- A négy blokkoló --- */
.beai-blockers {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.beai-blockers__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.beai-blocker {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	background: var(--beai-surface);
	border: 1px solid var(--beai-border);
	border-radius: 16px;
}

.beai-blocker::before {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background-size: 20px;
}

.beai-blocker__title {
	font-size: 16px;
	line-height: 1.3;
}

.beai-blocker__line {
	font-size: 14px;
	line-height: 1.45;
	color: var(--beai-text-muted);
}

.beai-blocker__text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--beai-text-subtle);
}

.beai-blockers__close {
	margin-top: 8px !important;
	font-size: 15px;
	color: var(--beai-text-muted);
}

@media (min-width: 560px) {
	.beai-blockers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.beai-blockers {
		gap: 0;
	}

	.beai-blockers .beai-sec__title {
		max-width: 720px;
		margin-bottom: 28px !important;
	}

	.beai-blockers__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
		border-top: 1px solid var(--beai-border);
	}

	.beai-blocker {
		gap: 10px;
		padding: 28px 24px 0;
		background: none;
		border: 0;
		border-radius: 0;
	}

	.beai-blocker:first-child {
		padding-left: 0;
	}

	.beai-blocker:last-child {
		padding-right: 0;
	}

	.beai-blocker + .beai-blocker {
		border-left: 1px solid var(--beai-border);
	}

	.beai-blocker::before {
		width: 44px;
		height: 44px;
		background-size: 22px;
	}

	.beai-blocker__title {
		font-size: 18px;
	}

	.beai-blocker__line {
		font-size: 15px;
		line-height: 1.5;
	}

	.beai-blockers__close {
		margin-top: 32px !important;
	}
}

/* --- Kártyák (What you get) --- */
.beai-get {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.beai-cards {
	display: grid;
	gap: 14px;
}

.beai-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	background: var(--beai-surface);
	border: 1px solid var(--beai-border);
	border-radius: var(--beai-card-radius);
	box-shadow: var(--beai-glow);
}

.beai-card::before {
	width: 44px;
	height: 44px;
	margin-bottom: 4px;
	border-radius: 12px;
}

.beai-card__title {
	font-size: 18px;
	line-height: 1.3;
}

.beai-card__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--beai-text-muted);
}

.beai-get__note {
	max-width: 640px;
	font-size: 15px;
	color: var(--beai-text-muted);
}

@media (min-width: 768px) {
	.beai-cards--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

/* --- Kinek szól --- */
.beai-who {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.beai-who__grid {
	display: grid;
	gap: 14px;
}

.beai-who__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border-radius: var(--beai-card-radius);
	border: 1px solid var(--beai-border);
}

.beai-who__col--yes {
	background: var(--beai-surface);
	box-shadow: var(--beai-glow);
}

.beai-who__col--no {
	background: transparent;
	border-style: dashed;
}

.beai-who__col h3 {
	font-size: 18px;
}

:is(.beai-list-check, .beai-list-x) {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(.beai-list-check, .beai-list-x) li {
	position: relative;
	padding-left: 32px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--beai-text-muted);
}

:is(.beai-list-check, .beai-list-x) li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--beai-icon-bg, var(--beai-surface-2)) var(--beai-ico-check) center / 13px no-repeat;
}

.beai-list-x li::before {
	background: transparent var(--beai-ico-x) center / 13px no-repeat;
	border: 1px solid var(--beai-border);
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.beai-who__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.beai-who__col {
		padding: 30px;
	}
}

/* --- Aláírás --- */
.beai-signature,
.beai-sig {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--hand);
	font-weight: 500;
	line-height: 1;
	color: var(--beai-text);
}

.beai-signature {
	font-size: 36px;
}

.beai-sig {
	font-size: 30px;
	vertical-align: middle;
}

.beai-signature::after,
.beai-sig::after {
	content: "";
	width: 16px;
	height: 16px;
	background: var(--beai-ico-heart) center / 16px no-repeat;
}

@media (min-width: 1024px) {
	.beai-sig {
		font-size: 32px;
	}

	.beai-sig::after {
		width: 18px;
		height: 18px;
		background-size: 18px;
	}
}

/* --- Bemutatkozás papírlapon --- */
.beai-behind {
	display: flex;
	justify-content: center;
}

.beai-paper {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px 24px 28px 44px;
	background: var(--beai-surface-2);
	border: 1px solid var(--beai-border);
	border-radius: 8px;
	box-shadow: var(--beai-glow);
}

.beai-paper::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 24px;
	width: 1px;
	background: var(--beai-margin-line, var(--beai-border-strong));
}

.beai-paper p:not(.beai-signature) {
	font-size: 16px;
	line-height: 1.7;
	color: var(--beai-text-muted);
}

@media (min-width: 768px) {
	.beai-paper {
		padding: 48px 56px 40px 72px;
	}

	.beai-paper::before {
		left: 40px;
	}

	.beai-paper p:not(.beai-signature) {
		font-size: 17px;
	}
}

/* --- FAQ --- */
.beai-faq {
	display: grid;
	gap: 18px;
}

.beai-faq__list {
	border-top: 1px solid var(--beai-border);
}

.beai-faq .wp-block-details {
	margin: 0 !important;
	border-bottom: 1px solid var(--beai-border);
}

.beai-faq .wp-block-details summary {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 14px 40px 14px 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.beai-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.beai-faq .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background: var(--beai-ico-plus) center / 18px no-repeat;
	transition: transform 0.25s ease;
}

.beai-faq .wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.beai-faq .wp-block-details > p {
	margin: 0 0 18px;
	padding-right: 40px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--beai-text-muted);
}

@media (min-width: 1024px) {
	.beai-faq {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 40px;
		align-items: start;
	}

	.beai-faq .wp-block-details summary {
		font-size: 17px;
		min-height: 64px;
	}
}

/* --- Záró felhívás --- */
.beai-final {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 44px 20px 36px;
	text-align: center;
	background: var(--beai-final-bg, var(--beai-surface));
	border: 1px solid var(--beai-border);
	border-radius: 24px;
	box-shadow: var(--beai-glow);
}

.beai-final .beai-sec__title {
	max-width: 620px;
}

.beai-final__cta {
	justify-content: center;
	margin-top: 8px !important;
}

.beai-final__note {
	font-size: 13px;
	color: var(--beai-text-subtle);
}

.beai-signline {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 14px;
	margin-top: 16px !important;
	font-size: 13px;
	color: var(--beai-text-subtle);
}

@media (max-width: 767px) {
	.beai-final__cta,
	.beai-final__cta .wp-block-button,
	.beai-final__cta .wp-block-button__link {
		width: 100%;
	}

	.beai-signline {
		flex-direction: column;
	}
}

@media (min-width: 768px) {
	.beai-final {
		padding: 64px 40px 48px;
	}

	.beai-final__cta .wp-block-button__link {
		padding: 16px 26px;
		font-size: 16px;
	}

	.beai-signline {
		font-size: 14px;
	}
}

/* --- Mobilos alsó sáv: csak akkor, ha a hero gombja már kigördült --- */
@media (max-width: 767px) {
	.has-beai-hero .wp-block-buttons.beai-mobile-bar {
		transform: translateY(110%);
		transition: transform 0.3s ease;
	}

	.has-beai-hero.beai-bar-visible .wp-block-buttons.beai-mobile-bar {
		transform: none;
	}
}

/* ==================================================================
 * Szöveges oldalak (jogi oldalak), blog és bejegyzés
 * ================================================================== */

.beai-plain {
	padding-top: 48px;
}

@media (min-width: 1024px) {
	.beai-plain {
		padding-top: 72px;
	}
}

.beai-page-title {
	margin-bottom: 0;
	font-size: calc(var(--beai-h1) * 0.8);
	line-height: 1.12;
	letter-spacing: -1px;
}

/* --- Olvasható hosszú szöveg --- */
.beai-prose {
	font-size: 16px;
	line-height: 1.75;
	color: var(--beai-text);
}

.beai-prose > * {
	margin-block: 0;
}

.beai-prose > * + * {
	margin-block-start: 1.1em;
}

.beai-prose :is(h1, h2, h3, h4) {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	line-height: 1.25;
	color: var(--beai-text);
}

.beai-prose h1 {
	font-size: calc(var(--beai-h1) * 0.8);
	letter-spacing: -1px;
}

.beai-prose > h1:first-child + p,
.beai-prose > h1:first-child + p + p {
	color: var(--beai-text-subtle);
	font-size: 15px;
}

.beai-prose h2 {
	margin-block-start: 2em;
	font-size: 22px;
}

.beai-prose h3 {
	margin-block-start: 1.6em;
	font-size: 18px;
}

.beai-prose :is(h1, h2, h3) b,
.beai-prose :is(h1, h2, h3) strong {
	font-weight: inherit;
}

.beai-prose :is(ul, ol) {
	padding-left: 1.3em;
}

.beai-prose li + li {
	margin-top: 0.4em;
}

.beai-prose li::marker {
	color: var(--beai-accent);
}

.beai-prose a {
	color: var(--beai-link);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.beai-prose a:hover {
	color: var(--beai-link-hover);
}

.beai-prose blockquote {
	margin-inline: 0;
	padding-left: 18px;
	border-left: 2px solid var(--beai-accent);
	color: var(--beai-text-muted);
}

.beai-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.beai-prose hr {
	border: 0;
	border-top: 1px solid var(--beai-border);
}

@media (min-width: 768px) {
	.beai-prose {
		font-size: 17px;
	}

	.beai-prose h2 {
		font-size: 26px;
	}

	.beai-prose h3 {
		font-size: 20px;
	}
}

/* Jogi oldalak: a tartalom eleji cím lesz az oldal főcíme */
.beai-plain > .beai-prose > :first-child {
	margin-top: 0;
}

/* --- Bejegyzés --- */
.beai-single > * {
	margin-block: 0;
}

.beai-post-head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.beai-post-meta {
	gap: 6px 14px;
	align-items: center;
}

.beai-post-meta > * {
	margin: 0 !important;
}

.beai-post-meta .is-style-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.beai-post-date {
	font-size: 13px;
	color: var(--beai-text-subtle);
}

.beai-single .beai-post-image {
	margin-top: 32px !important;
}

.beai-post-image img,
.beai-post-card__image img {
	border-radius: 14px;
	border: 1px solid var(--beai-border);
}

.beai-single .beai-prose {
	margin-top: 32px !important;
}

.beai-post-cta {
	margin-top: 56px !important;
}

.beai-post-nav {
	margin-top: 40px !important;
	padding-top: 20px;
	border-top: 1px solid var(--beai-border);
	gap: 12px 24px;
	font-size: 14px;
}

.beai-post-nav a {
	color: var(--beai-link);
}

/* --- Bloglista --- */
.beai-blog > * {
	margin-block: 0;
}

.beai-blog-head {
	margin-bottom: 32px !important;
}

.beai-post-grid {
	gap: 20px !important;
}

.beai-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--beai-surface);
	border: 1px solid var(--beai-border);
	border-radius: var(--beai-card-radius);
	box-shadow: var(--beai-glow);
}

.beai-post-card > * {
	margin: 0 !important;
}

.beai-post-card__image img {
	border: 0;
	border-radius: 0;
}

.beai-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 22px 24px;
}

.beai-post-card__body > * {
	margin: 0 !important;
}

.beai-post-card__title {
	font-size: 19px;
	line-height: 1.3;
}

.beai-post-card__title a {
	color: var(--beai-text);
	text-decoration: none;
}

.beai-post-card__title a:hover {
	color: var(--beai-accent);
}

.beai-post-card__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: var(--beai-text-muted);
}

.beai-post-card__excerpt .wp-block-post-excerpt__more-text {
	margin-top: 10px;
}

.beai-post-card__excerpt .wp-block-post-excerpt__more-link {
	font-weight: 600;
	color: var(--beai-link);
}

.beai-pagination {
	margin-top: 40px !important;
}

@media (max-width: 767px) {
	.beai-post-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.beai-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* ==================================================================
 * Animációk (csak ha a JS bekapcsolta: html.beai-motion)
 * A „kevesebb mozgás” beállításnál a motion.js el sem indul.
 * ================================================================== */

.beai-motion .beai-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.beai-motion .beai-reveal.is-inview {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.beai-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}
