/* ==========================================================================
   UseAppy: Feature Section widget
   ========================================================================== */

.useappy-fsec {
	--useappy-fsec-red: var(--useappy-red, #e7000b);
	--useappy-fsec-icon-color: var(--useappy-fsec-red);
	--useappy-fsec-icon-bg: #fff;
	--useappy-fsec-media-col: 1fr;
	--useappy-fsec-text-inset: 107px;

	padding: 122px 0;
	color: #fff;
	background: #0d0d0d;
}

.useappy-fsec--light {
	color: #1e1e1e;
	background: #fff;
}

/* Dark theme: the Main Hero's red glow behind the media column (mirrored when
   the media is on the left) instead of flat black. :where() keeps this as light
   as the base rule, so a Style > Section background still replaces it. */
.useappy-fsec:where(:not(.useappy-fsec--light)) {
	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-fsec:where(.useappy-fsec--media-left:not(.useappy-fsec--light)) {
	background:
		radial-gradient(28% 52% at 33% 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 20.3% 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-fsec--mosaic {
	--useappy-fsec-media-col: min(827px, 48%);
}

.useappy-fsec--phones {
	--useappy-fsec-media-col: min(985px, 54%);
}

/* Grid: text + media */

.useappy-fsec__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--useappy-fsec-media-col));
	column-gap: 60px;
	align-items: center;
}

.useappy-fsec--media-left .useappy-fsec__grid {
	grid-template-columns: minmax(0, var(--useappy-fsec-media-col)) minmax(0, 1fr);
}

.useappy-fsec--media-left .useappy-fsec__media {
	order: -1;
	justify-self: start;
}

.useappy-fsec--media-left .useappy-fsec__content {
	padding-inline-start: var(--useappy-fsec-text-inset);
}

/* Eyebrow */

.useappy-fsec__eyebrow {
	margin: 0;
	font-family: var(--useappy-font, inherit);
}

.useappy-fsec__eyebrow--pill {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 15px;
	margin-bottom: 28px;
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	color: #c0000b; /* Deeper red: brand red on the pink badge is only 3.4:1; this is 4.6:1 (WCAG AA). */
	background: rgba(231, 0, 11, 0.18);
	border: 1px solid rgba(231, 0, 11, 0.18);
	border-radius: 999px;
}

.useappy-fsec__eyebrow--text {
	margin-bottom: 24px;
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	color: var(--useappy-fsec-red);
}

/* Title & description */

.useappy-fsec__title {
	max-width: 600px;
	margin: 0;
	font-family: var(--useappy-font, inherit);
	font-size: 48px;
	font-weight: 700;
	line-height: 60px;
	color: #fff;
	letter-spacing: -0.025em;
}

.useappy-fsec--light .useappy-fsec__title {
	color: #1e1e1e;
}

.useappy-fsec__highlight {
	color: var(--useappy-fsec-red);
}

.useappy-fsec__description {
	max-width: 620px;
	margin: 28px 0 0;
	font-family: var(--useappy-font, inherit);
	font-size: var(--useappy-p-size, 20px);
	line-height: var(--useappy-p-lh, 1.5);
	color: #a6a6a6;
}

.useappy-fsec--light .useappy-fsec__description {
	--useappy-fsec-bold-default: #0d0d0d;

	max-width: 570px;
	font-size: var(--useappy-p-size, 20px);
	line-height: var(--useappy-p-lh, 1.5);
	color: #737373;
}

/* Editor content: paragraphs take the description's size and color (Style tab),
   one blank line apart (as the old plain-text description's empty lines were). */
.useappy-fsec__description p {
	margin: 0 0 1.5em;
	margin-bottom: 1lh;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.useappy-fsec__description > :last-child {
	margin-bottom: 0;
}

.useappy-fsec__description :is(strong, b) {
	font-weight: 600;
	color: var(--useappy-fsec-bold, var(--useappy-fsec-bold-default, #fff));
}

.useappy-fsec__description a {
	color: var(--useappy-fsec-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Check list */

.useappy-fsec__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--useappy-point-gap, 14px) 24px;
	padding: 0;
	margin: 28px 0 0;
	list-style: none;
}

.useappy-fsec__item {
	display: flex;
	gap: 12px;
	align-items: center;
	font-family: var(--useappy-font, inherit);
	font-size: var(--useappy-point-size, 19px);
	font-weight: 500;
	line-height: var(--useappy-point-lh, 1.45);
	color: #d1d1d1;
}

.useappy-fsec--light .useappy-fsec__list {
	gap: var(--useappy-point-gap, 14px) 24px;
	margin-top: 28px;
}

.useappy-fsec--light .useappy-fsec__item {
	font-size: var(--useappy-point-size, 19px);
	line-height: var(--useappy-point-lh, 1.45);
	color: #1e1e1e;
}

.useappy-fsec__check {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: var(--useappy-fsec-red);
	background-color: rgba(231, 0, 11, 0.18);
	border-radius: 50%;
}

.useappy-fsec--light .useappy-fsec__check {
	width: 30px;
	height: 30px;
	background-color: #fff0f0;
}

.useappy-fsec__check::before {
	position: absolute;
	inset: 5px;
	content: "";
	background-color: currentcolor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.useappy-fsec--light .useappy-fsec__check::before {
	inset: 8px;
}

/* Button */

.useappy-fsec__actions {
	margin-top: 28px;
}

.useappy-fsec--light .useappy-fsec__actions {
	margin-top: 28px;
}

.useappy-fsec__btn {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 30px;
	font-family: var(--useappy-font, inherit);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	background-color: var(--useappy-fsec-red);
	border: 2px solid var(--useappy-fsec-red);
	border-radius: 999px;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.useappy-fsec__btn--circle {
	gap: 12px;
	padding-right: 19px;
	padding-left: 30px;
}

.useappy-fsec__btn-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 0.8em;
	height: 0.8em;
	font-size: inherit;
	color: currentcolor;
}

.useappy-fsec__btn--circle .useappy-fsec__btn-icon {
	width: 32px;
	height: 32px;
	color: var(--useappy-fsec-icon-color);
	background: var(--useappy-fsec-icon-bg);
	border-radius: 50%;
}

.useappy-fsec__btn-icon svg,
.useappy-fsec__btn-icon i {
	width: 0.8em;
	height: 0.8em;
	font-size: inherit;
	fill: currentcolor;
}

.useappy-fsec__btn--circle .useappy-fsec__btn-icon svg,
.useappy-fsec__btn--circle .useappy-fsec__btn-icon i {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

/* Media */

.useappy-fsec__media {
	justify-self: end;
	width: 100%;
	min-width: 0;
}

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

.useappy-fsec--single .useappy-fsec__media img {
	width: 100%;
	max-width: 725px;
	margin-inline: auto 0;
}

.useappy-fsec--single.useappy-fsec--media-left .useappy-fsec__media img {
	margin-inline: 0 auto;
}

/* Media: photo mosaic. Widths follow each photo's aspect ratio, so the two photos of a row are equally tall. */

.useappy-fsec__mosaic {
	display: grid;
	gap: 16px;
	margin-right: 27px;
}

.useappy-fsec__mosaic-row {
	display: flex;
	gap: 16px;
}

.useappy-fsec__mosaic-item {
	flex: var(--useappy-fsec-ratio, 1.5) 1 0;
	min-width: 0;
	aspect-ratio: var(--useappy-fsec-ratio, 1.5);
}

.useappy-fsec__mosaic-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}

/* Media: phone row */

.useappy-fsec__phones {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.useappy-fsec__phone {
	flex: 0 1 250px;
	min-width: 0;
}

.useappy-fsec__phone img {
	width: 100%;
	height: auto;
}
