/**
 * Traceable v2 — Complete Redesign
 *
 * AI Compliance Engine positioning.
 * Inter font. Indigo primary. Purple AI accent.
 * Minimal, visual-first, outcome-focused.
 *
 * Mobile-first: 375px → 768px → 1024px → 1440px
 * WCAG 2.1 AA contrast throughout.
 */

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Brand colors */
    --color-primary:       #4338CA;
    --color-primary-hover:  #3730A3;
    --color-primary-light:  #E0E7FF;
    --color-ai:            #7C3AED;
    --color-ai-light:      #EDE9FE;
    --color-ai-glow:       rgba(124, 58, 237, 0.08);
    --color-success:       #059669;
    --color-warning:       #D97706;
    --color-error:         #DC2626;
    --color-dark:          #0F0A1E;
    --color-bg:            #F8FAFC;
    --color-text:          #0F172A;
    --color-text-muted:    #64748B;
    --color-border:        #E2E8F0;
    --color-white:         #FFFFFF;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-max:  1200px;
    --radius:         0.5rem;
    --radius-lg:      0.75rem;
    --radius-xl:      1rem;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1);

    /* Transitions */
    --transition: 200ms ease;
    --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

    /* v1 compatibility alias — used across legacy templates */
    --color-text-secondary: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   RESET + BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

/* Override GeneratePress parent theme layout */
.site-content { display: block !important; flex-direction: unset !important; }
.inside-article { padding: 0 !important; }
.entry-header, .page-header { display: none !important; }
#primary, #secondary { width: 100% !important; float: none !important; }
.sidebar { display: none !important; }
.content-area { width: 100% !important; }
.grid-container { max-width: 100% !important; padding: 0 !important; }

/*
 * overflow-x:clip on BOTH html and body:
 * - clip (unlike hidden) does NOT create a scroll container, so position:sticky
 *   on the header keeps working on all browsers.
 * - Must be on html, not just body: iOS Safari ignores overflow-x:clip/hidden on
 *   body alone and requires it on the root html element to suppress viewport
 *   horizontal scrolling.
 * Never use overflow:hidden here — that creates a scroll container and kills sticky.
 */
html { overflow-x: clip; }
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

.font-mono { font-family: var(--font-mono); }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--white { background: var(--color-white); }
.section--light { background: var(--color-bg); }

.section--dark {
    background: var(--color-dark);
    color: var(--color-white);
}
.section--dark h2,
.section--dark h3 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,0.7); }

.section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.section__header p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section--ai {
    background: linear-gradient(180deg, var(--color-ai-glow) 0%, transparent 100%);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 767px) {
    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: 1fr;
    }
    .section { padding: var(--space-2xl) 0; }
}


@media (max-width: 1023px) and (min-width: 768px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-secondary:hover {
    background: var(--color-primary-light);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: var(--color-white);
}
.btn-ghost:visited { color: var(--color-white); }
.btn-secondary:visited { color: var(--color-primary); }

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card--dark {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: var(--color-white);
}
.card--dark h3 { color: var(--color-white); }
.card--dark p { color: rgba(255,255,255,0.7); }

.card--audience {
    text-align: center;
    cursor: pointer;
}
.card--audience:hover {
    border-color: var(--color-primary);
}

/* Clickable card variant — wraps an <a> around a full card */
a.card--link {
    display: block;
    text-decoration: none;
    color: inherit;
}
a.card--link:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
a.card--link h3 { color: var(--color-text); }

/* Card eyebrow label */
.card__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-lg) 0;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

.faq-item__question:hover,
.faq-item__question:focus,
.faq-item__question:focus-visible,
.faq-item__question:active {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none;
    color: var(--color-primary);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: var(--space-md);
    transition: transform var(--transition);
    color: var(--color-text-muted);
}

.faq-item__answer {
    display: none;
    padding-bottom: var(--space-lg);
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.faq-item__answer[aria-hidden="false"] {
    display: block;
}

/* JS adds .is-open class; this makes answers visible and prevents
   GeneratePress .is-open styles from applying a dark background */
.faq-item.is-open .faq-item__answer {
    display: block;
}
.faq-item.is-open,
.faq-item.is-open .faq-item__question {
    background: none !important;
    background-color: transparent !important;
}
.faq-item__question[aria-expanded="true"] {
    background: none !important;
    background-color: transparent !important;
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.traceable-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0 var(--space-lg);
}

.traceable-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.traceable-nav__list {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
    margin: 0;
}

.traceable-nav__link,
a.traceable-nav__link:visited {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.traceable-nav__link:hover {
    color: var(--color-primary);
    background: var(--color-bg);
}

.traceable-nav__chevron {
    transition: transform var(--transition);
}

.traceable-nav__item.has-megamenu:hover .traceable-nav__chevron {
    transform: rotate(180deg);
}

/* Mega-menu */
.traceable-megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
    min-width: 480px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.traceable-nav__item.has-megamenu:hover .traceable-megamenu {
    opacity: 1;
    visibility: visible;
}

.traceable-megamenu__grid--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.traceable-megamenu__heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.traceable-megamenu__link,
.traceable-megamenu__link:visited {
    display: block;
    padding: var(--space-sm) 0;
    text-decoration: none;
    color: var(--color-text);
    transition: color var(--transition);
}
.traceable-megamenu__link:hover { color: var(--color-primary); }

.traceable-megamenu__link-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
}

.traceable-megamenu__link-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Logo — anchor is a flex wrapper; img is pinned to exact button rendered height (measured: 42.09px) */
.traceable-header__logo {
    display: flex;
    align-items: center;
    flex: 0 0 220px;
}
.traceable-header__logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* Header actions */
.traceable-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 0 0 220px;
    justify-content: flex-end;
}

/* Mobile hamburger */
.traceable-header__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.traceable-header__hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    margin: 4px 0;
    transition: transform var(--transition);
}

@media (max-width: 1023px) {
    .traceable-nav { display: none; }
    .traceable-header__actions { display: none; }
    .traceable-header__hamburger { display: block; }
    .btn { min-height: 44px; }
    .traceable-header__hamburger { min-width: 44px; min-height: 44px; }
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE PICKER (globe icon — desktop + mobile)
   ═══════════════════════════════════════════════════════════ */

/* Wrapper — provides the relative anchor for the dropdown */
.traceable-lang-wrap {
    position: relative;
}

/* Globe toggle button */
.traceable-lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    padding: 0;
    flex-shrink: 0;
}
.traceable-lang-toggle:hover,
.traceable-lang-toggle[aria-expanded="true"] {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(67, 56, 202, 0.06);
}

