/*
Theme Name: WP Simple Audit Marketing
Theme URI: https://wpsimpleaudit.com/
Author: WP Simple Audit
Description: A focused Gutenberg marketing theme for WP Simple Audit.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: wpsa-marketing
*/

:root {
	--wpsa-ink: #132238;
	--wpsa-muted: #5c6878;
	--wpsa-blue: #2563eb;
	--wpsa-blue-dark: #1746b2;
	--wpsa-cyan: #24b6c9;
	--wpsa-mint: #dff8ef;
	--wpsa-paper: #f7f9fc;
	--wpsa-line: #dce3ed;
	--wpsa-shadow: 0 24px 70px rgba(19, 34, 56, 0.12);
	--wpsa-gutter: clamp(20px, 4vw, 48px);
	--wpsa-reading-width: 68ch;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	background: #fff;
	color: var(--wpsa-ink);
}

a { text-underline-offset: 0.18em; }

.wp-site-blocks { overflow: clip; }

.wp-site-blocks > *,
main.wp-block-group > * {
	margin-block-start: 0;
}

.wpsa-site-header,
.wpsa-hero,
.wpsa-section,
.wpsa-early-access,
.wpsa-footer {
	box-sizing: border-box;
	padding-right: var(--wpsa-gutter) !important;
	padding-left: var(--wpsa-gutter) !important;
}

#features,
#how-it-works,
#product-tour,
#security,
#faq,
#early-access { scroll-margin-top: 88px; }

.wpsa-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid rgba(220, 227, 237, 0.8);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(14px);
}

.wpsa-site-header > .alignwide { gap: clamp(16px, 3vw, 36px); }
.wpsa-site-header > .alignwide {
	box-sizing: border-box;
	width: 100%;
	margin-right: auto !important;
	margin-left: auto !important;
}
.wpsa-site-header .wp-block-site-title { white-space: nowrap; }
.wpsa-site-header .wp-block-navigation-item__content { padding: 8px 4px; }

.wpsa-brand-copy { gap: 0; }

.wpsa-brand-copy > * { margin-block-start: 0; }

.wpsa-brand-credit {
	margin: -2px 0 0;
	color: var(--wpsa-muted);
	font-size: 11px;
	line-height: 1.25;
}

.wpsa-brand-credit a {
	color: var(--wpsa-blue-dark);
	font-weight: 650;
	text-decoration: none;
}

.wpsa-brand-credit a:hover { text-decoration: underline; }

.wpsa-brand-mark {
	display: inline-grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 11px;
	background: linear-gradient(145deg, var(--wpsa-blue), #0e7490);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.wpsa-header-cta .wp-block-button__link,
.wpsa-primary-button .wp-block-button__link {
	box-shadow: 0 10px 25px rgba(37, 99, 235, 0.24);
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.wpsa-header-cta .wp-block-button__link:hover,
.wpsa-primary-button .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--wpsa-blue-dark) !important;
	box-shadow: 0 14px 32px rgba(23, 70, 178, 0.3);
	color: #fff !important;
	transform: translateY(-1px);
}

.wpsa-primary-button .wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid #a9c4f7;
	background: #f3f7ff !important;
	box-shadow: 0 8px 22px rgba(19, 34, 56, 0.08);
	color: var(--wpsa-blue-dark) !important;
}

.wpsa-primary-button .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wpsa-blue);
	background: #edf4ff !important;
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
	color: var(--wpsa-blue-dark) !important;
	transform: translateY(-1px);
}

.wpsa-header-cta .wp-block-button__link:active,
.wpsa-primary-button .wp-block-button__link:active {
	box-shadow: 0 5px 14px rgba(19, 34, 56, 0.18);
	transform: translateY(1px);
}

.wpsa-header-cta .wp-block-button__link:focus-visible,
.wpsa-primary-button .wp-block-button__link:focus-visible {
	outline: 3px solid rgba(36, 182, 201, 0.75);
	outline-offset: 3px;
}

