/*
Theme Name: Showlixfy
Theme URI: https://showlixfy.com
Author: Showlixfy
Description: Website for Showlixfy, the 3D product carousel app for Shopify. Landing page with a live spinning ring demo, plus Privacy Policy, Terms and Support pages created on activation. Settings live in Appearance > Customize.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: showlixfy
*/

:root {
	--sx-bg: #F7F6FD;
	--sx-surface: #FFFFFF;
	--sx-ink: #070633;
	--sx-muted: #55577A;
	--sx-line: rgba(7, 6, 51, .11);
	--sx-plum: #4A0CE0;
	--sx-plum-2: #3A08B8;
	--sx-magenta: #D102C8;
	--sx-grad: linear-gradient(115deg, #4208DB 0%, #8204FC 52%, #D102C8 100%);
	--sx-grad-deep: linear-gradient(120deg, #22058F 0%, #5A06D9 52%, #B402B6 100%);
	--sx-radius: 20px;
	--sx-display: 'Poppins', system-ui, sans-serif;
	--sx-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
::selection { background: rgba(130, 4, 252, .18); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--sx-bg);
	color: var(--sx-ink);
	font-family: var(--sx-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sx-plum); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.sx-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sx-ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.sx-skip:focus { top: 12px; }

.sx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .sx-wrap { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.sx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px; border-radius: 999px;
	background: var(--sx-grad); background-size: 160% 100%; background-position: 0 0;
	color: #fff; border: 1px solid transparent;
	font: 600 16px/1 var(--sx-body); text-decoration: none; cursor: pointer;
	box-shadow: 0 8px 22px -10px rgba(98, 8, 230, .55);
	transition: background-position .35s ease, transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.sx-btn:hover { background-position: 100% 0; box-shadow: 0 10px 26px -10px rgba(170, 4, 210, .6); }
.sx-btn:active { transform: scale(.98); }
.sx-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.sx-btn--ghost { background: transparent; color: var(--sx-ink); border-color: rgba(7, 6, 51, .18); box-shadow: none; }
.sx-btn--ghost:hover { background: var(--sx-surface); border-color: transparent; box-shadow: none; }
.sx-btn--light { background: #fff; color: var(--sx-plum); box-shadow: 0 10px 28px -12px rgba(7, 6, 51, .45); }
.sx-btn--light:hover { background: #F4EEFF; }

/* ---------- Header ---------- */
.sx-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 246, 253, .84);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease;
}
.sx-header.is-scrolled { border-bottom-color: var(--sx-line); }
.sx-header__in { display: flex; align-items: center; gap: 28px; height: 68px; }

.sx-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--sx-ink); }
.sx-logo__mark { width: auto; height: 34px; flex: none; }
.sx-wordmark { font: 700 22px/1 var(--sx-display); letter-spacing: -.02em; color: var(--sx-ink); }
.sx-wordmark span { font-style: italic; padding-right: .06em; background: var(--sx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sx-nav { display: flex; gap: 28px; margin-left: auto; }
.sx-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--sx-muted); transition: color .2s; }
.sx-nav a:hover { color: var(--sx-ink); }

.sx-menu { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 0; cursor: pointer; place-content: center; gap: 6px; }
.sx-menu span:not(.screen-reader-text) { display: block; width: 22px; height: 2px; background: var(--sx-ink); border-radius: 2px; transition: transform .25s ease; }
.sx-header.is-open .sx-menu span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.sx-header.is-open .sx-menu span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899px) {
	.sx-header__in { gap: 12px; }
	.sx-header__cta { margin-left: auto; }
	.sx-menu { display: inline-grid; }
	.sx-nav {
		display: none; position: absolute; top: 68px; left: 0; right: 0;
		flex-direction: column; gap: 0; margin: 0; padding: 4px 20px 20px;
		background: var(--sx-bg); border-bottom: 1px solid var(--sx-line);
	}
	.sx-header.is-open .sx-nav { display: flex; }
	.sx-nav a { padding: 15px 0; font-size: 17px; color: var(--sx-ink); border-bottom: 1px solid var(--sx-line); }
	.sx-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 459px) { .sx-header__cta { display: none; } .sx-menu { margin-left: auto; } }

/* ---------- Hero ---------- */
.sx-hero { position: relative; padding-top: clamp(48px, 8vw, 100px); overflow: hidden; }
.sx-hero::before {
	content: ""; position: absolute; left: 50%; top: 38%; width: min(1100px, 130%); height: 70%;
	transform: translateX(-50%); pointer-events: none;
	background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), radial-gradient(40% 40% at 50% 62%, rgba(130, 4, 252, .07), rgba(130, 4, 252, 0) 70%);
}
.sx-hero__text { position: relative; z-index: 2; text-align: center; }
.sx-hero__title {
	font: 700 clamp(42px, 7.6vw, 100px)/1 var(--sx-display);
	letter-spacing: -.045em; margin: 0 auto; max-width: 13ch;
	text-wrap: balance;
}
.sx-hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--sx-muted); max-width: 40ch; margin: 24px auto 0; text-wrap: pretty; }
.sx-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- Demo ring ---------- */
.sx-ring {
	position: relative; z-index: 1; height: clamp(380px, 54vw, 600px); margin-top: clamp(0px, 1vw, 12px);
	touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none;
}
.sx-ring.is-drag { cursor: grabbing; }
.sx-ring:focus-visible { box-shadow: inset 0 0 0 2px var(--sx-plum); border-radius: 12px; }
.sx-ring__floor {
	position: absolute; left: 50%; bottom: 3%; width: min(1000px, 92%); height: 16%; transform: translateX(-50%);
	background: radial-gradient(50% 50% at 50% 50%, rgba(40, 8, 120, .17), rgba(40, 8, 120, 0) 70%);
	pointer-events: none;
}
.sx-ring__item {
	position: absolute; left: 50%; bottom: 7%; width: var(--sx-w, 240px); aspect-ratio: 3 / 4;
	transform-origin: 50% 100%; will-change: transform, opacity;
}
.sx-ring.is-photos .sx-ring__item { mix-blend-mode: multiply; }
.sx-ring.is-art .sx-ring__item::after {
	-webkit-mask: var(--sx-src) center bottom / contain no-repeat;
	mask: var(--sx-src) center bottom / contain no-repeat;
}
.sx-ring__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; -webkit-user-drag: none; }
.sx-ring__item::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(110deg, rgba(255,255,255,0) 46%, rgba(255,255,255,.45) 49.5%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.45) 50.5%, rgba(255,255,255,0) 54%) no-repeat;
	background-size: 300% 100%; background-position: 120% 0;
	animation: sx-glint 6s ease-in-out infinite;
}
.sx-ring__item:nth-child(odd)::after { animation-delay: -3s; }
@keyframes sx-glint { 0%, 70% { background-position: 120% 0; } 95%, 100% { background-position: -20% 0; } }
.sx-ring__hint { position: relative; z-index: 2; text-align: center; margin: 0; padding: 4px 0 clamp(44px, 6vw, 72px); font-size: 14px; color: var(--sx-muted); }

