/* Yegna POS public website. Brand: forest #14361e, leaf #31a34b. */

:root {
	--bg: #ffffff;
	--bg-soft: #f4f8f5;
	--surface: #ffffff;
	--surface-2: #f7faf8;
	--ink: #0f1f15;
	--ink-2: #2a3d31;
	--muted: #56695d;
	--border: #e0e9e3;
	--border-strong: #c9d8ce;
	--primary: #1e7f37;
	--primary-hover: #17692d;
	--primary-ink: #ffffff;
	--primary-soft: #e6f4ea;
	--leaf: #31a34b;
	--forest: #14361e;
	--hl: #31a34b;
	--danger: #b42318;
	--danger-soft: #fdecea;
	--ok: #1e7f37;
	--ok-soft: #e6f4ea;
	--shadow-sm: 0 1px 2px rgba(15, 31, 21, 0.06), 0 1px 3px rgba(15, 31, 21, 0.06);
	--shadow: 0 10px 30px -12px rgba(15, 31, 21, 0.18), 0 4px 10px -6px rgba(15, 31, 21, 0.08);
	--shadow-lg: 0 30px 60px -20px rgba(15, 31, 21, 0.28);
	--header-bg: rgba(255, 255, 255, 0.82);
	--grid-line: rgba(20, 54, 30, 0.06);
	--radius: 16px;
	--radius-sm: 10px;
	--radius-lg: 24px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 68px;
	--font: "Manrope", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Space Grotesk", "Manrope", "Noto Sans Ethiopic", system-ui, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0a140e;
		--bg-soft: #0e1c14;
		--surface: #112218;
		--surface-2: #14281c;
		--ink: #eaf3ed;
		--ink-2: #cfe0d5;
		--muted: #9bb2a3;
		--border: rgba(255, 255, 255, 0.09);
		--border-strong: rgba(255, 255, 255, 0.18);
		--primary: #3cb85a;
		--primary-hover: #52c96e;
		--primary-ink: #06120a;
		--primary-soft: rgba(60, 184, 90, 0.14);
		--hl: #5fd27b;
		--danger: #f97066;
		--danger-soft: rgba(249, 112, 102, 0.12);
		--ok: #5fd27b;
		--ok-soft: rgba(95, 210, 123, 0.12);
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
		--shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
		--shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
		--header-bg: rgba(10, 20, 14, 0.78);
		--grid-line: rgba(255, 255, 255, 0.04);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0a140e;
	--bg-soft: #0e1c14;
	--surface: #112218;
	--surface-2: #14281c;
	--ink: #eaf3ed;
	--ink-2: #cfe0d5;
	--muted: #9bb2a3;
	--border: rgba(255, 255, 255, 0.09);
	--border-strong: rgba(255, 255, 255, 0.18);
	--primary: #3cb85a;
	--primary-hover: #52c96e;
	--primary-ink: #06120a;
	--primary-soft: rgba(60, 184, 90, 0.14);
	--hl: #5fd27b;
	--danger: #f97066;
	--danger-soft: rgba(249, 112, 102, 0.12);
	--ok: #5fd27b;
	--ok-soft: rgba(95, 210, 123, 0.12);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
	--header-bg: rgba(10, 20, 14, 0.78);
	--grid-line: rgba(255, 255, 255, 0.04);
	color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img,
svg {
	max-width: 100%;
}
a {
	color: var(--primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover {
	color: var(--primary-hover);
}
h1,
h2,
h3 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 {
	font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.75rem);
	font-weight: 700;
}
h2 {
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
	font-weight: 700;
}
h3 {
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}
p {
	margin: 0 0 1em;
}
:focus-visible {
	outline: 3px solid var(--leaf);
	outline-offset: 2px;
	border-radius: 6px;
}
main:focus {
	outline: none;
}
.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	background: var(--primary);
	color: var(--primary-ink);
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus {
	top: 12px;
}
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.center {
	text-align: center;
}
.muted {
	color: var(--muted);
}
.ic {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.25em;
}

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font: 700 0.95rem/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
	white-space: nowrap;
}
.btn .ic {
	transition: transform 0.2s var(--ease);
}
.btn:hover .ic {
	transform: translateX(3px);
}
.btn:active {
	transform: translateY(1px);
}
.btn-primary {
	background: var(--primary);
	color: var(--primary-ink);
	box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:hover {
	background: var(--primary-hover);
	color: var(--primary-ink);
}
.btn-ghost {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--border-strong);
}
.btn-ghost:hover {
	border-color: var(--primary);
	color: var(--primary);
}
.btn-light {
	background: #fff;
	color: var(--forest);
}
.btn-light:hover {
	background: #eaf6ed;
	color: var(--forest);
}
.btn-outline-light {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
	color: #fff;
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}
.btn-sm {
	min-height: 38px;
	padding: 0.45rem 1rem;
	font-size: 0.9rem;
}
.btn-lg {
	min-height: 52px;
	padding: 0.8rem 1.6rem;
	font-size: 1rem;
}
.btn-block {
	width: 100%;
}
.btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}
.btn.is-busy::after {
	content: "";
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	text-decoration: none;
}
.link-arrow:hover .ic {
	transform: translateX(3px);
}
.link-arrow .ic {
	transition: transform 0.2s var(--ease);
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 1.5rem;
}
.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}
.icon-btn .ic {
	width: 20px;
	height: 20px;
}

