/**
 * Halo — Main stylesheet
 *
 * Token-driven, mobile-first, dark-mode aware. Every value reads from
 * a CSS custom property defined in :root (see inc/class-dynamic-css.php)
 * so theme.json + Customizer remain the single source of truth.
 */

/* ------------------------------------------------------------------ *
 * 1. Tokens (fallbacks — runtime overrides come from class-dynamic-css)
 * ------------------------------------------------------------------ */
:root {
	--halo-primary:       #4F46E5;
	--halo-primary-hover: #4338CA;
	--halo-primary-soft:  #EEF2FF;
	--halo-accent:        #06B6D4;
	--halo-success:       #10B981;
	--halo-warning:       #F59E0B;
	--halo-danger:        #EF4444;

	--halo-bg:           #FFFFFF;
	--halo-surface:      #FAFAFB;
	--halo-surface-2:    #F4F4F6;
	--halo-border:       #E5E7EB;
	--halo-border-strong:#D1D5DB;

	--halo-text:        #0B1020;
	--halo-text-muted:  #4B5563;
	--halo-text-subtle: #6B7280;
	--halo-text-inv:    #FFFFFF;

	--halo-radius-sm: 0.375rem;
	--halo-radius:    0.625rem;
	--halo-radius-lg: 1rem;
	--halo-radius-xl: 1.5rem;
	--halo-radius-full: 9999px;

	--halo-shadow-xs:  0 1px 2px rgba(11,16,32,.05);
	--halo-shadow-sm:  0 1px 3px rgba(11,16,32,.10),0 1px 2px rgba(11,16,32,.06);
	--halo-shadow:     0 4px 6px -1px rgba(11,16,32,.10),0 2px 4px -2px rgba(11,16,32,.10);
	--halo-shadow-lg:  0 10px 15px -3px rgba(11,16,32,.10),0 4px 6px -4px rgba(11,16,32,.10);
	--halo-shadow-xl:  0 20px 25px -5px rgba(11,16,32,.10),0 8px 10px -6px rgba(11,16,32,.10);
	--halo-shadow-2xl: 0 25px 50px -12px rgba(11,16,32,.25);
	--halo-shadow-glow: 0 0 0 1px rgba(79,70,229,.10),0 8px 24px -6px rgba(79,70,229,.40);

	--halo-ease:        cubic-bezier(.4,0,.2,1);
	--halo-ease-bounce: cubic-bezier(.34,1.56,.64,1);

	--halo-container:        1280px;
	--halo-container-narrow:  768px;
	--halo-gutter:           1.5rem;
}

/* ------------------------------------------------------------------ *
 * 2. Reset & base
 * ------------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	color: var(--halo-text);
	background: var(--halo-bg);
	font-family: var(--halo-font-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video, picture { max-width: 100%; display: block; }
img, video { height: auto; }

a { color: var(--halo-primary); text-decoration: none; transition: color 160ms var(--halo-ease); }
a:hover, a:focus-visible { color: var(--halo-primary-hover); text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
	font-family: var(--halo-font-heading, var(--halo-font-body));
	margin: 0 0 0.5em;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--halo-text);
	font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }

hr { border: 0; height: 1px; background: var(--halo-border); margin: 2.5rem 0; }

code, kbd, samp {
	font-family: var(--halo-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace);
	font-size: 0.875em;
	background: var(--halo-surface-2);
	padding: 0.15em 0.4em;
	border-radius: var(--halo-radius-sm);
}

pre {
	overflow-x: auto;
	padding: 1.25rem;
	background: var(--halo-surface-2);
	border: 1px solid var(--halo-border);
	border-radius: var(--halo-radius);
	font-size: 0.875rem;
	line-height: 1.6;
}
pre code { background: transparent; padding: 0; }

blockquote {
	margin: 1.5rem 0;
	padding: 0.25rem 1.25rem;
	border-left: 3px solid var(--halo-primary);
	color: var(--halo-text-muted);
	font-size: 1.0625rem;
}

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--halo-border); text-align: start; }
th { background: var(--halo-surface); font-weight: 600; }

:focus-visible {
	outline: 2px solid var(--halo-primary);
	outline-offset: 2px;
	border-radius: var(--halo-radius-sm);
}

::selection { background: var(--halo-primary); color: var(--halo-text-inv); }

/* ------------------------------------------------------------------ *
 * 3. Containers
 * ------------------------------------------------------------------ */
.halo-container {
	width: 100%;
	max-width: var(--halo-container);
	margin-inline: auto;
	padding-inline: var(--halo-gutter);
}
.halo-container--narrow { max-width: var(--halo-container-narrow); }
.halo-container--wide   { max-width: 1440px; }

.halo-layout--fluid .halo-container { max-width: none; }
.halo-layout--wide  .halo-container { max-width: 1440px; }

/* ------------------------------------------------------------------ *
 * 4. Buttons
 * ------------------------------------------------------------------ */
.halo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--halo-radius);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1;
	letter-spacing: -0.01em;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 160ms var(--halo-ease), color 160ms var(--halo-ease), border-color 160ms var(--halo-ease), transform 160ms var(--halo-ease), box-shadow 160ms var(--halo-ease);
}
.halo-btn:hover, .halo-btn:focus-visible { text-decoration: none; transform: translateY(-1px); }

.halo-btn--primary { background: var(--halo-primary); color: var(--halo-text-inv); }
.halo-btn--primary:hover, .halo-btn--primary:focus-visible { background: var(--halo-primary-hover); color: var(--halo-text-inv); box-shadow: var(--halo-shadow-glow); }

.halo-btn--ghost { background: transparent; color: var(--halo-text); border-color: var(--halo-border-strong); }
.halo-btn--ghost:hover, .halo-btn--ghost:focus-visible { border-color: var(--halo-text); }

