/*
 * Home – Why ReviewScribe (Figma 1828:14001, 1228×2056.93 centred at x=186, 104px after it).
 * Three blocks 104px apart: value card (596.645 tall), testimonials (466) and FAQ (786.28).
 */

/*
 * The web subsets of Plus Jakarta Sans have no "∞", so browsers fall back to an OS font (bigger and heavier
 * than Figma's). This is Plus Jakarta Sans Bold's ∞ alone (Google Fonts "text=∞" subset, OFL, 820 bytes).
 */
@font-face {
	font-family: "RS Jakarta Symbols";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("data:font/woff2;base64,d09GMgABAAAAAAM0AA4AAAAABlwAAALfAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGx4cKAZgP1NUQVREADwRCAqBaIFdCwgAATYCJAMMBCAFhSgHIBtYBcgEAtKp95IcAFQcIIcYbYdQKcGadqOZYQTiiXBvx1Z/P7c6PItd50es14k9hrXtI9bUmnhLZPW4xFEiw/QSJl6AexCAA0HshCivrG/HDgUS0/WQqRCiMEiw0WNmRJvDhQ00Oa1IK9JlDCCtSt0wWBevFoPEiCocfj8s68UMb8w8aW+qa2IfqjFEcdGNoM/gJiwqYldxRlKl3+iTioxAYIcEeDEiQtXa8QlNyDCpjcwIRwReKI1SknBaNukXEPbS5QzZCeTuZBMyNivEaGwUgbQAaisUyuuf33/rSsoGhK7jmoKcEWywYIeESigNNwgroag4va5Ork5DwhVNGuZ+Nq++fSu2v3vnuONNB69fd+54lnTmqcPqZbZdGVl92ykKlTdso65rYvvVC49Np5/kHai0q7QNjJ/+D39LeqspqTElNamh1ZRRvqk2tjw3pnRTfe5w2Duz5V1Y5Alj2ImdwxWb6mNLc2PLNtVVZLaYEhtSUxIbW02FwxEXw4wXI4zvLOafAOxb6TvJI6Ghsu3UkGv+XztZ/oWz78+b/OKPn47u6te7/uuGrcofBDZ7Se0vc26dD/SufxOGrTvGOtWytI18LsCcfBRzxXoyFmzpx9CMPhPFib1pVLHn9tuiEQmMwoQk7EQEkinkB1IwcREZyGUbsiGGbrcLmRg9hIwTPnP2w7UIR5xwgCR7Ba3MM8sIc9SgscAZJjHThbUwzgSa36uxwDK5JLFXy5hZYpIFNJZJhPIkM/ibeZYYJ4kmKqmnmRlWWKaWEaYhLA0MbZPULpNAKfNcttAJYam7+nnmUEklkWSySCGPccbQmG/Uu0wfySSSgyppJDMw+DKVh1VuUgcG3J92mqijibzlsfGEkwllDC+w/mjogyM3A8n+7lXamcCKumi5mSVemMKKeQBcwso1kAdMVi2PuRI8zqTZuMIoiZivFJKOTpjmu9FYzwJWkjYsxf4BGN36fwx3AA==") format("woff2");
	unicode-range: U+221E;
}

.rs-home-why__inner > * {
	margin: 0;
}

/* This section's eyebrows are Inter SemiBold (base.css default is Medium). */
.rs-home-why .rs-eyebrow {
	font-weight: 600;
}

/* ---- Value card (1828:14002): 64/56 padding, radius 28. On request (2026-10-08) it is purple instead of Figma's
   mint: the WooCommerce hero's gradient (#3c007a → purple-70) under the home hero's tile pattern, with white
   eyebrow, title and lead (the pills and stat cards stay white). ---- */
.rs-why-values {
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 28px;
	background:
		url("../../images/home/hero-tiles.svg") center top / 2518px 1092px no-repeat,
		linear-gradient(180deg, #3c007a 0%, var(--wp--preset--color--purple-70) 100%);
}

.rs-why-values .rs-eyebrow {
	color: var(--wp--preset--color--white);
}

.rs-why-values > *,
.rs-why-values__intro > *,
.rs-why-pills > * {
	margin: 0;
}

/* Figma column is 520 wide but the lead's first line is 531: widen the (left-aligned) column instead of wrapping. */
.rs-why-values__intro {
	flex: 0 1 540px;
	min-width: 0;
}

.rs-why-values__title {
	padding-bottom: 0.745px;
}

.rs-why-values__lead {
	padding-top: 1.1px;
	opacity: 0.88;
}

.rs-why-pill {
	display: flex;
	align-items: center;
	gap: 4.8px; /* icon + gap = Figma's "✓ " (15.8px) */
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--black);
	white-space: nowrap;
}

