/* =========================================================
   MKera — modern homepage
   ========================================================= */

:root {
	--bg: #f7f5f1;
	--bg-elevated: #ffffff;
	--bg-muted: #efece6;
	--ink: #14120f;
	--ink-soft: #5c574e;
	--ink-muted: #8a8378;
	--line: rgba(20, 18, 15, 0.08);
	--accent: #e8a317;
	--accent-deep: #c4850a;
	--accent-soft: rgba(232, 163, 23, 0.14);
	--dark: #16140f;
	--dark-2: #221f18;
	--radius: 20px;
	--radius-sm: 12px;
	--radius-pill: 999px;
	--shadow: 0 20px 50px rgba(20, 18, 15, 0.08);
	--shadow-lg: 0 30px 80px rgba(20, 18, 15, 0.14);
	--container: 1120px;
	--container-narrow: 720px;
	--font: "DM Sans", system-ui, -apple-system, sans-serif;
	--serif: "Instrument Serif", Georgia, serif;
	--header-h: 72px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3 {
	margin: 0;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.85rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

p {
	margin: 0 0 1rem;
}

p:last-child {
	margin-bottom: 0;
}

em {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
}

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 2rem, var(--container-narrow));
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.4rem;
	border-radius: var(--radius-pill);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
	text-decoration: none;
	white-space: nowrap;
}

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

.btn:active {
	transform: translateY(0);
}

.btn--sm {
	padding: 0.6rem 1rem;
	font-size: 0.875rem;
}

.btn--lg {
	padding: 1rem 1.6rem;
	font-size: 1rem;
}

.btn--primary {
	background: var(--ink);
	color: #fff;
	box-shadow: 0 8px 24px rgba(20, 18, 15, 0.18);
}

.btn--primary:hover {
	background: #000;
	box-shadow: 0 12px 28px rgba(20, 18, 15, 0.22);
}

.btn--ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
}

.btn--ghost:hover {
	border-color: var(--ink);
	background: rgba(20, 18, 15, 0.03);
}

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

.btn--light:hover {
	background: var(--accent);
}

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

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

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	backdrop-filter: blur(16px);
	background: rgba(247, 245, 241, 0.82);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	background: rgba(247, 245, 241, 0.92);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	gap: 1.5rem;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-size: 1.15rem;
}

.logo__mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(145deg, var(--accent), var(--accent-deep));
	color: #14120f;
	font-weight: 800;
	font-size: 1rem;
	box-shadow: 0 6px 16px rgba(232, 163, 23, 0.35);
}

.logo--light .logo__mark {
	box-shadow: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.nav__link {
	display: block;
	padding: 0.5rem 0.85rem;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--ink-soft);
	border-radius: var(--radius-pill);
	transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
	color: var(--ink);
	background: rgba(20, 18, 15, 0.04);
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: transparent;
	padding: 0;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 16px;
	height: 1.5px;
	background: var(--ink);
	transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
	overflow: hidden;
}

.hero__glow {
	position: absolute;
	inset: -20% -10% auto;
	height: 70%;
	background:
		radial-gradient(ellipse 50% 60% at 70% 30%, rgba(232, 163, 23, 0.22), transparent 70%),
		radial-gradient(ellipse 40% 50% at 15% 60%, rgba(232, 163, 23, 0.08), transparent 70%);
	pointer-events: none;
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent-deep);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.eyebrow--on-dark {
	background: rgba(255, 255, 255, 0.1);
	color: var(--accent);
}

.hero__title {
	margin-bottom: 1.25rem;
	max-width: 14ch;
}

.hero__accent {
	display: block;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	color: var(--ink-soft);
	letter-spacing: -0.02em;
}