/* ---------- Facts strip ---------- */
.sx-facts { border-top: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line); }
.sx-facts__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding-top: 22px; padding-bottom: 22px; }
.sx-facts p { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 500; }
.sx-facts svg { color: var(--sx-plum); width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.sx-section { padding: clamp(72px, 10vw, 128px) 0; }
.sx-section--alt { background: var(--sx-surface); }
.sx-section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.sx-section__head h2 { font: 700 clamp(32px, 4.6vw, 54px)/1.05 var(--sx-display); letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.sx-section__head p { font-size: 18px; color: var(--sx-muted); margin: 16px 0 0; max-width: 46ch; }
.sx-section__head a { color: var(--sx-plum); font-weight: 500; }

/* Features */
.sx-features { display: grid; grid-template-columns: 1fr; gap: 40px 44px; }
@media (min-width: 700px) { .sx-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sx-features { grid-template-columns: repeat(3, 1fr); } }
.sx-feature { padding-top: 26px; border-top: 1px solid var(--sx-line); }
.sx-feature__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: var(--sx-surface); color: var(--sx-plum); }
.sx-feature h3 { font: 600 19px/1.3 var(--sx-body); letter-spacing: -.01em; margin: 0 0 8px; }
.sx-feature p { margin: 0; font-size: 16px; color: var(--sx-muted); }

/* Steps */
.sx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .sx-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sx-step { background: var(--sx-bg); border-radius: var(--sx-radius); padding: 30px 28px 34px; }
.sx-step__num { display: inline-block; margin-bottom: 30px; font: 700 64px/1 var(--sx-display); letter-spacing: -.04em; background: var(--sx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-step h3 { font: 600 20px/1.3 var(--sx-body); margin: 0 0 8px; }
.sx-step p { margin: 0; color: var(--sx-muted); font-size: 16px; }

/* Pricing */
.sx-plans { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 880px; }
@media (min-width: 760px) { .sx-plans { grid-template-columns: repeat(2, 1fr); } }
.sx-plan { display: flex; flex-direction: column; background: var(--sx-surface); border-radius: var(--sx-radius); padding: 34px 32px 32px; }
.sx-plan--featured { background: var(--sx-grad); color: #fff; box-shadow: 0 24px 50px -24px rgba(98, 8, 230, .6); }
.sx-plan__name { font: 600 17px/1.2 var(--sx-body); margin: 0; }
.sx-plan__price { font: 700 52px/1 var(--sx-display); letter-spacing: -.04em; margin: 20px 0 6px; }
.sx-plan__note { font-size: 15px; margin: 0 0 26px; opacity: .7; }
.sx-plan ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.sx-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.sx-plan li svg { flex: none; width: 20px; height: 20px; color: var(--sx-plum); }
.sx-plan--featured li svg { color: #fff; }
.sx-plan .sx-btn { margin-top: auto; }
.sx-pricing-note { margin: 24px 0 0; font-size: 15px; color: var(--sx-muted); }

/* FAQ */
.sx-split { display: grid; gap: 8px; }
@media (min-width: 960px) { .sx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; } }
.sx-faq details { border-bottom: 1px solid var(--sx-line); }
.sx-faq details:first-child { border-top: 1px solid var(--sx-line); }
.sx-faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 22px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after {
	content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg); transition: transform .25s ease;
}
.sx-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.sx-faq details p { margin: 0 0 24px; max-width: 62ch; color: var(--sx-muted); }

/* Final CTA */
.sx-cta { position: relative; overflow: hidden; background: var(--sx-grad-deep); color: #fff; text-align: center; padding: clamp(80px, 11vw, 136px) 0; }
.sx-cta::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 150%); aspect-ratio: 4 / 1;
	transform: translate(-50%, -30%) rotate(-8deg); border: 2px solid rgba(255, 255, 255, .18); border-radius: 50%; pointer-events: none;
}
.sx-cta .sx-wrap { position: relative; }
.sx-cta h2 { font: 700 clamp(36px, 6vw, 76px)/1.02 var(--sx-display); letter-spacing: -.04em; margin: 0 auto 32px; max-width: 13ch; text-wrap: balance; }

/* Footer */
.sx-footer { padding: 56px 0 36px; font-size: 15px; }
.sx-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px; }
.sx-footer__tag { margin: 12px 0 0; color: var(--sx-muted); }
.sx-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.sx-footer__links a { text-decoration: none; color: var(--sx-muted); }
.sx-footer__links a:hover { color: var(--sx-ink); }
.sx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--sx-line); color: var(--sx-muted); }
.sx-footer__bottom p { margin: 0; }
.sx-footer__bottom a { text-decoration: none; }