/* Figma's "✓ " glyph, drawn as an icon so it looks the same on every OS. */
.rs-why-pill::before {
	content: "";
	flex: none;
	width: 11px;
	height: 10px;
	background-color: currentColor;
	-webkit-mask: url("../../images/home/why/check.svg") center / contain no-repeat;
	mask: url("../../images/home/why/check.svg") center / contain no-repeat;
}

/* Four value cards (1828:14017): equal content width, 18px apart, top-aligned (heights 232/233/228/228). */
.rs-why-stats {
	align-items: flex-start !important;
}

.rs-why-stat {
	flex: 1 1 0;
	min-width: 1px;
	box-sizing: border-box;
	border-radius: 18px;
	box-shadow: 0 14px 17px 0 rgba(20, 90, 75, 0.1);
}

.rs-why-stat > *,
.rs-why-stat__price > * {
	margin: 0;
}

.rs-why-stat__price {
	min-height: 40px;
}

.rs-why-stat__price > .rs-why-stat__value {
	margin-top: 1px;
}

.rs-why-stat__value {
	white-space: nowrap;
}

/* Figma sets "/yr" at x 52.69; Chrome's "$59" is 51.3 wide. */
.rs-why-stat__unit {
	margin-top: 14px !important;
	margin-left: 1.4px !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 17px;
	letter-spacing: -1px;
	color: var(--wp--preset--color--text-tertiary);
}

.rs-why-stat__value.is-symbol {
	padding-bottom: 1px;
	font-family: "RS Jakarta Symbols", var(--wp--preset--font-family--plus-jakarta-sans);
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
	letter-spacing: -1px;
}

