/* ==========================================================================
   Oxyum Site — component layer
   theme.json owns the tokens (color, type, spacing). This file owns the
   components those tokens cannot express: the sticky header, mega menus,
   glow backdrops, product mockups, pricing tables and the footer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

::selection {
	background: var(--wp--preset--color--accent-deep);
	color: #fff;
}

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

/* Skip link */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--sm);
	padding: 12px 20px;
	z-index: 1000;
}

/* --------------------------------------------------------------------------
   2. Typography helpers
   -------------------------------------------------------------------------- */

.ox-muted   { color: var(--wp--preset--color--muted); }
.ox-bright  { color: var(--wp--preset--color--muted-bright); }
.ox-balance { text-wrap: balance; }
.ox-pretty  { text-wrap: pretty; }

/* Second half of a display headline, rendered in the soft purple. */
.ox-accent-text { color: var(--wp--preset--color--accent-soft); }

/* "Lead" paragraph under a headline */
.is-style-oxygen-lead {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.45;
	color: var(--wp--preset--color--muted-bright);
	letter-spacing: -0.02em;
	font-weight: 400;
}

/* Small uppercase section label */
.is-style-oxygen-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 12px;
}

/* Rounded announcement pill, e.g. "Oxyum 6.2 — MCP Edition: Now In Beta" */
.ox-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px 7px 16px;
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--pill);
	background: rgba(23, 23, 23, .8);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-bright);
	letter-spacing: -0.01em;
	transition: border-color var(--wp--custom--duration--base) ease,
	            background var(--wp--custom--duration--base) ease;
}

.ox-pill:hover {
	border-color: var(--wp--preset--color--accent-deep);
	background: rgba(36, 28, 74, .6);
}

.ox-pill .ox-pill__tag {
	background: var(--wp--preset--color--accent-deep);
	color: #fff;
	border-radius: var(--wp--custom--radius--pill);
	padding: 3px 10px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color var(--wp--custom--duration--base) ease,
	            color var(--wp--custom--duration--base) ease,
	            border-color var(--wp--custom--duration--base) ease,
	            transform var(--wp--custom--duration--fast) ease;
	white-space: nowrap;
}

.wp-block-button__link:active { transform: translateY(1px); }

.is-style-oxygen-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line);
}

.is-style-oxygen-ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--muted);
	color: var(--wp--preset--color--contrast);
}

.is-style-oxygen-purple .wp-block-button__link {
	background: var(--wp--preset--color--accent-strong);
	border-color: var(--wp--preset--color--accent-strong);
	color: #fff;
}

.is-style-oxygen-purple .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: #fff;
}

/* Inline "Learn more →" text link used on feature cards */
.ox-textlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-soft);
	font-weight: 500;
}

.ox-textlink::after {
	content: "\2192";
	transition: transform var(--wp--custom--duration--base) ease;
}

.ox-textlink:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   4. Layout scaffolding
   -------------------------------------------------------------------------- */

.ox-section { position: relative; }

/* Hairline divider between stacked sections */
.ox-hairline-top { border-top: 1px solid var(--wp--preset--color--surface-2); }
.ox-hairline-bottom { border-bottom: 1px solid var(--wp--preset--color--surface-2); }

/* Radial purple bloom behind hero content */
.is-style-oxygen-glow {
	position: relative;
	isolation: isolate;
}

.is-style-oxygen-glow::before {
	content: "";
	position: absolute;
	/* Stays inside the section horizontally — bleeding sideways would push
	   the document wider than the viewport and create a scrollbar. */
	inset: -20% 0 auto 0;
	height: 720px;
	background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(81, 55, 195, .55) 0%, rgba(0, 0, 0, 0) 70%);
	z-index: -1;
	pointer-events: none;
}

/* Faint grid backdrop */
.ox-gridlines::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(64, 64, 64, .18) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(64, 64, 64, .18) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
	z-index: -1;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */

.is-style-oxygen-card {
	background: linear-gradient(180deg, rgba(23, 23, 23, .9) 0%, rgba(10, 10, 10, .9) 100%);
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--lg);
	padding: 32px;
	transition: border-color var(--wp--custom--duration--base) ease,
	            transform var(--wp--custom--duration--base) ease,
	            box-shadow var(--wp--custom--duration--base) ease;
	height: 100%;
}

