/* Homepage hero — mobile: centered copy, dashboard preview below (no 6 points) */

@media (max-width: 991px) {
	body.home {
		--autonemo-home-header-h: 76px;
	}

	body.home .header-area.style-2 > .container {
		padding-top: 12px !important;
		padding-bottom: 12px !important;
	}

	body.home .header-area .company-logo img,
	body.home .header-area .company-logo .custom-logo-link img,
	body.home .header-area .company-logo .logo-dark img,
	body.home .header-area .company-logo .logo-light img {
		max-height: 34px !important;
	}

	body.home .header-area .nav-right .sidebar-and-btn .sidebar-btn {
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
	}

	body.home .header-area .nav-right .sidebar-and-btn .sidebar-btn::before {
		width: 26px !important;
		box-shadow:
			0 -9px 0 var(--autonemo-black, #1a1a1a),
			0 9px 0 var(--autonemo-black, #1a1a1a) !important;
	}

	body.home .home3-banner-section.autonemo-hero-v2::before {
		display: none !important;
	}

	body.home .home3-banner-section.autonemo-hero-v2::after {
		display: none !important;
	}

	body.home .home3-banner-section.autonemo-hero-v2 {
		min-height: auto !important;
		padding-top: calc(var(--autonemo-home-header-h, 76px) + 8px) !important;
		padding-bottom: 18px !important;
		background-color: #f4f8fb !important;
	}

	body.home .home3-banner-section.autonemo-hero-v2 > .container {
		position: relative;
		z-index: 3;
	}

	.autonemo-hero-v2__grid {
		position: relative;
		display: flex !important;
		flex-direction: column !important;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		min-height: auto;
		overflow: visible;
		margin-top: 0 !important;
	}

	/* Flatten copy so dashboard can sit between text and buttons */
	.autonemo-hero-v2__copy,
	.autonemo-hero-v2__copy .banner-content {
		display: contents;
	}

	.autonemo-hero-v2 .banner-content > span {
		order: 1;
		align-self: center;
		margin-bottom: 12px !important;
		padding: 8px 15px;
		font-size: 13px;
		letter-spacing: 0.05em;
	}

	.autonemo-hero-v2 .banner-content h1 {
		order: 2;
		font-size: clamp(1.68rem, 6.2vw, 2.08rem) !important;
		line-height: 1.18 !important;
		margin-bottom: 14px !important;
	}

	.autonemo-hero-v2 .banner-content p {
		order: 3;
		font-size: 0.8rem !important;
		line-height: 1.55;
		max-width: min(100%, 540px);
		width: 100%;
		margin: 0 auto 14px !important;
		padding: 0 !important;
		border-bottom: none !important;
		box-shadow: none !important;
		text-align: center !important;
	}

	.autonemo-hero-showcase {
		order: 4;
	}

	.autonemo-hero-v2 .banner-content-bottom {
		order: 5;
	}

	.autonemo-hero-v2 .banner-content h1 .autonemo-hero-brand {
		display: inline;
		white-space: normal;
		font-size: 0.92em;
		text-align: center;
	}

	.autonemo-hero-v2 .banner-content h1 {
		text-align: center !important;
		width: 100%;
		max-width: min(100%, 540px);
		margin-left: auto;
		margin-right: auto;
	}

	/* Hide 6 feature points on mobile — dashboard preview replaces them */
	.autonemo-hero-v2 .banner-content ul {
		display: none !important;
	}

	.autonemo-hero-v2 .banner-content-bottom {
		flex-direction: row !important;
		flex-wrap: nowrap;
		align-items: stretch !important;
		justify-content: center !important;
		gap: 10px !important;
		width: 100%;
		max-width: min(100%, 340px);
		margin: 16px auto 0 !important;
		padding: 0 6px;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1 {
		position: relative;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		max-width: none;
		min-height: 46px;
		padding: 12px 10px !important;
		font-size: 13px !important;
		font-weight: 700 !important;
		letter-spacing: 0.02em;
		line-height: 1.2 !important;
		border-radius: 12px !important;
		white-space: nowrap;
		overflow: hidden;
		transition:
			transform 0.2s ease,
			box-shadow 0.2s ease,
			background-color 0.2s ease,
			border-color 0.2s ease,
			color 0.2s ease;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1 > span,
	.autonemo-hero-v2 .banner-content-bottom .primary-btn1::after {
		font-size: 13px !important;
		font-weight: 700 !important;
		line-height: 1.2 !important;
	}

	/* Disable theme slide label on mobile hero CTAs */
	.autonemo-hero-v2 .banner-content-bottom .primary-btn1::after {
		display: none !important;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1 > span {
		transform: none !important;
		opacity: 1 !important;
		position: relative;
		z-index: 1;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1::before {
		opacity: 0 !important;
	}

	/* Request Demo — primary gradient */
	.autonemo-hero-v2 .banner-content-bottom .primary-btn1:not(.autonemo-hero-features-btn) {
		border: none !important;
		background: linear-gradient(135deg, #e2231a 0%, #c41a12 52%, #a81610 100%) !important;
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
		box-shadow:
			0 10px 28px rgba(226, 35, 26, 0.34),
			0 2px 8px rgba(226, 35, 26, 0.18);
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1:not(.autonemo-hero-features-btn) > span {
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1:not(.autonemo-hero-features-btn):active {
		transform: scale(0.98);
		box-shadow:
			0 6px 18px rgba(226, 35, 26, 0.28),
			0 1px 4px rgba(226, 35, 26, 0.14);
	}

	/* How works — outline + play icon */
	.autonemo-hero-v2 .banner-content-bottom .primary-btn1.autonemo-hero-features-btn {
		gap: 6px;
		padding: 12px 8px !important;
		border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
		background: rgba(255, 255, 255, 0.96) !important;
		color: #0f172a !important;
		-webkit-text-fill-color: #0f172a !important;
		box-shadow:
			0 8px 22px rgba(15, 23, 42, 0.08),
			inset 0 1px 0 rgba(255, 255, 255, 0.9);
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1.autonemo-hero-features-btn > span {
		color: #0f172a !important;
		-webkit-text-fill-color: #0f172a !important;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1.autonemo-hero-features-btn::after {
		content: none !important;
		display: none !important;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1.autonemo-hero-features-btn::before {
		content: "";
		position: static;
		opacity: 1 !important;
		flex-shrink: 0;
		width: 24px;
		height: 24px;
		border-radius: 50%;
		background-color: rgba(226, 35, 26, 0.1);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e2231a'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 11px 11px;
		box-shadow: inset 0 0 0 1px rgba(226, 35, 26, 0.12);
		z-index: 1;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1.autonemo-hero-features-btn:active {
		transform: scale(0.98);
		border-color: rgba(226, 35, 26, 0.28) !important;
		background: #ffffff !important;
	}

	/* Dashboard preview — visible block between copy and buttons */
	.autonemo-hero-showcase {
		display: block !important;
		position: relative !important;
		inset: auto !important;
		transform: none !important;
		flex: 0 0 auto !important;
		width: min(100%, 420px) !important;
		max-width: 420px !important;
		min-width: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 auto 14px !important;
		padding: 0 4px;
		z-index: 1;
		border-radius: 16px;
		pointer-events: none;
		overflow: hidden;
		box-shadow:
			0 18px 40px rgba(15, 23, 42, 0.12),
			0 4px 14px rgba(15, 23, 42, 0.06);
	}

	.autonemo-hero-showcase__mask {
		opacity: 1 !important;
		height: auto !important;
		border-radius: 16px;
		overflow: hidden;
		-webkit-mask-image: none !important;
		mask-image: none !important;
	}

	.autonemo-hero-showcase__track {
		animation: none !important;
		transform: none !important;
	}

	.autonemo-hero-showcase__panel + .autonemo-hero-showcase__panel {
		display: none !important;
	}

	.autonemo-hero-showcase__shot {
		display: block;
		width: 100%;
		max-width: 100%;
		height: auto;
		margin: 0;
		border-radius: 16px;
		box-shadow: none;
	}
}

@media (max-width: 575px) {
	body.home {
		--autonemo-home-header-h: 62px;
	}

	body.home .header-area .company-logo img,
	body.home .header-area .company-logo .custom-logo-link img,
	body.home .header-area .company-logo .logo-dark img,
	body.home .header-area .company-logo .logo-light img {
		max-height: 32px !important;
	}

	.autonemo-hero-v2__grid {
		gap: 14px;
	}

	.autonemo-hero-showcase {
		width: min(100%, 360px) !important;
		max-width: 360px !important;
		border-radius: 14px;
		box-shadow:
			0 14px 32px rgba(15, 23, 42, 0.1),
			0 3px 10px rgba(15, 23, 42, 0.05);
	}

	.autonemo-hero-showcase__mask,
	.autonemo-hero-showcase__shot {
		border-radius: 14px;
	}

	.autonemo-hero-v2 .banner-content > span {
		font-size: 12px;
		padding: 7px 14px;
	}

	.autonemo-hero-v2 .banner-content h1 {
		font-size: clamp(1.52rem, 6.8vw, 1.78rem) !important;
	}

	.autonemo-hero-v2 .banner-content-bottom {
		max-width: min(100%, 320px);
		gap: 8px !important;
		margin-top: 14px !important;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1 {
		min-height: 44px;
		padding: 11px 8px !important;
		font-size: 12px !important;
		border-radius: 11px !important;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1 > span,
	.autonemo-hero-v2 .banner-content-bottom .primary-btn1::after {
		font-size: 12px !important;
	}

	.autonemo-hero-v2 .banner-content-bottom .primary-btn1.autonemo-hero-features-btn::before {
		width: 22px;
		height: 22px;
		background-size: 10px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.autonemo-hero-showcase__track {
		animation: none !important;
		transform: none !important;
	}
}
