/* Application-specific styles that extend the core theme */

/* ============================================================================
 * STICKY FOOTER LAYOUT
 * Ensures the footer stays at the bottom even on short-content pages.
 * ============================================================================ */
.layout-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Nav divider between public links and admin dropdown */
.nav-divider {
    width: 1px;
    height: 20px;
    background-color: var(--theme-border);
    margin: 0 0.5rem;
    align-self: center;
}

/* Layout Configuration Classes */
.layout-container,
.layout-page,
.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
}

/* Override vendor width:0 on .layout-page in content-navbar context */
.layout-content-navbar .layout-page {
    width: 100%;
}

.layout-horizontal {
    --menu-type: horizontal;
}

.layout-vertical {
    --menu-type: vertical;
}

/* Menu Type Specific Styles */
.menu-horizontal {
    display: flex;
    flex-direction: row;
    height: auto;
}

.menu-vertical {
    display: flex;
    flex-direction: column;
    width: var(--menu-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: var(--navbar-height);
}

/* Application specific overrides */
body {
    padding-top: var(--content-padding-top);
}
/* Hero Section Styles */
.hero-section {
    background-color: var(--theme-bg-secondary);
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--navbar-height) + 40px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Custom Button Styles */
.btn-primary-custom {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary-custom:hover {
    background-color: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-brand) 30%, transparent);
}

.btn-outline-custom {
    border: 2px solid var(--btn-outline-primary);
    color: var(--btn-outline-primary);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-outline-custom:hover {
    background-color: var(--btn-outline-hover-bg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--secondary-brand) 30%, transparent);
}

/* Section Backgrounds */
.section-dark {
    background-color: var(--theme-bg-tertiary);
    padding: 80px 0;
}

.section-light {
    background-color: var(--theme-bg-secondary);
    padding: 80px 0;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
}

    .product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background-color: var(--primary-brand);
    }

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        color: inherit;
        text-decoration: none;
    }

    .product-card.featured {
        border: 2px solid var(--primary-brand);
    }

    .product-card.addon {
        opacity: 0.7;
        border: 1px solid var(--theme-border);
    }

.product-icon {
    font-size: 3rem !important;
    color: var(--primary-brand);
    margin-bottom: 20px;
}

/* Higher specificity to override MDI defaults */
.mdi.product-icon:before {
    font-size: 3rem !important;
}

/* Also target any inline styles that might be applied */
i.mdi.product-icon {
    font-size: 3rem !important;
}

i.mdi.product-icon:before {
    font-size: 3rem !important;
    line-height: 1.5em;
}

/* Override MDI defaults for any icon with inline font-size */
.mdi[style*="font-size: 3rem"]:before {
    font-size: 3rem !important;
}

/* Catch-all for any MDI icon that should be 4rem */
.text-center .mdi:before {
    font-size: inherit !important;
}

/* Logo product icons - smaller than main product icons */
.logo-product-icon {
    font-size: 3rem !important;
}

.mdi.logo-product-icon:before {
    font-size: 3rem !important;
}

i.mdi.logo-product-icon {
    font-size: 3rem !important;
}

i.mdi.logo-product-icon:before {
    font-size: 3rem !important;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-brand);
}

/* Navbar inherits theme colors from core-theme.css */
.navbar {
    z-index: 1030; /* Ensure navbar stays on top */
    transition: all 0.3s ease;
}

.navbar.fixed-top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive navbar adjustments */
@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 100px; /* Smaller offset for mobile */
    }
    
    .smooth-scroll {
        scroll-padding-top: 100px; /* Smaller offset for mobile */
    }
    
    body {
        padding-top: 80px; /* Smaller padding for mobile */
    }
    
    .hero-section {
        min-height: calc(100vh - 80px);
        margin-top: -80px;
        padding-top: 80px;
    }
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-brand);
}

.text-primary-brand {
    color: var(--primary-brand);
}

.text-secondary-brand {
    color: var(--secondary-brand);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--theme-text-muted);
    margin-bottom: 40px;
    line-height: 1.5;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--theme-text-muted);
    margin-bottom: 50px;
}

