/* FixPin website: logo, and the home page's sections and effects. Uses the shared tokens, so it
   follows the light/dark theme. */

:root {
	--amber: #ffb224;
	--amber-soft: #fff1d1;
	--red: #e5484d;
	--deep: #1f1a4d;
}

/* ------------------------------------------------------------------ Type */

.fx-h2 {
	margin: 0 0 16px;
	font-size: clamp(32px, 4.6vw, 54px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.fx-big {
	color: var(--ink-2);
	font-size: 18px;
	line-height: 1.6;
}

.fx-eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fx-link {
	color: var(--accent);
	font-weight: 700;
	text-decoration: none;
}

.fx-link:hover {
	text-decoration: underline;
}

.fx-meta {
	margin-top: 18px;
	color: var(--muted);
	font-size: 14px;
}

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

.fx-hero {
	position: relative;
	display: flex;
	align-items: center;
	/* Full screen, under the sticky header. */
	min-height: calc(100vh - 69px);
	min-height: calc(100svh - 69px);
	padding: 56px 0 72px;
	overflow: hidden;
	background:
		radial-gradient(60% 70% at 85% 10%, rgba(122, 108, 240, 0.16), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgba(255, 178, 36, 0.14), transparent 70%),
		var(--bg);
}

.fx-hero__grid {
	position: relative;
	z-index: 1;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.95fr);
	align-items: center;
	gap: 48px;
}

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

.fx-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}

.fx-glow--a {
	top: -160px;
	right: 6%;
	width: 420px;
	height: 420px;
	background: rgba(122, 108, 240, 0.22);
}

.fx-glow--b {
	bottom: -180px;
	left: -60px;
	width: 380px;
	height: 380px;
	background: rgba(255, 178, 36, 0.22);
}

/* A soft spotlight follows the pointer. */
.fx-cone {
	position: absolute;
	inset: 0;
	background: radial-gradient(320px circle at var(--x, 72%) var(--y, 32%), rgba(255, 178, 36, 0.18), transparent 65%);
	pointer-events: none;
}

