/* Brand fonts per Yeastar Brand Guidelines v1.3: Manrope for headings, Open
   Sans for body (the doc specifies Open Sans for body text on the website). */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

/* Astra wraps page content in .ast-container (max-width ~1240px, centred). On
   the home page the funnel must span the full viewport so its section
   backgrounds bleed edge-to-edge; the inner .tf-wrap keeps content centred at
   1180px. This breakout also overrides .terafi-funnel's own max-width:100%.
   Scoped to .home so other pages keep Astra's normal container. */
.home .terafi-funnel {
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
	position: relative;
	right: 50%;
	width: 100vw;
}

.terafi-funnel {
	--tf-primary: #006ee1;
	--tf-sky: #00b7ff;
	--tf-purple: #005fc3;
	--tf-rust: #c8910a;
	--tf-orange: #f5b40a;
	--tf-grey: #303c42;
	--tf-ink: #101f3a;
	--tf-ink-2: #006ee1;
	--tf-text: #303c42;
	--tf-muted: rgba(48, 60, 66, 0.76);
	--tf-line: rgba(0, 110, 225, 0.18);
	--tf-soft: #eff4ff;
	--tf-card: #ffffff;
	--tf-accent: #f5b40a;
	--tf-accent-dark: #c8910a;
	--tf-accent-soft: #fef9ec;
	--tf-purple-soft: #e6f2ff;
	--tf-shadow: 0 18px 48px rgba(0, 110, 225, 0.1);
	--tf-shadow-hover: 0 26px 70px rgba(0, 110, 225, 0.18);
	background: #ffffff;
	color: var(--tf-text);
	font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
	max-width: 100%;
	overflow-x: clip;
	position: relative;
}

.terafi-funnel *,
.terafi-funnel *::before,
.terafi-funnel *::after {
	box-sizing: border-box;
}

.terafi-funnel :where(h1, h2, h3, p, ul, ol, figure) {
	margin: 0;
}

.terafi-funnel h1,
.terafi-funnel h2,
.terafi-funnel h3 {
	color: var(--tf-ink);
	font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: -0.01em;
	line-height: 1.06;
	text-wrap: balance;
}

.terafi-funnel h1 {
	font-size: clamp(2.6rem, 6.8vw, 5.55rem);
	max-width: 9.6em;
}

.terafi-funnel h2 {
	font-size: clamp(2rem, 4.2vw, 3.75rem);
	max-width: 12em;
}

.terafi-funnel h3 {
	font-size: clamp(1.1rem, 1.9vw, 1.35rem);
	letter-spacing: -0.015em;
}

.terafi-funnel p,
.terafi-funnel li,
.terafi-funnel summary {
	font-size: 1rem;
}

.tf-wrap {
	margin-inline: auto;
	max-width: 1180px;
	min-width: 0;
	padding-inline: clamp(20px, 4vw, 32px);
	width: 100%;
}

.tf-wrap--narrow {
	max-width: 920px;
}

.tf-section {
	padding-block: clamp(64px, 8vw, 104px);
}

.tf-section--soft {
	background: var(--tf-soft);
}

.tf-section--metrics {
	background:
		linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%),
		#ffffff;
}

