/* Erisa landing — warm light theme */
:root {
	--bg: #f6f2ea;
	--bg-1: #efeae0;
	--bg-2: #e8e2d4;
	--border: rgba(40, 30, 20, 0.1);
	--border-2: rgba(40, 30, 20, 0.18);
	--fg: #1a1410;
	--fg-dim: #6b5f54;
	--fg-mute: #a09486;
	--accent: #8e5dd8; /* deeper lavender for contrast on light */
	--accent-soft: #bb95ed; /* original soft tone for fills */
	--accent-2: #6b3fb8;
	--accent-ink: #ffffff; /* white on accent button */
	--green: oklch(0.55 0.16 145);
	--line: rgba(40, 30, 20, 0.07);
	--shadow-lg: 0 30px 80px -20px rgba(60, 40, 90, 0.18), 0 0 0 1px rgba(20, 15, 10, 0.04);
	--nav-bg: rgba(246, 242, 234, 0.78);
	--glow-accent: rgba(142, 93, 216, 0.16);
	--glow-accent-soft: rgba(142, 93, 216, 0.1);
}

:root[data-theme="dark"] {
	--bg: #0a0a0a;
	--bg-1: #111111;
	--bg-2: #161616;
	--border: rgba(255, 255, 255, 0.08);
	--border-2: rgba(255, 255, 255, 0.16);
	--fg: #f5f3ee;
	--fg-dim: #8a8a82;
	--fg-mute: #5a5a55;
	--accent: #bb95ed;
	--accent-soft: #bb95ed;
	--accent-2: oklch(0.55 0.18 295);
	--accent-ink: #1a0f2e;
	--green: oklch(0.78 0.13 145);
	--line: rgba(245, 243, 238, 0.06);
	--nav-bg: rgba(10, 10, 10, 0.7);
	--glow-accent: rgba(187, 149, 237, 0.16);
	--glow-accent-soft: rgba(187, 149, 237, 0.1);
}

html {
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}
body {
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	background: var(--bg);
	color: var(--fg);
	font-family:
		"Onest",
		-apple-system,
		BlinkMacSystemFont,
		"Helvetica Neue",
		sans-serif;
	font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.mono {
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

a {
	color: inherit;
	text-decoration: none;
}
button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
	color: inherit;
}

/* === Layout === */
.page {
	position: relative;
	min-height: 100vh;
	background: var(--bg);
}

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
	position: relative;
}

/* Vertical guide lines */
.guides {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
.guides::before,
.guides::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--line);
}
.guides::before {
	left: 32px;
}
.guides::after {
	right: 32px;
}

/* === Nav === */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(12px);
	background: var(--nav-bg);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	display: flex;
	align-items: center;
	gap: 40px;
	height: 64px;
	padding: 0 32px;
	max-width: 1280px;
	margin: 0 auto;
}
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.02em;
}
.logo-mark {
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	position: relative;
	overflow: hidden;
	display: grid;
	place-items: center;
}
.logo-mark::after {
	content: "";
	position: absolute;
	inset: 6px;
	background: var(--bg);
	border-radius: 3px;
	clip-path: polygon(0 0, 60% 0, 60% 100%, 0 100%);
}
.logo-mark::before {
	content: "";
	position: absolute;
	right: 4px;
	top: 6px;
	bottom: 6px;
	width: 3px;
	background: var(--bg);
	border-radius: 2px;
}
.nav-links {
	display: flex;
	gap: 28px;
	font-size: 14px;
	color: var(--fg-dim);
}
.nav-links a {
	transition: color 0.15s;
}
.nav-links a:hover {
	color: var(--fg);
}
.nav-cta {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 14px;
}

/* === Buttons === */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.15s;
	white-space: nowrap;
}
.btn-primary {
	background: var(--fg);
	color: var(--bg);
}
.btn-primary:hover {
	background: #fff;
	transform: translateY(-1px);
}
.btn-ghost {
	color: var(--fg-dim);
}
.btn-ghost:hover {
	color: var(--fg);
}
.btn-outline {
	border: 1px solid var(--border-2);
	background: var(--bg-1);
	color: var(--fg);
}
.btn-outline:hover {
	border-color: var(--fg-dim);
	background: var(--bg-2);
}
.btn-accent {
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
}
.btn-accent:hover {
	filter: brightness(1.05);
}
.btn-lg {
	padding: 14px 22px;
	font-size: 15px;
}

