/* EvePics – promo pages (/{lang}/promo, /poster, /business-card, /one-pager).
   Rendered in the public layout (template main: site header + footer). Variables from public.css.
   Print: header, footer, toolbar and mode selector are hidden (public.css hides header/footer/.no-print),
   the printed page is only the sheet (A4) or the card at its exact size. */
@page { size: A4; margin: 0; }

/* ---------- Index ---------- */
.promo-index-links {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	margin-top: var(--space-lg);
}
.promo-index-links a {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-md) var(--space-lg);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-default);
	background: var(--bg-card);
	color: var(--text-primary);
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition), border-color var(--transition);
}
.promo-index-links a:hover,
.promo-index-links a:focus-visible { box-shadow: var(--shadow-md); border-color: var(--accent); }
.promo-index-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--accent);
}
.promo-index-icon img { width: 22px; height: 22px; display: block; filter: brightness(0) invert(1); }
.promo-index-text strong { display: block; font-family: var(--font-heading); font-weight: 600; }
.promo-index-text span { display: block; font-size: .92rem; color: var(--text-secondary); }

/* ---------- Shared: page wrapper + toolbar ---------- */
.promo-page { width: 100%; }
.promo-page *, .promo-page *::before, .promo-page *::after { box-sizing: border-box; }
.promo-toolbar {
	max-width: 210mm;
	margin: 0 auto var(--space-md);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-md);
	flex-wrap: wrap;
}
.promo-toolbar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.promo-print-btn {
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--accent);
	border: 0;
	border-radius: var(--radius-full);
	padding: var(--space-sm) var(--space-lg);
	cursor: pointer;
}
.promo-print-btn:hover { background: var(--accent-hover); }

/* ---------- Business card ---------- */
.promo-card-h1 { text-align: center; margin: 0 0 var(--space-sm); }
.promo-mode-switch {
	max-width: 210mm;
	margin: 0 auto var(--space-md);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--space-sm);
}
.promo-mode-label { font-weight: 600; color: var(--text-secondary); }
.promo-mode-switch a {
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-full);
	border: 1px solid var(--border-default);
	background: var(--bg-card);
	color: var(--text-primary);
	text-decoration: none;
	font-size: .92rem;
}
.promo-mode-switch a:hover { border-color: var(--accent); }
.promo-mode-switch a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.promo-mode-note { text-align: center; font-size: .88rem; color: var(--text-secondary); margin: 0 auto var(--space-md); max-width: 60ch; }

.promo-card-stage {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: var(--space-xl) var(--space-md);
	border-radius: var(--radius-md);
	background: #e5e7eb;
	overflow: auto;
}
.promo-card-page--a4 .promo-card-stage { padding: var(--space-md); }