.bundle-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-brand);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    color: var(--theme-text-primary);
}

    .bundle-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background-color: var(--primary-brand);
    }

.savings-badge {
    background-color: var(--secondary-brand);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.bundle-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-brand);
}

.original-price {
    font-size: 1.5rem;
    color: var(--theme-text-muted);
    text-decoration: line-through;
}

.feature-highlight {
    background: color-mix(in srgb, var(--primary-brand) 10%, transparent);
    border: 1px solid var(--primary-brand);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.addon-notice {
    background: color-mix(in srgb, var(--secondary-brand) 10%, transparent);
    border: 1px solid var(--secondary-brand);
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.hidden-products {
    display: none;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

html {
    scroll-padding-top: 140px; /* Offset for fixed navbar + extra space */
}

.smooth-scroll {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Offset for fixed navbar + extra space */
}

h1:focus {
    outline: none;
}

/* Ensure h4 elements match Bootstrap default font-size */
h4 {
    font-size: 1.5rem !important;
}

/* Problem section spacing improvements */
.problem-section .row {
    margin-top: 1rem;
}

/* Fix MDI icon spacing in problem/stats sections */
.problem-section .mdi,
.stats-section .mdi {
    line-height: 1 !important;
    margin-bottom: 1.5rem !important;
    display: block;
}

.reglink {
    text-decoration: underline;
    color: var(--theme-text-primary);
}

/* Note: .btn-primary and .btn-outline-primary styles are in core-theme.css */

.modal-backdrop {
    --bs-backdrop-opacity: 0.7;
}

/* Menu active state - uses brand color */
.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) {
    background-color: var(--primary-brand);
    border-top-right-radius: 0px;
    border-bottom-right-radius: 100px;
    color: #fff;
    font-weight: 300;
}

.bg-menu-theme .menu-inner-shadow {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 100px;
    background-color: var(--theme-bg-secondary);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Brand color utility classes */
.primary-brand {
    color: var(--primary-brand) !important;
}

.secondary-brand {
    color: var(--secondary-brand) !important;
}

.bg-primary-brand {
    background-color: var(--primary-brand) !important;
}

.bg-secondary-brand {
    background-color: var(--secondary-brand) !important;
}

/* Button styling with brand colors */
.btn-primary-brand {
    background-color: var(--primary-brand) !important;
    color: white !important;
    text-transform: none !important;
}

.btn-secondary-brand {
    background-color: var(--secondary-brand) !important;
    color: white !important;
    text-transform: none !important;
}

/* Services section styling */
.services-section .card {
    transition: transform 0.3s ease;
}

    .services-section .card:hover {
        transform: translateY(-10px);
    }

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Override the bg-light class to use warm brown for contrast sections */
.bg-light {
    --bs-light-rgb: 107, 66, 38 !important;
    background-color: var(--primary-brand) !important;
}

/* Also override the CSS custom property at root level */
:root {
    --bs-light-rgb: 107, 66, 38 !important;
}

/* Alternative approach - target the specific element if the above is too broad */
.audience-section.bg-light,
.intake-questions-section.bg-light,
.bg-light.py-5 {
    background-color: var(--primary-brand) !important;
}

/* Ensure text contrast is good on the brown background */
.bg-light {
    color: #ffffff !important;
}

    .bg-light .lead,
    .bg-light h3,
    .bg-light h4,
    .bg-light p {
        color: #ffffff !important;
    }

    .bg-light .question-item {
        color: #EDD9C2 !important;
    }

/* Product-specific page styles */
.stats-number {
    font-size: 3rem;
    font-weight: 700;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--theme-text-primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-brand);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--card-shadow);
}

.feature-icon {
    font-size: 2.5rem !important;
    color: var(--primary-brand);
    margin-bottom: 20px;
}

/* Higher specificity to override MDI defaults for feature icons */
.mdi.feature-icon:before {
    font-size: 2.5rem !important;
}

/* Also target any inline styles that might be applied */
i.mdi.feature-icon {
    font-size: 2.5rem !important;
}

i.mdi.feature-icon:before {
    font-size: 2.5rem !important;
}

.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-brand);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--theme-text-primary);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--primary-brand);
}