/* theme icons */
.show-dark {
	display: none;
}
:root[data-theme="dark"] .show-dark {
	display: block;
}
:root[data-theme="dark"] .show-light {
	display: none;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .show-dark {
		display: block;
	}
	:root:not([data-theme="light"]) .show-light {
		display: none;
	}
}
.brand-logo--dark {
	display: none;
}
:root[data-theme="dark"] .brand-logo--dark {
	display: block;
}
:root[data-theme="dark"] .brand-logo--light {
	display: none;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand-logo--dark {
		display: block;
	}
	:root:not([data-theme="light"]) .brand-logo--light {
		display: none;
	}
}

/* ---------- header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
	border-bottom-color: var(--border);
	box-shadow: var(--shadow-sm);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--header-h);
}
.brand {
	display: flex;
	align-items: center;
	flex: none;
}
.brand-logo {
	height: 40px;
	width: auto;
}
.header-tools {
	display: flex;
	gap: 8px;
	margin-left: auto;
}
.nav-toggle .when-open {
	display: none;
}
.nav-open .nav-toggle .when-open {
	display: block;
}
.nav-open .nav-toggle .when-closed {
	display: none;
}
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-nav a:not(.btn) {
	color: var(--ink-2);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}
.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"] {
	color: var(--primary);
}
.nav-actions {
	display: flex;
	gap: 10px;
}

@media (min-width: 1024px) {
	.main-nav {
		display: flex;
		align-items: center;
		gap: 28px;
		margin-left: auto;
	}
	.main-nav ul {
		display: flex;
		gap: 24px;
	}
	.main-nav a[aria-current="page"] {
		position: relative;
	}
	.main-nav a[aria-current="page"]::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -6px;
		height: 2px;
		border-radius: 2px;
		background: var(--primary);
	}
	.header-tools {
		margin-left: 0;
	}
	.nav-toggle {
		display: none;
	}
}
@media (max-width: 1023.98px) {
	.main-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-lg);
		padding: 8px var(--gutter) 24px;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
	}
	.nav-open .main-nav {
		transform: none;
		opacity: 1;
		visibility: visible;
	}
	.main-nav li a {
		display: block;
		padding: 14px 4px;
		border-bottom: 1px solid var(--border);
		font-size: 1.05rem;
	}
	.nav-actions {
		margin-top: 20px;
		flex-direction: column;
	}
	.nav-actions .btn {
		width: 100%;
		min-height: 48px;
	}
	.nav-open {
		overflow: hidden;
	}
}

/* ---------- sections ---------- */
.section {
	padding-block: clamp(56px, 8vw, 104px);
}
.section-flush {
	padding-top: 0;
}
.section-tint {
	background: var(--bg-soft);
	border-block: 1px solid var(--border);
}
.section-head {
	max-width: 760px;
	margin: 0 auto clamp(32px, 4vw, 52px);
	text-align: center;
}
.section-head.left {
	margin-left: 0;
	text-align: left;
}
.section-head p:last-child {
	color: var(--muted);
	font-size: 1.075rem;
	margin: 0;
}
.eyebrow {
	display: inline-block;
	margin: 0 0 0.9rem;
	font: 700 0.78rem/1 var(--font);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--primary);
}
.lead {
	font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
	color: var(--muted);
	max-width: 62ch;
}
.lead-sm {
	color: var(--muted);
	font-size: 1.05rem;
}
.hl {
	color: var(--hl);
}