/* Card background = poster hero (site charte). */
.promo-card-page {
	--bc-bg:
		radial-gradient(60% 70% at 0% 0%, rgba(79, 70, 229, .55), transparent 70%),
		radial-gradient(60% 70% at 100% 20%, rgba(14, 116, 144, .6), transparent 70%),
		radial-gradient(50% 60% at 90% 100%, rgba(168, 85, 247, .4), transparent 70%),
		#020617;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
.bc-card {
	position: relative;
	width: 85mm;
	height: 55mm;
	padding: 6mm 6mm 5.5mm;
	background: var(--bc-bg);
	color: #f8fafc;
	font-family: var(--font-body);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	flex-shrink: 0;
	zoom: 2;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.bc-top { flex: 1; min-height: 0; display: flex; justify-content: space-between; align-items: stretch; gap: 3mm; }
.bc-top-left { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-logo { display: flex; align-items: center; gap: 1.6mm; font-family: var(--font-heading); font-weight: 700; font-size: 12.5px; letter-spacing: .01em; }
.bc-logo img { width: 5.5mm; height: 5.5mm; display: block; }
.bc-tagline { margin: 2mm 0 0; font-size: 8.6px; line-height: 1.4; max-width: 48mm; }
.bc-tagline strong { color: #fff; }
.bc-steps { margin: auto 0; font-size: 7.2px; line-height: 1.45; color: #e2e8f0; }
.bc-qr {
	flex-shrink: 0;
	align-self: flex-start;
	width: 19mm;
	height: 19mm;
	padding: 1mm;
	background: #fff;
	border-radius: 1.5mm;
	display: block;
}
.bc-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2mm; }
.bc-url-main { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 11px; color: #fff; }
.bc-url-sub { display: block; font-size: 6.8px; color: #e2e8f0; margin-top: .4mm; max-width: 42mm; line-height: 1.35; }
.bc-contact { text-align: right; font-size: 6.8px; line-height: 1.45; color: #e2e8f0; }

/* Bleed: 91 × 61 mm = 85 × 55 + 3 mm per side; texts/QR stay ≥ 3 mm inside the trim line. */
.bc-card--bleed { width: 91mm; height: 61mm; padding: 9mm 9mm 8.5mm; }
@media screen {
	.bc-card--bleed::after { content: ""; position: absolute; inset: 3mm; border: .2mm dashed rgba(255, 0, 128, .75); pointer-events: none; }
}
/* Bleed + crop marks: page 111 × 81 mm, card centred (10 mm white margin), marks at 13 mm from the edge. */
.bc-marks-sheet { position: relative; width: 111mm; height: 81mm; padding: 10mm; background: #fff; zoom: 2; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); flex-shrink: 0; }
.bc-marks-sheet .bc-card { zoom: 1; box-shadow: none; }
.bc-marks { position: absolute; left: 0; top: 0; width: 111mm; height: 81mm; }

/* A4 sheet (prints.css grid): cards at real size, gap background = card background. */
.promo-card-page--a4 .bc-card { zoom: 1; box-shadow: none; background: transparent; }
.promo-card-page--a4 .sheet-a4-business-cards { background: #fff; min-height: 0; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.promo-card-page--a4 .sheet-a4-business-cards__bleed-zoom { background: var(--bc-bg); }

@media screen and (max-width: 720px) {
	.bc-card, .bc-marks-sheet { zoom: 1; }
	.promo-card-page--a4 .sheet-a4-business-cards { zoom: .45; }
}

/* ---------- One-pager A4 ---------- */
.op-sheet {
	color-scheme: light;
	--text-primary: #1a1d24;
	--text-secondary: #5c6370;
	--border-default: rgba(0, 0, 0, 0.1);
	width: 210mm;
	height: 297mm;
	margin: 0 auto var(--space-xl);
	padding: 12mm 14mm 10mm;
	background: #fff;
	color: var(--text-primary);
	font-family: var(--font-body);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 6mm;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
.op-hero { display: flex; gap: 8mm; align-items: stretch; }
.op-brand-col { flex: 1; min-width: 0; }
.op-brand { display: flex; align-items: center; gap: 2.5mm; font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.op-brand img { width: 8mm; height: 8mm; display: block; }
.op-subtitle { margin: 2mm 0 0; font-size: 11px; font-weight: 600; color: var(--accent); }
.op-title { margin: 4mm 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 26px; line-height: 1.18; letter-spacing: -.01em; color: var(--text-primary); }
.op-highlight { color: var(--accent); }
.op-lead { margin: 3mm 0 0; font-size: 11.5px; line-height: 1.55; color: var(--text-secondary); }
.op-qr {
	width: 58mm;
	flex-shrink: 0;
	padding: 6mm 5mm 5mm;
	border-radius: var(--radius-lg);
	color: #f8fafc;
	text-align: center;
	background:
		radial-gradient(60% 50% at 0% 0%, rgba(79, 70, 229, .55), transparent 70%),
		radial-gradient(60% 50% at 100% 20%, rgba(14, 116, 144, .6), transparent 70%),
		radial-gradient(50% 50% at 90% 100%, rgba(168, 85, 247, .4), transparent 70%),
		#020617;
}
.op-qr-title { margin: 0 0 3mm; font-family: var(--font-heading); font-weight: 700; font-size: 14px; }
.op-qr-img { display: block; width: 38mm; height: 38mm; margin: 0 auto; padding: 1.5mm; background: #fff; border-radius: 3mm; }
.op-qr-img img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.op-qr-url { margin: 3mm 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 12px; color: #5eead4; word-break: break-all; }
.op-band {
	margin: 0;
	padding: 3mm 4mm;
	border-radius: var(--radius-sm);
	background: rgba(13, 148, 136, .1);
	border-left: 1.2mm solid var(--accent);
	font-size: 11px;
	line-height: 1.5;
}
.op-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 6mm; flex: 1; min-height: 0; }
.op-main, .op-side { display: flex; flex-direction: column; gap: 5mm; }
.op-block { border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 5mm; }
.op-block h2 { margin: 0 0 2.5mm; font-family: var(--font-heading); font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--text-primary); }
.op-block p { margin: 0 0 2mm; font-size: 10.5px; line-height: 1.5; color: var(--text-secondary); }
.op-tag { display: inline-block; padding: .3mm 2mm; border-radius: var(--radius-full); background: var(--accent); color: #fff; font-size: 8.5px; font-weight: 600; vertical-align: middle; }
.op-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3mm; }
.op-steps li { display: grid; grid-template-columns: auto 1fr; gap: 2.5mm; font-size: 10.5px; line-height: 1.5; color: var(--text-secondary); }
.op-steps strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 11.5px; color: var(--text-primary); }
.op-step-num { display: flex; align-items: center; justify-content: center; width: 6.5mm; height: 6.5mm; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 11px; }
.op-list { margin: 0; padding-left: 4.5mm; font-size: 10.5px; line-height: 1.5; color: var(--text-secondary); }
.op-list li { margin-bottom: 1mm; }
.op-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 2mm; }
.op-features li { display: flex; align-items: center; gap: 2.5mm; font-size: 10.5px; line-height: 1.4; color: var(--text-primary); }
.op-icon { flex-shrink: 0; width: 6.5mm; height: 6.5mm; padding: 1.4mm; border-radius: 50%; background: var(--accent); }
.op-icon img { width: 100%; height: 100%; display: block; filter: brightness(0) invert(1); }
.op-facts { margin: 4mm 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm 4mm; }
.op-facts dt { font-size: 9px; color: var(--text-secondary); }
.op-facts dd { margin: 0; font-size: 10.5px; font-weight: 600; color: var(--text-primary); }
.op-footer { display: flex; justify-content: space-between; gap: 4mm; border-top: 1px solid var(--border-default); padding-top: 3mm; font-size: 9.5px; color: var(--text-secondary); }
.op-footer strong { color: var(--text-primary); }

@media screen and (max-width: 820px) {
	.op-sheet { zoom: .45; }
}

/* ---------- Print ---------- */
@media print {
	body:has(.promo-page) { background: #fff !important; }
	body:has(.promo-page),
	body:has(.promo-page) .container,
	body:has(.promo-page) main { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
	.promo-toolbar, .promo-mode-switch, .promo-mode-note, .promo-card-h1 { display: none !important; }
	.op-sheet, .poster-sheet { margin: 0 !important; box-shadow: none !important; zoom: 1 !important; break-inside: avoid; }
	.promo-card-stage { display: block; padding: 0 !important; background: none !important; border-radius: 0; overflow: visible; }
	.bc-card, .bc-marks-sheet { zoom: 1 !important; box-shadow: none !important; }
	.bc-card--bleed::after { display: none; }
	/* Exact pt sizes = @page (see business-card.php): no white sliver at the right/bottom edge. */
	.promo-card-page--bleed .bc-card--bleed { width: 258pt; height: 173.04pt; }
	.promo-card-page--marks .bc-marks-sheet { width: 314.65pt; height: 229.6pt; }
	.promo-card-page--a4 .sheet-a4-business-cards { box-shadow: none; zoom: 1 !important; }
}

/* Same look on screen and in print: no blur / alpha on printed promo elements; flat brand tints. */
.promo-page *, .promo-page *::before, .promo-page *::after { text-shadow: none; backdrop-filter: none; }
.op-band { background: #e6f4f2; }
.op-sheet { --border-default: #99d5ce; }
.op-block { border: .4mm solid #99d5ce; }
.op-footer { border-top-color: #99d5ce; }
/* Sheet/card edge on screen only (not printed): solid navy offset, no blur. */
.poster-sheet, .op-sheet, .promo-card-page--a4 .sheet-a4-business-cards { box-shadow: 2.5mm 2.5mm 0 0 #0f172a; border: 0; }
.bc-card, .bc-marks-sheet { box-shadow: 1.5mm 1.5mm 0 0 #0f172a; }
.promo-card-page--a4 .bc-card, .bc-marks-sheet .bc-card { box-shadow: none; }
.promo-index-links a { box-shadow: none; border: .4mm solid #99d5ce; background: #fff; }
.promo-index-links a:hover, .promo-index-links a:focus-visible { box-shadow: none; border-color: #0d9488; }
@media print {
	.poster-sheet, .op-sheet, .promo-card-page--a4 .sheet-a4-business-cards { box-shadow: none !important; border: 0 !important; }
}