/* === Hero === */
.hero {
	padding: 80px 0 120px;
	border-bottom: 1px solid var(--border);
	position: relative;
}
.hero-grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 80px 80px;
	mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
	pointer-events: none;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--border-2);
	border-radius: 100px;
	font-size: 12px;
	color: var(--fg-dim);
	margin-bottom: 32px;
}
.hero-eyebrow .tag {
	background: var(--accent);
	color: var(--accent-ink);
	padding: 2px 8px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.02em;
}
.hero-eyebrow .arrow {
	color: var(--fg-mute);
	margin-left: 6px;
}

.hero h1 {
	font-size: clamp(48px, 7vw, 96px);
	line-height: 0.95;
	letter-spacing: -0.04em;
	font-weight: 500;
	max-width: 11ch;
	margin-bottom: 32px;
}
.hero h1 .accent-line {
	display: block;
	color: var(--accent);
	font-style: italic;

	font-weight: 400;
}
.hero p.lead {
	font-size: 19px;
	line-height: 1.55;
	color: var(--fg-dim);
	max-width: 54ch;
	margin-bottom: 40px;
}
.hero-cta {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}
.hero-meta {
	margin-top: 56px;
	display: flex;
	gap: 48px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--fg-mute);
}
.hero-meta strong {
	display: block;
	color: var(--fg);
	font-size: 28px;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin-bottom: 4px;
}

/* === Section === */
.section {
	padding: 120px 0;
	border-bottom: 1px solid var(--border);
	position: relative;
}
.section-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--accent);
	margin-bottom: 24px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.section-label::before {
	content: "";
	width: 14px;
	height: 1px;
	background: var(--accent);
}
.section h2 {
	font-size: clamp(36px, 4.5vw, 60px);
	line-height: 1;
	letter-spacing: -0.03em;
	font-weight: 500;
	max-width: 18ch;
	margin-bottom: 24px;
}
.section h2 em {
	font-style: italic;
	font-weight: 400;
	color: var(--accent);
}
.section-lead {
	font-size: 17px;
	line-height: 1.55;
	color: var(--fg-dim);
	max-width: 60ch;
}

/* === Marquee === */
.marquee-section {
	padding: 32px 0;
	border-bottom: 1px solid var(--border);
	background: var(--bg);
	overflow: hidden;
}
.marquee-label {
	text-align: center;
	font-size: 12px;
	color: var(--fg-mute);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	margin-bottom: 24px;
}
.marquee {
	display: flex;
	gap: 64px;
	animation: scroll 50s linear infinite;
	width: max-content;
	align-items: center;
}
@keyframes scroll {
	to {
		transform: translateX(-50%);
	}
}
.marquee .brand {
	font-size: 22px;
	color: var(--fg-dim);
	font-weight: 500;
	letter-spacing: -0.02em;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0.7;
}

/* === Feature blocks === */
.features {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 24px;
	margin-top: 64px;
}
.feature {
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--bg-1);
	padding: 32px;
	position: relative;
	overflow: hidden;
	min-height: 380px;
	display: flex;
	flex-direction: column;
}
.feature.span-7 {
	grid-column: span 7;
}
.feature.span-5 {
	grid-column: span 5;
}
.feature.span-6 {
	grid-column: span 6;
}
.feature.span-12 {
	grid-column: span 12;
}
.feature.span-4 {
	grid-column: span 4;
}
.feature-num {
	font-variant-numeric: tabular-nums;
	font-size: 11px;
	color: var(--fg-mute);
	margin-bottom: 16px;
	letter-spacing: 0.06em;
}
.feature h3 {
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin-bottom: 10px;
	line-height: 1.15;
}
.feature p {
	color: var(--fg-dim);
	font-size: 14px;
	line-height: 1.55;
	max-width: 42ch;
}
.feature-visual {
	flex: 1;
	margin-top: 24px;
	border-radius: 10px;
	position: relative;
	min-height: 180px;
	overflow: hidden;
}

/* === Phone mock === */
.phone {
	width: 240px;
	background: #050505;
	border: 1px solid #2a2a2a;
	border-radius: 32px;
	padding: 10px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.phone-screen {
	background: #0e0e0e;
	border-radius: 24px;
	padding: 20px 16px;
	height: 380px;
	overflow: hidden;
	position: relative;
}
.phone-notch {
	width: 80px;
	height: 22px;
	background: #050505;
	border-radius: 0 0 12px 12px;
	margin: 0 auto 16px;
}

/* === Module grid === */
.modules {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin-top: 64px;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--bg-1);
}
.module {
	padding: 36px 32px;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	position: relative;
	transition: background 0.2s;
}
.module:hover {
	background: var(--bg-2);
}
.module:nth-child(3n) {
	border-right: none;
}
.module:nth-last-child(-n + 3) {
	border-bottom: none;
}
.module-icon {
	width: 32px;
	height: 32px;
	margin-bottom: 20px;
	color: var(--accent);
}
.module h4 {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}
.module p {
	font-size: 13px;
	color: var(--fg-dim);
	line-height: 1.55;
}