.fx-title {
	margin: 0;
	font-size: clamp(42px, 7vw, 86px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

@media (min-width: 901px) {
	.fx-title {
		font-size: clamp(42px, 4.3vw, 70px);
	}

	.fx-line {
		white-space: nowrap;
	}
}

.fx-line {
	display: block;
}

.fx-rotator {
	position: relative;
	display: inline-grid;
	justify-items: start;
	margin-right: 0.24em;
	color: var(--muted);
	vertical-align: bottom;
	transition: width 0.5s ease;
}

.fx-rotator__word {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(0.45em);
	filter: blur(6px);
	transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
	text-decoration: line-through;
	text-decoration-color: var(--red);
	text-decoration-thickness: 0.07em;
}

.fx-rotator__word.is-in {
	opacity: 1;
	transform: none;
	filter: none;
}

.fx-rotator__word.is-out {
	opacity: 0;
	transform: translateY(-0.45em);
	filter: blur(6px);
}

/* "Spotlight it.": an amber highlighter sweeps in behind the words. */
.fx-marker {
	position: relative;
	z-index: 0;
	color: var(--accent);
}

.fx-marker::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -0.08em;
	right: -0.08em;
	bottom: 0.06em;
	height: 0.42em;
	border-radius: 0.12em;
	background: var(--amber);
	opacity: 0.55;
	transform: scaleX(0);
	transform-origin: left;
	animation: fx-marker 1.1s 0.5s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

@keyframes fx-marker {
	to {
		transform: scaleX(1);
	}
}

.fx-lede {
	max-width: 560px;
	margin: 22px 0 0;
	color: var(--ink-2);
	font-size: 19px;
	line-height: 1.6;
}

.fx-hero .cta-row {
	justify-content: flex-start;
	margin-top: 28px;
}

.fx-hero__visual {
	position: relative;
}

/* The browser illustration */
.fx-browser {
	width: 100%;
	filter: drop-shadow(0 30px 50px rgba(27, 45, 115, 0.22));
}

.b-window {
	fill: var(--surface);
}

.b-bar {
	fill: #ece9f8;
}

.b-dot {
	fill: #c9c5dc;
}

.b-spot-btn {
	fill: #2f5bd8;
	animation: b-spotbtn 6s ease-in-out infinite;
}

.b-spot-text {
	fill: #fff;
	font: 700 11px var(--font);
}

.b-ink {
	fill: #26214f;
}

.b-line {
	fill: var(--line);
}

.b-card {
	fill: var(--surface);
	stroke: var(--line);
	stroke-width: 2;
}

.b-btn {
	fill: #b7b0e6;
}

.b-btn--broken {
	fill: #f3a5a8;
}

.b-beam {
	fill: var(--amber);
	opacity: 0;
	animation: b-beam 6s ease-in-out infinite;
}

.b-mark {
	fill: rgba(229, 72, 77, 0.08);
	stroke: var(--red);
	stroke-width: 3;
	stroke-dasharray: 6 5;
	opacity: 0;
	animation: b-mark 6s ease-in-out infinite;
}

.b-num {
	fill: var(--red);
	opacity: 0;
	animation: b-mark 6s ease-in-out infinite;
}

.b-num-text {
	fill: #fff;
	font: 800 12px var(--font);
	opacity: 0;
	animation: b-mark 6s ease-in-out infinite;
}

.b-note {
	opacity: 0;
	animation: b-note 6s ease-in-out infinite;
}

.b-note-bg {
	fill: var(--deep);
}

.b-note-text {
	fill: #fff;
	font: 600 12px var(--font);
}

@keyframes b-spotbtn {
	0%,
	8%,
	22%,
	100% {
		fill: #2f5bd8;
	}

	12%,
	18% {
		fill: #ffb224;
	}
}

@keyframes b-beam {
	0%,
	20% {
		opacity: 0;
	}

	32%,
	86% {
		opacity: 0.25;
	}

	96%,
	100% {
		opacity: 0;
	}
}

@keyframes b-mark {
	0%,
	34% {
		opacity: 0;
	}

	42%,
	88% {
		opacity: 1;
	}

	96%,
	100% {
		opacity: 0;
	}
}

@keyframes b-note {
	0%,
	48% {
		opacity: 0;
		transform: translateY(8px);
	}

	56%,
	88% {
		opacity: 1;
		transform: none;
	}

	96%,
	100% {
		opacity: 0;
	}
}

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

/* Hand-drawn WordPress trouble on several depth planes (assets/hero-scene.js). */
.fx-scene,
.fx-scene canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* The Lights switch is the site's theme switch. */
.fx-lights {
	position: absolute;
	z-index: 2;
	top: 20px;
	right: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 7px 7px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 82%, transparent);
	color: var(--ink);
	font: 700 12px/1 var(--font);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow);
	transition: border-color 0.3s;
}

.fx-lights:hover {
	border-color: var(--accent-line);
}

.fx-lights:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.fx-lights__track {
	position: relative;
	width: 52px;
	height: 30px;
	border-radius: 999px;
	background: #3a3a3e;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
	transition: background 0.3s;
}

.fx-lights__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e9e7e1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.3s;
}

.fx-lights[aria-checked="true"] .fx-lights__track {
	background: var(--accent);
}

.fx-lights[aria-checked="true"] .fx-lights__knob {
	background: #fff;
	transform: translateX(22px);
}

/* In the dark, a slow amber pulse invites a click. */
.fx-lights[aria-checked="false"] .fx-lights__track {
	animation: fx-lights 2.4s ease-in-out infinite;
}

@keyframes fx-lights {
	50% {
		box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(255, 178, 36, 0.3);
	}
}

.fx-scene-hint {
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: 20px;
	margin: 0;
	color: var(--muted);
	font: 12px/1.4 var(--mono);
	letter-spacing: 0.06em;
	text-align: center;
	transform: translateX(-50%);
	transition: opacity 0.5s;
	pointer-events: none;
}

:root[data-theme="light"] .fx-scene-hint {
	opacity: 0;
}

@media (max-width: 700px) {
	.fx-lights {
		top: 14px;
		right: 16px;
		padding: 5px 5px 5px 12px;
	}

	.fx-scene-hint {
		width: calc(100% - 32px);
	}
}