/* ---------- hero ---------- */
.hero {
	position: relative;
	padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px);
	overflow: hidden;
	background:
		radial-gradient(900px 480px at 90% -10%, color-mix(in srgb, var(--leaf) 18%, transparent), transparent 60%),
		radial-gradient(700px 400px at -10% 110%, color-mix(in srgb, var(--leaf) 10%, transparent), transparent 60%);
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
	pointer-events: none;
}
.hero-grid {
	position: relative;
	display: grid;
	gap: clamp(40px, 6vw, 64px);
	align-items: center;
}
@media (min-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1.02fr 1fr;
	}
}
.hero-copy h1 {
	font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.35rem);
}
.hero-copy .lead {
	margin-bottom: 0;
}
.hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	color: var(--ink-2);
	font-weight: 600;
	font-size: 0.93rem;
}
.hero-points li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hero-points .ic {
	color: var(--primary);
}

/* POS mock */
.hero-visual {
	position: relative;
	padding: 18px 8px 34px;
}
.mock-window {
	position: relative;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.mock-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	background: var(--surface-2);
}
.mock-bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--border-strong);
}
.mock-bar em {
	margin-left: 10px;
	font: 500 0.75rem var(--font);
	font-style: normal;
	color: var(--muted);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 2px 12px;
}
.mock-body {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 14px;
	padding: 14px;
}
.mock-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-content: start;
}
.mock-product {
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px;
	background: var(--surface-2);
	display: grid;
	gap: 2px;
	min-width: 0;
}
.mock-product i {
	display: block;
	height: 34px;
	border-radius: 8px;
	margin-bottom: 6px;
	background: linear-gradient(135deg, var(--tone-a), var(--tone-b));
}
.mock-product b {
	font-size: 0.78rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mock-product small {
	font-size: 0.7rem;
	color: var(--muted);
}
.t-a {
	--tone-a: #c9ebd2;
	--tone-b: #7fcf93;
}
.t-b {
	--tone-a: #f6e3b4;
	--tone-b: #e9b949;
}
.t-c {
	--tone-a: #e7dccd;
	--tone-b: #b99a74;
}
.t-d {
	--tone-a: #cfe6f3;
	--tone-b: #7fb6d6;
}
.mock-cart {
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.78rem;
	min-width: 0;
}
.mock-title {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 0.82rem;
}
.mock-line {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}
.mock-line span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mock-line.muted {
	color: var(--muted);
}
.mock-line.total {
	font-weight: 800;
	font-size: 0.9rem;
	color: var(--ink);
}
.mock-sep {
	border-top: 1px dashed var(--border-strong);
	margin: 4px 0;
}
.mock-pay {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}
.mock-pay span {
	flex: 1;
	text-align: center;
	padding: 6px 4px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.7rem;
}
.mock-pay .on {
	border-color: var(--primary);
	background: var(--primary-soft);
	color: var(--primary);
}
.mock-charge {
	margin-top: 6px;
	text-align: center;
	padding: 9px;
	border-radius: 10px;
	background: var(--primary);
	color: var(--primary-ink);
	font-weight: 800;
}
.float-card {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	font-size: 0.82rem;
	line-height: 1.3;
}
.float-card b {
	display: block;
}
.float-card small {
	color: var(--muted);
}
.float-einvoice {
	left: -6px;
	bottom: -4px;
	animation: float 6s ease-in-out infinite;
}
.float-einvoice .qr {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--primary-soft);
	color: var(--primary);
}
.float-einvoice .qr .ic {
	width: 22px;
	height: 22px;
}
.ok-dot {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--primary-ink);
}
.ok-dot .ic {
	width: 14px;
	height: 14px;
	stroke-width: 3;
}
.float-sales {
	right: -6px;
	top: -2px;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	animation: float 7s ease-in-out -2s infinite;
}
.float-sales b {
	font: 700 1.1rem var(--font-display);
}
.spark {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 30px;
	margin-top: 4px;
}
.spark i {
	width: 8px;
	height: var(--h);
	border-radius: 3px;
	background: linear-gradient(to top, var(--primary), var(--leaf));
	opacity: 0.85;
}
@media (max-width: 560px) {
	.mock-body {
		grid-template-columns: 1fr;
	}
	.mock-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.mock-products .mock-product:nth-child(n + 4) {
		display: none;
	}
	.float-sales {
		display: none;
	}
	.float-einvoice {
		left: 8px;
		right: 8px;
		bottom: 0;
	}
}

