/* BayiPOS — refined design system · primary #2563eb
   Inspired by editorial product sites (Linear, Stripe, Vercel) */

/* ---------- Tokens ---------- */
:root,
[data-theme='dark'] {
	--primary: #2563eb;
	--primary-600: #2563eb;
	--primary-700: #1d4ed8;
	--primary-50: rgba(37, 99, 235, 0.08);
	--primary-100: rgba(37, 99, 235, 0.16);
	--primary-glow: rgba(37, 99, 235, 0.3);

	--bg: #0a0d14;
	--surface: #0f131c;
	--elevated: #141a26;
	--border: rgba(148, 163, 184, 0.1);
	--border-strong: rgba(148, 163, 184, 0.18);
	--fg: #e8edf5;
	--fg-soft: #c2cad6;
	--muted: #8a93a4;

	--ok: #10b981;
	--warn: #f59e0b;
	--danger: #ef4444;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

	--radius: 12px;
	--radius-lg: 18px;
	--radius-xl: 24px;
	color-scheme: dark;
}

[data-theme='light'] {
	--primary: #2563eb;
	--primary-600: #2563eb;
	--primary-700: #1d4ed8;
	--primary-50: rgba(37, 99, 235, 0.06);
	--primary-100: rgba(37, 99, 235, 0.12);
	--primary-glow: rgba(37, 99, 235, 0.18);

	--bg: #f7f8fb;
	--surface: #ffffff;
	--elevated: #ffffff;
	--border: rgba(15, 23, 42, 0.08);
	--border-strong: rgba(15, 23, 42, 0.12);
	--fg: #0f172a;
	--fg-soft: #1f2937;
	--muted: #64748b;

	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1);

	color-scheme: light;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
	background: var(--bg);
	color: var(--fg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

button {
	font-family: inherit;
}

.dir-ltr {
	direction: ltr;
	unicode-bidi: isolate;
}

.muted {
	color: var(--muted);
	font-size: 0.86rem;
}

.container {
	max-width: 76rem;
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Background ---------- */
.bg-noise {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(900px 480px at 80% -10%, var(--primary-100), transparent 60%),
		radial-gradient(700px 420px at 0% 10%, rgba(99, 102, 241, 0.08), transparent 65%);
	opacity: 0.85;
}

main,
.header,
.footer {
	position: relative;
	z-index: 1;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
	color: var(--fg);
	letter-spacing: -0.02em;
	font-weight: 700;
	line-height: 1.18;
	margin: 0;
}

h1 {
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	letter-spacing: -0.035em;
	font-weight: 700;
}

h2 {
	font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
	font-size: 1.05rem;
	font-weight: 600;
}

p {
	margin: 0;
	color: var(--fg-soft);
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--primary);
	margin: 0 0 0.85rem;
}

.kicker::before {
	content: '';
	width: 18px;
	height: 1px;
	background: var(--primary);
	opacity: 0.6;
}

.lead {
	color: var(--fg-soft);
	font-size: 1.02rem;
	max-width: 36rem;
}

/* ---------- Icons (Lucide) ---------- */
i[data-lucide] {
	display: inline-block;
	width: 1em;
	height: 1em;
}

svg.lucide {
	width: 1em;
	height: 1em;
	stroke-width: 1.6;
	flex-shrink: 0;
	vertical-align: -0.125em;
}

.ico-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--primary-100);
	color: var(--primary);
	font-size: 1.05rem;
	flex-shrink: 0;
}

/* ---------- Header ---------- */
.header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(14px) saturate(140%);
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	border-bottom: 1px solid var(--border);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-block: 0.85rem;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: var(--fg);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: -0.02em;
}

.logo__accent {
	color: var(--primary);
}

.nav {
	display: none;
	gap: 1.4rem;
	margin-inline: auto;
	font-size: 0.9rem;
	font-weight: 500;
}

.nav a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.15s ease;
	position: relative;
}

.nav a:hover {
	color: var(--fg);
}

.nav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: var(--primary);
	transform: scaleX(0);
	transform-origin: 50%;
	transition: transform 0.18s ease;
}

.nav a:hover::after {
	transform: scaleX(1);
}

.header__actions {
	display: none;
	align-items: center;
	gap: 0.5rem;
}

.header__menu {
	margin-inline-start: auto;
}