.is-style-oxygen-card:hover {
	border-color: var(--wp--preset--color--line);
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.is-style-oxygen-card h2,
.is-style-oxygen-card h3,
.is-style-oxygen-card h4 { margin-top: 0; }

/* Icon chip that sits at the top of a feature card */
.ox-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-2);
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--accent-soft);
	font-size: 18px;
	margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   6. Grids
   -------------------------------------------------------------------------- */

.ox-grid { display: grid; gap: 24px; }
.ox-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ox-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ox-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ox-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.ox-grid-4, .ox-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ox-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.ox-grid-2, .ox-grid-3, .ox-grid-4, .ox-grid-5 { grid-template-columns: minmax(0, 1fr); }
}

/* Two-up split: copy on one side, mockup on the other */
.ox-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}

@media (max-width: 900px) {
	.ox-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.ox-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(0, 0, 0, .72);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--wp--custom--duration--base) ease,
	            background var(--wp--custom--duration--base) ease;
}

.ox-header.is-stuck {
	border-bottom-color: var(--wp--preset--color--surface-2);
	background: rgba(0, 0, 0, .9);
}

.ox-header .wp-block-group.ox-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: 68px;
}

.ox-logo img { display: block; height: 26px; width: auto; }

/* The wordmark is deliberately just "Oxyum", shorter than the site name. */
.ox-logo__word {
	margin: 0;
	line-height: 1;
	white-space: nowrap;
}

.ox-logo__word a,
.ox-logo__word a:hover {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* Navigation block inside the header */
.ox-header .wp-block-navigation {
	justify-content: center;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.ox-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--muted-bright);
	padding: 8px 12px;
	border-radius: var(--wp--custom--radius--sm);
	transition: color var(--wp--custom--duration--fast) ease,
	            background var(--wp--custom--duration--fast) ease;
}

.ox-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.ox-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface);
}

/* Dropdown submenus */
.ox-header .wp-block-navigation .wp-block-navigation-submenu__toggle { color: inherit; }

.ox-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--base-raised);
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--lifted);
	padding: 8px;
	min-width: 280px;
	margin-top: 8px;
}

.ox-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: var(--wp--custom--radius--md);
	padding: 10px 12px;
	width: 100%;
}

.ox-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--surface);
}

/* Description line beneath a submenu label */
.wp-block-navigation-item__description {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	font-weight: 400;
	margin-top: 2px;
}

.ox-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: flex-end;
}

.ox-header__actions .wp-block-button__link {
	padding: 9px 18px;
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 900px) {
	.ox-header .wp-block-group.ox-header__inner {
		grid-template-columns: auto 1fr;
	}
	.ox-header__actions .ox-hide-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   8. Announcement bar
   -------------------------------------------------------------------------- */

.ox-announce {
	background: var(--wp--preset--color--accent-night);
	border-bottom: 1px solid rgba(113, 101, 239, .35);
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
	padding: 10px 24px;
	color: var(--wp--preset--color--accent-tint);
}

/* --------------------------------------------------------------------------
   9. Product mockups
   -------------------------------------------------------------------------- */

/* Terminal / command window */
.ox-terminal {
	background: #0A0A0A;
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--lifted);
	text-align: left;
}

.ox-terminal__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--wp--preset--color--surface-2);
	background: var(--wp--preset--color--surface);
}

.ox-terminal__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--line);
	flex: none;
}

.ox-terminal__title {
	margin-left: 8px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--mono);
}

.ox-terminal__body {
	padding: 24px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.9;
	color: var(--wp--preset--color--muted-bright);
}

.ox-terminal__body .ox-prompt { color: var(--wp--preset--color--accent-soft); }
.ox-terminal__body .ox-cmd { color: #fff; }

/* Blinking caret */
.ox-caret {
	display: inline-block;
	width: 8px;
	height: 1.05em;
	background: var(--wp--preset--color--accent-soft);
	vertical-align: text-bottom;
	margin-left: 4px;
	animation: ox-blink 1.1s steps(2, start) infinite;
}

@keyframes ox-blink { to { visibility: hidden; } }

/* Agent chat mockup */
.ox-chat {
	background: linear-gradient(180deg, #0F0F12 0%, #08080A 100%);
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--lg);
	padding: 8px;
	box-shadow: var(--wp--preset--shadow--lifted);
	text-align: left;
}

.ox-chat__url {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	padding: 10px 14px;
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--md);
	font-family: var(--wp--preset--font-family--mono);
	margin-bottom: 8px;
}

