/* Flex Export Docs — responsive overrides (16px root; match live breakpoints) */

/* —— Large tablet / small desktop —— */
@media (max-width: 1200px) {
	body header#masthead .primary-navigation ul.menu-wrapper {
		gap: 0 1rem;
	}
	body header#masthead .primary-navigation ul.menu-wrapper li.menu-item a {
		font-size: 0.8125rem;
	}
	body header#masthead .site-brand .brand-tagline {
		font-size: 9.5px;
	}
	body #content .vc_section[class*="fe-"] > .vc_row {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	body footer#colophon .footer-grid {
		gap: 2rem;
	}
	body footer#colophon .footer-links {
		gap: 1.5rem;
	}
}

/* —— Tablet (lg) —— */
@media (max-width: 1024px) {
	body header#masthead .primary-navigation {
		display: none;
	}
	body header#masthead .header-actions .header-login {
		display: none;
	}
	body header#masthead .mobile-menu-toggle {
		display: block;
	}
	body header#masthead .header-inner {
		gap: 1rem;
	}
	body header#masthead .site-brand .brand-tagline {
		max-width: 14rem;
		white-space: normal;
		line-height: 1.2;
	}

	body #content .main-head {
		font-size: clamp(1.75rem, 4vw, 2.25rem);
	}
	body #content .hero-head,
	body #content .hero-head h1 {
		font-size: clamp(2.25rem, 6vw, 3rem) !important;
		line-height: 1.1 !important;
	}
	body #content .vc_section[class*="fe-"] > .vc_row {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	/* Hero: stack copy + dashboard */
	body #content .fe-hero {
		padding: 3.5rem 0 4rem;
	}
	body #content .fe-hero .hero-row {
		grid-template-columns: 1fr !important;
		gap: 2.5rem !important;
	}
	body #content .fe-hero .hero-copy > .vc_column-inner > .wpb_wrapper {
		align-items: flex-start;
	}
	body #content .fe-hero .hero-btns .wpb_wrapper {
		width: 100%;
	}

	/* Section spacing */
	body #content .fe-compare,
	body #content .fe-workflow,
	body #content .fe-steps,
	body #content .fe-industries,
	body #content .fe-impact,
	body #content .fe-pricing,
	body #content .fe-about {
		padding: 4.5rem 0;
	}
	body #content .fe-cta {
		padding: 3rem 0 4rem;
	}

	/* Compare cards stack */
	body #content .fe-compare .compare-row {
		display: flex !important;
		flex-direction: column !important;
		gap: 1.25rem !important;
	}
	body #content .fe-compare .compare-row > .wpb_column {
		width: 100% !important;
		float: none !important;
	}

	/* Steps: 3 → wrap */
	body #content .fe-steps .steps-row {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 2rem !important;
		justify-content: center;
	}
	body #content .fe-steps .steps-row > .wpb_column {
		width: calc(50% - 1rem) !important;
		float: none !important;
		max-width: 20rem;
	}

	/* Impact stats */
	body #content .fe-impact .stats-row {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 1.25rem !important;
		justify-content: center;
	}
	body #content .fe-impact .stats-row > .wpb_column {
		width: calc(50% - 0.75rem) !important;
		float: none !important;
	}

	/* About: stack */
	body #content .fe-about .about-row {
		display: flex !important;
		flex-direction: column !important;
		gap: 1.5rem !important;
	}
	body #content .fe-about .about-row > .wpb_column {
		width: 100% !important;
		float: none !important;
	}

	/* Pricing card full width */
	body #content .fe-pricing .wpb_column.price-card {
		width: 100% !important;
		max-width: 28rem;
		margin-left: auto;
		margin-right: auto;
		float: none !important;
	}
	body #content .fe-pricing .vc_row > .wpb_column:not(.price-card) {
		display: none !important;
	}

	/* Built card — side spacers off, card full width */
	body #content .fe-industries .wpb_column.built-card {
		width: 100% !important;
		float: none !important;
		max-width: 48rem;
		margin-left: auto;
		margin-right: auto;
	}
	body #content .fe-industries .vc_row:has(.built-card) > .wpb_column:not(.built-card) {
		display: none !important;
	}

	/* Blog */
	body #content .fe-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.35rem;
	}
	body #content .fe-blog-hero h1,
	body #content .fe-blog-single-hero h1 {
		font-size: 2.35rem;
	}

	/* Guide page — stack below lg (match live lg: breakpoint) */
	body #content .vc_section.fe-guide-hero > .vc_row,
	body #content .vc_section.fe-guide-page > .vc_row,
	body #content .vc_section.fe-guide-cta > .vc_row {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	body #content .vc_row.fe-guide-shell {
		flex-wrap: wrap !important;
		gap: 1.5rem;
	}
	body #content .vc_row.fe-guide-shell > .wpb_column.fe-guide-aside,
	body #content .vc_row.fe-guide-shell > .wpb_column.fe-guide-article {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}
	body #content .wpb_column.fe-guide-aside {
		position: static !important;
		top: auto !important;
		max-height: none !important;
		overflow: visible !important;
		padding-right: 0;
	}
	body #content .fe-guide-toc-toggle {
		display: flex;
	}
	body #content .wpb_text_column.fe-guide-toc {
		display: none;
	}
	body #content .wpb_text_column.fe-guide-toc.is-open {
		display: block;
		margin-bottom: 0.5rem;
		border: 1px solid var(--fe-gray-200, #e5e7eb);
		border-radius: 0.75rem;
		padding: 0.75rem;
		background: #fff;
	}
	body #content .vc_section.fe-guide-hero h1 {
		font-size: 2.5rem;
	}
	body #content .fe-guide-section-head h2 {
		font-size: 1.5rem;
	}
	body #content .fe-guide-section-head .fe-guide-copy {
		opacity: 1;
	}

	/* FAQs page */
	body #content .vc_section.fe-faqs-hero {
		padding: 6.5rem 0 3.5rem;
	}
	body #content .vc_section.fe-faqs-hero h1 {
		font-size: 2.5rem;
	}
	body #content .vc_section.fe-faqs-hero > .vc_row,
	body #content .vc_section.fe-faqs-page > .vc_row,
	body #content .vc_section.fe-faqs-cta > .vc_row {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	body #content .vc_section.fe-faqs-page {
		padding: 3rem 0;
	}
	body #content .vc_section.fe-faqs-cta h2 {
		font-size: 1.875rem;
	}

	/* Features page */
	body #content .vc_section.fe-features-hero h1 {
		font-size: 2.75rem;
	}
	body #content .vc_section.fe-feature-section .fe-feature-header h2 {
		font-size: 2rem;
	}
	body #content .vc_section.fe-feature-section .vc_row.fe-feature-row,
	body #content .vc_section.fe-feature-section .vc_row.fe-feature-row.is-reverse {
		flex-direction: column !important;
	}
	body #content .vc_section.fe-feature-section .vc_row.fe-feature-row > .wpb_column {
		width: 100% !important;
	}

	/* Footer — live stacks brand/links below lg; links stay 3-col from sm */
	body footer#colophon .footer-inner {
		padding: 4rem 1.5rem 5rem;
	}
	body footer#colophon .footer-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	body footer#colophon .footer-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem;
	}
}