.pricing-card > * {
    position: relative;
    z-index: 2;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-brand);
}

.value-badge {
    background-color: var(--secondary-brand);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* Responsive Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    height: 80px; /* Fixed height for navbar */
}

.responsive-logo {
    height: 100%;
    width: auto;
    max-width: none; /* Remove width restrictions */
}

/* Logo product icons - smaller than main product icons */
.logo-container .logo-product-icon {
    font-size: 1.5rem !important;
}

.logo-container .mdi.logo-product-icon:before {
    font-size: 1.5rem !important;
}

.logo-container i.mdi.logo-product-icon {
    font-size: 1.5rem !important;
}

    .logo-container i.mdi.logo-product-icon:before {
        font-size: 1.5rem !important;
    }

/* Navbar responsive adjustments */
.navbar {
    min-height: 90px;
    padding: 0.5rem 0;
}

.navbar-brand {
    margin-right: 0;
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
}

/* Extra small screens */
@media (max-width: 575.98px) {
    body {
        padding-top: 70px; /* Even smaller padding */
    }

    .hero-section {
        min-height: calc(100vh - 70px);
        margin-top: -70px;
        padding-top: 70px;
    }

    .navbar {
        min-height: 50px;
        padding: 0.25rem 0;
    }

    .logo-container {
        height: 80px;
        width: calc(100vw - 60px);
        overflow: visible; /* Add this to prevent clipping */
    }

        .logo-container .responsive-logo {
            transform: scale(0.7); /* Reduce from 1.5 to prevent cutoff */
        }

    .navbar .container {
        padding-left: 1rem;
    }

    .navbar-brand {
        margin-left: 0;
        padding-left: 0;
    }

    .responsive-logo {
        max-width: none; /* Remove width restrictions */
        min-width: unset; /* Remove width restrictions */
    }

    .logo-product-icon {
        font-size: 1.5rem !important;
    }

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

    .smooth-scroll {
        scroll-padding-top: 80px;
    }

    .navbar-nav .nav-item {
        margin-top: 0.5rem;
    }

    .navbar-nav .btn {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
}

/* Ensure navbar collapse button is properly sized */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Adjust navbar nav items for mobile */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin-top: 0.5rem;
    }

    .navbar-nav .btn {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
}


/* X (formerly Twitter) icon fallback.
   The shipped Material Design Icons web font (7.4.x) does NOT yet include the
   `mdi-x-twitter` glyph (only the legacy `mdi-twitter` bird). This renders the
   X logo via a CSS mask so it inherits `currentColor` and scales with
   `font-size` exactly like a native MDI glyph. If a future MDI font ships the
   real glyph, that built-in glyph takes precedence and this rule is harmless.
   Remove this block once the bundled font includes mdi-x-twitter. */
:root {
	--mdi-x-twitter-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
}

.mdi.mdi-x-twitter::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	background-color: currentColor;
	-webkit-mask: var(--mdi-x-twitter-mask) no-repeat center / contain;
	mask: var(--mdi-x-twitter-mask) no-repeat center / contain;
}

/* ============================================================================
 * SCROLL FX / EDITORIAL SYSTEM (public marketing pages)
 * Driven by js/scroll-fx.js. Page-specific layouts live in each page's .razor.css;
 * this block holds the shared vocabulary so every page feels like one site.
 *
 *   .fx-page      Outer wrapper for a redesigned page (removes shell padding)
 *   .fx-ink       Always-dark cinematic band        .fx-grain  Film-grain overlay
 *   .fx-kicker    Mono eyebrow label                 .fx-btn    Sweep-fill buttons
 *   .fx-scrub     Words light up with --p (use with data-progress="pin")
 *   [data-reveal] Scroll-in reveals (up|left|right|scale|clip|blur)
 * ============================================================================ */