/* === Code block / showcase === */
.showcase {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	margin-top: 64px;
}
.code-block {
	background: var(--bg-1);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	font-variant-numeric: tabular-nums;
	font-size: 13px;
	line-height: 1.7;
}
.code-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 12px;
	color: var(--fg-mute);
}
.code-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2a2a2a;
}
.code-body {
	padding: 20px 24px;
}
.code-line {
	color: var(--fg-dim);
}
.code-line .k {
	color: oklch(0.75 0.13 280);
}
.code-line .s {
	color: var(--accent);
}
.code-line .n {
	color: oklch(0.78 0.13 145);
}
.code-line .c {
	color: var(--fg-mute);
	font-style: italic;
}
.code-line .p {
	color: var(--fg);
}

/* === Pricing === */
.pricing {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 64px;
}
.price-card {
	background: var(--bg-1);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 32px;
	position: relative;
}
.price-card.featured {
	border-color: var(--accent);
	background: linear-gradient(180deg, var(--glow-accent-soft), var(--bg-1) 50%);
}
.price-card .badge {
	position: absolute;
	top: 24px;
	right: 24px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 100px;
	letter-spacing: 0.02em;
}
.price-card h4 {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.01em;
	margin-bottom: 6px;
}
.price-card .sub {
	font-size: 13px;
	color: var(--fg-dim);
	margin-bottom: 28px;
}
.price-card .amount {
	font-size: 44px;
	font-weight: 500;
	letter-spacing: -0.03em;
	margin-bottom: 4px;
	line-height: 1;
}
.price-card .amount .per {
	font-size: 14px;
	color: var(--fg-dim);
	font-weight: 400;
}
.price-card ul {
	list-style: none;
	margin: 28px 0;
}
.price-card li {
	font-size: 13px;
	color: var(--fg-dim);
	padding: 8px 0;
	display: flex;
	gap: 10px;
	border-top: 1px solid var(--border);
}
.price-card li::before {
	content: "+";
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.price-card .btn {
	width: 100%;
	justify-content: center;
}

/* === CTA === */
.cta-section {
	padding: 140px 0;
	position: relative;
	text-align: center;
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}
.cta-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 50%, var(--glow-accent), transparent 60%);
	pointer-events: none;
}
.cta-section h2 {
	font-size: clamp(48px, 6vw, 84px);
	line-height: 0.95;
	letter-spacing: -0.04em;
	max-width: 16ch;
	margin: 0 auto 24px;
}
.cta-section h2 em {
	font-style: italic;
	color: var(--accent);
	font-weight: 400;
}
.cta-section .lead {
	font-size: 18px;
	color: var(--fg-dim);
	max-width: 56ch;
	margin: 0 auto 36px;
	line-height: 1.55;
}

/* === Footer === */
.footer {
	padding: 64px 0 40px;
	background: var(--bg);
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 64px;
}
.footer-col h5 {
	font-size: 12px;
	color: var(--fg-mute);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 16px;
	font-weight: 500;
}
.footer-col a {
	display: block;
	font-size: 14px;
	color: var(--fg-dim);
	padding: 6px 0;
	transition: color 0.15s;
}
.footer-col a:hover {
	color: var(--fg);
}
.footer-tagline {
	font-size: 14px;
	color: var(--fg-dim);
	margin-top: 16px;
	line-height: 1.55;
	max-width: 30ch;
}
.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 32px;
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--fg-mute);
	font-variant-numeric: tabular-nums;
}

/* === Theme toggle === */
.theme-toggle {
	display: inline-flex;
	align-items: center;
	padding: 0;
}
.theme-toggle-track {
	width: 48px;
	height: 26px;
	border-radius: 100px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	position: relative;
	transition: all 0.25s ease;
}
.theme-toggle-track[data-on="true"] {
	background: var(--bg-1);
	border-color: var(--border-2);
}
.theme-toggle-thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--fg);
	color: var(--bg);
	display: grid;
	place-items: center;
	transition:
		transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
		background 0.25s ease;
}
.theme-toggle-track[data-on="true"] .theme-toggle-thumb {
	transform: translateX(22px);
	background: var(--accent);
	color: var(--accent-ink);
}