/* Desktop dropdown panel — layout only; visibility controlled by [hidden] attribute.
   Do NOT set display here: explicit CSS display overrides [hidden]'s UA display:none. */
.traceable-lang-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1100;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    min-width: 320px;
}
/* Only apply grid layout when the panel is actually visible */
.traceable-lang-panel:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

/*
 * Individual language button.
 *
 * Uses display:grid (auto 1fr) instead of flex.
 * Reason: flex with flex-basis:0 on the name span + overflow:hidden on the button
 * collapses the name span to 0 in translated-page mode. CSS grid's "1fr" column
 * always occupies the available remaining space after the auto flag column —
 * no flex magic needed, no overflow collapse possible.
 *
 * translate="no" on the button prevents GT from processing content.
 * The .notranslate class is intentionally NOT used on the name span — GT's
 * injected stylesheet sets display:none on .notranslate in translated-page mode.
 */
.traceable-lang-btn {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: left;
    transition: background var(--transition), color var(--transition);
    width: 100%;
}
.traceable-lang-btn:hover {
    background: rgba(67, 56, 202, 0.07);
    color: var(--color-primary);
}
.traceable-lang-btn--active {
    background: rgba(67, 56, 202, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}
.traceable-lang-flag {
    line-height: 1;
    font-style: normal;
}
.traceable-lang-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Google ToS attribution — small, muted, full-width below the button grid */
.traceable-gt-attribution {
    grid-column: 1 / -1;
    margin: var(--space-sm) 0 0;
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    text-align: right;
}
.traceable-gt-attribution a {
    color: inherit;
    text-decoration: none;
}
.traceable-gt-attribution a:hover {
    text-decoration: underline;
}

/* Mobile language grid — only shown when the accordion opens (aria-hidden="false").
   The parent .traceable-mobile-nav__panel rule sets display:none by default;
   we override to grid only in the open state. No !important needed. */
.traceable-mobile-nav__panel[aria-hidden="false"].traceable-mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding-bottom: var(--space-md);
}
.traceable-mobile-lang-grid .traceable-lang-btn {
    font-size: 0.875rem;
    padding: 8px 10px;
}

/* Lock background scroll when mobile nav is open.
   position:fixed + body.style.top (set by JS) freezes the page at the exact
   scroll position on both Android and iOS Safari (which ignores overflow:hidden alone).
   overflow-y:scroll prevents layout shift from scrollbar disappearing on desktop. */
body.mobile-nav-open {
    position: fixed;
    width: 100%;
    overflow-y: scroll;
}

/* When body is position:fixed the sticky header travels off-screen with the body.
   Re-pin it to the viewport top so it stays visible behind the nav panel. */
body.mobile-nav-open .traceable-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════════════════════════ */
.traceable-mobile-nav {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 999;
    background: var(--color-white);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Force GPU compositing so the panel stays stable during iOS scroll inertia */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    /* Prevent the panel itself from causing horizontal scroll */
    overflow-x: hidden;
}

/* JS toggles aria-hidden="false" to show mobile nav */
.traceable-mobile-nav[aria-hidden="false"] {
    display: block;
}

.traceable-mobile-nav__inner {
    padding: var(--space-lg) var(--space-lg) var(--space-2xl);
}

.traceable-mobile-nav__section {
    border-bottom: 1px solid var(--color-border);
}

.traceable-mobile-nav__toggle,
.traceable-mobile-nav__toggle:hover,
.traceable-mobile-nav__toggle:focus,
.traceable-mobile-nav__toggle:active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-md) 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text) !important;
    cursor: pointer;
    outline: none;
    box-shadow: none !important;
    border-radius: 0;
}

.traceable-mobile-nav__panel {
    display: none;
    padding-bottom: var(--space-md);
}

.traceable-mobile-nav__panel[aria-hidden="false"] {
    display: block;
}

.traceable-mobile-nav__panel a,
.traceable-mobile-nav__panel a:visited,
.traceable-mobile-nav__panel a:hover,
.traceable-mobile-nav__panel a:active {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    background: transparent !important;
    text-decoration: none;
}

.traceable-mobile-nav__panel a:hover {
    color: var(--color-primary);
}

/* Override any GeneratePress button styles leaking into mobile nav.
   :not(.btn) exempts .btn-primary / .btn-secondary CTAs so they keep
   their indigo background inside the mobile nav CTA block. */
.traceable-mobile-nav button:not(.btn),
.traceable-mobile-nav a:not(.btn) {
    background-color: transparent !important;
    box-shadow: none !important;
}

.traceable-mobile-nav__ctas {
    padding: var(--space-xl) 0;
    display: grid;
    gap: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0F0A1E 0%, #1A0F2E 35%, #0F1729 70%, #0A1A1E 100%);
    color: var(--color-white);
    overflow: hidden;
    padding: var(--space-3xl) 0;
}

/* Homepage hero — prominent but not full viewport */
.hero#hero {
    min-height: auto;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

/* Morphing mesh gradient — Apple-style animated blobs */
.hero__mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    filter: blur(80px);
    -webkit-filter: blur(80px);
    opacity: 0.6;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.hero__blob--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4338CA 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: morphBlob1 20s ease-in-out infinite;
}

.hero__blob--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
    top: 30%;
    right: -10%;
    animation: morphBlob2 25s ease-in-out infinite;
}

.hero__blob--3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #2563EB 0%, transparent 70%);
    bottom: -15%;
    left: 30%;
    animation: morphBlob3 22s ease-in-out infinite;
}

.hero__blob--4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #6D28D9 0%, transparent 70%);
    top: 10%;
    left: 50%;
    animation: morphBlob4 18s ease-in-out infinite;
}

@keyframes morphBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, 40px) scale(1.1); }
    50% { transform: translate(30px, 80px) scale(0.9); }
    75% { transform: translate(-40px, 20px) scale(1.05); }
}

@keyframes morphBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-60px, 50px) scale(0.95); }
    50% { transform: translate(-100px, -30px) scale(1.15); }
    75% { transform: translate(-30px, -60px) scale(1); }
}

