@font-face { font-family: "Peyda"; src: url(fonts/PeydaFaNumWeb-Regular.9537bcf2.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Peyda"; src: url(fonts/PeydaFaNumWeb-Bold.2d514146.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Peyda"; src: url(fonts/PeydaFaNumWeb-Black.bb3c8ce4.woff2) format("woff2"); font-weight: 900; font-display: swap; }

/* Plugin brand colors (admin SPA uses #e92045 as its primary). */
:root {
	--brand: #e92045;
	--brand-2: #ff4d6d;
	--brand-3: #ff6b8a;
	--ink: #0b1120;
	--ink-3: #1e293b;
	--text: #f1f5f9;
	--muted: #a3b0c4;
	--line: rgba(255, 255, 255, .09);
	--glass: rgba(15, 23, 42, .62);
	--radius: 20px;
	--grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
	margin: 0;
	font-family: "Peyda", Tahoma, sans-serif;
	color: var(--text);
	background:
		radial-gradient(ellipse at 80% -10%, rgba(233, 32, 69, .28), transparent 55%),
		radial-gradient(ellipse at 0% 60%, rgba(255, 77, 109, .12), transparent 50%),
		var(--ink);
	background-attachment: fixed;
	line-height: 1.9;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.45; margin: 0 0 12px; }
p { margin: 0; color: var(--muted); }
a { color: inherit; text-decoration: none; }
/* Form controls don't inherit the page font by default; make every button/field use Peyda. */
button, input, select, textarea { font: inherit; }
::selection { background: var(--brand); color: #fff; }

.flow-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.flow-scrim {
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 60% 70% at 50% 50%, rgba(11, 17, 32, .62), rgba(11, 17, 32, .3) 65%, rgba(11, 17, 32, .1) 100%),
		linear-gradient(to bottom, rgba(11, 17, 32, .15), rgba(11, 17, 32, .35));
}
main, .footer { position: relative; z-index: 1; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 840px; }

.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.glass {
	background: var(--glass);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

/* Buttons & chips */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 28px; border-radius: 999px; font-weight: 700; border: 0;
	transition: transform .25s, box-shadow .25s;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(233, 32, 69, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(233, 32, 69, .5); }
.btn--sm { padding: 7px 20px; font-size: 15px; }
.btn--lg { padding: 16px 40px; font-size: 18px; }
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%; right: -60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
.chip {
	display: inline-block; padding: 5px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
	color: var(--brand-3); background: rgba(233, 32, 69, .12); border: 1px solid rgba(233, 32, 69, .35);
}
.chip--small { padding: 2px 12px; font-size: 13px; }

/* Journey progress: top bar on small screens, side rail on wide screens */
.progress-bar {
	position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 20;
	background: var(--grad); transform-origin: right; pointer-events: none;
}
.rail { display: none; }

.btn--ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--brand-2); }

