/* ETrans — landing page
   Campmoney product family design system, ETrans logistics accent (amber → orange).
   Vanilla CSS, no external dependencies. */

:root {
	--accent: #ea580c;
	--accent-dark: #c2410c;
	--accent-soft: #fff1ea;
	--cyan: #f59e0b;
	--fuchsia: #c2410c;
	--grad: linear-gradient(135deg, #fb923c, #ea580c 55%, #c2410c);
	--ink: #1c1714;
	--muted: #6b6157;
	--line: #f1e8e0;
	--bg: #ffffff;
	--bg-alt: #fdf8f4;
	--radius: 12px;
	--shadow: 0 1px 3px rgba(64, 40, 27, .06), 0 8px 24px rgba(64, 40, 27, .07);
	--maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

.container.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.center { text-align: center; }
.sub { color: var(--muted); margin-top: -.3em; margin-bottom: 2.2em; }

/* ---------- Header / nav ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
	display: inline-block;
	background: var(--grad);
	color: #fff;
	font-weight: 800;
	letter-spacing: .5px;
	padding: 5px 11px;
	border-radius: 8px;
	font-size: 1.05rem;
}
.brand-mark.small { font-size: .85rem; padding: 3px 9px; }
.brand-logo { display: block; width: 36px; height: 36px; padding: 7px; box-sizing: border-box;
	background: color-mix(in srgb, var(--accent, var(--blue)) 13%, #fff); border-radius: 9px;
	fill: none; stroke: var(--accent, var(--blue)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-logo.small { width: 30px; height: 30px; padding: 6px; }
.brand-text { color: var(--ink); font-weight: 600; font-size: .95rem; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
	text-decoration: none;
	color: var(--ink);
	font-weight: 500;
	font-size: .95rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-login {
	color: var(--accent) !important;
	font-weight: 600;
}
.nav-login:hover { color: var(--accent-dark) !important; }
.nav-cta {
	background: var(--accent);
	color: #fff !important;
	padding: 8px 16px;
	border-radius: 8px;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Mobile-only second sticky bar with the two auth buttons (part of the sticky header) */
.auth-bar { display: none; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line);
	background: rgba(255, 255, 255, .96); }
.auth-btn { flex: 1; text-align: center; padding: 11px 12px; border-radius: 9px;
	font-weight: 600; font-size: .98rem; }
.auth-btn.login { color: var(--accent) !important; border: 1.5px solid var(--accent); }
.auth-btn.login:hover { background: var(--accent-soft); }
.auth-btn.reg { background: var(--accent); color: #fff !important; }
.auth-btn.reg:hover { background: var(--accent-dark); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: 10px;
	transition: background .15s, transform .05s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(234, 88, 12, .3); }
.btn-grad:hover { opacity: .94; }
.btn-ghost {
	background: transparent;
	color: var(--accent);
	border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); }

/* On the gradient hero, the ghost button needs light styling */
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero .btn-light { background: #fff; color: var(--accent-dark); }
.hero .btn-light:hover { background: #f3effb; }

.badge {
	display: inline-block;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-weight: 600;
	font-size: .8rem;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 18px;
}

/* ---------- Hero (gradient — HeLX signature) ---------- */
.hero {
	position: relative;
	background: var(--grad);
	color: #fff;
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(800px 380px at 85% -20%, rgba(255, 255, 255, .22), transparent 60%);
	pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 78px 24px 70px; max-width: 880px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); color: #fff; }
.hero .badge {
	background: rgba(255, 255, 255, .18);
	color: #fff;
	backdrop-filter: blur(4px);
}
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 660px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 36px; }

.hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	margin: 0;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, .25);
}
.hero-facts div { margin: 0; }
.hero-facts dt { font-size: .8rem; color: rgba(255, 255, 255, .8); text-transform: uppercase; letter-spacing: .5px; }
.hero-facts dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 700; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section p { color: var(--muted); font-size: 1.05rem; }
.narrow h2 { text-align: center; }
.narrow > p { text-align: center; }

.lead-line {
	font-size: 1.15rem;
	color: var(--ink);
	font-weight: 500;
	margin-bottom: 1em;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.solutions { grid-template-columns: repeat(3, 1fr); }

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
	box-shadow: var(--shadow);
	transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(40, 27, 64, .12); }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; font-size: .98rem; color: var(--muted); }

.ic-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border-radius: 12px;
	background: var(--accent-soft);
	margin-bottom: 14px;
}
.ic {
	width: 24px; height: 24px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ic circle.dot { fill: var(--accent); stroke: none; }

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(3, 1fr); }
.step {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px;
	box-shadow: var(--shadow);
}
.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: var(--grad);
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
	margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; font-size: .98rem; color: var(--muted); }