@keyframes morphBlob3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, -70px) scale(0.9); }
}

@keyframes morphBlob4 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(-50px, 60px) scale(1.2) rotate(30deg); }
    50% { transform: translate(40px, 30px) scale(0.85) rotate(-20deg); }
    75% { transform: translate(20px, -40px) scale(1.1) rotate(15deg); }
}

@media (max-width: 767px) {
    .hero__blob--1 { width: 300px; height: 300px; }
    .hero__blob--2 { width: 250px; height: 250px; }
    .hero__blob--3 { width: 220px; height: 220px; }
    .hero__blob--4 { width: 180px; height: 180px; }
    .hero__mesh { filter: blur(60px); -webkit-filter: blur(60px); }
}

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

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 580px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

.hero__ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__network-teaser {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
    margin-top: var(--space-md);
    max-width: 520px;
    line-height: 1.5;
    letter-spacing: 0.005em;
}
.hero__network-teaser::before {
    content: '·\00a0';
    color: var(--color-primary-light);
    font-weight: 700;
}
.hero__network-teaser + .hero__network-teaser {
    margin-top: var(--space-xs);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero for inner pages (shorter, smaller heading) */
.hero--inner {
    min-height: auto;
    padding: var(--space-2xl) 0 var(--space-md);
}

/* All hero H1s except homepage are smaller */
.hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Homepage hero H1 stays large */
.hero#hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
}

/* ─── Inner-page heroes: centre all content ─────────────────
   Every hero except the homepage (#hero) centres its text.
   Industry pages, role pages, enterprise, how-it-works, etc.
   all benefit from a centred column layout.
   ──────────────────────────────────────────────────────────── */
.hero:not(#hero) .container {
    text-align: center;
}
.hero:not(#hero) h1 {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.hero:not(#hero) .hero__subtitle,
.hero:not(#hero) p {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}
.hero:not(#hero) .hero__ctas {
    justify-content: center;
}
/* Deadline countdown pill — keep inline after CTAs */
.hero:not(#hero) .hero__deadline {
    text-align: center;
}

/* Ensure hero subtitle is readable on old pages */
.hero p,
.hero .hero__subtitle {
    max-width: 640px;
}

/* Legacy: old templates that already have inline text-align:center */
.hero .container[style*="text-align: center"] p,
.hero .container[style*="text-align:center"] p {
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════
   TRUST STRIP
   ═══════════════════════════════════════════════════════════ */
.trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
}

.trust-strip__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.trust-strip__badge svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Standards row — same pill style as regulation row, reduced top gap */
.trust-strip--standards {
    margin-top: calc(var(--space-lg) * -0.5);
    padding-top: 0;
}

/* Trust strip group — wraps label + strip for "Regulations" / "Standards" labelling */
.trust-strip-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.trust-strip__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    opacity: 0.5;
    margin: 0 0 var(--space-xs);
}

.trust-strip-group + .trust-strip-group .trust-strip--standards {
    margin-top: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════
   DEADLINE URGENCY
   ═══════════════════════════════════════════════════════════ */
.deadline-strip {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    text-align: center;
}

.deadline-strip__item {
    min-width: 150px;
}

.deadline-strip__date {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-warning);
}

.deadline-strip__label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.urgency-amber { color: var(--color-warning); }
.urgency-red { color: var(--color-error); }
.urgency-green { color: var(--color-success); }

/* ═══════════════════════════════════════════════════════════
   SCREENSHOT SHOWCASE (PROTECTED)
   ═══════════════════════════════════════════════════════════ */
.showcase {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #0F172A;
    user-select: none;
    -webkit-user-select: none;
    height: 280px;
    box-shadow: 0 8px 32px rgba(67, 56, 202, 0.15), 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.showcase:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(67, 56, 202, 0.25), 0 4px 16px rgba(0,0,0,0.15);
}

/* Browser chrome mockup bar */
.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, #1E293B 0%, #1E293B 100%);
    z-index: 3;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background-image:
        radial-gradient(circle at 16px 16px, #EF4444 4px, transparent 4px),
        radial-gradient(circle at 34px 16px, #EAB308 4px, transparent 4px),
        radial-gradient(circle at 52px 16px, #22C55E 4px, transparent 4px);
    background-repeat: no-repeat;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.showcase img {
    width: 100%;
    height: calc(100% - 32px);
    object-fit: cover;
    object-position: top left;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    margin-top: 32px;
    border-radius: 0;
}

/* Subtle bottom fade — much softer than before */
.showcase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.6) 100%);
}

.showcase__label {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--space-sm) 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   AUDIENCE CARDS
   ═══════════════════════════════════════════════════════════ */
.audience-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.audience-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.audience-card__title {
    font-size: 1.125rem;
    font-weight: 700;
}

.audience-card__quote {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-style: italic;
    flex: 1;
}

.audience-card__cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════
   DIFFERENTIATOR (DARK SECTION)
   ═══════════════════════════════════════════════════════════ */
.diff-card {
    text-align: center;
}

.diff-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.diff-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.diff-card__text {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.traceable-footer {
    background: linear-gradient(180deg, #0A0816 0%, #0F0A1E 100%);
    color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.traceable-footer a,
.traceable-footer a:visited {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.traceable-footer a:hover { color: var(--color-white); }

.traceable-footer__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.traceable-footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
    margin-bottom: var(--space-lg);
}

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

.traceable-footer__links li {
    margin-bottom: var(--space-sm);
}

.traceable-footer__links a {
    font-size: 0.875rem;
}

.traceable-footer__links a:hover {
    color: var(--color-white);
    text-decoration: none;
}

/* Legal strip — sits between the link grid and the bottom bar */
/* Single-row footer bottom: copyright + legal links on left, trust badges on right */
/* Footer bottom — two-row layout: trust strip + meta strip */
.traceable-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-lg);
}

/* ── Row 1: trust strip ── */
.footer__trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer__trust-tagline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin: 0;
    white-space: nowrap;
}

.footer__trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ── Row 2: meta strip ── */
.footer__meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer__copyright {
    white-space: nowrap;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    margin: 0;
}

.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-md);
    align-items: center;
}