@media (min-width: 880px) {
	.nav,
	.header__actions {
		display: inline-flex;
	}
	.header__menu {
		display: none;
	}
}

/* segmented + icon button */
.seg {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 3px;
	background: var(--surface);
	gap: 2px;
}

.seg button {
	border: none;
	background: transparent;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.15s, background 0.15s;
}

.seg button:hover {
	color: var(--fg);
}

.seg button.is-active {
	color: #fff;
	background: var(--primary);
}

.icon-btn {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--fg);
	border-radius: 10px;
	cursor: pointer;
	font-size: 1rem;
	transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 1.05rem;
	border-radius: 11px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.btn:active {
	transform: translateY(1px);
}

.btn svg.lucide {
	font-size: 1.05em;
}

.btn--sm {
	padding: 0.45rem 0.85rem;
	font-size: 0.84rem;
}

.btn--lg {
	padding: 0.78rem 1.4rem;
	font-size: 0.96rem;
	border-radius: 12px;
}

.btn--wide {
	width: 100%;
}

.btn--primary {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 18px var(--primary-glow);
}

.btn--primary:hover {
	background: var(--primary-700);
}

.btn--ghost {
	background: var(--surface);
	color: var(--fg);
	border-color: var(--border-strong);
}

.btn--ghost:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.btn--light {
	background: #fff;
	color: var(--primary-700);
}

.btn--light:hover {
	background: #f1f5f9;
}

.btn--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.btn--outline:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* ---------- Hero ---------- */
.hero {
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.hero__inner {
	display: grid;
	gap: clamp(2.25rem, 4vw, 3.5rem);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 1000px) {
	.hero__inner {
		grid-template-columns: 1.05fr 1.15fr;
	}
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--fg);
	background: var(--surface);
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
}

.badge:hover {
	border-color: var(--primary);
	transform: translateY(-1px);
}

.badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 0 0 4px var(--primary-100);
}

.badge__arrow {
	font-size: 0.95rem;
	color: var(--primary);
}

.hero__title {
	margin: 0.85rem 0 1rem;
}

.hero__lead {
	color: var(--muted);
	font-size: 1.07rem;
	max-width: 38rem;
	margin: 0 0 1.65rem;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 2rem;
}

.hero__meta {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 1rem 0 0;
	border-top: 1px dashed var(--border);
	max-width: 32rem;
}