.halo-btn--white { background: #fff; color: var(--halo-primary); }
.halo-btn--white:hover { background: #fff; color: var(--halo-primary-hover); }

.halo-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.halo-btn--ghost-light:hover { border-color: #fff; color: #fff; }

.halo-btn--lg    { padding: 0.875rem 1.75rem; font-size: 1rem; }
.halo-btn--sm    { padding: 0.5rem 1rem;      font-size: 0.875rem; }
.halo-btn--block { display: flex; width: 100%; }

.is-style-halo-pill   { border-radius: var(--halo-radius-full); }
.is-style-halo-ghost  { background: transparent !important; border: 1px solid currentColor !important; }
.is-style-halo-soft   { background: var(--halo-primary-soft) !important; color: var(--halo-primary) !important; }
.is-style-halo-shadow { box-shadow: var(--halo-shadow-lg); }

/* ------------------------------------------------------------------ *
 * 5. Topbar
 * ------------------------------------------------------------------ */
.halo-topbar { background: var(--halo-text); color: var(--halo-text-inv); font-size: 0.875rem; }
.halo-topbar__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.625rem var(--halo-gutter); flex-wrap: wrap; }
.halo-topbar__text { margin: 0; }
.halo-topbar__cta { display: inline-flex; align-items: center; gap: 0.375rem; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ *
 * 6. Header
 * ------------------------------------------------------------------ */
.halo-header {
	position: relative;
	z-index: 50;
	background: rgba(255,255,255,.85);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--halo-border);
}
.halo--sticky-header .halo-header { position: sticky; top: 0; }

.halo-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 2rem;
	padding-block: 0.875rem;
}

.halo-header__brand a { color: var(--halo-text); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.halo-header__site-title { text-decoration: none; }

.halo-nav__list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 1.75rem; justify-content: center; }
.halo-nav__list a {
	color: var(--halo-text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	position: relative;
	padding-block: 0.5rem;
}
.halo-nav__list a:hover, .halo-nav__list a:focus-visible { color: var(--halo-primary); }
.halo-nav__list .current-menu-item > a { color: var(--halo-primary); }
.halo-nav__list .menu-item-has-children > a::after { content: " ▾"; font-size: 0.65em; color: var(--halo-text-muted); }

.halo-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	background: var(--halo-bg);
	border: 1px solid var(--halo-border);
	border-radius: var(--halo-radius);
	box-shadow: var(--halo-shadow-lg);
	min-width: 14rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 160ms var(--halo-ease), transform 160ms var(--halo-ease), visibility 160ms;
}
.halo-nav__list > .menu-item { position: relative; }
.halo-nav__list .menu-item-has-children:hover > .sub-menu,
.halo-nav__list .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.halo-nav__list .sub-menu a { display: block; padding: 0.5rem 0.75rem; border-radius: var(--halo-radius-sm); }
.halo-nav__list .sub-menu a:hover { background: var(--halo-surface); }

.halo-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.halo-theme-toggle { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid var(--halo-border); border-radius: var(--halo-radius-full); color: var(--halo-text); cursor: pointer; transition: background 160ms var(--halo-ease), border-color 160ms var(--halo-ease); }
.halo-theme-toggle:hover { background: var(--halo-surface); border-color: var(--halo-border-strong); }
.halo-theme-toggle__moon { display: none; }
.halo--dark .halo-theme-toggle__sun  { display: none; }
.halo--dark .halo-theme-toggle__moon { display: block; }

.halo-mobile-toggle { display: none; padding: 0.5rem; background: transparent; border: 0; cursor: pointer; }
.halo-mobile-toggle__bar { display: block; width: 22px; height: 2px; background: var(--halo-text); margin: 5px 0; border-radius: 2px; transition: transform 200ms var(--halo-ease), opacity 200ms; }

@media (max-width: 64em) {
	.halo-header__inner { grid-template-columns: auto 1fr auto; }
	.halo-nav { display: none; }
	.halo-header__cta { display: none; }
	.halo-mobile-toggle { display: inline-block; }
}

.halo-mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem var(--halo-gutter) 1.5rem;
	border-top: 1px solid var(--halo-border);
	background: var(--halo-bg);
}
.halo-mobile-nav[hidden] { display: none; }
.halo-mobile-nav__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.halo-mobile-nav__list a { display: block; padding: 0.75rem 0; font-size: 1.0625rem; font-weight: 500; color: var(--halo-text); text-decoration: none; border-bottom: 1px solid var(--halo-border); }
.halo-mobile-nav__cta { margin-top: 0.5rem; }

/* ------------------------------------------------------------------ *
 * 7. Footer
 * ------------------------------------------------------------------ */
.halo-footer {
	margin-top: clamp(3rem, 8vw, 6rem);
	padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
	background: var(--halo-surface);
	border-top: 1px solid var(--halo-border);
	color: var(--halo-text);
	font-size: 0.9375rem;
}

.halo-footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 64em) { .halo-footer__top { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.halo-footer__site-name { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.halo-footer__tagline { color: var(--halo-text-muted); margin: 0 0 1.25rem; max-width: 30rem; }

.halo-footer__columns { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2.5rem; }
@media (min-width: 48em) { .halo-footer__columns { grid-template-columns: repeat(4, 1fr); } }
.halo-footer__column ul { list-style: none; padding: 0; margin: 0; }
.halo-footer__column li + li { margin-top: 0.5rem; }
.halo-footer__column a { color: var(--halo-text-muted); }
.halo-footer__column a:hover { color: var(--halo-text); }
.halo-footer__column .widget__title,
.halo-footer__column h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--halo-text); margin: 0 0 1rem; }

.halo-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--halo-border);
	flex-wrap: wrap;
	color: var(--halo-text-muted);
	font-size: 0.875rem;
}
.halo-footer__legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; }

.halo-newsletter { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.halo-newsletter input {
	flex: 1; min-width: 14rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--halo-border);
	border-radius: var(--halo-radius);
	background: var(--halo-bg);
	color: var(--halo-text);
	font: inherit;
}
.halo-newsletter input:focus-visible { border-color: var(--halo-primary); outline: 2px solid var(--halo-primary); outline-offset: 1px; }

.halo-social { list-style: none; display: flex; gap: 0.75rem; padding: 0; margin: 0; }
.halo-social a {
	display: inline-flex;
	width: 2.25rem; height: 2.25rem;
	align-items: center; justify-content: center;
	border-radius: var(--halo-radius-full);
	background: var(--halo-bg);
	border: 1px solid var(--halo-border);
	color: var(--halo-text-muted);
}
.halo-social a:hover { color: var(--halo-primary); border-color: var(--halo-primary); }

/* ------------------------------------------------------------------ *
 * 8. Cards / posts / archives
 * ------------------------------------------------------------------ */
.halo-archive-header { text-align: center; margin-block: clamp(2rem, 5vw, 4rem); }
.halo-archive-header__eyebrow { color: var(--halo-primary); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem; }
.halo-archive-header__title { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.025em; }

