/*
Theme Name: AIToolkits Dev Studio
Theme URI: https://aitoolkits.dev
Author: AIToolkits Dev Studio
Author URI: https://aitoolkits.dev
Description: High-performance FSE block theme for AIToolkits Dev Studio. A switchable 3-palette colour system, programmatic Knowledge Base & Product CPTs, SVG dark mode, and Lemon Squeezy checkout. Built block-first so every page is editable in the Site Editor.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.2.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aitoolkits-dev-studio
Tags: full-site-editing, block-theme, block-styles, block-patterns, one-column, two-columns, three-columns, wide-blocks, custom-colors, custom-menu, custom-logo, featured-images, translation-ready, blog, e-commerce, rtl-language-support
*/

/* ==========================================================================
   1. Design tokens — Cool clarity (default)
   --------------------------------------------------------------------------
   These are the *static* defaults. The palette-switcher snippet overrides
   them at runtime when a different palette is selected, so the theme keeps
   a usable look even before the snippet is installed.
   ========================================================================== */

:root {
	/* Palette slug → var(--svp-*) mirrors. */
	--svp-bg: #F4F8F9;
	--svp-surface: #FFFFFF;
	--svp-surface-alt: #E8EFEF;
	--svp-text: #16232B;
	--svp-muted: #5C7078;
	--svp-border: #DCE6E6;
	--svp-accent: #1FA97F;
	--svp-accent-ink: #12805F;
	--svp-accent-soft: rgba(31, 169, 127, 0.12);
	--svp-accent-alt: #F4633A;
	--svp-contrast: #16232B;
	--svp-inverse: #F4F8F9;

	/* Composite tokens (used by older rules / inline icons). */
	--svp-accent-hover: #12805F;
	--svp-shadow: 0 1px 2px rgba(13, 20, 23, 0.06), 0 8px 24px rgba(13, 20, 23, 0.06);
	--svp-shadow-lift: 0 2px 4px rgba(13, 20, 23, 0.08), 0 16px 40px rgba(13, 20, 23, 0.12);
	--svp-radius: 10px;
	--svp-radius-lg: 16px;
	--svp-radius-xl: 24px;
	--svp-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
	color-scheme: light;
}

/* Dark mode tokens. The class is written to <html> by the inline head script
   (no-flash) and mirrored onto <body> by assets/js/dark-mode.js, so the bare
   `.dark-theme` selector covers either host element. We *also* remap the
   `--wp--preset--color--*` variables here so any core block that uses a
   palette swatch automatically picks up dark-mode colours — no
   `!important` rewrite of `.has-*-background-color` needed. */
.dark-theme {
	--svp-bg: #0D1417;
	--svp-surface: #131C20;
	--svp-surface-alt: #1A262B;
	--svp-text: #EAF3F4;
	--svp-muted: #8DA3AA;
	--svp-border: #22303A;
	--svp-accent: #1FA97F;
	--svp-accent-ink: #4FD1A5;
	--svp-accent-soft: rgba(31, 169, 127, 0.18);
	--svp-accent-alt: #F4633A;
	--svp-contrast: #0B1216;
	--svp-inverse: #F4F8F9;
	--svp-accent-hover: #4FD1A5;
	--svp-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
	--svp-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 18px 44px rgba(0, 0, 0, 0.45);

	/* WordPress preset remap — every block that uses a palette swatch
	   (e.g. `var(--wp--preset--color--surface)`) flips automatically. */
	--wp--preset--color--base: #0D1417;
	--wp--preset--color--surface: #131C20;
	--wp--preset--color--surface-alt: #1A262B;
	--wp--preset--color--primary: #EAF3F4;
	--wp--preset--color--secondary: #8DA3AA;
	--wp--preset--color--muted: #8DA3AA;
	--wp--preset--color--border: #22303A;
	--wp--preset--color--accent-ink: #4FD1A5;
	--wp--preset--color--accent-soft: rgba(31, 169, 127, 0.18);
	color-scheme: dark;
}