.wpsa-hero {
	position: relative;
	padding-top: clamp(72px, 10vw, 132px) !important;
	padding-bottom: clamp(72px, 9vw, 120px) !important;
	background:
		radial-gradient(circle at 88% 10%, rgba(36, 182, 201, 0.14), transparent 30%),
		radial-gradient(circle at 7% 28%, rgba(37, 99, 235, 0.12), transparent 28%),
		linear-gradient(180deg, #f8fbff 0%, #fff 78%);
}

.wpsa-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid #bfd2fa;
	border-radius: 999px;
	background: #eff5ff;
	color: #1f52bd;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wpsa-hero h1 {
	max-width: 900px;
	margin-top: 24px;
	font-size: clamp(2.8rem, 6vw, 5rem) !important;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.wpsa-hero-copy {
	max-width: 720px;
	color: var(--wpsa-muted);
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.6;
	text-wrap: pretty;
}

.wpsa-primary-button .wp-block-button__link {
	font-size: 16px;
	line-height: 1.25;
}

.wpsa-proof-row {
	display: flex;
	gap: 18px 28px;
	flex-wrap: wrap;
	margin-top: 26px;
	color: #455267;
	font-size: 14px;
	font-weight: 600;
}

.wpsa-proof-row span::before {
	margin-right: 8px;
	color: #15966a;
	content: "✓";
	font-weight: 800;
}

.wpsa-product-frame {
	position: relative;
	margin-top: clamp(48px, 7vw, 84px) !important;
	padding: 10px;
	border: 1px solid #d9e1ec;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--wpsa-shadow);
}

.wpsa-section .wpsa-product-frame { margin-top: 0 !important; }

.wpsa-product-frame::before {
	display: block;
	height: 28px;
	border-bottom: 1px solid #e5eaf1;
	border-radius: 10px 10px 0 0;
	background: radial-gradient(circle at 11px 13px, #ff6b6b 0 4px, transparent 5px), radial-gradient(circle at 27px 13px, #f4bf4f 0 4px, transparent 5px), radial-gradient(circle at 43px 13px, #55c780 0 4px, transparent 5px), #f7f8fa;
	content: "";
}

.wpsa-product-frame img {
	display: block;
	width: 100%;
	border-radius: 0 0 10px 10px;
}

.wpsa-section { padding-block: clamp(72px, 9vw, 120px) !important; }

.wpsa-section-heading {
	max-width: 700px;
	margin-right: auto !important;
	margin-bottom: 44px !important;
	margin-left: auto !important;
	text-align: center;
}

.wpsa-section-heading h2 { letter-spacing: -0.035em; }

.wpsa-section-heading h2,
.wpsa-screenshot-copy h3,
.wpsa-trust-card h2,
.wpsa-early-access h2 { text-wrap: balance; }

.wpsa-section-heading p {
	color: var(--wpsa-muted);
	font-size: 18px;
	line-height: 1.65;
}

.wpsa-feature-grid {
	gap: clamp(18px, 2.5vw, 28px);
	align-items: stretch !important;
}

.wpsa-feature-card {
	height: 100%;
	box-sizing: border-box;
	padding: 28px !important;
	border: 1px solid var(--wpsa-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 35px rgba(19, 34, 56, 0.05);
}

.wpsa-feature-icon {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border-radius: 12px;
	background: #edf4ff;
	color: var(--wpsa-blue);
	font-size: 21px;
	font-weight: 800;
	line-height: 1;
}

.wpsa-feature-card h3 { margin-top: 20px; }

.wpsa-feature-card h3,
.wpsa-step h3 {
	font-size: 20px;
	line-height: 1.3;
}

.wpsa-feature-card p {
	color: var(--wpsa-muted);
	font-size: 16px;
	line-height: 1.65;
}

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

.wpsa-step {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 10px 22px;
	padding: 28px 20px !important;
	border-top: 1px solid var(--wpsa-line);
}

.wpsa-step:last-child { border-bottom: 1px solid var(--wpsa-line); }

.wpsa-step-number {
	display: grid;
	grid-row: 1 / span 2;
	grid-column: 1;
	width: 44px;
	height: 44px;
	margin: 0 !important;
	align-self: start;
	place-items: center;
	border-radius: 50%;
	background: var(--wpsa-ink);
	color: #fff;
	font-weight: 800;
}

.wpsa-step .wpsa-step-number { color: #fff; }

.wpsa-step h3 {
	grid-column: 2;
	margin: 4px 0 0 !important;
}

.wpsa-step p {
	max-width: var(--wpsa-reading-width);
	color: var(--wpsa-muted);
	font-size: 16px;
	line-height: 1.65;
}

.wpsa-step > p:not(.wpsa-step-number) {
	grid-column: 2;
	margin: 0 !important;
}

.wpsa-screenshot-copy { align-self: center; }

.wpsa-screenshot-copy h3 {
	font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important;
}

.wpsa-screenshot-copy ul {
	padding-left: 0;
	list-style: none;
}

.wpsa-screenshot-copy li {
	position: relative;
	margin: 14px 0;
	padding-left: 28px;
	color: var(--wpsa-muted);
}

.wpsa-screenshot-copy li::before {
	position: absolute;
	left: 0;
	color: #15966a;
	content: "✓";
	font-weight: 800;
}

.wpsa-trust-card {
	padding: clamp(28px, 5vw, 52px) !important;
	border: 1px solid #cfe7e0;
	border-radius: 18px;
	background: linear-gradient(135deg, #effbf7, #f8fcff);
}

.wpsa-trust-card .has-large-font-size { font-size: clamp(18px, 2vw, 21px) !important; line-height: 1.55; }
.wpsa-trust-card li { margin-block: 10px; font-size: 16px; line-height: 1.55; }

.wpsa-results-context { background: linear-gradient(180deg, #f4f8ff, #f8fbff); }

.wpsa-real-results {
	display: grid;
	gap: clamp(28px, 5vw, 56px);
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.wpsa-real-result {
	display: grid;
	grid-template-columns: minmax(260px, 0.86fr) minmax(360px, 1.14fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: clamp(26px, 4vw, 48px);
	border: 1px solid rgba(187, 202, 221, 0.82);
	border-radius: clamp(18px, 3vw, 28px);
	background: rgba(255, 255, 255, 0.74);
	box-shadow: 0 20px 48px rgba(19, 34, 56, 0.08);
}

.wpsa-real-result-copy {
	display: grid;
	align-content: start;
	gap: 6px;
	margin: 0;
}

.wpsa-real-result-copy h3 { margin: 0; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.2; }
.wpsa-real-result-copy p { margin: 4px 0 0; color: var(--wpsa-muted); font-size: 16px; line-height: 1.55; }

.wpsa-real-result-frame {
	overflow: hidden;
	margin: 0;
	border: 1px solid #cad6e5;
	border-radius: clamp(12px, 2vw, 20px);
	background: #fff;
	box-shadow: 0 16px 38px rgba(19, 34, 56, 0.13);
}

.wpsa-real-result-frame--scores {
	width: min(100%, 380px);
	margin-inline: auto;
}

.wpsa-real-result--report {
	grid-template-columns: minmax(420px, 1.32fr) minmax(240px, 0.68fr);
}

.wpsa-real-result--report .wpsa-real-result-copy { grid-column: 2; grid-row: 1; }
.wpsa-real-result--report .wpsa-real-result-frame { grid-column: 1; grid-row: 1; }

.wpsa-real-result-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.wpsa-example-label {
	color: var(--wpsa-blue-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}


.wpsa-faq {
	max-width: 860px;
	margin-inline: auto;
	border-bottom: 1px solid var(--wpsa-line);
}

.wpsa-faq details {
	padding: 20px 0;
	border-top: 1px solid var(--wpsa-line);
}

.wpsa-faq summary {
	position: relative;
	padding-right: 42px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	list-style: none;
}

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

.wpsa-faq summary::after {
	position: absolute;
	top: 50%;
	right: 4px;
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	background: #edf4ff;
	color: var(--wpsa-blue);
	content: "+";
	font-size: 20px;
	line-height: 1;
	transform: translateY(-50%);
}

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

.wpsa-faq details p {
	max-width: 760px;
	color: var(--wpsa-muted);
	font-size: 16px;
	line-height: 1.7;
}

.wpsa-early-access {
	position: relative;
	padding-block: clamp(70px, 9vw, 110px) !important;
	overflow: hidden;
	background: linear-gradient(135deg, #132238, #173f83);
	color: #fff;
}

.wpsa-early-access::after {
	position: absolute;
	top: -180px;
	right: -140px;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: rgba(36, 182, 201, 0.18);
	content: "";
}

.wpsa-early-access .wp-block-group { position: relative; z-index: 1; }

.wpsa-early-access p { color: #d8e3f4; }

.wpsa-early-access .has-large-font-size {
	font-size: clamp(18px, 2vw, 21px) !important;
	line-height: 1.6;
}

.wpsa-footer { border-top: 1px solid var(--wpsa-line); }

.wpsa-footer > .alignwide { gap: 18px 32px; }

body.wpsa-dialog-open { overflow: hidden; }

.wpsa-form-dialog {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
}

.wpsa-form-dialog[hidden] { display: none; }

.wpsa-form-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 20, 38, 0.72);
	backdrop-filter: blur(5px);
}

.wpsa-form-dialog-panel {
	position: relative;
	z-index: 1;
	width: min(100%, 680px);
	max-height: min(860px, calc(100vh - 48px));
	box-sizing: border-box;
	padding: clamp(28px, 5vw, 48px);
	overflow-y: auto;
	border: 1px solid #d7e0ed;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(7, 18, 36, 0.34);
}

.wpsa-form-dialog-panel h2 {
	margin: 8px 48px 10px 0;
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: -0.035em;
}

.wpsa-form-dialog-panel > div > p,
.wpsa-form-result > p {
	color: var(--wpsa-muted);
	font-size: 16px;
	line-height: 1.6;
}

.wpsa-form-dialog-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	width: 42px;
	height: 42px;
	padding: 0;
	place-items: center;
	border: 1px solid #ccd7e5;
	border-radius: 10px;
	background: #f7f9fc;
	color: var(--wpsa-ink);
	cursor: pointer;
	font-size: 27px;
	line-height: 1;
}

.wpsa-form-kicker {
	margin: 0;
	color: var(--wpsa-blue-dark) !important;
	font-size: 12px !important;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wpsa-early-access-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
	margin-top: 26px;
}

.wpsa-form-field { display: grid; gap: 7px; }
.wpsa-form-field--wide,
.wpsa-form-privacy,
.wpsa-form-submit { grid-column: 1 / -1; }

.wpsa-form-field label {
	font-size: 14px;
	font-weight: 700;
}

.wpsa-form-field input,
.wpsa-form-field select,
.wpsa-form-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 13px;
	border: 1px solid #b9c6d7;
	border-radius: 8px;
	background: #fff;
	color: var(--wpsa-ink);
	font: inherit;
}

.wpsa-form-field textarea { resize: vertical; }

.wpsa-form-field select {
	padding-right: 44px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23132238' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px 16px;
	cursor: pointer;
}

.wpsa-form-field select:hover { border-color: #8496ad; }

.wpsa-form-field input:focus,
.wpsa-form-field select:focus,
.wpsa-form-field textarea:focus,
.wpsa-form-dialog-close:focus-visible {
	border-color: var(--wpsa-blue);
	outline: 3px solid rgba(37, 99, 235, 0.18);
	outline-offset: 1px;
}

.wpsa-form-privacy {
	margin: 0;
	color: var(--wpsa-muted);
	font-size: 13px;
}

.wpsa-form-submit {
	justify-self: start;
	padding: 13px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--wpsa-blue);
	box-shadow: 0 10px 25px rgba(37, 99, 235, 0.24);
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 750;
}

.wpsa-form-submit:hover { background: var(--wpsa-blue-dark); }

.wpsa-form-honeypot {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 781px) {
	:root { --wpsa-gutter: clamp(18px, 5vw, 28px); }

	.wpsa-site-header > .alignwide { gap: 12px; }
	.wpsa-site-header { backdrop-filter: none; }
	.wpsa-site-header .wp-block-navigation { margin-left: auto; }
	.wpsa-site-header .wpsa-header-cta { display: none !important; }

	.wpsa-site-header .wp-block-navigation__responsive-container-content {
		align-items: center !important;
		justify-content: center !important;
	}

	.wpsa-site-header .wp-block-navigation__responsive-container .wp-block-navigation__container {
		align-items: center !important;
		gap: 24px !important;
	}

	.wpsa-site-header .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
		font-size: 1.35rem;
	}

	.wpsa-hero {
		padding-top: clamp(56px, 12vw, 84px) !important;
		padding-bottom: clamp(64px, 12vw, 88px) !important;
	}

	.wpsa-hero h1 { letter-spacing: -0.035em; }

	.wpsa-hero .wp-block-buttons,
	.wpsa-early-access .wp-block-buttons { width: 100%; }

	.wpsa-hero .wp-block-button,
	.wpsa-hero .wp-block-button__link,
	.wpsa-early-access .wp-block-button,
	.wpsa-early-access .wp-block-button__link {
		box-sizing: border-box;
		width: 100%;
		text-align: center;
	}

	.wpsa-proof-row {
		justify-content: flex-start !important;
		gap: 12px;
	}

	.wpsa-proof-row span { flex: 0 0 100%; }

	.wpsa-product-frame {
		padding: 6px;
		border-radius: 12px;
	}

	.wpsa-product-frame::before { height: 24px; }

	.wpsa-section {
		padding-top: clamp(60px, 12vw, 82px) !important;
		padding-bottom: clamp(60px, 12vw, 82px) !important;
	}

	.wpsa-section-heading {
		margin-bottom: 32px !important;
		text-align: left;
	}

	.wpsa-feature-card { padding: 24px !important; }

	.wpsa-step {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 8px 14px;
		padding: 24px 0 !important;
	}

	.wpsa-step-number {
		width: 40px;
		height: 40px;
	}

	.wpsa-screenshot-copy { margin-top: 8px; }
	#security .wpsa-screenshot-copy { order: 2; }
	#security .wp-block-column:last-child { order: 1; }
	.wpsa-trust-card { border-radius: 14px; }
	.wpsa-real-result,
	.wpsa-real-result--report { grid-template-columns: 1fr; }
	.wpsa-real-result-copy { align-items: start; }
	.wpsa-real-result--report .wpsa-real-result-copy,
	.wpsa-real-result--report .wpsa-real-result-frame { grid-column: 1; }
	.wpsa-real-result--report .wpsa-real-result-copy { grid-row: 1; }
	.wpsa-real-result--report .wpsa-real-result-frame { grid-row: 2; }

	.wpsa-footer > .alignwide {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	:root { --wpsa-gutter: 18px; }

	.wpsa-brand-mark {
		width: 34px;
		height: 34px;
		border-radius: 9px;
	}

	.wpsa-site-header .wp-block-site-title { font-size: 16px !important; }
	.wpsa-eyebrow { font-size: 12px; letter-spacing: 0.035em; }
	.wpsa-hero h1 { font-size: clamp(2.25rem, 10vw, 2.75rem) !important; line-height: 1.08; }
	.wpsa-section-heading p { font-size: 17px; }

	.wpsa-feature-card,
	.wpsa-trust-card { padding: 22px !important; }

	.wpsa-faq details { padding: 18px 0; }
	.wpsa-faq summary { font-size: 17px; }

	.wpsa-real-result-copy p { font-size: 16px; }
	.wpsa-real-result-frame { border-radius: 10px; }

	.wpsa-form-dialog { padding: 10px; }
	.wpsa-form-dialog-panel { max-height: calc(100vh - 20px); padding: 28px 20px; border-radius: 14px; }
	.wpsa-early-access-form { grid-template-columns: 1fr; }
	.wpsa-form-field--wide,
	.wpsa-form-privacy,
	.wpsa-form-submit { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wpsa-header-cta .wp-block-button__link,
	.wpsa-primary-button .wp-block-button__link { transition: none; }
}