.halo-post-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.halo-post-grid--grid-2 { grid-template-columns: 1fr; }
.halo-post-grid--grid-3 { grid-template-columns: 1fr; }
@media (min-width: 48em) {
	.halo-post-grid--grid-2 { grid-template-columns: repeat(2, 1fr); }
	.halo-post-grid--grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 72em) {
	.halo-post-grid--grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.halo-card { display: flex; flex-direction: column; background: var(--halo-bg); border: 1px solid var(--halo-border); border-radius: var(--halo-radius-lg); overflow: hidden; transition: transform 200ms var(--halo-ease), box-shadow 200ms var(--halo-ease); }
.halo-card:hover { transform: translateY(-2px); box-shadow: var(--halo-shadow-lg); }
.halo-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.halo-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--halo-ease); }
.halo-card:hover .halo-card__image { transform: scale(1.04); }
.halo-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.halo-card__eyebrow { color: var(--halo-primary); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.halo-card__eyebrow a { color: inherit; }
.halo-card__title { font-size: 1.25rem; margin: 0; line-height: 1.3; }
.halo-card__title a { color: var(--halo-text); }
.halo-card__title a:hover { color: var(--halo-primary); }
.halo-card__excerpt { color: var(--halo-text-muted); margin: 0; font-size: 0.9375rem; }
.halo-card__meta { margin: auto 0 0; padding-top: 1rem; font-size: 0.8125rem; color: var(--halo-text-muted); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ *
 * 9. Single post / page
 * ------------------------------------------------------------------ */
.halo-single__hero { padding-block: clamp(2rem, 6vw, 4rem); }
.halo-single__eyebrow { color: var(--halo-primary); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem; }
.halo-single__title { margin: 0 0 1rem; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.1; letter-spacing: -0.03em; }
.halo-single__lede { font-size: 1.25rem; color: var(--halo-text-muted); margin: 0 0 1.5rem; line-height: 1.5; }
.halo-single__media { margin: 2rem 0 0; }
.halo-single__media img { width: 100%; height: auto; border-radius: var(--halo-radius-lg); box-shadow: var(--halo-shadow-xl); }
.halo-single__content { margin-block: clamp(2rem, 5vw, 3.5rem); }

.halo-post-meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; color: var(--halo-text-muted); font-size: 0.875rem; align-items: center; }
.halo-post-meta__author a { display: flex; align-items: center; gap: 0.5rem; color: var(--halo-text); }
.halo-post-meta__avatar { width: 2rem; height: 2rem; border-radius: 9999px; }

.halo-prose > * + * { margin-top: 1rem; }
.halo-prose h2 { margin: 2.5rem 0 1rem; font-size: 1.875rem; }
.halo-prose h3 { margin: 2rem 0 0.75rem; font-size: 1.5rem; }
.halo-prose h4 { margin: 1.5rem 0 0.5rem; font-size: 1.25rem; }
.halo-prose a { color: var(--halo-primary); text-decoration: underline; text-underline-offset: 3px; }
.halo-prose ul li,
.halo-prose ol li { margin-bottom: 0.5rem; }
.halo-prose img { border-radius: var(--halo-radius); margin: 1.5rem 0; }
.halo-prose figure { margin: 1.5rem 0; }
.halo-prose figcaption { font-size: 0.875rem; color: var(--halo-text-muted); text-align: center; margin-top: 0.5rem; }

.halo-author-box { display: flex; gap: 1.25rem; align-items: flex-start; margin-block: 3rem; padding: 1.75rem; background: var(--halo-surface); border-radius: var(--halo-radius-lg); }
.halo-author-box__avatar { width: 5rem; height: 5rem; border-radius: 9999px; flex-shrink: 0; }
.halo-author-box__eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--halo-text-muted); margin: 0 0 0.25rem; }
.halo-author-box__name { margin: 0 0 0.5rem; font-size: 1.125rem; }
.halo-author-box__bio { margin: 0 0 0.75rem; color: var(--halo-text-muted); }
.halo-author-box__link { font-weight: 600; }

.halo-related { padding-block: clamp(3rem, 6vw, 5rem); background: var(--halo-surface); border-top: 1px solid var(--halo-border); }
.halo-related__title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 auto 2rem; max-width: 60rem; }
.halo-related__grid { max-width: var(--halo-container); margin: 0 auto; padding-inline: var(--halo-gutter); display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .halo-related__grid { grid-template-columns: repeat(3, 1fr); } }
.halo-related__card { display: flex; flex-direction: column; gap: 0.75rem; background: var(--halo-bg); border: 1px solid var(--halo-border); border-radius: var(--halo-radius-lg); overflow: hidden; padding-bottom: 1.25rem; }
.halo-related__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.halo-related__media img { width: 100%; height: 100%; object-fit: cover; }
.halo-related__heading { margin: 0 1.25rem; font-size: 1.0625rem; line-height: 1.3; }
.halo-related__heading a { color: var(--halo-text); }
.halo-related__excerpt { margin: 0 1.25rem; font-size: 0.875rem; color: var(--halo-text-muted); }

.halo-postnav { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 2.5rem 0; }
.halo-postnav__direction { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--halo-text-muted); margin-bottom: 0.25rem; }
.halo-postnav__title { display: block; font-weight: 600; font-size: 0.9375rem; }
.halo-postnav .nav-previous, .halo-postnav .nav-next { padding: 1.25rem; border: 1px solid var(--halo-border); border-radius: var(--halo-radius); }
.halo-postnav .nav-next { text-align: end; }
.halo-postnav a { color: var(--halo-text); }

/* ------------------------------------------------------------------ *
 * 10. Pagination, breadcrumbs, search, 404
 * ------------------------------------------------------------------ */
.halo-pagination { margin-block: 2.5rem; }
.halo-pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.halo-pagination .page-numbers {
	display: inline-flex; min-width: 2.5rem; height: 2.5rem; padding: 0 0.875rem;
	align-items: center; justify-content: center;
	border: 1px solid var(--halo-border); border-radius: var(--halo-radius);
	color: var(--halo-text); text-decoration: none; font-weight: 500;
}
.halo-pagination .page-numbers.current { background: var(--halo-primary); color: var(--halo-text-inv); border-color: var(--halo-primary); }
.halo-pagination .page-numbers:hover { border-color: var(--halo-primary); color: var(--halo-primary); }

.halo-breadcrumbs ol { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--halo-text-muted); flex-wrap: wrap; }
.halo-breadcrumbs li + li::before { content: "›"; margin-right: 0.5rem; color: var(--halo-text-subtle); }
.halo-breadcrumbs a { color: var(--halo-text-muted); }
.halo-breadcrumbs a:hover { color: var(--halo-text); }
.halo-breadcrumbs [aria-current="page"] { color: var(--halo-text); font-weight: 500; }

