/*
 * Page-Specific Custom Styles
 *
 * These styles target specific page content via body classes (page-id-*)
 * and custom CSS classes applied to Gutenberg blocks.
 *
 * To find which page a page-id refers to, check WordPress Admin > Pages.
 */

/* ==========================================================================
   Global Content Overrides
   ========================================================================== */

.logos-section-header {
	font-size: 1.4em;
	color: #0d0d0d;
}

.posts-page-description {
	display: none;
}

.wp-block-code code {
	background-color: #fff;
	color: #0d0d0d;
}

/* Gravity Forms submit button — override GF theme system to match block buttons */
.gform-theme input[type="submit"].gform_button,
.gform_wrapper input[type="submit"].gform_button,
.gform_button.button {
	background-color: #1F2937 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 9999px !important;
	padding: 11px 32px 14px !important;
	font-family: area-normal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.gform-theme input[type="submit"].gform_button:hover,
.gform_wrapper input[type="submit"].gform_button:hover,
.gform_button.button:hover {
	background-color: #374151 !important;
	transform: translateY(-1px);
}

/* Center button groups on mobile */
@media (max-width: 768px) {
	.wp-block-buttons.is-layout-flex {
		justify-content: center;
	}
}

/* ==========================================================================
   Pricing Page (page-id-399)
   ========================================================================== */

.page-id-399 h1 {
	margin-bottom: 40px;
}

/* ==========================================================================
   About Page (page-id-318)
   ========================================================================== */

.page-id-318 .block-content-indent {
	margin-left: 0;
}

/* ==========================================================================
   Home Page (page-id-504)
   ========================================================================== */

.page-id-504 .wp-block-embed-youtube {
	max-width: 900px;
}

.page-id-504 .site-content a {
	color: #0d0d0d;
	font-size: 18px;
	font-family: area-normal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 400;
}

.page-id-504 img.wp-image-980 {
	object-fit: contain;
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
}

.page-id-504 #prevent-dupes figure {
	margin: 0;
	padding: 0;
}

.page-id-504 .header-blurb {
	font-size: 14pt;
	line-height: 22pt;
}

/* Feature sections with screen recordings */

.feature-container {
	background-color: #ccc;
}

.screen-recording img {
	box-shadow: 0 0 20px 10px rgba(200, 200, 200, 0.3);
	border: 1px solid #efefef;
	display: block;
	margin: 20px;
}

.demo-group {
	background-color: #f9f9f9;
	padding: 40px;
	border-radius: 12px;
}

@media (min-width: 768px) {
	.feature-text-right {
		margin-left: 40px;
	}
}

@media (max-width: 768px) {
	.screen-recording-right .wp-block-columns,
	.screen-recording-left .wp-block-columns {
		flex-direction: column;
	}

	.screen-recording-right .wp-block-column:nth-child(1) {
		order: 1;
	}

	.screen-recording-right .wp-block-column:nth-child(2) {
		order: 2;
	}

	.screen-recording-left .wp-block-column:nth-child(1) {
		order: 2;
	}

	.screen-recording-left .wp-block-column:nth-child(2) {
		order: 1;
	}

	.screen-recording {
		margin: 0 auto;
		width: 100%;
		max-width: 100%;
		text-align: center;
	}

	.screen-recording figure {
		margin: 0 auto;
		width: 100%;
		text-align: center;
		float: none;
	}

	.screen-recording img {
		width: 100%;
		height: auto;
		max-width: 550px;
		margin: 20px auto;
		display: block;
		box-shadow: 0 0 20px 10px rgba(200, 200, 200, 0.3);
		border: 1px solid #efefef;
		object-fit: cover;
	}

	.screen-recording .alignleft,
	.screen-recording .alignright {
		float: none;
		display: block;
		margin-left: auto;
		margin-right: auto;
	}

	.feature-text-left,
	.feature-text-right {
		margin-top: 32px;
	}

	.page-id-504 .header-blurb {
		font-size: 12pt;
		line-height: 22pt;
	}

	.header-demo-link {
		justify-content: center;
		text-align: center;
	}

	.demo-group {
		background-color: transparent;
		padding: 0;
		border-radius: 0;
	}
}

/* ==========================================================================
   Link-style Buttons with Icons (.link-buttons)
   Apply "link-buttons" to a Buttons block, then "forward" or "play-circle"
   to individual Button blocks via Advanced > Additional CSS class(es).
   ========================================================================== */

.link-buttons .wp-block-button__link {
	background: transparent !important;
	color: #0d0d0d !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	font-weight: 400 !important;
	text-decoration: underline;
	transition: none;
}

.link-buttons .wp-block-button__link:hover {
	background: transparent !important;
	text-decoration: underline;
	transform: none;
}

.link-buttons .wp-block-button.forward .wp-block-button__link::before,
.link-buttons .wp-block-button.play-circle .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 24px;
	margin-top: 4px;
	margin-right: 6px;
	background-color: currentColor;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.link-buttons .wp-block-button.forward .wp-block-button__link::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m640-280-57-56 184-184-184-184 57-56 240 240-240 240ZM80-200v-160q0-83 58.5-141.5T280-560h247L383-704l57-56 240 240-240 240-57-56 144-144H280q-50 0-85 35t-35 85v160H80Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m640-280-57-56 184-184-184-184 57-56 240 240-240 240ZM80-200v-160q0-83 58.5-141.5T280-560h247L383-704l57-56 240 240-240 240-57-56 144-144H280q-50 0-85 35t-35 85v160H80Z'/%3E%3C/svg%3E");
}

.link-buttons .wp-block-button.play-circle .wp-block-button__link::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m380-300 280-180-280-180v360ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m380-300 280-180-280-180v360ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E");
}