.tf-section--ink,
.tf-cta {
	background:
		radial-gradient(circle at 12% 20%, rgba(245, 180, 24, 0.18), transparent 30%),
		linear-gradient(135deg, #101f3a 0%, #006ee1 100%);
	color: rgba(255, 255, 255, 0.82);
}

.tf-section--ink h2,
.tf-section--ink h3,
.tf-cta h2 {
	color: #ffffff;
}

.tf-section--ink .tf-kicker,
.tf-cta .tf-kicker {
	color: #fef3d0;
}

.tf-kicker {
	color: var(--tf-accent-dark);
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.tf-lede {
	color: var(--tf-text);
	font-size: clamp(1.06rem, 1.7vw, 1.25rem);
	max-width: 720px;
}

.tf-section-heading {
	margin: 0 auto 36px;
	max-width: 860px;
	text-align: center;
}

.tf-section-heading > * + * {
	margin-top: 14px;
}

.tf-section-heading h2 {
	margin-inline: auto;
}

.tf-hero {
	background:
		radial-gradient(circle at 13% 10%, rgba(0, 110, 225, 0.1), transparent 32%),
		radial-gradient(circle at 82% 18%, rgba(245, 180, 24, 0.1), transparent 26%),
		linear-gradient(180deg, #eff4ff 0%, #ffffff 100%);
	padding-block: clamp(72px, 9vw, 132px) clamp(70px, 9vw, 118px);
}

.tf-hero__grid,
.tf-split,
.tf-showcase {
	align-items: center;
	display: grid;
	gap: clamp(34px, 5vw, 72px);
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
	min-width: 0;
}

.tf-split--reverse {
	grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
}

.tf-hero__copy,
.tf-hero__visual,
.tf-split > *,
.tf-showcase > * {
	min-width: 0;
}

.tf-hero__copy > * + * {
	margin-top: 22px;
}

.tf-hero .tf-kicker {
	background: rgba(0, 110, 225, 0.08);
	border: 1px solid rgba(0, 110, 225, 0.22);
	border-radius: 999px;
	max-width: 100%;
	padding: 9px 13px;
	white-space: normal;
}

.tf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tf-button {
	appearance: none;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 850;
	justify-content: center;
	min-height: 52px;
	padding: 13px 22px;
	text-align: center;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.tf-button:hover,
.tf-button:focus-visible {
	box-shadow: var(--tf-shadow-hover);
	transform: translateY(-2px);
}

.tf-button--primary {
	background: var(--tf-accent);
	color: #ffffff;
	box-shadow: 0 14px 32px rgba(245, 180, 24, 0.28);
}

.tf-button--primary:hover,
.tf-button--primary:focus-visible {
	background: var(--tf-accent-dark);
	color: #ffffff;
}

.tf-button--ghost {
	background: #ffffff;
	border-color: var(--tf-line);
	color: var(--tf-ink);
}

.tf-button--secondary {
	background: var(--tf-ink);
	color: #ffffff;
}

.tf-section--ink .tf-button--ghost,
.tf-cta .tf-button--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.32);
	color: #ffffff;
}

.tf-proof-list {
	color: var(--tf-ink-2);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	list-style: none;
	padding: 0;
}

.tf-proof-list li {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.tf-proof-list li::before {
	background: var(--tf-accent);
	border-radius: 999px;
	content: "";
	height: 7px;
	width: 7px;
}

.tf-hero__visual {
	min-height: 500px;
	position: relative;
}

.tf-dashboard {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
		radial-gradient(circle at 80% 0%, rgba(0, 110, 225, 0.12), transparent 32%),
		radial-gradient(circle at 14% 100%, rgba(245, 180, 24, 0.1), transparent 30%);
	border: 1px solid var(--tf-line);
	border-radius: 22px;
	box-shadow: var(--tf-shadow);
	padding: 18px;
	position: relative;
	transition: box-shadow 220ms ease, transform 220ms ease;
	z-index: 2;
}

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

.tf-dashboard__topbar {
	display: flex;
	gap: 7px;
	margin-bottom: 22px;
}

.tf-dashboard__topbar span {
	background: rgba(0, 110, 225, 0.16);
	border-radius: 50%;
	height: 10px;
	width: 10px;
}

.tf-dashboard__header {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.tf-dashboard__header p,
.tf-mini-card span,
.tf-workflow span {
	color: var(--tf-muted);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tf-dashboard__header strong {
	color: var(--tf-ink);
	display: block;
	font-size: clamp(1.5rem, 3vw, 2.45rem);
	letter-spacing: -0.04em;
	line-height: 1.04;
	margin-top: 4px;
}

.tf-status-pill {
	background: var(--tf-accent-soft);
	border: 1px solid rgba(200, 145, 10, 0.28);
	border-radius: 999px;
	color: var(--tf-accent-dark);
	font-size: 0.78rem;
	font-weight: 850;
	padding: 7px 11px;
}

.tf-dashboard__grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-mini-card {
	background: #f0f6ff;
	border: 1px solid var(--tf-line);
	border-radius: 16px;
	padding: 16px;
}

.tf-mini-card--brand {
	background: linear-gradient(135deg, var(--tf-primary), var(--tf-purple));
	color: #ffffff;
}

.tf-mini-card strong {
	color: var(--tf-ink);
	display: block;
	font-size: clamp(1.08rem, 1.55vw, 1.42rem);
	letter-spacing: -0.04em;
	margin-top: 10px;
	overflow-wrap: anywhere;
}

.tf-mini-card--brand span,
.tf-mini-card--brand strong {
	color: #ffffff;
}

.tf-workflow {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.tf-workflow div {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--tf-line);
	border-radius: 16px;
	display: flex;
	justify-content: space-between;
	padding: 15px 16px;
}

.tf-workflow strong {
	color: var(--tf-ink);
}

.tf-float-card {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--tf-line);
	border-radius: 999px;
	box-shadow: var(--tf-shadow);
	color: var(--tf-ink);
	display: flex;
	font-size: 0.92rem;
	font-weight: 850;
	gap: 10px;
	padding: 12px 16px;
	position: absolute;
	z-index: 4;
}

.tf-float-card--left {
	bottom: 42px;
	left: -18px;
}

.tf-float-card--right {
	right: -14px;
	top: -22px;
}

.tf-audience {
	background: #ffffff;
	border-block: 1px solid var(--tf-line);
	overflow: visible;
	padding-block: 28px;
	position: relative;
	z-index: 30;
}

.tf-audience .tf-wrap {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	overflow: visible;
	position: relative;
	z-index: 2;
}

.tf-audience span {
	color: var(--tf-muted);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tf-audience .tf-audience-item{text-decoration:none;cursor:pointer;}
.tf-audience .tf-audience-item {
	background: #ffffff;
	border: 1px solid var(--tf-line);
	border-radius: 999px;
	color: var(--tf-ink);
	padding: 9px 14px;
	position: relative;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
	z-index: 1;
}

.tf-audience .tf-audience-item:hover,
.tf-audience .tf-audience-item:focus-visible {
	background: var(--tf-purple-soft);
	border-color: rgba(0, 110, 225, 0.28);
	box-shadow: 0 12px 28px rgba(0, 110, 225, 0.1);
	transform: translateY(-2px);
	z-index: 40;
}

.tf-audience .tf-audience-item::after {
	background: #ffffff;
	border: 1px solid rgba(0, 110, 225, 0.16);
	border-radius: 12px;
	box-shadow: var(--tf-shadow-hover);
	color: var(--tf-grey);
	content: attr(data-tip);
	font-size: 0.86rem;
	font-weight: 700;
	bottom: calc(100% + 12px);
	left: 50%;
	line-height: 1.35;
	max-width: min(280px, calc(100vw - 40px));
	min-width: 240px;
	opacity: 0;
	padding: 12px 14px;
	pointer-events: none;
	position: absolute;
	text-align: left;
	text-transform: none;
	top: auto;
	transform: translate(-50%, -8px);
	transition: opacity 180ms ease, transform 180ms ease;
	white-space: normal;
	z-index: 80;
}

.tf-audience .tf-audience-item::before {
	border: 8px solid transparent;
	border-top-color: rgba(0, 110, 225, 0.16);
	bottom: calc(100% - 3px);
	content: "";
	left: 50%;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: auto;
	transform: translateX(-50%);
	transition: opacity 180ms ease;
	z-index: 81;
}

.tf-audience .tf-audience-item:hover::after,
.tf-audience .tf-audience-item:focus-visible::after,
.tf-audience .tf-audience-item:hover::before,
.tf-audience .tf-audience-item:focus-visible::before {
	opacity: 1;
	transform: translate(-50%, 0);
}

.tf-audience .tf-audience-item:hover::before,
.tf-audience .tf-audience-item:focus-visible::before {
	transform: translateX(-50%);
}

.tf-panel,
.tf-note,
.tf-card,
.tf-media-card,
.tf-faq details {
	border: 1px solid var(--tf-line);
	border-radius: 18px;
	background: var(--tf-card);
	box-shadow: var(--tf-shadow);
}

.tf-panel {
	padding: clamp(28px, 4vw, 44px);
}

.tf-panel > * + * {
	margin-top: 16px;
}

.tf-panel--dark {
	background:
		radial-gradient(circle at 80% 0%, rgba(245, 180, 24, 0.2), transparent 36%),
		linear-gradient(135deg, var(--tf-primary), var(--tf-purple));
	color: rgba(255, 255, 255, 0.8);
}

.tf-panel--dark h2,
.tf-panel--dark .tf-kicker {
	color: #ffffff;
}

.tf-stack {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.tf-note {
	padding: 22px 24px;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.tf-note:hover {
	box-shadow: var(--tf-shadow-hover);
	transform: translateY(-3px);
}

.tf-note h3 {
	margin-bottom: 8px;
}

.tf-card-grid {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.tf-metric-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tf-metric {
	background: linear-gradient(135deg, var(--tf-primary), var(--tf-purple));
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	box-shadow: var(--tf-shadow);
	color: rgba(255, 255, 255, 0.76);
	min-width: 0;
	padding: 24px 20px;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tf-metric:hover {
	border-color: rgba(245, 180, 24, 0.5);
	box-shadow: var(--tf-shadow-hover);
	transform: translateY(-4px);
}

.tf-metric span {
	color: #fef3d0;
	display: block;
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.tf-metric strong {
	color: #ffffff;
	display: block;
	font-size: clamp(1.25rem, 1.65vw, 1.78rem);
	letter-spacing: -0.05em;
	line-height: 1.04;
	margin-bottom: 10px;
	white-space: nowrap;
}

.tf-card-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-card-grid--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tf-card {
	min-width: 0;
	padding: 24px;
	position: relative;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tf-card::after {
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(245, 180, 24, 0.14), transparent 34%);
	border-radius: inherit;
	content: "";
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 180ms ease;
}

.tf-card:hover,
.tf-card:focus-within {
	border-color: rgba(245, 180, 24, 0.38);
	box-shadow: var(--tf-shadow-hover);
	transform: translateY(-5px);
}

.tf-card:hover::after {
	opacity: 1;
}

.tf-card--featured {
	border-color: rgba(200, 145, 10, 0.4);
	box-shadow: 0 20px 54px rgba(200, 145, 10, 0.14);
}

.tf-card--glass {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.8);
}

.tf-card--glass h3 {
	color: #ffffff;
}

.tf-card__eyebrow {
	color: var(--tf-accent-dark);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	margin-bottom: 12px;
	padding-right: 58px;
	text-transform: uppercase;
}

.tf-card--glass .tf-card__eyebrow {
	color: #fef3d0;
}

.tf-icon {
	align-items: center;
	background: var(--tf-accent-soft);
	border: 1px solid rgba(200, 145, 10, 0.24);
	border-radius: 14px;
	color: var(--tf-accent-dark);
	display: inline-flex;
	height: 48px;
	justify-content: center;
	margin-bottom: 18px;
	width: 48px;
}

.tf-card > .tf-icon,
.tf-card > p > .tf-icon {
	height: 42px;
	margin-bottom: 0;
	position: absolute;
	right: 20px;
	top: 20px;
	width: 42px;
}

/* wpautop can wrap the inline icon span in its own paragraph on cards that
   carry an eyebrow, which previously broke the .tf-card > .tf-icon match and
   dropped the icon into static flow. Neutralise that injected wrapper so the
   absolutely-positioned icon leaves no gap above the heading. */
.tf-card > p:has(> .tf-icon) {
	margin: 0;
}

.tf-icon svg {
	height: 24px;
	width: 24px;
}

.tf-card--glass .tf-icon,
.tf-panel--dark .tf-icon {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.22);
	color: #fef3d0;
}

.tf-card h3 {
	margin-bottom: 10px;
	padding-right: 58px;
}

.tf-product-card {
	overflow: hidden;
}

.tf-product-card::before {
	background: linear-gradient(90deg, var(--tf-accent), rgba(245, 180, 24, 0));
	content: "";
	height: 3px;
	left: 24px;
	position: absolute;
	right: 24px;
	top: 0;
}

.tf-process {
	border-left: 2px solid rgba(0, 110, 225, 0.22);
	display: grid;
	gap: 20px;
	padding-left: 28px;
}

.tf-process__item {
	position: relative;
}

.tf-process__item::before {
	background: var(--tf-accent);
	border: 5px solid var(--tf-accent-soft);
	border-radius: 50%;
	content: "";
	height: 18px;
	left: -38px;
	position: absolute;
	top: 2px;
	width: 18px;
}

.tf-process__item span {
	color: var(--tf-accent-dark);
	display: block;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	margin-bottom: 6px;
}

.tf-process__item h3 {
	margin-bottom: 6px;
}

.tf-showcase {
	grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
}

.tf-showcase > div:first-child > * + * {
	margin-top: 16px;
}

.tf-media-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
}

.tf-media-card {
	aspect-ratio: 1.05 / 1;
	display: grid;
	overflow: hidden;
	place-items: center;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.tf-media-card--wide {
	aspect-ratio: 1.34 / 1;
	grid-column: 1 / -1;
}

.tf-media-card:hover {
	box-shadow: var(--tf-shadow-hover);
	transform: translateY(-4px) scale(1.01);
}

.tf-media-card img {
	display: block;
	height: 100%;
	object-fit: contain;
	padding: 20px;
	width: 100%;
}

/* The wide showcase banner is a low, cinematic composite; give it a wider
   box and less padding so it fills the card instead of letterboxing. */
.tf-showcase .tf-media-card--wide {
	aspect-ratio: 2.1 / 1;
}

.tf-showcase .tf-media-card--wide img {
	padding: 12px;
}

/* Inline supporting image inside a text column (e.g. the how-it-works copy). */
.tf-inline-media {
	margin: 0 0 4px;
	max-width: 420px;
}

.tf-inline-media img {
	display: block;
	height: auto;
	width: 100%;
}

.tf-faq {
	display: grid;
	gap: 14px;
}

.tf-faq details {
	padding: 20px 22px;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.tf-faq details[open],
.tf-faq details:hover {
	box-shadow: var(--tf-shadow-hover);
	transform: translateY(-2px);
}

.tf-faq summary {
	color: var(--tf-ink);
	cursor: pointer;
	font-weight: 850;
	list-style: none;
}

.tf-faq summary::-webkit-details-marker {
	display: none;
}

.tf-faq summary::after {
	color: var(--tf-accent-dark);
	content: "+";
	float: right;
	font-size: 1.35rem;
	line-height: 1;
}

.tf-faq details[open] summary::after {
	content: "-";
}

.tf-faq p {
	margin-top: 12px;
}

.tf-cta {
	padding-block: clamp(72px, 9vw, 118px);
	text-align: center;
}

.tf-cta__inner {
	max-width: 900px;
}

.tf-cta__inner h2,
.tf-cta__inner p {
	margin-left: auto;
	margin-right: auto;
}

.tf-cta__inner p {
	max-width: 760px;
}

.tf-cta__inner > * + * {
	margin-top: 18px;
}

.tf-cta .tf-actions {
	justify-content: center;
	margin-top: 28px;
}

.tf-js .terafi-funnel [data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 520ms ease, transform 520ms ease;
}

.tf-js .terafi-funnel [data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 980px) {
	.tf-hero__grid,
	.tf-split,
	.tf-split--reverse,
	.tf-showcase {
		grid-template-columns: 1fr;
	}

	.tf-hero__visual {
		min-height: 0;
	}

	.tf-card-grid--three,
	.tf-card-grid--four,
	.tf-metric-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tf-float-card--left {
		left: 8px;
	}

	.tf-float-card--right {
		right: 8px;
	}
}

@media (max-width: 720px) {
	.terafi-funnel h1 {
		font-size: clamp(2.35rem, 10.5vw, 3.25rem);
		max-width: 100%;
	}

	.terafi-funnel h2 {
		font-size: clamp(1.85rem, 8vw, 2.6rem);
		max-width: 100%;
	}

	.tf-section,
	.tf-hero,
	.tf-cta {
		padding-block: 64px;
	}

	/* v1.0.4: clear the transparent header on small screens so the eyebrow
	   pill no longer collides with the logo/hamburger row. */
	.tf-hero {
		padding-block-start: 112px;
	}

	.tf-wrap {
		padding-inline: 20px;
	}

	.tf-actions,
	.tf-proof-list {
		width: 100%;
	}

	.tf-button {
		width: 100%;
	}

	.tf-dashboard {
		border-radius: 18px;
		padding: 14px;
	}

	.tf-dashboard__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.tf-dashboard__grid,
	.tf-media-grid,
	.tf-card-grid--three,
	.tf-card-grid--four,
	.tf-metric-grid {
		grid-template-columns: 1fr;
	}

	.tf-mini-card {
		padding: 14px;
	}

	.tf-float-card {
		margin-top: 12px;
		position: static;
		width: fit-content;
	}

	.tf-card,
	.tf-note,
	.tf-panel,
	.tf-faq details {
		border-radius: 16px;
		padding: 22px;
	}

	.tf-audience .tf-wrap {
		justify-content: flex-start;
	}

	.tf-audience span {
		flex-basis: 100%;
		text-align: left;
	}

	.tf-audience .tf-audience-item::after {
		left: 0;
		min-width: min(250px, calc(100vw - 40px));
		transform: translate(0, 8px);
	}

	.tf-audience .tf-audience-item:hover::after,
	.tf-audience .tf-audience-item:focus-visible::after {
		transform: translate(0, 0);
	}

	.tf-audience .tf-audience-item::before {
		left: 24px;
	}

	.tf-audience .tf-audience-item:hover::before,
	.tf-audience .tf-audience-item:focus-visible::before {
		transform: translateX(-50%);
	}
}

@media (max-width: 420px) {
	.terafi-funnel h1,
	.terafi-funnel h2,
	.terafi-funnel h3,
	.terafi-funnel p,
	.terafi-funnel li,
	.terafi-funnel summary,
	.tf-kicker {
		overflow-wrap: anywhere;
	}

	.tf-wrap {
		padding-inline: 18px;
	}

	.tf-hero .tf-kicker {
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---- v1.0.8 fixes ---- */

/* The float-card is a horizontal pill (align-items:center), but the base .tf-icon
   carries margin-bottom:18px (meant for stacked cards), which pushed the icon
   above centre. Reset it so the icon sits inline with the label. */
.tf-float-card .tf-icon {
	margin-bottom: 0;
	height: 40px;
	width: 40px;
}

/* Keep the icon as a top-right badge with the text starting at the top of the
   card (floating it pushed the copy down, which looked worse). Just reserve a
   right-hand gutter so the heading AND the body copy always clear the icon with
   breathing room around it. The icon itself stays absolutely positioned (base
   rule: right/top 20px). */
.tf-card h3,
.tf-card > p {
	padding-right: 70px;
}

/* Labels under the showcase media so the images read as a deliberate platform
   showcase (relevant to the copy) rather than a random set. */
.tf-media-card {
	position: relative;
}

.tf-media-card figcaption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(16, 31, 58, 0.86);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}