.hero__lead {
	max-width: 38ch;
	color: var(--ink-soft);
	font-size: 1.1rem;
	margin-bottom: 1.75rem;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.hero__stats li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.hero__stats strong {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.hero__stats span {
	font-size: 0.8rem;
	color: var(--ink-muted);
	line-height: 1.35;
}

/* Hero visual cards */

.hero__visual {
	position: relative;
	min-height: 420px;
	display: grid;
	place-items: center;
}

.hero-card {
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
}

.hero-card--main {
	width: min(100%, 340px);
	padding: 1.75rem;
	position: relative;
	z-index: 1;
	background:
		linear-gradient(180deg, #fff 0%, #fbf9f5 100%);
}

.hero-card__badge {
	display: inline-block;
	margin-bottom: 1.25rem;
	padding: 0.3rem 0.7rem;
	border-radius: var(--radius-pill);
	background: var(--ink);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero-card__row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.hero-card__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2ecc71;
	box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

.hero-card__price {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 1.25rem;
}

.hero-card__price span {
	font-size: 0.85rem;
	color: var(--ink-muted);
}

.hero-card__price strong {
	font-size: 2rem;
	letter-spacing: -0.04em;
}

.hero-card__bar {
	height: 8px;
	border-radius: var(--radius-pill);
	background: var(--bg-muted);
	overflow: hidden;
	margin-bottom: 1rem;
}

.hero-card__bar span {
	display: block;
	height: 100%;
	width: var(--w, 50%);
	border-radius: inherit;
	background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.hero-card__note {
	font-size: 0.85rem;
	color: var(--ink-muted);
	margin: 0;
}

.hero-card--float {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 1.1rem;
	z-index: 2;
	animation: float 5s ease-in-out infinite;
	top: 12%;
	right: 0;
}

.hero-card--float-2 {
	top: auto;
	right: auto;
	bottom: 14%;
	left: 0;
	animation-delay: -2s;
}

.hero-card--float strong {
	display: block;
	font-size: 0.92rem;
	letter-spacing: -0.02em;
}

.hero-card--float span:not(.hero-card__icon) {
	display: block;
	font-size: 0.78rem;
	color: var(--ink-muted);
}

.hero-card__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--accent-soft);
	font-size: 1.1rem;
	flex-shrink: 0;
}

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

/* ---------- Sections ---------- */

.section {
	padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--muted {
	background: var(--bg-muted);
}

.section__head {
	text-align: center;
	max-width: 36rem;
	margin: 0 auto 3rem;
}

.section__head--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
	max-width: 28rem;
}

.section__sub {
	margin-top: 0.85rem;
	color: var(--ink-soft);
	font-size: 1.05rem;
}

.section__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2.5rem;
	text-align: center;
}

.muted {
	color: var(--ink-muted);
	margin: 0;
}

/* Steps */

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	counter-reset: step;
}

.step {
	position: relative;
	padding: 1.75rem;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 8px 30px rgba(20, 18, 15, 0.04);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.step__num {
	display: block;
	margin-bottom: 1.25rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--accent-deep);
}

.step h3 {
	margin-bottom: 0.65rem;
}

.step p {
	color: var(--ink-soft);
	font-size: 0.98rem;
	margin: 0;
}

/* Bento */

.bento {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.bento__item {
	padding: 1.75rem;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.bento__item--wide {
	grid-column: span 2;
	background:
		linear-gradient(135deg, #fff 0%, #fbf6eb 100%);
}

.bento__item--accent {
	background: var(--dark);
	color: #fff;
	border-color: transparent;
}

.bento__item--accent h3,
.bento__item--accent p {
	color: #fff;
}

.bento__item--accent p {
	color: rgba(255, 255, 255, 0.72);
}

.bento__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 1.1rem;
	border-radius: 12px;
	background: var(--accent-soft);
	font-size: 1.2rem;
}

.bento__item--accent .bento__icon {
	background: rgba(232, 163, 23, 0.2);
}

.bento__item h3 {
	margin-bottom: 0.55rem;
}

.bento__item p {
	color: var(--ink-soft);
	font-size: 0.98rem;
	margin: 0;
}

.benefits-note {
	margin-top: 2rem;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid var(--accent);
	background: rgba(232, 163, 23, 0.06);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--ink-soft);
	font-size: 0.98rem;
}

/* FAQ */

.faq {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.faq__item {
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item[open] {
	border-color: rgba(20, 18, 15, 0.14);
	box-shadow: 0 8px 24px rgba(20, 18, 15, 0.05);
}

.faq__item summary {
	list-style: none;
	cursor: pointer;
	padding: 1.15rem 1.35rem;
	font-weight: 600;
	font-size: 1.02rem;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	user-select: none;
}

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

.faq__item summary::after {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	transform: rotate(45deg);
	flex-shrink: 0;
	transition: transform 0.25s var(--ease);
	margin-top: -4px;
}

.faq__item[open] summary::after {
	transform: rotate(225deg);
	margin-top: 4px;
}

.faq__body {
	padding: 0 1.35rem 1.25rem;
	color: var(--ink-soft);
	font-size: 0.98rem;
}

.faq__body ul {
	list-style: disc;
	padding-left: 1.2rem;
	margin: 0.75rem 0;
}

.faq__body li {
	margin-bottom: 0.35rem;
}

/* CTA band */

.cta-band {
	padding: clamp(4rem, 8vw, 6rem) 0;
	background:
		radial-gradient(ellipse 60% 80% at 80% 20%, rgba(232, 163, 23, 0.18), transparent 55%),
		linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
	color: #fff;
}

.cta-band h2 {
	color: #fff;
	margin-bottom: 0.85rem;
}

.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.cta-band__copy {
	max-width: 32rem;
}

.cta-band__copy p:not(.eyebrow) {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.08rem;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Footer */

.site-footer {
	padding: 4rem 0 2rem;
	background: #0f0e0c;
	color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 2rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__tagline {
	margin-top: 1rem;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.95rem;
	max-width: 22ch;
}

.site-footer__label {
	margin: 0 0 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.site-footer__links a,
.site-footer__col > a {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.78);
	transition: color 0.2s;
}

.site-footer__muted {
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.55;
	margin: 0;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.4);
}

.site-footer__bottom p {
	margin: 0;
}

.back-to-top {
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
	transition: color 0.2s;
}

.back-to-top:hover {
	color: #fff;
}

.logo--light {
	color: #fff;
}

/* Prose pages */

.prose {
	padding: 3rem 0 5rem;
	max-width: 720px;
}

.prose h1 {
	margin-bottom: 1.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.hero__grid {
		grid-template-columns: 1fr;
	}

	.hero__visual {
		min-height: 360px;
		order: -1;
	}

	.hero__title {
		max-width: none;
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.bento {
		grid-template-columns: 1fr 1fr;
	}

	.bento__item--wide {
		grid-column: span 2;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.nav {
		display: none;
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		background: rgba(247, 245, 241, 0.98);
		backdrop-filter: blur(16px);
		border-bottom: 1px solid var(--line);
		padding: 1rem;
	}

	.nav.is-open {
		display: block;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.nav__link {
		padding: 0.85rem 1rem;
		border-radius: var(--radius-sm);
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-header__actions .btn--ghost {
		display: none;
	}
}

@media (max-width: 640px) {
	.hero__stats {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.bento {
		grid-template-columns: 1fr;
	}

	.bento__item--wide {
		grid-column: span 1;
	}

	.hero-card--float {
		display: none;
	}

	.hero__visual {
		min-height: auto;
	}

	.hero-card--main {
		width: 100%;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.cta-band__actions {
		width: 100%;
	}

	.cta-band__actions .btn {
		flex: 1;
	}

	.site-header__actions .btn--primary {
		display: none;
	}
}

/* Reduce motion */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