/* ==========================================================================
   2. Base + global
   ========================================================================== */

body {
	background-color: var(--svp-bg);
	color: var(--svp-text);
	transition: background-color var(--svp-transition), color var(--svp-transition);
}

/* Slim transition for the colour-scheme change — nothing else. */
body,
body * {
	transition-property: background-color, color, border-color, fill, stroke;
	transition-duration: var(--svp-transition);
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme,
.dark-theme body {
	background-color: var(--svp-bg);
	color: var(--svp-text);
}

/* ==========================================================================
   3. SVG dark-mode toggle
   ========================================================================== */

/* The header surface is also `--svp-surface`, so the button needs its own
   contrasting fill (surface-alt) rather than blending into the bar. It is
   deliberately a solid token — not a `color-mix()` — so it stays legible in
   all three palettes and in both light and dark mode. */
.dark-mode-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--svp-border);
	border-radius: 999px;
	background-color: var(--svp-surface-alt);
	color: var(--svp-text);
	box-shadow: var(--svp-shadow);
	cursor: pointer;
	line-height: 1;
	transition: background-color var(--svp-transition), border-color var(--svp-transition),
		color var(--svp-transition), transform var(--svp-transition);
}

.dark-mode-toggle:hover {
	border-color: var(--svp-accent);
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
	transform: translateY(-1px);
}

.dark-mode-toggle:active {
	transform: translateY(0) scale(0.94);
}

.dark-mode-toggle:focus-visible {
	outline: 2px solid var(--svp-accent);
	outline-offset: 2px;
}

/* Both icons start hidden; exactly one is shown below. Every selector has to
   be *at least* as specific as `.dark-mode-toggle .icon` (0,2,0) or it loses
   the cascade — a bare `.icon-moon` (0,1,0) silently renders nothing, which
   is why the button used to look empty. */
.dark-mode-toggle .icon {
	width: 20px;
	height: 20px;
	display: none;
}

.dark-mode-toggle .icon-moon {
	display: block;
}

.dark-theme .dark-mode-toggle .icon-moon {
	display: none;
}

.dark-theme .dark-mode-toggle .icon-sun {
	display: block;
	animation: svp-fade-in 260ms ease-out;
}

@keyframes svp-fade-in {
	from {
		opacity: 0;
		transform: rotate(-30deg) scale(0.85);
	}
	to {
		opacity: 1;
		transform: rotate(0) scale(1);
	}
}

/* ==========================================================================
   4. Lemon Squeezy purchase button
   ========================================================================== */

a.lemonsqueezy-button,
button.lemonsqueezy-button,
.lemonsqueezy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	width: 100%;
	box-sizing: border-box;
	padding: 0.85em 1.5em;
	border: 0;
	border-radius: var(--svp-radius);
	background-color: var(--svp-accent);
	color: var(--svp-contrast);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--svp-shadow);
	transition: background-color var(--svp-transition), color var(--svp-transition),
		box-shadow var(--svp-transition), transform var(--svp-transition),
		opacity var(--svp-transition);
	will-change: transform;
}

.lemonsqueezy-button:hover {
	background-color: var(--svp-accent-hover);
	color: var(--svp-inverse);
	box-shadow: var(--svp-shadow-lift);
	transform: translateY(-2px);
	text-decoration: none;
}

.dark-theme .lemonsqueezy-button:hover {
	color: var(--svp-contrast);
}

.lemonsqueezy-button:active {
	transform: translateY(0) scale(0.985);
	box-shadow: var(--svp-shadow);
}

.lemonsqueezy-button:focus-visible {
	outline: 3px solid var(--svp-accent);
	outline-offset: 3px;
}

.lemonsqueezy-button.is-loading,
.lemonsqueezy-button[aria-disabled="true"] {
	opacity: 0.75;
	pointer-events: none;
}

.lemonsqueezy-button.is-outline,
.lemonsqueezy-button.lemonsqueezy-button--secondary {
	background-color: transparent;
	border: 2px solid var(--svp-accent);
	color: var(--svp-accent-ink);
	box-shadow: none;
}