.ox-chat__msg {
	padding: 16px 18px;
	border-radius: var(--wp--custom--radius--md);
	margin-bottom: 8px;
}

.ox-chat__who {
	display: block;
	font-size: 10px;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 8px;
	font-weight: 500;
}

.ox-chat__msg--you {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.ox-chat__msg--agent {
	background: rgba(36, 28, 74, .5);
	border: 1px solid rgba(113, 101, 239, .28);
	color: var(--wp--preset--color--muted-bright);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.ox-chat__msg--agent .ox-chat__who { color: var(--wp--preset--color--accent-soft); }

/* Agent "thinking" line */
.ox-chat__status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	font-style: italic;
	margin-bottom: 10px;
}

.ox-chat__status::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-soft);
	animation: ox-pulse 1.4s ease-in-out infinite;
	flex: none;
}

@keyframes ox-pulse {
	0%, 100% { opacity: .3; transform: scale(.8); }
	50%      { opacity: 1;  transform: scale(1.3); }
}

/* Checklist of things the agent did */
.ox-checklist {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.ox-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-bright);
	line-height: 1.5;
}

.ox-checklist li::before {
	content: "\2713";
	color: var(--wp--preset--color--accent-soft);
	font-weight: 700;
	flex: none;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Logo / compatibility strip
   -------------------------------------------------------------------------- */

.ox-logostrip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 28px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.ox-logostrip__label {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	width: 100%;
	text-align: center;
	margin-bottom: 4px;
}

.ox-logostrip span:not(.ox-logostrip__label) {
	position: relative;
	transition: color var(--wp--custom--duration--base) ease;
}

.ox-logostrip span:not(.ox-logostrip__label):hover { color: var(--wp--preset--color--contrast); }

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */

.ox-quote {
	font-size: clamp(20px, 2.4vw, 30px);
	line-height: 1.5;
	letter-spacing: var(--wp--custom--tracking--tight);
	color: var(--wp--preset--color--contrast);
	font-weight: 400;
}

.ox-quote em {
	font-style: normal;
	color: var(--wp--preset--color--accent-soft);
}

.ox-cite {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 28px;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
}

.ox-cite__name { color: var(--wp--preset--color--contrast); font-weight: 500; }
.ox-cite__role { color: var(--wp--preset--color--muted); }

/* --------------------------------------------------------------------------
   12. Pricing
   -------------------------------------------------------------------------- */

.ox-price-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, rgba(23, 23, 23, .9), rgba(10, 10, 10, .9));
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--xl);
	padding: 36px 32px;
	height: 100%;
	position: relative;
}

.ox-price-card-featured {
	border-color: var(--wp--preset--color--accent-deep);
	box-shadow: var(--wp--preset--shadow--glow);
	background: linear-gradient(180deg, rgba(36, 28, 74, .75), rgba(10, 10, 10, .95));
}

.ox-price-card__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--wp--preset--color--accent-strong);
	color: #fff;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: var(--wp--custom--radius--pill);
	white-space: nowrap;
}

.ox-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 18px 0 6px;
}

.ox-price__amount {
	font-size: 52px;
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: 1;
	color: var(--wp--preset--color--contrast);
}

.ox-price__period {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.ox-featurelist {
	list-style: none;
	margin: 24px 0;
	padding: 0;
	display: grid;
	gap: 12px;
	flex: 1;
}

.ox-featurelist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-bright);
	line-height: 1.5;
}

.ox-featurelist li::before {
	content: "\2713";
	color: var(--wp--preset--color--accent-soft);
	font-weight: 700;
	flex: none;
}

/* --------------------------------------------------------------------------
   13. Comparison table
   -------------------------------------------------------------------------- */

.ox-compare {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.ox-compare th,
.ox-compare td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--wp--preset--color--surface-2);
	text-align: left;
	vertical-align: top;
}

.ox-compare thead th {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--medium);
	border-bottom-color: var(--wp--preset--color--line);
}

.ox-compare tbody th {
	color: var(--wp--preset--color--muted-bright);
	font-weight: 400;
}

.ox-compare td { color: var(--wp--preset--color--muted); }

.ox-compare .ox-yes { color: var(--wp--preset--color--accent-soft); font-weight: 500; }
.ox-compare .ox-no  { color: var(--wp--preset--color--muted); }

