/* Main Styles for BEMCO Theme */

:root {
    /* Light Theme (Default) */
    --bg-color: #f7f9fc;
    --text-color: #1a1f36;
    --text-muted: #4f566b;
    --primary: #3b82f6;
    /* Bright Blue */
    --secondary: #8b5cf6;
    /* Electric Purple */
    --accent: #0ea5e9;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --btn-hover: #2563eb;
    --danger: #ef4444;
    --success: #10b981;
    --trust-logo-filter: grayscale(100%) brightness(0) saturate(100%);
}

[data-theme="dark"] {
    --bg-color: #0b0f19;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --btn-hover: #60a5fa;
    --trust-logo-filter: grayscale(100%) brightness(0) invert(1);
    --bg-gradient: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent 40%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body[data-theme="dark"] {
    background-image: var(--bg-gradient);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--btn-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Glassmorphism Classes */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--text-color);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

/* Dropdown Menus */
.main-navigation ul li {
    position: relative;
}

.main-navigation .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.main-navigation ul li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation .sub-menu a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-cta-container {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

.btn-primary.is-idle-feedback:not(:hover) {
    animation: primaryCtaIdleClick 640ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

@keyframes primaryCtaIdleClick {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }

    28% {
        transform: scale(0.96);
        box-shadow: 0 2px 10px rgba(59, 130, 246, 0.32);
    }

    60% {
        transform: scale(1.04);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.45), 0 9px 24px rgba(91, 107, 246, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 14px rgba(124, 58, 237, 0), 0 4px 15px rgba(59, 130, 246, 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary.is-idle-feedback:not(:hover) {
        animation: none;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-muted);
    font-weight: 400;
}

.btn-secondary:hover {
    background: var(--text-muted);
    color: var(--bg-color);
    font-weight: 600;
}

.btn-secondary:focus-visible,
.btn-secondary:active {
    font-weight: 600;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
}

/* Theme Toggle Icons */
[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.services-intro-section {
    max-width: 920px;
    margin: 0 auto 6rem;
}

.services-intro-cta {
    --fib-8: 8px;
    --fib-13: 13px;
    --fib-21: 21px;
    --fib-34: 34px;
    --fib-55: 55ch;
    display: block;
    border-radius: 1.1rem;
    border: 1px solid rgba(120, 108, 255, 0.22);
    padding: var(--fib-34) var(--fib-34) var(--fib-21);
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 22%, rgba(59, 130, 246, 0.16), transparent 56%),
        radial-gradient(circle at 92% 82%, rgba(139, 92, 246, 0.16), transparent 54%),
        linear-gradient(136deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.08));
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.1);
}

.services-intro-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services-intro-lead {
    margin: 0 0 var(--fib-13);
    max-width: 52ch;
    color: var(--text-color);
    font-size: 1.08rem;
    line-height: 1.65;
    font-style: normal;
}

.services-intro-emphasis {
    margin: 0;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 0.58vw + 1.35rem, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
}

.services-intro-chips {
    margin: var(--fib-21) 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--fib-8);
}

.services-intro-chips li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--fib-8) var(--fib-13);
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.26);
    background: rgba(255, 255, 255, 0.6);
    color: #3f4d69;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Animated Hero Text */
.text-slider {
    display: inline-grid;
    vertical-align: bottom;
}

.text-slide {
    grid-area: 1/1;
    opacity: 0;
    animation: slideText 12s infinite ease-in-out;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-slide:nth-child(1) {
    animation-delay: 0s;
}

.text-slide:nth-child(2) {
    animation-delay: 2s;
}

.text-slide:nth-child(3) {
    animation-delay: 4s;
}

.text-slide:nth-child(4) {
    animation-delay: 6s;
}

.text-slide:nth-child(5) {
    animation-delay: 8s;
}

.text-slide:nth-child(6) {
    animation-delay: 10s;
}

@keyframes slideText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    3% {
        opacity: 1;
        transform: translateY(0);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    18% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (max-width: 980px) {
    .services-intro-cta {
        padding: 2rem 1.4rem;
    }

    body.home.front-page .site-header--mega .site-header__utility,
    body.home.front-page .site-header--mega .site-header__main {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Defer heavy below-the-fold work on mobile home to improve early paint. */
    body.home.front-page .trust-bar-section,
    body.home.front-page .lifetime-stats-section,
    body.home.front-page .services-overview-section,
    body.home.front-page .home-tools-section,
    body.home.front-page .audience-section,
    body.home.front-page .email-automation-section,
    body.home.front-page .results-section,
    body.home.front-page .testimonials-section,
    body.home.front-page .home-blog-section,
    body.home.front-page .faq-section,
    body.home.front-page .final-cta-banner,
    body.home.front-page .homepage-about-preview {
        content-visibility: auto;
        contain-intrinsic-size: 1px 780px;
    }

    body.home.front-page .hero-section {
        content-visibility: visible;
        contain-intrinsic-size: none;
    }
}

[data-theme="dark"] .services-intro-cta {
    border-color: rgba(120, 149, 255, 0.32);
    background:
        radial-gradient(circle at 12% 22%, rgba(59, 130, 246, 0.28), transparent 56%),
        radial-gradient(circle at 92% 82%, rgba(139, 92, 246, 0.28), transparent 54%),
        linear-gradient(136deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.82));
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.35);
}

[data-theme="dark"] .services-intro-chips li span {
    border-color: rgba(120, 149, 255, 0.4);
    background: rgba(15, 23, 42, 0.6);
    color: #dbeafe;
}

/* Trust Bar */
.trust-bar-section {
    padding: 2rem 1rem;
    margin-bottom: 5rem;
}

.trust-bar-copy {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.trust-bar-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.trust-bar-track {
    display: flex;
    width: max-content;
    animation: trustBarScroll 28s linear infinite;
}

.trust-bar-logos {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0 3.5rem 0 0;
    width: max-content;
}

.trust-bar-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 56px;
}

.trust-bar-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    filter: var(--trust-logo-filter);
    opacity: 0.68;
}

.trust-bar-logo--uc-berkeley {
    filter: grayscale(100%) brightness(0.55) contrast(1.15);
    opacity: 0.82;
}

/* Lifetime Stats */
.lifetime-stats-section {
    margin-bottom: 6rem;
}

.lifetime-stats-header {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.lifetime-stats-kicker {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

.lifetime-stats-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0;
}

.stats-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(148px, auto);
    gap: 1.4rem;
}

.stats-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 148px;
    padding: 1.75rem;
    overflow: hidden;
    isolation: isolate;
}

.stats-tile::before {
    content: "";
    position: absolute;
    inset: auto auto -26% -10%;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0));
    z-index: -1;
    pointer-events: none;
}

.stats-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 48%),
        linear-gradient(315deg, rgba(14, 165, 233, 0.14), transparent 55%);
    z-index: -1;
    pointer-events: none;
}

.stats-tile-eyebrow {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.stats-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.25rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.92;
    margin-bottom: 0.7rem;
}

.stats-label {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 18ch;
}

.stats-tile--revenue {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 320px;
}

.stats-tile--revenue .stats-value {
    font-size: clamp(3.2rem, 6vw, 5.6rem);
}

.stats-tile--emails {
    grid-column: span 2;
}

.stats-tile--inbox {
    grid-row: span 2;
}

.stats-tile--landing-pages {
    grid-column: span 2;
}

.stats-tile--cta {
    grid-column: 4;
    grid-row: 3 / span 2;
    justify-content: space-between;
    min-height: 366px;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
        linear-gradient(145deg, rgba(139, 92, 246, 0.16), rgba(14, 165, 233, 0.08)),
        var(--glass-bg);
}

.stats-cta-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 230px;
    padding: 1.5rem 1rem 0;
}

.stats-cta-image {
    display: block;
    width: min(100%, 220px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.16));
}

.stats-cta-content {
    padding: 0 1.5rem 1.5rem;
}

.stats-cta-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.stats-cta-copy {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.15rem;
}

.stats-tile--deployments {
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(14, 165, 233, 0.08)),
        var(--glass-bg);
}

.stats-tile--revenue,
.stats-tile--sms {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.08)),
        var(--glass-bg);
}

.stats-tile--emails,
.stats-tile--landing-pages {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(255, 255, 255, 0.02)),
        var(--glass-bg);
}

/* Audience */
.audience-section {
    margin-bottom: 6rem;
}

.audience-shell {
    text-align: center;
}

.audience-kicker {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

.audience-title {
    font-size: clamp(2.3rem, 4.5vw, 3.25rem);
    margin-bottom: 1.25rem;
}

.audience-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem auto 0;
    max-width: 860px;
}

.audience-scroller {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.audience-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    animation: audienceScroll 68s linear infinite;
}

.audience-scroller:hover .audience-track {
    animation-play-state: paused;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.audience-grid--scroller {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    width: max-content;
    min-width: max-content;
    text-align: left;
}

.audience-tile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.audience-grid--scroller .audience-tile {
    width: min(100vw - 3rem, 300px);
    min-height: 100%;
}

.audience-tile-link {
    color: inherit;
    text-decoration: none;
}

.audience-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 170px;
}

.audience-icon {
    display: block;
    width: min(100%, 220px);
    height: auto;
    object-fit: contain;
}

.audience-tile-title {
    font-size: 1.4rem;
    margin-bottom: 0;
    text-align: center;
}

.audience-tile-copy {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

.audience-cta-wrap {
    margin-top: 2rem;
}

/* Results */
.results-section {
    margin-bottom: 6rem;
}

.results-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: end;
    gap: 2rem;
    padding: 3rem 0 0 2.5rem;
    overflow: hidden;
}

.results-copy {
    padding-bottom: 3rem;
    text-align: left;
}

.results-badge {
    display: block;
    width: min(100%, 440px);
    height: auto;
    margin: 0 0 1.25rem;
    object-fit: contain;
}

.results-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1.25rem;
}

.results-description {
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.8;
    margin: 0 0 2rem;
    max-width: 48ch;
}

.results-visual {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: stretch;
}

.results-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
}

.homepage-results-section .results-visual {
    align-self: end;
}

.homepage-results-section .results-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    object-position: center bottom;
}

.deliverability-readiness-page .results-card {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
}

.deliverability-readiness-page .results-visual {
    justify-content: center;
    align-items: center;
    padding-right: 0;
}

.deliverability-readiness-page .results-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 991px) {
    .deliverability-readiness-page .results-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem 2rem;
        gap: 1.25rem;
    }

    .deliverability-readiness-page .results-copy {
        padding-bottom: 0;
    }

    .deliverability-readiness-page .results-description {
        max-width: none;
    }

    .deliverability-readiness-page .results-visual,
    .deliverability-readiness-page .results-image {
        display: none !important;
    }
}

/* Testimonials */
.testimonials-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonials-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.testimonials-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: testimonialsScroll 44s linear infinite;
}

.testimonials-marquee:hover .testimonials-track {
    animation-play-state: paused;
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
    width: max-content;
    min-width: max-content;
    text-align: left;
}

.testimonials-grid[aria-hidden="true"] .testimonial-avatar {
    pointer-events: none;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    width: min(100vw - 4rem, 430px);
    min-height: 100%;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center top;
    flex: 0 0 auto;
}

.testimonial-name {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.testimonial-quote {
    color: var(--text-color);
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
}

@keyframes testimonialsScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 1rem));
    }
}

@keyframes audienceScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

@keyframes trustBarScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .audience-track {
        animation: none;
    }
}

@media (max-width: 768px) {
    .stats-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(132px, auto);
    }

    .stats-tile {
        min-height: 132px;
        padding: 1.4rem;
    }

    .stats-tile--revenue,
    .stats-tile--emails,
    .stats-tile--landing-pages,
    .stats-tile--cta {
        grid-column: span 2;
    }

    .stats-tile--revenue {
        min-height: 250px;
    }

    .stats-tile--inbox {
        grid-row: span 1;
    }

    .stats-tile--cta {
        grid-row: span 1;
        min-height: 320px;
    }

    .stats-cta-visual {
        min-height: 190px;
    }

    .audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audience-track {
        animation-duration: 60s;
    }

    .audience-tile {
        padding: 1.6rem;
    }

    .audience-icon-wrap {
        min-height: 145px;
    }

    .audience-subtitle {
        margin-top: 1.75rem;
    }

    .results-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.6rem 0;
    }

    .results-copy {
        padding-bottom: 0;
    }

    .results-badge {
        width: min(100%, 440px);
    }

    .results-description {
        max-width: none;
    }

    .results-copy .btn {
        margin-bottom: 1.5rem;
    }

    .results-visual {
        display: none;
    }

    .testimonials-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .testimonials-track {
        gap: 1.25rem;
    }

    .testimonial-card {
        width: min(100vw - 3rem, 340px);
    }

    .trust-bar-logos {
        gap: 2rem;
        padding-right: 2rem;
    }

    .trust-bar-logo-item {
        height: 40px;
    }

    .trust-bar-logo {
        height: 40px;
    }
}

@media (max-width: 560px) {
    .testimonials-track {
        animation-duration: 54s;
    }

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

    .audience-scroller {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .audience-track {
        animation-duration: 52s;
    }

    .stats-mosaic {
        grid-template-columns: 1fr;
    }

    .stats-tile,
    .stats-tile--revenue,
    .stats-tile--emails,
    .stats-tile--landing-pages,
    .stats-tile--inbox,
    .stats-tile--cta {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 180px;
    }

    .stats-cta-content {
        padding: 0 1.2rem 1.2rem;
    }

    .stats-cta-visual {
        min-height: 170px;
        padding-top: 1.2rem;
    }
}

[data-theme="dark"] .trust-bar-logo--uc-berkeley {
    filter: grayscale(100%) invert(1) brightness(1.15) contrast(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-marquee {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .testimonials-track {
        display: block;
        animation: none;
    }

    .testimonials-grid {
        display: grid;
        grid-template-columns: 1fr;
        width: auto;
        min-width: 0;
        margin-bottom: 1.5rem;
    }

    .testimonials-grid[aria-hidden="true"] {
        display: none;
    }

    .testimonial-card {
        width: auto;
    }

    .trust-bar-marquee {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .trust-bar-track {
        display: block;
        animation: none;
    }

    .trust-bar-logos {
        justify-content: center;
        flex-wrap: wrap;
        min-width: 0;
    }

    .trust-bar-logos[aria-hidden="true"] {
        display: none;
    }
}

/* Final CTA Banner */
.final-cta-banner .bg-gradient {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.2)),
        var(--glass-bg);
    border: 1px solid rgba(111, 122, 255, 0.34);
    box-shadow:
        0 22px 46px rgba(52, 85, 196, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.final-cta-banner .bg-gradient>* {
    position: relative;
    z-index: 1;
}

.final-cta-banner__hero-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 320px);
    max-height: 220px;
    object-fit: contain;
    margin: 0 auto 0;
}

.final-cta-banner__title {
    margin-top: 0;
}

.final-cta-banner .bg-gradient::before,
.final-cta-banner .bg-gradient::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.final-cta-banner .bg-gradient::before {
    width: 420px;
    height: 420px;
    top: -220px;
    left: -110px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.32) 0%, rgba(59, 130, 246, 0) 72%);
}

.final-cta-banner .bg-gradient::after {
    width: 420px;
    height: 420px;
    right: -130px;
    bottom: -245px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0) 74%);
}

[data-theme="dark"] .final-cta-banner .bg-gradient {
    background:
        linear-gradient(145deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.28)),
        rgba(15, 23, 42, 0.78);
    border-color: rgba(134, 145, 255, 0.34);
    box-shadow:
        0 22px 46px rgba(3, 8, 27, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@media (max-width: 768px) {
    .final-cta-banner__hero-image {
        display: none;
    }
}

/* Homepage About Us Preview */
.homepage-about-preview__card {
    text-align: left;
    padding: 3rem 2.5rem;
}

.homepage-about-preview__title {
    margin: 0 0 1.15rem;
    font-size: 2.4rem;
}

.homepage-about-preview__description {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 960px;
}

.homepage-about-preview__description--full p {
    margin: 0 0 0.9rem;
}

.homepage-about-preview__description--full p:last-child {
    margin-bottom: 0;
}

.homepage-about-preview__toggle {
    margin-top: 0.8rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.homepage-about-preview__actions {
    margin-top: 1rem;
}

.homepage-about-preview__link {
    display: inline;
    margin-left: 0.35rem;
    font-weight: 600;
    white-space: nowrap;
}

.homepage-newsletter-signup__card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 2.2rem;
    background:
        radial-gradient(circle at 16% 16%, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0) 42%),
        radial-gradient(circle at 84% 88%, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0) 44%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
        var(--glass-bg);
    border: 1px solid rgba(120, 136, 255, 0.26);
}

.homepage-newsletter-signup__card>* {
    position: relative;
    z-index: 1;
}

.homepage-newsletter-signup__card::before,
.homepage-newsletter-signup__card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.homepage-newsletter-signup__card::before {
    width: 260px;
    height: 260px;
    top: -130px;
    right: -70px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.34) 0%, rgba(59, 130, 246, 0) 72%);
}

.homepage-newsletter-signup__card::after {
    width: 220px;
    height: 220px;
    left: 22px;
    bottom: 10px;
    border-radius: 0;
    background: radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.34), rgba(59, 130, 246, 0) 72%);
    opacity: 0.28;
}

.homepage-newsletter-signup__title {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
}

.homepage-newsletter-signup__subtitle {
    margin: 0 0 1.1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.homepage-newsletter-signup__form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

.homepage-newsletter-signup__input {
    width: min(100%, 280px);
    min-height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.38);
    background: var(--glass-bg);
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    outline: none;
}

.homepage-newsletter-signup__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

[data-theme="dark"] .homepage-newsletter-signup__input {
    border-color: rgba(96, 165, 250, 0.48);
}

[data-theme="dark"] .homepage-newsletter-signup__card {
    background:
        radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0) 45%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0) 46%),
        linear-gradient(150deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.66)),
        rgba(15, 23, 42, 0.66);
    border-color: rgba(124, 151, 255, 0.32);
}

[data-theme="dark"] .homepage-newsletter-signup__card::after {
    opacity: 0.28;
}

.homepage-newsletter-signup__button {
    width: min(100%, 280px);
    min-height: 56px;
    font-size: 1rem;
    line-height: 1.2;
}

.homepage-newsletter-signup__message {
    margin: 0.85rem 0 0;
    min-height: 1.4rem;
    color: var(--text-muted);
}

.homepage-newsletter-signup__message.is-error {
    color: #dc2626;
}

.homepage-newsletter-signup__message.is-success {
    color: #059669;
}

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

@media (max-width: 768px) {
    .homepage-newsletter-signup__card::after {
        width: 146px;
        height: 146px;
        left: 8px;
        bottom: 8px;
        opacity: 0.2;
    }

    .homepage-newsletter-signup__input {
        width: 100%;
    }

    .homepage-newsletter-signup__button {
        width: 100%;
    }
}

/* Services */
.services-section {
    padding: 5rem 0;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

[data-services-grid] [hidden],
[data-services-tools-grid] [hidden],
[data-home-services-grid] [hidden],
[data-home-tools-grid] [hidden],
[data-industries-grid] [hidden],
[data-industry-card][hidden] {
    display: none !important;
}

.services-overview-section .service-card h3 {
    width: 100%;
    text-align: left;
}

@media (min-width: 992px) {
    .homepage-blog-heading .homepage-blog-heading-line {
        display: block;
    }
}

.platforms-hub-page .platform-card-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    margin: 0 auto 1.25rem;
    width: 100%;
}

.platforms-hub-page .platform-card-logo {
    display: block;
    margin: 0;
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 18px;
    filter: grayscale(100%) saturate(0) brightness(0.72) contrast(1.08);
    opacity: 0.82;
    transition: filter 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.platforms-hub-page .platform-card-logo-fallback {
    color: var(--text-muted);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.platforms-hub-page .service-card:hover .platform-card-logo,
.platforms-hub-page .service-card:focus-visible .platform-card-logo {
    filter: grayscale(0%) saturate(1) brightness(1);
    opacity: 1;
    transform: translateY(-2px);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.why-specialist-section {
    margin-bottom: 6rem;
}

.why-specialist-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(2.2rem, 3vw, 3rem);
    border-radius: 1.5rem;
    border: 1px solid rgba(124, 151, 255, 0.22);
    background:
        radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0) 42%),
        radial-gradient(circle at 88% 90%, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0) 48%),
        rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 48px rgba(59, 130, 246, 0.12);
}

.why-specialist-shell:hover {
    transform: none;
    box-shadow: 0 18px 48px rgba(59, 130, 246, 0.12);
}

.why-specialist-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-specialist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.why-specialist-card {
    display: block;
    border-radius: 1.1rem;
    border: 1px solid rgba(124, 151, 255, 0.24);
    background: rgba(255, 255, 255, 0.72);
    padding: 1.2rem 1.25rem;
    min-height: 0;
}

.why-specialist-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.why-specialist-icon {
    width: 59px;
    height: 59px;
    object-fit: contain;
    display: block;
}

.why-specialist-card__content h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.55rem;
}

.why-specialist-card__content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.why-specialist-cta {
    margin-top: 2rem;
    text-align: center;
}

.services-faq-section {
    margin-bottom: 6rem;
}

.services-faq-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

.services-faq-list {
    display: grid;
    gap: 1rem;
}