.footer__legal-links a {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}
.footer__legal-links a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 1023px) {
    .traceable-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .traceable-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__trust-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .footer__trust-badges {
        justify-content: flex-start;
    }
    .footer__meta-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .footer__legal-links {
        justify-content: flex-start;
    }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid .reveal:nth-child(4) { transition-delay: 0.3s; }

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

/* Mobile: disable reveal animation entirely — IntersectionObserver is unreliable
   on iOS Safari when overflow-x:clip is set on html/body. The fade-in is a
   desktop-only enhancement; content must always be visible on mobile.
   Placed AFTER the .reveal base rule so cascade order is correct. */
@media (max-width: 767px) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    /* Reduce gap between stacked content + sidebar on narrow screens */
    .regulatory-layout {
        gap: var(--space-xl);
    }
}

/* ═══════════════════════════════════════════════════════════
   STEP CARDS (How It Works)
   ═══════════════════════════════════════════════════════════ */
.step-card {
    text-align: center;
    position: relative;
}

/* Connecting line between steps (desktop only) */
@media (min-width: 768px) {
    .grid--3 .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 24px;
        right: -12%;
        width: 24%;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-ai));
        opacity: 0.3;
    }
}

.step-card__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto var(--space-lg);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
    position: relative;
    z-index: 2;
}

.step-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.step-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* Featured step (Step 2 — AI Extracts — visual centrepiece) */
.step-card--featured {
    background: rgba(124,58,237,0.04);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 4px 24px rgba(124,58,237,0.1);
}
.step-card--featured .step-card__number {
    background: var(--color-ai);
    box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}

/* ═══════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════ */
.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    background: var(--color-white);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Stretch full cell height so CTA aligns across all cards */
.pricing-card {
    height: 100%;
}

/* Pin CTA button to same vertical position across all cards */
.pricing-card .btn {
    margin-top: auto;
    margin-bottom: var(--space-lg);
}

.pricing-card--featured {
    border-color: var(--color-primary);
    border-width: 2px;
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.pricing-card__name { font-size: 1.25rem; font-weight: 700; }
.pricing-card__price { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--color-primary); margin: var(--space-md) 0; }
.pricing-card__period { font-size: 0.875rem; color: var(--color-text-muted); font-weight: 400; }

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
    display: grid;
    gap: var(--space-sm);
    font-size: 0.875rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Pricing comparison table */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.pricing-table thead tr {
    background: var(--color-white);
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
}

.pricing-table thead th {
    padding: var(--space-md) var(--space-lg);
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    vertical-align: bottom;
}

.pricing-table__feature-col {
    text-align: left !important;
    width: 38%;
}

.pricing-table__growth-col {
    background: var(--color-primary-light) !important;
    color: var(--color-primary) !important;
    position: relative;
    border-top: 3px solid var(--color-primary);
}

.pricing-table__popular-badge {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 1;
    margin-top: 2px;
    color: var(--color-primary);
}

.pricing-table__group-header td {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border-top: 2px solid var(--color-border);
}

.pricing-table tbody tr:not(.pricing-table__group-header) {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.pricing-table tbody tr:not(.pricing-table__group-header):hover {
    background: rgba(67, 56, 202, 0.02);
}

.pricing-table__row--highlight {
    background: rgba(67, 56, 202, 0.03);
}

.pricing-table__feature-name {
    padding: 14px var(--space-lg);
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
}

.pricing-table__cell {
    text-align: center;
    padding: 14px var(--space-md);
    color: var(--color-text-muted);
}

.pricing-table__cell--growth {
    background: rgba(67, 56, 202, 0.04);
}

.pricing-table__value {
    font-weight: 600;
    color: var(--color-text);
}

.pricing-table__value--growth {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
}

.pricing-table__cell svg {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .pricing-table thead th,
    .pricing-table__feature-name,
    .pricing-table__cell,
    .pricing-table__group-header td {
        padding: var(--space-sm);
        font-size: 0.75rem;
    }
    .pricing-table__feature-col { width: 30%; }
}

/* ═══════════════════════════════════════════════════════════
   INDUSTRY PAGE TEMPLATE
   ═══════════════════════════════════════════════════════════ */
.countdown {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-warning);
}

.regulation-ref {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
/* Visually hidden but readable by screen readers and search crawlers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.max-w-narrow { max-width: 640px; }
.max-w-medium { max-width: 800px; }
.gap-responsive { gap: var(--space-2xl); }
.items-center { align-items: center; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge--ai {
    background: var(--color-ai-light);
    color: var(--color-ai);
}

.badge--success {
    background: #D1FAE5;
    color: var(--color-success);
}

.badge--warning {
    background: #FEF3C7;
    color: var(--color-warning);
}

.traceable-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-blue, .badge-indigo {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-amber {
    background: #FEF3C7;
    color: var(--color-warning);
}

.badge-green {
    background: #D1FAE5;
    color: var(--color-success);
}

/* ═══════════════════════════════════════════════════════════
   HERO 2-COLUMN GRID
   ═══════════════════════════════════════════════════════════ */
/* Desktop: hero content + compliance OS visual sit side by side */
.hero__grid {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero__grid .hero__content {
    flex: 0 0 auto;
    width: 50%;
    max-width: 560px;
}

@media (max-width: 1023px) {
    .hero__grid {
        display: block;
    }
    .hero__grid .hero__content {
        width: 100%;
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   HERO PIPELINE / COMPLIANCE OS VISUALIZATION
   ═══════════════════════════════════════════════════════════ */
/* When inside hero__grid: flow layout — no absolute positioning */
.hero__grid .hero-pipeline {
    flex: 1 1 auto;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 420px;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    filter: brightness(1.3) saturate(1.2);
    mask-image: none;
    -webkit-mask-image: none;
}

@media (max-width: 1023px) {
    .hero__grid .hero-pipeline {
        display: none;
    }
}

/* Standalone hero-pipeline (non-grid pages — keep backward compat) */
.hero-pipeline:not(.hero__grid .hero-pipeline) {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 420px;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    filter: brightness(1.3) saturate(1.2);
    mask-image: linear-gradient(to right, transparent 0%, black 28%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28%);
}

@media (max-width: 1023px) {
    .hero-pipeline {
        display: none;
    }
}

.hero-pipeline__svg {
    width: 100%;
    height: 100%;
}

/* Animated data flow lines */
.pipeline-flow {
    stroke-dasharray: 8 4;
    animation: pipelineFlow 2s linear infinite;
}

@keyframes pipelineFlow {
    to { stroke-dashoffset: -24; }
}

/* Document pulse animation */
.pipeline-doc {
    animation: docPulse 3s ease-in-out infinite;
}

.pipeline-doc:nth-child(2) { animation-delay: 0.5s; }
.pipeline-doc:nth-child(3) { animation-delay: 1s; }

@keyframes docPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* AI processing glow */
.pipeline-engine {
    animation: engineGlow 4s ease-in-out infinite;
}

@keyframes engineGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.6)); }
}

