/* ==========================================================================
   Home page. Builds on the ui-* components in site.css.
   ========================================================================== */

/* ------------------------------------------------------------------ hero */
.home-hero__kicker { flex-wrap: wrap; }
/* the WordPress line break fights text-wrap: balance at this size */
.home-hero .ui-hero__title br { display: none; }
.home-hero__h1 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ui-ink); }
.home-hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}
.home-hero__points li { display: flex; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ui-ink); }
.home-hero__points .ui-check { width: 17px; height: 17px; margin-top: 2px; }

.home-hero__visual { position: relative; display: flex; justify-content: center; }

/* an SMS thread, as the Messages app draws one from a Sender ID */
.sms { height: 560px; }
.sms .ui-phone__status { background: #f7f7f8; }
.sms__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	flex: 0 0 auto;
	padding: 2px 14px 10px;
	border-bottom: 1px solid #e5e5ea;
	background: #f7f7f8;
}
.sms__back { position: absolute; top: 12px; left: 14px; width: 11px; height: 18px; color: #0a7cff; }
.sms__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: linear-gradient(180deg, #a5abb6, #858a95);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .02em;
}
.sms__name { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; color: #111; }
.sms__name svg { width: 7px; height: 10px; color: #8e8e93; }
.sms__thread {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	flex: 1 1 auto;
	min-height: 0;
	padding: 12px 12px 14px;
	overflow: hidden;
}
.sms__day { align-self: center; margin: 6px 0 4px; font-size: 11px; font-weight: 500; line-height: 1.35; text-align: center; color: #8e8e93; }
.sms__bubble {
	align-self: flex-start;
	max-width: 80%;
	margin: 0;
	padding: 8px 12px;
	border-radius: 18px;
	background: #e9e9eb;
	color: #000;
	font-size: 14.5px;
	line-height: 1.35;
}
.sms__input { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 8px 14px 24px; }
.sms__plus { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #e9e9eb; color: #8e8e93; }
.sms__plus svg { width: 14px; height: 14px; }
.sms__field { flex: 1 1 auto; padding: 5px 12px; border: 1px solid #d1d1d6; border-radius: 18px; color: #b0b0b5; font-size: 14px; }

/* floating cards around the phone (as .wa-receipt) */
.home-chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 18px 12px 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 1px 2px rgba(16, 40, 60, .08), 0 14px 34px -8px rgba(16, 40, 60, .22);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.home-chip--sender { top: 128px; left: -8px; }
.home-chip--report { bottom: 96px; right: -4px; }
.home-chip__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ui-tint); color: var(--ui-blue); }
.home-chip__icon svg { width: 20px; height: 20px; }
.home-chip__icon--ok { background: #dcf8e6; color: var(--ui-green); }
.home-chip__text { display: flex; flex-direction: column; }
.home-chip__label { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ui-muted); }
.home-chip__value { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ui-ink); }

/* ----------------------------------------------------------------- tools */
.home-tools__grid { margin-top: 0; }
.home-tools__name { font-size: 14px; letter-spacing: .07em; }

/* ------------------------------------------------------------------ 44% */
.home-stat {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	align-items: center;
	gap: 48px;
	padding: 72px 96px 72px 80px;
	border-radius: 36px;
	background: #e8f2fa;
}
.home-stat__lead { font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: -.022em; color: var(--ui-ink); }
.home-stat__lead p { margin: 0 0 18px; }
.home-stat__sub { font-size: 20px; font-weight: 600; color: var(--ui-blue-dark); }
.home-stat__sub p { margin: 0; }
.home-stat__visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: center; width: 240px; height: 240px; }
.home-ring { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(14, 44, 66, .12)); }
.home-ring__value { position: relative; font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--ui-ink); }
.home-ring__label { position: relative; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ui-muted); }

/* --------------------------------------------------------------- growth */
.headline { margin-bottom: 18px; }
.headline__rotator { position: relative; display: inline-block; color: var(--ui-blue); }
.headline__rotator::after {
	content: "";
	display: inline-block;
	width: 3px;
	height: .9em;
	margin-left: 4px;
	vertical-align: -.1em;
	border-radius: 2px;
	background: var(--ui-blue);
	animation: headline-caret 1s step-end infinite;
}
.headline__word { display: none; }
.headline__word.is-active { display: inline; }
@keyframes headline-caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.home-counters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 1020px;
	margin: 0 auto;
	border: 1px solid var(--ui-line);
	border-radius: 26px;
	background: #fff;
}
.counter { display: flex; flex-direction: column; align-items: center; padding: 40px 20px 36px; text-align: center; }
.counter + .counter { border-left: 1px solid var(--ui-line); }
.counter__number-wrapper { order: 1; font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--ui-ink); font-variant-numeric: tabular-nums; }
.counter__suffix { color: var(--ui-blue); }
.counter__title { order: 2; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ui-muted); }