@media (min-width: 540px) {
	.hero__meta {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.hero__meta dt {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin: 0 0 0.2rem;
}

.hero__meta dd {
	margin: 0;
	font-weight: 600;
	color: var(--fg);
	font-size: 0.92rem;
}

/* Hero visual */
.hero__visual {
	position: relative;
}

.window {
	background: var(--elevated);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	transform: rotate(-0.6deg);
	transition: transform 0.5s ease;
}

.window:hover {
	transform: rotate(0deg) translateY(-3px);
}

.window__bar {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.6rem 0.85rem;
	background: color-mix(in srgb, var(--surface) 85%, transparent);
	border-bottom: 1px solid var(--border);
	direction: ltr;
}

.window__bar > span {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #ef4444;
}

.window__bar > span:nth-child(2) {
	background: #f59e0b;
}

.window__bar > span:nth-child(3) {
	background: #10b981;
}

.window__url {
	margin-inline-start: auto;
	font-family: 'Inter', monospace;
	font-size: 0.75rem;
	color: var(--muted);
	background: var(--bg);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	border: 1px solid var(--border);
}

.window img {
	display: block;
	width: 100%;
	height: auto;
}

.float-card {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	background: var(--elevated);
	border: 1px solid var(--border-strong);
	border-radius: 14px;
	padding: 0.7rem 0.95rem;
	box-shadow: var(--shadow-md);
	font-size: 0.85rem;
	max-width: 14rem;
}

.float-card__ico {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-100);
	color: var(--primary);
	border-radius: 9px;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.float-card strong {
	display: block;
	font-size: 0.86rem;
	color: var(--fg);
}

.float-card span {
	display: block;
	font-size: 0.74rem;
	color: var(--muted);
}

.float-card--a {
	bottom: -22px;
	inset-inline-start: -14px;
	animation: floaty 6s ease-in-out infinite;
}

.float-card--b {
	top: -16px;
	inset-inline-end: -10px;
	animation: floaty 7s ease-in-out infinite -3s;
}

@keyframes floaty {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@media (max-width: 720px) {
	.float-card {
		display: none;
	}
}

/* Marquee */
.marquee {
	margin-top: 3rem;
	overflow: hidden;
	border-block: 1px solid var(--border);
	padding-block: 0.8rem;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
	display: inline-flex;
	gap: 1.4rem;
	white-space: nowrap;
	animation: scroll 38s linear infinite;
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 500;
}

.marquee__track span {
	flex-shrink: 0;
}

@keyframes scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}


/* ---------- Sections ---------- */
.section {
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--alt {
	background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent) 12%, color-mix(in srgb, var(--surface) 60%, transparent) 88%, transparent);
	border-block: 1px solid var(--border);
}

.head {
	max-width: 42rem;
	margin: 0 auto clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.head h2 {
	margin-bottom: 0.7rem;
}

.head__sub {
	color: var(--muted);
	font-size: 1rem;
	margin: 0;
}

/* ---------- Bento grid ---------- */
.bento {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 760px) {
	.bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.bento__cell--lg {
		grid-column: span 2;
		grid-row: span 2;
	}
	.bento__cell--wide {
		grid-column: span 2;
	}
}

.bento__cell {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.25rem 1.35rem;
	transition: border-color 0.18s, transform 0.18s, background 0.18s;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	position: relative;
	overflow: hidden;
}

.bento__cell:hover {
	border-color: var(--border-strong);
	transform: translateY(-2px);
}

.bento__icon {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-100);
	color: var(--primary);
	border-radius: 10px;
	font-size: 1.15rem;
	margin-bottom: 0.35rem;
}

.bento__cell h3 {
	font-size: 1.02rem;
	font-weight: 600;
}

.bento__cell p {
	color: var(--muted);
	font-size: 0.92rem;
}

.bento__list {
	margin: auto 0 0;
	padding: 0.75rem 0 0;
	list-style: none;
	border-top: 1px dashed var(--border);
	display: grid;
	gap: 0.4rem;
}

.bento__list li {
	font-size: 0.86rem;
	color: var(--fg-soft);
	padding-inline-start: 1.1rem;
	position: relative;
}

.bento__list li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: var(--primary);
	transform: rotate(45deg);
}

.bento__cell--blue {
	background: linear-gradient(160deg, var(--primary), var(--primary-700));
	border-color: transparent;
	color: #fff;
}

.bento__cell--blue h3,
.bento__cell--blue p {
	color: #fff;
}

.bento__cell--blue p {
	opacity: 0.92;
}

.bento__icon--inv {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* ---------- Modules ---------- */
.modules {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.module {
	display: flex;
	gap: 0.85rem;
	padding: 1rem 1.1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 0.18s, background 0.18s;
}

.module:hover {
	border-color: var(--primary);
	background: color-mix(in srgb, var(--primary-50) 50%, var(--surface));
}

.module__icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-100);
	color: var(--primary);
	border-radius: 9px;
	font-size: 1.15rem;
}

.module h3 {
	font-size: 0.95rem;
	margin-bottom: 0.2rem;
}

.module p {
	color: var(--muted);
	font-size: 0.84rem;
	margin: 0;
}

/* ---------- Algeria split ---------- */
.split {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 920px) {
	.split {
		grid-template-columns: 1fr 1fr;
	}
}

.check {
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

.check li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding-inline-start: 1.6rem;
	color: var(--fg-soft);
	font-size: 0.95rem;
	position: relative;
}

.check li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.45em;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: var(--primary-100);
	border: 2px solid var(--primary);
	box-shadow: inset 0 0 0 2px var(--surface);
}

/* Invoice mock */
.invoice {
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-xl);
	padding: 1.4rem;
	box-shadow: var(--shadow-md);
	max-width: 26rem;
	margin-inline: auto;
}

.invoice__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px dashed var(--border);
}

.invoice__head strong {
	display: block;
	font-size: 0.95rem;
	margin-bottom: 0.15rem;
}

.invoice__head .muted {
	font-size: 0.78rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	letter-spacing: 0.05em;
	background: var(--primary-100);
	color: var(--primary);
}

.invoice__rows {
	padding: 1rem 0;
	border-bottom: 1px dashed var(--border);
	display: grid;
	gap: 0.55rem;
}

.invoice__row {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: var(--fg-soft);
}