/* Output card entrance */
.pipeline-output {
    animation: outputAppear 3s ease-in-out infinite;
}

.pipeline-output:nth-child(2) { animation-delay: 1s; }
.pipeline-output:nth-child(3) { animation-delay: 2s; }

@keyframes outputAppear {
    0%, 30% { opacity: 0.3; transform: translateY(4px); }
    50%, 80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0.3; transform: translateY(4px); }
}

/* ═══════════════════════════════════════════════════════════
   STEP DIAGRAMS (How It Works — replaces screenshots)
   ═══════════════════════════════════════════════════════════ */
.step-diagram {
    background: linear-gradient(145deg, #0F172A 0%, #1A1F3A 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: var(--space-xl);
    height: calc(100% - 32px);
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    overflow: hidden;
    border: 1px solid rgba(67, 56, 202, 0.15);
    border-top: none;
}

/* Upload diagram */
.step-diagram__dropzone {
    border: 2px dashed rgba(124, 58, 237, 0.35);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: border-color 0.3s ease;
    background: rgba(124, 58, 237, 0.04);
}

.step-diagram__file {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-xs);
    border: 1px solid rgba(255,255,255,0.06);
}

.step-diagram__file-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.step-diagram__progress {
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: var(--space-sm);
}

.step-diagram__progress-bar {
    height: 100%;
    background: var(--color-success);
    border-radius: 2px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    animation: uploadProgress 3s ease-in-out infinite;
}

@keyframes uploadProgress {
    0% { transform: scaleX(0); }
    60%, 100% { transform: scaleX(1); }
}

/* Extract diagram — split view */
.step-diagram__split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-sm);
    align-items: start;
    height: 100%;
}

.step-diagram__doc-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-diagram__doc-line {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}

.step-diagram__doc-line--highlight {
    background: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}

.step-diagram__arrow-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0 var(--space-xs);
}

.step-diagram__arrow {
    color: var(--color-ai);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

.step-diagram__field-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-diagram__field {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    border-left: 3px solid var(--color-ai);
    opacity: 0;
    animation: fieldAppear 4s ease-in-out infinite;
}

.step-diagram__field:nth-child(1) { animation-delay: 0s; }
.step-diagram__field:nth-child(2) { animation-delay: 0.6s; }
.step-diagram__field:nth-child(3) { animation-delay: 1.2s; }
.step-diagram__field:nth-child(4) { animation-delay: 1.8s; }
.step-diagram__field:nth-child(5) { animation-delay: 2.4s; }

@keyframes fieldAppear {
    0%, 10% { opacity: 0; }
    20%, 80% { opacity: 1; }
    90%, 100% { opacity: 0.4; }
}

.step-diagram__field-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.6);
    min-width: 80px;
}

.step-diagram__field-value {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.step-diagram__field-check {
    margin-left: auto;
    color: var(--color-success);
    font-size: 0.625rem;
}

/* Publish diagram */
.step-diagram__output-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(67, 56, 202, 0.25);
    border-radius: var(--radius);
    padding: var(--space-md);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.step-diagram__qr {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.step-diagram__output-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.step-diagram__output-url {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-ai);
    word-break: break-all;
    font-weight: 600;
}

.step-diagram__score {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.step-diagram__score-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.step-diagram__score-fill {
    height: 100%;
    width: 94%;
    background: var(--color-success);
    border-radius: 3px;
}

.step-diagram__score-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-success);
    text-shadow: 0 0 8px rgba(5, 150, 105, 0.3);
}

.step-diagram__badges {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.step-diagram__badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.5625rem;
    font-weight: 600;
}

.step-diagram__badge--published {
    background: rgba(5, 150, 105, 0.2);
    color: var(--color-success);
}

.step-diagram__badge--regulation {
    background: rgba(67, 56, 202, 0.2);
    color: var(--color-primary-light);
}

.step-diagram__regulations {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.step-diagram__reg-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: rgba(255,255,255,0.4);
}

.step-diagram__reg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════
   PILLAR ILLUSTRATIONS (expanded diff-card visuals)
   ═══════════════════════════════════════════════════════════ */