.halo-search-form { display: flex; gap: 0.5rem; }
.halo-search-form__input { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--halo-border); border-radius: var(--halo-radius); background: var(--halo-bg); color: var(--halo-text); font: inherit; }
.halo-search-form__input:focus-visible { border-color: var(--halo-primary); outline: 2px solid var(--halo-primary); outline-offset: 1px; }
.halo-search-form__submit { padding: 0.75rem 1.5rem; border: 0; border-radius: var(--halo-radius); background: var(--halo-primary); color: var(--halo-text-inv); font-weight: 600; cursor: pointer; }

.halo-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.halo-404__code { font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--halo-primary), var(--halo-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.05em; }
.halo-404__title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 1rem 0 0.75rem; }
.halo-404__lede { color: var(--halo-text-muted); max-width: 38rem; margin: 0 auto 2rem; font-size: 1.0625rem; }
.halo-404__search { max-width: 28rem; margin: 0 auto 1.5rem; }
.halo-404__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.halo-404__recent { margin-top: 3rem; text-align: left; max-width: 28rem; margin-inline: auto; }
.halo-404__recent h2 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--halo-text-muted); margin: 0 0 0.75rem; }
.halo-404__recent ul { list-style: none; padding: 0; margin: 0; }
.halo-404__recent li { padding: 0.5rem 0; border-bottom: 1px solid var(--halo-border); }

/* ------------------------------------------------------------------ *
 * 10b. Hero + Pricing + Features + CTA (shared, used by inline
 *      fallbacks in front-page.php so they don't depend on the per-block
 *      stylesheets which only load when the block is on the page)
 * ------------------------------------------------------------------ */
.halo-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(5rem, 12vw, 8rem) clamp(2rem, 6vw, 4rem);
	isolation: isolate;
}
.halo-hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.halo-hero__bg--aurora {
	background:
		radial-gradient(45rem 28rem at 18% -10%, rgba(79, 70, 229, 0.55), transparent 65%),
		radial-gradient(42rem 26rem at 88% -5%, rgba(6, 182, 212, 0.45), transparent 65%),
		radial-gradient(38rem 24rem at 50% 105%, rgba(147, 51, 234, 0.35), transparent 70%),
		radial-gradient(28rem 18rem at 75% 60%, rgba(16, 185, 129, 0.25), transparent 70%);
	filter: saturate(1.1);
}
.halo-hero__grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	opacity: 0.5;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.halo-hero__inner { position: relative; z-index: 1; }
.halo-hero--centered .halo-hero__inner,
.halo-hero--default  .halo-hero__inner { text-align: center; }
.halo-hero--centered .halo-hero__copy,
.halo-hero--default  .halo-hero__copy { max-width: 56rem; margin-inline: auto; }
.halo-hero--centered .halo-hero__cta,
.halo-hero--default  .halo-hero__cta { justify-content: center; }
.halo-hero--split .halo-hero__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 64em) {
	.halo-hero--split .halo-hero__inner { grid-template-columns: 1.05fr 1fr; }
}

.halo-hero__eyebrow {
	display: inline-block;
	padding: 0.375rem 0.875rem;
	border-radius: 9999px;
	background: var(--halo-primary-soft);
	color: var(--halo-primary);
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
}
.halo-hero__title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.25rem, 6vw, 4.25rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
}
.halo-hero__lede {
	margin: 0 auto 2rem;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.5;
	color: var(--halo-text-muted);
	max-width: 44rem;
}
.halo-hero__cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 1.5rem; }
.halo-hero__trust { margin: 0; font-size: 0.875rem; color: var(--halo-text-muted); }

.halo-feature-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .halo-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .halo-feature-grid { grid-template-columns: repeat(3, 1fr); } }
.halo-feature { padding: 1.75rem; border: 1px solid var(--halo-border); border-radius: 1rem; background: var(--halo-bg); transition: transform 200ms var(--halo-ease), border-color 200ms var(--halo-ease), box-shadow 200ms var(--halo-ease); }
.halo-feature:hover { transform: translateY(-2px); border-color: rgba(79, 70, 229, 0.4); box-shadow: var(--halo-shadow-lg); }
.halo-feature__icon { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; margin-bottom: 1.25rem; border-radius: 0.625rem; background: var(--halo-primary-soft); color: var(--halo-primary); }
.halo-feature__title { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; }
.halo-feature__body  { margin: 0; color: var(--halo-text-muted); font-size: 0.9375rem; line-height: 1.55; }