.fx-title {
	margin: 0;
	font-size: clamp(42px, 7vw, 86px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

@media (min-width: 901px) {
	.fx-title {
		font-size: clamp(42px, 4.3vw, 70px);
	}

	.fx-line {
		white-space: nowrap;
	}
}

.fx-line {
	display: block;
}

.fx-rotator {
	position: relative;
	display: inline-grid;
	justify-items: start;
	margin-right: 0.24em;
	color: var(--muted);
	vertical-align: bottom;
	transition: width 0.5s ease;
}

.fx-rotator__word {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(0.45em);
	filter: blur(6px);
	transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
	text-decoration: line-through;
	text-decoration-color: var(--red);
	text-decoration-thickness: 0.07em;
}

.fx-rotator__word.is-in {
	opacity: 1;
	transform: none;
	filter: none;
}

.fx-rotator__word.is-out {
	opacity: 0;
	transform: translateY(-0.45em);
	filter: blur(6px);
}

/* "Spotlight it.": an amber highlighter sweeps in behind the words. */
.fx-marker {
	position: relative;
	z-index: 0;
	color: var(--accent);
}

.fx-marker::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -0.08em;
	right: -0.08em;
	bottom: 0.06em;
	height: 0.42em;
	border-radius: 0.12em;
	background: var(--amber);
	opacity: 0.55;
	transform: scaleX(0);
	transform-origin: left;
	animation: fx-marker 1.1s 0.5s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

@keyframes fx-marker {
	to {
		transform: scaleX(1);
	}
}

.fx-lede {
	max-width: 560px;
	margin: 22px 0 0;
	color: var(--ink-2);
	font-size: 19px;
	line-height: 1.6;
}

.fx-hero .cta-row {
	justify-content: flex-start;
	margin-top: 28px;
}

/* Lights out (dark theme): the scene plays, text is white, the illustration waits in the dark. */
/* Switching the lights fades the whole hero over 1.5s, both ways. The darkness is a layer
   over the light background, so it can fade (gradients can't). */
.fx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #080808;
	opacity: 0;
	transition: opacity 1.5s ease;
	pointer-events: none;
}

:root[data-theme="dark"] .fx-hero::before {
	opacity: 1;
}

.fx-glow,
.fx-cone,
.fx-hero__visual {
	transition: opacity 1.5s ease, filter 1.5s ease, visibility 0s;
}

:root[data-theme="dark"] .fx-glow,
:root[data-theme="dark"] .fx-cone,
:root[data-theme="dark"] .fx-hero__visual {
	opacity: 0;
	visibility: hidden;
	filter: blur(10px);
	transition: opacity 1.5s ease, filter 1.5s ease, visibility 0s 1.5s;
}

/* Text colours fade only while the lights are switching (is-fading is set for 1.5s by hero-scene.js),
   so hover effects stay quick the rest of the time. */
.fx-hero.is-fading .fx-eyebrow,
.fx-hero.is-fading .fx-title,
.fx-hero.is-fading .fx-marker,
.fx-hero.is-fading .fx-marker::before,
.fx-hero.is-fading .fx-lede,
.fx-hero.is-fading .fx-meta,
.fx-hero.is-fading .fx-lights {
	transition: color 1.5s ease, background-color 1.5s ease, border-color 1.5s ease, opacity 1.5s ease;
}

.fx-hero.is-fading .fx-rotator {
	transition: width 0.5s ease, color 1.5s ease;
}

.fx-hero.is-fading .fx-rotator__word {
	transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease, color 1.5s ease, text-decoration-color 1.5s ease;
}

.fx-hero.is-fading .btn {
	transition: color 1.5s ease, background-color 1.5s ease, border-color 1.5s ease;
}

.fx-hero__text::before {
	transition: opacity 1.5s ease;
}

.fx-hero__text {
	position: relative;
}

/* A soft pool of darkness under the text keeps it readable over the drawings. */
.fx-hero__text::before {
	opacity: 0;
}

:root[data-theme="dark"] .fx-hero__text::before {
	opacity: 1;
}

.fx-hero__text::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -90px -140px;
	background: radial-gradient(closest-side, rgba(8, 8, 8, 0.92), rgba(8, 8, 8, 0.75) 55%, transparent);
	pointer-events: none;
}