.diff-card__illustration {
    width: 100%;
    height: 200px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.diff-card__illustration svg {
    width: 100%;
    height: 100%;
    max-width: 300px;
    filter: brightness(1.8) contrast(1.1);
}

/* Network graph animation for supplier network card */
.network-node {
    animation: nodeAppear 0.5s ease-out forwards;
    opacity: 0;
}

.network-node:nth-child(1) { animation-delay: 0s; }
.network-node:nth-child(2) { animation-delay: 0.3s; }
.network-node:nth-child(3) { animation-delay: 0.6s; }
.network-node:nth-child(4) { animation-delay: 0.9s; }
.network-node:nth-child(5) { animation-delay: 1.2s; }

@keyframes nodeAppear {
    to { opacity: 1; }
}

.network-link {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: linkDraw 1s ease-out forwards;
}

.network-link:nth-child(1) { animation-delay: 0.2s; }
.network-link:nth-child(2) { animation-delay: 0.5s; }
.network-link:nth-child(3) { animation-delay: 0.8s; }
.network-link:nth-child(4) { animation-delay: 1.1s; }

@keyframes linkDraw {
    to { stroke-dashoffset: 0; }
}

.network-pulse {
    animation: dataPulse 2s ease-in-out infinite;
}

@keyframes dataPulse {
    0%, 100% { r: 2; opacity: 0; }
    50% { r: 4; opacity: 1; }
}

/* Dual-panel verifier illustration */
.verifier-panel {
    transition: opacity 0.5s ease;
}

.verifier-stamp {
    animation: stampAppear 0.4s ease-out 1.5s forwards;
    opacity: 0;
    transform-origin: center;
}

@keyframes stampAppear {
    0% { opacity: 0; transform: scale(1.5) rotate(-15deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Regulation branch animation */
.reg-branch {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: branchDraw 0.8s ease-out forwards;
}

.reg-branch:nth-child(1) { animation-delay: 0.5s; }
.reg-branch:nth-child(2) { animation-delay: 0.8s; }
.reg-branch:nth-child(3) { animation-delay: 1.1s; }
.reg-branch:nth-child(4) { animation-delay: 1.4s; }

@keyframes branchDraw {
    to { stroke-dashoffset: 0; }
}

.reg-badge-anim {
    opacity: 0;
    animation: badgeFadeIn 0.4s ease-out forwards;
}

.reg-badge-anim:nth-child(1) { animation-delay: 1.3s; }
.reg-badge-anim:nth-child(2) { animation-delay: 1.6s; }
.reg-badge-anim:nth-child(3) { animation-delay: 1.9s; }
.reg-badge-anim:nth-child(4) { animation-delay: 2.2s; }

@keyframes badgeFadeIn {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .pipeline-flow,
    .pipeline-doc,
    .pipeline-engine,
    .pipeline-output,
    .step-diagram__progress-bar,
    .step-diagram__arrow,
    .step-diagram__field,
    .network-node,
    .network-link,
    .network-pulse,
    .verifier-stamp,
    .reg-branch,
    .reg-badge-anim {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
        transform: none;
    }
    .step-diagram__progress-bar { width: 75%; }
}

/* ═══════════════════════════════════════════════════════════
   FLUENTFORMS — FOOTER NEWSLETTER COMPACT OVERRIDE
   Forces the Regulatory Radar Subscription form (id=5) into
   a horizontal email + button layout when rendered in the
   footer newsletter strip. Non-email fields are hidden so
   only the core subscription action is presented.
   ═══════════════════════════════════════════════════════════ */
.footer-newsletter__form .fluentform {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-newsletter__form .ff-el-group {
    margin-bottom: 0 !important;
    flex: 1 1 auto;
}
/* Hide company name + interests checkboxes in footer context */
.footer-newsletter__form .ff-el-group:has([name="company"]),
.footer-newsletter__form .ff-el-group:has([name="interests"]) {
    display: none !important;
}
/* Hide all field labels */
.footer-newsletter__form .ff-el-input--label {
    display: none !important;
}
/* Email input — dark footer theme */
.footer-newsletter__form .ff-el-form-control[type="email"] {
    padding: 0.5rem 1rem !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: var(--radius) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    font-size: 0.8125rem !important;
    font-family: inherit !important;
    min-width: 200px;
    height: auto !important;
    box-shadow: none !important;
}
.footer-newsletter__form .ff-el-form-control[type="email"]::placeholder {
    color: rgba(255,255,255,0.35);
}
.footer-newsletter__form .ff-el-form-control[type="email"]:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.25) !important;
}
/* Submit button — match btn-primary btn-sm */
.footer-newsletter__form .ff_submit_btn_wrapper {
    margin: 0 !important;
    flex: 0 0 auto;
}
.footer-newsletter__form .fluentform button[type="submit"],
.footer-newsletter__form .fluentform .ff-btn-submit {
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.footer-newsletter__form .fluentform button[type="submit"]:hover,
.footer-newsletter__form .fluentform .ff-btn-submit:hover {
    background: #1d4ed8 !important;
}
/* Validation error — visible on dark bg */
.footer-newsletter__form .error,
.footer-newsletter__form .text-danger {
    color: rgba(252,165,165,0.9) !important;
    font-size: 0.6875rem !important;
}
/* Success confirmation */
.footer-newsletter__form .ff-message-success p,
.footer-newsletter__form .ff_success_message {
    color: rgba(110,231,183,0.9) !important;
    font-size: 0.8125rem !important;
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL PROOF — TESTIMONIALS STRIP
   ═══════════════════════════════════════════════════════════ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}
.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: var(--space-md);
    left: var(--space-xl);
    font-size: 3rem;
    line-height: 1;
    color: var(--color-primary-light);
    font-family: Georgia, serif;
}
.testimonial-card__quote {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text);
    margin-top: var(--space-lg);
    font-style: italic;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}
.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-primary);
    flex-shrink: 0;
}
.testimonial-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}
.testimonial-card__role {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}
.testimonial-card--placeholder {
    border-style: dashed;
    border-color: rgba(37,99,235,0.2);
    background: rgba(239,246,255,0.4);
}
.testimonial-card--placeholder .testimonial-card__quote {
    color: var(--color-text-muted);
    font-style: normal;
}
@media (max-width: 767px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonial-grid .testimonial-card:last-child {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   404 ERROR PAGE
   ═══════════════════════════════════════════════════════════ */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    background: var(--color-surface);
}
.error-404 .container {
    text-align: center;
    max-width: 720px;
}
.error-404__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--color-primary-light);
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
}
.error-404__icon svg {
    width: 32px;
    height: 32px;
}
.error-404__code {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    margin: 0 0 var(--space-sm);
    letter-spacing: -0.04em;
}
.error-404__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-md);
}
.error-404__desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 auto var(--space-2xl);
    max-width: 480px;
}
.error-404__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    text-align: left;
}
.error-404__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.error-404__card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}
.error-404__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    margin-bottom: var(--space-xs);
    flex-shrink: 0;
}
.error-404__card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}
.error-404__card-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}
.error-404__home {
    display: flex;
    justify-content: center;
}
@media (max-width: 767px) {
    .error-404__code { font-size: 3.5rem; }
    .error-404__title { font-size: 1.375rem; }
    .error-404__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 479px) {
    .error-404__cards {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
    .traceable-header,
    .traceable-footer,
    .hero__canvas,
    .btn { display: none !important; }
    body { color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — EXTRACTED UTILITY CLASSES
   Replaces inline styles for SEO / performance compliance.
   ═══════════════════════════════════════════════════════════ */

.footer__gradient-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-ai) 50%, var(--color-primary) 100%);
}

.footer__newsletter-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer__newsletter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
}

