/**
 * Landing page - AI Sales & Support Copilot for WooCommerce
 *
 * Table of contents
 * -----------------
 * 01. Tokens & base
 * 02. Buttons, pills & helpers
 * 03. Navigation
 * 04. Hero + animated chat mock
 * 05. Trust strip
 * 06. Sections & features
 * 07. Browser frame
 * 08. Demo store
 * 09. Chat widget (demo)
 * 10. Demo side panel
 * 11. Admin demo: layout & menu
 * 12. Admin demo: header, tabs, cards, fields
 * 13. Admin demo: design preview & analytics
 * 14. Admin demo: product writer
 * 15. How it works, quality, FAQ, CTA, footer
 * 16. Scroll reveal
 * 17. Responsive
 * 18. Reduced motion
 */


/* ==========================================================================
   01. Tokens & base
   ========================================================================== */

:root {
	--brand: #6d28d9;
	--brand-2: #db2777;
	--brand-soft: #f3efff;
	--gradient: linear-gradient(120deg, var(--brand), var(--brand-2));
	--ink: #0f0c29;
	--heading: #111827;
	--text: #374151;
	--muted: #6b7280;
	--border: #e5e7eb;
	--surface: #ffffff;
	--tint: #f7f6fc;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
	--shadow-lg: 0 30px 70px rgba(17, 24, 39, 0.18);
	--container: 1200px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 12px;
	color: var(--heading);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 14px;
}

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

button,
input,
select,
textarea {
	font: inherit;
}

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

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

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Inline SVG icons injected by script.js into [data-icon] */
[data-icon] svg {
	display: block;
}


/* ==========================================================================
   02. Buttons, pills & helpers
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn--sm {
	padding: 9px 18px;
	font-size: 14px;
}

.btn--lg {
	padding: 15px 28px;
	font-size: 17px;
}

.btn--primary {
	background: var(--gradient);
	color: #fff;
	box-shadow: 0 10px 24px rgba(109, 40, 217, 0.3);
}

.btn--primary:hover {
	color: #fff;
	box-shadow: 0 14px 30px rgba(109, 40, 217, 0.4);
}

.btn--ghost {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

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

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #e9d5ff;
	font-size: 14px;
	font-weight: 600;
}

.pill__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.gradient-text {
	background: linear-gradient(120deg, #c4b5fd, #f9a8d4);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	margin-bottom: 10px;
	color: var(--brand);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}


/* ==========================================================================
   03. Navigation
   ========================================================================== */

.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
	background: rgba(15, 12, 41, 0.88);
	backdrop-filter: blur(12px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.nav__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 72px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.brand small {
	display: block;
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.nav__links {
	display: flex;
	gap: 26px;
	margin-left: auto;
}

.nav__links a {
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nav__links a:hover {
	color: #fff;
}

.nav__toggle {
	display: none;
	padding: 8px;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
}


/* ==========================================================================
   04. Hero + animated chat mock
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	padding: 150px 0 110px;
	background: radial-gradient(circle at 15% 10%, #3b1d7a 0%, transparent 45%), radial-gradient(circle at 85% 30%, #7a1d55 0%, transparent 40%), var(--ink);
	color: rgba(255, 255, 255, 0.82);
}

.hero__glow {
	position: absolute;
	right: -10%;
	bottom: -40%;
	width: 700px;
	height: 700px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(219, 39, 119, 0.25), transparent 65%);
	pointer-events: none;
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 60px;
}

.hero h1 {
	color: #fff;
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1.08;
}

.hero__lead {
	max-width: 560px;
	margin: 20px 0 30px;
	font-size: 19px;
}

.hero__lead strong {
	color: #fff;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.hero__trust li::before {
	content: "✓";
	margin-right: 7px;
	color: #34d399;
	font-weight: 800;
}

.hero__visual {
	position: relative;
	padding: 30px 20px;
}

/* --- Animated chat mock --- */
.mock-chat {
	max-width: 400px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--shadow-lg);
	transform: rotate(-1.5deg);
}

.mock-chat__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: var(--gradient);
	color: #fff;
}

.mock-chat__head strong,
.mock-chat__head span {
	display: block;
}

.mock-chat__head span {
	font-size: 12px;
	opacity: 0.85;
}

.mock-chat__avatar svg {
	display: block;
}

.mock-chat__avatar {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
}

.mock-chat__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 300px;
	padding: 18px;
	background: #f6f7fb;
}