.services-faq-card {
    padding: 1.6rem;
}

.services-faq-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.services-faq-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.services-faq-actions {
    margin-top: 1.4rem;
    text-align: center;
}

.services-page-cta-section {
    padding: 2rem 0 6rem;
}

.services-page-cta-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(2rem, 3vw, 3rem);
    border: 1px solid rgba(111, 122, 255, 0.34);
    background:
        radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0) 48%),
        linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.14)),
        var(--glass-bg);
    box-shadow:
        0 20px 42px rgba(52, 85, 196, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.services-page-cta-card>* {
    position: relative;
    z-index: 1;
}

.services-page-cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.services-page-cta-subtitle {
    margin: 0 auto 2rem;
    max-width: 700px;
    font-size: 1.14rem;
    color: var(--text-muted);
}

[data-theme="dark"] .services-page-cta-card {
    border-color: rgba(134, 145, 255, 0.34);
    background:
        radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.24), rgba(139, 92, 246, 0) 48%),
        linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.2)),
        rgba(15, 23, 42, 0.72);
    box-shadow:
        0 20px 42px rgba(3, 8, 27, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Email Automation Page */
.email-automation-page {
    padding-bottom: 6rem;
}

.email-automation-hero {
    padding: 160px 1rem 70px;
}

.email-automation-hero-subtitle {
    max-width: 860px;
}

.email-automation-trust-line {
    margin: 1.35rem auto 0;
    max-width: 900px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.email-automation-section {
    margin-bottom: 4.25rem;
}

.email-automation-section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.email-automation-section-intro {
    margin: 0 auto 1.8rem;
    max-width: 880px;
    color: var(--text-muted);
    font-size: 1.08rem;
    text-align: center;
}

.email-automation-problem-card,
.email-automation-benefits-card,
.email-automation-approach-card {
    padding: 2.2rem;
}

.email-automation-problem-card h2,
.email-automation-benefits-card h2,
.email-automation-approach-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.65rem, 3vw, 2rem);
}

.email-automation-problem-card p,
.email-automation-benefits-card p,
.email-automation-approach-card p {
    margin: 0 0 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.email-automation-inline-cta {
    margin-top: 0.6rem;
}

.email-automation-inline-cta a {
    font-weight: 600;
}

.email-automation-problem-card--spotlight {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 1.3rem;
    border: 1px solid rgba(111, 122, 255, 0.28);
    background:
        radial-gradient(circle at 12% 22%, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 86% 88%, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0) 52%),
        linear-gradient(140deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.1)),
        var(--glass-bg);
    box-shadow:
        0 18px 38px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.email-automation-problem-card__content,
.email-automation-problem-points {
    position: relative;
    z-index: 1;
}

.email-automation-problem-card__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.email-automation-problem-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    align-content: center;
    gap: 0.7rem;
}

.email-automation-problem-points li {
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(111, 122, 255, 0.24);
    background: rgba(255, 255, 255, 0.62);
    color: #3f4d69;
    font-size: 0.93rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.email-automation-checklist-grid,
.email-automation-flow-grid,
.email-automation-audience-grid {
    display: grid;
    gap: 1rem;
}

.email-automation-checklist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.email-automation-services-overview {
    margin-bottom: 4.25rem;
}

.email-automation-services-overview .service-card,
.email-automation-services-overview .service-card h3 {
    text-align: center;
}

.email-automation-services-overview .email-automation-section-actions {
    margin-top: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.email-automation-services-overview .email-automation-warning-cta-subtitle {
    margin: 0.45rem 0 0.35rem;
}

.email-automation-includes-grid {
    text-align: center;
}

.email-automation-include-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    min-height: 180px;
    padding: 2rem;
}

.email-automation-include-card__icon {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.2));
}

.email-automation-include-card h3 {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.45;
    font-weight: 400;
}

.email-automation-flow-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.email-automation-flow-section .email-automation-flow-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 400;
    min-height: 148px;
}

.email-automation-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.email-automation-check-item,
.email-automation-flow-card {
    padding: 1.15rem 1rem;
    text-align: left;
    font-weight: 600;
}

.email-automation-check-item {
    position: relative;
    padding-left: 2.2rem;
}

.email-automation-check-item::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    color: var(--primary);
    font-weight: 700;
}

.email-automation-section--flows .email-automation-flow-card {
    text-align: center;
    font-weight: 400;
}

.email-automation-audience-card {
    padding: 1.4rem 1.2rem;
}

.email-automation-audience-card--link {
    color: inherit;
    text-decoration: none;
}

.email-automation-audience-card h3 {
    font-size: 1.32rem;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.email-automation-audience-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.email-automation-audience-section .why-specialist-card {
    border-color: rgba(191, 202, 255, 0.48);
    background: #ffffff;
}

.email-automation-microcopy {
    margin-top: 1rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.98rem;
}

.email-automation-benefits-list {
    margin: 0.8rem 0 0;
    padding-left: 1.2rem;
    columns: 2;
    column-gap: 2rem;
}

.email-automation-benefits-list li {
    margin: 0 0 0.65rem;
    break-inside: avoid;
}

.email-automation-benefits-section {
    margin-bottom: 4.25rem;
}

.email-automation-benefits-shell {
    padding: clamp(2rem, 3vw, 2.8rem);
    border: 1px solid rgba(111, 122, 255, 0.3);
    background:
        radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0) 44%),
        radial-gradient(circle at 92% 86%, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0) 48%),
        linear-gradient(142deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.12)),
        var(--glass-bg);
    box-shadow:
        0 18px 42px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.email-automation-benefits-head {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 1.9rem;
}

.email-automation-benefits-eyebrow {
    margin: 0 0 0.7rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.email-automation-benefits-head h2 {
    margin-bottom: 0.8rem;
}

.email-automation-benefits-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.email-automation-benefits-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.email-automation-benefit-tile {
    border: 1px solid rgba(111, 122, 255, 0.24);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.68);
    padding: 1rem 1rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.email-automation-benefit-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 auto;
}

.email-automation-benefit-tile p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--text-color);
}

.email-automation-approach-section {
    margin-bottom: 4.25rem;
}

.email-automation-approach-shell {
    padding: clamp(2rem, 3vw, 2.8rem);
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.email-automation-approach-shell:hover {
    transform: none;
    box-shadow: none;
}

.email-automation-approach-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 1.6rem;
}

.email-automation-approach-eyebrow {
    margin: 0 0 0.7rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.email-automation-approach-head h2 {
    margin-bottom: 0.85rem;
}

.email-automation-approach-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.email-automation-approach-framework {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0;
}

.email-automation-approach-pillar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    min-height: 148px;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow);
    padding: 1.15rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.email-automation-approach-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.email-automation-approach-pillar__index {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 400;
}

.email-automation-approach-pillar h3 {
    margin: 0 0 0.45rem;
    font-size: 1.03rem;
    font-weight: 400;
}

.email-automation-approach-pillar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 400;
}

.email-automation-approach-card blockquote,
.email-automation-approach-shell blockquote {
    margin: 1.15rem auto 0;
    max-width: 920px;
    position: relative;
    padding: 1.05rem 1.25rem;
    border: 0;
    border-radius: 0.9rem;
    background: transparent;
    box-shadow: none;
    font-size: 1.05rem;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    z-index: 0;
}

.email-automation-approach-card blockquote::before,
.email-automation-approach-shell blockquote::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(132deg, rgba(59, 130, 246, 0.72), rgba(139, 92, 246, 0.72));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.email-automation-platform-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.email-automation-platform-list li {
    padding: 0;
}

.email-automation-platform-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 122, 255, 0.35);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.email-automation-platform-list a:hover,
.email-automation-platform-list a:focus-visible {
    border-color: rgba(59, 130, 246, 0.55);
    color: var(--primary);
}

.email-automation-platform-closer {
    margin: 1rem auto 0.55rem;
    color: var(--text-muted);
    max-width: 940px;
    text-align: center;
}

.email-automation-related-links-label {
    margin: 0.85rem 0 0.55rem;
    text-align: center;
    color: var(--text-muted);
}

.email-automation-related-links {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
}

.email-automation-related-links a {
    font-size: 0.92rem;
    border-bottom: 1px solid currentColor;
}

.email-automation-related-services-section .email-automation-section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.15rem;
}

.email-automation-related-services-section .email-automation-related-links {
    justify-content: flex-start;
}

.klaviyo-email-marketing-page .email-automation-related-services-section .email-automation-section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.15rem;
}

.klaviyo-email-marketing-page .email-automation-related-links {
    justify-content: flex-start;
}

.hubspot-email-marketing-page .email-automation-related-services-section .email-automation-section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.15rem;
}

.hubspot-email-marketing-page .email-automation-related-links {
    justify-content: flex-start;
}

.mailchimp-expert-page .email-automation-related-services-section .email-automation-section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.15rem;
}

.mailchimp-expert-page .email-automation-related-links {
    justify-content: flex-start;
}

.woocommerce-email-marketing-page .email-automation-related-services-section .email-automation-section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.15rem;
}

.woocommerce-email-marketing-page .email-automation-related-links {
    justify-content: flex-start;
}

.bigcommerce-email-marketing-page .email-automation-related-services-section .email-automation-section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.15rem;
}

.bigcommerce-email-marketing-page .email-automation-related-links {
    justify-content: flex-start;
}

.generated-platform-support-page .email-automation-related-services-section .email-automation-section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.15rem;
}

.generated-platform-support-page .email-automation-related-links {
    justify-content: flex-start;
}


.email-automation-section-actions {
    margin-top: 1.4rem;
    text-align: center;
}

.email-automation-platform-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.email-automation-process-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 2rem;
    animation: testimonialsScroll 44s linear infinite;
    will-change: transform;
}

.email-automation-process-slider {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.email-automation-process-slider:hover .email-automation-process-list {
    animation-play-state: paused;
}

.email-automation-process-section .email-automation-section-title {
    margin-bottom: 2.2rem;
}

.email-automation-process-section .email-automation-process-list {
    margin-top: 0;
}

.email-automation-process-step {
    padding: 2rem;
    display: block;
    flex: 0 0 calc((100% - 2rem) / 2);
}

.email-automation-process-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.email-automation-process-step h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.email-automation-process-step p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.email-automation-warning-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.95rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.email-automation-warning-section .email-automation-section-title {
    margin-bottom: 1.55rem;
}

.email-automation-warning-item {
    padding: 1.05rem 1.1rem;
    border-color: var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.email-automation-warning-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 1.1em;
    flex: 0 0 auto;
}

.email-automation-warning-item__text {
    flex: 1 1 auto;
}

.email-automation-warning-cta-subtitle {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.email-automation-faq-list {
    display: grid;
    gap: 0.95rem;
}

.email-automation-faq-item {
    padding: 1.2rem 1.2rem 1.1rem;
}

.email-automation-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding-right: 1.5rem;
}

.email-automation-faq-item summary::-webkit-details-marker {
    display: none;
}

.email-automation-faq-item p {
    margin: 0.8rem 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.email-automation-final-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(111, 122, 255, 0.34);
    background:
        radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0) 48%),
        var(--glass-bg);
}

.email-automation-final-cta h2 {
    margin-bottom: 1rem;
}

.email-automation-final-cta p {
    margin: 0 auto 0.85rem;
    max-width: 860px;
    color: var(--text-muted);
}

.email-automation-final-cta .btn {
    margin-top: 1rem;
}

.email-automation-contact-section .email-automation-section-intro {
    margin-bottom: 1.4rem;
}

.email-automation-lead-form {
    padding: 2rem 1.5rem;
}

.email-automation-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.email-automation-form-grid label {
    display: block;
}

.email-automation-form-grid label span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.email-automation-form-grid input,
.email-automation-form-grid select,
.email-automation-form-grid textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-color);
    padding: 0.75rem 0.85rem;
    font-size: 0.98rem;
}

.email-automation-form-grid textarea {
    resize: vertical;
}

.email-automation-form-field-full {
    grid-column: 1 / -1;
}

.email-automation-form-submit {
    margin-top: 1.2rem;
}

.email-automation-lead-message {
    margin: 0.8rem 0 0;
    min-height: 1.4rem;
    color: var(--text-muted);
}

.email-automation-lead-message.is-success {
    color: #059669;
}

.email-automation-lead-message.is-error {
    color: #dc2626;
}

.email-automation-mobile-sticky-cta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    z-index: 990;
    display: none;
    min-width: 180px;
    justify-content: center;
}

[data-theme="dark"] .email-automation-platform-list a {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(134, 145, 255, 0.34);
    color: var(--text-color);
}

[data-theme="dark"] .email-automation-approach-card blockquote,
[data-theme="dark"] .email-automation-approach-shell blockquote {
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .email-automation-approach-card blockquote::before,
[data-theme="dark"] .email-automation-approach-shell blockquote::before {
    background: linear-gradient(132deg, rgba(96, 165, 250, 0.8), rgba(167, 139, 250, 0.8));
}

[data-theme="dark"] .email-automation-approach-shell {
    border: 0;
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .email-automation-approach-pillar {
    border-color: var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .email-automation-approach-pillar p {
    color: #cbd5e1;
}

[data-theme="dark"] .email-automation-warning-item {
    border-color: var(--glass-border);
    background: var(--glass-bg);
}

[data-theme="dark"] .email-automation-benefits-shell {
    border-color: rgba(134, 145, 255, 0.34);
    background:
        radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.24), rgba(59, 130, 246, 0) 44%),
        radial-gradient(circle at 92% 86%, rgba(139, 92, 246, 0.24), rgba(139, 92, 246, 0) 48%),
        linear-gradient(142deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.2)),
        rgba(15, 23, 42, 0.72);
    box-shadow:
        0 20px 44px rgba(2, 6, 23, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .email-automation-benefit-tile {
    border-color: rgba(134, 145, 255, 0.34);
    background: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .email-automation-benefit-tile p {
    color: #e2e8f0;
}

[data-theme="dark"] .email-automation-form-grid input,
[data-theme="dark"] .email-automation-form-grid select,
[data-theme="dark"] .email-automation-form-grid textarea {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.38);
}

[data-theme="dark"] .email-automation-problem-card--spotlight {
    border-color: rgba(134, 145, 255, 0.34);
    background:
        radial-gradient(circle at 12% 22%, rgba(59, 130, 246, 0.24), rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 86% 88%, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0) 52%),
        linear-gradient(140deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.2)),
        rgba(15, 23, 42, 0.72);
    box-shadow:
        0 20px 40px rgba(2, 6, 23, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .email-automation-problem-points li {
    border-color: rgba(134, 145, 255, 0.34);
    background: rgba(15, 23, 42, 0.62);
    color: #dbeafe;
}

[data-theme="dark"] .email-automation-include-card__icon {
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.38));
}

[data-theme="dark"] .email-automation-final-cta {
    border-color: rgba(134, 145, 255, 0.34);
    background:
        radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.24), rgba(139, 92, 246, 0) 48%),
        rgba(15, 23, 42, 0.72);
}

@media (max-width: 1100px) {
    .email-automation-approach-framework {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .email-automation-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .email-automation-includes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .email-automation-problem-card--spotlight {
        grid-template-columns: 1fr;
    }

    .email-automation-problem-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .email-automation-flow-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .email-automation-checklist-grid,
    .email-automation-audience-grid,
    .email-automation-warning-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .email-automation-process-section .email-automation-section-title {
        margin-bottom: 1.35rem;
    }

    .email-automation-process-slider {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .email-automation-process-list {
        gap: 1.25rem;
        animation-duration: 54s;
    }

    .email-automation-process-step {
        flex-basis: min(100vw - 3rem, 340px);
    }

    .email-automation-approach-framework {
        grid-template-columns: 1fr;
    }

    .email-automation-benefits-grid {
        grid-template-columns: 1fr;
    }

    .email-automation-includes-grid {
        grid-template-columns: 1fr;
    }

    .email-automation-include-card {
        min-height: 0;
    }

    .email-automation-problem-points {
        grid-template-columns: 1fr;
    }

    .email-automation-form-grid {
        grid-template-columns: 1fr;
    }

    .email-automation-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .email-automation-benefits-list {
        columns: 1;
    }

    .email-automation-mobile-sticky-cta {
        display: inline-flex;
    }

    .email-automation-page {
        padding-bottom: 7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .email-automation-process-list {
        animation: none;
    }

    .email-automation-mobile-sticky-cta {
        transition: none;
    }
}

[data-theme="dark"] .why-specialist-shell {
    border-color: rgba(124, 151, 255, 0.32);
    background:
        radial-gradient(circle at 14% 16%, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 88% 86%, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0) 50%),
        rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.35);
}

[data-theme="dark"] .why-specialist-card {
    background: rgba(15, 23, 42, 0.66);
    border-color: rgba(124, 151, 255, 0.32);
}

[data-theme="dark"] .email-automation-audience-section .why-specialist-card {
    border-color: rgba(134, 145, 255, 0.4);
    background: #ffffff;
}

[data-theme="dark"] .email-automation-audience-section .email-automation-audience-card p {
    color: #4f566b;
}

@media (max-width: 960px) {
    .why-specialist-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-specialist-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .why-specialist-shell {
        padding: 2rem 1.1rem;
    }

    .why-specialist-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .why-specialist-card__media {
        width: auto;
        height: auto;
    }
}

/* Wizard Forms */
.lead-wizard-section {
    padding: 6rem 0;
}

.wizard-container {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.wizard-progress {
    height: 6px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s ease;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.wizard-step.active {
    display: block;
}

.wizard-step h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.custom-checkbox:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.custom-checkbox input {
    margin-right: 10px;
    accent-color: var(--primary);
    width: 20px;
    height: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.wizard-actions button:only-child {
    margin-left: auto;
}

.hidden {
    display: none !important;
}

.form-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-messages.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    display: block;
}

/* Footer */
.site-pre-footer {
    padding: 2.2rem 0 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.site-pre-footer__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    text-align: left;
}

.site-pre-footer__heading {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-pre-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-pre-footer__links li {
    margin: 0 0 0.45rem;
    line-height: 1.35;
}

.site-pre-footer__links a {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
}

.site-pre-footer__links a:hover {
    color: #4b5563;
}

.site-pre-footer__sub-links {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0 0 0.9rem;
    border-left: 1px solid var(--glass-border);
}

.site-pre-footer__sub-links li {
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.site-pre-footer__sub-links li:last-child {
    margin-bottom: 0;
}

.site-pre-footer__sub-links a {
    font-size: 0.86rem;
}

.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    justify-items: center;
}

.footer-widget ul {
    list-style: none;
    padding-left: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-widget--brand {
    text-align: left;
    justify-self: start;
    max-width: 430px;
}

.footer-widget--nav {
    text-align: left;
    justify-self: start;
}

.footer-brand-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand-logo {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
}

.footer-brand-copy {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.site-footer .widget-title {
    font-size: 0.95rem;
    margin-bottom: 1rem !important;
}

.site-footer a {
    color: #6b7280;
}

.site-footer a:hover {
    color: #4b5563;
}

.site-info {
    text-align: center;
    color: #6b7280;
    font-size: 0.88rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        height: 80px;
        padding: 0 1rem;
    }

    #mobile-menu-toggle {
        display: flex !important;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--glass-border);
        padding: 2rem 0;
        box-shadow: var(--glass-shadow);
        z-index: 999;
    }

    .main-navigation.active {
        display: block;
        animation: fadeInDown 0.3s ease forwards;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        min-width: 90vw;
        display: none;
        margin-top: 1rem;
        gap: 0.5rem;
        border-radius: 0.5rem;
    }

    .main-navigation .sub-menu.mobile-expanded {
        display: flex;
        padding: 1rem 0;
    }

    .main-navigation .sub-menu a {
        padding: 0.5rem;
        font-size: 0.95rem;
        color: var(--text-color);
    }

    .mobile-cta-container {
        display: block;
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .cta-btn {
        display: none;
        /* Hide standard CTA on mobile to save space, rely on hamburger */
    }

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

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

    .hero-section {
        padding: 140px 1rem 60px;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .wizard-container {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-pre-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 560px) {
    .site-pre-footer__inner {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .overlay-bg {
    background: rgba(10, 11, 16, 0.85);
}

.overlay-bg {
    background: rgba(255, 255, 255, 0.4);
}

/* Login Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

/* Login modal field clarity in light mode */
:root:not([data-theme="dark"]) #login-modal label,
[data-theme="light"] #login-modal label {
    color: #334155 !important;
}

:root:not([data-theme="dark"]) #login-modal .form-control,
[data-theme="light"] #login-modal .form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

:root:not([data-theme="dark"]) #login-modal .form-control::placeholder,
[data-theme="light"] #login-modal .form-control::placeholder {
    color: #64748b !important;
}

:root:not([data-theme="dark"]) #login-modal .form-control:focus,
[data-theme="light"] #login-modal .form-control:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* WooCommerce Theme Overrides */
.woocommerce,
.woocommerce-page {
    font-family: 'Inter', sans-serif;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message {
    background: var(--glass-bg);
    border: 1px solid var(--primary);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-message::before {
    color: var(--primary);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.woocommerce table.shop_table {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    border-bottom: 1px solid var(--glass-border);
}

.woocommerce table.shop_table td {
    border-top: 1px solid var(--glass-border);
    color: var(--text-color);
    background: transparent;
}

.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-checkout .woocommerce h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 6px;
    padding: 0.75rem;
}

.woocommerce form .form-row label {
    color: var(--text-muted);
}

.woocommerce-checkout #payment {
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.woocommerce-checkout #payment div.payment_box {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
}

.woocommerce .select2-container .select2-selection {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

/* Checkout clarity and layout improvements */
.woocommerce-checkout {
    --bemco-checkout-field-height: 52px;
}

.woocommerce-checkout .woocommerce form .form-row label {
    color: #334155;
    font-weight: 500;
}

.woocommerce-checkout .woocommerce form .form-row input.input-text,
.woocommerce-checkout .woocommerce form .form-row textarea,
.woocommerce-checkout .woocommerce form .form-row select,
.woocommerce-checkout .woocommerce .select2-container .select2-selection {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.woocommerce-checkout .woocommerce form .form-row input.input-text,
.woocommerce-checkout .woocommerce form .form-row select {
    height: var(--bemco-checkout-field-height);
    min-height: var(--bemco-checkout-field-height);
    line-height: 1.2;
    box-sizing: border-box;
}

.woocommerce-checkout .woocommerce .select2-container .select2-selection--single {
    height: var(--bemco-checkout-field-height) !important;
    min-height: var(--bemco-checkout-field-height) !important;
    display: flex;
    align-items: center;
    padding: 0 2.15rem 0 0.95rem;
    box-sizing: border-box;
}

.woocommerce-checkout .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.2 !important;
    padding: 0 !important;
}

.woocommerce-checkout .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: var(--bemco-checkout-field-height) !important;
    right: 0.55rem;
}

.woocommerce-checkout .woocommerce form .form-row input.input-text::placeholder,
.woocommerce-checkout .woocommerce form .form-row textarea::placeholder {
    color: #64748b;
}

.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
.woocommerce-checkout .woocommerce form .form-row textarea:focus,
.woocommerce-checkout .woocommerce form .form-row select:focus,
.woocommerce-checkout .woocommerce .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
    margin-bottom: 0.55rem !important;
}

.woocommerce-checkout #payment .place-order {
    padding-top: 0.6rem !important;
    margin-top: 0 !important;
}

.woocommerce-checkout #payment .place-order #place_order {
    margin-top: 0 !important;
}

/* Checkout spacing pass */
.woocommerce-checkout .woocommerce form.checkout {
    margin-top: 0;
}

.woocommerce-checkout .woocommerce .col2-set {
    margin-bottom: 1.4rem;
}

.woocommerce-checkout .woocommerce-billing-fields h3 {
    margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem 1rem;
}

.woocommerce-checkout .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper .form-row {
    margin: 0 !important;
    padding: 0;
}

.woocommerce-checkout #order_review_heading {
    margin: 1rem 0 0.8rem;
}

.woocommerce-checkout #order_review {
    margin-top: 0;
}

.woocommerce-checkout #payment {
    margin-top: 0.9rem;
    padding: 1rem 1.1rem 1.1rem;
}

.woocommerce-checkout #payment ul.payment_methods {
    margin: 0 0 0.85rem;
    padding: 0 0 0.85rem;
}