.footer__newsletter-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__newsletter-form {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer__newsletter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__newsletter-row {
    display: flex;
    gap: var(--space-sm);
}

.footer__newsletter-input {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    font-size: 0.8125rem;
    font-family: inherit;
    min-width: 200px;
}

.footer__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer__newsletter-msg {
    font-size: 0.75rem;
    min-height: 1.2em;
    display: none; /* shown via JS after AJAX response */
}

.footer__trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: background var(--transition), border-color var(--transition);
}
.footer__trust-badge:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
}

.footer__social-icon {
    color: rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    padding: 6px;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}
.footer__social-icon:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE HERO — PERSONA QUICK-SELECT BAR
   Replaces inline styles for SEO / performance compliance.
   ═══════════════════════════════════════════════════════════ */

.hero__persona-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

.hero__persona-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    align-self: center;
    margin-right: var(--space-xs);
    white-space: nowrap;
}

.hero__persona-chip {
    font-size: 0.8125rem;
    color: rgba(196, 181, 253, 0.85);
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.hero__persona-chip:hover,
.hero__persona-chip:focus {
    background: rgba(124, 58, 237, 0.28);
    color: rgba(196, 181, 253, 1);
}

/* ═══════════════════════════════════════════════════════════
   REGULATORY LAYOUT — content + sidebar two-column grid
   Used by: template-regulatory-guide.php, template-legal.php,
   template-privacy-policy.php, template-cookie-policy.php,
   template-terms-of-service.php, template-data-processing-agreement.php,
   template-acceptable-use-policy.php, template-subprocessors.php,
   template-checklist.php, template-regulatory-radar.php
   ═══════════════════════════════════════════════════════════ */
.regulatory-layout {
    display: grid;
    gap: var(--space-3xl);
}

.regulatory-layout__content {
    min-width: 0; /* prevent content from overflowing grid cell */
    line-height: 1.8;
}

.regulatory-layout__content h2 {
    margin-top: var(--space-3xl);
}

.regulatory-layout__content h2:first-child {
    margin-top: 0;
}

/* Desktop: two columns — main content left, sticky sidebar right */
@media (min-width: 1024px) {
    .regulatory-layout {
        grid-template-columns: 1fr 280px;
        align-items: start;
    }

    .regulatory-layout__sidebar {
        position: sticky;
        top: calc(var(--header-height, 64px) + var(--space-xl));
        align-self: start;
    }
}

/* Mobile: sidebar drops below content (better UX — read article first) */
@media (max-width: 1023px) {
    .regulatory-layout__sidebar {
        order: 1; /* sidebar after content on mobile */
    }
}

/* Mobile: make wide tables scrollable — prevents horizontal page overflow */
@media (max-width: 767px) {
    .regulatory-layout__content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .regulatory-layout__content {
        overflow-x: hidden;
    }
}

/* ═══════════════════════════════════════════════════════════
   Regulatory Radar — feed layout + filter tabs + card styling
   Used by: template-regulatory-radar.php
   ═══════════════════════════════════════════════════════════ */
.radar-layout {
    display: grid;
    gap: var(--space-2xl);
}

@media (min-width: 1024px) {
    .radar-layout {
        grid-template-columns: 1fr 300px;
        align-items: start;
    }

    .radar-layout__sidebar {
        position: sticky;
        top: calc(var(--header-height, 64px) + var(--space-xl));
        align-self: start;
    }
}

@media (max-width: 1023px) {
    .radar-layout__sidebar {
        order: 1; /* sidebar after feed on mobile */
    }
}

/* Filter tab row */
.radar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.radar-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.4;
}

.radar-tab:hover,
.radar-tab:focus-visible {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
    text-decoration: none;
}

.radar-tab.is-active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.radar-tab.is-active:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Feed of update cards */
.radar-feed {
    display: grid;
    gap: var(--space-lg);
}

/* Individual update card — builds on .card base style */
.radar-card {
    padding: var(--space-lg);
}

.radar-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
    font-size: 0.8125rem;
}

.radar-card__date {
    margin-left: auto;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}

.radar-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 var(--space-xs) 0;
}

.radar-card__title a {
    color: inherit;
    text-decoration: none;
}

.radar-card__title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.radar-card__summary {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--space-sm) 0;
}