.mock-bubble {
	max-width: 85%;
	margin: 0;
	padding: 10px 14px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.5;
}

.mock-bubble--user {
	align-self: flex-end;
	background: var(--gradient);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.mock-bubble--bot {
	align-self: flex-start;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--heading);
	border-bottom-left-radius: 4px;
}

.mock-product {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
	color: var(--heading);
	font-size: 13px;
}

.mock-product img {
	border-radius: 10px;
}

.mock-product strong,
.mock-product span {
	display: block;
}

.mock-product div span {
	color: var(--brand);
	font-weight: 700;
}

.mock-product del {
	margin-right: 4px;
	color: var(--muted);
	font-weight: 400;
}

.mock-product__btn {
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--gradient);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.mock-product__btn.is-added {
	background: #059669;
}

/* Messages appear one after another, then the loop restarts */
.a1,
.a2,
.a3,
.a4 {
	opacity: 0;
	animation: mock-in 9s ease infinite;
}

.a2 {
	animation-delay: 1.2s;
}

.a3 {
	animation-delay: 2.2s;
}

.a4 {
	animation-delay: 3s;
}

@keyframes mock-in {
	0% {
		opacity: 0;
		transform: translateY(12px);
	}

	6%,
	85% {
		opacity: 1;
		transform: none;
	}

	100% {
		opacity: 0;
	}
}

/* Floating badges */
.float-card {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 14px;
	background: #fff;
	color: var(--heading);
	box-shadow: var(--shadow-lg);
	font-size: 13px;
	animation: float 6s ease-in-out infinite;
}

.float-card strong,
.float-card span {
	display: block;
}

.float-card div span {
	color: var(--muted);
	font-size: 12px;
}

.float-card__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--brand-soft);
	font-size: 18px;
}

/* Badges sit outside the chat window so they never cover a message */
.float-card--a {
	top: -4%;
	right: 0;
}

.float-card--b {
	bottom: -6%;
	left: 0;
	animation-delay: 1.5s;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}


/* ==========================================================================
   05. Trust strip
   ========================================================================== */

.strip {
	border-bottom: 1px solid var(--border);
	background: #fff;
}

.strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 40px;
	padding-block: 26px;
	color: var(--muted);
	font-size: 15px;
}

.strip strong {
	color: var(--heading);
	font-size: 16px;
	opacity: 0.75;
}


/* ==========================================================================
   06. Sections & features
   ========================================================================== */

.section {
	padding: 100px 0;
}

.section--tinted {
	background: var(--tint);
}

.section__head {
	max-width: 700px;
	margin: 0 auto 50px;
	text-align: center;
}

.section__head h2 {
	font-size: clamp(30px, 4vw, 42px);
}

.section__head p:last-child {
	color: var(--muted);
	font-size: 18px;
}

.features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.feature {
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
	border-color: #ddd6fe;
	box-shadow: var(--shadow);
	transform: translateY(-4px);
}

.feature__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: var(--brand-soft);
	font-size: 24px;
}

.feature h3 {
	font-size: 19px;
}

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


/* ==========================================================================
   07. Browser frame
   ========================================================================== */

.browser {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
}

.browser__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	background: #f3f4f6;
}

.browser__dots {
	display: flex;
	gap: 6px;
}

.browser__dots i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #f87171;
}

.browser__dots i:nth-child(2) {
	background: #fbbf24;
}