/* ---------- stat strip ---------- */
.strip {
	border-block: 1px solid var(--border);
	background: var(--bg-soft);
}
.strip-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
	.strip-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.stat {
	padding: 22px 12px;
	text-align: center;
	display: grid;
	gap: 2px;
}
.stat + .stat {
	border-left: 1px solid var(--border);
}
@media (max-width: 767.98px) {
	.stat:nth-child(3) {
		border-left: 0;
	}
	.stat:nth-child(n + 3) {
		border-top: 1px solid var(--border);
	}
}
.stat b {
	font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2rem) / 1.1 var(--font-display);
	color: var(--primary);
}
.stat span {
	color: var(--muted);
	font-size: 0.9rem;
}

/* ---------- cards ---------- */
.cards {
	display: grid;
	gap: clamp(14px, 2vw, 22px);
}
@media (min-width: 640px) {
	.cards-2,
	.cards-3,
	.cards-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1024px) {
	.cards-3,
	.cards-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(20px, 2.4vw, 28px);
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.card:hover {
	border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}
.card h3 {
	margin-top: 4px;
}
.card p {
	color: var(--muted);
	margin-bottom: 0;
}
.card .checks {
	margin-top: 16px;
}
.card .link-arrow {
	margin-top: auto;
	padding-top: 18px;
}
.card-lg {
	padding: clamp(24px, 3vw, 34px);
}
.compact .card {
	padding: 20px;
}
.card-icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	margin-bottom: 14px;
	background: var(--primary-soft);
	color: var(--primary);
	flex: none;
}
.card-icon .ic {
	width: 24px;
	height: 24px;
}
.cards-1 {
	gap: 16px;
}

.checks {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	gap: 10px;
}
.checks li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--ink-2);
}
.checks .ic {
	width: 20px;
	height: 20px;
	padding: 3px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
	stroke-width: 3;
}
.checks-sm {
	gap: 7px;
	font-size: 0.93rem;
	margin-bottom: 0;
}