.radar-card__action {
    background: var(--color-bg);
    border-left: 3px solid var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.radar-card__action-label {
    display: block;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.radar-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
    font-size: 0.8125rem;
}

.radar-card__categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.radar-card__source {
    margin-left: auto;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.radar-card__source:hover {
    text-decoration: underline;
}

/* Sidebar countdown card */
.radar-sidebar-card {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.radar-sidebar-card__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.radar-sidebar-card__countdown {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.radar-sidebar-card__date {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin: 4px 0 0 0;
}

/* Intro "At a glance" box — featured-snippet bait */
.radar-glance {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.radar-glance__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin: 0 0 var(--space-sm) 0;
}

.radar-glance ul {
    margin: 0;
    padding-left: 1.25rem;
}

.radar-glance li {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 6px;
}

.radar-glance li:last-child {
    margin-bottom: 0;
}

/* Breadcrumb trail */
.radar-breadcrumb {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.radar-breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.radar-breadcrumb a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.radar-breadcrumb__separator {
    margin: 0 6px;
    color: var(--color-border);
}

/* ── CookieYes banner ↔ SalesIQ overlap guard ──────────────────────────── */
/* Body gets class cky-banner-active (set by JS) while the cookie banner is open. */
body.cky-banner-active #zsiq_float { bottom: 144px !important; }
@media (max-width: 767px) {
    /* On mobile the banner is too tall to show both — hide the chat bubble. */
    body.cky-banner-active #zsiq_float,
    body.cky-banner-active #zsiq_chat_wrap { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   THIRD-PARTY PERFORMANCE OVERRIDES
   Replace non-composited transitions (color, background, width, height)
   with composited opacity-only transitions on third-party widgets.
   ═══════════════════════════════════════════════════════════ */

/* Zoho SalesIQ: width and max-height transitions trigger layout recalc */
.zsiq_flt_rel.zsiq-medium-size,
#chat-iframe-wrap {
    transition: opacity 0.25s ease !important;
}

/* CookieYes: color/background-color transitions trigger paint on every button */
.cky-btn,
.cky-notice-btn-field .cky-btn {
    transition: opacity 0.15s ease !important;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — Single post + archive + card
   ═══════════════════════════════════════════════════════════ */

/* ─── Breadcrumbs (on dark hero) ───
   Inherits .hero:not(#hero) .container { text-align: center } so the
   inline-flex <ol> sits centered automatically. */
.blog-breadcrumbs {
    margin-bottom: var(--space-lg);
}
.blog-breadcrumbs ol {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
}
.blog-breadcrumbs a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color var(--transition);
}
.blog-breadcrumbs a:hover {
    color: var(--color-white);
}
.blog-breadcrumbs li[aria-hidden="true"] {
    color: rgba(255,255,255,0.3);
}

/* ─── Hero (single + archive) ───
   The <h1> and .hero__subtitle inherit site-wide hero typography from
   the global `.hero` / `.hero:not(#hero)` rules. Only the blog-specific
   eyebrow and meta row need local styling. */
.blog-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #A5B4FC;
    margin: 0 0 var(--space-sm);
    font-weight: 600;
}
.blog-hero__meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}
.blog-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-hero__meta svg {
    color: rgba(255,255,255,0.55);
    flex-shrink: 0;
}
.blog-hero__author-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.blog-hero__author-link:hover,
.blog-hero__author-link:focus {
    color: #ffffff;
    border-bottom-color: rgba(255,255,255,0.8);
}

/* ─── Body wrapper ─── */
.blog-body {
    padding: var(--space-3xl) 0;
}

/* ─── Article main column ─── */
.blog-article {
    max-width: 780px;
}
.blog-article__featured {
    margin: 0 0 var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
}
.blog-article__featured img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-article__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text);
}
.blog-article__body > *:first-child {
    margin-top: 0;
}
.blog-article__body h2 {
    font-size: 1.625rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    scroll-margin-top: 80px;
}
.blog-article__body h3 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}
.blog-article__body p {
    margin: 0 0 var(--space-md);
}
.blog-article__body ul,
.blog-article__body ol {
    margin: 0 0 var(--space-md);
    padding-left: 1.5rem;
}
.blog-article__body li {
    margin-bottom: 0.5rem;
}
.blog-article__body blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-md) var(--space-lg);
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-article__body blockquote p:last-child {
    margin-bottom: 0;
}
.blog-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: var(--space-lg) 0;
}
.blog-article__body figure {
    margin: var(--space-lg) 0;
}
.blog-article__body figcaption {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    text-align: center;
}
.blog-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: 0.9375rem;
}
.blog-article__body table th,
.blog-article__body table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}
.blog-article__body table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-text);
}
.blog-article__body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}
.blog-article__body pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: var(--space-md);
    border-radius: var(--radius);
    overflow-x: auto;
    margin: var(--space-lg) 0;
    font-size: 0.875rem;
    line-height: 1.6;
}
.blog-article__body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.blog-article__body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.blog-article__body a:hover {
    color: var(--color-primary-hover);
    text-decoration-thickness: 2px;
}

/* ─── Tags ─── */
.blog-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}
.blog-article__tags-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-right: var(--space-sm);
}
.blog-article__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    transition: background var(--transition), border-color var(--transition);
}
.blog-article__tag:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

/* ─── Share bar ─── */
.blog-share {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: space-between;
}
.blog-share__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}
.blog-share__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.blog-share__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
}
.blog-share__link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.blog-share__link--copy.is-copied {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-white);
}
.blog-share__link--copy.is-error {
    background: var(--color-error);
    border-color: var(--color-error);
    color: var(--color-white);
}

/* ─── Author bio ─── */
.blog-author-bio {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}
.blog-author-bio__avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-ai) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-author-bio__avatar img,
.blog-author-bio__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.blog-author-bio__avatar-initial {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}
.blog-author-bio__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin: 0 0 0.25rem;
}
.blog-author-bio__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    margin: 0 0 0.35rem;
}
.blog-author-bio__description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* ─── Sidebar ─── */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.blog-sidebar__card {
    padding: var(--space-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.blog-sidebar__heading {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0 0 var(--space-md);
}
.blog-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.blog-sidebar__list a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--color-text);
    transition: color var(--transition);
}
.blog-sidebar__list a:hover .blog-sidebar__post-title {
    color: var(--color-primary);
}
.blog-sidebar__post-title {
    font-size: 0.9375rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition);
}
.blog-sidebar__post-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Sidebar CTA — purple gradient */
.blog-sidebar__cta {
    padding: var(--space-lg);
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 60%, #7C3AED 100%);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}
.blog-sidebar__cta-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    margin: 0 0 var(--space-sm);
    font-weight: 600;
}
.blog-sidebar__cta-title {
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--color-white);
    margin: 0 0 var(--space-sm);
    font-weight: 700;
}
.blog-sidebar__cta-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.8);
    margin: 0 0 var(--space-md);
}
.blog-sidebar__cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.blog-sidebar__cta-actions .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}
.blog-sidebar__cta-actions .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    border-color: var(--color-bg);
}
.blog-sidebar__cta-actions .btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}
.blog-sidebar__cta-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.6);
}

/* ─── Blog card (archive grid + bottom grid) ─── */
.blog-card {
    display: flex !important;
    flex-direction: column;
    padding: var(--space-lg);
    height: 100%;
}
.blog-card__media {
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-bg);
}
.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}
.blog-card__reading {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.blog-card__title {
    font-size: 1.0625rem;
    line-height: 1.35;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}
.blog-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md);
    flex-grow: 1;
}
.blog-card__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ─── Pagination ─── */
.blog-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-3xl);
}
.blog-pagination__item a,
.blog-pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.blog-pagination__item a:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}
.blog-pagination__item .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ─── Mobile ─── */
@media (max-width: 1023px) {
    .blog-article {
        max-width: 100%;
    }
    .blog-sidebar {
        margin-top: var(--space-2xl);
    }
}

@media (max-width: 767px) {
    .blog-hero__meta {
        gap: var(--space-md);
        font-size: 0.8125rem;
    }
    .blog-article__body {
        font-size: 1rem;
        line-height: 1.7;
    }
    .blog-article__body h2 {
        font-size: 1.375rem;
    }
    .blog-article__body h3 {
        font-size: 1.125rem;
    }
    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-share__links {
        width: 100%;
    }
    .blog-share__link {
        flex: 1;
        justify-content: center;
    }
    .blog-author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .blog-author-bio__avatar {
        margin: 0 auto;
    }
    .blog-sidebar__cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