/* Sections */
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title__question { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-3); font-weight: 700; }
.section-title__step {
	flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--grad); color: #fff; font-size: 14px;
}
.section-title h2 { font-size: 26px; font-weight: 900; margin-top: 8px; }
.section-title, .section-title h2 { text-shadow: 0 2px 20px rgba(11, 17, 32, .95); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.card { padding: 26px; }
.card {
	position: relative; overflow: hidden;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
	transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 77, 109, .18), transparent 65%);
}
.card:hover { --lift: -6px; border-color: rgba(233, 32, 69, .5); box-shadow: 0 24px 60px rgba(233, 32, 69, .18); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { font-size: 18px; }
.card p { font-size: 15px; }
.card__icon {
	display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px;
	border-radius: 14px; color: var(--brand-3); background: rgba(233, 32, 69, .12);
}

/* Problem section: before/after switch with animated scenes */
.before-after { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.before-after__hint { font-size: 13px; color: var(--muted); }
.switcher {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px;
	background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.switcher button {
	position: relative; z-index: 1; font: inherit; font-weight: 700; padding: 10px 26px; border: 0; border-radius: 999px;
	cursor: pointer; background: transparent; color: var(--muted); transition: color .3s;
}
.switcher button[aria-checked="true"] { color: #fff; }
.switcher__pill {
	position: absolute; top: 5px; bottom: 5px; right: 5px; width: calc(50% - 5px); border-radius: 999px;
	background: linear-gradient(135deg, #f59e0b, #f97316); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .45s;
}
.switcher.is-fixed .switcher__pill { transform: translateX(-100%); background: var(--grad); }
.switcher .is-nudge::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--brand-2);
	animation: pulse 1.8s ease-out infinite;
}

.card--problem { border-color: rgba(251, 191, 36, .3); }
.card--problem.is-fixed { border-color: rgba(52, 211, 153, .35); }
.card--problem__inner { animation: fade-in .45s ease; }
.card--problem__state {
	display: inline-block; margin-bottom: 12px; padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
	color: #fbbf24; background: rgba(251, 191, 36, .12);
}
.card--problem.is-fixed .card--problem__state { color: #34d399; background: rgba(52, 211, 153, .12); }

.scene { min-height: 176px; line-height: 1.5; margin: 0 0 18px; padding: 14px; border-radius: 14px; background: rgba(2, 6, 23, .55); border: 1px solid var(--line); font-size: 13px; }

.scene--manual { display: flex; flex-direction: column; gap: 8px; }
.scene__top { display: flex; align-items: center; gap: 6px; color: #fbbf24; font-weight: 700; }
.is-fixed .scene__top { color: #34d399; }
.scene--manual ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scene--manual li { display: grid; grid-template-columns: 58px 1fr 14px; align-items: center; gap: 8px; color: var(--muted); }
.scene--manual li svg { color: #34d399; }
.scene__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.scene__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fbbf24; }
.is-fixed .scene__bar i { background: var(--grad); }
[data-visible] .scene--manual .scene__bar i { animation: fill-slow 8s ease-in-out calc(var(--i) * 1.4s) infinite; }
[data-visible].is-fixed .scene--manual .scene__bar i { animation: fill-fast .5s ease-out calc(var(--i) * .08s) forwards; }

.scene--price { display: flex; flex-direction: column; justify-content: space-between; }
.scene--price svg { width: 100%; height: 96px; overflow: visible; }
.scene--price path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene__market { stroke: rgba(255, 255, 255, .55); }
.scene__store { stroke: #fbbf24; }
.is-fixed .scene__store { stroke: var(--brand-2); }
.scene--price .scene__gap { fill: rgba(251, 191, 36, .14); stroke: none; stroke-dasharray: none; opacity: 0; }
[data-visible] .scene__market { animation: draw 1.6s ease forwards; }
[data-visible] .scene__store { animation: draw 1.6s ease .5s forwards; }
[data-visible] .scene--price .scene__gap { animation: fade 1s ease 1.6s forwards; }
.scene__legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.legend { display: inline-block; width: 12px; height: 3px; margin-left: 4px; vertical-align: middle; border-radius: 2px; }
.legend--market { background: rgba(255, 255, 255, .55); }
.legend--store { background: #fbbf24; }
.is-fixed .legend--store { background: var(--brand-2); }

.scene--stock { list-style: none; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.event {
	display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px;
	background: rgba(255, 255, 255, .04); color: var(--text); opacity: 0; translate: 0 8px;
}
[data-visible] .event { animation: event-in .45s ease calc(var(--i) * .9s + .2s) forwards; }
.event__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.event--ok .event__dot { background: #34d399; }
.event--warn .event__dot { background: #fbbf24; }
.event--bad .event__dot { background: #f43f5e; }
.event--bad { color: #fda4af; background: rgba(244, 63, 94, .1); }
.event--brand .event__dot { background: var(--brand); }

/* Solution pipeline: sources → Kalachin → store */
.pipeline { display: flex; flex-direction: column; align-items: center; padding: 28px 20px; margin-bottom: 24px; }
.pipeline__sources { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pipeline__sources li { padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 14px; }
.pipeline__wire {
	width: 2px; height: 48px;
	background: repeating-linear-gradient(to bottom, var(--brand) 0 8px, transparent 8px 16px);
	background-size: 100% 32px; animation: flow-y 1s linear infinite;
}
.pipeline__core, .pipeline__store { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pipeline__core {
	padding: 22px 34px; border-radius: 24px; background: var(--grad); color: #fff;
	box-shadow: 0 0 60px rgba(233, 32, 69, .45);
}
.pipeline__core small { color: rgba(255, 255, 255, .85); }
.pipeline__pulse {
	position: absolute; inset: -8px; border-radius: 30px; border: 2px solid var(--brand-2);
	animation: pulse 2.2s ease-out infinite;
}
.pipeline__store { padding: 16px 26px; border-radius: 18px; border: 1px solid rgba(233, 32, 69, .4); color: var(--brand-3); }
.pipeline__store strong { color: var(--text); }

/* Shared small controls (chips, segmented, link field, status dots) used by the wizard and feature demos */
.stage__eyebrow { color: var(--brand-3); font-size: 14px; font-weight: 700; }
.mock__url {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(233, 32, 69, .35); color: var(--brand-3); font-size: 14px; overflow: hidden;
}
.mock__url span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #34d399; }
.mock__badge { padding: 2px 8px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 400; }
.mock__stock { color: #34d399; font-size: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; }
.dot--ok { background: #34d399; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
	font: inherit; font-size: 13px; padding: 5px 14px; border-radius: 999px; cursor: pointer;
	color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, .04); transition: border-color .2s, background .2s;
}
.chips button:hover { border-color: rgba(233, 32, 69, .6); }
.chips button[aria-checked="true"] { background: var(--grad); border-color: transparent; color: #fff; }

.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.segmented button {
	flex: 1; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 6px; border: 0; border-radius: 9px;
	cursor: pointer; color: var(--muted); background: transparent; transition: background .2s, color .2s;
}
.segmented button[aria-checked="true"] { background: var(--grad); color: #fff; }
.simulator__result {
	display: grid; gap: 2px; padding: 16px; border-radius: 14px; text-align: center;
	background: rgba(233, 32, 69, .1); border: 1px solid rgba(233, 32, 69, .35); font-size: 14px; color: var(--muted);
}
.simulator__result strong { font-size: 28px; font-weight: 900; }
.simulator__result small { color: #34d399; font-size: 13px; }

/* "Next step" bar at the end of each section: question + clear continue button; the whole bar is a link */
.next-step {
	position: relative; display: grid; gap: 14px; align-items: center; margin-top: 48px; padding: 18px;
	border-radius: 20px; color: var(--text); text-align: center;
	background: linear-gradient(135deg, rgba(233, 32, 69, .14), rgba(15, 23, 42, .7));
	border: 1px solid rgba(233, 32, 69, .35); transition: border-color .3s, box-shadow .3s, background .3s;
}
.next-step:hover { border-color: var(--brand-2); box-shadow: 0 18px 50px rgba(233, 32, 69, .2); }
.next-step__progress { display: flex; justify-content: center; gap: 4px; }
.next-step__progress i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.next-step__progress .is-done { background: var(--brand); }
.next-step__progress .is-next { background: var(--brand-3); animation: pulse-dot 1.4s ease-in-out infinite; }
.next-step__text { display: grid; gap: 2px; }
.next-step__eyebrow { font-size: 13px; color: var(--brand-3); font-weight: 700; }
.next-step__text strong { font-size: 18px; line-height: 1.6; }
.next-step__btn {
	justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px;
	font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 10px 26px rgba(233, 32, 69, .35);
}
.next-step__btn svg { animation: bob 1.8s ease-in-out infinite; }
.next-step:hover .next-step__btn svg { animation-duration: .8s; }

.footer__copy { text-align: center; font-size: 14px; margin-top: 24px; }

/* Motion */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s ease, transform .3s, border-color .3s, box-shadow .3s; transition-delay: var(--delay, 0s), var(--delay, 0s), 0s, 0s, 0s; }
.reveal[data-visible] { opacity: 1; translate: none; }
.fade-in { animation: fade-in .45s ease; }

@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes bob { 50% { transform: translateY(6px); } }
@keyframes pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
@keyframes flow-y { to { background-position: 0 32px; } }
@keyframes word-in { from { opacity: 0; transform: translateY(.5em) rotateX(60deg); filter: blur(6px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes shine { 0%, 60% { right: -60%; } 100% { right: 130%; } }
@keyframes spin-border { to { --angle: 360deg; } }
@keyframes pulse-dot { 50% { opacity: .35; } }
@keyframes fill-slow { 0% { width: 0; } 18%, 85% { width: 100%; } 100% { width: 0; } }
@keyframes fill-fast { to { width: 100%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes event-in { to { opacity: 1; translate: none; } }
@keyframes flow-x { to { background-position: -32px 0; } }

/* Phones: text spans the full width, so dim the scene evenly rather than only the centre. */
@media (max-width: 639px) {
	.flow-scrim { background: rgba(11, 17, 32, .5); }
}

/* Tablet */
@media (min-width: 640px) {
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.section-title h2 { font-size: 32px; }
}

/* Desktop */
@media (min-width: 960px) {
	.next-step { grid-template-columns: auto 1fr auto; gap: 24px; padding: 20px 28px; text-align: right; }
	.next-step__progress { flex-direction: column; gap: 3px; }
	.next-step__progress i { width: 4px; height: 10px; }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.section { padding: 110px 0; }
	.pipeline { flex-direction: row; justify-content: space-between; padding: 36px; }
	.pipeline__sources { flex-direction: column; flex: 0 0 auto; }
	.pipeline__wire {
		flex: 1; height: 2px; width: auto;
		background: repeating-linear-gradient(to left, var(--brand) 0 8px, transparent 8px 16px);
		background-size: 32px 100%; animation-name: flow-x;
	}
}

/* Side journey rail: only where there is room beside the content */
@media (min-width: 1300px) {
	.progress-bar { display: none; }
	.rail { display: block; position: fixed; top: 50%; left: 28px; z-index: 20; transform: translateY(-50%); }
	.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
	.rail__line { position: absolute; top: 6px; bottom: 6px; left: 6px; width: 2px; background: var(--line); }
	.rail__fill { position: absolute; inset: 0; background: var(--grad); transform-origin: top; }
	.rail a { position: relative; display: flex; align-items: center; gap: 12px; direction: ltr; }
	.rail__dot {
		flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); border: 2px solid var(--line);
		transition: background .3s, box-shadow .3s;
	}
	.rail .is-done .rail__dot { background: var(--brand); border-color: var(--brand-2); }
	.rail a[aria-current] .rail__dot { box-shadow: 0 0 0 5px rgba(233, 32, 69, .25); }
	.rail__label { font-size: 13px; color: var(--muted); opacity: .6; transition: opacity .3s; }
	.rail a:hover .rail__label, .rail a[aria-current] .rail__label { opacity: 1; color: var(--text); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; translate: none; }
	.scene__bar i { width: 100%; }
	.scene--price path { stroke-dashoffset: 0; }
	.scene--price .scene__gap, .event { opacity: 1; translate: none; }
}

/* Hero: pitch + live sync demo. Mobile-first: stacked and centered; two columns from 960px. */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 40px 0 28px; }
.hero__inner { display: grid; gap: 36px; align-items: center; }
.hero__text { text-align: center; }

.hero__badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 700; color: var(--text);
	background: rgba(233, 32, 69, .1); border: 1px solid rgba(233, 32, 69, .35); transition: border-color .25s;
}
.hero__badge:hover { border-color: var(--brand-2); }
.hero__badge-new { padding: 1px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; }
.hero__badge svg { color: var(--brand-3); }

.hero__question { margin: 18px 0 4px; font-size: 16px; font-weight: 700; color: var(--brand-3); }
.hero h1 { font-size: 30px; font-weight: 900; line-height: 1.5; margin-bottom: 14px; }
.hero h1, .hero__lead, .hero__question { text-shadow: 0 2px 24px rgba(11, 17, 32, .9); }
.hero__lead { max-width: 560px; margin: 0 auto; font-size: 16px; }

.rotating-word { display: inline-block; min-width: 3.6em; }
.rotating-word__item { display: inline-block; background-size: 200% 100%; }
.hero h1 .gradient-text { animation: word-in .6s cubic-bezier(.2, .8, .2, 1), shimmer 3s linear infinite; text-shadow: none; }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 20px; }
.hero__actions .btn { flex: 1 1 200px; max-width: 260px; }

.hero__journey { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hero__journey li { display: flex; align-items: center; gap: 6px; }
.hero__journey li + li::before { content: "←"; color: var(--brand-2); font-size: 13px; opacity: .7; }
.hero__journey a {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; font-size: 13px;
	color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.hero__journey a:hover { color: var(--text); border-color: rgba(233, 32, 69, .6); }
.hero__journey-num {
	flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px;
	color: var(--text); background: rgba(255, 255, 255, .1);
}
.hero__journey .is-goal a { color: #fff; border-color: rgba(233, 32, 69, .6); background: rgba(233, 32, 69, .15); }
.hero__journey .is-goal .hero__journey-num { background: var(--grad); }


/* ---------- Live demo card ---------- */
.hero-demo { position: relative; max-width: 440px; margin: 0 auto; padding: 48px 0 46px; }
.hero-demo::before {
	content: ""; position: absolute; inset: 20% 10%; border-radius: 50%;
	background: var(--brand); filter: blur(80px); opacity: .35; pointer-events: none;
}

.hero-demo__source {
	position: absolute; z-index: 2; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700;
	white-space: nowrap; cursor: pointer;
	color: var(--muted); background: rgba(15, 23, 42, .85); border: 1px solid var(--line);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	animation: float 5s ease-in-out infinite; transition: color .3s, border-color .3s, box-shadow .3s, background .3s;
}
.hero-demo__source:hover { color: var(--text); border-color: rgba(233, 32, 69, .6); }
.hero-demo__source.is-active { color: #fff; background: var(--brand); border-color: transparent; box-shadow: 0 0 24px rgba(233, 32, 69, .7); }
/* Three chips in the strip above the card, two below — never on top of it. */
.hero-demo__source--0 { top: 4px; right: 2%; }
.hero-demo__source--1 { top: 4px; left: 50%; margin-left: -34px; animation-delay: -1.5s; }
.hero-demo__source--2 { top: 4px; left: 2%; animation-delay: -3s; }
.hero-demo__source--3 { bottom: 2px; right: 14%; animation-delay: -2s; }
.hero-demo__source--4 { bottom: 2px; left: 14%; animation-delay: -4s; }

.hero-demo__card {
	position: relative; z-index: 1; display: grid; gap: 14px; padding: 18px; border-radius: 22px;
	background: linear-gradient(160deg, rgba(30, 41, 59, .92), rgba(11, 17, 32, .95));
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(233, 32, 69, .15), inset 0 1px 0 rgba(255, 255, 255, .08);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.hero-demo__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.hero-demo__live { display: inline-flex; align-items: center; gap: 6px; color: #34d399; font-weight: 700; }
.hero-demo__live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: live 1.6s ease-out infinite; }
.hero-demo__sample { padding: 0 8px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); }

.hero-demo__product { display: flex; align-items: center; gap: 12px; }
.hero-demo__product strong { display: block; font-size: 15px; margin-bottom: 2px; }
.hero-demo__thumb {
	flex: 0 0 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; color: var(--brand-3);
	background: linear-gradient(135deg, rgba(233, 32, 69, .3), rgba(255, 255, 255, .04));
}
.hero-demo__stock { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; animation: fade-in .4s ease; }
.hero-demo__stock.is-in { color: #34d399; background: rgba(52, 211, 153, .12); }
.hero-demo__stock.is-out { color: #fbbf24; background: rgba(251, 191, 36, .14); }

.hero-demo__prices {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
	padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04);
}
.hero-demo__prices span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-demo__prices strong { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 900; white-space: nowrap; }
.hero-demo__prices i { font-style: normal; font-size: 10px; }
.hero-demo__arrow { color: var(--brand-2); font-weight: 900; animation: nudge-x 1.4s ease-in-out infinite; }
.hero-demo__yours { text-align: left; }
.hero-demo__yours strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tick { animation: tick-in .5s cubic-bezier(.2, .8, .2, 1); }
.tick--up i { color: #34d399; }
.tick--down i { color: #fb7185; }

.hero-demo__spark { width: 100%; height: 40px; }
.hero-demo__spark polyline { fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.hero-demo__status {
	display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 700;
	color: #34d399; background: rgba(52, 211, 153, .1); animation: fade-in .4s ease;
}
.hero-demo__status.is-warn { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.hero-demo__status small { margin-right: auto; font-weight: 400; font-size: 11px; color: var(--muted); }

@keyframes float { 50% { translate: 0 -5px; } }
@keyframes live { to { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
@keyframes tick-in { from { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes nudge-x { 50% { transform: translateX(-4px); } }

@media (min-width: 640px) {
	.hero h1 { font-size: 42px; }
	.hero__lead { font-size: 17px; }
	.hero-demo__card { padding: 22px; }
	.hero-demo__prices strong { font-size: 20px; }
}

@media (min-width: 960px) {
	.hero { padding: 64px 0 32px; }
	.hero__inner { grid-template-columns: 1.08fr .92fr; gap: 48px; }
	.hero__text { text-align: right; }
	.hero__lead { margin: 0; }
	.hero__actions, .hero__journey { justify-content: flex-start; }
	.hero h1 { font-size: 50px; }
	.hero-demo__card { transform: perspective(1200px) rotateY(10deg) rotateX(4deg); }
	.hero-demo:hover .hero-demo__card { transform: none; }
}

@media (min-width: 1200px) {
	.hero h1 { font-size: 56px; }
}

/* "How it works": ① global settings (once) → ② add product by link (every time) → ③ result. */
.wizard { display: grid; gap: 18px; margin-top: 24px; padding: 18px; scroll-margin-top: 24px; overflow-anchor: none; }

/* Step panel */
.wizard__panel { scroll-margin-top: 16px; display: grid; gap: 18px; padding: 18px; border-radius: 18px; background: rgba(2, 6, 23, .45); border: 1px solid var(--line); }
.wizard__head h3 { font-size: 22px; margin: 2px 0 4px; }
.wz-options { display: grid; gap: 16px; }
.wz-field { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.wz-field strong { color: var(--text); margin-right: 6px; }
.wz-field input[type="range"] { width: 100%; accent-color: var(--brand); cursor: pointer; }
.wz-note { font-size: 12px; color: #34d399; }

/* Step 1: paste a real link */
.wz-link { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.wz-link__row { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-link__row input {
	flex: 1 1 240px; min-width: 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; outline: none;
	color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid rgba(233, 32, 69, .35); transition: border-color .2s, box-shadow .2s;
}
.wz-link__row input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(233, 32, 69, .15); }
.wz-link__row input::placeholder { color: var(--muted); opacity: .6; }
.wz-link__row .btn { flex: 0 0 auto; }
.wz-link__row .btn:disabled { opacity: .45; cursor: default; }
.wz-link__hint { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.wz-link__hint.is-ok { color: #34d399; }
.wz-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px;
	font-size: 14px; color: #fbbf24; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3);
}
.wz-error span { display: inline-flex; align-items: center; gap: 6px; }
.wz-sample {
	justify-self: start; padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px;
	color: var(--muted); text-decoration: underline; text-underline-offset: 4px;
}
.wz-sample:hover { color: var(--text); }
.wz-change { justify-self: start; }

/* Real product card (step 1 result) */
.wz-product {
	display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px;
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(52, 211, 153, .35);
}
.wz-product__image {
	flex: 0 0 92px; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 14px;
	background: #fff; color: var(--brand);
}
.wz-product__image img { width: 100%; height: 100%; object-fit: contain; }
.wz-product__info { min-width: 0; display: grid; gap: 4px; }
.wz-product__info strong {
	font-size: 15px; line-height: 1.7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.wz-product__source { font-size: 12px; color: #34d399; }
.wz-product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.wz-product__meta b { color: var(--text); font-size: 15px; }
.wz-product__meta .is-in { color: #34d399; }
.wz-product__meta .is-out { color: #fbbf24; }
.wz-product__info a { font-size: 13px; color: var(--brand-3); }
.wz-product__found { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-product__found span { padding: 1px 10px; border-radius: 999px; font-size: 12px; color: #34d399; background: rgba(52, 211, 153, .1); }

/* Process animation (fetching a product / building it in the store) */
.process { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: rgba(2, 6, 23, .5); border: 1px solid rgba(233, 32, 69, .3); }
.process__head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.process__percent { margin-right: auto; font-weight: 900; color: var(--brand-3); }
.process__spinner {
	width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(233, 32, 69, .25); border-top-color: var(--brand-2);
	animation: spin .8s linear infinite;
}
.process__bar { height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.process__bar i {
	display: block; height: 100%; border-radius: inherit; transition: width .5s cubic-bezier(.2, .8, .2, 1);
	background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--brand)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.process__steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; transition: color .3s, opacity .3s; }
.process__dot {
	flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900;
	border: 2px solid var(--line); transition: background .3s, border-color .3s;
}
.process__steps .is-waiting { opacity: .4; }
.process__steps .is-active { color: var(--text); }
.process__steps .is-active .process__dot { border-color: var(--brand-2); border-top-color: transparent; animation: spin .8s linear infinite; }
.process__steps .is-done { color: var(--muted); }
.process__steps .is-done .process__dot { color: #fff; background: #34d399; border-color: #34d399; animation: pop-in .3s ease; }
.process__steps .is-failed { color: #fbbf24; }
.process__steps .is-failed .process__dot { color: #1e1b4b; background: #fbbf24; border-color: #fbbf24; }

.toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px;
	font: inherit; text-align: right; color: var(--text); cursor: pointer;
	background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .2s;
}
.toggle:hover { border-color: rgba(233, 32, 69, .5); }
.toggle__text { display: grid; gap: 2px; }
.toggle__text small { font-size: 12px; color: var(--muted); }
.toggle__track { flex: 0 0 44px; height: 24px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .15); transition: background .25s; }
.toggle__track i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; }
.toggle[aria-checked="true"] .toggle__track { background: var(--brand); }
.toggle[aria-checked="true"] .toggle__track i { transform: translateX(-20px); }


/* Result: full product page preview (stacked above the rule summary) */
.wz-result { display: grid; gap: 18px; }
.pp { border-radius: 18px; overflow: hidden; background: #f8fafc; color: #0f172a; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: pop-in .5s cubic-bezier(.2, .8, .2, 1); }
.pp__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #e2e8f0; font-size: 12px; color: #475569; }
.pp__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.pp__bar span:first-of-type { margin-right: 6px; }
.pp__status { margin-right: auto; padding: 1px 10px; border-radius: 999px; font-weight: 700; }
.pp__status.is-live { color: #047857; background: #d1fae5; }
.pp__status.is-draft { color: #92400e; background: #fef3c7; }

.pp__body { display: grid; gap: 16px; padding: 16px; }
.pp__gallery { display: grid; gap: 8px; align-content: start; }
.pp__image {
	display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
	color: var(--brand); background: #fff; border: 1px solid #e2e8f0;
}
.pp__image--empty { background: linear-gradient(135deg, #ffe4e9, #f1f5f9); max-width: 220px; }
.pp__image img { width: 100%; height: 100%; object-fit: contain; }
.pp__thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.pp__thumbs button {
	flex: 0 0 52px; height: 52px; padding: 3px; border-radius: 10px; cursor: pointer;
	background: #fff; border: 2px solid #e2e8f0; transition: border-color .2s;
}
.pp__thumbs button[aria-selected="true"] { border-color: var(--brand); }
.pp__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pp__summary { min-width: 0; display: grid; gap: 10px; align-content: start; }
.pp__name { font-size: 18px; line-height: 1.7; }
.pp__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pp__regular { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #94a3b8; }
.pp__regular i { font-style: normal; font-weight: 900; color: #fff; background: var(--brand); padding: 0 8px; border-radius: 999px; }
.pp__pay { font-size: 22px; font-weight: 900; color: var(--brand); }
.pp .mock__stock { color: #059669; font-size: 13px; font-weight: 700; }
.pp__out { color: #b45309; font-size: 13px; font-weight: 700; }

.pp__variants { display: grid; gap: 6px; font-size: 13px; color: #475569; }
.pp__variants div { display: flex; flex-wrap: wrap; gap: 6px; }
.pp__variants button {
	padding: 4px 12px; border-radius: 999px; cursor: pointer; font-size: 13px;
	color: #0f172a; background: #fff; border: 1px solid #cbd5e1; transition: border-color .2s, background .2s;
}
.pp__variants button:hover { border-color: var(--brand); }
.pp__variants button[aria-checked="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.pp__variants button.is-out { color: #94a3b8; text-decoration: line-through; }
.pp__variants button.is-out[aria-checked="true"] { color: #fff; background: #94a3b8; border-color: #94a3b8; }

.pp__cart { justify-self: start; padding: 8px 20px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #fff; background: #0f172a; }
.pp__cart.is-disabled { background: #cbd5e1; color: #64748b; }
.pp__meta { font-size: 12px; color: #64748b; }

.pp__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pp__summary > .pp__table, .pp > .pp__table { outline: 2px dashed var(--brand); outline-offset: 3px; border-radius: 8px; animation: pop-in .5s ease; }
.pp > .pp__table { width: calc(100% - 32px); margin: 0 16px 16px; }
.pp__table th, .pp__table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.pp__table th { color: #64748b; font-weight: 400; width: 40%; }
.pp__table--variants thead th { width: auto; font-weight: 700; color: #0f172a; background: #f1f5f9; }
.pp__table .is-in { color: #059669; }
.pp__table .is-out { color: #b45309; }

.pp__tabs { border-top: 1px solid #e2e8f0; }
.pp__tablist { display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; background: #f1f5f9; }
.pp__tablist button {
	padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
	font-size: 14px; font-weight: 700; color: #64748b; background: none;
}
.pp__tablist button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.pp__panel { padding: 16px; max-height: 320px; overflow-y: auto; }
.pp__desc { margin: 0; font-size: 14px; line-height: 2; color: #334155; }
.pp__group + .pp__group { margin-top: 12px; }
.pp__group strong { display: block; margin-bottom: 4px; font-size: 14px; }

.wz-rules { display: grid; gap: 10px; align-content: start; }
.wz-rules__title { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: #34d399; }
.wz-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wz-rules li {
	display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--text);
	background: rgba(255, 255, 255, .04); border-right: 3px solid var(--brand);
	opacity: 0; animation: event-in .4s ease calc(.2s + var(--i) * .15s) forwards;
}
.wz-rules li svg { flex: 0 0 auto; margin-top: 4px; color: var(--brand-3); }
.wz-rules__note { font-size: 13px; }
.wz-rules__title small { font-weight: 400; color: var(--muted); margin-right: 4px; }
.wz-rules__sub { font-size: 13px; color: var(--muted); }
.wz-rules__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Link-only flow: confirms the saved settings were applied */
.wz-quick {
	display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.8;
	color: var(--text); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35);
}
.wz-quick svg { flex: 0 0 auto; margin-top: 5px; color: #34d399; }
.wz-quick strong { color: #34d399; margin-left: 4px; }

/* Usage intro: once → every time → automatic */
.wizard__intro { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wizard__intro li {
	display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 700;
	background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.wizard__intro small { margin-left: 6px; color: var(--brand-3); font-weight: 900; }
.wizard__intro-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--grad); }

@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(8px); } }

@media (max-width: 479px) {
}

@media (min-width: 640px) {
	.wizard__intro { grid-template-columns: repeat(3, 1fr); }
	.wizard { padding: 24px; }
	.wizard__panel { padding: 24px; }
}

@media (min-width: 960px) {
	.pp__body { grid-template-columns: minmax(220px, 300px) 1fr; padding: 20px; gap: 24px; }
	.wz-rules ul { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.wz-rules li { opacity: 1; }
}

/* Phase bar: ① once ② every time ③ result */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phases button {
	width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
	text-align: right; cursor: pointer; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
	transition: border-color .25s, background .25s, color .25s;
}
.phases button:disabled { opacity: .45; cursor: default; }
.phases button:not(:disabled):hover { border-color: rgba(233, 32, 69, .5); }
.phases__num {
	flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 14px;
	background: var(--ink-3); border: 2px solid var(--line);
}
.phases__text { display: grid; gap: 2px; min-width: 0; }
.phases__text strong { font-size: 14px; color: var(--text); }
.phases__tag { justify-self: start; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.phases__tag--settings { color: #a78bfa; background: rgba(167, 139, 250, .14); }
.phases__tag--product { color: var(--brand-3); background: rgba(233, 32, 69, .14); }
.phases .is-current button { border-color: var(--brand); background: rgba(233, 32, 69, .12); }
.phases .is-current .phases__num { color: #fff; background: var(--grad); border-color: transparent; }
.phases .is-done .phases__num { color: #fff; background: #34d399; border-color: #34d399; }

/* Global settings screen (looks like the plugin's settings page) */
.settings { border-radius: 16px; overflow: hidden; border: 1px solid rgba(167, 139, 250, .35); background: rgba(2, 6, 23, .45); }
.settings__bar {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px;
	font-size: 13px; background: rgba(167, 139, 250, .1); border-bottom: 1px solid rgba(167, 139, 250, .25);
}
.settings__crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.settings__scope { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 999px; color: #a78bfa; background: rgba(167, 139, 250, .14); }
.settings__section { padding: 16px 14px; border-bottom: 1px dashed var(--line); min-height: 260px; }
.settings__section h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.settings__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--grad); }
.settings__global { padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #a78bfa; border: 1px solid rgba(167, 139, 250, .5); }
.settings__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
.settings__footer p { flex: 1 1 260px; font-size: 13px; }
.settings__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-right: auto; }

/* Sub-steps inside the settings panel: pricing → display → sync */
.settings__steps { list-style: none; margin: 0; padding: 12px 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.settings__steps button {
	width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 10px;
	font-size: 13px; font-weight: 700; cursor: pointer; color: var(--muted); background: rgba(255, 255, 255, .03);
	border: 1px solid var(--line); border-bottom: 3px solid var(--line); transition: color .2s, border-color .2s;
}
.settings__steps button:disabled { opacity: .45; cursor: default; }
.settings__steps .is-current button { color: var(--text); border-color: rgba(167, 139, 250, .5); border-bottom-color: #a78bfa; background: rgba(167, 139, 250, .1); }
.settings__steps .is-done button { color: var(--text); border-bottom-color: #34d399; }
.settings__step-num {
	flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px;
	background: rgba(255, 255, 255, .1);
}
.settings__steps .is-current .settings__step-num { color: #fff; background: #a78bfa; }
.settings__steps .is-done .settings__step-num { color: #fff; background: #34d399; }
.settings__count { margin-right: auto; font-size: 12px; font-weight: 400; color: var(--muted); }

/* "These global settings will be applied" strip above the link field */
.applied {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; font-size: 12px;
	background: rgba(167, 139, 250, .08); border: 1px solid rgba(167, 139, 250, .3);
}
.applied__label { display: inline-flex; align-items: center; gap: 4px; width: 100%; color: #a78bfa; font-weight: 700; }
.applied span:not(.applied__label) { padding: 1px 10px; border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, .06); }
.applied button { margin-right: auto; padding: 0; border: 0; background: none; cursor: pointer; font-size: 12px; color: #a78bfa; text-decoration: underline; }

@media (max-width: 479px) {
	.settings__steps { padding: 10px 10px 0; }
	.settings__steps button { flex-direction: column; gap: 4px; font-size: 11px; padding: 8px 4px; }
	.phases button { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; }
	.phases__tag { justify-self: center; }
	.phases__text strong { font-size: 12px; }
}
@media (min-width: 640px) {
	.settings__section { padding: 20px; }
	.applied__label { width: auto; }
}

/* Features: bento grid with a live demo in every tile. Demos animate once the tile is [data-visible]. */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; grid-auto-flow: dense; }
.bento__tile { display: flex; flex-direction: column; padding: 20px; }
.bento__tile h3 { margin-top: 16px; }
.bento__visual { flex: 1; display: flex; }
.bento__visual > * { flex: 1; }
/* The big interactive tile would tilt too far; keep only the lift and glow. */
.bento__tile--xl { transform: translateY(var(--lift, 0)); }

.fv {
	min-height: 130px; margin: 0; padding: 14px; border-radius: 14px; font-size: 13px;
	background: rgba(2, 6, 23, .55); border: 1px solid var(--line);
}
.fv__badge {
	display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
	color: #fff; background: var(--grad);
}
.fv__row-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 10px; }

/* Bulk import queue */
.fv--bulk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fv--bulk li { display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 10px; color: var(--muted); }
.fv--bulk li span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.fv__progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.fv__progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); }
[data-visible] .fv__progress i { animation: queue 6s ease-in-out calc(var(--i) * .8s) infinite; }

/* Auto sync orbit */
.fv--sync { display: grid; place-items: center; gap: 10px; }
.orbit-wrap { position: relative; display: block; width: 84px; height: 84px; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(233, 32, 69, .5); animation: spin 6s linear infinite; }
.orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 12px var(--brand-2); }
.orbit__core { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-3); }
.fv--sync .orbit__core svg { animation: spin 3s linear infinite reverse; }

/* Scheduler monitor chart */
.fv--monitor { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; min-height: 80px; }
.bars i { flex: 1; height: 0; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--brand), var(--brand-3)); opacity: .85; }
[data-visible] .bars i { animation: grow .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * .08s) forwards; }
.fv__status { color: var(--muted); }

/* AI content typewriter */
.fv--content { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.typewriter { margin: 0; color: var(--text); font-size: 14px; }
.fv__by { font-size: 12px; color: var(--muted); }
.typewriter span {
	display: block; max-width: 100%; width: 0; overflow: hidden; white-space: nowrap;
	border-left: 2px solid var(--brand-2);
}
/* Line 1 types, hands the caret to line 2, which then types and keeps blinking. */
.typewriter span + span { border-left-color: transparent; }
[data-visible] .typewriter span:first-child { animation: type 2.2s steps(40) .3s forwards, caret-off 0s 2.5s forwards; }
[data-visible] .typewriter span + span { animation: type 1.8s steps(30) 2.5s forwards, caret .8s step-end 2.5s infinite; }

/* Elementor attribute table */
.fv--table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.fv--table tr { opacity: 0; }
[data-visible] .fv--table tr { animation: event-in .4s ease calc(var(--i) * .15s + .2s) forwards; }
.fv--table th, .fv--table td { padding: 6px 10px; background: rgba(255, 255, 255, .04); font-weight: 400; text-align: right; }
.fv--table th { color: var(--muted); border-radius: 0 8px 8px 0; width: 40%; }
.fv--table td { color: var(--text); border-radius: 8px 0 0 8px; }

/* Per-variation stock */
.fv--stock { list-style: none; display: grid; gap: 8px; align-content: center; }
.fv--stock li { display: flex; justify-content: space-between; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.fv--stock .is-in span:last-child { color: #34d399; font-weight: 700; }
.fv--stock .is-out span:last-child { color: #fbbf24; font-weight: 700; }
[data-visible] .fv--stock .is-out { animation: flag 2.4s ease-in-out infinite; }

/* AI assistant chat */
.assistant { display: flex; flex-direction: column; min-height: 320px; border-radius: 16px; overflow: hidden; background: rgba(2, 6, 23, .6); border: 1px solid var(--line); }
.assistant__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.assistant__avatar { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; }
.assistant__online { font-size: 12px; color: #34d399; }
.assistant__sample { margin-right: auto; padding: 1px 10px; border-radius: 999px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); }
.assistant__chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; animation: event-in .35s ease forwards; opacity: 0; translate: 0 8px; }
.bubble--user { align-self: flex-end; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, .08); }
.bubble--bot { align-self: flex-start; display: grid; gap: 4px; border-bottom-right-radius: 4px; background: rgba(233, 32, 69, .14); border: 1px solid rgba(233, 32, 69, .3); }
.bubble__line { display: flex; align-items: center; gap: 6px; opacity: 0; animation: event-in .3s ease calc(var(--i) * .25s) forwards; }
.bubble__line svg { color: #34d399; flex: 0 0 auto; }
.bubble--typing { display: flex; gap: 4px; padding: 14px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-3); animation: blink 1s ease-in-out infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; }
.bubble--typing i:nth-child(3) { animation-delay: .3s; }
.assistant__actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-top: 1px solid var(--line); }
.assistant__actions button {
	font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
	color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.assistant__actions button:hover { border-color: var(--brand-2); }
.assistant__actions button.is-active { background: var(--grad); border-color: transparent; }

@keyframes queue { 0% { width: 0; } 25%, 85% { width: 100%; } 100% { width: 0; } }
@keyframes grow { to { height: var(--h); } }
@keyframes type { to { width: 100%; } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes caret-off { to { border-color: transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes flag { 50% { background: rgba(251, 191, 36, .14); } }

@media (min-width: 640px) {
	.bento { grid-template-columns: repeat(2, 1fr); }
	.bento__tile--xl, .bento__tile--wide { grid-column: span 2; }
}

@media (min-width: 960px) {
	.bento { grid-template-columns: repeat(4, 1fr); }
	.bento__tile--xl { grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
	.fv__progress i { width: 100%; }
	.bars i { height: var(--h); }
	.typewriter span { width: 100%; }
	.fv--table tr, .bubble, .bubble__line { opacity: 1; translate: none; }
}

/* Changelog: version list + single detail panel (fixed height, so the page doesn't grow per release). */
:root {
	--c-new: var(--brand-2);
	--c-improved: #a78bfa;
	--c-fixed: #34d399;
}

.history-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-bottom: 28px; color: var(--muted); }
.history-stats strong { font-size: 22px; font-weight: 900; color: var(--text); margin-left: 4px; }
.history-stats__new strong { color: var(--c-new); }
.history-stats__improved strong { color: var(--c-improved); }
.history-stats__fixed strong { color: var(--c-fixed); }

.releases { display: grid; gap: 16px; }

/* Version list: horizontal swipe row on mobile, vertical column on desktop */
.releases__list {
	display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
	scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.version-tab {
	flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 4px; min-width: 132px;
	padding: 10px 14px; border-radius: 14px; text-align: right; font: inherit; cursor: pointer;
	color: var(--text); background: rgba(15, 23, 42, .62); border: 1px solid var(--line);
	transition: border-color .25s, background .25s;
}
.version-tab:hover { border-color: rgba(255, 255, 255, .2); }
.version-tab[aria-selected="true"] { border-color: var(--brand); background: rgba(233, 32, 69, .14); }
.version-tab__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.version-tab__top strong { font-size: 17px; }
.version-tab__latest { padding: 0 8px; border-radius: 999px; font-size: 11px; color: #fff; background: var(--brand); }
.version-tab__title { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.version-tab__dots { display: flex; flex-wrap: wrap; gap: 3px; }
.version-tab__dots i { width: 6px; height: 6px; border-radius: 50%; }
.dot-new { background: var(--c-new); }
.dot-improved { background: var(--c-improved); }
.dot-fixed { background: var(--c-fixed); }

/* Detail panel */
.releases__panel { display: flex; flex-direction: column; padding: 22px; min-width: 0; }
.releases__panel.is-latest {
	border: 2px solid transparent;
	background:
		linear-gradient(160deg, rgba(48, 12, 26, .95), rgba(15, 23, 42, .95)) padding-box,
		conic-gradient(from var(--angle, 0deg), var(--brand), transparent 30%, var(--brand-3), transparent 70%, var(--brand)) border-box;
	animation: fade-in .45s ease, spin-border 6s linear infinite;
}
.release__head { display: flex; align-items: center; gap: 10px; }
.release__version {
	font-size: 26px; font-weight: 900; line-height: 1.3;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chip--live { color: #fff; background: var(--brand); border-color: transparent; }
.releases__panel h3 { font-size: 20px; margin: 4px 0; }
.release__summary { font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.filters__btn {
	display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700;
	padding: 5px 6px 5px 12px; border-radius: 999px; cursor: pointer;
	color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .25s;
}
.filters__btn:disabled { opacity: .35; cursor: default; }
.filters__count { min-width: 20px; padding: 0 5px; border-radius: 999px; font-size: 11px; line-height: 20px; text-align: center; background: rgba(255, 255, 255, .1); }
.filters__btn[aria-checked="true"] { background: var(--grad); border-color: transparent; }
.filters__btn--improved[aria-checked="true"] { background: var(--c-improved); color: #1e1b4b; }
.filters__btn--fixed[aria-checked="true"] { background: var(--c-fixed); color: #052e16; }
.filters__btn[aria-checked="true"] .filters__count { background: rgba(0, 0, 0, .2); }

/* Change rows scroll inside the panel instead of stretching the page */
.changes {
	list-style: none; margin: 0; padding: 0 0 0 6px; display: grid; gap: 8px; align-content: start;
	max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.change {
	display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-radius: 12px;
	background: rgba(255, 255, 255, .03); border-right: 3px solid var(--c);
}
.change--new { --c: var(--c-new); }
.change--improved { --c: var(--c-improved); }
.change--fixed { --c: var(--c-fixed); }
.change__type {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px;
	padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
	color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
.change__text { font-size: 15px; color: var(--text); line-height: 1.8; }

.release__note {
	display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--brand-3);
}
.release__nav {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted);
}
.release__nav button {
	font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer;
	color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.release__nav button:disabled { opacity: .3; cursor: default; }

@media (max-width: 639px) {
	.change { flex-direction: column; gap: 6px; }
	.release__version { font-size: 22px; }
}

@media (min-width: 960px) {
	.releases { grid-template-columns: 260px 1fr; align-items: stretch; }
	.releases__list {
		flex-direction: column; overflow-x: visible; overflow-y: auto; max-height: 560px;
		padding: 0 0 0 6px; scroll-snap-type: y proximity;
	}
	.version-tab { min-width: 0; }
	.releases__panel { min-height: 560px; max-height: 560px; }
	.changes { max-height: none; flex: 0 1 auto; min-height: 0; }
}

/* FAQ as a chat window. Bubble/typing styles are shared from bento.css (.bubble, .assistant__bar). */
.faq-chat {
	display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
	background: rgba(2, 6, 23, .7); border: 1px solid var(--line);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.faq-chat__restart {
	margin-right: auto; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12px;
	padding: 3px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid var(--line);
}
.faq-chat__restart:hover { color: var(--text); border-color: var(--brand-2); }

/* Fixed-height thread: the page doesn't grow as the conversation does. */
.faq-chat__thread {
	display: flex; flex-direction: column; gap: 12px; height: 380px; overflow-y: auto; padding: 20px 16px;
	scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.faq-chat__thread .bubble { line-height: 1.9; }
.faq-chat__cta { justify-self: start; margin-top: 8px; }

.faq-chat__suggest { padding: 12px 16px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.faq-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-chat__chips button {
	font: inherit; font-size: 13px; text-align: right; padding: 7px 14px; border-radius: 14px; cursor: pointer;
	color: var(--text); background: rgba(233, 32, 69, .08); border: 1px solid rgba(233, 32, 69, .35);
	transition: background .2s, transform .2s;
}
.faq-chat__chips button:hover:not(:disabled) { background: rgba(233, 32, 69, .2); transform: translateY(-2px); }
.faq-chat__chips button:disabled { opacity: .5; cursor: wait; }

@media (max-width: 639px) {
	.faq-chat__thread { height: 340px; }
}

/* Category tabs, chips and free-text input */
.faq-chat__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.faq-chat__tabs button {
	flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; cursor: pointer;
	color: var(--muted); background: transparent; border: 1px solid var(--line); transition: color .2s, background .2s;
}
.faq-chat__tabs button[aria-selected="true"] { color: #fff; background: var(--grad); border-color: transparent; }
.faq-chat__done { font-size: 13px; color: var(--muted); }

.faq-chat__input { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.faq-chat__input input {
	flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 10px 16px; border-radius: 999px; outline: none;
	color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: border-color .2s;
}
.faq-chat__input input::placeholder { color: var(--muted); opacity: .7; }
.faq-chat__input input:focus { border-color: var(--brand); }
.faq-chat__input button {
	flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
	color: #fff; background: var(--grad);
}
.faq-chat__input button svg { transform: rotate(90deg); } /* "down" arrow → points left: send in RTL */
.faq-chat__input button:disabled { opacity: .4; cursor: default; }

/* Floating buy button. Default: pill bottom-right. Wide screens: vertical tab on the right edge. */
.buy-dock {
	position: fixed; z-index: 30; bottom: 18px; right: 16px; overflow: hidden;
	display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
	color: #fff; font-weight: 900; font-size: 15px;
	background: linear-gradient(135deg, #b5122f 0%, var(--brand) 45%, var(--brand-2) 100%);
	box-shadow: 0 14px 36px rgba(233, 32, 69, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
	animation: dock-in .5s cubic-bezier(.2, .8, .2, 1) .05s both, dock-pulse 2.6s ease-in-out .8s infinite;
	transition: opacity .4s, transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, padding .3s;
}
.buy-dock.is-hidden { opacity: 0; transform: translateY(24px); pointer-events: none; animation: none; }
.buy-dock:hover { box-shadow: 0 18px 50px rgba(233, 32, 69, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* Light sweep */
.buy-dock::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 45%; right: -60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg); animation: shine 3.4s ease-in-out infinite; pointer-events: none;
}

.buy-dock__icon {
	flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: #fff; color: var(--brand); animation: cart-nudge 4s ease-in-out infinite;
}
.buy-dock__text { white-space: nowrap; }
.buy-dock__arrow { transition: transform .3s; }
.buy-dock:hover .buy-dock__arrow { transform: translateX(-4px); }

/* Wide screens: tab fixed to the right edge, vertical label; slides further out on hover. */
@media (min-width: 1300px) {
	.buy-dock {
		top: 50%; bottom: auto; right: 0; flex-direction: column; gap: 14px;
		padding: 16px 12px 18px; border-radius: 20px 0 0 20px;
		transform: translateY(-50%);
		animation: dock-in-side .5s cubic-bezier(.2, .8, .2, 1) .05s both, dock-pulse 2.6s ease-in-out .8s infinite;
	}
	.buy-dock:hover { padding-right: 20px; }
	.buy-dock.is-hidden { transform: translate(110%, -50%); opacity: 1; }
	.buy-dock__text { writing-mode: vertical-rl; letter-spacing: 1px; font-size: 16px; }
	.buy-dock::after {
		top: auto; left: 0; right: 0; width: auto; height: 40%; bottom: -60%;
		background: linear-gradient(190deg, transparent, rgba(255, 255, 255, .45), transparent);
		transform: none; animation-name: shine-y;
	}
	.buy-dock__arrow { display: none; }
}

@keyframes dock-in { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes dock-in-side { from { opacity: 0; transform: translate(100%, -50%); } }
@keyframes dock-pulse { 50% { box-shadow: 0 14px 44px rgba(233, 32, 69, .85), 0 0 0 6px rgba(233, 32, 69, .15), inset 0 1px 0 rgba(255, 255, 255, .25); } }
@keyframes shine-y { 0%, 60% { bottom: -60%; } 100% { bottom: 130%; } }
@keyframes cart-nudge { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-14deg); } 90% { transform: rotate(10deg); } 94% { transform: rotate(-6deg); } }

/* Consultation shortcut: stacked above the buy pill on smaller screens, bottom-right corner on wide ones. */
.consult-fab {
	position: fixed; z-index: 29; right: 18px; bottom: 84px; width: 54px; height: 54px; padding: 0;
	display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: #fff;
	background: linear-gradient(135deg, #7c3aed, #a78bfa); border: 0;
	box-shadow: 0 12px 30px rgba(124, 58, 237, .45);
	animation: fab-in .5s cubic-bezier(.2, .8, .2, 1) both;
	transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1), bottom .35s;
}
/* Until the buy pill shows up (it waits for "how it works"), take the corner itself. */
body:has(.buy-dock.is-hidden) .consult-fab { bottom: 18px; }
.consult-fab::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #a78bfa;
	animation: pulse 2.4s ease-out infinite;
}
.consult-fab:hover { transform: scale(1.06); }
.consult-fab.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.consult-fab__label {
	position: absolute; right: calc(100% + 12px); top: 50%; padding: 6px 12px; border-radius: 10px; white-space: nowrap;
	font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
	opacity: 0; transform: translate(6px, -50%); transition: opacity .25s, transform .25s; pointer-events: none;
	animation: fab-label 3.5s ease 1.2s;
}
.consult-fab:hover .consult-fab__label, .consult-fab:focus-visible .consult-fab__label { opacity: 1; transform: translate(0, -50%); }
.is-intro .consult-fab { opacity: 0; pointer-events: none; }

@media (min-width: 1300px) {
	.consult-fab, body:has(.buy-dock.is-hidden) .consult-fab { bottom: 24px; right: 24px; }
}

@keyframes fab-in { from { opacity: 0; transform: scale(.4); } }
@keyframes fab-label { 0%, 100% { opacity: 0; transform: translate(6px, -50%); } 12%, 85% { opacity: 1; transform: translate(0, -50%); } }

/* Benefits (savings calculator + gains) and the final buy step. */

/* ---------- Savings calculator ---------- */
.savings { display: grid; gap: 20px; }
.savings__calc { display: grid; gap: 18px; padding: 22px; }
.savings__head { display: flex; align-items: center; gap: 8px; color: var(--brand-3); font-weight: 700; font-size: 14px; }
.savings__field { display: grid; gap: 10px; }
.savings__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.savings__label strong { flex: 0 0 auto; color: var(--text); font-size: 16px; }

/* Range: filled track up to the thumb (RTL: fills from the right). */
.savings input[type="range"] { appearance: none; width: 100%; height: 8px; border-radius: 999px; cursor: pointer;
	background: linear-gradient(to left, var(--brand) 0 var(--fill), rgba(255, 255, 255, .1) var(--fill) 100%);
}
.savings input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff;
	border: 4px solid var(--brand); box-shadow: 0 0 0 6px rgba(233, 32, 69, .2); -webkit-transition: transform .15s; transition: transform .15s;
}
.savings input[type="range"]::-moz-range-thumb {
	width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 0 0 6px rgba(233, 32, 69, .2);
}
.savings input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }

.savings__results { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px; margin-top: 4px; }
.savings__result { display: grid; gap: 2px; padding: 16px 12px; border-radius: 16px; text-align: center; }
.savings__result span { font-size: 13px; color: var(--muted); }
.savings__result strong { font-size: 40px; font-weight: 900; line-height: 1.3; }
.savings__result small { font-size: 12px; color: var(--muted); }
.savings__result--loss { background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); }
.savings__result--loss strong { color: #fbbf24; }
.savings__result--win { background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .35); }
.savings__result--win strong { color: #34d399; }
.savings__vs { align-self: center; font-size: 22px; font-weight: 900; color: var(--brand-2); animation: nudge-x 1.4s ease-in-out infinite; }
.savings__note { font-size: 12px; text-align: center; }

/* ---------- Gains list ---------- */
.gains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: center; }
.gain {
	display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px;
	background: rgba(15, 23, 42, .5); border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s;
}
.gain:hover { border-color: rgba(233, 32, 69, .5); background: rgba(233, 32, 69, .08); transform: translateX(-6px); }
.gain__icon {
	flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
	background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(233, 32, 69, .35);
}
.gain h3 { font-size: 17px; margin: 0 0 2px; }
.gain p { font-size: 14px; }

/* ---------- Final buy step ---------- */
.footer { padding: 40px 0 24px; }
.finale {
	position: relative; overflow: hidden; display: grid; gap: 28px; padding: 32px 18px; border-radius: 32px;
	border: 2px solid transparent;
	background:
		linear-gradient(160deg, rgba(60, 14, 30, .96), rgba(15, 23, 42, .96)) padding-box,
		conic-gradient(from var(--angle, 0deg), var(--brand), transparent 30%, var(--brand-3), transparent 70%, var(--brand)) border-box;
	animation: spin-border 6s linear infinite;
}
.finale__glow {
	position: absolute; top: -140px; right: -80px; width: 380px; height: 380px; border-radius: 50%;
	background: var(--brand); filter: blur(130px); opacity: .45; pointer-events: none;
}
.finale > *:not(.finale__glow) { position: relative; }
.finale__pitch { text-align: center; }
.finale h2 { font-size: 28px; font-weight: 900; margin: 14px 0 8px; }
.finale__pitch > p { max-width: 520px; margin: 0 auto 20px; }

/* Journey recap: checks tick in one by one once the section is visible. */
.recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: right; }
.recap a {
	display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: 15px;
	color: var(--muted); background: rgba(255, 255, 255, .03); transition: color .3s, background .3s;
}
.recap a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.recap__check {
	flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
	color: transparent; border: 2px solid var(--line); transition: background .3s, border-color .3s, color .3s;
}
[data-visible] .recap a { animation: recap-on .01s linear calc(.4s + var(--i) * .3s) forwards; }
[data-visible] .recap__check { animation: recap-check .4s cubic-bezier(.2, .8, .2, 1) calc(.4s + var(--i) * .3s) forwards; }

/* Package card */
.package {
	display: grid; gap: 16px; padding: 22px; border-radius: 24px;
	background: rgba(2, 6, 23, .6); border: 1px solid rgba(233, 32, 69, .35);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.package__head { display: flex; align-items: center; gap: 12px; }
.package__head strong { display: block; font-size: 20px; }
.package__head small { color: var(--muted); }
.package__icon {
	flex: 0 0 54px; height: 54px; display: grid; place-items: center; border-radius: 16px;
	background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(233, 32, 69, .45);
	animation: cart-nudge 4s ease-in-out infinite;
}
.package__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.package__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.package__list svg { flex: 0 0 auto; color: var(--brand-3); }
.package__buy { width: 100%; }
.package__ask { text-align: center; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.package__ask:hover { color: var(--text); }

@keyframes recap-on { to { color: var(--text); } }
@keyframes recap-check { 0% { transform: scale(.6); } 100% { transform: none; color: #fff; background: #34d399; border-color: #34d399; } }

@media (min-width: 640px) {
	.savings__calc { padding: 28px; }
	.savings__result strong { font-size: 48px; }
	.finale { padding: 44px 36px; }
	.finale h2 { font-size: 36px; }
	.recap { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
	.savings { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
	.finale { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 56px 48px; }
	.finale__pitch { text-align: right; }
	.finale__pitch > p { margin: 0 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.recap a { color: var(--text); }
	.recap__check { color: #fff; background: #34d399; border-color: #34d399; }
}

/* Cinematic intro: brand opener that opens with a circle into the 3D scene. */
.intro {
	position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
	background: radial-gradient(circle at 50% 45%, #1a0b14 0%, var(--ink) 60%);
	/* A hole that grows from the centre: opens the opener into the 3D scene. */
	--hole: 0%;
	mask-image: radial-gradient(circle at 50% 45%, transparent var(--hole), #000 calc(var(--hole) + 2%));
}
.intro--exit { animation: intro-open .9s cubic-bezier(.7, 0, .3, 1) forwards; }
@property --hole { syntax: "<percentage>"; initial-value: 0%; inherits: false; }

.intro__brand { display: grid; justify-items: center; gap: 10px; text-align: center; }
.intro__mark {
	position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px;
	font-size: 48px; font-weight: 900; color: #fff; background: var(--grad);
	box-shadow: 0 0 80px rgba(233, 32, 69, .55);
	animation: mark-in .7s cubic-bezier(.2, .9, .3, 1.3) both;
}
.intro__ring { position: absolute; inset: -22px; width: calc(100% + 44px); height: calc(100% + 44px); transform: rotate(-90deg); }
.intro__ring circle {
	fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-linecap: round;
	stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring-draw 1s cubic-bezier(.6, 0, .2, 1) .2s forwards;
	filter: drop-shadow(0 0 6px var(--brand));
}
.intro__name { margin-top: 18px; font-size: 32px; font-weight: 900; letter-spacing: 1px; animation: rise .6s ease .45s both; }
.intro__tagline { font-size: 15px; color: var(--muted); animation: rise .6s ease .65s both; }
.intro--exit .intro__brand { animation: brand-out .5s ease forwards; }

/* Hero copy waits for the scene: hidden while body.is-intro, then its normal staggered reveal plays. */
.is-intro .hero .reveal[data-visible] { opacity: 0; translate: 0 28px; }
.is-intro .buy-dock, .is-intro .rail, .is-intro .progress-bar { opacity: 0; }

@keyframes mark-in { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes brand-out { to { opacity: 0; transform: scale(1.15); filter: blur(6px); } }
@keyframes intro-open { to { --hole: 150%; } }

/* Lead form (custom feature / consultation), the finale consult block and the wizard-result entry point. */
.lead { display: grid; gap: 14px; margin-top: 14px; }
.lead__grid { display: grid; gap: 12px; }
.lead__field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.lead__field input, .lead__field textarea {
	width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 15px; outline: none; resize: vertical;
	color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.lead__field input:focus, .lead__field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(233, 32, 69, .15); }
.lead__field input::placeholder { color: var(--muted); opacity: .55; }
.lead__field.has-error input, .lead__field.has-error textarea { border-color: #fbbf24; }
.lead__field small { color: #fbbf24; font-size: 12px; }
.lead__hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.lead__error { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #fbbf24; }
.lead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lead__actions .btn:disabled { opacity: .6; cursor: wait; }
.lead__actions small { font-size: 12px; color: var(--muted); }

.lead--sent { justify-items: center; text-align: center; padding: 20px; border-radius: 16px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .35); }
.lead__done { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #34d399; animation: pop-in .4s ease; }
.lead--sent strong { font-size: 18px; }

/* Finale: consultation block */
.consult { margin-top: 20px; padding: 20px; scroll-margin-top: 24px; }
.consult__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.consult__head > div { flex: 1 1 240px; }
.consult__head strong { display: block; font-size: 17px; }
.consult__head p { font-size: 14px; }
.consult__icon { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--grad); }

/* Wizard result: custom feature entry point */
.wz-custom { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.wz-custom__toggle {
	display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
	font-size: 14px; color: var(--muted); text-align: right;
}
.wz-custom__toggle svg { color: var(--brand-3); }
.wz-custom__toggle strong { color: var(--brand-3); text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 640px) {
	.lead__grid { grid-template-columns: 1fr 1fr; }
	.consult { padding: 26px; }
}