:root[data-theme="dark"] .fx-hero .fx-eyebrow {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

:root[data-theme="dark"] .fx-hero .fx-title,
:root[data-theme="dark"] .fx-hero .fx-marker,
:root[data-theme="dark"] .fx-hero .fx-lede,
:root[data-theme="dark"] .fx-hero .fx-meta,
:root[data-theme="dark"] .fx-hero .fx-scene-hint,
:root[data-theme="dark"] .fx-hero .fx-lights {
	color: #fff;
}

/* The crossed-out word is the one exception: bright yellow, line and all. */
:root[data-theme="dark"] .fx-hero .fx-rotator {
	color: #ffd43b;
}

:root[data-theme="dark"] .fx-hero .fx-rotator__word {
	text-decoration-color: #ffd43b;
}

:root[data-theme="dark"] .fx-hero .fx-marker::before {
	opacity: 0.3;
}

:root[data-theme="dark"] .fx-hero .btn-primary {
	background: #2f5bd8;
	color: #fff;
}

:root[data-theme="dark"] .fx-hero .btn-ghost {
	border-color: rgba(255, 255, 255, 0.45);
	background: transparent;
	color: #fff;
}

/* Lights on: the drawings fade away and the illustration slowly fades back in. */
.fx-scene {
	transition: opacity 1.5s ease;
}

:root[data-theme="light"] .fx-scene {
	opacity: 0;
}


/* A dotted, playful arrow points at the Lights switch while the lights are out. */
.fx-arrow {
	position: absolute;
	z-index: 2;
	top: 44px;
	right: 168px;
	width: 230px;
	overflow: visible;
	color: #fff;
	pointer-events: none;
	transform-origin: 70% 0;
}

/* Lights off: the arrow drops in from under the menu like a cartoon, bounces, then bobs. */
:root[data-theme="dark"] .fx-arrow {
	animation: fx-arrow-drop 1s 0.5s cubic-bezier(0.3, 0, 0.4, 1) both, fx-arrow-bob 2.6s 1.6s ease-in-out infinite;
}

@keyframes fx-arrow-drop {
	0% {
		transform: translateY(-190px) rotate(-10deg) scaleY(1.15);
	}

	55% {
		transform: translateY(12px) rotate(3deg) scale(1.08, 0.86);
	}

	72% {
		transform: translateY(-14px) rotate(-2deg) scale(0.97, 1.04);
	}

	86% {
		transform: translateY(4px) rotate(1deg) scale(1.02, 0.97);
	}

	100% {
		transform: none;
	}
}

.fx-arrow__line,
.fx-arrow__head {
	fill: none;
	stroke: currentColor;
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fx-arrow__line {
	stroke-dasharray: 0.5 10;
	animation: fx-arrow-march 1.2s linear infinite;
}

.fx-arrow__text {
	fill: currentColor;
	font: 700 21px "Comic Sans MS", "Chalkboard SE", "Marker Felt", "Segoe Print", cursive;
}

@keyframes fx-arrow-march {
	to {
		stroke-dashoffset: -21;
	}
}

@keyframes fx-arrow-bob {
	50% {
		transform: translate(5px, -4px) rotate(-2deg);
	}
}

.fx-arrow,
.fx-scene-hint {
	transition: opacity 1.5s ease;
}

:root[data-theme="light"] .fx-arrow {
	opacity: 0;
}

@media (max-width: 700px) {
	.fx-arrow {
		top: 34px;
		right: 136px;
		width: 160px;
	}
}

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

/* Screenshots on the home page (zoom on click, from site.js). */
.fx-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.fx-gallery .shot img {
	cursor: zoom-in;
}

.fx-gallery__more {
	margin: 36px 0 0;
	text-align: center;
}

@media (max-width: 760px) {
	.fx-gallery {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}


.fx-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 56px;
}

@media (max-width: 900px) {
	.fx-two {
		grid-template-columns: 1fr;
	}
}

.fx-lost,
.fx-section {
	padding: 110px 0;
}

.fx-head {
	max-width: 720px;
	margin-bottom: 44px;
}

/* Lost in translation: the chat */
.fx-chat {
	display: grid;
	gap: 10px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
}

.fx-msg {
	display: flex;
	opacity: 0;
	transform: translateY(14px) scale(0.98);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.fx-chat.is-on .fx-msg {
	opacity: 1;
	transform: none;
}

.fx-msg span {
	max-width: 80%;
	padding: 10px 15px;
	border-radius: 18px;
	font-size: 15px;
}

.fx-msg.is-them span {
	border-bottom-left-radius: 6px;
	background: var(--bg-2);
	color: var(--ink);
}

.fx-msg.is-us {
	justify-content: flex-end;
}

.fx-msg.is-us span {
	border-bottom-right-radius: 6px;
	background: #2f5bd8;
	color: #fff;
}

.fx-msg.is-late span {
	background: var(--bad-soft);
	color: var(--bad);
	font-style: italic;
}

.fx-fix {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 10px;
	padding: 16px;
	border-radius: 16px;
	background: var(--amber-soft);
	color: #2a2410;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.fx-chat.is-on .fx-fix {
	opacity: 1;
	transform: none;
}

.fx-fix strong {
	display: block;
}

.fx-fix span {
	font-size: 14px;
	opacity: 0.8;
}

/* How it works: pinned, scrolls sideways */
.fx-how {
	position: relative;
	height: 380vh;
	background: var(--bg-2);
}

.fx-how__sticky {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100vh;
	overflow: hidden;
}

.fx-progress {
	height: 4px;
	margin-top: 8px;
	border-radius: 2px;
	background: var(--line);
	overflow: hidden;
}

.fx-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #2f5bd8, var(--amber));
	transform: scaleX(var(--p, 0));
	transform-origin: left;
}

.fx-track {
	display: flex;
	gap: 26px;
	padding: 34px max(24px, calc((100% - 1120px) / 2));
	will-change: transform;
}

.fx-panel {
	position: relative;
	flex: 0 0 min(410px, 78vw);
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.fx-panel h3 {
	margin: 0 0 8px;
	font-size: 21px;
}

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

.fx-panel__num {
	position: absolute;
	top: 14px;
	right: 22px;
	color: var(--accent-soft);
	font-size: 84px;
	font-weight: 800;
	line-height: 1;
}

.fx-panel__art {
	margin-bottom: 18px;
	padding: 14px;
	border-radius: 18px;
	background: var(--bg);
}

.a-paper {
	fill: var(--surface);
	stroke: var(--line);
	stroke-width: 2;
}

.a-ink {
	fill: #26214f;
}

.a-line {
	fill: var(--line);
}

.a-mark {
	fill: rgba(229, 72, 77, 0.1);
	stroke: var(--red);
	stroke-width: 3;
	stroke-dasharray: 6 5;
}

.a-beam {
	fill: var(--amber);
	opacity: 0.28;
}

.a-indigo {
	fill: #2f5bd8;
}

.a-amber {
	fill: var(--amber);
}

.a-amber-soft {
	fill: #ffe3a8;
}

.a-ring-bg {
	stroke: var(--accent-soft);
	stroke-width: 12;
}

.a-ring {
	stroke: var(--amber);
	stroke-width: 12;
	stroke-linecap: round;
	stroke-dasharray: 276;
	stroke-dashoffset: 90;
}

.a-big {
	fill: var(--ink);
	font: 800 24px var(--font);
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
	.fx-how {
		height: auto;
		padding: 90px 0;
	}

	.fx-how__sticky {
		position: static;
		height: auto;
	}

	.fx-progress {
		display: none;
	}

	.fx-track {
		flex-direction: column;
		transform: none !important;
	}

	.fx-panel {
		flex: none;
	}
}

/* Parallax band */
.fx-band {
	padding: 56px 0;
	overflow: hidden;
	border-block: 1px solid var(--line);
	background: var(--surface);
}

.fx-band__row {
	margin: 0;
	color: var(--ink);
	font-size: clamp(40px, 7vw, 92px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.035em;
	white-space: nowrap;
	will-change: transform;
}

.fx-band__row--outline {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--accent);
}

/* Features */
.fx-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 900px) {
	.fx-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

.fx-card {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.fx-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
}

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

.fx-card__icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 22px;
}

/* For support teams */
.fx-support {
	padding: 110px 0;
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(122, 108, 240, 0.14), transparent 70%),
		var(--bg-2);
}

.fx-ticks {
	margin: 22px 0;
	padding: 0;
	list-style: none;
}

.fx-ticks li {
	position: relative;
	margin: 12px 0;
	padding-left: 32px;
	color: var(--ink-2);
}

.fx-ticks li::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3.5 3.5L15 7' fill='none' stroke='%231f1a4d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.fx-tabs {
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.fx-tabs__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 14px;
	background: var(--bg-2);
	font-size: 13px;
	font-weight: 700;
}

.fx-tabs__bar span {
	padding: 6px 12px;
	border-radius: 9px;
	color: var(--muted);
}

.fx-tabs__bar .is-on {
	background: var(--surface);
	color: var(--ink);
}

.fx-tabs__body {
	display: grid;
	gap: 12px;
	padding: 20px;
}

.fx-tabs__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.fx-tabs__row em {
	margin-left: auto;
	padding: 4px 12px;
	border: 1px solid var(--line-2);
	border-radius: 9px;
	color: var(--accent);
	font-style: normal;
	font-weight: 700;
	font-size: 13px;
}

.fx-dot {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--red);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

.fx-tabs pre {
	margin: 4px 0 0;
	padding: 14px;
	border-radius: 12px;
	background: var(--code);
	color: var(--ink-2);
	font: 12px/1.6 var(--mono);
	white-space: pre-wrap;
}

/* Security */
.fx-sec {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
	.fx-sec {
		grid-template-columns: 1fr;
	}
}

.fx-sec > div {
	padding: 26px 28px 26px 0;
	border-bottom: 1px solid var(--line);
}

.fx-sec h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 18px;
}