.lemonsqueezy-button.is-outline:hover,
.lemonsqueezy-button.lemonsqueezy-button--secondary:hover {
	background-color: var(--svp-accent);
	color: var(--svp-contrast);
}

/* ==========================================================================
   5. Header + footer
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--svp-border);
	background-color: var(--svp-surface);
}

/* Header navigation — pill hover / current-item state.
   Admin-editable: the *links* live in the Header template part
   (Appearance → Editor → Patterns → Header), and the hover colour follows
   whichever palette is picked in Appearance → Color Palette. The pill shape
   and padding are theme CSS. */
.site-header .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small, 0.875rem);
}

.site-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	color: var(--svp-text);
	text-decoration: none;
	transition: background-color var(--svp-transition), color var(--svp-transition);
}

.site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation .wp-block-navigation-item__content:focus {
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
	text-decoration: none;
}

.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.site-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
	font-weight: 600;
}

/* CTA button — WordPress's default button padding is
   `calc(0.667em + 2px) calc(1.333em + 2px)`, which is far too airy for a
   header. Tightened here; admins can also change it per-block in the editor
   via the button's Spacing controls. */
.header-cta .wp-block-button__link {
	padding: 0.45rem 0.95rem;
	border-radius: var(--svp-radius);
	font-weight: 600;
}

/* Branding: logo and site title share the first line, the tagline drops to a
   full-width line beneath them. The same rules serve desktop and mobile — the
   header simply gives the branding block the whole first row on narrow
   screens, which pushes the menu and CTA onto the line below. */
.site-branding {
	row-gap: 0;
}

.site-branding .wp-block-site-logo {
	flex: 0 0 auto;
}

.site-branding .wp-block-site-title {
	flex: 0 0 auto;
}

.site-branding .wp-block-site-tagline {
	flex: 1 1 100%;
}

/* Desktop: the navigation block's layout no longer carries
   `justifyContent: "right"` (it was inherited by the mobile overlay and
   pushed the menu off-screen), so align the links here instead. */
@media (min-width: 783px) {
	.site-header > .wp-block-navigation {
		flex: 1 1 auto;
		justify-content: flex-end;
		margin-left: auto;
	}
}

/* Mobile header:
     row 1 — logo in the left third, site title right-aligned in the right
             two-thirds
     row 2 — site tagline in the left half, dark-mode toggle in the right half
     row 3 — hamburger in the left half, CTA in the right half
   The hamburger comes from the navigation block's `overlayMenu: "mobile"`
   setting in parts/header.html; it used to be "never", which disabled it.
   The toggle is moved into `.site-branding` on mobile by
   assets/js/dark-mode.js so it can occupy row 2. */