/* ---------- split ---------- */
.split {
	display: grid;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
@media (min-width: 1024px) {
	.split {
		grid-template-columns: 1fr 1fr;
	}
	.split-rev > :first-child {
		order: 0;
	}
}
@media (max-width: 1023.98px) {
	.split-rev > :first-child {
		order: 2;
	}
}
.note-card {
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}
.note-card p {
	color: var(--muted);
}

/* e-invoice flow */
.einvoice-flow {
	display: grid;
	gap: 14px;
	counter-reset: step;
}
.flow-step {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	align-items: start;
	padding: 18px 20px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
}
.flow-step h3 {
	margin: 0 0 2px;
	font-size: 1.02rem;
}
.flow-step p {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}
.flow-num {
	position: absolute;
	top: 12px;
	right: 14px;
	font: 700 0.75rem var(--font-display);
	color: var(--muted);
}
.flow-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--primary);
	color: var(--primary-ink);
}
.flow-icon .ic {
	width: 22px;
	height: 22px;
}
.einvoice-flow:not(.horizontal) .flow-step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 41px;
	bottom: -15px;
	width: 2px;
	height: 16px;
	background: var(--border-strong);
}
@media (min-width: 900px) {
	.einvoice-flow.horizontal {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.einvoice-flow.horizontal .flow-step {
		grid-template-columns: 1fr;
	}
}
@media (min-width: 640px) and (max-width: 899.98px) {
	.einvoice-flow.horizontal {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* steps */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
	counter-reset: step;
}
@media (min-width: 900px) {
	.steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.step {
	counter-increment: step;
	padding: 28px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
}
.step::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font: 700 2.4rem/1 var(--font-display);
	color: var(--primary);
	opacity: 0.9;
	margin-bottom: 14px;
}
.step p {
	color: var(--muted);
	margin: 0;
}
.numbered {
	padding-left: 1.3rem;
	margin: 0 0 1.5rem;
	display: grid;
	gap: 10px;
	color: var(--ink-2);
}
.numbered li::marker {
	color: var(--primary);
	font-weight: 700;
}

/* hardware tiles */
.hardware-visual {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.hw-tile {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 22px 10px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	text-align: center;
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--ink-2);
}
.hw-tile span {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--primary-soft);
	color: var(--primary);
}
.hw-tile .ic {
	width: 26px;
	height: 26px;
}
.hw-tile:nth-child(even) span {
	background: color-mix(in srgb, var(--leaf) 22%, transparent);
}
@media (max-width: 420px) {
	.hardware-visual {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* FAQ */
.faq-wrap {
	max-width: 860px;
}
.faq {
	display: grid;
	gap: 12px;
}
.faq details {
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	transition: border-color 0.2s;
}
.faq details[open] {
	border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary .ic {
	color: var(--primary);
	transition: transform 0.25s var(--ease);
}
.faq details[open] summary .ic {
	transform: rotate(45deg);
}
.faq details p {
	padding: 0 22px 20px;
	margin: 0;
	color: var(--muted);
}

/* CTA band */
.cta-band {
	position: relative;
	display: grid;
	gap: 24px;
	align-items: center;
	padding: clamp(28px, 5vw, 56px);
	border-radius: var(--radius-lg);
	color: #e6f4ea;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(49, 163, 75, 0.45), transparent 60%),
		linear-gradient(135deg, #14361e 0%, #1b4a29 100%);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.cta-band h2 {
	color: #fff;
	margin-bottom: 0.35em;
}
.cta-band p {
	margin: 0;
	color: #c6e3cf;
	max-width: 56ch;
}
.cta-band .actions {
	margin-top: 0;
}
@media (min-width: 900px) {
	.cta-band {
		grid-template-columns: 1fr auto;
	}
}

/* page hero */
.page-hero {
	padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px);
	background: radial-gradient(800px 380px at 85% -20%, color-mix(in srgb, var(--leaf) 16%, transparent), transparent 60%);
}
.page-hero h1 {
	max-width: 22ch;
}
.page-hero-sm h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
}
.page-hero .lead {
	margin-bottom: 0;
}

/* chips */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
nav.chips {
	padding-bottom: clamp(8px, 2vw, 16px);
}
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
	background: var(--surface);
	color: var(--ink-2);
	font: 600 0.9rem var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}
.chip:hover {
	border-color: var(--primary);
	color: var(--primary);
}
.chip.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-ink);
}
.filter-chips {
	justify-content: center;
	margin-bottom: 28px;
}