/* —— Workflow / no-templates —— */
@media (max-width: 900px) {
	body #content .fe-workflow .workflow-step .vc_row-inner,
	body #content .fe-workflow .workflow-step {
		display: flex !important;
		flex-direction: column !important;
		gap: 0.75rem !important;
	}
	body #content .fe-workflow .step-icon-col,
	body #content .fe-workflow .step-body-col {
		width: 100% !important;
		max-width: none !important;
		float: none !important;
	}
	body #content .fe-workflow .no-templates-inner {
		display: flex !important;
		flex-direction: column !important;
		gap: 1.5rem !important;
	}
	body #content .fe-workflow .no-templates-inner > .wpb_column {
		width: 100% !important;
		float: none !important;
	}
	body #content .fe-workflow .pill-row {
		grid-template-columns: 1fr;
	}
}

/* —— Mobile —— */
@media (max-width: 768px) {
	body .container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	body header#masthead .header-inner.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	body header#masthead .site-brand .brand-tagline {
		display: none;
	}
	body header#masthead .header-actions .header-cta {
		padding: 0.5rem 0.9rem;
		font-size: 0.8125rem;
	}
	body nav#mm-menu.mobile-nav {
		padding: 1rem 1rem 1.25rem;
	}

	body #content .main-head {
		font-size: 1.75rem;
	}
	body #content .hero-head,
	body #content .hero-head h1 {
		font-size: 2.25rem !important; /* ~live 36–48; 2.25rem@16=36, bump below */
		font-size: 2.5rem !important;
		line-height: 1.15 !important;
		margin-bottom: 1.25rem !important;
	}
	body #content .txt p {
		font-size: 1.125rem;
		margin-bottom: 1.5rem;
	}
	body #content .section-lead,
	body #content .section-intro .section-lead {
		font-size: 1rem;
	}
	body #content .vc_section[class*="fe-"] > .vc_row {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	body #content .fe-hero {
		padding: 2.5rem 0 3rem;
	}
	body #content .fe-hero .hero-btns .wpb_wrapper {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}
	body #content .fe-hero .hero-btns .vc_btn3-container,
	body #content .fe-hero .hero-btns .vc_btn3 {
		width: 100% !important;
		justify-content: center;
	}
	body #content .fe-hero .trust-row .wpb_wrapper,
	body #content .fe-hero .trust-row .wpb_wrapper > p {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.65rem !important;
	}
	body #content .fe-hero .hero-visual .hero-dash-label,
	body #content .fe-hero .hero-visual .wpb_custom_heading.hero-dash-label {
		padding-left: 4.5rem !important;
	}

	body #content .fe-compare,
	body #content .fe-workflow,
	body #content .fe-steps,
	body #content .fe-industries,
	body #content .fe-impact,
	body #content .fe-pricing,
	body #content .fe-about {
		padding: 3.5rem 0;
	}
	body #content .fe-partners {
		padding: 2rem 0 1rem;
	}
	body #content .fe-partners-bar {
		padding: 2rem 0;
	}
	body #content .fe-cta {
		padding: 2.5rem 0 3.5rem;
	}
	body #content .fe-workflow .workflow-step-row{width: 100% !important;}

	/* Steps → single column */
	body #content .fe-steps .steps-row > .wpb_column {
		width: 100% !important;
		max-width: none;
	}

	/* Impact → single column */
	body #content .fe-impact .stats-row > .wpb_column {
		width: 100% !important;
	}

	/* Industry pills */
	body #content .fe-industries .industry-tags {
		gap: 10px;
		margin-bottom: 2rem;
	}
	body #content .fe-industries .industry-tag {
		padding: 8px 12px;
		font-size: 13px;
		gap: 6px;
	}
	body #content .fe-industries .industry-tag img {
		width: 18px;
		height: 18px;
	}
	body #content .fe-industries .wpb_column.built-card > .vc_column-inner {
		padding: 2rem 1.25rem !important;
	}
	body #content .fe-industries .built-card .built-title,
	body #content .fe-industries .built-card h3 {
		font-size: 1.5rem !important;
	}

	/* Partners marquee */
	body #content .fe-partners-bar .partner-slide {
		padding: 0 1rem;
	}
	body #content .fe-partners-bar .partner-logos > .partner-slide > span,
	body #content .fe-partners-bar .partner-logos .slick-slide > span {
		min-width: 4.5rem;
		font-size: 0.75rem;
		gap: 0.35rem;
	}
	body #content .fe-partners-bar .partner-logos img {
		width: 24px;
		height: 24px;
	}
	body #content .fe-partners-bar .partner-bsd img {
		height: 28px;
	}

	/* CTA */
	body #content .fe-cta .wpb_column.cta-box > .vc_column-inner {
		padding: 2.5rem 1.25rem 2rem !important;
	}
	body #content .fe-cta .cta-box .vc_btn3-container {
		display: flex !important;
		width: 100%;
		margin: 0 0 0.75rem !important;
	}
	body #content .fe-cta .cta-box .vc_btn3 {
		width: 100%;
		justify-content: center;
	}
	body #content .fe-cta .cta-box .cta-trust ul {
		flex-direction: column !important;
		align-items: center !important;
		gap: 0.65rem !important;
	}

	/* Generic full-width buttons on mobile */
	body #content .hero-btns .vc_btn3-container,
	body #content .workflow-cta .vc_btn3-container,
	body #content .steps-cta .vc_btn3-container {
		width: 100%;
	}
	body #content .workflow-cta .vc_btn3,
	body #content .steps-cta .vc_btn3 {
		width: 100%;
		justify-content: center;
	}

	/* Features page */
	body #content .vc_section.fe-features-hero {
		padding: 6.5rem 0 3rem;
	}
	body #content .vc_section.fe-features-hero h1 {
		font-size: 2.25rem;
		line-height: 1.1;
	}
	body #content .vc_section.fe-feature-section {
		padding: 3rem 0;
	}
	body #content .vc_section.fe-feature-section .fe-feature-header-row {
		margin-bottom: 2rem !important;
	}
	body #content .vc_section.fe-feature-section .fe-feature-header h2 {
		font-size: 1.75rem;
	}
	body #content .vc_section.fe-feature-section .vc_row.fe-feature-row {
		margin-bottom: 3rem !important;
	}
	body #content .vc_section.fe-feature-section .feature-card-copy .feature-card-head h3 {
		font-size: 1.25rem;
	}
	body #content .vc_section.fe-features-cta {
		padding: 3.5rem 0;
	}
	body #content .vc_section.fe-features-cta h2 {
		font-size: 1.75rem;
	}

	/* Footer — live: bar stacks below md; extra bottom pad for float (pb-28) */
	body footer#colophon .footer-inner {
		padding: 4rem 1rem 7rem;
	}
	body footer#colophon .footer-newsletter {
		margin-bottom: 3rem;
	}
	body footer#colophon .footer-main {
		margin-bottom: 3rem;
	}
	body footer#colophon .footer-bar-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 1rem;
	}

	/* Inner pages */
	body #content .page-hero-simple h1 {
		font-size: 2rem;
	}
	body #content .vc_section.fe-guide-hero {
		padding: 5.5rem 0 2rem;
	}
	body #content .vc_section.fe-guide-hero h1 {
		font-size: 1.85rem;
	}
	body #content .fe-guide-section-head h2 {
		font-size: 1.35rem;
	}
	body #content .fe-blog-container {
		padding: 0 1.25rem;
	}
	body #content .fe-blog-grid {
		grid-template-columns: 1fr;
	}
	body #content .fe-blog-hero {
		padding: 5.5rem 0 2.25rem;
	}
	body #content .fe-blog-hero h1,
	body #content .fe-blog-single-hero h1 {
		font-size: 1.85rem;
	}
	body #content .fe-blog-single-hero {
		padding: 5.25rem 0 1.75rem;
	}
	body #content .fe-blog-single-featured .fe-blog-featured-img {
		max-height: 240px;
	}
}