/* === Helpers === */
.dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	margin-right: 8px;
	box-shadow: 0 0 0 4px rgba(80, 160, 100, 0.18);
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	50% {
		box-shadow: 0 0 0 8px rgba(80, 160, 100, 0);
	}
}

@keyframes caretBlink {
	0%,
	50% {
		opacity: 1;
	}
	51%,
	100% {
		opacity: 0;
	}
}

/* In-phone menu UI */
.menu-item {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #1a1a1a;
	align-items: center;
}
.menu-item:last-child {
	border-bottom: none;
}
.menu-thumb {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}
.menu-thumb.t1 {
	background: linear-gradient(135deg, #6b3a1c, #2a1408);
}
.menu-thumb.t2 {
	background: linear-gradient(135deg, #4a5d2c, #1a2008);
}
.menu-thumb.t3 {
	background: linear-gradient(135deg, #6b2c2c, #2a0808);
}
.menu-thumb.t4 {
	background: linear-gradient(135deg, #c79262, #6b3a1c);
}
.menu-info {
	flex: 1;
	min-width: 0;
}
.menu-info .name {
	font-size: 11px;
	color: var(--fg);
	font-weight: 500;
	margin-bottom: 2px;
}
.menu-info .desc {
	font-size: 9px;
	color: var(--fg-mute);
}
.menu-price {
	font-size: 11px;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

/* Waiter call card */
.waiter-card {
	background: linear-gradient(180deg, #1a1a1a, #0e0e0e);
	border: 1px solid #2a2a2a;
	border-radius: 14px;
	padding: 20px;
	width: 360px;
	max-width: 100%;
	position: relative;
}
.waiter-card .ping {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent-soft);
	box-shadow: 0 0 0 4px rgba(187, 149, 237, 0.25);
	animation: pulse 1.4s ease-in-out infinite;
}
.waiter-card .label {
	font-variant-numeric: tabular-nums;
	font-size: 10px;
	color: var(--fg-mute);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 10px;
}
.waiter-card .table {
	font-size: 32px;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin-bottom: 6px;
}
.waiter-card .action {
	font-size: 14px;
	color: var(--accent-soft);
	margin-bottom: 14px;
}
.waiter-card .time {
	font-variant-numeric: tabular-nums;
	font-size: 11px;
	color: var(--fg-dim);
}
.waiter-card .btns {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}
.waiter-card .btns button {
	flex: 1;
	padding: 8px;
	border-radius: 8px;
	font-size: 12px;
	background: #1f1f1f;
	color: var(--fg);
	border: 1px solid #2a2a2a;
}
.waiter-card .btns button.accept {
	background: var(--accent);
	color: #1a0f00;
	border: none;
	font-weight: 600;
}

/* Tables grid */
.tables-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.table-cell {
	aspect-ratio: 1;
	border-radius: 10px;
	background: var(--bg);
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 10px;
	font-variant-numeric: tabular-nums;
	font-size: 10px;
	color: var(--fg-mute);
}
.table-cell.occupied {
	background: linear-gradient(180deg, var(--glow-accent), var(--bg));
	border-color: var(--accent);
	color: var(--accent);
}
.table-cell.free {
	background: linear-gradient(180deg, rgba(120, 200, 130, 0.1), var(--bg));
	border-color: rgba(120, 200, 130, 0.35);
}
.table-cell .num {
	font-size: 18px;
	color: var(--fg);
	font-weight: 500;
}
.table-cell.occupied .num {
	color: var(--accent);
}

/* Watch */
.watch {
	width: 200px;
	height: 240px;
	background: #050505;
	border-radius: 40px;
	padding: 12px;
	border: 1px solid #2a2a2a;
	position: relative;
}
.watch::before,
.watch::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 24px;
	background: #1a1a1a;
	border-radius: 4px;
}
.watch::before {
	top: -18px;
}
.watch::after {
	bottom: -18px;
}
.watch-screen {
	background: #0a0a0a;
	border-radius: 28px;
	height: 100%;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

@media (max-width: 900px) {
	.features {
		grid-template-columns: 1fr;
	}
	.feature.span-7,
	.feature.span-5,
	.feature.span-6,
	.feature.span-4 {
		grid-column: span 1;
	}
	.modules {
		grid-template-columns: 1fr;
	}
	.module {
		border-right: none;
	}
	.showcase {
		grid-template-columns: 1fr;
	}
	.pricing {
		grid-template-columns: 1fr;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	.nav-links {
		display: none;
	}
}