.woocommerce-checkout #payment div.payment_box {
    margin: 0.65rem 0 0;
    padding: 0.75rem 0.9rem;
}

.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 0.35rem;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
    margin-top: 0;
}

@media (min-width: 992px) {
    .woocommerce-checkout .col2-set .col-1 {
        float: none !important;
        width: 100% !important;
    }

    .woocommerce-checkout .col2-set .col-2 {
        display: none !important;
    }

    .woocommerce-checkout .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce-checkout .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper .form-row {
        float: none !important;
        width: 100% !important;
    }

    .woocommerce-checkout .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper .form-row.form-row-wide {
        grid-column: auto !important;
    }
}

/* Checkout dark mode field fixes */
[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row label {
    color: #cbd5e1;
}

[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row input.input-text,
[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row textarea,
[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row select,
[data-theme="dark"] .woocommerce-checkout .woocommerce .select2-container .select2-selection {
    background: rgba(15, 23, 42, 0.72);
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row input.input-text::placeholder,
[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row textarea::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .woocommerce-checkout .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8fafc;
}

[data-theme="dark"] .woocommerce-checkout .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #cbd5e1 transparent transparent transparent;
}

[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row textarea:focus,
[data-theme="dark"] .woocommerce-checkout .woocommerce form .form-row select:focus,
[data-theme="dark"] .woocommerce-checkout .woocommerce .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Stripe checkout polish (UPE classic + WC shell) */
.woocommerce-checkout {
    --bemco-stripe-surface: #ffffff;
    --bemco-stripe-panel: #f8fafc;
    --bemco-stripe-border: #d4dbe8;
    --bemco-stripe-title: #0f172a;
    --bemco-stripe-copy: #475569;
    --bemco-stripe-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .woocommerce-checkout {
    --bemco-stripe-surface: rgba(15, 23, 42, 0.82);
    --bemco-stripe-panel: rgba(15, 23, 42, 0.92);
    --bemco-stripe-border: #334155;
    --bemco-stripe-title: #f8fafc;
    --bemco-stripe-copy: #cbd5e1;
    --bemco-stripe-shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
}

.woocommerce-checkout #payment {
    background: var(--bemco-stripe-surface);
    border: 1px solid var(--bemco-stripe-border);
    border-radius: 16px;
    box-shadow: var(--bemco-stripe-shadow);
    padding: 1.15rem 1.2rem 1.2rem;
}

.woocommerce-checkout #payment ul.payment_methods {
    margin: 0 0 1rem;
    padding: 0 0 0.95rem;
    border-bottom: 1px solid var(--bemco-stripe-border);
}

.woocommerce-checkout #payment ul.payment_methods>li {
    margin: 0;
}

.woocommerce-checkout #payment ul.payment_methods>li>label:first-of-type {
    color: var(--bemco-stripe-title);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
}

.woocommerce-checkout #payment div.payment_box {
    margin: 0.8rem 0 0;
    padding: 0.9rem 0.95rem;
    border: 1px solid var(--bemco-stripe-border);
    border-radius: 14px;
    background: var(--bemco-stripe-panel);
    color: var(--bemco-stripe-copy);
}

.woocommerce-checkout #payment .wc-upe-form,
.woocommerce-checkout #payment #wc-stripe-upe-form.wc-upe-form {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--bemco-stripe-border);
    border-radius: 14px;
    background: var(--bemco-stripe-surface);
}

.woocommerce-checkout #payment .wc-stripe-upe-element {
    margin-bottom: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    min-height: 170px;
}

.woocommerce-checkout #payment .wc-stripe-upe-element iframe {
    width: 100% !important;
    border: 0 !important;
    border-radius: 12px;
}

.woocommerce-checkout #payment #wc-stripe-upe-errors {
    margin-top: 0.75rem;
    color: #b91c1c;
    font-size: 0.92rem;
    line-height: 1.4;
}

[data-theme="dark"] .woocommerce-checkout #payment #wc-stripe-upe-errors {
    color: #fecaca;
}

.woocommerce-checkout #payment #wc-stripe-upe-errors:empty {
    display: none;
}

.woocommerce-checkout #payment .wc-stripe-payment-method-instruction,
.woocommerce-checkout #payment p.content {
    color: var(--bemco-stripe-copy);
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
    color: var(--bemco-stripe-copy);
}

.woocommerce-checkout #payment .place-order {
    border-top: 1px solid var(--bemco-stripe-border);
    margin-top: 0.9rem !important;
    padding-top: 0.85rem !important;
}

@media (max-width: 767px) {
    .woocommerce-checkout #payment {
        border-radius: 14px;
        padding: 0.95rem;
    }

    .woocommerce-checkout #payment .wc-upe-form,
    .woocommerce-checkout #payment #wc-stripe-upe-form.wc-upe-form {
        padding: 0.62rem;
    }
}

/* WooCommerce order-received page polish */
.woocommerce-order-received .woocommerce-order {
    max-width: 1160px;
    margin: 0 auto;
}

.woocommerce-order-received .woocommerce-notice--success,
.woocommerce-order-received .woocommerce-thankyou-order-received {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #d4dbe8;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 500;
}