@media (max-width: 782px) {
	.site-header .site-branding {
		flex: 1 1 100%;
		/* Six columns so row 1 can be 1/3–2/3 and row 2 exactly 1/2–1/2.
		   Selector is two classes deep so it outranks WP's `.is-layout-flex`. */
		display: grid;
		grid-template-columns: repeat(6, 1fr);
		align-items: center;
		column-gap: 8px;
		row-gap: 6px;
	}

	.site-header .site-branding .wp-block-site-logo {
		grid-column: 1 / span 2;
		grid-row: 1;
		justify-self: start;
	}

	.site-header .site-branding .wp-block-site-title {
		grid-column: 3 / span 4;
		grid-row: 1;
		justify-self: end;
		text-align: right;
	}

	/* Two-thirds rather than a half: the tagline was wrapping to two lines
	   at 50%. The toggle takes the remaining third. */
	.site-header .site-branding .wp-block-site-tagline {
		grid-column: 1 / span 4;
		grid-row: 2;
		justify-self: start;
	}

	.site-header .site-branding .dark-mode-toggle {
		grid-column: 5 / span 2;
		grid-row: 2;
		justify-self: end;
	}

	/* Row 3: hamburger left, CTA right.
	   The navigation is deliberately left at its natural width — giving it a
	   fixed share of the row also shrinks its overlay panel, which is what
	   clipped the expanded menu. The CTA is pushed right instead. */
	.site-header > .wp-block-navigation {
		flex: 0 0 auto;
		justify-content: flex-start;
	}

	.site-header .header-actions {
		flex: 0 0 auto;
		margin-left: auto;
		justify-content: flex-end;
	}

	/* Keep the open menu inside the viewport and give the close button room.
	   The nav's own layout no longer forces `justify-content: right`, which
	   was inherited by the overlay and pushed items off-screen. */
	.site-header .wp-block-navigation__responsive-container,
	.site-header .wp-block-navigation .wp-block-navigation__container,
	.site-header .wp-block-navigation .wp-block-navigation__responsive-container-content {
		justify-content: flex-start;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		padding-right: var(--wp--preset--spacing--40, 1.5rem);
		padding-left: var(--wp--preset--spacing--40, 1.5rem);
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		gap: var(--wp--preset--spacing--30, 1rem);
	}

	.site-footer .wp-block-columns {
		gap: var(--wp--preset--spacing--40, 2rem);
	}
}

/* The footer band no longer hard-codes a colour. Its background and text are
   block attributes (`backgroundColor: surface-alt`, `textColor: primary`) on
   the footer group in parts/footer.html, so an admin can recolour it from the
   editor's colour panel with any swatch from the active palette. Everything
   below is deliberately palette-agnostic - it keys off `currentColor`, so it
   stays correct whichever swatch is picked, and in dark mode. */

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

