/* ==========================================================================
   UseAppy: Main Hero widget
   Colours and fonts come from the theme tokens (style.css :root), with
   fallbacks so the widget also works on its own.
   ========================================================================== */

.useappy-hero {
	--useappy-hero-red: var(--useappy-red, #e7000b);
	--useappy-hero-muted: #b6bac3;
	--useappy-hero-align: left;
	--useappy-hero-justify: flex-start;

	position: relative;
	overflow: hidden;
	padding: 99px 0 80px;
	color: #fff;
	text-align: var(--useappy-hero-align);
	background:
		radial-gradient(
			28% 52% at 67% 30%,
			rgba(162, 8, 14, 0.2) 0%,
			rgba(162, 8, 14, 0.13) 40%,
			rgba(162, 8, 14, 0.035) 75%,
			rgba(162, 8, 14, 0) 100%
		),
		radial-gradient(
			49.5% 80% at 79.7% 72%,
			rgba(162, 8, 14, 0.42) 0%,
			rgba(162, 8, 14, 0.37) 20%,
			rgba(162, 8, 14, 0.265) 40%,
			rgba(162, 8, 14, 0.135) 60%,
			rgba(162, 8, 14, 0.042) 80%,
			rgba(162, 8, 14, 0) 100%
		),
		var(--useappy-dark, #0d0d0d);
}

.useappy-hero__content {
	display: flex;
	flex-direction: column;
	align-items: var(--useappy-hero-justify);
}

/* Badge */

.useappy-hero__badge {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 31px;
	padding: 13px 24px 11px;
	font-family: var(--useappy-font, inherit);
	font-size: 16px;
	font-weight: 500;
	line-height: 25px;
	color: var(--useappy-hero-red);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: rgba(231, 0, 11, 0.1);
	border-radius: 999px;
}

/* Heading */

.useappy-hero__title {
	max-width: 9.4em;
	margin: 0 0 26px;
	font-family: var(--useappy-heading-font, "Anton", Impact, sans-serif);
	font-size: 80px;
	font-weight: 400;
	line-height: 90px;
	color: #fff;
	letter-spacing: 0;
	word-spacing: 0.05em;
	overflow-wrap: break-word;
}

/* Theme primary colour (style.css :root --useappy-red). */
.useappy-hero__title-highlight {
	color: var(--useappy-red, #e7000b);
}

/* Description */

.useappy-hero__description {
	max-width: 720px;
	margin: 0;
	font-family: var(--useappy-font, inherit);
	font-size: var(--useappy-p-size, 20px);
	font-weight: 300;
	line-height: var(--useappy-p-lh, 1.5);
	color: var(--useappy-hero-muted);
}

/* Description set to a heading tag (h3-h6): white, at that heading size
   (style.css :root --useappy-h3-size ... --useappy-h6-size). */
.useappy-hero__description--heading {
	font-weight: 500;
	line-height: var(--useappy-h-lh, 1.3);
	color: #fff;
}

.useappy-hero__description--h3 {
	font-size: var(--useappy-h3-size, 36px);
}

.useappy-hero__description--h4 {
	font-size: var(--useappy-h4-size, 30px);
}

.useappy-hero__description--h5 {
	font-size: var(--useappy-h5-size, 26px);
}

.useappy-hero__description--h6 {
	font-size: var(--useappy-h6-size, 22px);
}

/* Buttons */

.useappy-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	justify-content: var(--useappy-hero-justify);
	margin-top: 62px;
}

.useappy-hero__btn {
	--useappy-hero-icon-size: 20px;

	display: inline-flex;
	align-items: center;
	height: 50px;
	font-family: var(--useappy-font, inherit);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.025em;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: 999px;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.useappy-hero__btn-icon {
	display: inline-grid;
	flex-shrink: 0;
	place-items: center;
	color: var(--useappy-hero-icon-color, currentColor);
	transition: transform 0.25s var(--useappy-ease, ease);
}

.useappy-hero__btn-icon svg,
.useappy-hero__btn-icon i {
	display: block;
	width: var(--useappy-hero-icon-size);
	height: var(--useappy-hero-icon-size);
	font-size: var(--useappy-hero-icon-size);
	line-height: 1;
	fill: currentColor;
}

.useappy-hero__btn:hover .useappy-hero__btn-icon,
.useappy-hero__btn:focus-visible .useappy-hero__btn-icon {
	transform: translateX(3px);
}

.useappy-hero__btn--primary {
	--useappy-hero-icon-color: var(--useappy-hero-red);
	--useappy-hero-icon-bg: #fff;

	gap: 17px;
	padding: 0 19px 0 20px;
	color: #fff;
	background-color: var(--useappy-hero-red);
}

.useappy-hero__btn--primary:hover,
.useappy-hero__btn--primary:focus-visible {
	color: #fff;
	background-color: var(--useappy-red-dark, #c10009);
}

.useappy-hero__btn--primary .useappy-hero__btn-icon {
	width: 32px;
	height: 32px;
	background: var(--useappy-hero-icon-bg);
	border-radius: 50%;
}

.useappy-hero__btn--primary .useappy-hero__btn-icon svg {
	width: calc(var(--useappy-hero-icon-size) * 0.8);
	height: calc(var(--useappy-hero-icon-size) * 0.8);
}

.useappy-hero__btn--secondary {
	--useappy-hero-icon-size: 22px;

	gap: 8px;
	padding: 0 20px 0 21px;
	color: #fff;
	background-color: transparent;
	border-color: #fff;
}

.useappy-hero__btn--secondary:hover,
.useappy-hero__btn--secondary:focus-visible {
	color: var(--useappy-dark, #0d0d0d);
	background-color: #fff;
	border-color: #fff;
}

.useappy-hero__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Image */

.useappy-hero__media {
	display: flex;
	justify-content: flex-end;
}

.useappy-hero__image {
	display: block;
	width: 100%;
	transform: translate(var(--useappy-hero-image-x, 0), var(--useappy-hero-image-y, 0));
}

.useappy-hero__image img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

/* Stats */

.useappy-hero__stats {
	--useappy-hero-stats-gap: 42px;
	--useappy-hero-divider: rgba(255, 255, 255, 0.2);

	/* Always one row; 792px puts the dividers at 167 / 376 / 584px from the left edge. */
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	max-width: 792px;
	margin: 72px 0 0;
	padding: 0;
	list-style: none;
}

/* Full width (below text and image): spread the items across the row. */
.useappy-hero__stats--full {
	max-width: none;
}

.useappy-hero__stat {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-width: 0;
	padding-left: var(--useappy-hero-stats-gap);
}

.useappy-hero__stat:first-child {
	padding-left: 0;
}

.useappy-hero__stats--dividers .useappy-hero__stat + .useappy-hero__stat::before {
	position: absolute;
	top: 10%;
	left: 0;
	display: block;
	width: 1px;
	height: 62%;
	content: "";
	background-color: var(--useappy-hero-divider, rgba(255, 255, 255, 0.2));
}

.useappy-hero__stat-number {
	margin-bottom: 8px;
	font-family: var(--useappy-font, inherit);
	font-size: 40px;
	font-weight: 600;
	line-height: 44px;
	color: #fff;
	letter-spacing: -0.02em;
}

.useappy-hero__stat-label {
	font-family: var(--useappy-font, inherit);
	font-size: 18px;
	font-weight: 400;
	line-height: 26px;
	color: var(--useappy-hero-muted);
}

/* Breakpoint rules (Bootstrap sm / md / lg / xl / xxl): themes/useappy/assets/css/responsive.css */

@media (prefers-reduced-motion: reduce) {
	.useappy-hero__btn,
	.useappy-hero__btn-icon {
		transition: none;
	}
}