.woocommerce-order-received ul.woocommerce-order-overview {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0.85rem;
    border: 1px solid #d4dbe8;
    border-radius: 14px;
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.woocommerce-order-received ul.woocommerce-order-overview::before,
.woocommerce-order-received ul.woocommerce-order-overview::after {
    content: none !important;
    display: none !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li {
    float: none !important;
    width: auto !important;
    clear: none !important;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.woocommerce-order-received ul.woocommerce-order-overview li strong {
    display: block;
    margin-top: 0.26rem;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.woocommerce-order-received .woocommerce-table--order-details,
.woocommerce-order-received .woocommerce-table--customer-details,
.woocommerce-order-received .woocommerce-customer-details address {
    background: #ffffff;
    border: 1px solid #d4dbe8;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--customer-details th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.woocommerce-order-received .woocommerce-table--order-details thead th {
    padding: 1rem 1.2rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.woocommerce-order-received .woocommerce-table--order-details thead th:first-child {
    width: 78%;
}

.woocommerce-order-received .woocommerce-table--order-details thead th:last-child {
    width: 22%;
    text-align: right;
}

.woocommerce-order-received .woocommerce-table--order-details td,
.woocommerce-order-received .woocommerce-table--customer-details td {
    color: #0f172a;
    border-top: 1px solid #e2e8f0;
}

.woocommerce-order-received .woocommerce-table--order-details tbody td {
    padding: 1.05rem 1.2rem;
    font-size: 1rem;
    line-height: 1.45;
    vertical-align: top;
}

.woocommerce-order-received .woocommerce-table--order-details tbody td.product-name {
    color: #1e293b;
}

.woocommerce-order-received .woocommerce-table--order-details tbody td.product-name strong {
    color: #0f172a;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-table--order-details tbody td.product-total {
    text-align: right;
    white-space: nowrap;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    vertical-align: middle;
}

.woocommerce-order-received .woocommerce-table--order-details .product-name>a,
.woocommerce-order-received .woocommerce-table--order-details .product-name>strong:first-child {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 1.04rem;
    font-weight: 600;
    color: #0f172a;
}

.woocommerce-order-received .woocommerce-table--order-details ul.wc-item-meta {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.woocommerce-order-received .woocommerce-table--order-details ul.wc-item-meta li {
    margin: 0 0 0.25rem;
    padding: 0;
    font-size: 0.97rem;
    line-height: 1.45;
    color: #334155;
}

.woocommerce-order-received .woocommerce-table--order-details ul.wc-item-meta li:last-child {
    margin-bottom: 0;
}

.woocommerce-order-received .woocommerce-table--order-details .wc-item-meta-label {
    color: #0f172a;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    padding: 0.9rem 1.2rem;
    background: #f8fafc;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    text-align: right;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: 0;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    font-size: 1.15rem;
    font-weight: 700;
}

.woocommerce-order-received .woocommerce-customer-details address {
    margin: 0;
    padding: 1rem 1.1rem;
    color: #334155;
    line-height: 1.6;
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-notice--success,
[data-theme="dark"] .woocommerce-order-received .woocommerce-thankyou-order-received,
[data-theme="dark"] .woocommerce-order-received ul.woocommerce-order-overview,
[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details,
[data-theme="dark"] .woocommerce-order-received .woocommerce-table--customer-details,
[data-theme="dark"] .woocommerce-order-received .woocommerce-customer-details address {
    background: rgba(15, 23, 42, 0.82);
    border-color: #334155;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-notice--success,
[data-theme="dark"] .woocommerce-order-received .woocommerce-thankyou-order-received,
[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details td,
[data-theme="dark"] .woocommerce-order-received .woocommerce-table--customer-details td,
[data-theme="dark"] .woocommerce-order-received .woocommerce-customer-details address,
[data-theme="dark"] .woocommerce-order-received ul.woocommerce-order-overview li strong {
    color: #f8fafc;
}

[data-theme="dark"] .woocommerce-order-received ul.woocommerce-order-overview li {
    background: rgba(30, 41, 59, 0.9);
    border-color: #475569;
    color: #cbd5e1;
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details th,
[data-theme="dark"] .woocommerce-order-received .woocommerce-table--customer-details th {
    background: rgba(30, 41, 59, 0.92);
    color: #e2e8f0;
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details tbody td.product-total {
    color: #f8fafc;
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details tbody td.product-name strong {
    color: #f8fafc;
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details ul.wc-item-meta li {
    color: #cbd5e1;
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details .wc-item-meta-label {
    color: #f8fafc;
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details tfoot th,
[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details tfoot td {
    background: rgba(30, 41, 59, 0.85);
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-details td,
[data-theme="dark"] .woocommerce-order-received .woocommerce-table--customer-details td {
    border-top-color: #334155;
}

@media (max-width: 980px) {
    .woocommerce-order-received ul.woocommerce-order-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .woocommerce-order-received ul.woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    .woocommerce-order-received .woocommerce-table--order-details thead th {
        padding: 0.78rem 0.9rem;
    }

    .woocommerce-order-received .woocommerce-table--order-details tbody td {
        padding: 0.85rem 0.9rem;
    }

    .woocommerce-order-received .woocommerce-table--order-details tbody td.product-total {
        font-size: 1.45rem;
    }

    .woocommerce-order-received .woocommerce-table--order-details tfoot th,
    .woocommerce-order-received .woocommerce-table--order-details tfoot td {
        padding: 0.72rem 0.9rem;
    }

    .woocommerce-order-received .woocommerce-order-details__title,
    .woocommerce-order-received .woocommerce-column__title {
        font-size: 1.6rem;
    }
}

/* ==========================================================
   Klaviyo-Style Desktop Header + Mega Menu (Refactored)
   ========================================================== */
:root {
    --header-utility-height: 32px;
    --header-main-height: 76px;
    --site-header-offset-desktop: calc(var(--header-utility-height) + var(--header-main-height));
    --site-header-offset-mobile: 70px;
    --site-header-offset: var(--site-header-offset-desktop);
    --wp-admin-offset: 0px;
    --header-z-index: 1400;
    --header-utility-bg: linear-gradient(90deg, rgba(59, 130, 246, 0.96) 0%, rgba(139, 92, 246, 0.96) 100%);
    --header-utility-text: #eef2ff;
    --header-main-bg: rgba(247, 249, 252, 0.82);
    --header-main-border: rgba(148, 163, 184, 0.38);
    --header-main-link: #1f2a44;
    --header-main-link-muted: #4f566b;
    --header-panel-bg: #f9fbff;
    --header-panel-border: rgba(148, 163, 184, 0.26);
    --header-panel-title: #0f172a;
    --header-panel-copy: #64748b;
    --header-focus-ring: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] {
    --header-utility-bg: linear-gradient(90deg, rgba(29, 78, 216, 0.97) 0%, rgba(109, 40, 217, 0.97) 100%);
    --header-utility-text: #e2e8ff;
    --header-main-bg: rgba(11, 15, 25, 0.82);
    --header-main-border: rgba(148, 163, 184, 0.22);
    --header-main-link: #f8fafc;
    --header-main-link-muted: #cbd5e1;
    --header-panel-bg: rgba(15, 23, 42, 0.98);
    --header-panel-border: rgba(148, 163, 184, 0.15);
    --header-panel-title: #f8fafc;
    --header-panel-copy: #94a3b8;
}

.site-header.site-header--mega {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-bottom: 0;
    z-index: var(--header-z-index);
    pointer-events: none;
    background: transparent;
    transition: transform 0.24s ease, opacity 0.24s ease;
    will-change: transform, opacity;
}

.site-header.site-header--mega>* {
    pointer-events: auto;
}

.site-header.site-header--mega.is-header-hidden {
    transform: translateY(calc(-1 * (var(--header-utility-height) + var(--header-main-height))));
    opacity: 0;
}

.site-header.site-header--mega.is-header-hidden>* {
    pointer-events: none;
}

.site-header.site-header--mega.is-main-only .site-header__utility {
    height: 0;
    border-bottom: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
}

.site-header.site-header--mega.is-utility-closed .site-header__utility {
    opacity: 0;
    visibility: hidden;
}

.site-header.site-header--mega.is-main-only .site-mega-panel {
    top: var(--header-main-height);
}

body.admin-bar {
    --wp-admin-offset: 32px;
}

@media (max-width: 1100px) {
    :root {
        --site-header-offset: var(--site-header-offset-mobile);
    }
}

@media (max-width: 782px) {
    body.admin-bar {
        --wp-admin-offset: 46px;
    }
}

.breadcrumbs-wrapper {
    position: absolute;
    top: calc(var(--site-header-offset) + var(--wp-admin-offset) + 0.85rem);
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    z-index: calc(var(--header-z-index) - 20);
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.breadcrumbs-wrapper .container.breadcrumbs {
    width: 100%;
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.52rem;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: left;
    color: #94a3b8;
    pointer-events: auto;
}

.breadcrumbs-wrapper .breadcrumbs a {
    color: #94a3b8;
}

.breadcrumbs-wrapper .breadcrumbs a:hover {
    color: #94a3b8;
}

.breadcrumbs-wrapper .breadcrumbs .breadcrumbs-current {
    color: #94a3b8;
    font-weight: 500;
}

.site-header.site-header--mega.is-main-only+.site-mobile-nav+.breadcrumbs-wrapper,
.site-header.site-header--mega.is-utility-closed+.site-mobile-nav+.breadcrumbs-wrapper {
    top: calc(var(--header-main-height) + var(--wp-admin-offset) + 0.85rem);
}

@media (max-width: 1100px) {
    .breadcrumbs-wrapper {
        top: calc(var(--site-header-offset) + var(--wp-admin-offset) + 0.72rem);
    }
}

@media (max-width: 768px) {
    .breadcrumbs-wrapper .container.breadcrumbs {
        font-size: 0.78rem;
        gap: 0.4rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

[data-theme="dark"] .breadcrumbs-wrapper .breadcrumbs {
    color: #94a3b8;
}

[data-theme="dark"] .breadcrumbs-wrapper .breadcrumbs a {
    color: #94a3b8;
}

[data-theme="dark"] .breadcrumbs-wrapper .breadcrumbs a:hover,
[data-theme="dark"] .breadcrumbs-wrapper .breadcrumbs .breadcrumbs-current {
    color: #94a3b8;
}

.site-header--mega .container {
    max-width: 1320px;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
}

.site-header--mega .site-header__utility {
    height: var(--header-utility-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--header-utility-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header--mega .site-header__utility-inner {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.site-header--mega .site-header__utility-left {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.site-header--mega .site-header__social-links {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.site-header--mega .site-header__social-link {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.site-header--mega .site-header__social-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
}

.site-header--mega .site-header__utility-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.05rem;
    margin: 0;
    padding: 0;
}

.site-header--mega .site-header__utility-links a,
.site-header--mega .site-header__utility-link {
    color: var(--header-utility-text);
    font-size: 0.73rem;
    letter-spacing: 0.03em;
    font-weight: 500;
    opacity: 0.95;
    text-decoration: none;
}

.site-header--mega .site-header__utility-links a:hover,
.site-header--mega .site-header__utility-link:hover {
    color: #ffffff;
}

.site-header--mega .site-header__utility-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.site-header--mega .site-header__utility-btn {
    border: 0;
    background: transparent;
    color: var(--header-utility-text);
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.site-header--mega .site-header__utility-close {
    margin-left: 0.25rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    width: 1.42rem;
    height: 1.42rem;
}

.site-header--mega .site-header__utility-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.site-header--mega .site-header__theme-toggle .icon-sun,
[data-theme="dark"] .site-header--mega .site-header__theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .site-header--mega .site-header__theme-toggle .icon-sun,
.site-header--mega .site-header__theme-toggle .icon-moon {
    display: inline;
}

.site-header--mega .site-header__main {
    min-height: var(--header-main-height);
    border-bottom: 1px solid var(--header-main-border);
    background: var(--header-main-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header--mega .site-header__main-inner {
    min-height: var(--header-main-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
}

.site-header--mega .site-header__brand {
    flex: 0 0 auto;
    margin-right: 0;
}

.site-header--mega .site-logo--header {
    width: 109px;
    max-width: 109px;
    height: auto;
    display: block;
}

.site-header--mega .site-mega-nav {
    margin-left: 0.6rem;
    margin-right: auto;
}

.site-header--mega .site-mega-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.site-header--mega .site-mega-nav__trigger,
.site-header--mega .site-mega-nav__link {
    border: 0;
    background: transparent;
    color: var(--header-main-link);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.96rem;
    line-height: 1.25;
    height: 2.45rem;
    padding: 0 0.75rem;
    border-radius: 0.62rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
}

.site-header--mega .site-mega-nav__trigger:hover,
.site-header--mega .site-mega-nav__link:hover,
.site-header--mega .site-mega-nav__trigger:active,
.site-header--mega .site-mega-nav__link:active,
.site-header--mega .site-mega-nav__trigger[aria-expanded="true"] {
    color: var(--header-main-link);
    background: rgba(59, 130, 246, 0.08);
    font-weight: 600;
}

.site-header--mega .site-mega-nav__link--packages {
    color: #1e2a56;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.14)),
        rgba(255, 255, 255, 0.52);
    border: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 9px 22px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.site-header--mega .site-mega-nav__link--packages:hover,
.site-header--mega .site-mega-nav__link--packages:focus-visible {
    color: #1b2550;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.2)),
        rgba(255, 255, 255, 0.62);
    box-shadow:
        0 12px 26px rgba(59, 130, 246, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .site-header--mega .site-mega-nav__link--packages {
    color: #dbeafe;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(139, 92, 246, 0.24)),
        rgba(15, 23, 42, 0.72);
    box-shadow:
        0 12px 28px rgba(2, 6, 23, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-header--mega .site-mega-nav__link--packages:hover,
[data-theme="dark"] .site-header--mega .site-mega-nav__link--packages:focus-visible {
    color: #eff6ff;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.34), rgba(139, 92, 246, 0.3)),
        rgba(15, 23, 42, 0.82);
}

.site-header--mega .site-mega-nav__chevron {
    display: inline-flex;
    color: var(--header-main-link-muted);
    transition: transform 0.2s ease;
}

.site-header--mega .site-mega-nav__trigger[aria-expanded="true"] .site-mega-nav__chevron {
    transform: rotate(180deg);
}

.site-header--mega .site-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    flex: 0 0 auto;
    margin-left: auto;
}

@media (min-width: 1101px) {
    .site-header--mega .site-header__main-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .site-header--mega .site-header__brand {
        grid-column: 1;
        justify-self: start;
        margin-right: 0;
    }

    .site-header--mega .site-mega-nav {
        grid-column: 2;
        justify-self: center;
        margin-left: 0;
        margin-right: 0;
    }

    .site-header--mega .site-mega-nav__list {
        justify-content: center;
    }

    .site-header--mega .site-header__actions {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
    }
}

.site-header--mega .site-header__action-link {
    height: 2.35rem;
    min-width: 2.35rem;
    padding: 0 0.78rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--header-main-link);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.site-header--mega .site-header__action-link:hover {
    color: var(--header-main-link);
    background: rgba(59, 130, 246, 0.08);
}

.site-header--mega .site-header__action-link--login {
    height: 2.45rem;
    padding: 0 1rem;
    border: 0;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.site-header--mega .site-header__action-link--login:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.3);
}

.site-header--mega .site-header__cta {
    height: 2.45rem;
    padding: 0 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header--mega .site-header__cta--secondary {
    border: 1px solid rgba(59, 130, 246, 0.26);
    background: rgba(59, 130, 246, 0.06);
    color: var(--header-main-link);
    font-weight: 400;
}

.site-header--mega .site-header__cta--secondary:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--header-main-link);
    font-weight: 600;
}

.site-header--mega .site-header__cta--secondary:focus-visible,
.site-header--mega .site-header__cta--secondary:active {
    font-weight: 600;
}

.site-header--mega .site-header__mobile-toggle {
    display: none;
    border: 1px solid rgba(59, 130, 246, 0.26);
    background: rgba(59, 130, 246, 0.06);
    color: var(--header-main-link);
    border-radius: 0.62rem;
    width: 2.45rem;
    height: 2.45rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.site-header--mega .site-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--header-utility-height) + var(--header-main-height));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.22s ease, visibility 0.22s ease;
}

.site-header--mega.is-mega-open .site-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-header--mega .site-mega-panel .container {
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-header--mega .site-mega-panel__inner {
    max-width: min(1420px, calc(100vw - 2rem));
    margin: 0 auto;
    background: var(--header-panel-bg);
    border: 1px solid var(--header-panel-border);
    border-radius: 0 0 1.1rem 1.1rem;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
    padding: 1.8rem 2.4rem 1.4rem;
}

.site-header--mega .site-mega-panel__content[hidden] {
    display: none !important;
}

.site-header--mega .site-mega-panel__top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: min-content;
    align-items: start;
    gap: 2rem;
}

.site-header--mega .site-mega-col {
    min-width: 0;
}

.site-header--mega .site-mega-visual {
    grid-column: 4;
    grid-row: 1 / span 2;
    min-width: 0;
    min-height: 240px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
    line-height: 0;
}

.site-header--mega .site-mega-visual img {
    width: 100%;
    max-width: 300px;
    max-height: 430px;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

.site-header--mega .site-mega-cta {
    grid-row: 2;
    grid-column: 2 / 4;
    min-width: 0;
    margin-top: -0.1rem;
    padding: 1.05rem 1.15rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(120, 108, 255, 0.22);
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.2), transparent 56%),
        radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.2), transparent 56%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.site-header--mega .site-mega-cta__title {
    margin: 0;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.35rem, 1.1vw + 0.92rem, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.site-header--mega .site-mega-cta__description {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 0.42vw + 0.86rem, 1.18rem);
    font-weight: 500;
    line-height: 1.4;
}

.site-header--mega .site-mega-cta__button {
    margin-top: 0.9rem;
    min-width: 10.75rem;
    justify-content: center;
    font-size: 1rem;
}

#mega-panel-platforms .site-mega-cta {
    grid-column: 4;
    grid-row: 1;
    margin-top: 0;
    min-height: 194px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#mega-panel-services .site-mega-cta--inline {
    margin-top: 1rem;
    min-height: 194px;
    width: min(100%, 340px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#mega-panel-services .site-mega-cta--inline .site-mega-cta__title {
    font-size: clamp(1rem, 0.45vw + 0.86rem, 1.22rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#mega-panel-services .site-mega-cta--inline .site-mega-cta__description {
    margin-top: 0.42rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

#mega-panel-services .site-mega-cta--inline .site-mega-cta__button {
    margin-top: 0.75rem;
    min-width: 8.8rem;
    font-size: 0.95rem;
}

#mega-panel-platforms .site-mega-cta__title {
    font-size: clamp(1rem, 0.45vw + 0.86rem, 1.22rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#mega-panel-platforms .site-mega-cta__description {
    margin-top: 0.42rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

#mega-panel-platforms .site-mega-cta__button {
    margin-top: 0.75rem;
    min-width: 8.8rem;
    font-size: 0.95rem;
}

#mega-panel-industries .site-mega-cta {
    grid-column: 4;
    grid-row: 1;
    margin-top: 0;
    min-height: 194px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#mega-panel-industries .site-mega-cta__title {
    font-size: clamp(1rem, 0.45vw + 0.86rem, 1.22rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#mega-panel-industries .site-mega-cta__description {
    margin-top: 0.42rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

#mega-panel-industries .site-mega-cta__button {
    margin-top: 0.75rem;
    min-width: 8.8rem;
    font-size: 0.95rem;
}

#mega-panel-resources .site-mega-visual {
    grid-column: 4;
    grid-row: 1;
    align-self: end;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 0;
}

#mega-panel-resources .site-mega-visual img {
    width: min(100%, 318px);
    max-width: 318px;
    max-height: 430px;
    object-position: right bottom;
}

[data-theme="dark"] .site-header--mega .site-mega-cta {
    border-color: rgba(125, 149, 255, 0.35);
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.28), transparent 56%),
        radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.28), transparent 56%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.82));
    box-shadow: 0 18px 32px rgba(2, 6, 23, 0.35);
}

.site-header--mega .site-mega-col__eyebrow {
    margin: 0 0 0.78rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #64748b;
}

.site-header--mega .site-mega-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.16rem;
}

.site-header--mega .site-mega-col__item {
    margin: 0;
}

.site-header--mega .site-mega-link {
    display: block;
    padding: 0.45rem 0.52rem;
    border-radius: 0.55rem;
    text-decoration: none;
    color: inherit;
}

.site-header--mega .site-mega-link:hover {
    background: rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .site-header--mega .site-mega-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.site-header--mega .site-mega-link__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.site-header--mega .site-mega-link__title {
    color: var(--header-panel-title);
    font-family: 'Outfit', sans-serif;
    font-size: 1.06rem;
    line-height: 1.2;
    font-weight: 400;
}

.site-header--mega .site-mega-link:hover .site-mega-link__title,
.site-header--mega .site-mega-link:active .site-mega-link__title {
    font-weight: 600;
}

.site-header--mega .site-mega-link__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
}

.site-header--mega .site-mega-link__desc {
    margin-top: 0.2rem;
    display: block;
    color: var(--header-panel-copy);
    font-size: 0.82rem;
    line-height: 1.4;
}

.site-header--mega .site-mega-spotlight {
    margin-top: 1.25rem;
    padding-top: 1.05rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.site-header--mega .site-mega-col__eyebrow--spotlight {
    margin-bottom: 0.9rem;
}

.site-header--mega .site-mega-spotlight__grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-header--mega .site-mega-spotlight__card {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: start;
    column-gap: 0.68rem;
    row-gap: 0.1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    padding: 0.62rem;
}

.site-header--mega .site-mega-spotlight__card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.03);
}

.site-header--mega .site-mega-spotlight__thumb {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.58rem;
    overflow: hidden;
    background: #eef4ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header--mega .site-mega-spotlight__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header--mega .site-mega-spotlight__title {
    color: var(--header-panel-title);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.25;
}

.site-header--mega .site-mega-spotlight__card:hover .site-mega-spotlight__title,
.site-header--mega .site-mega-spotlight__card:active .site-mega-spotlight__title {
    font-weight: 600;
}

.site-header--mega .site-mega-spotlight__text {
    grid-column: 2 / -1;
    color: var(--header-panel-copy);
    font-size: 0.77rem;
    line-height: 1.35;
}

[data-theme="dark"] .site-header--mega .site-mega-spotlight__card {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .site-header--mega .site-mega-spotlight__card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .site-header--mega .site-mega-spotlight__thumb {
    background: rgba(15, 23, 42, 0.6);
}

.site-header--mega :where(a, button):focus-visible {
    outline: 3px solid var(--header-focus-ring);
    outline-offset: 2px;
}

/* Search-all page (Klaviyo-style layout with site branding) */
.bemco-search-all-page .bemco-search-all-shell {
    padding: 8.2rem 0 5rem;
}

.bemco-search-all-page .bemco-search-all-head {
    margin-bottom: 1.3rem;
}

.bemco-platform-directory-page .bemco-search-all-head {
    margin-top: 0.72rem;
}

.bemco-search-all-page .bemco-search-all-head h1 {
    margin: 0;
    font-size: 2.35rem;
    color: var(--text-color);
}

.bemco-search-all-page .bemco-search-all-head p {
    margin: 0.65rem 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.bemco-search-all-page .bemco-search-all-layout {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.bemco-search-all-page .bemco-search-sidebar,
.bemco-search-all-page .bemco-search-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bemco-search-all-page .bemco-search-sidebar {
    padding: 1rem;
    position: sticky;
    top: 8.3rem;
}

.bemco-search-all-page .bemco-search-sidebar-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.bemco-search-all-page .bemco-search-sidebar-actions button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.86rem;
    text-decoration: underline;
    cursor: pointer;
}

.bemco-search-all-page .bemco-search-filter-group {
    border-top: 1px solid rgba(148, 163, 184, 0.26);
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}

.bemco-search-all-page .bemco-search-filter-group:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.bemco-search-all-page .bemco-search-filter-group summary {
    list-style: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bemco-search-all-page .bemco-search-filter-group summary::-webkit-details-marker {
    display: none;
}

.bemco-search-all-page .bemco-search-filter-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.78rem;
    max-height: 300px;
    overflow: auto;
    padding-right: 0.2rem;
}

.bemco-search-all-page .bemco-search-filter-list label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.bemco-search-all-page .bemco-search-filter-list input[type="checkbox"] {
    width: 1.02rem;
    height: 1.02rem;
    accent-color: var(--primary);
}

.bemco-search-all-page .bemco-search-content {
    padding: 1.15rem;
}

.bemco-search-all-page .bemco-search-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 0.85rem;
    align-items: end;
}

.bemco-search-all-page .bemco-search-input-wrap {
    position: relative;
}

.bemco-search-all-page .bemco-search-input-icon {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    transform: translateY(-50%);
    color: #64748b;
    display: inline-flex;
}

.bemco-search-all-page .bemco-search-input-wrap input,
.bemco-search-all-page .bemco-search-sort-wrap select {
    width: 100%;
    height: 2.8rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    font-size: 0.96rem;
}

.bemco-search-all-page .bemco-search-input-wrap input {
    padding: 0 0.95rem 0 2.75rem;
}

.bemco-search-all-page .bemco-search-sort-wrap {
    display: grid;
    gap: 0.35rem;
}

.bemco-search-all-page .bemco-search-sort-wrap span {
    color: var(--text-muted);
    font-size: 0.83rem;
}

.bemco-search-all-page .bemco-search-sort-wrap select {
    padding: 0 0.8rem;
}

.bemco-search-all-page .bemco-search-meta {
    margin: 0.95rem 0 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.bemco-search-all-page [data-search-summary] {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bemco-search-all-page .bemco-search-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bemco-search-all-page .bemco-search-view-switch span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.bemco-search-all-page .bemco-search-view-switch button {
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: transparent;
    color: var(--text-color);
    height: 2rem;
    min-width: 3.35rem;
    border-radius: 0.58rem;
    padding: 0 0.65rem;
    font-size: 0.84rem;
    cursor: pointer;
}

.bemco-search-all-page .bemco-search-view-switch button.is-active {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.bemco-search-all-page .bemco-search-results {
    display: grid;
    gap: 0.72rem;
}

.bemco-search-all-page .bemco-search-results--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bemco-search-all-page .bemco-search-result-item,
.bemco-search-all-page .bemco-search-empty {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 11px;
    padding: 0.95rem;
}

.bemco-search-all-page .bemco-search-result-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.bemco-search-all-page .bemco-search-result-meta span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.bemco-search-all-page .bemco-search-result-item h3 {
    margin: 0;
    font-size: 1.17rem;
}

.bemco-search-all-page .bemco-search-result-item h3 a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.bemco-search-all-page .bemco-search-result-item p {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.bemco-search-all-page .bemco-search-topic-chips {
    margin-top: 0.72rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.bemco-search-all-page .bemco-search-topic-chips span {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.2rem 0.58rem;
    color: #475569;
    font-size: 0.74rem;
}

.bemco-search-all-page .bemco-search-empty h3 {
    margin: 0;
    font-size: 1.12rem;
}

.bemco-search-all-page .bemco-search-empty p {
    margin: 0.38rem 0 0;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .bemco-search-all-page .bemco-search-all-shell {
        padding-top: 6.8rem;
    }

    .bemco-platform-directory-page .bemco-search-all-head {
        margin-top: 0.55rem;
    }

    .bemco-search-all-page .bemco-search-all-layout {
        grid-template-columns: 1fr;
    }

    .bemco-search-all-page .bemco-search-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .bemco-search-all-page .bemco-search-toolbar {
        grid-template-columns: 1fr;
    }

    .bemco-search-all-page .bemco-search-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .bemco-search-all-page .bemco-search-results--grid {
        grid-template-columns: 1fr;
    }

    .bemco-search-all-page .bemco-search-all-head h1 {
        font-size: 1.9rem;
    }
}

[data-theme="dark"] .bemco-search-all-page .bemco-search-content,
[data-theme="dark"] .bemco-search-all-page .bemco-search-sidebar {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.28);
}

[data-theme="dark"] .bemco-search-all-page .bemco-search-result-item,
[data-theme="dark"] .bemco-search-all-page .bemco-search-empty {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.25);
}

[data-theme="dark"] .bemco-search-all-page .bemco-search-input-wrap input,
[data-theme="dark"] .bemco-search-all-page .bemco-search-sort-wrap select {
    background: rgba(2, 6, 23, 0.7);
    border-color: rgba(148, 163, 184, 0.35);
    color: #f8fafc;
}

[data-theme="dark"] .bemco-search-all-page .bemco-search-topic-chips span {
    color: #cbd5e1;
}

.bemco-platform-directory-page .bemco-platform-result-item {
    display: grid;
    gap: 0.8rem;
}

.bemco-platform-directory-page .bemco-platform-result-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.bemco-platform-directory-page .bemco-platform-result-head-copy {
    min-width: 0;
}

.bemco-platform-directory-page .bemco-platform-result-logo-wrap {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
}

.bemco-platform-directory-page .bemco-platform-result-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: grayscale(100%) saturate(0) brightness(0.72) contrast(1.08);
    opacity: 0.84;
    transition: filter 0.28s ease, opacity 0.28s ease;
}

.bemco-platform-directory-page .bemco-platform-result-item:hover .bemco-platform-result-logo,
.bemco-platform-directory-page .bemco-platform-result-item:focus-within .bemco-platform-result-logo {
    filter: grayscale(0%) saturate(1) brightness(1);
    opacity: 1;
}

.bemco-platform-directory-page .bemco-platform-result-logo-fallback {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

[data-theme="dark"] .bemco-platform-directory-page .bemco-platform-result-logo-wrap {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.26);
}

[data-theme="dark"] .site-header--mega .site-mega-cta__title {
    color: #e2e8f0;
}

[data-theme="dark"] .site-header--mega .site-mega-cta__description {
    color: #94a3b8;
}

.bemco-glossary-page .bemco-glossary-hero {
    padding: 160px 1rem 56px;
}

.bemco-glossary-page .bemco-glossary-shell {
    padding-top: 1.2rem;
    padding-bottom: 6rem;
}

.bemco-glossary-page .bemco-glossary-search {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
}

.bemco-glossary-page .bemco-glossary-controls {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr)) auto;
    gap: 0.85rem;
    align-items: end;
}

.bemco-glossary-page .bemco-glossary-field {
    min-width: 0;
}

.bemco-glossary-page .bemco-glossary-search label {
    display: block;
    margin-bottom: 0.52rem;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.bemco-glossary-page .bemco-glossary-search input,
.bemco-glossary-page .bemco-glossary-search select {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 0.88rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0.82rem 0.95rem;
}

.bemco-glossary-page .bemco-glossary-clear {
    min-height: 49px;
    width: 100%;
    white-space: nowrap;
}

.bemco-glossary-page .bemco-glossary-meta {
    margin: 0.62rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bemco-glossary-page .bemco-glossary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.bemco-glossary-page .bemco-glossary-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.72rem;
    margin-top: 1.15rem;
}

.bemco-glossary-page .bemco-glossary-page-btn {
    min-width: 116px;
}

.bemco-glossary-page .bemco-glossary-page-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.bemco-glossary-page .bemco-glossary-page-status {
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 500;
}

.bemco-glossary-page .bemco-glossary-card {
    padding: 1rem;
}

.bemco-glossary-page .bemco-glossary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.09);
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.5rem;
}

.bemco-glossary-page .bemco-glossary-card h2 {
    margin: 0.55rem 0 0;
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.22;
    font-weight: 500;
}

.bemco-glossary-page .bemco-glossary-card p {
    margin: 0.42rem 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.48;
    font-weight: 400;
}

.bemco-glossary-page .bemco-glossary-card:hover .bemco-glossary-chip,
.bemco-glossary-page .bemco-glossary-card:focus-within .bemco-glossary-chip,
.bemco-glossary-page .bemco-glossary-card:active .bemco-glossary-chip {
    font-weight: 600;
}

.bemco-glossary-page .bemco-glossary-card:hover h2,
.bemco-glossary-page .bemco-glossary-card:focus-within h2,
.bemco-glossary-page .bemco-glossary-card:active h2 {
    font-weight: 700;
}

.bemco-glossary-page .bemco-glossary-card:hover p,
.bemco-glossary-page .bemco-glossary-card:focus-within p,
.bemco-glossary-page .bemco-glossary-card:active p {
    font-weight: 500;
}

.bemco-glossary-page .bemco-glossary-empty {
    margin: 1.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bemco-glossary-page .services-page-cta-section {
    padding: 2.25rem 0 0;
}

.bemco-glossary-page .services-page-cta-card {
    margin: 0;
}

@media (max-width: 1100px) {
    .bemco-glossary-page .bemco-glossary-hero {
        padding-top: 122px;
    }
}

@media (max-width: 980px) {
    .bemco-glossary-page .bemco-glossary-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bemco-glossary-page .bemco-glossary-field--search {
        grid-column: 1 / -1;
    }

    .bemco-glossary-page .bemco-glossary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .bemco-glossary-page .bemco-glossary-shell {
        padding-top: 0.9rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bemco-glossary-page .bemco-glossary-controls {
        grid-template-columns: 1fr;
    }

    .bemco-glossary-page .bemco-glossary-search input,
    .bemco-glossary-page .bemco-glossary-search select {
        font-size: 16px;
    }

    .bemco-glossary-page .bemco-glossary-grid {
        grid-template-columns: 1fr;
    }

    .bemco-glossary-page .bemco-glossary-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

    .bemco-glossary-page .services-page-cta-section {
        padding-top: 1.75rem;
    }

    .bemco-glossary-page .bemco-glossary-hero {
        padding-top: 108px;
        padding-bottom: 42px;
    }
}

[data-theme="dark"] .bemco-glossary-page .bemco-glossary-search input {
    background: rgba(2, 6, 23, 0.62);
    border-color: rgba(148, 163, 184, 0.4);
    color: #f8fafc;
}

[data-theme="dark"] .bemco-glossary-page .bemco-glossary-search select {
    background: rgba(2, 6, 23, 0.62);
    border-color: rgba(148, 163, 184, 0.4);
    color: #f8fafc;
}

[data-theme="dark"] .bemco-glossary-page .bemco-glossary-chip {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.bemco-glossary-term {
    border-bottom: 1px dotted rgba(59, 130, 246, 0.55);
    cursor: help;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.bemco-glossary-term:hover,
.bemco-glossary-term:focus,
.bemco-glossary-term.is-active {
    color: var(--primary);
    border-bottom-color: rgba(59, 130, 246, 0.85);
    outline: none;
}

.bemco-glossary-tooltip {
    position: fixed;
    z-index: 12000;
    width: min(340px, calc(100vw - 24px));
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.bemco-glossary-tooltip__term {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.bemco-glossary-tooltip__definition {
    margin: 0.34rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

@media (max-width: 680px) {
    .bemco-glossary-tooltip {
        width: min(320px, calc(100vw - 20px));
        padding: 0.72rem 0.78rem;
    }
}

[data-theme="dark"] .bemco-glossary-tooltip {
    background: rgba(2, 6, 23, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .bemco-glossary-term {
    border-bottom-color: rgba(96, 165, 250, 0.55);
}

.site-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: calc(var(--header-z-index) + 20);
    isolation: isolate;
}

.site-mobile-nav[hidden] {
    display: none;
}

.site-mobile-nav__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.site-mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(430px, 94vw);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-right: 0;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem 0 0 1rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
}

.site-mobile-nav.is-open .site-mobile-nav__overlay {
    opacity: 1;
}

.site-mobile-nav.is-open .site-mobile-nav__panel {
    transform: translateX(0);
}

.site-mobile-nav__header {
    min-height: 72px;
    padding: 0 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.52rem;
    border-bottom: 0;
    background: transparent;
}

.site-mobile-nav__header-login {
    margin-right: auto;
    min-height: 2.2rem;
    padding: 0.46rem 1.04rem;
    font-size: 0.82rem;
    line-height: 1;
    border-radius: 999px;
    box-shadow: 0 7px 16px rgba(59, 130, 246, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.01em;
}

.site-mobile-nav__header-login:hover,
.site-mobile-nav__header-login:focus-visible {
    transform: none;
    box-shadow: 0 7px 16px rgba(59, 130, 246, 0.24);
    color: #fff;
}

.site-mobile-nav__header-login.is-idle-feedback:not(:hover) {
    animation: none !important;
}

.site-mobile-nav__theme-toggle,
.site-mobile-nav__close {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.56rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-mobile-nav__theme-toggle:hover,
.site-mobile-nav__close:hover {
    border-color: rgba(59, 130, 246, 0.45);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.site-mobile-nav__theme-toggle {
    font-size: 1.02rem;
    line-height: 1;
}

[data-theme="dark"] .site-mobile-nav__theme-toggle,
[data-theme="dark"] .site-mobile-nav__close {
    background: var(--glass-bg);
}

.site-mobile-nav__body {
    padding: 0.94rem 1rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.84rem;
}

.site-mobile-nav__list,
.site-mobile-nav__submenu,
.site-mobile-nav__footer-links,
.site-mobile-nav__social-links,
.site-mobile-nav__group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-mobile-nav__search-form {
    margin: 0;
    width: 100%;
}

.site-mobile-nav__search-form input {
    width: 100%;
    min-height: 2.62rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0 0.98rem;
    font-size: 0.9rem;
    color: var(--header-main-link);
    background: var(--glass-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

[data-theme="dark"] .site-mobile-nav__search-form input {
    color: var(--header-main-link);
    background: var(--glass-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-mobile-nav__search-form input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.68);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.site-mobile-nav__nav {
    padding-top: 0.8rem;
}

.site-mobile-nav__list {
    display: grid;
    gap: 0.48rem;
}

.site-mobile-nav__link,
.site-mobile-nav__accordion-trigger {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    background: var(--glass-bg);
    color: var(--header-main-link);
    text-align: left;
    text-decoration: none;
    padding: 0.74rem 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.94rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-mobile-nav__accordion-trigger {
    font-weight: 500;
    color: var(--header-main-link-muted);
}

.site-mobile-nav__item--packages {
    border-bottom: 0;
    margin-bottom: 0.18rem;
    padding-bottom: 0.22rem;
}

.site-mobile-nav__cta-row {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    flex-wrap: nowrap;
}

.site-mobile-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 2.36rem;
    width: fit-content;
    border-radius: 999px;
    padding: 0.52rem 1rem;
    font-size: 0.86rem;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-mobile-nav__cta--primary {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.28);
}

.site-mobile-nav__cta--primary:hover,
.site-mobile-nav__cta--primary:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.34);
}

.site-mobile-nav__cta--secondary {
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: var(--header-main-link);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-mobile-nav__cta--secondary:hover,
.site-mobile-nav__cta--secondary:focus-visible {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.14);
}

[data-theme="dark"] .site-mobile-nav__cta--secondary {
    border-color: rgba(96, 165, 250, 0.46);
    color: var(--text-color);
    background: var(--glass-bg);
}

.site-mobile-nav__link:hover,
.site-mobile-nav__accordion-trigger:hover {
    border-color: rgba(59, 130, 246, 0.46);
    background: rgba(59, 130, 246, 0.12);
}

.site-mobile-nav__accordion-trigger[aria-expanded="true"] {
    border-color: rgba(59, 130, 246, 0.45);
    color: var(--text-color);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .site-mobile-nav__link,
[data-theme="dark"] .site-mobile-nav__accordion-trigger {
    background: var(--glass-bg);
}

.site-mobile-nav__accordion-panel {
    margin-top: 0.4rem;
    padding: 0.22rem 0.2rem 0.15rem;
    display: grid;
    gap: 0.48rem;
}

.site-mobile-nav__accordion-panel[hidden] {
    display: none !important;
}

.site-mobile-nav__submenu {
    border: 1px solid var(--glass-border);
    border-radius: 0.68rem;
    padding: 0.24rem 0.62rem;
    background: var(--glass-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.site-mobile-nav__submenu a {
    color: var(--header-main-link);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    text-decoration: none;
    display: block;
    padding: 0.48rem 0.08rem;
}

[data-theme="dark"] .site-mobile-nav__submenu {
    background: var(--glass-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-mobile-nav__submenu a:hover {
    color: var(--primary);
}

.site-mobile-nav__submenu li + li {
    border-top: 0;
}

.site-mobile-nav__view-more {
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 400;
    text-decoration: none;
    padding-left: 0.08rem;
    letter-spacing: 0.02em;
}

.site-mobile-nav__view-more:hover {
    color: var(--btn-hover);
}

.site-mobile-nav__footer {
    margin-top: auto;
    border-top: 0;
    padding-top: 0.8rem;
    display: grid;
    gap: 0.62rem;
}

.site-mobile-nav__footer-links {
    display: grid;
    gap: 0.4rem;
}

.site-mobile-nav__footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.site-mobile-nav__footer-links a:hover {
    color: var(--text-color);
}

.site-mobile-nav__social-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.site-mobile-nav__social-link {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-mobile-nav__social-link:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.16);
}

.site-mobile-nav__accordion-icon {
    line-height: 1;
    font-size: 1.1rem;
    font-weight: 700;
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 1230px) {
    .site-header--mega .site-header__cta--secondary {
        display: none;
    }
}

@media (max-width: 1100px) {
    .site-header--mega .site-header__utility {
        display: none;
    }

    .site-header--mega .site-mega-nav,
    .site-header--mega .site-mega-panel,
    .site-header--mega .site-header__action-link--search,
    .site-header--mega .site-header__action-link--login {
        display: none;
    }

    .site-header--mega .site-header__main {
        min-height: 70px;
    }

    .site-header--mega .site-header__main-inner {
        min-height: 70px;
    }

    .site-header--mega .site-header__mobile-toggle {
        display: inline-flex;
    }
}

@media (max-width: 780px) {
    .site-header--mega .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header--mega .site-logo--header {
        width: 95px;
        max-width: 95px;
    }

    .site-header--mega .site-header__cta--primary {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .site-header--mega .site-mega-panel,
    .site-header--mega .site-mega-nav__chevron,
    .site-mobile-nav__overlay,
    .site-mobile-nav__panel,
    .site-mobile-nav__accordion-trigger,
    .site-mobile-nav__accordion-panel {
        transition: none !important;
    }
}

/* Privacy Policy Long-Form Layout */
.privacy-policy-hero {
    padding: 160px 1rem 36px;
    text-align: center !important;
}

.privacy-policy-hero .hero-title {
    margin-bottom: 0;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.privacy-policy-hero__content {
    text-align: center !important;
}

.privacy-policy-layout {
    padding: 0 1rem 96px;
}

.privacy-policy-content {
    max-width: 760px;
    text-wrap: pretty;
}

.privacy-policy-content> :first-child {
    margin-top: 0;
}

.privacy-policy-content h2,
.privacy-policy-content h3,
.privacy-policy-content h4 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 2.1rem 0 0.95rem;
}

.privacy-policy-content h2 {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
}

.privacy-policy-content h3 {
    font-size: clamp(1.22rem, 2vw, 1.5rem);
    margin-top: 2.65rem;
}

.privacy-policy-content h4 {
    font-size: clamp(1.04rem, 1.6vw, 1.15rem);
    margin-top: 1.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.privacy-policy-content p,
.privacy-policy-content li {
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.88;
    font-weight: 400;
}

.privacy-policy-content p {
    margin: 0 0 1.25rem;
}

.privacy-policy-content p+p {
    margin-top: 0.2rem;
}

.privacy-policy-content ul {
    margin: 0.4rem 0 1.5rem;
    padding-left: 1.4rem;
    list-style: disc outside;
}

.privacy-policy-content li {
    margin-bottom: 0.46rem;
    padding-left: 0.15rem;
}

.privacy-policy-content li::marker {
    color: var(--text-color);
}

.privacy-policy-content a {
    color: var(--primary);
}

.privacy-policy-content>p:first-child {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.privacy-policy-content .bemco-protected-contact {
    display: inline-flex;
    align-items: baseline;
    gap: 0.42rem;
    background: transparent;
    border: 0;
    margin: 0.14rem 0;
    padding: 0;
    font: inherit;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
}

.privacy-policy-content .bemco-protected-contact:hover .bemco-protected-contact__value {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-policy-content .bemco-protected-contact:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.privacy-policy-content .bemco-protected-contact__label {
    font-weight: 600;
    color: var(--text-color);
}

.privacy-policy-content .bemco-protected-contact__value {
    color: var(--text-muted);
}

.privacy-policy-content .bemco-protected-contact.is-revealed .bemco-protected-contact__value {
    color: var(--text-color);
}

.privacy-policy-content em {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.bemco-protection-notice {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    pointer-events: none;
    z-index: 12050;
    background: rgba(26, 31, 54, 0.95);
    color: #fff;
    border-radius: 999px;
    padding: 0.62rem 0.96rem;
    font-size: 0.85rem;
    line-height: 1.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.bemco-protection-notice.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[data-theme="dark"] .bemco-protection-notice {
    background: rgba(15, 23, 42, 0.95);
}

@media (max-width: 900px) {
    .privacy-policy-hero {
        padding-top: 138px;
        padding-bottom: 26px;
    }

    .privacy-policy-layout {
        padding-bottom: 72px;
    }

    .privacy-policy-content p,
    .privacy-policy-content li {
        font-size: 1rem;
        line-height: 1.8;
    }

    .bemco-protection-notice {
        width: calc(100% - 2rem);
        border-radius: 12px;
        text-align: center;
    }
}

/* Email Deliverability Scanner Tool */
.deliverability-wizard-shell {
    padding: 2rem;
    display: grid;
    gap: 1.2rem;
    overflow: visible;
}

.deliverability-wizard-shell [hidden] {
    display: none !important;
}

.deliverability-readiness-page .deliverability-wizard-section {
    margin-bottom: clamp(2.5rem, 4.2vw, 4.5rem);
}

.deliverability-readiness-page .deliverability-results-section {
    margin-bottom: clamp(2rem, 3.2vw, 3.25rem);
}

.deliverability-readiness-page .deliverability-results-section .results-section {
    margin-bottom: 0;
}

.deliverability-readiness-page .deliverability-content-section {
    margin-bottom: clamp(3rem, 5vw, 6rem);
}

.deliverability-wizard-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
    position: relative;
    z-index: 8;
}

.deliverability-wizard-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(124, 151, 255, 0.48);
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    padding: 0.35rem 0.65rem;
}

.deliverability-wizard-step .deliverability-wizard-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
}

.deliverability-step-label {
    display: inline-flex;
    align-items: center;
}

.deliverability-step-help .deliverability-help-tooltip-trigger {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.08);
}

.deliverability-step-help .deliverability-help-tooltip-bubble {
    width: min(250px, 74vw);
    text-align: left;
    display: none;
    z-index: 30;
}

.deliverability-step-help:hover .deliverability-help-tooltip-bubble,
.deliverability-step-help:focus-within .deliverability-help-tooltip-bubble {
    display: block;
}

.deliverability-wizard-step.is-active {
    color: var(--text-color);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
}

.deliverability-wizard-step.is-active .deliverability-wizard-step-index {
    background: var(--primary);
    color: #fff;
}

.deliverability-wizard-step.is-complete {
    color: #166534;
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.12);
}

.deliverability-wizard-step.is-complete .deliverability-wizard-step-index {
    background: rgba(34, 197, 94, 0.92);
    color: #fff;
}

.deliverability-wizard-step.is-skipped {
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.62);
    background: rgba(220, 38, 38, 0.14);
}

.deliverability-wizard-step.is-skipped .deliverability-wizard-step-index {
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
}

.deliverability-step-panel {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.deliverability-step-panel h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.deliverability-seo-stack {
    display: grid;
    gap: 1.35rem;
}

.deliverability-expert-cta {
    border: 1px solid rgba(124, 151, 255, 0.28);
    background:
        radial-gradient(circle at 14% 12%, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0) 50%),
        linear-gradient(132deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
}

.deliverability-seo-card {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 3vw, 2.6rem);
    border-radius: 1.4rem;
    border: 1px solid rgba(124, 151, 255, 0.22);
    background: #fff;
    box-shadow: 0 18px 48px rgba(59, 130, 246, 0.1);
}

.deliverability-seo-card:hover {
    transform: none;
    box-shadow: 0 18px 48px rgba(59, 130, 246, 0.1);
}

.deliverability-seo-card h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.deliverability-seo-card h2.deliverability-heading-solid {
    color: #000 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #000 !important;
}

[data-theme="dark"] .deliverability-seo-card h2.deliverability-heading-solid {
    color: var(--text-color) !important;
    -webkit-text-fill-color: var(--text-color) !important;
}

.deliverability-seo-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.28rem;
    color: var(--primary);
}

.deliverability-seo-card p {
    margin: 0.72rem 0 0;
    color: var(--text-muted);
    line-height: 1.72;
}

.deliverability-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.deliverability-seo-mini-card {
    border-radius: 1.1rem;
    border: 1px solid rgba(124, 151, 255, 0.24);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    padding: 1.28rem 1.3rem;
}

.deliverability-seo-mini-card:hover {
    transform: none;
    box-shadow: none;
}

.deliverability-seo-mini-card p {
    margin: 0.52rem 0 0;
    color: var(--text-muted);
    line-height: 1.68;
}

.deliverability-seo-list {
    margin: 0.9rem 0 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
    line-height: 1.68;
    display: grid;
    gap: 0.48rem;
}

.deliverability-seo-list strong {
    color: var(--text-color);
}

.deliverability-seo-list-ordered {
    list-style: decimal;
}

[data-theme="dark"] .deliverability-seo-card {
    border-color: rgba(134, 145, 255, 0.32);
    background:
        radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0) 44%),
        radial-gradient(circle at 88% 90%, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0) 50%),
        rgba(15, 23, 42, 0.72);
    box-shadow:
        0 20px 42px rgba(3, 8, 27, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .deliverability-seo-card:hover {
    box-shadow:
        0 20px 42px rgba(3, 8, 27, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .deliverability-seo-mini-card {
    border-color: rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.72);
}

[data-theme="dark"] .deliverability-expert-cta {
    border-color: rgba(134, 145, 255, 0.32);
    background:
        radial-gradient(circle at 14% 12%, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0) 50%),
        linear-gradient(132deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.82));
}

[data-theme="dark"] .deliverability-wizard-step {
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(15, 23, 42, 0.58);
    color: #cbd5e1;
}

[data-theme="dark"] .deliverability-wizard-step .deliverability-wizard-step-index {
    background: rgba(148, 163, 184, 0.25);
    color: #dbe6ff;
}

[data-theme="dark"] .deliverability-wizard-step.is-active {
    border-color: rgba(96, 165, 250, 0.58);
    background: rgba(37, 99, 235, 0.22);
    color: #f1f5f9;
}

[data-theme="dark"] .deliverability-wizard-step.is-complete {
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.42);
    background: rgba(22, 163, 74, 0.2);
}

[data-theme="dark"] .deliverability-wizard-step.is-complete .deliverability-wizard-step-index {
    background: rgba(34, 197, 94, 0.92);
    color: #062e16;
}

[data-theme="dark"] .deliverability-wizard-step.is-skipped {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.52);
    background: rgba(127, 29, 29, 0.32);
}

[data-theme="dark"] .deliverability-wizard-step.is-skipped .deliverability-wizard-step-index {
    background: rgba(248, 113, 113, 0.95);
    color: #450a0a;
}

.deliverability-step-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.deliverability-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.deliverability-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
}

.deliverability-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.deliverability-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.deliverability-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.deliverability-summary-card {
    width: 100%;
}

.deliverability-score-card {
    border: 1px solid rgba(111, 122, 255, 0.28);
    background:
        radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0) 48%),
        rgba(255, 255, 255, 0.72);
}

.deliverability-score-title-row {
    margin: 0.25rem 0 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.deliverability-score-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.deliverability-help-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.deliverability-help-tooltip-trigger {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    padding: 0;
}

.deliverability-help-tooltip-trigger:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.deliverability-help-tooltip-bubble {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(290px, 76vw);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(31, 38, 135, 0.18);
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0.58rem 0.66rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 12;
}

.deliverability-help-tooltip-wrap:hover .deliverability-help-tooltip-bubble,
.deliverability-help-tooltip-wrap:focus-within .deliverability-help-tooltip-bubble {
    opacity: 1;
    visibility: visible;
}

.deliverability-score-donut {
    --score-value: 0;
    --score-fill: #f4bc47;
    --score-empty: #dee1eb;
    --score-gap-color: rgba(247, 249, 252, 0.95);
    --score-center-bg: #f3f5fb;
    width: min(100%, 176px);
    aspect-ratio: 1 / 1;
    margin: 0 auto 0.95rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, var(--score-center-bg) 0 58%, transparent 58.8%),
        repeating-conic-gradient(from -90deg, transparent 0deg 33.6deg, var(--score-gap-color) 33.6deg 36deg),
        conic-gradient(from -90deg, var(--score-fill) 0deg calc(var(--score-value) * 36deg), var(--score-empty) calc(var(--score-value) * 36deg) 360deg);
}

.deliverability-score-center {
    text-align: center;
    display: grid;
    gap: 0.1rem;
    align-content: center;
}

.deliverability-score-center-label {
    margin: 0;
    color: #8b95c6;
    font-size: clamp(0.62rem, 1.2vw, 0.82rem);
    font-weight: 500;
    line-height: 1.1;
}

.deliverability-score-center-value {
    margin: 0;
    color: #595d73;
    font-size: clamp(1.7rem, 4.2vw, 2.35rem);
    font-weight: 800;
    line-height: 0.98;
}

.deliverability-score-center-scale {
    margin: 0;
    color: #595d73;
    font-size: clamp(0.62rem, 1.1vw, 0.82rem);
    font-weight: 500;
    line-height: 1.1;
}

.deliverability-score-definition {
    margin: 0.65rem 0 0;
    color: var(--text-muted);
    line-height: 1.68;
}

.deliverability-next-actions-card {
    border: 1px solid rgba(111, 122, 255, 0.22);
    background:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.11), rgba(59, 130, 246, 0) 42%),
        radial-gradient(circle at 88% 92%, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0) 48%),
        rgba(255, 255, 255, 0.72);
    text-align: center;
    display: grid;
    align-content: center;
    gap: 0.95rem;
    padding: 1.2rem;
}

.deliverability-next-actions-card h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #233a90;
}

.deliverability-next-actions-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.deliverability-next-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.deliverability-next-actions-row .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
}

.deliverability-next-actions-row .btn:only-child {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
}

[data-theme="dark"] .deliverability-score-card {
    border-color: rgba(134, 145, 255, 0.3);
    background:
        radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.24), rgba(59, 130, 246, 0) 46%),
        radial-gradient(circle at 86% 86%, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0) 48%),
        rgba(15, 23, 42, 0.7);
}

[data-theme="dark"] .deliverability-help-tooltip-trigger {
    border-color: rgba(134, 145, 255, 0.45);
    background: rgba(59, 130, 246, 0.22);
    color: #dbe6ff;
}

[data-theme="dark"] .deliverability-help-tooltip-bubble {
    border-color: rgba(148, 163, 184, 0.42);
    background: rgba(15, 23, 42, 0.96);
    color: #cbd5e1;
    box-shadow: 0 10px 26px rgba(3, 8, 27, 0.55);
}

[data-theme="dark"] .deliverability-score-donut {
    --score-empty: rgba(148, 163, 184, 0.28);
    --score-gap-color: rgba(15, 23, 42, 0.84);
    --score-center-bg: rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .deliverability-score-center-value,
[data-theme="dark"] .deliverability-score-center-scale {
    color: #e2e8f0;
}

[data-theme="dark"] .deliverability-score-center-label {
    color: #aab6ec;
}

[data-theme="dark"] .deliverability-next-actions-card {
    border-color: rgba(134, 145, 255, 0.26);
    background:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0) 42%),
        radial-gradient(circle at 88% 92%, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0) 48%),
        rgba(15, 23, 42, 0.7);
}

[data-theme="dark"] .deliverability-next-actions-card h3 {
    color: #dbe6ff;
}

.deliverability-readiness-page .deliverability-intro-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.02rem;
}

.deliverability-tool-shell,
.deliverability-results-shell,
.deliverability-generator-shell {
    padding: 2.2rem;
}

.deliverability-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.deliverability-form-grid.deliverability-form-grid-single {
    grid-template-columns: 1fr;
}

.deliverability-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.deliverability-field label {
    font-weight: 600;
    color: var(--text-color);
}

.deliverability-input,
.deliverability-select {
    width: 100%;
    border: 2px solid rgba(59, 130, 246, 0.45);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 10px;
    padding: 0.78rem 0.85rem;
    color: var(--text-color);
    font: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .deliverability-input,
[data-theme="dark"] .deliverability-select {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .deliverability-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.deliverability-input:focus,
.deliverability-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.deliverability-form-help {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.deliverability-form-actions {
    margin-top: 1.15rem;
}

.deliverability-form-message {
    margin-top: 0.9rem;
    font-weight: 400;
    min-height: 1.4rem;
}

.deliverability-form-message.is-error {
    color: var(--danger);
}

.deliverability-form-message.is-success {
    color: var(--success);
}

.deliverability-form-message.is-info {
    color: var(--primary);
}

.deliverability-results-head p {
    color: var(--text-muted);
}

[data-deliverability-meta] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.5rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.deliverability-meta-sep {
    opacity: 0.55;
}

.deliverability-result-sections {
    margin-top: 1.3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.deliverability-result-section {
    width: 100%;
}

.deliverability-check-card,
.deliverability-dkim-card,
.deliverability-generated-card,
.deliverability-generator-card {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.33);
    padding: 1.1rem;
}

[data-theme="dark"] .deliverability-check-card,
[data-theme="dark"] .deliverability-dkim-card,
[data-theme="dark"] .deliverability-generated-card,
[data-theme="dark"] .deliverability-generator-card {
    background: rgba(15, 23, 42, 0.42);
}

.deliverability-check-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.65rem;
}

.deliverability-check-card h3,
.deliverability-dkim-card h3,
.deliverability-generated-card h3,
.deliverability-generator-card h3 {
    margin: 0;
}

.deliverability-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.deliverability-status-pass {
    color: #166534;
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
}

.deliverability-status-warn {
    color: #9a3412;
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.35);
}

.deliverability-status-fail,
.deliverability-status-missing {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="dark"] .deliverability-status-pass {
    color: #86efac;
    background: rgba(22, 163, 74, 0.22);
    border-color: rgba(74, 222, 128, 0.45);
}

[data-theme="dark"] .deliverability-status-warn {
    color: #fde68a;
    background: rgba(180, 83, 9, 0.3);
    border-color: rgba(251, 191, 36, 0.45);
}

[data-theme="dark"] .deliverability-status-fail,
[data-theme="dark"] .deliverability-status-missing {
    color: #fecaca;
    background: rgba(153, 27, 27, 0.34);
    border-color: rgba(248, 113, 113, 0.5);
}

.deliverability-check-message {
    margin: 0;
    color: var(--text-muted);
}

.deliverability-check-card,
.deliverability-generated-card,
.deliverability-generator-card,
.deliverability-result-section,
.deliverability-generated-shell,
.deliverability-table-wrap,
.deliverability-tech-details {
    min-width: 0;
    max-width: 100%;
}

.deliverability-action-summary {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.55;
}

.deliverability-action-list {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
}

.deliverability-action-list li {
    margin-bottom: 0.38rem;
    color: var(--text-muted);
}

.deliverability-resolve-wrap {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.72rem;
}

.deliverability-resolve-btn {
    width: fit-content;
}

.deliverability-resolve-panel {
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.34);
    padding: 0.88rem;
    display: grid;
    gap: 0.72rem;
}

[data-theme="dark"] .deliverability-resolve-panel {
    background: rgba(15, 23, 42, 0.46);
}

.deliverability-resolve-copy {
    margin: 0;
    color: var(--text-muted);
}

.deliverability-resolve-generate {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.deliverability-resolve-generate-btn {
    width: fit-content;
}

.deliverability-resolve-record {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.52);
    padding: 0.72rem;
}

[data-theme="dark"] .deliverability-resolve-record {
    background: rgba(15, 23, 42, 0.58);
}

.deliverability-resolve-record h4 {
    margin: 0 0 0.42rem;
    font-size: 0.95rem;
}

.deliverability-resolve-record p {
    margin: 0.18rem 0 0;
}

.deliverability-resolve-note {
    margin-top: 0.45rem !important;
    color: var(--text-muted);
}

.deliverability-current-records {
    border-top: 1px dashed var(--glass-border);
    padding-top: 0.65rem;
}

.deliverability-current-records summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
}

.deliverability-dkim-current-list {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
}

.deliverability-dkim-current-list li {
    margin-bottom: 0.42rem;
}

.deliverability-record-list,
.deliverability-warning-list,
.deliverability-source-meta ul {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
}

.deliverability-record-list li,
.deliverability-warning-list li,
.deliverability-source-meta li {
    margin-bottom: 0.34rem;
    color: var(--text-muted);
}

.deliverability-source-meta {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--glass-border);
}

.deliverability-source-meta p,
.deliverability-warning-wrap p {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.deliverability-check-card p,
.deliverability-check-card li,
.deliverability-generated-card p,
.deliverability-generated-card li,
.deliverability-generator-card p,
.deliverability-generator-card li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.deliverability-tech-details {
    margin-top: 0.8rem;
    border-top: 1px dashed var(--glass-border);
    padding-top: 0.6rem;
}

.deliverability-tech-details summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
}

.deliverability-empty {
    margin-top: 0.72rem;
    color: var(--text-muted);
}

.deliverability-table-wrap {
    margin-top: 0.8rem;
    overflow-x: auto;
}

.deliverability-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 0;
}

.deliverability-table th,
.deliverability-table td {
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 0.5rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.deliverability-table th:nth-child(1),
.deliverability-table td:nth-child(1) {
    width: 20%;
}

.deliverability-table th:nth-child(2),
.deliverability-table td:nth-child(2) {
    width: 18%;
}

.deliverability-table th:nth-child(3),
.deliverability-table td:nth-child(3) {
    width: 62%;
}

.deliverability-table td code,
.deliverability-record-list code,
.deliverability-generated-card code,
[data-deliverability-meta] code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    vertical-align: top;
}

.deliverability-table th {
    color: var(--text-color);
    font-weight: 700;
}

.deliverability-generator-intro {
    color: var(--text-muted);
    margin: 0.3rem 0 1rem;
}

.deliverability-generator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.deliverability-generator-fields {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.deliverability-generated-shell {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.deliverability-code-block {
    margin-top: 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    border-radius: 10px;
    padding: 0.75rem;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.86rem;
    line-height: 1.5;
}

.deliverability-code-block code {
    white-space: inherit;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.deliverability-private-key-wrap {
    margin-top: 0.85rem;
}

.deliverability-private-key-wrap summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 980px) {
    .deliverability-readiness-page .deliverability-wizard-section {
        margin-bottom: 2rem;
    }

    .deliverability-readiness-page .deliverability-results-section {
        margin-bottom: 1.5rem;
    }

    .deliverability-readiness-page .deliverability-content-section {
        margin-bottom: 3.5rem;
    }

    .deliverability-wizard-shell {
        padding: 1.4rem;
    }

    .deliverability-wizard-steps {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        gap: 0.45rem;
        padding-bottom: 0.2rem;
    }

    .deliverability-wizard-step {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .deliverability-summary-grid {
        grid-template-columns: 1fr;
    }

    .deliverability-seo-grid {
        grid-template-columns: 1fr;
    }

    .deliverability-form-grid,
    .deliverability-generator-grid {
        grid-template-columns: 1fr;
    }

    .deliverability-tool-shell,
    .deliverability-results-shell,
    .deliverability-generator-shell {
        padding: 1.4rem;
    }

    .deliverability-table {
        font-size: 0.86rem;
    }

    .deliverability-table th,
    .deliverability-table td {
        padding: 0.52rem 0.42rem;
    }
}

@media (max-width: 680px) {
    .deliverability-next-actions-row {
        grid-template-columns: 1fr;
    }

    .deliverability-next-actions-row .btn:only-child {
        width: 100%;
    }

    .deliverability-check-card-head {
        align-items: flex-start;
    }

    .deliverability-status-badge {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .deliverability-resolve-btn {
        width: 100%;
        justify-content: center;
    }

    .deliverability-resolve-generate-btn {
        width: 100%;
        justify-content: center;
    }

    .deliverability-table {
        font-size: 0.82rem;
    }

    .deliverability-table th:nth-child(1),
    .deliverability-table td:nth-child(1) {
        width: 26%;
    }

    .deliverability-table th:nth-child(2),
    .deliverability-table td:nth-child(2) {
        width: 24%;
    }

    .deliverability-table th:nth-child(3),
    .deliverability-table td:nth-child(3) {
        width: 50%;
    }
}

/* IP / Domain Reputation Check Tool */
.reputation-tool-shell {
    padding: clamp(1.25rem, 2vw, 2rem);
}

.reputation-tool-title {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.reputation-tool-subtitle {
    margin: 0.75rem 0 1.25rem;
    max-width: 850px;
    color: var(--text-muted);
}

.reputation-tool-form {
    display: grid;
    gap: 1rem;
}

.reputation-tool-shell [hidden] {
    display: none !important;
}

.reputation-field {
    display: grid;
    gap: 0.5rem;
}

.reputation-field label {
    font-weight: 600;
}

.reputation-input {
    width: 100%;
    padding: 0.86rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(73, 123, 252, 0.45);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reputation-input:focus {
    outline: none;
    border-color: rgba(61, 112, 245, 0.8);
    box-shadow: 0 0 0 3px rgba(61, 112, 245, 0.14);
}

.reputation-form-message {
    margin: 0.85rem 0 0;
    font-weight: 500;
    min-height: 1.2rem;
}

.reputation-form-message.is-error {
    color: #c03232;
}

.reputation-form-message.is-success {
    color: #1e8a4f;
}

.reputation-form-message.is-info {
    color: #3858ca;
}

.reputation-progress-shell {
    margin-top: 0.35rem;
    display: grid;
    gap: 0.42rem;
}

.reputation-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.reputation-progress-label {
    font-weight: 600;
    color: var(--text-dark);
}

.reputation-progress-eta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reputation-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(73, 123, 252, 0.18);
    overflow: hidden;
}

.reputation-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3d70f5 0%, #6e66f6 100%);
    transition: width 0.28s ease;
}

.reputation-results {
    margin-top: 1rem;
    display: grid;
    gap: 1.25rem;
}

.reputation-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.reputation-summary-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.22);
    background: rgba(255, 255, 255, 0.84);
    padding: 0.88rem 1rem;
}

.reputation-summary-note {
    grid-column: 1 / -1;
}

.reputation-summary-label {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.reputation-summary-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.reputation-summary-card.is-listed .reputation-summary-value {
    color: #b63838;
}

.reputation-summary-card.is-clear .reputation-summary-value {
    color: #1c8a4a;
}

.reputation-results-section h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
}

.reputation-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.reputation-result-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.18);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.9rem 1rem;
    overflow: hidden;
}

.reputation-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.reputation-result-head h4 {
    margin: 0;
    font-size: 1.05rem;
}

.reputation-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.reputation-status-badge.is-listed {
    color: #b63838;
    border-color: rgba(214, 76, 76, 0.35);
    background: rgba(214, 76, 76, 0.12);
}

.reputation-status-badge.is-clear {
    color: #227546;
    border-color: rgba(70, 172, 104, 0.34);
    background: rgba(70, 172, 104, 0.14);
}

.reputation-status-badge.is-unknown {
    color: #9a6321;
    border-color: rgba(233, 167, 88, 0.4);
    background: rgba(233, 167, 88, 0.16);
}

.reputation-result-copy {
    margin: 0 0 0.55rem;
    color: var(--text-dark);
}

.reputation-listed-targets {
    margin: 0 0 0.55rem;
    color: var(--text-dark);
}

.reputation-errors {
    margin: 0 0 0.55rem;
    color: #a45f1c;
}

.reputation-query-meta {
    margin-top: 0.5rem;
}

.reputation-query-meta summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
}

.reputation-query-meta ul {
    margin: 0.45rem 0 0;
    padding-left: 1rem;
}

.reputation-query-meta li {
    margin: 0.24rem 0;
}

.reputation-query-meta code {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    background: rgba(37, 55, 120, 0.08);
    border-radius: 8px;
    padding: 0.2rem 0.35rem;
}

.reputation-source-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.reputation-sources-note {
    border-top: 1px solid rgba(73, 123, 252, 0.2);
    padding-top: 0.9rem;
}

.reputation-sources-note p {
    margin: 0;
    color: var(--text-muted);
}

[data-theme="dark"] .reputation-input {
    background: rgba(15, 25, 48, 0.9);
    border-color: rgba(111, 154, 255, 0.48);
    color: #e5ebff;
}

[data-theme="dark"] .reputation-input::placeholder {
    color: rgba(229, 235, 255, 0.62);
}

[data-theme="dark"] .reputation-progress-label {
    color: #ecf2ff;
}

[data-theme="dark"] .reputation-progress-eta {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .reputation-progress-track {
    background: rgba(123, 164, 255, 0.2);
}

[data-theme="dark"] .reputation-summary-card,
[data-theme="dark"] .reputation-result-card {
    background: rgba(12, 21, 43, 0.82);
    border-color: rgba(123, 164, 255, 0.24);
}

[data-theme="dark"] .reputation-summary-value,
[data-theme="dark"] .reputation-result-copy,
[data-theme="dark"] .reputation-listed-targets,
[data-theme="dark"] .reputation-query-meta summary {
    color: #ecf2ff;
}

[data-theme="dark"] .reputation-summary-label,
[data-theme="dark"] .reputation-sources-note p {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .reputation-query-meta code {
    background: rgba(123, 164, 255, 0.15);
}

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

    .reputation-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .reputation-tool-shell {
        padding: 1.15rem;
    }

    .reputation-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* DNS Record Scanner Tool */
.dns-scanner-shell {
    padding: clamp(1.25rem, 2vw, 2.2rem);
}

.dns-scanner-title {
    margin: 0;
    font-size: clamp(1.85rem, 2.8vw, 2.8rem);
}

.dns-scanner-subtitle {
    margin: 0.75rem 0 1.4rem;
    max-width: 980px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.dns-scanner-form {
    display: grid;
    gap: 1rem;
}

.dns-scanner-shell [hidden] {
    display: none !important;
}

.dns-scanner-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dns-scanner-field {
    display: grid;
    gap: 0.45rem;
}

.dns-scanner-field label {
    font-weight: 600;
}

.dns-scanner-input,
.dns-scanner-select {
    width: 100%;
    border: 2px solid rgba(59, 130, 246, 0.45);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 10px;
    padding: 0.78rem 0.85rem;
    color: var(--text-color);
    font: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.dns-scanner-input:focus,
.dns-scanner-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.dns-scanner-type-shell {
    display: grid;
    gap: 0.7rem;
}

.dns-scanner-type-title {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 600;
}

.dns-scanner-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dns-scanner-type-pill {
    border: 1px solid rgba(124, 151, 255, 0.42);
    background: rgba(59, 130, 246, 0.08);
    color: #2f4fba;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.dns-scanner-type-pill:hover {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.14);
}

.dns-scanner-type-pill.is-active {
    color: #fff;
    border-color: rgba(37, 99, 235, 0.7);
    background: linear-gradient(135deg, #3d70f5 0%, #6e66f6 100%);
}

.dns-scanner-type-pill.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.dns-scanner-type-note {
    margin: 0;
    font-size: 0.92rem;
    color: #3858ca;
}

.dns-scanner-actions {
    display: flex;
    justify-content: flex-end;
}

.dns-scanner-form-message {
    margin: 0.35rem 0 0;
    font-weight: 500;
    min-height: 1.2rem;
}

.dns-scanner-form-message.is-error {
    color: #c03232;
}

.dns-scanner-form-message.is-success {
    color: #1e8a4f;
}

.dns-scanner-form-message.is-info {
    color: #3858ca;
}

.dns-scanner-progress-shell {
    margin-top: 0.2rem;
    display: grid;
    gap: 0.42rem;
}

.dns-scanner-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.dns-scanner-progress-label {
    font-weight: 600;
    color: var(--text-color);
}

.dns-scanner-progress-elapsed {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dns-scanner-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(73, 123, 252, 0.18);
    overflow: hidden;
}

.dns-scanner-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3d70f5 0%, #6e66f6 100%);
    transition: width 0.28s ease;
}

.dns-scanner-results {
    margin-top: 1rem;
    display: grid;
    gap: 1.1rem;
}

.dns-scanner-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.dns-scanner-summary-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.22);
    background: rgba(255, 255, 255, 0.84);
    padding: 0.88rem 1rem;
}

.dns-scanner-summary-note {
    grid-column: 1 / -1;
}

.dns-scanner-summary-label {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dns-scanner-summary-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.dns-scanner-summary-card.is-found .dns-scanner-summary-value {
    color: #1c8a4a;
}

.dns-scanner-summary-card.is-empty .dns-scanner-summary-value {
    color: #9a6321;
}

.dns-scanner-summary-card.is-error .dns-scanner-summary-value {
    color: #b63838;
}

.dns-scanner-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.dns-scanner-result-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.18);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.9rem 1rem;
    overflow: hidden;
}

.dns-scanner-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.dns-scanner-result-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.dns-scanner-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.dns-scanner-status-badge.is-found {
    color: #227546;
    border-color: rgba(70, 172, 104, 0.34);
    background: rgba(70, 172, 104, 0.14);
}

.dns-scanner-status-badge.is-empty {
    color: #9a6321;
    border-color: rgba(233, 167, 88, 0.4);
    background: rgba(233, 167, 88, 0.16);
}

.dns-scanner-status-badge.is-error {
    color: #b63838;
    border-color: rgba(214, 76, 76, 0.35);
    background: rgba(214, 76, 76, 0.12);
}

.dns-scanner-result-copy {
    margin: 0 0 0.55rem;
    color: var(--text-color);
}

.dns-scanner-query {
    margin: 0 0 0.55rem;
    color: var(--text-color);
}

.dns-scanner-query code {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    background: rgba(37, 55, 120, 0.08);
    border-radius: 8px;
    padding: 0.2rem 0.35rem;
}

.dns-scanner-record-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.42rem;
}

.dns-scanner-record-list li {
    margin: 0;
}

.dns-scanner-record-list code {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    background: rgba(37, 55, 120, 0.08);
    border-radius: 8px;
    padding: 0.2rem 0.35rem;
    display: inline-block;
}

.dns-scanner-empty-note {
    margin: 0;
    color: var(--text-muted);
}

.dns-scanner-error-note {
    margin: 0 0 0.55rem;
    color: #a45f1c;
}

.dns-scanner-notice-note {
    margin: 0 0 0.55rem;
    color: #3858ca;
}

[data-theme="dark"] .dns-scanner-input,
[data-theme="dark"] .dns-scanner-select {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

[data-theme="dark"] .dns-scanner-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

[data-theme="dark"] .dns-scanner-type-pill {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.58);
    color: #cbd5e1;
}

[data-theme="dark"] .dns-scanner-type-pill:hover {
    border-color: rgba(96, 165, 250, 0.62);
    background: rgba(37, 99, 235, 0.22);
}

[data-theme="dark"] .dns-scanner-type-pill.is-active {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.65);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(139, 92, 246, 0.9));
}

[data-theme="dark"] .dns-scanner-type-note {
    color: #93c5fd;
}

[data-theme="dark"] .dns-scanner-progress-label {
    color: #ecf2ff;
}

[data-theme="dark"] .dns-scanner-progress-elapsed {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .dns-scanner-progress-track {
    background: rgba(123, 164, 255, 0.2);
}

[data-theme="dark"] .dns-scanner-summary-card,
[data-theme="dark"] .dns-scanner-result-card {
    background: rgba(12, 21, 43, 0.82);
    border-color: rgba(123, 164, 255, 0.24);
}

[data-theme="dark"] .dns-scanner-summary-value,
[data-theme="dark"] .dns-scanner-result-copy,
[data-theme="dark"] .dns-scanner-query {
    color: #ecf2ff;
}

[data-theme="dark"] .dns-scanner-summary-label,
[data-theme="dark"] .dns-scanner-empty-note {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .dns-scanner-notice-note {
    color: #93c5fd;
}

[data-theme="dark"] .dns-scanner-query code,
[data-theme="dark"] .dns-scanner-record-list code {
    background: rgba(123, 164, 255, 0.15);
}

@media (max-width: 1024px) {
    .dns-scanner-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dns-scanner-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .dns-scanner-form-grid {
        grid-template-columns: 1fr;
    }

    .dns-scanner-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 680px) {
    .dns-scanner-shell {
        padding: 1.15rem;
    }

    .dns-scanner-summary-grid {
        grid-template-columns: 1fr;
    }

    .dns-scanner-type-pills {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding-bottom: 0.2rem;
        -webkit-overflow-scrolling: touch;
    }

    .dns-scanner-type-pill {
        flex: 0 0 auto;
    }
}

/* MTA-STS Checker Tool */
.mta-sts-tool-shell {
    padding: clamp(1.25rem, 2vw, 2.2rem);
}

.mta-sts-tool-title {
    margin: 0;
    font-size: clamp(1.85rem, 2.8vw, 2.8rem);
}

.mta-sts-tool-subtitle {
    margin: 0.75rem 0 1.4rem;
    max-width: 980px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.mta-sts-tool-form,
.mta-sts-generator-form {
    display: grid;
    gap: 1rem;
}

.mta-sts-tool-shell [hidden] {
    display: none !important;
}

.mta-sts-field {
    display: grid;
    gap: 0.45rem;
}

.mta-sts-field label {
    font-weight: 600;
}

.mta-sts-input,
.mta-sts-select,
.mta-sts-textarea {
    width: 100%;
    border: 2px solid rgba(59, 130, 246, 0.45);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 10px;
    padding: 0.78rem 0.85rem;
    color: var(--text-color);
    font: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.mta-sts-input:focus,
.mta-sts-select:focus,
.mta-sts-textarea:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.mta-sts-textarea {
    min-height: 120px;
    resize: vertical;
}

.mta-sts-inline-help {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mta-sts-inline-help code {
    background: rgba(37, 55, 120, 0.08);
    border-radius: 6px;
    padding: 0.08rem 0.35rem;
    word-break: break-word;
}

.mta-sts-actions {
    display: flex;
    justify-content: flex-start;
}

.mta-sts-form-message {
    margin: 0.35rem 0 0;
    min-height: 1.2rem;
    font-weight: 500;
}

.mta-sts-form-message.is-error {
    color: #c03232;
}

.mta-sts-form-message.is-success {
    color: #1e8a4f;
}

.mta-sts-form-message.is-info {
    color: #3858ca;
}

.mta-sts-progress-shell {
    margin-top: 0.2rem;
    display: grid;
    gap: 0.42rem;
}

.mta-sts-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.mta-sts-progress-label {
    font-weight: 600;
    color: var(--text-color);
}

.mta-sts-progress-elapsed {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mta-sts-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(73, 123, 252, 0.18);
    overflow: hidden;
}

.mta-sts-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3d70f5 0%, #6e66f6 100%);
    transition: width 0.28s ease;
}

.mta-sts-results {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.mta-sts-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.mta-sts-summary-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.22);
    background: rgba(255, 255, 255, 0.84);
    padding: 0.88rem 1rem;
}

.mta-sts-summary-label {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mta-sts-summary-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.mta-sts-summary-card.is-pass .mta-sts-summary-value {
    color: #1c8a4a;
}

.mta-sts-summary-card.is-warn .mta-sts-summary-value {
    color: #9a6321;
}

.mta-sts-summary-card.is-fail .mta-sts-summary-value {
    color: #b63838;
}

.mta-sts-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.mta-sts-check-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.18);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.95rem 1rem;
    overflow: hidden;
}

.mta-sts-check-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.mta-sts-check-head h3 {
    margin: 0;
    font-size: 1.06rem;
}

.mta-sts-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.mta-sts-status-badge.is-pass {
    color: #227546;
    border-color: rgba(70, 172, 104, 0.34);
    background: rgba(70, 172, 104, 0.14);
}

.mta-sts-status-badge.is-warn {
    color: #9a6321;
    border-color: rgba(233, 167, 88, 0.4);
    background: rgba(233, 167, 88, 0.16);
}

.mta-sts-status-badge.is-fail {
    color: #b63838;
    border-color: rgba(214, 76, 76, 0.35);
    background: rgba(214, 76, 76, 0.12);
}

.mta-sts-status-badge.is-unknown {
    color: #3858ca;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.14);
}

.mta-sts-check-summary,
.mta-sts-check-guidance {
    margin: 0 0 0.45rem;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.mta-sts-check-guidance {
    color: var(--text-muted);
}

.mta-sts-check-detail-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.35rem;
}

.mta-sts-check-detail-list li {
    margin: 0;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.mta-sts-check-detail-list code {
    background: rgba(37, 55, 120, 0.08);
    border-radius: 8px;
    padding: 0.12rem 0.35rem;
    font-size: 0.78rem;
    word-break: break-all;
}

.mta-sts-generator-shell {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.22);
    background: rgba(255, 255, 255, 0.86);
    padding: 1rem 1rem 1.1rem;
}

.mta-sts-generator-shell h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.mta-sts-generator-shell p {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
}

.mta-sts-generator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.mta-sts-generated {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.8rem;
}

.mta-sts-generated-card {
    border-radius: 14px;
    border: 1px solid rgba(73, 123, 252, 0.2);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.88rem 0.95rem;
    overflow: hidden;
}

.mta-sts-generated-card h4 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.mta-sts-generated-card p {
    margin: 0.25rem 0;
    color: var(--text-color);
}

.mta-sts-generated-card code {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.mta-sts-code-block {
    margin: 0.45rem 0 0;
    background: rgba(37, 55, 120, 0.08);
    border: 1px solid rgba(73, 123, 252, 0.22);
    border-radius: 12px;
    padding: 0.75rem;
    overflow-x: auto;
    max-width: 100%;
}

.mta-sts-code-block code {
    font-size: 0.83rem;
    color: var(--text-color);
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
}

.mta-sts-generated-list {
    margin: 0.65rem 0 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.35rem;
}

.mta-sts-generated-list li {
    margin: 0;
}

[data-theme="dark"] .mta-sts-input,
[data-theme="dark"] .mta-sts-select,
[data-theme="dark"] .mta-sts-textarea {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

[data-theme="dark"] .mta-sts-input::placeholder,
[data-theme="dark"] .mta-sts-textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

[data-theme="dark"] .mta-sts-inline-help {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .mta-sts-inline-help code,
[data-theme="dark"] .mta-sts-check-detail-list code,
[data-theme="dark"] .mta-sts-code-block {
    background: rgba(123, 164, 255, 0.15);
}

[data-theme="dark"] .mta-sts-progress-label {
    color: #ecf2ff;
}

[data-theme="dark"] .mta-sts-progress-elapsed {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .mta-sts-progress-track {
    background: rgba(123, 164, 255, 0.2);
}

[data-theme="dark"] .mta-sts-summary-card,
[data-theme="dark"] .mta-sts-check-card,
[data-theme="dark"] .mta-sts-generator-shell,
[data-theme="dark"] .mta-sts-generated-card {
    background: rgba(12, 21, 43, 0.82);
    border-color: rgba(123, 164, 255, 0.24);
}

[data-theme="dark"] .mta-sts-summary-value,
[data-theme="dark"] .mta-sts-check-summary,
[data-theme="dark"] .mta-sts-check-detail-list li,
[data-theme="dark"] .mta-sts-generated-card p,
[data-theme="dark"] .mta-sts-code-block code {
    color: #ecf2ff;
}

[data-theme="dark"] .mta-sts-summary-label,
[data-theme="dark"] .mta-sts-check-guidance,
[data-theme="dark"] .mta-sts-generator-shell p {
    color: rgba(228, 237, 255, 0.74);
}

@media (max-width: 1024px) {
    .mta-sts-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mta-sts-check-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .mta-sts-generator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .mta-sts-tool-shell {
        padding: 1.15rem;
    }

    .mta-sts-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Email Header Analyzer Tool */
.header-analyzer-shell {
    padding: clamp(1.25rem, 2vw, 2.2rem);
}

.header-analyzer-title {
    margin: 0;
    font-size: clamp(1.85rem, 2.8vw, 2.8rem);
}

.header-analyzer-subtitle {
    margin: 0.75rem 0 1.4rem;
    max-width: 980px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.header-analyzer-shell [hidden] {
    display: none !important;
}

.header-analyzer-form {
    display: grid;
    gap: 1rem;
}

.header-analyzer-field {
    display: grid;
    gap: 0.45rem;
}

.header-analyzer-field label {
    font-weight: 600;
}

.header-analyzer-textarea,
.header-analyzer-file {
    width: 100%;
    border: 2px solid rgba(59, 130, 246, 0.45);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 10px;
    padding: 0.78rem 0.85rem;
    color: var(--text-color);
    font: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.header-analyzer-textarea {
    min-height: 210px;
    resize: vertical;
}

.header-analyzer-textarea:focus,
.header-analyzer-file:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.header-analyzer-inline-help {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-analyzer-actions {
    display: flex;
    justify-content: flex-start;
}

.header-analyzer-form-message {
    margin: 0.35rem 0 0;
    font-weight: 500;
    min-height: 1.2rem;
}

.header-analyzer-form-message.is-error {
    color: #c03232;
}

.header-analyzer-form-message.is-success {
    color: #1e8a4f;
}

.header-analyzer-form-message.is-info {
    color: #3858ca;
}

.header-analyzer-progress-shell {
    margin-top: 0.2rem;
    display: grid;
    gap: 0.42rem;
}

.header-analyzer-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.header-analyzer-progress-label {
    font-weight: 600;
    color: var(--text-color);
}

.header-analyzer-progress-elapsed {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-analyzer-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(73, 123, 252, 0.18);
    overflow: hidden;
}

.header-analyzer-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3d70f5 0%, #6e66f6 100%);
    transition: width 0.28s ease;
}

.header-analyzer-results {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.header-analyzer-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.header-analyzer-summary-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.22);
    background: rgba(255, 255, 255, 0.84);
    padding: 0.88rem 1rem;
}

.header-analyzer-summary-label {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.header-analyzer-summary-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.header-analyzer-summary-card.is-pass .header-analyzer-summary-value {
    color: #1c8a4a;
}

.header-analyzer-summary-card.is-warn .header-analyzer-summary-value {
    color: #9a6321;
}

.header-analyzer-summary-card.is-fail .header-analyzer-summary-value {
    color: #b63838;
}

.header-analyzer-findings-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.18);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.95rem 1rem;
}

.header-analyzer-findings-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.08rem;
}

.header-analyzer-findings-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.header-analyzer-finding {
    border: 1px solid rgba(73, 123, 252, 0.15);
    border-radius: 12px;
    padding: 0.68rem 0.75rem;
    background: rgba(248, 250, 255, 0.7);
}

.header-analyzer-finding p {
    margin: 0.35rem 0 0;
}

.header-analyzer-finding-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.header-analyzer-severity {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.52rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.header-analyzer-severity.severity-high {
    color: #b63838;
    border-color: rgba(214, 76, 76, 0.35);
    background: rgba(214, 76, 76, 0.12);
}

.header-analyzer-severity.severity-medium {
    color: #9a6321;
    border-color: rgba(233, 167, 88, 0.4);
    background: rgba(233, 167, 88, 0.16);
}

.header-analyzer-severity.severity-low {
    color: #227546;
    border-color: rgba(70, 172, 104, 0.34);
    background: rgba(70, 172, 104, 0.14);
}

.header-analyzer-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.header-analyzer-section-card {
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.18);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.9rem 1rem;
    overflow: hidden;
}

.header-analyzer-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.header-analyzer-section-head h3 {
    margin: 0;
    font-size: 1.06rem;
}

.header-analyzer-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-analyzer-status-badge.is-pass {
    color: #227546;
    border-color: rgba(70, 172, 104, 0.34);
    background: rgba(70, 172, 104, 0.14);
}

.header-analyzer-status-badge.is-warn {
    color: #9a6321;
    border-color: rgba(233, 167, 88, 0.4);
    background: rgba(233, 167, 88, 0.16);
}

.header-analyzer-status-badge.is-fail {
    color: #b63838;
    border-color: rgba(214, 76, 76, 0.35);
    background: rgba(214, 76, 76, 0.12);
}

.header-analyzer-status-badge.is-unknown {
    color: #42516f;
    border-color: rgba(100, 116, 139, 0.35);
    background: rgba(100, 116, 139, 0.12);
}

.header-analyzer-section-summary {
    margin: 0 0 0.55rem;
    color: var(--text-color);
}

.header-analyzer-preview-btn {
    margin: 0 0 0.6rem;
}

.header-analyzer-action-list,
.header-analyzer-detail-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.42rem;
}

.header-analyzer-action-list li,
.header-analyzer-detail-list li {
    margin: 0;
}

.header-analyzer-detail-list code {
    display: inline-block;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 100%;
    font-size: 0.78rem;
    background: rgba(37, 55, 120, 0.08);
    border-radius: 8px;
    padding: 0.2rem 0.35rem;
}

.header-analyzer-empty {
    margin: 0;
    color: var(--text-muted);
}

body.header-analyzer-modal-open {
    overflow: hidden;
}

.header-analyzer-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.header-analyzer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 38, 0.5);
}

.header-analyzer-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(73, 123, 252, 0.24);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.24);
    padding: 1.05rem 1rem 1rem;
}

.header-analyzer-modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.header-analyzer-modal-dialog h3 {
    margin: 0 0 0.85rem;
    font-size: 1.22rem;
}

.header-analyzer-preview-email-card {
    border: 1px solid rgba(73, 123, 252, 0.2);
    border-radius: 14px;
    background: rgba(248, 250, 255, 0.9);
    padding: 0.88rem 0.95rem;
    display: grid;
    gap: 0.55rem;
}

.header-analyzer-preview-row {
    display: grid;
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
    gap: 0.65rem;
}

.header-analyzer-preview-row span,
.header-analyzer-preview-subject span {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.header-analyzer-preview-row strong {
    color: var(--text-color);
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 600;
}

.header-analyzer-preview-subject {
    border-top: 1px solid rgba(73, 123, 252, 0.16);
    margin-top: 0.2rem;
    padding-top: 0.6rem;
}

.header-analyzer-preview-subject p {
    margin: 0.35rem 0 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

.header-analyzer-preview-body-note {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

[data-theme="dark"] .header-analyzer-textarea,
[data-theme="dark"] .header-analyzer-file {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

[data-theme="dark"] .header-analyzer-textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

[data-theme="dark"] .header-analyzer-progress-label {
    color: #ecf2ff;
}

[data-theme="dark"] .header-analyzer-progress-elapsed {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .header-analyzer-progress-track {
    background: rgba(123, 164, 255, 0.2);
}

[data-theme="dark"] .header-analyzer-summary-card,
[data-theme="dark"] .header-analyzer-findings-card,
[data-theme="dark"] .header-analyzer-finding,
[data-theme="dark"] .header-analyzer-section-card {
    background: rgba(12, 21, 43, 0.82);
    border-color: rgba(123, 164, 255, 0.24);
}

[data-theme="dark"] .header-analyzer-summary-value,
[data-theme="dark"] .header-analyzer-section-summary,
[data-theme="dark"] .header-analyzer-action-list li,
[data-theme="dark"] .header-analyzer-detail-list li,
[data-theme="dark"] .header-analyzer-findings-card h3,
[data-theme="dark"] .header-analyzer-finding p,
[data-theme="dark"] .header-analyzer-finding strong,
[data-theme="dark"] .header-analyzer-section-head h3 {
    color: #ecf2ff;
}

[data-theme="dark"] .header-analyzer-summary-label,
[data-theme="dark"] .header-analyzer-inline-help,
[data-theme="dark"] .header-analyzer-empty {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .header-analyzer-detail-list code {
    background: rgba(123, 164, 255, 0.15);
}

[data-theme="dark"] .header-analyzer-modal-backdrop {
    background: rgba(2, 6, 23, 0.72);
}

[data-theme="dark"] .header-analyzer-modal-dialog {
    background: rgba(12, 21, 43, 0.96);
    border-color: rgba(123, 164, 255, 0.3);
}

[data-theme="dark"] .header-analyzer-modal-close {
    color: #d6e4ff;
}

[data-theme="dark"] .header-analyzer-modal-dialog h3,
[data-theme="dark"] .header-analyzer-preview-row strong,
[data-theme="dark"] .header-analyzer-preview-subject p {
    color: #ecf2ff;
}

[data-theme="dark"] .header-analyzer-preview-email-card {
    background: rgba(10, 18, 35, 0.9);
    border-color: rgba(123, 164, 255, 0.24);
}

[data-theme="dark"] .header-analyzer-preview-row span,
[data-theme="dark"] .header-analyzer-preview-subject span,
[data-theme="dark"] .header-analyzer-preview-body-note {
    color: rgba(228, 237, 255, 0.74);
}

[data-theme="dark"] .header-analyzer-preview-subject {
    border-top-color: rgba(123, 164, 255, 0.24);
}

@media (max-width: 1024px) {
    .header-analyzer-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-analyzer-sections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .header-analyzer-shell {
        padding: 1.15rem;
    }

    .header-analyzer-summary-grid {
        grid-template-columns: 1fr;
    }

    .header-analyzer-actions {
        justify-content: flex-start;
    }

    .header-analyzer-modal-dialog {
        padding: 0.95rem 0.85rem 0.85rem;
    }

    .header-analyzer-preview-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* ──────────────────────────────────────────────────────────
   Blog Journal (/blog/)
────────────────────────────────────────────────────────── */
.blog-journal-page {
    padding-bottom: 5rem;
}

.blog-journal-hero {
    padding: 150px 0 2rem;
}

.blog-journal-hero__inner {
    max-width: 760px;
}

.blog-journal-hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.blog-journal-hero__title {
    font-size: clamp(3rem, 6vw, 4.7rem);
    margin-bottom: 1rem;
    line-height: 1.06;
    padding-bottom: 0.06em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-journal-hero__subtitle {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.blog-journal-section {
    margin-bottom: 2.2rem;
}

.blog-journal-featured-card {
    padding: 0;
    overflow: hidden;
    border-radius: 1.6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.blog-journal-featured-card__media {
    position: relative;
    display: block;
    min-height: 100%;
    background: #dfe8ff;
}

.blog-journal-featured-card__tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.36rem 0.75rem;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.blog-journal-featured-card__media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-journal-featured-card__content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.blog-journal-featured-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.blog-journal-featured-card__meta span + span::before {
    content: '\2022';
    margin-right: 0.7rem;
    opacity: 0.65;
}

.blog-journal-featured-card__content h2 {
    font-size: clamp(2rem, 3.1vw, 3rem);
    margin: 0;
    line-height: 1.15;
}

.blog-journal-featured-card__content h2 a {
    color: var(--text-color);
}

.blog-journal-featured-card__excerpt {
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.8;
    margin: 0;
}

.blog-journal-featured-card__footer {
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-journal-author {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-journal-author__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
}

.blog-journal-author strong {
    display: block;
    color: var(--text-color);
    font-size: 0.92rem;
    line-height: 1.2;
}

.blog-journal-author span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

.blog-journal-readmore {
    min-width: 132px;
}

.blog-journal-main {
    margin-top: 0.2rem;
}

.blog-journal-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.blog-journal-sidebar {
    padding: 1rem;
    border-radius: 1.1rem;
    position: sticky;
    top: 8.3rem;
    max-height: calc(100vh - 9rem);
    overflow: auto;
}

.blog-journal-sidebar-controls {
    display: grid;
    gap: 0.82rem;
}

.blog-journal-sidebar-field {
    display: grid;
    gap: 0.35rem;
}

.blog-journal-sidebar-field > span {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.blog-journal-sidebar .blog-journal-search {
    min-width: 0;
    width: 100%;
    border-radius: 0.95rem;
}

.blog-journal-sidebar .blog-journal-search input {
    padding: 0.68rem 2.2rem 0.68rem 0.92rem;
}

.blog-journal-sidebar .blog-journal-sort {
    border-radius: 0.95rem;
}

.blog-journal-sidebar .blog-journal-sort select {
    width: 100%;
    padding: 0.68rem 1.95rem 0.68rem 0.88rem;
}

.blog-journal-sidebar-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.95rem;
}

.blog-journal-sidebar-clear {
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-journal-sidebar-clear:hover {
    color: var(--primary);
}

.blog-journal-sidebar-categories {
    margin-top: 0.78rem;
    display: grid;
    gap: 0.64rem;
}

.blog-journal-category-group {
    border: 1px solid rgba(109, 132, 245, 0.24);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.52);
    overflow: hidden;
}

.blog-journal-category-group summary {
    list-style: none;
    cursor: pointer;
    padding: 0.72rem 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.blog-journal-category-group summary::-webkit-details-marker {
    display: none;
}

.blog-journal-category-group summary::after {
    content: '+';
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text-muted);
}

.blog-journal-category-group[open] summary::after {
    content: '\2212';
}

.blog-journal-filter-group__content {
    display: grid;
    gap: 0.45rem;
    padding: 0 0.6rem 0.68rem;
}

.blog-journal-category-list {
    display: grid;
    gap: 0.38rem;
    padding: 0 0.6rem 0.68rem;
    max-height: 220px;
    overflow: auto;
}

.blog-journal-category-link {
    display: block;
    padding: 0.42rem 0.55rem;
    border-radius: 0.58rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.blog-journal-category-link:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.blog-journal-category-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.blog-journal-content {
    min-width: 0;
}

.blog-journal-results-meta {
    margin: 0.25rem 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-journal-toolbar {
    padding: 1.15rem;
    border-radius: 1.15rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.blog-journal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.blog-journal-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(109, 132, 245, 0.28);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.blog-journal-filter-pill:hover {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.5);
}

.blog-journal-filter-pill.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}

.blog-journal-toolbar-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.blog-journal-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(109, 132, 245, 0.28);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    overflow: hidden;
    min-width: min(40vw, 280px);
}

.blog-journal-search input {
    border: 0;
    outline: none;
    background: transparent;
    padding: 0.58rem 2.2rem 0.58rem 0.95rem;
    font-size: 0.92rem;
    color: var(--text-color);
    width: 100%;
}

.blog-journal-search button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.blog-journal-sort {
    border: 1px solid rgba(109, 132, 245, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    overflow: hidden;
}

.blog-journal-sort select {
    border: 0;
    outline: none;
    background: transparent;
    padding: 0.58rem 1.9rem 0.58rem 0.9rem;
    font-size: 0.92rem;
    color: var(--text-color);
    cursor: pointer;
}

.blog-journal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.blog-journal-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.blog-journal-card__media {
    position: relative;
    display: block;
    background: #e2e8f9;
}

.blog-journal-card__media img {
    width: 100%;
    height: 208px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-journal-card__label {
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
    background: rgba(245, 248, 255, 0.93);
    border: 1px solid rgba(109, 132, 245, 0.24);
}

.blog-journal-card__content {
    padding: 1.15rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 100%;
}

.blog-journal-card__date {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.blog-journal-card__content h3 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin: 0;
}

.blog-journal-card__content h3 a {
    color: var(--text-color);
}

.blog-journal-card__excerpt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.blog-journal-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.blog-journal-card__link {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
}

.blog-journal-card__link::after {
    content: ' \2192';
}

.blog-journal-empty {
    margin: 0;
    padding: 1.1rem 1.25rem;
    border-radius: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(109, 132, 245, 0.2);
}

.blog-journal-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.blog-journal-pagination__item a,
.blog-journal-pagination__item span {
    min-width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(109, 132, 245, 0.28);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-muted);
}

.blog-journal-pagination__item a:hover {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.5);
}

.blog-journal-pagination__item.is-current .current,
.blog-journal-pagination__item.is-current span.current {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.blog-journal-pagination__item.is-nav a,
.blog-journal-pagination__item.is-nav span {
    font-size: 1.1rem;
    line-height: 1;
}

[data-theme="dark"] .blog-journal-filter-pill,
[data-theme="dark"] .blog-journal-search,
[data-theme="dark"] .blog-journal-sort,
[data-theme="dark"] .blog-journal-category-group,
[data-theme="dark"] .blog-journal-empty,
[data-theme="dark"] .blog-journal-pagination__item a,
[data-theme="dark"] .blog-journal-pagination__item span {
    background: rgba(12, 21, 43, 0.82);
    border-color: rgba(123, 164, 255, 0.28);
    color: rgba(228, 237, 255, 0.86);
}

[data-theme="dark"] .blog-journal-filter-pill:hover,
[data-theme="dark"] .blog-journal-card__link,
[data-theme="dark"] .blog-journal-search button,
[data-theme="dark"] .blog-journal-sidebar-clear,
[data-theme="dark"] .blog-journal-featured-card__meta,
[data-theme="dark"] .blog-journal-card__date,
[data-theme="dark"] .blog-journal-card__footer {
    color: #a9c4ff;
}

[data-theme="dark"] .blog-journal-filter-pill.is-active,
[data-theme="dark"] .blog-journal-pagination__item.is-current .current,
[data-theme="dark"] .blog-journal-pagination__item.is-current span.current {
    color: #fff;
    border-color: transparent;
}

[data-theme="dark"] .blog-journal-card,
[data-theme="dark"] .blog-journal-featured-card,
[data-theme="dark"] .blog-journal-sidebar,
[data-theme="dark"] .blog-journal-toolbar {
    background: rgba(12, 21, 43, 0.88);
    border-color: rgba(123, 164, 255, 0.2);
}

[data-theme="dark"] .blog-journal-category-group summary {
    color: #ecf2ff;
}

[data-theme="dark"] .blog-journal-category-group summary::after {
    color: #a9c4ff;
}

[data-theme="dark"] .blog-journal-category-link {
    color: rgba(228, 237, 255, 0.8);
}

[data-theme="dark"] .blog-journal-category-link:hover {
    background: rgba(59, 130, 246, 0.22);
    color: #d7e6ff;
}

[data-theme="dark"] .blog-journal-sidebar-field > span,
[data-theme="dark"] .blog-journal-results-meta {
    color: rgba(208, 225, 255, 0.76);
}

[data-theme="dark"] .blog-journal-card__content h3 a,
[data-theme="dark"] .blog-journal-featured-card__content h2 a,
[data-theme="dark"] .blog-journal-author strong {
    color: #ecf2ff;
}

[data-theme="dark"] .blog-journal-card__excerpt,
[data-theme="dark"] .blog-journal-featured-card__excerpt,
[data-theme="dark"] .blog-journal-author span,
[data-theme="dark"] .blog-journal-hero__subtitle {
    color: rgba(228, 237, 255, 0.78);
}

[data-theme="dark"] .blog-journal-card__label,
[data-theme="dark"] .blog-journal-featured-card__tag {
    border-color: rgba(123, 164, 255, 0.36);
}

@media (max-width: 1180px) {
    .blog-journal-featured-card {
        grid-template-columns: 0.95fr 1fr;
    }

    .blog-journal-layout {
        grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    }

    .blog-journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .blog-journal-hero {
        padding-top: 136px;
    }

    .blog-journal-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-journal-featured-card__media img {
        min-height: 280px;
        max-height: 340px;
    }

    .blog-journal-layout {
        grid-template-columns: 1fr;
    }

    .blog-journal-sidebar {
        position: static;
        top: auto;
        max-height: none;
    }

    .blog-journal-toolbar {
        grid-template-columns: 1fr;
    }

    .blog-journal-toolbar-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .blog-journal-search {
        min-width: 0;
        flex: 1 1 220px;
    }

    .blog-journal-sort {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .blog-journal-page {
        padding-bottom: 4rem;
    }

    .blog-journal-hero {
        padding-top: 128px;
    }

    .blog-journal-featured-card__content {
        padding: 1.35rem 1.15rem;
    }

    .blog-journal-featured-card__content h2 {
        font-size: 1.7rem;
    }

    .blog-journal-grid {
        grid-template-columns: 1fr;
    }

    .blog-journal-card__content h3 {
        font-size: 1.28rem;
    }

    .blog-journal-featured-card__footer {
        align-items: flex-start;
    }

    .blog-journal-readmore {
        min-width: 0;
    }
}

/* ──────────────────────────────────────────────────────────
   Blog Article Template (/blog/*)
────────────────────────────────────────────────────────── */
.blog-article-page {
    padding-bottom: 5rem;
}

.blog-article-shell {
    overflow: visible;
}

.blog-article-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1200;
    background: rgba(148, 163, 184, 0.2);
    pointer-events: none;
}

.blog-article-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.5);
    transition: width 0.1s linear;
}

.blog-article-hero {
    padding: 150px 0 2.5rem;
}

.blog-article-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 0.35rem 0.82rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.blog-article-title {
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(2.15rem, 4.4vw, 4.45rem);
    line-height: 1.05;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-article-meta {
    margin: 1rem auto 0;
    max-width: 940px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.blog-article-meta span + span::before {
    content: '\2022';
    opacity: 0.55;
    margin-right: 0.42rem;
}

.blog-article-meta__author img {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(109, 132, 245, 0.3);
}

.blog-article-meta__author strong {
    font-weight: 600;
    color: var(--text-color);
}

.blog-article-share {
    margin: 0.95rem auto 0;
    max-width: 940px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.blog-article-share__label {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.blog-article-share__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-article-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(109, 132, 245, 0.28);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1;
}

.blog-article-share__link:hover {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.45);
}

.blog-article-hero-media {
    margin-top: 1.7rem;
    overflow: hidden;
    padding: 0;
    border-radius: 1.6rem;
}

.blog-article-hero-media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 8.1;
    object-fit: cover;
    object-position: center;
}

.blog-article-content-wrap {
    margin-bottom: 3.6rem;
}

.blog-article-content-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.blog-article-content-wrap.no-toc .blog-article-content-grid {
    grid-template-columns: minmax(0, 1fr);
}

.blog-article-sidebar {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 0.95rem;
    min-width: 0;
}

.blog-article-toc-card {
    padding: 1.05rem;
    min-width: 0;
    overflow: hidden;
}

.blog-article-toc-card h2 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.blog-article-toc-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.52rem;
    min-width: 0;
    max-width: 100%;
}

.blog-article-toc-card li {
    margin: 0;
    display: block;
    min-width: 0;
    max-width: 100%;
}

.blog-article-toc-card li.is-level-3 {
    padding-left: 0.92rem;
}

.blog-article-toc-card a {
    display: block;
    width: 100%;
    max-width: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-article-toc-card a:hover {
    color: var(--primary);
}

.blog-article-pdf-card,
.blog-article-pdf-inline {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.blog-article-pdf-card p,
.blog-article-pdf-inline p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.blog-article-pdf-card .btn,
.blog-article-pdf-inline .btn {
    width: fit-content;
    min-width: 0;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
}

.blog-article-main {
    min-width: 0;
}

.blog-article-content {
    min-width: 0;
    color: var(--text-color);
}

.blog-article-content>*:first-child {
    margin-top: 0;
}

.blog-article-content>*:last-child {
    margin-bottom: 0;
}

.blog-article-content p,
.blog-article-content li {
    color: var(--text-color);
    font-size: 1.04rem;
    line-height: 1.78;
}

.blog-article-content p {
    margin: 0 0 1.15rem;
}

.blog-article-content p:last-child {
    margin-bottom: 0;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    margin-top: 2.2rem;
    margin-bottom: 0.95rem;
    line-height: 1.25;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    scroll-margin-top: 120px;
}

.blog-article-content h2:first-child,
.blog-article-content h3:first-child,
.blog-article-content h4:first-child {
    margin-top: 0;
}

.blog-article-content h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.blog-article-content h3 {
    font-size: clamp(1.22rem, 1.7vw, 1.6rem);
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 1.2rem;
}

.blog-article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.blog-article-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 120px;
}

.blog-article-engagement {
    margin-top: 1.8rem;
    padding: 1.2rem;
    border-radius: 1rem;
}

.blog-article-engagement h2 {
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.blog-article-engagement p {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.blog-article-engagement__actions {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.blog-article-engagement__btn {
    appearance: none;
    border: 1px solid rgba(109, 132, 245, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.86rem;
    line-height: 1;
    padding: 0.5rem 0.88rem;
    cursor: pointer;
}

.blog-article-engagement__btn:hover {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.48);
}

.blog-article-engagement__btn.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.blog-article-engagement__btn:disabled {
    opacity: 0.88;
    cursor: default;
}

.blog-article-engagement__status {
    min-height: 1.25rem;
    margin-top: 0.62rem;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.blog-article-content pre,
.blog-article-content code,
.blog-article-content table,
.blog-article-content blockquote {
    max-width: 100%;
    overflow-x: auto;
}

.blog-article-inline-cta {
    margin-top: 2.2rem;
    padding: 1.55rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #1f3f93 0%, #372776 100%);
    border-color: rgba(130, 145, 255, 0.36);
}

.blog-article-inline-cta h2,
.blog-article-inline-cta p {
    color: #fff;
}

.blog-article-inline-cta h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.blog-article-inline-cta p {
    margin: 0.62rem 0 1rem;
    font-size: 0.98rem;
    line-height: 1.72;
    max-width: 680px;
}

.blog-article-inline-cta .btn {
    min-width: 0;
}

.blog-article-comments {
    margin-top: 2rem;
    scroll-margin-top: 120px;
}

.blog-article-comments h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 2.1vw, 1.9rem);
}

.blog-article-comments .comments-area {
    border: 1px solid rgba(109, 132, 245, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    padding: 1.1rem;
}

.blog-article-comments .comment-list,
.blog-article-comments .commentlist {
    margin: 0 0 1rem;
    padding-left: 1.05rem;
}

.blog-article-comments .comment-list li,
.blog-article-comments .commentlist li {
    margin: 0 0 0.85rem;
}

.blog-article-comments .avatar,
.blog-article-comments .comment-author img,
.blog-article-comments .comment-author .avatar {
    display: none !important;
}

.blog-article-comments .comment-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.blog-article-comments .comment-reply-title {
    margin: 0 0 0.7rem;
    font-size: 1.15rem;
    font-weight: 400;
}

.blog-article-comments .comment-form {
    margin-top: 0.65rem;
}

.blog-article-comments .comment-form p {
    margin: 0 0 0.78rem;
}

.blog-article-comments .comment-form .comment-form-comment {
    margin-bottom: 0.4rem;
}

.blog-article-comments .comment-form .form-submit {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.blog-article-comments .comment-form input[type="text"],
.blog-article-comments .comment-form input[type="email"],
.blog-article-comments .comment-form input[type="url"],
.blog-article-comments .comment-form textarea {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid rgba(109, 132, 245, 0.28);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    padding: 0.65rem 0.75rem;
}

.blog-article-comments .comment-form input[type="submit"] {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    cursor: pointer;
}

.blog-article-comments-note {
    margin: 0;
    color: var(--text-muted);
}

.blog-article-related {
    padding: 2rem 0 0;
}

.blog-article-related-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-article-related-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}

.blog-article-related-head a {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.blog-article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.blog-article-related-card {
    padding: 0;
    overflow: hidden;
}

.blog-article-related-card__media {
    display: block;
    position: relative;
}

.blog-article-related-card__media img {
    width: 100%;
    height: 208px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-article-related-card__tag {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(109, 132, 245, 0.3);
    background: rgba(245, 248, 255, 0.95);
    color: var(--primary);
    font-size: 0.66rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.58rem;
}

.blog-article-related-card__content {
    display: grid;
    gap: 0.72rem;
    padding: 1rem;
}

.blog-article-related-card__date {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.blog-article-related-card__content h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.28;
}

.blog-article-related-card__content h3 a {
    color: var(--text-color);
}

.blog-article-related-card__content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.blog-article-related-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.blog-article-related-card__footer a {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.blog-article-related-card__footer a::after {
    content: ' \2192';
}

[data-theme="dark"] .blog-article-kicker,
[data-theme="dark"] .blog-article-toc-card,
[data-theme="dark"] .blog-article-pdf-card,
[data-theme="dark"] .blog-article-pdf-inline,
[data-theme="dark"] .blog-article-engagement,
[data-theme="dark"] .blog-article-related-card,
[data-theme="dark"] .blog-article-hero-media,
[data-theme="dark"] .blog-article-share__link {
    background: rgba(12, 21, 43, 0.88);
    border-color: rgba(123, 164, 255, 0.26);
    color: rgba(228, 237, 255, 0.9);
}

[data-theme="dark"] .blog-article-title {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .blog-article-meta,
[data-theme="dark"] .blog-article-toc-card h2,
[data-theme="dark"] .blog-article-toc-card a,
[data-theme="dark"] .blog-article-share__label,
[data-theme="dark"] .blog-article-share__link,
[data-theme="dark"] .blog-article-pdf-card p,
[data-theme="dark"] .blog-article-pdf-inline p,
[data-theme="dark"] .blog-article-related-card__date,
[data-theme="dark"] .blog-article-related-card__footer,
[data-theme="dark"] .blog-article-related-card__content p {
    color: rgba(228, 237, 255, 0.76);
}

[data-theme="dark"] .blog-article-content p,
[data-theme="dark"] .blog-article-content li,
[data-theme="dark"] .blog-article-engagement h2,
[data-theme="dark"] .blog-article-content h2,
[data-theme="dark"] .blog-article-content h3,
[data-theme="dark"] .blog-article-content h4,
[data-theme="dark"] .blog-article-related-head h2,
[data-theme="dark"] .blog-article-related-card__content h3 a,
[data-theme="dark"] .blog-article-meta__author strong {
    color: #ecf2ff;
}

[data-theme="dark"] .blog-article-related-head a,
[data-theme="dark"] .blog-article-toc-card a:hover,
[data-theme="dark"] .blog-article-share__link:hover,
[data-theme="dark"] .blog-article-engagement__status,
[data-theme="dark"] .blog-article-content a,
[data-theme="dark"] .blog-article-related-card__footer a {
    color: #9db8ff;
}

[data-theme="dark"] .blog-article-engagement__btn {
    background: rgba(10, 18, 35, 0.82);
    border-color: rgba(123, 164, 255, 0.36);
    color: #ecf2ff;
}

[data-theme="dark"] .blog-article-engagement__btn:hover {
    border-color: rgba(157, 184, 255, 0.64);
    color: #d9e7ff;
}

[data-theme="dark"] .blog-article-engagement__btn.is-active {
    color: #fff;
    border-color: transparent;
}

[data-theme="dark"] .blog-article-progress {
    background: rgba(30, 41, 59, 0.42);
}

[data-theme="dark"] .blog-article-related-card__tag {
    border-color: rgba(123, 164, 255, 0.34);
    background: rgba(18, 34, 71, 0.92);
    color: #b7ceff;
}

[data-theme="dark"] .blog-article-comments .comments-area {
    background: rgba(12, 21, 43, 0.88);
    border-color: rgba(123, 164, 255, 0.24);
}

[data-theme="dark"] .blog-article-comments .comment-form input[type="text"],
[data-theme="dark"] .blog-article-comments .comment-form input[type="email"],
[data-theme="dark"] .blog-article-comments .comment-form input[type="url"],
[data-theme="dark"] .blog-article-comments .comment-form textarea {
    background: rgba(10, 18, 35, 0.88);
    border-color: rgba(123, 164, 255, 0.3);
    color: #ecf2ff;
}

@media (max-width: 1120px) {
    .blog-article-content-grid {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 1.35rem;
    }

    .blog-article-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .blog-article-hero {
        padding-top: 136px;
    }

    .blog-article-title {
        font-size: clamp(1.9rem, 8vw, 2.7rem);
    }

    .blog-article-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-article-content-grid > * {
        min-width: 0;
    }

    .blog-article-sidebar {
        position: static;
    }

    .blog-article-content-wrap.has-toc .blog-article-sidebar {
        order: 1;
    }

    .blog-article-content-wrap.has-toc .blog-article-main {
        order: 2;
    }

    .blog-article-inline-cta {
        padding: 1.3rem;
    }
}

@media (max-width: 640px) {
    .blog-article-page {
        padding-bottom: 4rem;
    }

    .blog-article-hero {
        padding-top: 128px;
    }

    .blog-article-meta {
        justify-content: flex-start;
        gap: 0.5rem 0.9rem;
    }

    .blog-article-share {
        justify-content: flex-start;
        gap: 0.45rem;
    }

    .blog-article-progress {
        height: 3px;
    }

    .blog-article-title {
        text-align: left;
    }

    .blog-article-meta span + span::before {
        margin-right: 0.35rem;
    }

    .blog-article-hero-media {
        margin-top: 1.15rem;
    }

    .blog-article-hero-media img {
        aspect-ratio: 16 / 10;
    }

    .blog-article-content p,
    .blog-article-content li {
        font-size: 1rem;
        line-height: 1.82;
    }

    .blog-article-content h2 {
        font-size: 1.45rem;
    }

    .blog-article-content h3 {
        font-size: 1.2rem;
    }

    .blog-article-related-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 0.8rem;
    }

    .blog-article-related-grid {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce Account Pages */
.woocommerce-account .woocommerce {
    max-width: 480px;
    margin: 0 auto;
}

.woocommerce-account .woocommerce #customer_login {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.woocommerce-account .woocommerce #customer_login .u-column1,
.woocommerce-account .woocommerce #customer_login .u-column2,
.woocommerce-account .woocommerce form .form-row-first,
.woocommerce-account .woocommerce form .form-row-last {
    width: 100%;
    float: none;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--glass-shadow);
}

.woocommerce form.login .woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce form.login .woocommerce-form-login__submit {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
}

.woocommerce form.login .woocommerce-LostPassword {
    text-align: center;
    display: block;
}

.woocommerce form.lost_reset_password p:first-child {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.woocommerce form.lost_reset_password .woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form.lost_reset_password .clear {
    display: none;
}

.woocommerce form.lost_reset_password .button {
    width: 100%;
    margin-top: 0.5rem;
}

.woocommerce-account .woocommerce-message {
    margin-bottom: 2.5rem;
}

/* Ensure padding on very short pages */
.woocommerce-account .site-main .container {
    min-height: 48vh;
}

/* WooCommerce Account Input Clarity */
.woocommerce-account .woocommerce form .form-row input.input-text {
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    padding: 0.85rem;
    border-radius: 6px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

:root:not([data-theme="dark"]) .woocommerce-account .woocommerce form .form-row input.input-text,
[data-theme="light"] .woocommerce-account .woocommerce form .form-row input.input-text {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

:root:not([data-theme="dark"]) .woocommerce-account .woocommerce form .form-row label,
[data-theme="light"] .woocommerce-account .woocommerce form .form-row label {
    color: #334155;
    font-weight: 500;
}

[data-theme="dark"] .woocommerce-account .woocommerce form .form-row input.input-text {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(148, 163, 184, 0.38) !important;
}

.woocommerce-account .woocommerce form .form-row input.input-text:focus {
    border-color: #3b82f6 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}
