/* aoedia.com: one static page, no external fonts or scripts. Colors match the plugin. */

:root {
	--accent: #3b4fd8;
	--accent-hover: #2f40b8;
	--accent-soft: #eef0fc;
	--text: #1d2333;
	--muted: #5b6275;
	--border: #e3e6ee;
	--surface: #f5f7fb;
	--bg: #fff;
	--ok: #1f8a4c;
	--radius: 14px;
	--shadow: 0 20px 50px rgba(29, 35, 51, 0.12);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--accent: #7d8cf5;
		--accent-hover: #9aa6f8;
		--accent-soft: #23284a;
		--text: #e8eaf2;
		--muted: #a3a9bb;
		--border: #2c3142;
		--surface: #171a24;
		--bg: #0f1118;
		--ok: #4cc283;
		--shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
	}
}

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

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

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

body {
	margin: 0;
	font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.container {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.narrow {
	max-width: 760px;
}

.center {
	text-align: center;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	border-bottom: 1px solid var(--border);
	backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}

.nav {
	display: flex;
	gap: 28px;
}

.nav a {
	font-size: 15px;
	color: var(--muted);
	text-decoration: none;
}

.nav a:hover {
	color: var(--text);
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: background-color 0.15s, border-color 0.15s;
}

.button:hover {
	border-color: var(--accent);
}

.button.is-primary {
	color: #fff;
	background: var(--accent);
	border-color: var(--accent);
}

.button.is-primary:hover {
	background: var(--accent-hover);
}

/* Not a link yet: it becomes the WordPress.org link once the plugin is approved. */
.button.is-soon {
	cursor: default;
	opacity: 0.85;
}

.button.is-soon:hover {
	background: var(--accent);
}

/* Hero */

.hero {
	padding: 88px 0 72px;
	background:
		radial-gradient(1000px 420px at 85% -10%, var(--accent-soft), transparent 70%),
		var(--bg);
}

.hero-inner {
	max-width: 860px;
	text-align: center;
}

.eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 4px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 999px;
}

h1 {
	font-size: clamp(36px, 6vw, 60px);
	font-weight: 750;
}

.lead {
	max-width: 680px;
	margin: 22px auto 0;
	font-size: clamp(18px, 2.2vw, 21px);
	color: var(--muted);
}

.lead strong {
	color: var(--text);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 34px;
}

.fine {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.shot {
	margin: 0;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.hero-shot {
	margin-top: 64px;
}

/* Screenshots open full size (see the script at the end of index.html). */

.zoom {
	position: relative;
	display: block;
	cursor: zoom-in;
}

.zoom::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.15s;
}

.zoom:hover::after,
.zoom:focus-visible::after {
	opacity: 1;
}

.lightbox {
	max-width: 96vw;
	max-height: 94vh;
	padding: 0;
	overflow: auto;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	cursor: zoom-out;
}

.lightbox::backdrop {
	background: rgba(10, 12, 20, 0.8);
}

.lightbox img {
	display: block;
	width: auto;
	max-width: 96vw;
	max-height: 94vh;
}

.lightbox-close {
	position: fixed;
	top: 16px;
	right: 20px;
	width: 40px;
	height: 40px;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.55);
	border: 0;
	border-radius: 50%;
}

/* On small screens the full width of a screenshot is wider than the phone: let it scroll. */
@media (max-width: 720px) {
	.lightbox img {
		max-width: none;
		max-height: none;
		width: 1400px;
	}
}

/* Sections */

.section {
	padding: 96px 0;
}

.section.is-tinted {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

h2 {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
}

.section-lead {
	max-width: 640px;
	margin: 14px 0 0;
	font-size: 19px;
	color: var(--muted);
}

.center .section-lead {
	margin-right: auto;
	margin-left: auto;
}

/* Features */

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 44px;
}

.feature {
	padding: 26px 26px 24px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.feature h3 {
	font-size: 19px;
}

.feature h3::before {
	content: "";
	display: block;
	width: 28px;
	height: 28px;
	margin-bottom: 14px;
	background: var(--accent);
	/* The Aoedia sparkle, inline: browsers refuse a mask file when the page is opened from disk. */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.1 6.2a2 2 0 0 0 1.2 1.2l6.2 2.1-6.2 2.1a2 2 0 0 0-1.2 1.2L12 21.5l-2.1-6.2a2 2 0 0 0-1.2-1.2L2.5 12l6.2-2.1a2 2 0 0 0 1.2-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.1 6.2a2 2 0 0 0 1.2 1.2l6.2 2.1-6.2 2.1a2 2 0 0 0-1.2 1.2L12 21.5l-2.1-6.2a2 2 0 0 0-1.2-1.2L2.5 12l6.2-2.1a2 2 0 0 0 1.2-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.feature p {
	margin: 10px 0 0;
	font-size: 16px;
	color: var(--muted);
}

/* Steps */

.steps {
	margin: 52px 0 0;
	padding: 0;
	list-style: none;
}

.step {
	display: grid;
	grid-template-columns: 5fr 7fr;
	align-items: center;
	gap: 48px;
}

.step + .step {
	margin-top: 72px;
}

.step:nth-child(even) .step-text {
	order: 2;
}

.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	font-weight: 700;
	color: #fff;
	background: var(--accent);
	border-radius: 10px;
}

.step h3 {
	font-size: 26px;
}

.step p {
	margin: 12px 0 0;
	color: var(--muted);
}

/* Safety */

.safety {
	display: grid;
	grid-template-columns: 5fr 6fr;
	align-items: center;
	gap: 56px;
}

.checks {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.checks li {
	position: relative;
	margin: 0 0 16px;
	padding-left: 34px;
	color: var(--muted);
}

.checks strong {
	color: var(--text);
}

.checks li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 22px;
	height: 22px;
	background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
	border-radius: 50%;
}

/* FAQ */

details {
	margin-top: 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
}

details:first-of-type {
	margin-top: 36px;
}

summary {
	position: relative;
	padding: 18px 52px 18px 22px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

summary::-webkit-details-marker {
	display: none;
}

summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 22px;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: var(--muted);
	transform: translateY(-50%);
}

details[open] summary::after {
	content: "–";
}

details p {
	margin: 0;
	padding: 0 22px 20px;
	color: var(--muted);
}

summary:focus-visible,
.button:focus-visible,
.nav a:focus-visible,
.brand:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 8px;
}

/* Closing */

.closing img {
	margin: 0 auto 22px;
}

.closing .button {
	margin-top: 30px;
}

/* Footer */

.site-footer {
	padding: 36px 0;
	font-size: 14px;
	color: var(--muted);
	border-top: 1px solid var(--border);
}

.footer-inner p {
	margin: 0;
}

.footer-inner .muted {
	margin-top: 6px;
	opacity: 0.8;
}

/* Small screens */

@media (max-width: 900px) {
	.features {
		grid-template-columns: 1fr 1fr;
	}

	.step,
	.safety {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.step:nth-child(even) .step-text {
		order: 0;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.nav {
		display: none;
	}

	.hero {
		padding: 56px 0 48px;
	}

	.hero-shot {
		margin-top: 40px;
	}

	.section {
		padding: 64px 0;
	}

	.features {
		grid-template-columns: 1fr;
	}

	.actions .button {
		width: 100%;
	}
}