.halo-pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .halo-pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.halo-pricing-tier { position: relative; display: flex; flex-direction: column; padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--halo-border); border-radius: 1.25rem; background: var(--halo-bg); transition: transform 200ms var(--halo-ease), box-shadow 200ms var(--halo-ease); text-align: left; }
.halo-pricing-tier:hover { transform: translateY(-2px); box-shadow: var(--halo-shadow-lg); }
.halo-pricing-tier--highlight { border-color: var(--halo-primary); box-shadow: var(--halo-shadow-glow); }
.halo-pricing-tier__badge { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); margin: 0; padding: 0.25rem 0.75rem; background: var(--halo-primary); color: #fff; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.halo-pricing-tier__name { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; }
.halo-pricing-tier__price { margin: 0 0 1.5rem; display: flex; align-items: baseline; gap: 0.25rem; }
.halo-pricing-tier__amount { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.halo-pricing-tier__cadence { color: var(--halo-text-muted); font-size: 1rem; font-weight: 500; }
.halo-pricing-tier__features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.halo-pricing-tier__features li { padding: 0.5rem 0; font-size: 0.9375rem; border-top: 1px solid var(--halo-border); }
.halo-pricing-tier__features li:first-child { border-top: 0; }

/* ------------------------------------------------------------------ *
 * 11. Sections (shared)
 * ------------------------------------------------------------------ */
.halo-section { padding-block: clamp(3rem, 8vw, 6rem); }
.halo-section__header { text-align: center; max-width: 56rem; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.halo-section__eyebrow { color: var(--halo-primary); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem; }
.halo-section__title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; letter-spacing: -0.025em; }

/* ------------------------------------------------------------------ *
 * 12. Comments
 * ------------------------------------------------------------------ */
.halo-comments { margin: 3rem 0; }
.halo-comments__title { font-size: 1.5rem; margin: 0 0 1.5rem; }
.halo-comments__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.halo-comments__list .children { list-style: none; padding-left: 1.5rem; margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }

.halo-comment__body { padding: 1.25rem; background: var(--halo-surface); border-radius: var(--halo-radius); }
.halo-comment__header { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.halo-comment__avatar img { border-radius: 9999px; }
.halo-comment__name { margin: 0; font-weight: 600; }
.halo-comment__date { margin: 0; font-size: 0.8125rem; color: var(--halo-text-muted); }
.halo-comment__date a { color: inherit; }

.halo-comment-form { margin-top: 2.5rem; }
.halo-comment-form p { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.halo-comment-form label { font-weight: 500; font-size: 0.875rem; }
.halo-comment-form input, .halo-comment-form textarea {
	padding: 0.75rem 1rem; border: 1px solid var(--halo-border); border-radius: var(--halo-radius);
	background: var(--halo-bg); color: var(--halo-text); font: inherit;
}
.halo-comment-form textarea { min-height: 8rem; resize: vertical; }
.halo-comment-form__eyebrow { display: block; color: var(--halo-primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.halo-comment-form__title { display: block; font-size: 1.25rem; font-weight: 700; }

/* ------------------------------------------------------------------ *
 * 13. Block style variations applied to core blocks
 * ------------------------------------------------------------------ */
.is-style-halo-card { padding: 1.5rem; background: var(--halo-bg); border: 1px solid var(--halo-border); border-radius: var(--halo-radius-lg); }
.is-style-halo-card-bordered { padding: 1.5rem; background: transparent; border: 1px solid var(--halo-border); border-radius: var(--halo-radius-lg); }
.is-style-halo-card-glow { padding: 1.75rem; background: var(--halo-bg); border-radius: var(--halo-radius-lg); box-shadow: var(--halo-shadow-glow); }
.is-style-halo-section { padding-block: clamp(3rem, 7vw, 5rem); }

.is-style-halo-dotted { border-top-style: dotted; height: 0; border-top-width: 2px; border-color: var(--halo-border-strong); }
.is-style-halo-gradient { height: 2px; background: linear-gradient(90deg, var(--halo-primary), var(--halo-accent)); border: 0; }

.is-style-halo-screenshot img { border-radius: var(--halo-radius-lg); box-shadow: var(--halo-shadow-2xl); border: 1px solid var(--halo-border); }
.is-style-halo-tilt img { transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transform-origin: center; box-shadow: var(--halo-shadow-2xl); border-radius: var(--halo-radius-lg); }

.is-style-halo-checks ul, .is-style-halo-arrows ul { list-style: none; padding: 0; }
.is-style-halo-checks li,
.is-style-halo-arrows li { padding-left: 1.75rem; position: relative; }
.is-style-halo-checks li::before { content: "✓"; color: var(--halo-success); font-weight: 700; position: absolute; left: 0; }
.is-style-halo-arrows li::before { content: "→"; color: var(--halo-primary); font-weight: 700; position: absolute; left: 0; }

/* ------------------------------------------------------------------ *
 * 14. Accessibility helpers
 * ------------------------------------------------------------------ */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; padding: 0;
	overflow: hidden; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--halo-bg); clip: auto !important; clip-path: none;
	color: var(--halo-primary); display: block; font-size: 0.875rem; font-weight: 700;
	height: auto; width: auto; padding: 1rem 1.5rem; left: 0.5rem; top: 0.5rem;
	z-index: 100000; border-radius: var(--halo-radius);
}

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

/* ------------------------------------------------------------------ *
 * 14b. Premium components — gradient text, pills, avatar stack,
 *      hero showcase (mockup), logo cloud, bento grid, meters,
 *      testimonial polish, FAQ accordion polish, gradient CTA.
 *      These are the "design language" that lift the theme out of
 *      generic-template territory.
 * ------------------------------------------------------------------ */

/* Gradient headline accent */
.halo-grad-text {
	background-image: linear-gradient(120deg, #4F46E5 0%, #9333EA 35%, #06B6D4 75%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
	padding-block: 0.05em;
}
html[data-halo-scheme="dark"] .halo-grad-text,
.halo--dark .halo-grad-text {
	background-image: linear-gradient(120deg, #818CF8 0%, #C084FC 35%, #67E8F9 75%);
}

/* Gradient-bordered pill (used for hero eyebrow) */
.halo-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.875rem 0.4rem 0.625rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--halo-text);
	text-decoration: none;
	transition: transform 200ms var(--halo-ease), box-shadow 200ms var(--halo-ease);
}
.halo-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .35); text-decoration: none; }
.halo-pill--gradient-border {
	position: relative;
	background: var(--halo-bg);
	box-shadow:
		0 0 0 1px transparent,
		0 4px 14px -6px rgba(79, 70, 229, 0.25);
	background-clip: padding-box;
	border: 1px solid transparent;
}
.halo-pill--gradient-border::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(120deg, #4F46E5, #06B6D4, #9333EA);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.halo-pill__dot {
	display: inline-block;
	width: 8px; height: 8px;
	border-radius: 9999px;
	background: var(--halo-success);
	box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
	animation: halo-pulse 2s ease-out infinite;
}
@keyframes halo-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
	50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.halo-pill__arrow { color: var(--halo-text-muted); transition: transform 200ms var(--halo-ease); }
.halo-pill:hover .halo-pill__arrow { transform: translateX(2px); color: var(--halo-text); }
html[data-halo-scheme="dark"] .halo-pill,
.halo--dark .halo-pill { background: rgba(17, 24, 39, 0.7); color: var(--halo-text); }

/* Glow on primary button */
.halo-btn--glow { box-shadow: 0 12px 30px -10px rgba(79, 70, 229, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.halo-btn--glow:hover { box-shadow: 0 16px 40px -10px rgba(79, 70, 229, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22); }

/* Hero showcase layout — copy on left, mockup on right at >=72em */
.halo-hero--showcase .halo-hero__inner { display: block; }
.halo-hero--showcase .halo-hero__copy { max-width: 56rem; margin-inline: auto; text-align: center; }
@media (min-width: 72em) {
	.halo-hero--showcase .halo-hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 4rem);
		align-items: center;
	}
	.halo-hero--showcase .halo-hero__copy { text-align: left; margin: 0; max-width: none; }
	.halo-hero--showcase .halo-hero__cta { justify-content: flex-start; }
	.halo-hero--showcase .halo-avatar-stack,
	.halo-hero--showcase .halo-hero__trust { justify-content: flex-start; }
}
.halo-hero--showcase .halo-hero__title { margin-bottom: 1.25rem; }
.halo-hero--showcase .halo-hero__title br { display: block; }
.halo-hero--showcase .halo-hero__trust {
	display: flex; align-items: center; gap: 0.875rem; justify-content: center; flex-wrap: wrap;
}
.halo-hero__trust-text { margin: 0; font-size: 0.875rem; color: var(--halo-text-muted); }
.halo-hero__trust-text strong { color: var(--halo-text); font-weight: 600; }
.halo-stars { color: #F59E0B; letter-spacing: 0.05em; }

/* Avatar stack */
.halo-avatar-stack { display: inline-flex; list-style: none; padding: 0; margin: 0; align-items: center; }
.halo-avatar-stack li + li { margin-inline-start: -0.625rem; }
.halo-avatar {
	display: inline-flex;
	width: 2rem; height: 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	background: linear-gradient(135deg, #6366F1, #4F46E5);
	box-shadow: 0 0 0 2px var(--halo-bg);
	flex-shrink: 0;
}
.halo-avatar[data-tone="violet"]  { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.halo-avatar[data-tone="cyan"]    { background: linear-gradient(135deg, #22D3EE, #06B6D4); }
.halo-avatar[data-tone="emerald"] { background: linear-gradient(135deg, #34D399, #10B981); }
.halo-avatar[data-tone="amber"]   { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.halo-avatar[data-tone="rose"]    { background: linear-gradient(135deg, #FB7185, #E11D48); }
.halo-avatar--more {
	background: var(--halo-surface);
	color: var(--halo-text);
	font-size: 0.6875rem;
	border: 1px solid var(--halo-border);
}

/* App mockup (pure CSS browser chrome + fake dashboard) */
.halo-mockup {
	position: relative;
	margin-inline: auto;
	margin-block-start: clamp(2rem, 5vw, 3rem);
	max-width: 36rem;
	border-radius: 1rem;
	background: var(--halo-bg);
	border: 1px solid var(--halo-border);
	box-shadow:
		0 0 0 1px rgba(79, 70, 229, 0.06),
		0 30px 80px -20px rgba(79, 70, 229, 0.45),
		0 50px 90px -50px rgba(11, 16, 32, 0.45);
	overflow: visible;
	transform: perspective(1800px) rotateY(-3deg) rotateX(2deg);
	transform-origin: center;
}
@media (min-width: 72em) { .halo-mockup { margin-inline-start: auto; transform: perspective(1800px) rotateY(-5deg) rotateX(1deg); } }
.halo-mockup__chrome {
	display: flex; align-items: center; gap: 0.4rem;
	padding: 0.625rem 0.875rem;
	background: var(--halo-surface);
	border-bottom: 1px solid var(--halo-border);
	border-radius: 1rem 1rem 0 0;
}
.halo-mockup__dot { width: 10px; height: 10px; border-radius: 9999px; background: var(--halo-border-strong); flex-shrink: 0; }
.halo-mockup__dot[data-tone="red"]     { background: #EF4444; }
.halo-mockup__dot[data-tone="amber"]   { background: #F59E0B; }
.halo-mockup__dot[data-tone="emerald"] { background: #10B981; }
.halo-mockup__url {
	flex: 1;
	margin-inline-start: 0.75rem;
	padding: 0.25rem 0.625rem;
	background: var(--halo-bg);
	border-radius: 0.375rem;
	font-family: var(--halo-font-mono, ui-monospace, monospace);
	font-size: 0.6875rem;
	color: var(--halo-text-muted);
	text-align: center;
	border: 1px solid var(--halo-border);
}
.halo-mockup__body { display: grid; grid-template-columns: 130px 1fr; min-height: 280px; }
.halo-mockup__sidebar {
	padding: 0.875rem 0.625rem;
	background: var(--halo-surface);
	border-right: 1px solid var(--halo-border);
	border-radius: 0 0 0 1rem;
}
.halo-mockup__brand { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.375rem 0.875rem; }
.halo-mockup__brand-mark {
	width: 22px; height: 22px;
	border-radius: 0.4rem;
	background: linear-gradient(135deg, #4F46E5, #06B6D4);
	box-shadow: 0 4px 10px -4px rgba(79, 70, 229, 0.6);
}
.halo-mockup__brand-name { font-weight: 700; font-size: 0.875rem; }
.halo-mockup__nav { display: flex; flex-direction: column; gap: 0.125rem; }
.halo-mockup__nav a {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.375rem 0.5rem;
	border-radius: 0.4rem;
	font-size: 0.75rem;
	color: var(--halo-text-muted);
	text-decoration: none;
}
.halo-mockup__nav a.is-active { background: var(--halo-primary-soft); color: var(--halo-primary); font-weight: 600; }
.halo-mockup__nav-icon { width: 14px; height: 14px; border-radius: 3px; background: currentColor; opacity: 0.4; flex-shrink: 0; }
.halo-mockup__nav a.is-active .halo-mockup__nav-icon { opacity: 1; }
.halo-mockup__main { padding: 1rem; }
.halo-mockup__topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.875rem; }
.halo-mockup__topbar h3 { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.halo-mockup__topbar h3 span { color: var(--halo-text-muted); font-weight: 400; }
.halo-mockup__badge { padding: 0.125rem 0.5rem; background: rgba(16, 185, 129, 0.12); color: var(--halo-success); border-radius: 9999px; font-size: 0.6875rem; font-weight: 600; }
.halo-mockup__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-bottom: 0.875rem;
}
.halo-mockup__stats > div {
	padding: 0.5rem 0.625rem;
	background: var(--halo-surface);
	border-radius: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}
.halo-mockup__stat-label { font-size: 0.625rem; color: var(--halo-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.halo-mockup__stats strong { font-size: 0.9375rem; font-weight: 700; }
.halo-mockup__stats em { font-size: 0.6875rem; font-style: normal; font-weight: 600; }
.halo-mockup__stats .is-up   { color: var(--halo-success); }
.halo-mockup__stats .is-down { color: var(--halo-danger); }
.halo-mockup__chart {
	padding: 0.5rem;
	background: var(--halo-surface);
	border-radius: 0.5rem;
	margin-bottom: 0.625rem;
	height: 88px;
}
.halo-mockup__chart svg { width: 100%; height: 100%; }
.halo-mockup__rows { display: flex; flex-direction: column; gap: 0.375rem; }
.halo-mockup__row { display: grid; grid-template-columns: 2fr 1fr 1fr 0.75fr; gap: 0.5rem; padding: 0.5rem; background: var(--halo-surface); border-radius: 0.4rem; }
.halo-mockup__row span { display: block; height: 8px; border-radius: 9999px; background: var(--halo-border); }
.halo-mockup__row span:first-child { background: var(--halo-text-muted); opacity: 0.4; }
.halo-mockup__float {
	position: absolute;
	display: flex; align-items: center; gap: 0.625rem;
	padding: 0.625rem 0.875rem;
	background: var(--halo-bg);
	border-radius: 0.75rem;
	box-shadow: 0 18px 35px -10px rgba(11, 16, 32, 0.25), 0 0 0 1px var(--halo-border);
	font-size: 0.75rem;
	transform: perspective(800px) rotateY(0deg);
	animation: halo-float 6s ease-in-out infinite;
}
.halo-mockup__float strong { display: block; font-weight: 700; line-height: 1.2; }
.halo-mockup__float em { display: block; font-style: normal; color: var(--halo-text-muted); font-size: 0.6875rem; line-height: 1.2; margin-top: 2px; }
.halo-mockup__float--a { top: 18%; left: -8%; animation-delay: 0s; }
.halo-mockup__float--b { bottom: 14%; right: -8%; animation-delay: -3s; }
@keyframes halo-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-8px); }
}
.halo-mockup__float-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 9999px;
	font-weight: 700; color: #fff; font-size: 0.875rem;
	background: linear-gradient(135deg, #10B981, #059669);
}
.halo-mockup__float-icon[data-tone="violet"]  { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.halo-mockup__float-icon[data-tone="emerald"] { background: linear-gradient(135deg, #34D399, #10B981); }

@media (max-width: 56em) {
	.halo-mockup { transform: none; }
	.halo-mockup__float--a, .halo-mockup__float--b { display: none; }
}

/* Logo cloud */
.halo-logos { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--halo-border); border-bottom: 1px solid var(--halo-border); background: var(--halo-surface); }
.halo-logos__eyebrow { text-align: center; color: var(--halo-text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 1.5rem; }
.halo-logos__list {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
}
.halo-logo {
	font-family: var(--halo-font-heading, var(--halo-font-body));
	font-size: clamp(1.125rem, 1.5vw, 1.375rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--halo-text);
	opacity: 0.55;
	transition: opacity 200ms var(--halo-ease);
}
.halo-logo:hover { opacity: 1; }

/* Section helpers — eyebrow, lede under title */
.halo-section__lede { color: var(--halo-text-muted); font-size: 1.0625rem; margin: 0.75rem auto 0; max-width: 38rem; line-height: 1.55; }

/* Stats row (inline composition, not block) */
.halo-stats { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--halo-border); }
.halo-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 48em) { .halo-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.halo-stats__cell { padding: 1rem; }
.halo-stats__value {
	margin: 0 0 0.5rem;
	font-family: var(--halo-font-heading, var(--halo-font-body));
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	background: linear-gradient(135deg, var(--halo-primary), var(--halo-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.halo-stats__label { margin: 0; color: var(--halo-text-muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
html[data-halo-scheme="dark"] .halo-stats__value,
.halo--dark .halo-stats__value {
	background: linear-gradient(135deg, #818CF8, #67E8F9);
	-webkit-background-clip: text;
	background-clip: text;
}

/* Bento grid */
.halo-bento {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	grid-auto-rows: minmax(180px, auto);
}
@media (min-width: 48em) {
	.halo-bento { grid-template-columns: repeat(2, 1fr); }
	.halo-bento__card--hero { grid-column: 1 / -1; }
}
@media (min-width: 72em) {
	.halo-bento {
		grid-template-columns: repeat(4, 1fr);
	}
	.halo-bento__card--hero { grid-column: span 2; grid-row: span 2; }
}
.halo-bento__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	background: var(--halo-bg);
	border: 1px solid var(--halo-border);
	border-radius: 1.25rem;
	overflow: hidden;
	transition: transform 220ms var(--halo-ease), border-color 220ms var(--halo-ease), box-shadow 220ms var(--halo-ease);
}
.halo-bento__card:hover { transform: translateY(-3px); border-color: rgba(79, 70, 229, 0.45); box-shadow: 0 22px 45px -16px rgba(79, 70, 229, 0.25); }
.halo-bento__card--hero { padding: clamp(2rem, 4vw, 2.75rem); background: linear-gradient(160deg, var(--halo-bg) 0%, var(--halo-surface) 100%); }
.halo-bento__card--hero::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 60%;
	height: 80%;
	background: radial-gradient(closest-side, rgba(79, 70, 229, 0.22), transparent 70%);
	pointer-events: none;
}
.halo-bento__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem;
	margin-bottom: 1.25rem;
	border-radius: 0.75rem;
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.halo-bento__icon--violet  { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.halo-bento__icon--cyan    { background: linear-gradient(135deg, #22D3EE, #0EA5E9); }
.halo-bento__icon--emerald { background: linear-gradient(135deg, #34D399, #10B981); }
.halo-bento__icon--amber   { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.halo-bento__icon--rose    { background: linear-gradient(135deg, #FB7185, #E11D48); }
.halo-bento__title { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.halo-bento__card--hero .halo-bento__title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; }
.halo-bento__body { margin: 0; color: var(--halo-text-muted); line-height: 1.55; font-size: 0.9375rem; }
.halo-bento__card--hero .halo-bento__body { font-size: 1rem; max-width: 32rem; }
.halo-bento__chart {
	margin-top: 1.75rem;
	padding: 1.25rem;
	background: var(--halo-bg);
	border: 1px solid var(--halo-border);
	border-radius: 0.875rem;
	display: grid;
	gap: 0.625rem;
	box-shadow: var(--halo-shadow-sm);
}
.halo-meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.625rem; }
.halo-meter em { font-style: normal; font-size: 0.8125rem; font-weight: 600; color: var(--halo-text-muted); }
.halo-meter__bar {
	display: block;
	height: 6px;
	background: var(--halo-surface);
	border-radius: 9999px;
	position: relative;
	overflow: hidden;
}
.halo-meter__bar::after {
	content: "";
	position: absolute; inset: 0;
	width: calc(var(--v, 100) * 1%);
	background: linear-gradient(90deg, var(--halo-primary), var(--halo-accent));
	border-radius: inherit;
	animation: halo-meter-fill 1200ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes halo-meter-fill { from { width: 0; } }

/* Pricing polish */
.halo-pricing-tier__strike {
	display: inline-block;
	margin-inline-start: 0.5rem;
	color: var(--halo-text-muted);
	text-decoration: line-through;
	font-size: 1rem;
	font-weight: 500;
}
.halo-check {
	display: inline-flex;
	width: 18px; height: 18px;
	align-items: center; justify-content: center;
	border-radius: 9999px;
	background: var(--halo-primary-soft);
	color: var(--halo-primary);
	margin-inline-end: 0.625rem;
	flex-shrink: 0;
	position: relative;
}
.halo-check::after {
	content: "";
	width: 9px; height: 5px;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg) translate(0, -1px);
}
.halo-pricing-tier__features li { display: flex; align-items: center; }

/* Testimonials polish */
.halo-section--testimonials { background: linear-gradient(180deg, var(--halo-bg) 0%, var(--halo-surface) 100%); }
.halo-testimonial-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 64em) { .halo-testimonial-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.halo-testimonial {
	display: flex; flex-direction: column; gap: 1rem;
	padding: 1.75rem;
	background: var(--halo-bg);
	border: 1px solid var(--halo-border);
	border-radius: 1rem;
	margin: 0;
	transition: transform 200ms var(--halo-ease), box-shadow 200ms var(--halo-ease);
}
.halo-testimonial:hover { transform: translateY(-2px); box-shadow: var(--halo-shadow-lg); }
.halo-testimonial--feature { background: var(--halo-text); color: #F9FAFB; border-color: transparent; box-shadow: 0 20px 50px -20px rgba(11, 16, 32, 0.45); }
.halo-testimonial--feature .halo-testimonial__quote { color: #F9FAFB; }
.halo-testimonial--feature .halo-testimonial__who em { color: rgba(255, 255, 255, 0.7); }
.halo-testimonial--feature .halo-testimonial__who strong { color: #fff; }
.halo-testimonial__quote { font-size: 1.0625rem; line-height: 1.55; margin: 0; color: var(--halo-text); }
.halo-testimonial__cite { display: flex; align-items: center; gap: 0.75rem; font-style: normal; margin-top: auto; }
.halo-testimonial__who { display: flex; flex-direction: column; line-height: 1.3; }
.halo-testimonial__who strong { font-weight: 600; font-size: 0.9375rem; }
.halo-testimonial__who em { font-size: 0.8125rem; font-style: normal; color: var(--halo-text-muted); }

/* FAQ accordion polish */
.halo-section--faq { background: var(--halo-surface); }
.halo-faq__list { display: flex; flex-direction: column; gap: 0.625rem; }
.halo-faq__item {
	border: 1px solid var(--halo-border);
	border-radius: 0.875rem;
	background: var(--halo-bg);
	overflow: hidden;
	transition: border-color 200ms var(--halo-ease), box-shadow 200ms var(--halo-ease);
}
.halo-faq__item:hover { border-color: var(--halo-border-strong); }
.halo-faq__item[open] { border-color: rgba(79, 70, 229, 0.4); box-shadow: var(--halo-shadow-sm); }
.halo-faq__question {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1.125rem 1.5rem;
	font-weight: 600; font-size: 1rem;
	cursor: pointer;
	list-style: none;
	color: var(--halo-text);
}
.halo-faq__question::-webkit-details-marker { display: none; }
.halo-faq__chev { color: var(--halo-text-muted); transition: transform 200ms var(--halo-ease); flex-shrink: 0; }
.halo-faq__item[open] .halo-faq__chev { transform: rotate(180deg); color: var(--halo-primary); }
.halo-faq__answer { padding: 0 1.5rem 1.5rem; color: var(--halo-text-muted); line-height: 1.6; font-size: 0.9375rem; }
.halo-faq__answer p { margin: 0; }

/* Gradient CTA card */
.halo-section--cta-wrap { padding-block: clamp(2rem, 5vw, 4rem); }
.halo-cta--gradient {
	position: relative;
	padding-block: clamp(3rem, 7vw, 5rem);
	padding-inline: clamp(2rem, 5vw, 4rem);
	overflow: hidden;
	color: #fff;
	border-radius: 1.5rem;
	isolation: isolate;
	background: #4F46E5;
}
.halo-cta__bg {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(60% 80% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
		radial-gradient(50% 70% at 100% 100%, rgba(6, 182, 212, 0.65), transparent 60%),
		linear-gradient(135deg, #4F46E5 0%, #9333EA 100%);
}
.halo-cta__inner { position: relative; z-index: 1; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56em) { .halo-cta__inner { grid-template-columns: 1.5fr 1fr; gap: 2rem; } }
.halo-cta__heading { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.halo-cta__body { margin: 0; font-size: 1.0625rem; opacity: 0.92; line-height: 1.5; }
.halo-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 56em) { .halo-cta__actions { justify-content: flex-end; } }
.halo-btn--white { background: #fff; color: var(--halo-primary); }
.halo-btn--white:hover { background: #F4F4F6; color: var(--halo-primary-hover); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4); }
.halo-btn--ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); }
.halo-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); color: #fff; }

/* ------------------------------------------------------------------ *
 * 15. Dark mode (token swap)
 * ------------------------------------------------------------------ */
.halo--dark,
html[data-halo-scheme="dark"] {
	--halo-bg:           #0B1020;
	--halo-surface:      #111827;
	--halo-surface-2:    #0F172A;
	--halo-border:       #1F2937;
	--halo-border-strong:#374151;
	--halo-text:         #F9FAFB;
	--halo-text-muted:   #9CA3AF;
	--halo-text-subtle:  #6B7280;
	--halo-text-inv:     #0B1020;
	--halo-primary-soft: #1E1B4B;
}

html[data-halo-scheme="dark"] .halo-header { background: rgba(11,16,32,.85); }
html[data-halo-scheme="dark"] code { background: rgba(255,255,255,.06); }

@media (prefers-color-scheme: dark) {
	html[data-halo-scheme="auto"] {
		--halo-bg:           #0B1020;
		--halo-surface:      #111827;
		--halo-surface-2:    #0F172A;
		--halo-border:       #1F2937;
		--halo-border-strong:#374151;
		--halo-text:         #F9FAFB;
		--halo-text-muted:   #9CA3AF;
		--halo-text-subtle:  #6B7280;
		--halo-text-inv:     #0B1020;
		--halo-primary-soft: #1E1B4B;
	}
	html[data-halo-scheme="auto"] .halo-header { background: rgba(11,16,32,.85); }
}