.browser__dots i:nth-child(3) {
	background: #34d399;
}

.browser__url {
	flex: 1;
	max-width: 520px;
	padding: 5px 14px;
	overflow: hidden;
	border-radius: 999px;
	background: #fff;
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}


/* ==========================================================================
   08. Demo store
   ========================================================================== */

.demo-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 28px;
}

.store {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 680px;
	overflow: hidden;
	background: #fff;
}

.store__header {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px 22px;
	border-bottom: 1px solid var(--border);
}

.store__logo {
	color: var(--heading);
	font-size: 20px;
	letter-spacing: -0.03em;
}

.store__logo span {
	color: var(--brand);
}

.store__menu {
	display: flex;
	gap: 18px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.store__cart {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 7px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	color: var(--heading);
	font-size: 14px;
	font-weight: 700;
	cursor: default;
}

.store__cart-count {
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--heading);
	color: #fff;
	font-size: 12px;
}

.store__cart.is-bump {
	animation: bump 0.45s ease;
}

@keyframes bump {
	40% {
		transform: scale(1.12);
	}
}

.store__banner {
	display: flex;
	align-items: center;
	padding: 20px 22px;
	background: linear-gradient(120deg, #1e1b4b, #4c1d95);
	color: #fff;
}

.store__banner p {
	margin: 0;
	color: #c4b5fd;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.store__banner h3 {
	margin: 0;
	color: #fff;
	font-size: 22px;
}

.store__grid {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-content: start;
	gap: 16px;
	padding: 20px 22px 120px;
	overflow-y: auto;
}

.s-product {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.s-product.is-highlight {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

.s-product__media {
	position: relative;
}

.s-product__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
}

.s-product__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 8px;
	border-radius: 6px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.s-product__badge--oos {
	background: #6b7280;
}

.s-product__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 4px;
	padding: 10px 12px 12px;
}

.s-product__name {
	color: var(--heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.s-product__price {
	color: var(--brand);
	font-size: 14px;
	font-weight: 800;
}

.s-product__price del {
	margin-right: 5px;
	color: var(--muted);
	font-weight: 400;
}

.s-product__btn {
	margin-top: auto;
	padding: 7px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	color: var(--heading);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.s-product__btn:hover:not(:disabled) {
	border-color: var(--heading);
	background: var(--heading);
	color: #fff;
}

.s-product__btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.store__toast {
	position: absolute;
	top: 70px;
	left: 50%;
	z-index: 30;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--heading);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.store__toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.store__disabled {
	position: absolute;
	right: 16px;
	bottom: 16px;
	max-width: 280px;
	margin: 0;
	padding: 12px 14px;
	border: 1px dashed #c4b5fd;
	border-radius: 12px;
	background: #faf5ff;
	color: var(--brand);
	font-size: 13px;
}


/* ==========================================================================
   09. Chat widget (demo) - mirrors the real plugin widget
   ========================================================================== */

.chat {
	--waic-primary: #6d28d9;
	--waic-secondary: #db2777;
	--waic-radius: 18px;
	--waic-gradient: linear-gradient(135deg, var(--waic-primary), var(--waic-secondary));
	position: absolute;
	bottom: 18px;
	z-index: 20;
	font-size: 14px;
}

.chat[data-position="right"] {
	right: 18px;
}

.chat[data-position="left"] {
	left: 18px;
}

.chat[hidden] {
	display: none;
}

.chat__launcher {
	position: relative;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--waic-gradient);
	color: #fff;
	box-shadow: 0 12px 26px rgba(17, 24, 39, 0.25);
	cursor: pointer;
	transition: transform 0.2s ease;
}

.chat[data-position="left"] .chat__launcher {
	margin-left: 0;
}

.chat__launcher:hover {
	transform: scale(1.06);
}

.chat__launcher-icon {
	grid-area: 1 / 1;
	transition: opacity 0.2s ease, transform 0.25s ease;
}

.chat__launcher-icon.is-close,
.chat[data-state="open"] .chat__launcher-icon.is-open {
	opacity: 0;
	transform: rotate(90deg) scale(0.6);
}

.chat[data-state="open"] .chat__launcher-icon.is-close {
	opacity: 1;
	transform: none;
}

.chat__window {
	position: absolute;
	bottom: 72px;
	display: flex;
	flex-direction: column;
	width: 360px;
	height: 500px;
	overflow: hidden;
	border-radius: var(--waic-radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
	transform-origin: bottom right;
	animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.chat[data-position="right"] .chat__window {
	right: 0;
}

.chat[data-position="left"] .chat__window {
	left: 0;
	transform-origin: bottom left;
}

.chat[data-state="closed"] .chat__window {
	display: none;
}

@keyframes pop {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.chat__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 12px 14px 16px;
	background: var(--waic-gradient);
	color: #fff;
}

.chat__avatar {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
}

.chat__meta {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.chat__meta strong {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.chat__status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	opacity: 0.85;
}

.chat__status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #34d399;
}

.chat__icon-btn {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.chat__icon-btn:hover {
	background: rgba(255, 255, 255, 0.18);
}

.chat__messages {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 16px 14px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #f6f7fb;
}

.msg {
	display: flex;
	flex-direction: column;
	gap: 9px;
	max-width: 90%;
	animation: msg-in 0.25s ease;
}

.msg--user {
	align-self: flex-end;
	align-items: flex-end;
}

.msg--bot {
	align-self: flex-start;
}

@keyframes msg-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.bubble {
	margin: 0;
	padding: 10px 13px;
	border-radius: calc(var(--waic-radius) * 0.8);
	line-height: 1.5;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.msg--bot .bubble {
	border: 1px solid var(--border);
	background: #fff;
	color: var(--heading);
	border-bottom-left-radius: 4px;
}

.msg--user .bubble {
	background: var(--waic-gradient);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.msg--error .bubble {
	border-color: #fecaca;
	background: #fef2f2;
	color: #b91c1c;
}

.typing {
	display: inline-flex;
	gap: 5px;
	align-self: flex-start;
	padding: 13px 15px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
}

.typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--waic-primary);
	opacity: 0.35;
	animation: typing 1.2s ease-in-out infinite;
}

.typing i:nth-child(2) {
	animation-delay: 0.15s;
}

.typing i:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes typing {
	30% {
		opacity: 1;
		transform: translateY(-4px);
	}
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.chip {
	padding: 6px 12px;
	border: 1px solid color-mix(in srgb, var(--waic-primary) 35%, transparent);
	border-radius: 999px;
	background: #fff;
	color: var(--waic-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
	background: var(--waic-primary);
	color: #fff;
}

/* Product cards inside the chat */
.cards {
	display: grid;
	gap: 9px;
	width: 290px;
	max-width: 100%;
}

.card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 11px;
	padding: 9px;
	border: 1px solid var(--border);
	border-radius: calc(var(--waic-radius) * 0.7);
	background: #fff;
}

.card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px;
}

.card__media img {
	display: block;
	width: 64px;
	height: 64px;
}

.card__badge {
	position: absolute;
	top: 4px;
	left: 4px;
	padding: 1px 5px;
	border-radius: 5px;
	background: #ef4444;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.card__name {
	color: var(--heading);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.card__price {
	color: var(--waic-primary);
	font-size: 13px;
	font-weight: 800;
}

.card__price del {
	margin-right: 4px;
	color: var(--muted);
	font-weight: 400;
}

.card__rating {
	color: #f59e0b;
	font-size: 11px;
	font-weight: 700;
}

.card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 5px;
}

.card__btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 11px;
	border: 0;
	border-radius: 999px;
	background: var(--waic-gradient);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.card__btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.card__btn.is-added {
	background: #059669;
	cursor: default;
}

.card__link {
	color: var(--waic-primary);
	font-size: 12px;
	font-weight: 700;
}

.chat__form {
	display: flex;
	align-items: flex-end;
	gap: 9px;
	margin: 0;
	padding: 11px 12px;
	border-top: 1px solid var(--border);
}

.chat__input {
	flex: 1;
	min-height: 42px;
	max-height: 100px;
	padding: 10px 13px;
	border: 1px solid var(--border);
	border-radius: 13px;
	background: #f6f7fb;
	color: var(--heading);
	resize: none;
	outline: none;
}

.chat__input:focus {
	border-color: var(--waic-primary);
	background: #fff;
}

.chat__send {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--waic-gradient);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.chat__send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}


/* ==========================================================================
   10. Demo side panel
   ========================================================================== */

.demo-side {
	display: grid;
	gap: 18px;
}

.side-card {
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
}

.side-card h3 {
	font-size: 17px;
}

.side-card--dark {
	border-color: #1f1b3a;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.75);
}

.side-card--dark h3 {
	color: #fff;
}

.side-card__note {
	font-size: 13px;
}

.try-list {
	display: grid;
	gap: 8px;
}

.try {
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--tint);
	color: var(--heading);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.try:hover {
	border-color: var(--brand);
	background: var(--brand-soft);
	transform: translateX(4px);
}

.plan {
	min-height: 160px;
	max-height: 260px;
	margin: 0;
	padding: 14px;
	overflow: auto;
	border-radius: 12px;
	background: #1a1640;
	color: #c4b5fd;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.6;
	white-space: pre-wrap;
}

.demo-note {
	margin: 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: #fffbeb;
	color: #92400e;
	font-size: 13px;
}


/* ==========================================================================
   11. Admin demo: layout & menu
   ========================================================================== */

.wp {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	min-height: 680px;
	background: #f0f0f1;
}

.wp__menu {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
	background: #1d2327;
}

.wp__menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 0;
	background: transparent;
	color: #c3c4c7;
	font-size: 14px;
	text-align: left;
}

button.wp__menu-item {
	cursor: pointer;
}

button.wp__menu-item:hover {
	color: #72aee6;
}

.wp__menu-item.is-active {
	background: var(--brand);
	color: #fff;
}

.wp__main {
	min-width: 0;
	padding: 22px;
}

.wp__title {
	font-size: 22px;
	font-weight: 400;
}


/* ==========================================================================
   12. Admin demo: header, tabs, cards, fields
   ========================================================================== */

.ad-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px;
	border-radius: 14px;
	background: linear-gradient(120deg, #1e1b4b 0%, #4c1d95 55%, #9d174d 100%);
	color: #fff;
}

.ad-header__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ad-header h3 {
	margin: 0;
	color: #fff;
	font-size: 18px;
}

.ad-header p {
	margin: 2px 0 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
}

.ad-header__logo {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.14);
}

.ad-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 12px;
	font-weight: 700;
}

.ad-pill i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34d399;
}

.ad-pill.is-warning i {
	background: #fbbf24;
}

.ad-tabs {
	display: flex;
	gap: 6px;
	margin: 16px 0;
	padding: 6px;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
}

.ad-tab {
	padding: 9px 15px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.ad-tab:hover {
	background: var(--tint);
	color: var(--heading);
}

.ad-tab.is-active {
	background: var(--brand);
	color: #fff;
}

.ad-panel[hidden] {
	display: none;
}

.ad-panel.is-active {
	animation: fade 0.25s ease;
}

@keyframes fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

.ad-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ad-card {
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
}

.ad-card--wide {
	grid-column: 1 / -1;
}

.ad-card h4 {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
	font-size: 15px;
}

.ad-field {
	display: grid;
	gap: 6px;
	margin-bottom: 14px;
}

.ad-field label,
.ad-label {
	color: var(--heading);
	font-size: 13px;
	font-weight: 700;
}

.ad-field--row {
	grid-template-columns: 1fr auto;
	align-items: center;
}

.ad-field--colors {
	display: flex;
	gap: 18px;
}

.ad-field--colors label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ad-field--colors input {
	width: 40px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: none;
	cursor: pointer;
}

.ad-input {
	width: 100%;
	padding: 8px 11px;
	border: 1px solid #d1d5db;
	border-radius: 9px;
	background: #fff;
	color: var(--heading);
	font-size: 14px;
}

.ad-input:focus {
	border-color: var(--brand);
	outline: none;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

.ad-input--sm {
	width: 84px;
}

textarea.ad-input {
	resize: vertical;
}

.ad-secret {
	position: relative;
}

.ad-secret .ad-input {
	padding-right: 42px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ad-secret__eye {
	position: absolute;
	top: 50%;
	right: 6px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transform: translateY(-50%);
}

.ad-secret__eye:hover {
	background: var(--brand-soft);
	color: var(--brand);
}

.ad-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
}

.ad-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ad-switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d1d5db;
	transition: background-color 0.2s ease;
}

.ad-switch span::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.ad-switch input:checked + span {
	background: var(--brand);
}

.ad-switch input:checked + span::before {
	transform: translateX(18px);
}

.ad-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.ad-btn--primary {
	background: var(--gradient);
	color: #fff;
}

.ad-btn--secondary {
	border-color: #d1d5db;
	background: #fff;
	color: var(--heading);
}

.ad-btn--secondary:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.ad-btn--block {
	width: 100%;
	margin-top: 6px;
}

.ad-btn--xs {
	padding: 4px 9px;
	font-size: 12px;
}

.ad-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.ad-test {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ad-test__result {
	font-size: 13px;
	font-weight: 700;
}

.ad-test__result.is-success {
	color: #059669;
}

.ad-test__result.is-error {
	color: #dc2626;
}

.ad-hint {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.ad-hint--top {
	margin-bottom: 12px;
	font-size: 13px;
}

.ad-savebar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-top: 16px;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: #059669;
}

.ad-savebar.is-hidden {
	display: none;
}


/* ==========================================================================
   13. Admin demo: design preview & analytics
   ========================================================================== */

.ad-design {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 16px;
	align-items: start;
}

.presets {
	display: flex;
	gap: 8px;
}

.preset {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--a), var(--b));
	box-shadow: 0 0 0 1px var(--border);
	cursor: pointer;
}

.preset.is-active {
	box-shadow: 0 0 0 2px var(--heading);
}

.ad-preview-wrap {
	position: sticky;
	top: 90px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 12px, #f1f5f9 12px, #f1f5f9 24px);
}

.ad-preview {
	--waic-primary: #6d28d9;
	--waic-secondary: #db2777;
	--waic-radius: 18px;
	overflow: hidden;
	margin-top: 8px;
	border-radius: var(--waic-radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.ad-preview__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 15px;
	background: linear-gradient(135deg, var(--waic-primary), var(--waic-secondary));
	color: #fff;
}

.ad-preview__body {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 14px;
	background: #f6f7fb;
	font-size: 13px;
}

.ad-preview__body p {
	max-width: 88%;
	margin: 0;
	padding: 9px 12px;
	border-radius: calc(var(--waic-radius) * 0.75);
}

.ad-preview__bot {
	border: 1px solid var(--border);
	background: #fff;
	white-space: pre-line;
}

.ad-preview__user {
	align-self: flex-end;
	background: linear-gradient(135deg, var(--waic-primary), var(--waic-secondary));
	color: #fff;
}

.ad-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.ad-stat {
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
}

.ad-stat span {
	color: var(--muted);
	font-size: 12px;
}

.ad-stat strong {
	display: block;
	color: var(--heading);
	font-size: 24px;
}

.ad-stat em {
	color: #059669;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
}

.ad-chart {
	display: grid;
	grid-template-columns: repeat(14, minmax(0, 1fr));
	align-items: end;
	gap: 7px;
	height: 190px;
}

.ad-chart__col {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	height: 100%;
	color: var(--muted);
	font-size: 10px;
}

.ad-chart__bar {
	width: 100%;
	max-width: 30px;
	border-radius: 6px 6px 2px 2px;
	background: linear-gradient(180deg, var(--brand), #a78bfa);
	transition: height 0.5s ease;
}

.ad-chart__col.is-today .ad-chart__bar {
	background: var(--gradient);
}

.ad-top {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
}

.ad-top li {
	padding: 6px 0;
	border-bottom: 1px solid var(--border);
}

.ad-top li span {
	float: right;
	color: var(--brand);
	font-weight: 800;
}

.ad-recent {
	display: grid;
	gap: 8px;
	max-height: 230px;
	overflow-y: auto;
	font-size: 13px;
}

.ad-recent__row {
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--tint);
}

.ad-recent__row strong {
	display: block;
	color: var(--heading);
}

.ad-recent__row span {
	color: var(--muted);
	font-size: 12px;
}

.ad-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #059669;
	font-size: 10px;
	font-weight: 800;
}

.ad-badge--you {
	background: var(--brand-soft);
	color: var(--brand);
}


/* ==========================================================================
   14. Admin demo: product writer
   ========================================================================== */

.pe {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 16px;
	align-items: start;
}

.pe__title {
	width: 100%;
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	color: var(--heading);
	font-size: 20px;
}

.pe__box {
	margin-bottom: 14px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
}

.pe__box-title {
	margin: 0;
	padding: 9px 12px;
	border-bottom: 1px solid #e5e7eb;
	color: var(--heading);
	font-size: 14px;
	font-weight: 700;
}

.pe__editor {
	min-height: 150px;
	padding: 12px 14px;
	color: var(--heading);
	font-size: 14px;
	outline: none;
}

.pe__editor--short {
	min-height: 70px;
}

.pe__editor h3 {
	margin: 12px 0 6px;
	font-size: 15px;
}

.pe__editor ul {
	padding-left: 20px;
}

.pe__editor.is-flash {
	animation: flash 1s ease;
}

@keyframes flash {
	0% {
		background: #f3efff;
	}
}

.pe__data {
	display: grid;
	gap: 4px;
	padding: 12px 14px;
	color: var(--muted);
	font-size: 13px;
}

.mb {
	padding: 14px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
}

.mb__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: -14px -14px 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #e5e7eb;
	color: var(--heading);
	font-weight: 800;
}