.rs-why-stat.is-purple .rs-why-stat__value { color: #7c3bf0; }
.rs-why-stat.is-green .rs-why-stat__value { color: #0e8a73; }
.rs-why-stat.is-orange .rs-why-stat__value { color: #b4682b; }
.rs-why-stat.is-blue .rs-why-stat__value { color: var(--wp--preset--color--ink-deep); }

.rs-why-stat__title {
	padding-top: 5px;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.rs-why-stat__desc {
	box-sizing: border-box;
	min-height: 72px;
	padding-bottom: 9px;
}

.rs-why-stat > .rs-why-stat__tag {
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 0;
	white-space: nowrap;
}

.rs-why-stat.is-purple .rs-why-stat__tag { background: #f2edfc; color: #5f27c7; }
.rs-why-stat.is-green .rs-why-stat__tag { background: #ddf6ee; color: #0e8a73; }
.rs-why-stat.is-orange .rs-why-stat__tag { background: #fcebdc; color: #b4682b; }
.rs-why-stat.is-blue .rs-why-stat__tag { background: #e6edfb; color: #3d5a96; }

/* ---- Testimonials (1828:14055), now "who it's for" cards: heading + three 380px cards, 20px apart. ---- */
.rs-why-reviews > *,
.rs-why-review > * {
	margin: 0;
}

.rs-why-reviews__grid {
	align-items: stretch;
}

/* Figma draws the 1px border inside the 27px padding. */
.rs-why-review {
	box-sizing: border-box;
	min-width: 0;
	border: 1px solid #ece9f2;
	border-radius: 18px;
}

.rs-why-review.is-featured {
	background: #f7f5fc;
}

/* Audience label ("who it's for" cards) in the place of Figma's 28px star row, same height. */
/* Card image (on request 2026-10-08: the cards looked small and bare): the audience's scene, full card width. */
.rs-why-review > .rs-why-review__art {
	margin: 0 0 6px;
}

.rs-why-review__art img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Sits 4px above its title (on request 2026-10-09; the card's 14px gap was too loose). */
.rs-why-review > .rs-why-for {
	margin-bottom: -10px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--purple-100);
}

/* Star row: SVG stars (not ★ glyphs), 5 × 28px, 4px apart; the text is for screen readers. */
.rs-why-stars {
	box-sizing: content-box;
	width: 156px;
	height: 28px;
	padding-bottom: 2px;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
	color: transparent;
	background: url("../../images/home/why/star.svg") left top / 28px 28px space no-repeat;
	background-origin: content-box;
	background-clip: content-box;
}

/* ---- FAQ (1828:14127): 436.7px intro column, 679.3px question list. ---- */
.rs-why-faq__intro {
	flex: 0 1 436.696px;
	min-width: 0;
}

.rs-why-faq__intro > *,
.rs-why-help > * {
	margin: 0;
}

.rs-why-faq__title {
	padding: 2px 0 0.8px;
}

.rs-why-faq__lead {
	padding-bottom: 17.8px;
	opacity: 0.7;
}

.rs-why-help {
	box-sizing: border-box;
	border-radius: 16px;
	background: #f7f5fc;
}

.rs-why-help__text {
	padding-bottom: 7px;
}

.rs-why-faq__list {
	flex: 0 1 679.304px;
	min-width: 0;
	padding-top: 1px;
}

/* Each item is 130.88 tall: 4 + 64 summary − 1.03 + answer + 4 + 1px rule. */
.rs-why-faq__list > .rs-why-faq__item {
	box-sizing: border-box;
	margin: 0;
	padding: 4px 0;
	border-bottom: 1px solid rgba(204, 204, 204, 0.5);
}

.rs-why-faq__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 -1.03px;
	padding: 18px 4px;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--stack-sans-headline);
	font-size: var(--wp--preset--font-size--heading-6);
	font-weight: 500;
	line-height: 28px;
	letter-spacing: 0;
	color: var(--wp--preset--color--black);
}

.rs-why-faq__item > summary::-webkit-details-marker {
	display: none;
}

.rs-why-faq__item > summary::after {
	content: "+";
	flex: none;
	width: 12px;
	font-family: var(--wp--preset--font-family--plus-jakarta-sans);
	font-size: 18px;
	font-weight: 600;
	line-height: 23px;
	text-align: center;
	color: var(--wp--preset--color--text-tertiary);
}

.rs-why-faq__item > summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--purple-100);
	outline-offset: 2px;
	border-radius: 4px;
}

.rs-why-faq__item > .rs-why-faq__answer {
	box-sizing: border-box;
	max-width: 648px;
	margin: 0;
	padding: 0 4px 18.91px;
}

/* ---- Responsive ---- */

/* Below the 1228px column the value cards get narrower than Figma's, so let their copy wrap naturally. */
@media (max-width: 1307px) {
	.rs-why-stat__desc br {
		display: none;
	}

	/* Keep the testimonial cards wide enough for one-line quote titles. */
	.rs-why-reviews,
	.rs-why-faq {
		padding-inline: 0 !important;
	}
}

@media (max-width: 1279px) {
	.rs-why-faq__answer br {
		display: none;
	}
}

@media (max-width: 1099px) {
	.rs-why-stats {
		flex-wrap: wrap !important;
		row-gap: 18px;
	}

	.rs-why-stat {
		flex: 1 1 calc(50% - 9px);
	}
}

@media (max-width: 1023px) {
	.rs-why-reviews__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.rs-why-reviews__grid > :last-child {
		grid-column: 1 / -1;
	}

	.rs-why-faq {
		flex-direction: column;
		align-items: stretch !important;
	}

	.rs-why-faq__intro,
	.rs-why-faq__list {
		flex: none;
		width: 100%;
	}

	.rs-why-faq__intro {
		max-width: 560px;
	}

	.rs-why-faq__item > .rs-why-faq__answer {
		max-width: none;
	}
}

@media (max-width: 781px) {
	.rs-home-why p br {
		display: none;
	}

	.rs-why-values {
		padding: 40px 24px !important;
		gap: 32px;
	}

	.rs-why-values__intro {
		flex-basis: 100%;
	}

	.rs-why-pills {
		gap: 8px;
	}

	.rs-why-reviews__grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.rs-why-faq__item > summary {
		align-items: flex-start;
	}

	.rs-why-faq__item > summary::after {
		margin-top: 2.5px;
	}
}

@media (max-width: 599px) {
	.rs-why-stat {
		flex-basis: 100%;
	}

	.rs-why-pill {
		white-space: normal;
	}
}