.fx-sec h3::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 0 5px rgba(255, 178, 36, 0.22);
}

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

/* Story */
.fx-story {
	padding: 110px 0;
	background: var(--surface);
	border-top: 1px solid var(--line);
}

.fx-story__inner {
	max-width: 740px;
	text-align: center;
}


/* Call to action */
.fx-cta {
	position: relative;
	padding: 120px 0;
	overflow: hidden;
	background:
		radial-gradient(70% 90% at 50% 0%, rgba(255, 178, 36, 0.2), transparent 70%),
		radial-gradient(60% 80% at 100% 100%, rgba(122, 108, 240, 0.18), transparent 70%),
		var(--bg-2);
	text-align: center;
}

.fx-cta__cone {
	position: absolute;
	top: -40%;
	left: 50%;
	width: 900px;
	height: 900px;
	background: conic-gradient(from 160deg at 50% 0, transparent 0deg, rgba(255, 178, 36, 0.2) 20deg, transparent 40deg);
	transform: translateX(-50%);
	animation: fx-cone 9s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes fx-cone {
	from {
		transform: translateX(-50%) rotate(-12deg);
	}

	to {
		transform: translateX(-50%) rotate(12deg);
	}
}

.fx-cta__inner {
	position: relative;
}

/* ------------------------------------------------------------------ Reveal on scroll */

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

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

@media (prefers-reduced-motion: reduce) {
	.fx-hero *,
	.fx-cta *,
	.fx-cta__cone,
	.fx-browser * {
		animation: none !important;
	}

	.reveal,
	.fx-msg,
	.fx-fix {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.b-beam {
		opacity: 0.25;
	}

	.b-mark,
	.b-num,
	.b-num-text,
	.b-note {
		opacity: 1;
	}

	.fx-marker::before {
		transform: none;
	}

	.fx-rotator__word {
		display: none;
	}

	.fx-rotator__word:first-child {
		display: inline;
		opacity: 1;
		transform: none;
		filter: none;
	}
}

/* ------------------------------------------------------------------ Live demo page */

.fx-section--alt {
	background: var(--bg-2);
}

.fx-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fx-step-card {
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.fx-step-card h3 {
	margin: 12px 0 8px;
	font-size: 19px;
}

.fx-step-card p {
	margin: 0;
	color: var(--muted);
}

.fx-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 12.5px;
	font-weight: 700;
}

/* The name, in place of a logo. */
.brand {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.03em;
}