/* Footer link columns read as menus, not bulleted lists. */
.site-footer .wp-block-list {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.site-footer .wp-block-list li {
	margin-bottom: 0.35rem;
}

.site-footer .wp-block-list li:last-child {
	margin-bottom: 0;
}

/* Bundled wordmark (dark navy ink). Sized here rather than through the
   `width`/`height` block attributes, which would add `is-resized` plus inline
   width/height styles to the saved markup. */
.site-footer__wordmark {
	margin-bottom: var(--wp--preset--spacing--20, 0.5rem);
}

.site-footer__wordmark img {
	display: block;
	width: 168px;
	height: auto;
}

/* The wordmark ships as dark ink, so it is invisible on the dark-mode footer.
   `brightness(0)` flattens it to black (alpha untouched) and `invert(1)` turns
   it into a white silhouette - one rule that works for any source colour. */
.dark-theme .site-footer__wordmark img {
	filter: brightness(0) invert(1);
}

.social-icons {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background-color: color-mix(in srgb, currentColor 12%, transparent);
	color: inherit;
	transition: background-color var(--svp-transition), transform var(--svp-transition);
}

.social-icons a:hover {
	background-color: var(--svp-accent);
	color: var(--svp-contrast);
	transform: translateY(-2px);
}

.social-icons svg {
	width: 17px;
	height: 17px;
}

/* ==========================================================================
   6. Marketing layout helpers (block-friendly)
   --------------------------------------------------------------------------
   These are intentionally simple class-based patterns so authors can drop
   any of them onto a Group block in the editor. The matching block-style
   variations (Card / Elevated / Accent band) are registered by the
   aitoolkits-block-styles snippet.
   ========================================================================== */

.svp-section {
	padding-top: var(--wp--custom--section-padding-y, clamp(3rem, 6vw, 6rem));
	padding-bottom: var(--wp--custom--section-padding-y, clamp(3rem, 6vw, 6rem));
}

.svp-section--tight {
	padding-top: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.svp-section--contrast {
	background-color: var(--svp-contrast);
	color: var(--svp-inverse);
}

.svp-section--accent {
	background-color: var(--svp-accent-soft);
}

.svp-container {
	max-width: var(--wp--custom--container-wide, 1200px);
	margin-inline: auto;
}

.svp-container--narrow {
	max-width: var(--wp--custom--container-narrow, 780px);
}

.svp-container--extra {
	max-width: var(--wp--custom--container-extra, 1400px);
}

.svp-eyebrow {
	display: inline-block;
	padding: 0.3em 0.85em;
	border-radius: 999px;
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.svp-card {
	border: 1px solid var(--svp-border);
	border-radius: var(--svp-radius-lg);
	background-color: var(--svp-surface);
	transition: border-color var(--svp-transition), box-shadow var(--svp-transition),
		transform var(--svp-transition), background-color var(--svp-transition);
}

.svp-card:hover {
	border-color: var(--svp-accent);
	box-shadow: var(--svp-shadow-lift);
	transform: translateY(-3px);
}

.svp-pricing-featured {
	border-color: var(--svp-accent);
	box-shadow: var(--svp-shadow-lift);
}

.svp-badge {
	display: inline-block;
	padding: 0.25em 0.7em;
	border-radius: 999px;
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.svp-icon-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.75rem;
	border: 1px solid var(--svp-border);
	border-radius: var(--svp-radius-lg);
	background-color: var(--svp-surface);
	height: 100%;
	transition: border-color var(--svp-transition), box-shadow var(--svp-transition),
		transform var(--svp-transition);
}

.svp-icon-card:hover {
	border-color: var(--svp-accent);
	transform: translateY(-2px);
	box-shadow: var(--svp-shadow);
}

.svp-icon-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
}

.svp-icon-card__icon svg {
	width: 24px;
	height: 24px;
}

.svp-icon-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	color: var(--svp-text);
}

.svp-icon-card__body {
	margin: 0;
	color: var(--svp-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.svp-stat {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	text-align: center;
}

.svp-stat__value {
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--svp-text);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.svp-stat__label {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--svp-muted);
}

.svp-promo-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0.65rem var(--wp--custom--section-padding-x, 1.5rem);
	background-color: var(--svp-accent-alt);
	color: #FFFFFF;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
}

.svp-promo-bar a {
	color: inherit;
	text-decoration: underline;
}

.svp-promo-bar a:hover {
	color: inherit;
	opacity: 0.85;
}

/* Header CTA — sized in CSS rather than via a block `fontSize` attribute.
   A preset font size written into block markup produces either
   `has-small-font-size` or `has-custom-font-size` depending on the WP
   version, and getting it wrong shows up as "Block contains unexpected or
   invalid content". Keeping it out of the markup avoids the ambiguity. */
.header-cta,
.header-cta .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small, 0.875rem);
}

/* "Read more" link inside the product showcase cards. */
.svp-card .wp-block-read-more {
	color: var(--svp-accent-ink);
	font-weight: 600;
	text-decoration: none;
}

.svp-card .wp-block-read-more:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Typographic and border utilities.

   These replace block `style.*` attributes whose serialised form varies
   between WordPress versions (letter-spacing, text-transform, font-weight,
   per-side borders, `position`). WordPress writes those straight into the
   saved markup, so a hand-written template that omits them - or writes them
   differently - fails block validation and the editor reports "Block
   contains unexpected or invalid content". Expressing them as classes keeps
   the saved markup stable.
   -------------------------------------------------------------------------- */

.svp-fw-600 {
	font-weight: 600;
}

.svp-fw-700 {
	font-weight: 700;
}

.svp-upper {
	text-transform: uppercase;
}

.svp-ls-06 {
	letter-spacing: 0.06em;
}

.svp-ls-08 {
	letter-spacing: 0.08em;
}

.svp-ls-12 {
	letter-spacing: 0.12em;
}

.svp-rule-bottom {
	border-bottom: 1px solid var(--svp-border);
}

.svp-rule-top {
	border-top: 1px solid var(--svp-border);
}

.svp-rule-top-inverse {
	border-top: 1px solid rgba(248, 250, 252, 0.16);
}

.svp-sticky {
	position: sticky;
	top: var(--wp--preset--spacing--40, 2rem);
}