/* —— Footer sm (<640): live form stacks; links 2-col; logo scales —— */
@media (max-width: 639px) {
	body footer#colophon .footer-newsletter .footer-newsletter-form .footer-newsletter-row {
		flex-direction: column;
		flex-wrap: wrap;
	}
	body footer#colophon .footer-newsletter .footer-newsletter-form input[type="text"],
	body footer#colophon .footer-newsletter .footer-newsletter-form input[type="email"],
	body footer#colophon .footer-newsletter .footer-newsletter-form button[type="submit"] {
		flex: 1 1 auto;
		width: 100%;
	}
	body footer#colophon .footer-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem;
	}
	body footer#colophon .footer-logo-card .brand-icon {
		width: 48px;
		height: 48px;
	}
	body footer#colophon .footer-logo-card .brand-flex {
		font-size: 21px;
	}
	body footer#colophon .footer-logo-card .brand-rest {
		font-size: 1.4375rem;
	}
	body footer#colophon .footer-logo-card .brand-tagline {
		font-size: 10.5px;
		white-space: normal;
	}
}

/* —— Small phones —— */
@media (max-width: 480px) {
	body #content .hero-head,
	body #content .hero-head h1 {
		font-size: 2rem !important;
	}
	body #content .fe-industries .industry-tag {
		padding: 7px 10px;
		font-size: 12px;
	}
	body #content .fe-compare .wpb_column.compare-card > .vc_column-inner > .wpb_wrapper {
		padding: 1.25rem !important;
	}
	body #content .fe-impact .stat-card .stat-num {
		font-size: 2.5rem;
	}
	body header#masthead .site-brand .brand-rest {
		font-size: 1.25rem;
	}
	body header#masthead .site-brand .brand-flex {
		font-size: 16px;
	}
}