/* --------------------------------------------------------- integrations */
.home-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-guide {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ui-line);
	border-radius: 24px;
	background: #fff;
	overflow: hidden;
	transition: transform .35s var(--ui-ease), box-shadow .35s var(--ui-ease), border-color .35s;
}
.home-guide:hover { transform: translateY(-4px); border-color: #d4dde3; box-shadow: var(--ui-shadow); }
.home-guide__thumb { display: block; aspect-ratio: 2 / 1; background: var(--ui-mist); }
.home-guide__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-guide__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 24px 26px 26px; }
.home-guide__title { flex: 1 1 auto; margin: 0 0 18px; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.home-guide__title a { color: var(--ui-ink); }
/* the whole card is the link */
.home-guide__title a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.home-guide__title a:focus-visible { outline: 0; }
.home-guide__title a:focus-visible::after { outline: 3px solid #7cc4ea; outline-offset: -3px; }
.home-guide__more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ui-blue); }
.home-guide__more svg { width: 16px; height: 16px; transition: transform .3s var(--ui-ease); }
.home-guide:hover .home-guide__more svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ why */
.home-why__split { align-items: center; }
.home-why .ui-h2 { margin-bottom: 0; }
.home-why__card { padding: 40px; border: 1px solid var(--ui-line); border-radius: 26px; background: #fff; }
.home-why__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--ui-line);
}
.home-why__list li { margin: 0; font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------ CTA band */
.ui-cta .btn__text { white-space: normal; }

/* -------------------------------------------------------------- partners */
.home-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 1020px; margin: 0 auto; }
.home-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 108px;
	padding: 20px 26px;
	border: 1px solid var(--ui-line);
	border-radius: 18px;
	background: #fff;
}
.home-logo__img {
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: contain;
	/* one quiet, even tone for fifteen different brand palettes */
	filter: grayscale(1) brightness(.78) contrast(1.15);
	opacity: .85;
	transition: filter .3s, opacity .3s;
}
.home-logo:hover .home-logo__img { filter: none; opacity: 1; }

/* -------------------------------------------------------------- reviews */
/* three reviews, then two wider ones: every row lines up */
.home-reviews__wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.review {
	display: flex;
	flex-direction: column;
	grid-column: span 2;
	margin: 0;
	padding: 28px 28px 24px;
	border: 1px solid var(--ui-line);
	border-radius: 24px;
	background: #fff;
}
.review:nth-child(n+4) { grid-column: span 3; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: #f5a524; }
.stars .star { width: 16px; height: 15px; }
.review__text { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--ui-ink); white-space: pre-line; }
.review figcaption { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--ui-line); }
.review__author { display: flex; align-items: center; gap: 12px; color: inherit; }
.review__author:hover .review__name, .review__author:focus .review__name { color: var(--ui-blue); }
.review__image { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review__cite { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font-style: normal; }
.review__name { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ui-ink); transition: color .2s; }
.review__title { font-size: 13.5px; line-height: 1.4; color: var(--ui-muted); }
.review__icon { flex: 0 0 auto; }
.review__icon svg { width: 22px; height: 22px; }
.review__icon--facebook { color: #1877f2; }
.review__icon--twitter { color: #1d9bf0; }

/* --------------------------------------------------------- help + FAQ */
.home-help__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.home-help__title { font-size: 40px; }
.home-help__text { margin-bottom: 30px; font-size: 18px; line-height: 1.6; color: var(--ui-body); }
.home-help__text p { margin: 0; }
.home-help__text a { font-weight: 600; white-space: nowrap; }
.home-help__faq-title { margin: 0 0 20px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ui-ink); }
.home-help__faq .ui-accordion { max-width: none; margin-bottom: 24px; }

/* ---------------------------------------------------------- breakpoints */
@media (max-width: 1024px) {
	/* no room beside the phone until the columns stack */
	.home-chip--sender, .home-chip--report { display: none; }
	.home-stat { grid-template-columns: minmax(0, 1fr) 200px; padding: 56px 48px; gap: 32px; }
	.home-stat__lead { font-size: 36px; }
	.home-stat__visual { width: 200px; height: 200px; }
	.home-ring__value { font-size: 44px; }
	.home-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.counter:nth-child(3) { border-left: 0; }
	.counter:nth-child(n+3) { border-top: 1px solid var(--ui-line); }
	.home-guides { gap: 16px; }
	.home-guide__body { padding: 20px; }
	.home-guide__title { font-size: 17px; }
	.home-why__card { padding: 32px; }
	.review, .review:nth-child(n+4) { grid-column: span 3; }
	.review:last-child { grid-column: 1 / -1; }
	.home-help__grid { gap: 48px; }
	.home-help__title { font-size: 34px; }
}

@media (max-width: 860px) {
	.home-chip--sender, .home-chip--report { display: flex; }
	.home-chip--sender { left: calc(50% - 236px); }
	.home-chip--report { right: calc(50% - 236px); }
	.home-stat { grid-template-columns: 1fr; text-align: center; }
	.home-guides { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
	.home-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
	.home-help__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	.home-hero__points { flex-direction: column; margin-top: 24px; }
	.home-chip--sender, .home-chip--report { display: none; }
	.ui-phone { width: 292px; padding: 10px; border-radius: 50px; }
	.sms { height: 572px; border-radius: 41px; }

	.home-stat { gap: 28px; margin: 0 -16px; padding: 44px 20px 48px; border-radius: 0; }
	.home-stat__lead { font-size: 29px; }
	.home-stat__lead br { display: none; }
	.home-stat__sub { font-size: 17px; }
	.home-stat__visual { width: 180px; height: 180px; }
	.home-ring__value { font-size: 40px; }

	.counter { padding: 28px 12px 26px; }
	.counter__number-wrapper { font-size: 30px; }
	.counter__title { font-size: 13px; }

	.home-why__card { padding: 24px 20px; }
	.home-why__list { grid-template-columns: 1fr; }

	.home-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.home-logo { height: 72px; padding: 12px; border-radius: 14px; }

	.home-reviews__wall { grid-template-columns: 1fr; gap: 14px; }
	.review, .review:nth-child(n+4), .review:last-child { grid-column: auto; }
	.review { padding: 24px 22px 20px; }

	.home-help__title { font-size: 29px; }
	.home-help__text { font-size: 17px; }
	.home-help .ui-actions .ui-btn { width: 100%; }
}
