/* Custom CSS — base typography + things Tailwind can't express cleanly.
   Aesthetic: Anthropic/Apple — clean, generous whitespace, big type,
   restrained color, subtle motion. Mobile-first. */

html {
	scroll-behavior: smooth;
	background: #ffffff;
	color: #111111;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: 'ss01', 'ss03', 'cv11';
}

/* Serif accent — used in headlines as italic emphasis. Fraunces with optical-size axis. */
.font-serif-accent {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-optical-sizing: auto;
	font-variation-settings: 'opsz' 144, 'SOFT' 50;
	letter-spacing: -0.01em;
}

/* Heading rhythm: tight tracking + display weight. Mobile-first sizing. */
.h-display {
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.02;
}

/* === Native <details> accordion === */
details > summary {
	list-style: none;
	cursor: pointer;
}
details > summary::-webkit-details-marker { display: none; }

/* Chevron (down arrow) — rotates 180deg when open */
details > summary .chev {
	transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
details[open] > summary .chev {
	transform: rotate(180deg);
}

/* Plus icon — rotates 45deg when open (becomes ×) */
details > summary .chev-plus svg {
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
details[open] > summary .chev-plus svg {
	transform: rotate(45deg);
}

/* === Focus ring — brand color, accessible === */
:focus-visible {
	outline: 2px solid #6366F1;
	outline-offset: 3px;
	border-radius: 4px;
}

/* === Image fade-in === */
img {
	max-width: 100%;
	height: auto;
}

img.lazy-fade {
	opacity: 0;
	transition: opacity 600ms ease;
}
img.lazy-fade.loaded {
	opacity: 1;
}

/* === Reveal-on-scroll utility (no JS required, IntersectionObserver below) === */
.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* === Selection === */
::selection {
	background: #6366F1;
	color: #ffffff;
}

/* === Subtle dot pattern overlay (light-on-light, very faint) === */
.bg-dotted-light {
	background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
	background-size: 28px 28px;
}

/* === Notify-me modal (native <dialog>) === */
#btr-notify-modal {
	border: none;
	padding: 0;
	background: transparent;
	max-width: 480px;
	width: calc(100vw - 32px);
	border-radius: 24px;
	color: inherit;
}
#btr-notify-modal::backdrop {
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
@keyframes btr-modal-in {
	from { opacity: 0; transform: scale(0.95) translateY(8px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes btr-backdrop-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
#btr-notify-modal[open] {
	animation: btr-modal-in 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
#btr-notify-modal[open]::backdrop {
	animation: btr-backdrop-in 280ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
	#btr-notify-modal[open],
	#btr-notify-modal[open]::backdrop { animation: none; }
}

/* === Cookie consent banner — slides in from bottom-left === */
.btr-cookie {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}
.btr-cookie.is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.btr-cookie { transition: opacity 0ms; transform: none; }
}

/* === Back-to-top floating button === */
.btr-back-top {
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease;
	will-change: opacity, transform;
}
.btr-back-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
	.btr-back-top { transition: opacity 0ms; }
}

/* === Marquee-style ticker (for trust/logo strip if we add one later) === */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker { display: flex; animation: ticker 35s linear infinite; }

/* === Buttons === */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border-radius: 999px;
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: -0.005em;
	transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ink   { background: #111111; color: #ffffff; }
.btn--ink:hover { background: #000; }
.btn--white { background: #ffffff; color: #111111; }
.btn--white:hover { background: #f5f5f5; }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn--outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn--outline-dark { background: transparent; color: #111111; border: 1px solid #111111; }
.btn--outline-dark:hover { background: #111111; color: #ffffff; }
.btn--brand   { background: #6366F1; color: #ffffff; }
.btn--brand:hover { background: #4F46E5; }
/* Legacy aliases — same color. */
.btn--brand-red, .btn--brand-blue   { background: #6366F1; color: #ffffff; }
.btn--brand-red:hover, .btn--brand-blue:hover { background: #4F46E5; }

/* === Mobile tap targets === */
@media (hover: none) and (pointer: coarse) {
	.btn { min-height: 48px; }
}

/* === Form inputs (Tailwind Forms plugin) consistent ring === */
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="password"], textarea, select {
	font-family: inherit;
}

/* === Jogi dokumentumok (ÁSZF + Adatkezelési tájékoztató) ================ */

#btr-legal-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 3px;
	z-index: 95; pointer-events: none; background: transparent;
}
#btr-legal-progress span {
	display: block; height: 100%; width: 0;
	background: linear-gradient(90deg, #6366F1, #8B5CF6);
	transition: width 0.1s linear;
}

.btr-legal { font-size: 1rem; line-height: 1.8; color: #404040; }
.btr-legal p { margin: 0.9em 0; }
.btr-legal a { color: #6366F1; word-break: break-word; }
.btr-legal a:hover { text-decoration: underline; }
.btr-legal h2 {
	margin: 3rem 0 1.25rem; padding-top: 2.5rem;
	border-top: 1px solid #e5e5e5;
	font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
	line-height: 1.25; color: #111;
	scroll-margin-top: 120px;
}
.btr-legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.btr-legal h3 {
	margin: 2rem 0 0.75rem; font-size: 1.125rem; font-weight: 700; color: #111;
}
.btr-legal .btr-legal-num { color: #6366F1; font-weight: 700; margin-right: 0.15rem; }
.btr-legal ul, .btr-legal ol { margin: 0.9em 0 0.9em 0; padding-left: 1.5rem; }
.btr-legal li { margin: 0.45em 0; }
.btr-legal ul.btr-legal-bullist { list-style: disc; }
.btr-legal ul.btr-legal-bullist li::marker { color: #6366F1; }
.btr-legal ul.btr-legal-letlist { list-style: none; padding-left: 0.25rem; }
.btr-legal ul.btr-legal-letlist li { padding-left: 1.5rem; text-indent: -1.5rem; }
.btr-legal ol { list-style: decimal; }
.btr-legal ol li::marker { color: #6366F1; font-weight: 600; }

.btr-legal-tablewrap {
	margin: 1.5rem 0; overflow-x: auto;
	border: 1px solid #e5e5e5; border-radius: 1rem;
}
.btr-legal table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.6; }
.btr-legal-tablewrap table { margin: 0; }
.btr-legal th, .btr-legal td {
	padding: 0.75rem 1rem; text-align: left; vertical-align: top;
	border-bottom: 1px solid #ececec;
}
.btr-legal th { background: #f7f7f5; font-weight: 700; color: #111; white-space: nowrap; }
.btr-legal tr:last-child td { border-bottom: 0; }
/* A Virtualjog-tartalom csupasz (wrapper nélküli) table-jei is kapjanak keretet. */
.btr-legal > table {
	border: 1px solid #e5e5e5; border-radius: 1rem;
	display: block; overflow-x: auto; margin: 1.5rem 0;
}

.btr-legal-toc { position: sticky; top: 7rem; max-height: calc(100vh - 9rem); overflow-y: auto; padding-right: 0.5rem; }
.btr-legal-toc ol { list-style: none; margin: 0; padding: 0; }
.btr-legal-toc li { margin: 0; }
.btr-legal-toc a {
	display: block; padding: 0.4rem 0.9rem; font-size: 0.875rem; line-height: 1.4;
	color: #6b7280; border-left: 2px solid #e5e5e5; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btr-legal-toc a:hover { color: #111; }
.btr-legal-toc a.is-active { color: #111; font-weight: 600; border-left-color: #6366F1; background: #f7f7ff; }
.btr-legal-toc::-webkit-scrollbar { width: 4px; }
.btr-legal-toc::-webkit-scrollbar-thumb { background: #e5e5e5; border-radius: 2px; }

/* TOC: asztalin oldalsáv, mobilon lenyitható blokk a tartalom felett. */
.btr-legal-toc-m { display: none; }
@media (max-width: 1023px) {
	.btr-legal-toc { position: static; max-height: none; }
	.btr-legal-toc-d { display: none; }
	.btr-legal-toc-m {
		display: block; margin-bottom: 2rem;
		border: 1px solid #e5e5e5; border-radius: 1rem; background: #fafaf9;
	}
	.btr-legal-toc-m summary {
		cursor: pointer; list-style: none; padding: 0.9rem 1.25rem;
		font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
		letter-spacing: 0.15em; color: #404040;
		display: flex; align-items: center; justify-content: space-between;
	}
	.btr-legal-toc-m summary::-webkit-details-marker { display: none; }
	.btr-legal-toc-m summary::after {
		content: ''; width: 0.5rem; height: 0.5rem;
		border-right: 2px solid #6366F1; border-bottom: 2px solid #6366F1;
		transform: rotate(45deg); transition: transform 0.15s;
	}
	.btr-legal-toc-m[open] summary::after { transform: rotate(-135deg); }
	.btr-legal-toc-m .btr-legal-toc { padding: 0 1rem 1rem; }
}

@media print {
	header, footer, .btr-legal-noprint, #btr-legal-progress, #btr-back-top, #bertr-cookie { display: none !important; }
	.btr-legal { font-size: 11pt; color: #000; }
	.btr-legal h2 { break-after: avoid; }
	.btr-legal a { color: #000; text-decoration: none; }
	.btr-legal-tablewrap { border: 1px solid #999; overflow: visible; }
}

/* === Virtualjog „Itt vásárolhatsz” pecsét — a termék-hero kép sarkán ===
   A kerek jelvényt pecsétszerűen a hero-kép bal alsó sarkára akasztjuk:
   körre vágva (a badge-iframe fehér négyzetét a border-radius vágja le),
   fehér gyűrűvel, enyhén elforgatva. A pozicionálás szándékosan nem
   Tailwind-utility: azok a buildelt tailwind.min.css-ből hiányoznának. */
.btr-vj-seal {
	position: absolute;
	bottom: -16px;
	left: -12px;
	z-index: 10;
	border-radius: 9999px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 0 0 4px #ffffff, 0 12px 28px rgba(17, 17, 17, 0.18);
	transform: rotate(-7deg);
	transition: transform 0.2s ease;
}
.btr-vj-seal:hover { transform: rotate(-7deg) scale(1.05); }
@media (min-width: 1024px) {
	.btr-vj-seal { bottom: -20px; left: -22px; }
}

/* === SimplePay elfogadóhelyi elemek (SimplePay v2.1 dok. §7, §8, §3.13) ===
   A logót a SimplePay szabályai szerint NEM halványítjuk / tesszük átlátszóvá
   (nincs opacity / filter), fehér alapon jelenik meg, csak a mérete igazodik.
   Sima CSS, nem Tailwind-utility: azok a buildelt tailwind.min.css-ből hiányoznának. */
.btr-sp-logo {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-width: 0;
	background: #ffffff;
	border-radius: 8px;
	line-height: 0;
	transition: box-shadow 0.15s ease;
}
.btr-sp-logo img { display: block; max-width: 100%; height: auto; }
.btr-sp-logo:hover,
.btr-sp-logo:focus-visible { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); outline: none; }
.btr-sp-logo--footer img { max-height: 40px; width: auto; }
.btr-sp-logo--checkout img { max-height: 36px; width: auto; }
.btr-sp-logo--text {
	line-height: 1.4;
	padding: 6px 12px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #111111;
	border: 1px solid #e5e5e5;
}

/* Lábléc-sáv a SimplePay logóval — középre igazítva, hogy a jobb alsó
   lebegő „vissza a tetejére” gomb ne takarja ki a kártyalogókat. */
.btr-sp-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 28px;
	padding-top: 18px;
	padding-bottom: 18px;
	text-align: center;
}
.btr-sp-footer__label { font-size: 0.8125rem; color: #525252; }

/* Pénztár: logó a fizetés-gomb alatt + az adattovábbítási nyilatkozat szövege. */
.btr-sp-logo-row { display: flex; justify-content: center; margin-top: 14px; }
.btr-sp-declaration {
	display: block;
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f7f7f8;
	border: 1px solid #ececef;
	font-size: 0.75rem;
	line-height: 1.55;
	color: #525252;
}
.btr-sp-declaration a { color: #4F46E5; text-decoration: underline; word-break: break-all; }

/* Köszönő / eredményoldal: a kötelező SimplePay-tájékoztatás doboza. */
.btr-sp-result {
	max-width: 36rem;
	margin: 20px auto 0;
	padding: 14px 18px;
	border-radius: 14px;
	border: 1px solid #e5e5e5;
	background: #fafafa;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #404040;
}
.btr-sp-result p + p { margin-top: 8px; }
.btr-sp-result__title { font-weight: 600; color: #111111; }
.btr-sp-result--success { border-color: #bbf7d0; background: #f0fdf4; }
.btr-sp-result--fail { border-color: #fecaca; background: #fef2f2; }
.btr-sp-txid code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 600;
	color: #111111;
	letter-spacing: 0.02em;
	user-select: all;
}
.btr-sp-notice {
	max-width: 36rem;
	margin: 0 auto 28px;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid #fde68a;
	background: #fffbeb;
	font-size: 0.875rem;
	color: #713f12;
}
.btr-sp-notice--wide { max-width: none; margin: 0 0 24px; text-align: left; }