.mb__title [data-icon] {
	color: var(--brand);
}

.mb__fields {
	display: grid;
	gap: 5px;
	margin: 0 0 10px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.mb__fields legend {
	padding: 0 4px;
	font-weight: 700;
}

.mb__label {
	display: block;
	margin: 8px 0 4px;
	font-weight: 700;
}

.mb__status {
	min-height: 18px;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.mb__status.is-success {
	color: #059669;
}

.mb__results {
	display: grid;
	gap: 9px;
	margin-top: 6px;
}

.mb__results[hidden] {
	display: none;
}

.result {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.result__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px;
	background: var(--tint);
	font-weight: 700;
}

.result__body {
	max-height: 160px;
	padding: 8px 10px;
	overflow-y: auto;
	font-size: 12px;
	line-height: 1.55;
}

.result__body h3 {
	margin: 6px 0 3px;
	font-size: 13px;
}

.result__body ul {
	margin: 0 0 6px;
	padding-left: 16px;
}

.result__body p {
	margin: 0 0 6px;
}


/* ==========================================================================
   15. How it works, quality, FAQ, CTA, footer
   ========================================================================== */

.how {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.how li {
	padding: 30px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
}

.how__num {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--gradient);
	color: #fff;
	font-size: 20px;
	font-weight: 800;
}

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

.quality {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	align-items: center;
	gap: 50px;
}

.quality h2 {
	font-size: clamp(30px, 4vw, 40px);
}

.quality__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.quality__list li {
	padding: 15px 18px 15px 52px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") 18px center / 18px no-repeat;
}

.quality__list strong {
	color: var(--heading);
}

.faq {
	margin-bottom: 12px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
}

.faq summary {
	position: relative;
	padding: 18px 54px 18px 22px;
	color: var(--heading);
	font-size: 17px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

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

.faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 22px;
	color: var(--brand);
	font-size: 24px;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
}

.faq[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq p {
	margin: 0;
	padding: 0 22px 20px;
	color: var(--muted);
}

.cta {
	padding: 90px 0;
	background: radial-gradient(circle at 20% 20%, #4c1d95, transparent 50%), radial-gradient(circle at 80% 80%, #9d174d, transparent 50%), var(--ink);
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
}

.cta h2 {
	max-width: 720px;
	margin: 0 auto 14px;
	color: #fff;
	font-size: clamp(30px, 4vw, 44px);
}

.cta p {
	margin-bottom: 30px;
	font-size: 18px;
}

.footer {
	padding: 28px 0;
	background: #0a0820;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}

.footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.footer p {
	margin: 0;
}


/* ==========================================================================
   16. Scroll reveal (class added by script.js)
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* ==========================================================================
   17. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.demo-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.demo-side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.demo-note {
		grid-column: 1 / -1;
	}

	.store__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ad-design {
		grid-template-columns: minmax(0, 1fr);
	}

	.ad-preview-wrap {
		position: static;
	}
}

@media (max-width: 960px) {
	.nav__links {
		position: absolute;
		top: 72px;
		right: 16px;
		left: 16px;
		display: none;
		flex-direction: column;
		gap: 4px;
		padding: 12px;
		border-radius: 16px;
		background: var(--ink);
		box-shadow: var(--shadow-lg);
	}

	.nav__links.is-open {
		display: flex;
	}

	.nav__links a {
		padding: 10px 12px;
	}

	.nav__toggle {
		display: inline-flex;
	}

	.nav__cta {
		margin-left: auto;
	}

	.hero {
		padding: 120px 0 80px;
	}

	.hero__grid,
	.quality {
		grid-template-columns: minmax(0, 1fr);
	}

	.features,
	.how {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Admin menu becomes a horizontal bar */
	.wp__menu {
		flex-direction: row;
		overflow-x: auto;
		padding: 0;
	}

	.wp__menu-item {
		white-space: nowrap;
	}

	.wp__menu span.wp__menu-item {
		display: none;
	}

	.pe {
		grid-template-columns: minmax(0, 1fr);
	}

	.ad-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.container {
		padding: 0 16px;
	}

	.section {
		padding: 70px 0;
	}

	.nav__cta {
		display: none;
	}

	.nav__toggle {
		margin-left: auto;
	}

	.hero__lead {
		font-size: 17px;
	}

	.float-card {
		display: none;
	}

	.features,
	.how,
	.demo-side,
	.ad-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.store {
		height: 640px;
	}

	.store__menu {
		display: none;
	}

	.store__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 14px 14px 110px;
	}

	.store__cart-total {
		display: none;
	}

	.chat[data-position="right"] {
		right: 10px;
	}

	.chat[data-position="left"] {
		left: 10px;
	}

	.chat__window {
		width: calc(100vw - 54px);
		max-width: 360px;
		height: 470px;
	}

	.wp__main {
		padding: 14px;
	}

	.ad-chart {
		gap: 3px;
	}

	.ad-chart__col span {
		display: none;
	}
}


/* ==========================================================================
   18. Reduced motion
   ========================================================================== */

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

	.a1,
	.a2,
	.a3,
	.a4,
	.reveal {
		opacity: 1;
		transform: none;
	}
}