/* plans */
.plans {
	display: grid;
	gap: 18px;
}
@media (min-width: 900px) {
	.plans {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
	}
}
.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px 26px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--border);
}
.plan .checks {
	flex: 1;
}
.plan h3 {
	font-size: 1.4rem;
	margin: 0;
}
.plan-for {
	color: var(--muted);
	margin: 4px 0 20px;
}
.plan-featured {
	border: 2px solid var(--primary);
	box-shadow: var(--shadow);
}
.plan-badge {
	position: absolute;
	top: -13px;
	left: 26px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--primary);
	color: var(--primary-ink);
	font: 700 0.72rem var(--font);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* product cards */
.product-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}
.tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--muted);
	font: 700 0.72rem var(--font);
	letter-spacing: 0.04em;
}
.product[hidden] {
	display: none;
}

/* ---------- forms ---------- */
.contact-grid {
	display: grid;
	gap: 24px;
	align-items: start;
}
@media (min-width: 1024px) {
	.contact-grid {
		grid-template-columns: 1.5fr 1fr;
	}
}
.form-card {
	padding: clamp(22px, 3.5vw, 40px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}
.form-card h2 {
	font-size: 1.5rem;
}
.form {
	display: grid;
	gap: 18px;
}
.form-row {
	display: grid;
	gap: 18px;
}
@media (min-width: 640px) {
	.form-row {
		grid-template-columns: 1fr 1fr;
	}
}
.field {
	display: grid;
	gap: 6px;
	min-width: 0;
}
.field > span {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ink-2);
}
.field em {
	color: var(--danger);
	font-style: normal;
}
.field small {
	font-weight: 500;
	color: var(--muted);
}
.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border-radius: 12px;
	border: 1px solid var(--border-strong);
	background: var(--bg);
	color: var(--ink);
	font: 500 1rem/1.4 var(--font);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
	resize: vertical;
	min-height: 130px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px var(--primary-soft);
}
.field [aria-invalid="true"] {
	border-color: var(--danger);
	box-shadow: 0 0 0 4px var(--danger-soft);
}
.hint {
	color: var(--muted);
	font-size: 0.83rem;
}
.pw-wrap {
	position: relative;
}
.pw-wrap input {
	padding-right: 72px;
}
.pw-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: none;
	color: var(--primary);
	font: 700 0.85rem var(--font);
	padding: 8px 10px;
	cursor: pointer;
	border-radius: 8px;
}
.check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.95rem;
	color: var(--ink-2);
	cursor: pointer;
}
.check input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--primary);
	flex: none;
}
.check input[aria-invalid="true"] {
	outline: 2px solid var(--danger);
	outline-offset: 2px;
}
.hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.form-msg {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
}
.form-error {
	background: var(--danger-soft);
	color: var(--danger);
}
.form-ok {
	background: var(--ok-soft);
	color: var(--ok);
}
.form-note {
	margin: 0;
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
}
.type-picker {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.type-picker legend {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ink-2);
	margin-bottom: 10px;
	padding: 0;
}
.type-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
@media (min-width: 640px) {
	.type-options {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.type-option {
	position: relative;
	cursor: pointer;
}
.type-option input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.type-option span {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid var(--border-strong);
	background: var(--bg);
	font-weight: 600;
	font-size: 0.93rem;
	transition: all 0.2s;
}
.type-option .ic {
	color: var(--primary);
}
.type-option input:checked + span {
	border-color: var(--primary);
	background: var(--primary-soft);
	box-shadow: inset 0 0 0 1px var(--primary);
}
.type-option input:focus-visible + span {
	outline: 3px solid var(--leaf);
	outline-offset: 2px;
}
.form-success {
	text-align: center;
	padding: 24px 0;
}
.form-success:focus {
	outline: none;
}
.success-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--primary-ink);
	margin-bottom: 16px;
}
.success-icon .ic {
	width: 32px;
	height: 32px;
	stroke-width: 2.6;
}
.contact-side {
	display: grid;
	gap: 18px;
}
.info-card {
	padding: 26px;
	border-radius: var(--radius-lg);
	background: var(--bg-soft);
	border: 1px solid var(--border);
}
.info-card h2 {
	font-size: 1.2rem;
}
.info-card p {
	color: var(--muted);
}
.info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}
.info-list li {
	display: flex;
	gap: 14px;
}
.info-list .ic {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 10px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--primary);
}
.info-list b {
	display: block;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}