.ox-tablewrap { overflow-x: auto; }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.ox-faq { display: grid; gap: 0; }

.ox-faq details {
	border-bottom: 1px solid var(--wp--preset--color--surface-2);
	padding: 4px 0;
}

.ox-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 22px 40px 22px 0;
	position: relative;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--tight);
	color: var(--wp--preset--color--contrast);
}

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

.ox-faq summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: var(--wp--preset--color--muted);
	transition: transform var(--wp--custom--duration--base) ease;
	line-height: 1;
}

.ox-faq details[open] summary::after {
	content: "\2212";
	color: var(--wp--preset--color--accent-soft);
}

.ox-faq details > p,
.ox-faq details > div {
	padding: 0 40px 24px 0;
	margin: 0;
	color: var(--wp--preset--color--muted-bright);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.65;
}

/* --------------------------------------------------------------------------
   15. Stats
   -------------------------------------------------------------------------- */

.ox-stat__value {
	font-size: clamp(36px, 4vw, 56px);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: 1;
	color: var(--wp--preset--color--contrast);
}

.ox-stat__label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: 10px;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.ox-footer {
	border-top: 1px solid var(--wp--preset--color--surface-2);
	background: var(--wp--preset--color--base);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--50);
}

/* Width-limited with plain CSS rather than a constrained layout, which would
   add a second gutter and push the footer brand 24px past the header logo. */
.ox-footer__brand {
	max-width: 560px;
}

.ox-footer__brand > * { margin-block: 0; }

.ox-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
}

@media (max-width: 900px) { .ox-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ox-footer__cols { grid-template-columns: minmax(0, 1fr); } }

.ox-footer__heading {
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--wide);
	color: var(--wp--preset--color--muted);
	margin: 0 0 16px;
	font-weight: 500;
}

.ox-footer .wp-block-list,
.ox-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.ox-footer ul a {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-bright);
	transition: color var(--wp--custom--duration--fast) ease;
}

.ox-footer ul a:hover { color: var(--wp--preset--color--contrast); }

.ox-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--surface-2);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.ox-footer__social {
	display: flex;
	gap: 8px;
}

.ox-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--muted-bright);
	transition: border-color var(--wp--custom--duration--fast) ease,
	            color var(--wp--custom--duration--fast) ease;
}

.ox-footer__social a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.ox-footer__social svg { width: 15px; height: 15px; fill: currentColor; }

/* Legacy / classic notice strip in the footer */
.ox-footer__notice {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--md);
	padding: 14px 18px;
}

/* --------------------------------------------------------------------------
   17. Post / archive
   -------------------------------------------------------------------------- */

.ox-post-card {
	display: block;
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	background: var(--wp--preset--color--base-raised);
	transition: border-color var(--wp--custom--duration--base) ease,
	            transform var(--wp--custom--duration--base) ease;
}

.ox-post-card:hover {
	border-color: var(--wp--preset--color--line);
	transform: translateY(-3px);
}

.ox-prose :where(p, ul, ol) {
	color: var(--wp--preset--color--muted-bright);
	line-height: 1.75;
}

.ox-prose :where(h2, h3, h4) { margin-top: 2em; }

.ox-prose a {
	color: var(--wp--preset--color--accent-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */

/* Scoped to .ox-js, which an inline snippet in wp_head adds. Without
   JavaScript the sections simply render — they are never hidden. */
.ox-js .ox-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s cubic-bezier(.2, .7, .3, 1),
	            transform .7s cubic-bezier(.2, .7, .3, 1);
	will-change: opacity, transform;
}

.ox-js .ox-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* The editor should never hide content behind the reveal state. */
.editor-styles-wrapper .ox-reveal {
	opacity: 1;
	transform: none;
}

/* --------------------------------------------------------------------------
   19. Fixed-width wrappers
   Used where a group must be BOTH width-limited and a grid/flex container,
   which the constrained layout alone cannot do.
   -------------------------------------------------------------------------- */

.ox-wrap {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--40);
	width: 100%;
	box-sizing: border-box;
}

.ox-header .wp-block-group.ox-header__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--40);
	box-sizing: border-box;
	width: 100%;
}

/* Groups that carry a raw grid class should not also get block-gap margins. */
.ox-grid > *,
.ox-footer__cols > * { margin-block: 0; }