/* Button corner radius. `core/button` places the radius on either the
   wrapper or the <a> depending on the WordPress version, so it is set here
   instead of through a `style.border.radius` block attribute. */
.wp-block-button .wp-block-button__link {
	border-radius: var(--svp-radius);
}

.svp-hero {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
	padding-top: clamp(3rem, 6vw, 5.5rem);
	padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

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

.svp-hero__media {
	position: relative;
}

.svp-hero__media img {
	width: 100%;
	height: auto;
	border-radius: var(--svp-radius-xl);
	box-shadow: var(--svp-shadow-lift);
	display: block;
}

.svp-zigzag {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.svp-zigzag--reverse {
	direction: rtl;
}

.svp-zigzag--reverse > * {
	direction: ltr;
}

@media (max-width: 900px) {
	.svp-zigzag,
	.svp-zigzag--reverse {
		grid-template-columns: 1fr;
		direction: ltr;
	}
}

.svp-zigzag__media img {
	width: 100%;
	height: auto;
	border-radius: var(--svp-radius-xl);
	box-shadow: var(--svp-shadow);
	display: block;
}

.svp-logo-strip {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	justify-content: center;
	padding-block: 1.5rem;
	opacity: 0.85;
}

.svp-logo-strip img {
	max-height: 36px;
	width: auto;
	filter: grayscale(0.2);
}

.svp-cta-band {
	display: grid;
	gap: 1.5rem;
	text-align: center;
	padding-block: clamp(3rem, 6vw, 5rem);
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
	background: linear-gradient(135deg, #0D1417 0%, #16232B 50%, #12805F 100%);
	color: #FFFFFF;
	border-radius: var(--svp-radius-xl);
}

.svp-cta-band h2 {
	color: inherit;
}

.svp-cta-band .wp-block-buttons {
	justify-content: center;
}

.svp-cta-band p {
	color: color-mix(in srgb, #FFFFFF 80%, transparent);
	margin-block: 0;
}

.svp-testimonial {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.75rem;
	border: 1px solid var(--svp-border);
	border-radius: var(--svp-radius-lg);
	background-color: var(--svp-surface);
	height: 100%;
}

.svp-testimonial__quote {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--svp-text);
	margin: 0;
}

.svp-testimonial__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.svp-testimonial__avatar {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.svp-testimonial__name {
	font-weight: 700;
	color: var(--svp-text);
}

.svp-testimonial__role {
	font-size: 0.875rem;
	color: var(--svp-muted);
}

/* FAQ accordion (uses core/details). */
.svp-accordion details {
	border-bottom: 1px solid var(--svp-border);
	padding: 1.1rem 0;
}

.svp-accordion details > summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 1.0625rem;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	color: var(--svp-text);
}

.svp-accordion details > summary::-webkit-details-marker {
	display: none;
}

.svp-accordion details > summary::after {
	content: "+";
	font-size: 1.5rem;
	line-height: 1;
	color: var(--svp-accent-ink);
	transition: transform var(--svp-transition);
}

.svp-accordion details[open] > summary::after {
	content: "−";
}

.svp-accordion details > * + * {
	margin-top: 0.75rem;
}

.svp-accordion details > p,
.svp-accordion details > div {
	color: var(--svp-muted);
	line-height: 1.65;
}

/* Block-style variations. The block-styles snippet registers them so they
   appear in the editor's Style panel; this CSS only applies when the user
   picks them. */
.is-style-svp-card {
	border: 1px solid var(--svp-border);
	border-radius: var(--svp-radius-lg);
	background-color: var(--svp-surface);
	padding: 1.75rem;
	height: 100%;
}

.is-style-svp-elevated {
	border: 1px solid var(--svp-border);
	border-radius: var(--svp-radius-lg);
	background-color: var(--svp-surface);
	padding: 1.75rem;
	height: 100%;
	box-shadow: var(--svp-shadow);
}

.is-style-svp-accent-band {
	background-color: var(--svp-accent-soft);
	color: var(--svp-text);
	border-radius: var(--svp-radius-xl);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.is-style-svp-inverse-band {
	background-color: var(--svp-contrast);
	color: var(--svp-inverse);
	border-radius: var(--svp-radius-xl);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.is-style-svp-inverse-band h1,
.is-style-svp-inverse-band h2,
.is-style-svp-inverse-band h3,
.is-style-svp-inverse-band h4 {
	color: var(--svp-inverse);
}

/* ==========================================================================
   7. Documentation (Knowledge Base) layout
   ========================================================================== */

.docs-sidebar {
	align-self: start;
}

.docs-sidebar > * {
	position: sticky;
	top: 96px;
}

@media (max-width: 781px) {
	.docs-sidebar > * {
		position: static;
	}
}

.docs-sidebar .wp-block-search .wp-block-search__input,
.docs-sidebar .wp-block-search__input {
	border-radius: var(--svp-radius);
}

.docs-sidebar ul.wp-block-categories,
.docs-sidebar ul.wp-block-list {
	padding-left: 0;
	list-style: none;
}

.docs-sidebar .wp-block-categories li,
.docs-sidebar .wp-block-list li {
	margin-bottom: 0.35em;
}

.docs-sidebar .wp-block-categories a {
	display: block;
	padding: 0.4em 0.6em;
	border-radius: 8px;
	color: var(--svp-text);
	text-decoration: none;
	transition: background-color var(--svp-transition), color var(--svp-transition);
}

.docs-sidebar .wp-block-categories a:hover {
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
}

.docs-content .wp-block-post-content,
.docs-content {
	min-width: 0;
}

.docs-content h2,
.docs-content h3 {
	scroll-margin-top: 110px;
}

/* ==========================================================================
   8. Contact form
   ========================================================================== */

.svp-form label {
	display: block;
	margin-bottom: 0.35em;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--svp-text);
}

.svp-form input[type="text"],
.svp-form input[type="email"],
.svp-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7em 0.85em;
	border: 1px solid var(--svp-border);
	border-radius: var(--svp-radius);
	background-color: var(--svp-surface);
	color: var(--svp-text);
	font: inherit;
	transition: border-color var(--svp-transition), box-shadow var(--svp-transition);
}

.svp-form input:focus,
.svp-form textarea:focus {
	outline: none;
	border-color: var(--svp-accent);
	box-shadow: 0 0 0 3px var(--svp-accent-soft);
}

.svp-form .svp-honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.svp-form-notice {
	display: none;
	margin-bottom: 1.5rem;
	padding: 0.9em 1.1em;
	border: 1px solid var(--svp-success, var(--svp-accent));
	border-radius: var(--svp-radius);
	background-color: var(--svp-accent-soft);
	color: var(--svp-accent-ink);
	font-weight: 600;
}

.svp-form-notice:target {
	display: block;
}

/* ==========================================================================
   8b. Scroll reveal
   ========================================================================== */

/* Applied by assets/js/reveal.js — never by the markup — so the blocks are
   visible when JavaScript is unavailable. */
.svp-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 620ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.svp-reveal.svp-reveal--visible {
	opacity: 1;
	transform: none;
}

/* Hero image reacts to hover / keyboard focus as well as to scrolling. */
.svp-hero__media .wp-block-image img,
.svp-hero .wp-block-image img {
	transition: transform var(--svp-transition), box-shadow var(--svp-transition);
}

.svp-hero__media:hover .wp-block-image img,
.svp-hero__media:focus-within .wp-block-image img {
	transform: translateY(-4px) scale(1.015);
	box-shadow: var(--svp-shadow-lift);
}

@media (prefers-reduced-motion: reduce) {
	.svp-reveal,
	.svp-reveal.svp-reveal--visible {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.svp-hero__media:hover .wp-block-image img,
	.svp-hero__media:focus-within .wp-block-image img {
		transform: none;
	}
}

/* ==========================================================================
   9. Utilities
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}