/* Let full-bleed sections sit flush against the navbar and footer. */
.container-p-y:has(> .fx-page) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Tuck the page under the fixed navbar (offset = body padding-top at each breakpoint).
 * The first section sits behind the navbar and must add var(--fx-shell-offset) to its
 * own padding-top, so its background/glow runs all the way to the top edge. */
.fx-page {
	--fx-shell-offset: var(--content-padding-top);
	overflow-x: clip;
	margin-top: calc(-1 * var(--fx-shell-offset));
}

@media (max-width: 991.98px) {
	.fx-page { --fx-shell-offset: 80px; }
}

@media (max-width: 575.98px) {
	.fx-page { --fx-shell-offset: 70px; }
}

.fx-page h1, .fx-page h2, .fx-page h3 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
}

.fx-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
	position: relative;
	z-index: 2;
}

/* ---------- Ink band ---------- */
.fx-ink {
	background-color: var(--ink-900);
	color: var(--ink-text);
	position: relative;
	isolation: isolate;
}

.fx-ink h1, .fx-ink h2, .fx-ink h3 {
	color: var(--ink-text);
}

/* :where() keeps this at element-level specificity so component link styles win. */
:where(.fx-ink) a:not(.fx-btn) {
	color: var(--ember);
}

.fx-grain::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('img/grain.svg');
	background-size: 240px 240px;
	opacity: 0.09;
	mix-blend-mode: overlay;
	pointer-events: none;
	z-index: 1;
}

/* Soft glow blobs: solid circles, blurred (no gradients). */
.fx-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	z-index: 0;
	opacity: 0.55;
	animation: fx-drift 18s ease-in-out infinite alternate;
}

@keyframes fx-drift {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(4vw, -3vh, 0) scale(1.12); }
	100% { transform: translate3d(-3vw, 4vh, 0) scale(0.94); }
}

/* ---------- Type ---------- */
.fx-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--primary-brand);
	margin-bottom: 1.5rem;
}

.fx-kicker::before {
	content: '';
	width: 2.5rem;
	height: 1px;
	background-color: currentColor;
}

.fx-ink .fx-kicker {
	color: var(--ember);
}

.fx-accent {
	font-style: italic;
	color: var(--primary-brand);
}

.fx-ink .fx-accent {
	color: var(--ember);
}

.fx-outline {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--fx-outline-color, var(--theme-text-primary));
}

.fx-ink .fx-outline {
	--fx-outline-color: var(--ink-text);
}

/* ---------- Buttons ---------- */
.fx-btn {
	--fx-btn-bg: var(--primary-brand);
	--fx-btn-fg: var(--cream);
	--fx-btn-sweep: var(--ink-900);
	--fx-btn-sweep-fg: var(--cream);
	--fx-btn-border: var(--primary-brand);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.6rem;
	border-radius: 999px;
	border: 1.5px solid var(--fx-btn-border);
	background-color: var(--fx-btn-bg);
	color: var(--fx-btn-fg);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	transition: color 0.45s var(--ease-out-expo), border-color 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.fx-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: var(--fx-btn-sweep);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.55s var(--ease-out-expo);
	z-index: -1;
}

/* Vendor MDI pins .mdi::before to 18px, which ignores any font-size set on
   the icon itself. Inside redesigned pages, let the glyph follow its <i>. */
.fx-page .mdi::before,
.fx-btn .mdi::before {
	font-size: inherit;
	line-height: 1;
}

.fx-btn .mdi {
	font-size: 1.15rem;
	transition: transform 0.45s var(--ease-out-expo);
}

.fx-btn:hover,
.fx-btn:focus-visible {
	color: var(--fx-btn-sweep-fg);
	border-color: var(--fx-btn-sweep);
	text-decoration: none;
}

.fx-btn:hover::before,
.fx-btn:focus-visible::before {
	transform: scaleX(1);
	transform-origin: left center;
}

.fx-btn:hover .mdi,
.fx-btn:focus-visible .mdi {
	transform: translateX(4px);
}

.fx-btn:focus-visible {
	outline: 2px solid var(--ember);
	outline-offset: 3px;
}