.info-list span,
.info-list a {
	font-weight: 600;
	overflow-wrap: anywhere;
}
.map-card {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	background: var(--bg-soft);
}
.map-card iframe {
	display: block;
	width: 100%;
	height: clamp(300px, 45vw, 460px);
	border: 0;
}
.map-link {
	position: absolute;
	left: 16px;
	bottom: 16px;
}

/* register */
.auth-section {
	padding-top: clamp(32px, 6vw, 72px);
}
.auth-grid {
	display: grid;
	gap: clamp(28px, 5vw, 56px);
	align-items: start;
}
@media (min-width: 1024px) {
	.auth-grid {
		grid-template-columns: 1fr 1.05fr;
	}
	.auth-copy {
		position: sticky;
		top: calc(var(--header-h) + 32px);
	}
}
.auth-copy h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
}
.auth-copy .checks {
	margin-top: 24px;
}

/* legal */
.legal-grid {
	display: grid;
	gap: 32px;
}
@media (min-width: 1024px) {
	.legal-grid {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 56px;
	}
	.toc {
		position: sticky;
		top: calc(var(--header-h) + 24px);
		align-self: start;
	}
}
.toc {
	padding: 20px;
	border-radius: var(--radius);
	background: var(--bg-soft);
	border: 1px solid var(--border);
	font-size: 0.92rem;
}
.toc p {
	margin: 0 0 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	color: var(--muted);
}
.toc ol {
	margin: 0;
	padding-left: 1.2rem;
	display: grid;
	gap: 6px;
}
.toc a {
	color: var(--ink-2);
	text-decoration: none;
}
.toc a:hover {
	color: var(--primary);
}
.prose {
	max-width: 74ch;
	color: var(--ink-2);
}
.prose .intro {
	font-size: 1.1rem;
	color: var(--ink);
}
.prose h2 {
	font-size: 1.35rem;
	margin-top: 2.2em;
}
.prose ul {
	padding-left: 1.2rem;
	display: grid;
	gap: 8px;
	margin: 0 0 1em;
}
.prose li::marker {
	color: var(--primary);
}

/* 404 */
.notfound {
	min-height: 60vh;
	display: grid;
	align-items: center;
}

/* ---------- footer ---------- */
.site-footer {
	margin-top: clamp(24px, 4vw, 48px);
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	font-size: 0.95rem;
}
.footer-grid {
	display: grid;
	gap: 32px;
	padding-block: clamp(40px, 6vw, 64px);
}
@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.footer-brand {
		grid-column: 1 / -1;
	}
}
@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
	}
	.footer-brand {
		grid-column: auto;
	}
}
.footer-brand .brand-logo {
	height: 44px;
	margin-bottom: 14px;
}
.footer-brand p {
	color: var(--muted);
	max-width: 36ch;
}
.footer-col h2 {
	font: 700 0.78rem var(--font);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 14px;
}
.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.footer-col a {
	color: var(--ink-2);
	text-decoration: none;
}
.footer-col a:hover {
	color: var(--primary);
}
.footer-col address {
	font-style: normal;
	color: var(--ink-2);
	line-height: 1.8;
}
.social {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}
.social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--ink-2);
	transition: all 0.2s;
}
.social a:hover {
	border-color: var(--primary);
	color: var(--primary);
}
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	padding-block: 20px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.88rem;
}
.footer-bottom p {
	margin: 0;
}
.footer-bottom a {
	color: var(--muted);
}

/* ---------- motion ---------- */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}
.js .reveal.d1 {
	transition-delay: 0.08s;
}
.js .reveal.d2 {
	transition-delay: 0.16s;
}
.js .reveal.d3 {
	transition-delay: 0.24s;
}
@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.cta-band,
	.skip-link {
		display: none !important;
	}
	.js .reveal {
		opacity: 1;
		transform: none;
	}
}