/* ---------- Solutions / for whom ---------- */
.solution {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
}
.solution h3 { font-size: 1.1rem; margin-bottom: 8px; }
.solution p { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
.tag {
	display: inline-block;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-size: .78rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}

/* ---------- Privacy / security block ---------- */
.sec-security {
	background: linear-gradient(180deg, var(--accent-soft), #fff);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.sec-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 8px 28px;
	box-shadow: var(--shadow);
	max-width: 760px;
	margin: 0 auto;
}
.sec-card .price-list { margin: 0; }

/* ---------- Checklist (reused from price-list) ---------- */
.price-list { list-style: none; margin: 0 0 8px; padding: 0; }
.price-list li {
	position: relative;
	padding: 13px 0 13px 32px;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: 1rem;
}
.price-list li:last-child { border-bottom: 0; }
.price-list li strong { color: var(--ink); }
.price-list li::before {
	content: "";
	position: absolute;
	left: 3px; top: 18px;
	width: 16px; height: 9px;
	border-left: 2.5px solid var(--accent);
	border-bottom: 2.5px solid var(--accent);
	transform: rotate(-45deg);
}

/* ---------- Beta CTA band ---------- */
.cta-band {
	background: var(--grad);
	color: #fff;
	text-align: center;
}
.cta-band .container { padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); font-size: 1.08rem; max-width: 620px; margin: 0 auto 28px; }
.cta-band .btn-light { background: #fff; color: var(--accent-dark); }
.cta-band .btn-light:hover { background: #f3effb; }

/* ---------- Contact ---------- */
.contact-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 520px;
	margin: 0 auto;
}
.contact-card dl { margin: 0; width: 100%; }
.contact-card dl div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.contact-card dl div:last-child { border-bottom: 0; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--ink);
	color: #cabfe0;
	padding: 28px 0;
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.muted { color: var(--muted); }
.site-footer .muted { color: #a89bc4; }
.small { font-size: .88rem; }
.footer-inner > div { display: flex; align-items: center; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.cards, .solutions, .steps { grid-template-columns: repeat(2, 1fr); }

	/* Auth moves out of the cramped header row into its own sticky bar below it */
	.nav-actions { display: none; }
	.auth-bar { display: flex; }

	/* Mobile nav — burger appears already at tablet width because the HeLX labels are long */
	.nav-burger {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px; height: 40px;
		cursor: pointer;
	}
	.nav-burger span {
		display: block;
		height: 2px;
		width: 22px;
		background: var(--ink);
		border-radius: 2px;
		transition: .2s;
	}
	.nav-links {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}
	.nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
	/* Login/Regisztráció always visible top-right, pushed next to the burger */
	.nav-actions { margin-left: auto; margin-right: 10px; gap: 10px; }
	.nav-toggle:checked ~ .nav-links { max-height: 340px; }
	.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
	.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
	.cards, .solutions, .steps { grid-template-columns: 1fr; }
	.hero-facts { gap: 24px; }
}

/* ---------- Contact modal ---------- */
.nav-home { color: var(--muted) !important; font-weight: 600; }
.nav-home { display: inline-flex; align-items: center; gap: 6px; }
.nav-home-ico { display: block; width: 23px; height: 23px; padding: 4px; box-sizing: border-box; background: color-mix(in srgb, var(--accent, var(--blue)) 14%, #fff); border-radius: 6px; fill: none; stroke: var(--accent, var(--blue)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-home:hover { color: var(--accent) !important; }
.modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
}
.modal.open { display: flex; }
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(27, 22, 38, .55);
	backdrop-filter: blur(3px);
	animation: modal-fade .18s ease;
}
.modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 540px;
	margin: auto;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 70px rgba(27, 22, 38, .35);
	padding: 36px;
	animation: modal-pop .22s cubic-bezier(.16, 1, .3, 1);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
	position: absolute;
	top: 16px; right: 18px;
	width: 36px; height: 36px;
	border: 0;
	background: var(--bg-alt);
	color: var(--muted);
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--accent-soft); color: var(--accent-dark); }
.modal-badge {
	display: inline-block;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-weight: 700;
	font-size: .8rem;
	padding: 5px 12px;
	border-radius: 999px;
}
.modal-title { font-size: 1.5rem; color: var(--ink); margin: 14px 0 6px; }
.modal-sub { color: var(--muted); margin: 0 0 22px; font-size: .98rem; }

.contact-form .field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label {
	display: block;
	font-size: .88rem;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 7px;
}
.contact-form label .opt { font-weight: 400; color: var(--muted); }
.contact-form input,
.contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--ink);
	background: var(--bg-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px 14px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #a79fb8; }
.contact-form textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-submit {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 6px;
	cursor: pointer;
	border: 0;
	font-size: 1.02rem;
	padding: 14px 20px;
}
.cf-submit:disabled { opacity: .6; cursor: default; }
.cf-status { font-size: .92rem; margin: 14px 0 0; text-align: center; }
.cf-status:empty { margin: 0; }
.cf-status.ok { color: #16a34a; font-weight: 600; }
.cf-status.err { color: #c0392b; font-weight: 600; }
.cf-foot { font-size: .9rem; color: var(--muted); margin: 16px 0 0; text-align: center; }

@media (max-width: 640px) {
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.modal-dialog { padding: 26px; }
}