.invoice__totals {
	margin: 1rem 0 0;
	display: grid;
	gap: 0.35rem;
}

.invoice__totals > div {
	display: flex;
	justify-content: space-between;
	font-size: 0.88rem;
	color: var(--muted);
}

.invoice__totals dt,
.invoice__totals dd {
	margin: 0;
}

.invoice__final {
	margin-top: 0.5rem;
	padding-top: 0.7rem;
	border-top: 2px solid var(--border-strong);
	color: var(--fg) !important;
	font-weight: 700;
	font-size: 1rem !important;
}

.invoice__final dd {
	color: var(--primary);
}

/* ---------- Gallery ---------- */
.gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 760px) {
	.gallery {
		grid-template-columns: 1.2fr 1fr;
		grid-template-rows: auto auto;
	}
	.gallery__item--lg {
		grid-row: span 2;
	}
}

.gallery__item {
	margin: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border-strong);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Cols (extra) ---------- */
.cols {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

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

@media (min-width: 1080px) {
	.cols {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.cols__col {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
}

.cols__col h3 {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.98rem;
	margin-bottom: 0.85rem;
}

.cols__col h3 svg.lucide {
	color: var(--primary);
	font-size: 1.15rem;
}

.cols__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

.cols__col li {
	color: var(--fg-soft);
	font-size: 0.9rem;
	padding-inline-start: 1rem;
	position: relative;
}

.cols__col li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.65em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--primary);
}

/* ---------- Comparison table ---------- */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.cmp {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	min-width: 36rem;
}

.cmp th,
.cmp td {
	padding: 0.85rem 1rem;
	text-align: center;
	border-bottom: 1px solid var(--border);
}

.cmp th {
	background: color-mix(in srgb, var(--primary-50), transparent);
	font-weight: 600;
	color: var(--fg);
	font-size: 0.85rem;
}

.cmp th:first-child,
.cmp td:first-child {
	text-align: start;
	color: var(--fg-soft);
}

.cmp__us {
	color: var(--primary) !important;
}

.cmp tbody tr:last-child td {
	border-bottom: none;
}

.cmp tbody tr:hover {
	background: var(--primary-50);
}

.cmp__yes {
	color: var(--ok);
	font-weight: 700;
}

.cmp__no {
	color: var(--danger);
	font-weight: 700;
}

.cmp__warn {
	color: var(--warn);
	font-weight: 600;
	font-size: 0.84rem;
}

/* ---------- Pricing ---------- */
.plans {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 880px) {
	.plans {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
	}
}

.plan {
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-xl);
	padding: 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: relative;
	transition: border-color 0.18s, transform 0.18s;
}

.plan:hover {
	transform: translateY(-3px);
}

.plan--featured {
	border-color: var(--primary);
	background: linear-gradient(180deg, color-mix(in srgb, var(--primary-50) 80%, var(--surface)), var(--surface));
	box-shadow: 0 24px 60px var(--primary-glow);
	transform: scale(1.01);
}

.plan__ribbon {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	background: var(--primary);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	box-shadow: 0 4px 12px var(--primary-glow);
}

.plan__tag {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 0.55rem;
}

.plan h3 {
	font-size: 1.2rem;
	margin-bottom: 0.7rem;
}

.plan__price {
	margin: 0;
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--fg);
	letter-spacing: -0.02em;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.plan__old s {
	font-size: 0.95rem;
	color: var(--muted);
	font-weight: 600;
}

.plan__now {
	color: var(--primary);
	font-size: clamp(1.6rem, 3vw, 2rem);
}

.plan ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.plan ul li {
	font-size: 0.92rem;
	color: var(--fg-soft);
	padding-inline-start: 1.4rem;
	position: relative;
}

.plan ul li::before {
	content: '✓';
	position: absolute;
	inset-inline-start: 0;
	color: var(--primary);
	font-weight: 800;
}