/* ---------- Pages (Privacy, Terms, Support) ---------- */
.sx-page__head { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(20px, 3vw, 36px); }
.sx-page__title { font: 700 clamp(38px, 5.6vw, 68px)/1.05 var(--sx-display); letter-spacing: -.045em; margin: 0; max-width: 18ch; text-wrap: balance; }
.sx-prose { max-width: 720px; padding-bottom: clamp(72px, 10vw, 120px); color: #2E3052; }
.sx-prose h2 { font: 700 25px/1.25 var(--sx-display); letter-spacing: -.02em; color: var(--sx-ink); margin: 48px 0 12px; }
.sx-prose h3 { font: 600 20px/1.3 var(--sx-body); color: var(--sx-ink); margin: 32px 0 8px; }
.sx-prose p { margin: 0 0 16px; }
.sx-prose ul, .sx-prose ol { margin: 0 0 16px; padding-left: 22px; }
.sx-prose li { margin-bottom: 6px; }
.sx-prose a:not(.sx-btn) { color: var(--sx-plum); }
.sx-prose em { color: var(--sx-muted); }
.sx-post { padding: 28px 0; border-bottom: 1px solid var(--sx-line); }
.sx-post h2 { margin-top: 0; }
.sx-post h2 a { text-decoration: none; color: var(--sx-ink); }

/* Contact form */
.sx-form { display: grid; gap: 18px; margin: 28px 0 8px; padding: 28px; background: var(--sx-surface); border-radius: var(--sx-radius); }
.sx-form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .sx-form__row { grid-template-columns: 1fr 1fr; } }
.sx-form label { display: grid; gap: 7px; font-size: 15px; font-weight: 500; color: var(--sx-ink); }
.sx-form__opt { color: var(--sx-muted); font-weight: 400; }
.sx-form input, .sx-form textarea {
	width: 100%; font: 400 16px/1.4 var(--sx-body); color: var(--sx-ink);
	padding: 13px 14px; border: 1px solid rgba(7, 6, 51, .16); border-radius: 12px; background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.sx-form input:focus, .sx-form textarea:focus { outline: none; border-color: var(--sx-plum); box-shadow: 0 0 0 3px rgba(98, 8, 230, .15); }
.sx-form textarea { resize: vertical; min-height: 140px; }
.sx-form .sx-btn { justify-self: start; }
.sx-form__hp { position: absolute !important; left: -9999px !important; }
.sx-notice { padding: 14px 18px; border-radius: 12px; font-weight: 500; margin: 20px 0 0; }
.sx-notice--ok { background: #E2F0E5; color: #1D4F2C; }
.sx-notice--err { background: #F7E1E1; color: #7A1F1F; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sx-ring__item::after { animation: none; display: none; }
	.sx-btn, .sx-faq summary::after { transition: none; }
}