.fx-btn--ember {
	--fx-btn-bg: var(--ember);
	--fx-btn-fg: var(--ink-900);
	--fx-btn-sweep: var(--cream);
	--fx-btn-sweep-fg: var(--ink-900);
	--fx-btn-border: var(--ember);
}

.fx-btn--ghost {
	--fx-btn-bg: transparent;
	--fx-btn-fg: var(--theme-text-primary);
	--fx-btn-sweep: var(--primary-brand);
	--fx-btn-sweep-fg: var(--cream);
	--fx-btn-border: var(--primary-brand);
}

.fx-ink .fx-btn--ghost {
	--fx-btn-fg: var(--ink-text);
	--fx-btn-sweep: var(--ink-text);
	--fx-btn-sweep-fg: var(--ink-900);
	--fx-btn-border: var(--ink-line);
}

/* ---------- Scroll scrub text (words light up) ----------
 * Parent section: data-progress="pin" (sets --p). Text container: .fx-scrub with --n = word count.
 * Each word: <span class="w" style="--i:N">. All words are lit by --p ~= 0.8. */
.fx-scrub .w {
	--lit: clamp(0, calc(var(--p, 1) * 1.25 * var(--n, 10) - var(--i, 0)), 1);
	opacity: calc(0.14 + 0.86 * var(--lit));
	transition: opacity 0.12s linear;
}

/* ---------- Reveals ---------- */
.fx [data-reveal] {
	transition:
		opacity 0.9s var(--ease-out-expo) var(--d, 0ms),
		transform 1.1s var(--ease-out-expo) var(--d, 0ms),
		clip-path 1.2s var(--ease-out-expo) var(--d, 0ms),
		filter 1s var(--ease-out-expo) var(--d, 0ms);
}

.fx [data-reveal]:not(.is-in) {
	opacity: 0;
	transform: translate3d(0, 48px, 0);
}

.fx [data-reveal="left"]:not(.is-in) { transform: translate3d(-64px, 0, 0); }
.fx [data-reveal="right"]:not(.is-in) { transform: translate3d(64px, 0, 0); }
.fx [data-reveal="scale"]:not(.is-in) { transform: scale(0.88); }
.fx [data-reveal="blur"]:not(.is-in) { transform: translate3d(0, 24px, 0); filter: blur(12px); }
/* Clip wipes its CHILDREN: IntersectionObserver honours clip-path on the target itself,
 * so clipping the observed element would make it report zero area and never reveal. */
.fx [data-reveal="clip"]:not(.is-in) {
	opacity: 1;
	transform: none;
}
.fx [data-reveal="clip"] > * {
	clip-path: inset(-30% -30% -30% -30%); /* open state leaves room for shadows/glows */
	transition: clip-path 1.3s var(--ease-out-expo) var(--d, 0ms);
}
.fx [data-reveal="clip"]:not(.is-in) > * { clip-path: inset(100% -30% -30% -30%); }
.fx .fx-instant > * { transition: none !important; }

/* Line-mask reveal: text rises from behind an invisible edge. */
.fx-line {
	display: block;
	overflow: hidden;
	/* room for tall ascenders (B, l, d) and italic descenders (g, y, p)
	   without changing the visual line gap */
	padding-top: 0.12em;
	margin-top: -0.12em;
	padding-bottom: 0.18em;
	margin-bottom: -0.1em;
}

.fx-line > span {
	display: inline-block;
}

.fx [data-reveal="line"]:not(.is-in) { opacity: 1; transform: none; }
.fx [data-reveal="line"] > span {
	transition: transform 1.2s var(--ease-out-expo) var(--d, 0ms);
}
/* 150% clears the mask's ascender/descender padding so no glyph slivers peek out */
.fx [data-reveal="line"]:not(.is-in) > span { transform: translate3d(0, 150%, 0); }

.fx .fx-instant,
.fx .fx-instant > span {
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.fx-blob { animation: none; }
	.fx-scrub .w { opacity: 1; }
}