.plan .btn {
	margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq {
	max-width: 50rem;
}

.faq__list {
	display: grid;
	gap: 0.6rem;
}

.faq details {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.18s;
}

.faq details[open] {
	border-color: var(--border-strong);
}

.faq summary {
	cursor: pointer;
	padding: 1rem 1.15rem;
	font-weight: 600;
	color: var(--fg);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	list-style: none;
	font-size: 0.95rem;
}

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

.faq summary svg.lucide {
	color: var(--primary);
	transition: transform 0.2s ease;
}

.faq details[open] summary svg.lucide {
	transform: rotate(45deg);
}

.faq details p {
	padding: 0 1.15rem 1.1rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	grid-template-columns: 1fr;
}

@media (min-width: 920px) {
	.contact {
		grid-template-columns: 1fr 1.1fr;
	}
}

.contact__list {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.contact__list li {
	display: flex;
	gap: 0.85rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.85rem 1rem;
	align-items: flex-start;
}

.contact__list .ico-badge {
	font-size: 1.05rem;
}

.contact__list strong {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin-bottom: 0.18rem;
}

.contact__list span,
.contact__list a {
	font-weight: 500;
	color: var(--fg);
	text-decoration: none;
}

.link {
	color: var(--primary) !important;
	border-bottom: 1px dashed var(--primary-100);
	transition: border-color 0.15s;
}

.link:hover {
	border-bottom-color: var(--primary);
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.social a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.84rem;
	font-weight: 600;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--fg);
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.social a:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* ---------- Form ---------- */
.form {
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-xl);
	padding: clamp(1.25rem, 3vw, 1.85rem);
	box-shadow: var(--shadow-md);
}

.hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	padding: 0;
	margin: -1px;
}

.form__row {
	margin-bottom: 1rem;
}

.form__row--2 {
	display: grid;
	gap: 1rem;
}

@media (min-width: 540px) {
	.form__row--2 {
		grid-template-columns: 1fr 1fr;
	}
}

.form label span {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--fg-soft);
	margin-bottom: 0.4rem;
}

.form input,
.form select,
.form textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border-radius: 10px;
	border: 1px solid var(--border-strong);
	background: var(--bg);
	color: var(--fg);
	font-family: inherit;
	font-size: 0.95rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-100);
}

.select {
	position: relative;
}

.select select {
	appearance: none;
	padding-inline-end: 2.5rem;
}

.select svg.lucide {
	position: absolute;
	inset-inline-end: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
	font-size: 1.05rem;
}

.turnstile {
	margin-bottom: 0.85rem;
}

.form__msg {
	min-height: 1.4rem;
	font-size: 0.88rem;
	margin: 0 0 0.85rem;
}

.form__msg--ok {
	color: var(--ok);
	font-weight: 600;
}

.form__msg--err {
	color: var(--danger);
	font-weight: 600;
}

.form__hint {
	margin: 1rem 0 0;
	font-size: 0.78rem;
	color: var(--muted);
	text-align: center;
}

/* ---------- CTA section ---------- */
.section--cta {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.cta {
	background: linear-gradient(125deg, var(--primary), var(--primary-700) 60%, #4338ca);
	color: #fff;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--radius-xl);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	box-shadow: 0 24px 60px var(--primary-glow);
}

.cta h2,
.cta p {
	color: #fff;
}

.cta p {
	opacity: 0.92;
	margin-top: 0.3rem;
	max-width: 36rem;
}

.cta__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* ---------- Footer ---------- */
.footer {
	border-top: 1px solid var(--border);
	padding-block: 2.5rem 1.5rem;
	background: var(--bg);
}

.footer__inner {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	align-items: start;
	font-size: 0.88rem;
}

@media (min-width: 720px) {
	.footer__inner {
		grid-template-columns: 1.3fr 1fr 1fr;
	}
}

.footer__brand p {
	color: var(--muted);
	margin-top: 0.5rem;
	max-width: 22rem;
}

.footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
}

.footer__nav a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 500;
}

.footer__nav a:hover {
	color: var(--primary);
}

.footer__meta {
	color: var(--muted);
}

.footer__meta p {
	margin: 0.25rem 0;
}

.footer__meta strong {
	color: var(--fg);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 879px) {
	.header__inner {
		flex-wrap: wrap;
	}
	.nav {
		order: 4;
		width: 100%;
		flex-direction: column;
		gap: 0.5rem;
		padding: 0.85rem 0 0.5rem;
		border-top: 1px solid var(--border);
		display: none;
	}
	.nav a::after {
		display: none;
	}
	.header.is-open .nav,
	.header.is-open .header__actions {
		display: flex;
	}
	.header__actions {
		order: 5;
		flex-wrap: wrap;
		width: 100%;
		justify-content: flex-start;
		gap: 0.5rem;
	}
}

/* ---------- Reveal on scroll ---------- */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

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