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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Use stable viewport height on mobile (prevents jumps when address bar shows/hides) */
@supports (height: 100svh) {
    body {
        min-height: 100svh;
    }

    .gradient-container,
    .hero,
    .ai-agent-section,
    .compliance-gap,
    .compliance-gap-reversed,
    .image {
        min-height: 100svh;
    }
}

.gradient-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: #f0f5f2; /* Very pale mint green base */
}

/* Large pale green area covering left and top */
.gradient-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 85%;
    background: radial-gradient(ellipse at 15% 25%, rgba(240, 248, 244, 0.95) 0%, rgba(230, 245, 235, 0.6) 45%, transparent 85%);
    animation: float1 20s ease-in-out infinite;
}

/* Darker green in top-right */
.gradient-2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 65%;
    background: radial-gradient(ellipse at 75% 15%, rgba(200, 230, 210, 0.5) 0%, rgba(220, 240, 230, 0.3) 55%, transparent 95%);
    animation: float2 25s ease-in-out infinite;
}

/* Soft pink in bottom-right */
.gradient-3 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    height: 55%;
    background: radial-gradient(ellipse at 80% 75%, rgba(255, 230, 240, 0.6) 0%, rgba(255, 240, 245, 0.4) 55%, transparent 90%);
    animation: float3 18s ease-in-out infinite;
}

/* Additional blending layers for smooth transitions */
.blend-1 {
    position: absolute;
    top: 25%;
    left: 35%;
    width: 55%;
    height: 55%;
    background: radial-gradient(ellipse at 45% 40%, rgba(235, 247, 240, 0.35) 0%, transparent 75%);
    animation: float4 22s ease-in-out infinite;
}

.blend-2 {
    position: absolute;
    bottom: 15%;
    left: 25%;
    width: 70%;
    height: 45%;
    background: radial-gradient(ellipse at 55% 60%, rgba(250, 235, 242, 0.25) 0%, transparent 85%);
    animation: float5 24s ease-in-out infinite;
}

/* Sparkle icon in bottom-right */
.sparkle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 16px;
    height: 16px;
    opacity: 0.7;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sparkle::before {
    width: 1.5px;
    height: 100%;
}

.sparkle::after {
    width: 100%;
    height: 1.5px;
}

.sparkle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.sparkle-inner::before,
.sparkle-inner::after {
    content: '';
    position: absolute;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sparkle-inner::before {
    width: 1.5px;
    height: 100%;
}

.sparkle-inner::after {
    width: 100%;
    height: 1.5px;
}

/* Animations */
@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(15px, -20px) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-25px, 15px) scale(1.08);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-15px, -10px) scale(1.06);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, 25px) scale(1.04);
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, 15px) scale(1.07);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    padding-bottom: -50px;
}

.hero__wrapper {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    margin-top: 120px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__title {
    font-family: "Hedvig Letters Serif", "Hedvig Letters Serif Placeholder", serif;
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 400;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero__title[data-fade-active] {
    opacity: 1;
    transform: translateY(0);
}

.hero__description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(16px, 4vw, 20px);
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero__description[data-fade-active] {
    opacity: 1;
    transform: translateY(0);
}

.hero__controls {
    margin-top: 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero__controls[data-fade-active] {
    opacity: 1;
    transform: translateY(0);
}

.hero__button {
    display: inline-block;
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    min-height: 44px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.button--large {
    padding: 16px 40px;
    min-height: 48px;
    font-size: 18px;
}

.button--blue {
    background: #000;
    color: #fff;
}

.button--blue:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button--blue:active {
    transform: translateY(0);
}

.button--border-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 6px;
}

.button--border-white:hover {
    background: transparent;
    color: #e8e8e8;
    border-color: #e8e8e8;
}

/* Hero Background Images */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero__background__images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__background__image {
    position: absolute;
    opacity: 0.3;
}

.hero__block-1,
.hero__block-2,
.hero__block-3,
.hero__block-4 {
    position: absolute;
}

.hero__block-1 {
    top: 10%;
    right: 10%;
}

.hero__block-2 {
    bottom: 15%;
    left: 10%;
}

.hero__block-3 {
    top: 50%;
    right: 5%;
}

.hero__block-4 {
    bottom: 10%;
    right: 20%;
}

.media {
    position: relative;
}

.media__image {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Logos Section */
.logos {
    position: relative;
    width: 100%;
    padding: 0 40px 80px;
    z-index: 10;
}

.logos__wrapper {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.logos__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #666;
    margin-bottom: 48px;
    letter-spacing: 0.02em;
}

.logos__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.logos__item {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding: 0 48px;
    position: relative;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    animation-delay: var(--animation-delay, 0s);
}

.logos__item[data-fade-active] {
    opacity: 1;
    transform: translateY(0);
}

.logos__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.15);
}

.logos__image {
    height: auto;
    width: auto;
    max-width: 160px;
    max-height: 50px;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .logos {
        padding: 60px 20px;
    }

    .logos__list {
        gap: 20px;
        flex-wrap: wrap;
    }

    .logos__item {
        padding: 0 16px;
        flex: 1 1 auto;
        min-width: 120px;
    }

    .logos__item:not(:last-child)::after {
        display: none;
    }

    .logos__title {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .logos__list {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .logos__item {
        padding: 0;
        width: auto;
        flex: 0 0 auto;
        justify-content: center;
    }
}

/* Export button */
.export-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.export-button:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.export-button:active {
    transform: translateY(0);
}

.export-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Menu/Navigation Styles */
.menu {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.menu__wrapper {
    max-width: 100%;
    margin: 0;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu__column {
    display: flex;
    align-items: center;
}

.menu__link {
    font-family: "Hedvig Letters Serif", "Hedvig Letters Serif Placeholder", serif;
    font-size: 20px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu__logo {
    width: 40px;
    height: 40px;
    margin-right: -5px;
    vertical-align: middle;
}

.footer-section .menu__logo {
    filter: brightness(0) invert(1);
}

.footer-section .menu__link {
    color: #fff;
}

.menu__icon {
    width: 24px;
    height: 24px;
}

.menu__list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 64px;
    margin: 0;
    padding: 0;
}

.menu__list__item {
    position: relative;
}

/* Only show CTA inside dropdown on mobile */
.menu__list__item--mobile-only {
    display: none;
}

/* Hide nav list on desktop (no Home/Product links) */
@media (min-width: 769px) {
    .menu__list {
        display: none;
    }
}

.menu__list__link {
    background: none;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.menu__list__link:hover {
    color: #000;
}

.menu__sublist {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.menu__list__item:hover .menu__sublist {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu__sublist--rich {
    min-width: 600px;
}

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

.menu__sublist__item {
    margin: 0;
}

.menu__sublist__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.menu__sublist__link:hover {
    background: #f5f5f5;
}

.menu__sublist__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin: 0;
}

.menu__sublist__image__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

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

.menu__sublist__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.menu__sublist__description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: #666;
}

.menu__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.button--small {
    padding: 10px 20px;
    font-size: 14px;
}

.menu__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu__toggle__dash {
    width: 24px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .menu__wrapper {
        padding: 12px 20px;
    }

    .menu__list {
        display: flex;
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 999;
    }

    .menu__list--open {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu__list__item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .menu__list__item:last-child {
        border-bottom: none;
    }

    .menu__list__link {
        display: block;
        padding: 16px 24px;
        width: 100%;
        text-align: left;
        font-size: 18px;
    }

    .menu__toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .menu__toggle--active .menu__toggle__dash:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu__toggle--active .menu__toggle__dash:nth-child(2) {
        opacity: 0;
    }

    .menu__toggle--active .menu__toggle__dash:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Hide top-bar Request Demo on mobile; CTA lives in dropdown list */
    .menu__wrapper > .menu__column:last-of-type {
        display: none;
    }

    .menu__button {
        display: none !important;
    }

    .menu__list__item--mobile-only {
        display: block;
    }

    .menu__list__cta {
        width: calc(100% - 48px);
        margin: 12px 24px;
    }

    .menu--open {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* AI Agent Section */
.ai-agent-section {
    width: 100%;
    min-height: 100vh;
    background: #fff;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-agent-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.w-full {
    width: 100%;
}

.mt-0 {
    margin-top: 0;
}

.min-h-\[550px\] {
    min-height: 550px;
}

.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #f3e8ff, #dbeafe, #fee2e2);
}

.from-purple-100 {
    background-color: #f3e8ff;
}

.via-blue-100 {
    background-color: #dbeafe;
}

.to-red-100 {
    background-color: #fee2e2;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.p-8 {
    padding: 2rem;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.-top-32 {
    top: -8rem;
}

.-right-32 {
    right: -8rem;
}

.w-\[500px\] {
    width: 500px;
}

.h-\[500px\] {
    height: 500px;
}

.opacity-15 {
    opacity: 0.15;
}

.top-20 {
    top: 5rem;
}

.right-20 {
    right: 5rem;
}

.w-80 {
    width: 20rem;
}

.h-80 {
    height: 20rem;
}

.opacity-10 {
    opacity: 0.1;
}

.z-10 {
    z-index: 10;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

.bg-white {
    background-color: #fff;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.gap-4 {
    gap: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.max-w-min {
    max-width: min-content;
}

.-mb-1 {
    margin-bottom: -0.25rem;
}

.-mr-2 {
    margin-right: -0.5rem;
}

.-left-1 {
    left: -0.25rem;
}

.-top-1 {
    top: -0.25rem;
}

.text-yellow-400 {
    color: #facc15;
}

.text-gray-900 {
    color: #111827;
}

.font-medium {
    font-weight: 500;
}

.min-h-\[60px\] {
    min-height: 60px;
}

.text-\[17px\] {
    font-size: 17px;
}

.text-gray-800 {
    color: #1f2937;
}

.leading-relaxed {
    line-height: 1.625;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.mt-2 {
    margin-top: 0.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.gap-2\.5 {
    gap: 0.625rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-0\.5 {
    width: 0.125rem;
}

.h-1 {
    height: 0.25rem;
}

.bg-gray-400 {
    background-color: #9ca3af;
}

.rounded-full {
    border-radius: 9999px;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-gray-600 {
    color: #4b5563;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.bg-emerald-50 {
    background-color: #ecfdf5;
}

.text-emerald-600 {
    color: #059669;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.rounded {
    border-radius: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.text-main {
    color: #000;
}

.hover\:text-main\/50:hover {
    color: rgba(0, 0, 0, 0.5);
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Compliance Gap Section */
.compliance-gap {
    width: 100%;
    min-height: 100vh;
    padding: 80px 40px;
    background: #faf9f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-gap__wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.compliance-gap__content {
    display: flex;
    align-items: center;
    gap: 80px;
    justify-content: center;
}

.compliance-gap__text {
    flex: 1;
    max-width: 500px;
}

.compliance-gap__heading {
    font-family: "Hedvig Letters Serif", "Hedvig Letters Serif Placeholder", serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #000;
    margin: 0 0 24px 0;
}

.compliance-gap__description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.compliance-gap__visual {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Review Stats Card */
.review-stats-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-stats-container__wireframe {
    position: absolute;
    height: 500px;
    width: auto;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: grayscale(1) brightness(0.95);
}

.review-stats-container__wireframe--layer-1 {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    transition-delay: 0.2s;
}

.review-stats-container__wireframe--layer-2 {
    right: -90px;
    top: calc(50% + 20px);
    transform: translateY(-50%);
    transition-delay: 0.3s;
}

.review-stats-container__wireframe--layer-3 {
    right: -120px;
    top: calc(50% + 40px);
    transform: translateY(-50%);
    transition-delay: 0.4s;
}

.review-stats-container__wireframe--layer-4 {
    right: -150px;
    top: calc(50% + 60px);
    transform: translateY(-50%);
    transition-delay: 0.5s;
}

/* Show wireframes when content item is active */
.compliance-gap-consolidated__content-item[data-content-index="2"].active .review-stats-container__wireframe--layer-1 {
    opacity: 0.9;
}

.compliance-gap-consolidated__content-item[data-content-index="2"].active .review-stats-container__wireframe--layer-2 {
    opacity: 0.7;
}

.compliance-gap-consolidated__content-item[data-content-index="2"].active .review-stats-container__wireframe--layer-3 {
    opacity: 0.5;
}

.compliance-gap-consolidated__content-item[data-content-index="2"].active .review-stats-container__wireframe--layer-4 {
    opacity: 0.3;
}

.review-stats-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 1;
    transform: translateX(-60px);
}

.review-stats-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.review-stats-card__icon {
    width: 48px;
    height: 48px;
    background: #d1fae5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
}

.review-stats-card__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.review-stats-card__divider {
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 24px;
}

.review-stats-card__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-stats-card__stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-stats-card__stat-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    color: #6b7280;
}

.review-stats-card__stat-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
}

.review-stats-card__stat-value--warning {
    background: #fef3c7;
    color: #d97706;
}

.review-stats-card__stat-value--success {
    background: #d1fae5;
    color: #059669;
}

.compliance-gap__bars {
    flex: 1;
    display: flex;
    gap: 60px;
    align-items: flex-end;
    max-width: 600px;
}

.compliance-gap__bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.compliance-gap__bar--materials {
    max-width: 200px;
}

.compliance-gap__bar--capacity {
    max-width: 200px;
}

.compliance-gap__bar__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4f46e5;
}

.compliance-gap__checkmark {
    width: 20px;
    height: 20px;
    color: #4f46e5;
}

.compliance-gap__bar__fill {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: height 1s ease;
}

.compliance-gap__bar--materials .compliance-gap__bar__fill {
    height: 200px;
    background: linear-gradient(to top, #93c5fd, #bfdbfe);
}

.compliance-gap__bar--capacity .compliance-gap__bar__fill {
    height: 400px;
    background: linear-gradient(to top, #6366f1, #818cf8);
}

.compliance-gap__bar__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: #666;
}

.compliance-gap__bar--materials .compliance-gap__bar__label {
    color: #3b82f6;
}

.compliance-gap__bar--capacity .compliance-gap__bar__label {
    color: #6366f1;
}

.compliance-gap__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 968px) {
    .compliance-gap__content {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    
    .compliance-gap__text {
        text-align: center;
        max-width: 100%;
    }
    
    .compliance-gap__heading {
        font-size: 50px;
    }
    
    .compliance-gap__bars {
        width: 100%;
        max-width: 500px;
    }
    
    .compliance-gap__visual {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    .compliance-gap {
        padding: 60px 20px;
    }
    
    .compliance-gap__heading {
        font-size: 28px;
    }
    
    .compliance-gap__description {
        font-size: 16px;
    }
    
    .compliance-gap__bars {
        flex-direction: column;
        gap: 40px;
    }
    
    .compliance-gap__bar--materials,
    .compliance-gap__bar--capacity {
        max-width: 100%;
    }
    
    .review-stats-container__wireframe {
        display: none;
    }
    
    .review-stats-card {
        padding: 24px;
    }
    
    .review-stats-card__title {
        font-size: 20px;
    }
    
    .review-stats-card__stat-label {
        font-size: 14px;
    }
    
    .review-stats-card__stat-value {
        font-size: 16px;
    }
}

/* Compliance Table */
.compliance-table-wrapper {
    flex: 1;
    max-width: 800px;
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.compliance-table-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #faf9f6);
    pointer-events: none;
    z-index: 10;
}

.compliance-table-container {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1px;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.compliance-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    table-layout: fixed;
}

.compliance-table th,
.compliance-table td {
    box-sizing: border-box;
}

.compliance-table__header {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    font-weight: 500;
    color: #666;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.compliance-table__header:first-child {
    padding-left: 16px;
}

.compliance-table__header:last-child {
    padding-right: 16px;
}

.compliance-table__header:nth-child(1),
.compliance-table__cell:nth-child(1) {
    width: 15%;
}

.compliance-table__header:nth-child(2),
.compliance-table__cell:nth-child(2) {
    width: 15%;
}

.compliance-table__header:nth-child(3),
.compliance-table__cell:nth-child(3) {
    width: 20%;
}

.compliance-table__header:nth-child(4),
.compliance-table__cell:nth-child(4) {
    width: 37%;
}

.compliance-table__header:nth-child(5),
.compliance-table__cell:nth-child(5) {
    width: 15%;
}

.compliance-table__sort-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: default;
    transition: opacity 0.2s;
}

.compliance-table__sort-btn:hover {
    opacity: 1;
}

.compliance-table__chevron {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    flex-shrink: 0;
}

.compliance-table__row {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
    width: 100%;
    display: table-row;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.2s;
}

.compliance-table__row[data-fade-active] {
    opacity: 1;
    transform: translateY(0);
}

.compliance-table__row:hover {
    background-color: transparent;
    width: 100%;
}

.compliance-table__row:last-child {
    border-bottom: none;
}

.compliance-table__cell {
    padding: 16px;
    vertical-align: middle;
    color: #1f2937;
    box-sizing: border-box;
    position: relative;
}

.compliance-table__cell-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-table__cell-content {
    display: inline;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.compliance-table__cell-content.loaded {
    opacity: 1;
    visibility: visible;
}

.compliance-table__cell-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.compliance-table__cell:first-child {
    padding-left: 16px;
}

.compliance-table__cell:last-child {
    padding-right: 16px;
}

.compliance-table__cell--summary {
    max-width: 500px;
}

.compliance-table__header--item,
.compliance-table__cell--item {
    min-width: 120px;
    padding-left: 16px;
    padding-right: 16px;
}

.compliance-table__framework-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 400;
}

.compliance-table__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-weight: 500;
}

.compliance-table__item--indented {
    padding-left: 24px;
}

.compliance-table__item--article {
    padding-left: 0;
}

.compliance-table__chevron--item {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex-shrink: 0;
}

.compliance-table__article {
    color: #059669;
    font-weight: 400;
}

.compliance-table__applicable-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #c084fc;
    color: #fff;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 400;
}

.compliance-table__not-applicable-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    background: #f3e8ff;
    color: #6b21a8;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s;
}

.compliance-table__not-applicable-tag:hover {
    opacity: 0.8;
}

.compliance-table__gap-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 400;
}

.compliance-table__no-gap-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #dcfce7;
    color: #166534;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 400;
    cursor: default;
    transition: opacity 0.2s;
}

.compliance-table__no-gap-tag:hover {
    opacity: 1;
}

.compliance-table__documentation {
    text-decoration: none;
    cursor: default;
}

.compliance-table__documentation:hover {
    text-decoration: none;
}

.compliance-table__documentation__ref {
    color: #059669;
}

/* Default: show full documentation names */
.compliance-table__documentation__text-short {
    display: none;
}

/* Default: show full item names */
.compliance-table__article-text-short {
    display: none;
}

@media (max-width: 968px) {
    .compliance-table-wrapper {
        max-width: 100%;
        margin-top: 40px;
        overflow-x: visible;
    }

    .compliance-table-wrapper::before {
        display: none;
    }
    
    .compliance-gap__content {
        flex-direction: column;
    }

    .compliance-table {
        min-width: 0;
        width: 100%;
    }
}

/* Compliance Gap Reversed Section */
.compliance-gap-reversed {
    width: 100%;
    min-height: 100vh;
    padding: 80px 40px;
    background: #faf9f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-gap-reversed * {
    opacity: 1 !important;
}

.compliance-gap-reversed [data-fade],
.compliance-gap-reversed [data-fade-active] {
    opacity: 1 !important;
    transform: none !important;
}

/* Remove fade gradient and dark background from compliance-table-wrapper in reversed section */
.compliance-gap-reversed .compliance-table-wrapper::after {
    display: none !important;
}

.compliance-gap-reversed .compliance-table-container {
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.compliance-gap-reversed .compliance-table-wrapper {
    overflow: visible !important;
    display: flex;
    align-items: center;
    margin-left: 200px;
    max-width: none !important;
    flex: 1;
}

.compliance-gap-reversed__wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.compliance-gap-reversed__content {
    display: flex;
    align-items: center;
    gap: 80px;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.compliance-gap-reversed__text {
    flex: 1;
    max-width: 500px;
}

.compliance-gap-reversed__heading {
    font-family: "Hedvig Letters Serif", "Hedvig Letters Serif Placeholder", serif;
    font-size: 50px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #000;
    margin: 0 0 24px 0;
}

.compliance-gap-reversed__description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

@media (max-width: 968px) {
    .compliance-gap-reversed__content {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    
    .compliance-gap-reversed__text {
        text-align: center;
        max-width: 100%;
        margin-left: 0;
    }
    
    .compliance-gap-reversed__heading {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .compliance-gap-reversed {
        padding: 60px 20px;
    }
    
    .compliance-gap-reversed__heading {
        font-size: 28px;
    }
    
    .compliance-gap-reversed__description {
        font-size: 16px;
    }
}

/* Policy Update Card */
.policy-update-cards-wrapper {
    position: relative;
    min-height: 500px;
    width: 100%;
    margin: auto 0;
}

.policy-update-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-width: 600px;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.compliance-gap-reversed .policy-update-card {
    max-width: 800px;
}

.policy-update-card--top-left {
    position: absolute;
    top: 45%;
    left: 30%;
    z-index: 1;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 100%;
}

.policy-update-card--bottom-right {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(calc(-50% + 30px), calc(-50% + 30px));
    transition: opacity 0.5s ease, transform 0.5s ease;
    max-width: 600px;
    width: 100%;
}

.policy-update-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.policy-update-card__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.policy-update-card__content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 24px 0;
}

.policy-update-card__removed {
    color: #ef4444;
    text-decoration: line-through;
}

.policy-update-card__added {
    background-color: #d1fae5;
    color: #059669;
    padding: 2px 4px;
    border-radius: 3px;
}

.policy-update-card__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.policy-update-card__button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.policy-update-card__button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.policy-update-card--top-left .policy-update-card__button:hover {
    background-color: transparent;
    border-color: #d1d5db;
    transform: none;
    box-shadow: none;
}

.policy-update-card__button--apply {
    border-color: #d1d5db;
    color: #374151;
}

.policy-update-card__button.animating-click {
    animation: buttonClick 0.8s ease;
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
    30% {
        transform: scale(0.95);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3);
    }
    50% {
        transform: scale(0.92);
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.2);
    }
    70% {
        transform: scale(0.95);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@media (max-width: 640px) {
    .policy-update-cards-wrapper {
        /* Keep the desktop-style overlap on mobile, but smaller */
        min-height: 0;
        display: block;
    }
    
    .policy-update-card--top-left,
    .policy-update-card--bottom-right {
        position: absolute;
        left: 50%;
        width: calc(100% - 40px);
        max-width: 360px;
    }

    .policy-update-card--top-left {
        top: 0;
        transform: translate(calc(-50% - 14px), 0);
        z-index: 1;
    }

    .policy-update-card--bottom-right {
        top: 84px;
        transform: translate(calc(-50% + 14px), 0);
        z-index: 2;
    }
    
    .policy-update-card {
        padding: 20px;
    }
    
    .policy-update-card__title {
        font-size: 18px;
    }
    
    .policy-update-card__content {
        font-size: 14px;
        line-height: 1.5;
    }

    .policy-update-card__actions {
        flex-direction: column;
        gap: 10px;
    }

    .policy-update-card__button {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Consolidated Compliance Gap Section */
.compliance-gap-consolidated {
    width: 100%;
    min-height: 200vh;
    padding: 80px 40px;
    background: #faf9f6;
    position: relative;
}

.compliance-gap-consolidated__wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.compliance-gap-consolidated__content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    position: relative;
}

.compliance-gap-consolidated__text-column {
    flex: 1;
    max-width: 500px;
    padding: 20px 0;
}

.compliance-gap-consolidated__text-item {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.compliance-gap-consolidated__heading {
    font-family: "Hedvig Letters Serif", "Hedvig Letters Serif Placeholder", serif;
    font-size: 50px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #000;
    margin: 0 0 24px 0;
}

.compliance-gap-consolidated__description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.compliance-gap-consolidated__content-column {
    flex: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px 0;
    min-height: 200vh;
}

.compliance-gap-consolidated__content-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.compliance-gap-consolidated__content-item[data-content-index="0"] {
    top: 0;
}

.compliance-gap-consolidated__content-item[data-content-index="1"] {
    top: calc(60vh + 40px);
}

.compliance-gap-consolidated__content-item[data-content-index="2"] {
    top: calc((60vh + 40px) * 2);
}

.compliance-gap-consolidated__content-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

.compliance-gap-consolidated__content-item.inactive {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    z-index: 1;
}

.compliance-gap-consolidated__content-item[data-content-index="0"] .compliance-table-wrapper {
    max-width: 100%;
}

.compliance-gap-consolidated__content-item[data-content-index="1"] .compliance-table-wrapper {
    max-width: 100%;
    overflow: visible;
}

.compliance-gap-consolidated__content-item[data-content-index="1"] .compliance-table-container {
    background: transparent;
    padding: 0;
    overflow: visible;
}

.compliance-gap-consolidated__content-item[data-content-index="1"] {
    transform: translateX(70px) translateY(100px);
}

.compliance-gap-consolidated__content-item[data-content-index="1"].active {
    transform: translateX(70px) translateY(0);
}

.compliance-gap-consolidated__content-item[data-content-index="1"].inactive {
    transform: translateX(70px) translateY(100px);
}

.compliance-gap-consolidated__content-item[data-content-index="2"] {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-70px) translateY(100px);
}

.compliance-gap-consolidated__content-item[data-content-index="2"].active {
    transform: translateX(-70px) translateY(0);
}

.compliance-gap-consolidated__content-item[data-content-index="2"].inactive {
    transform: translateX(-70px) translateY(100px);
}

@media (max-width: 968px) {
    .compliance-gap-consolidated {
        min-height: auto;
        padding: 60px 20px;
    }

    .compliance-gap-consolidated__content {
        flex-direction: column;
        gap: 60px;
    }

    .compliance-gap-consolidated__text-column {
        position: relative;
        top: auto;
        transform: none;
        max-width: 100%;
        padding: 0;
    }

    .compliance-gap-consolidated__text-item {
        min-height: auto;
        padding: 30px 0;
    }

    /* When visuals are stacked under text on mobile */
    .compliance-gap-consolidated__text-item .compliance-gap-consolidated__content-item {
        /* Override base flex-centering so visuals sit directly under text */
        display: block;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        /* Reset desktop absolute-position offsets (prevents large empty gaps) */
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 0;
        margin-bottom: 28px;
    }

    /* Give the overlapped cards a bit of breathing room under the description */
    .compliance-gap-consolidated__text-item[data-content-index="1"] .compliance-gap-consolidated__content-item {
        margin-top: 0;
        margin-bottom: 48px;
    }

    /* Match description-to-visual spacing for product review block */
    .compliance-gap-consolidated__text-item[data-content-index="2"] .compliance-gap-consolidated__content-item {
        margin-top: 40px;
    }

    .compliance-gap-consolidated__content-column {
        position: relative;
        top: auto;
        transform: none;
        height: auto;
        min-height: auto;
        padding: 0;
    }

    .compliance-gap-consolidated__content-item {
        position: relative;
        opacity: 1;
        transform: none !important;
        pointer-events: auto;
        min-height: auto;
        padding: 0;
        margin-bottom: 40px;
    }

    .compliance-gap-consolidated__content-item.active,
    .compliance-gap-consolidated__content-item.inactive {
        opacity: 1;
        transform: none !important;
    }

    .compliance-gap-consolidated__content-item[data-content-index="1"],
    .compliance-gap-consolidated__content-item[data-content-index="2"] {
        transform: none !important;
    }

    .compliance-gap-consolidated__heading {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .compliance-gap-consolidated {
        padding: 40px 20px;
    }

    .compliance-gap-consolidated__heading {
        font-size: 28px;
    }

    .compliance-gap-consolidated__description {
        font-size: 16px;
    }

    .compliance-gap-consolidated__text-item {
        padding: 20px 0;
    }
}

/* Footer Section */
.footer-section {
    width: 100%;
    background: #000;
    padding: 80px 40px;
    color: #fff;
}

.footer-section__wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.footer-section__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section__branding {
    flex: 0 0 auto;
}

.footer-section__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.footer-section__logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 6px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

.footer-section__logo-text {
    font-family: "Hedvig Letters Serif", "Hedvig Letters Serif Placeholder", serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
}

.footer-section__navigation {
    display: flex;
    gap: 80px;
}

.footer-section__nav-column {
    display: flex;
    flex-direction: column;
}

.footer-section__nav-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    position: relative;
    padding-top: 12px;
}

.footer-section__nav-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: #999;
}

.footer-section__nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section__nav-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-section__nav-link:hover {
    opacity: 0.7;
}

.footer-section__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section__form-section {
    flex: 0 0 auto;
    max-width: 500px;
}

.footer-section__form-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 12px 0;
}

.footer-section__form-title a {
    transition: color 0.2s ease;
}

.footer-section__form-title a:hover {
    color: #e8e8e8 !important;
}

.footer-section__email {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    color: #fff;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.footer-section__email:hover {
    color: #e8e8e8;
}

.footer-section__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-section__form-row {
    display: flex;
    gap: 16px;
}

.footer-section__input {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer-section__input::placeholder {
    color: #666;
}

.footer-section__input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-section__input--half {
    flex: 1;
}

.footer-section__button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-section__button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.footer-section__button:active {
    transform: translateY(0);
}

.footer-section__social {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.footer-section__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-section__social-link:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-section__social-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 968px) {
    .footer-section__top {
        flex-direction: column;
        gap: 60px;
    }

    .footer-section__navigation {
        gap: 60px;
        flex-wrap: wrap;
    }

    .footer-section__bottom {
        flex-direction: column;
        gap: 40px;
    }

    .footer-section__social {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .footer-section {
        padding: 60px 20px;
    }

    .footer-section__top {
        margin-bottom: 60px;
        padding-bottom: 40px;
    }

    .footer-section__navigation {
        gap: 40px;
        width: 100%;
    }

    .footer-section__form-row {
        flex-direction: column;
    }

    .footer-section__input--half {
        width: 100%;
    }
}

/* Image Section */
.image {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.image__container {
    width: 70%;
    height: 60vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.image__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image__text {
    position: absolute;
    left: 40px;
    top: calc(50% - 50px);
    transform: translateY(-50%);
    font-family: "Hedvig Letters Serif", "Hedvig Letters Serif Placeholder", serif;
    font-size: 40px;
    font-weight: 400;
    color: #ffffff;
    max-width: 440px;
    line-height: 1.2;
    z-index: 10;
}

.image__container .button {
    position: absolute;
    left: 40px;
    top: calc(50% + 45px);
    transform: translateY(-50%);
    z-index: 10;
    padding: 10px 24px;
    font-size: 14px;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .gradient-container {
        min-height: 100vh;
    }

    .hero {
        min-height: 100vh;
        padding-bottom: 40px;
    }

    .hero__wrapper {
        padding: 0 20px;
        margin-top: calc(120px + env(safe-area-inset-top));
    }

    .hero__title {
        margin-bottom: 20px;
    }

    .hero__description {
        margin-bottom: 32px;
    }

    .hero__controls {
        margin-top: 24px;
    }

    .button--large {
        width: 100%;
        max-width: 300px;
        padding: 14px 32px;
        font-size: 16px;
    }

    /* Hero CTA shouldn't be full-width on mobile */
    .hero__button {
        width: auto;
        max-width: none;
    }

    /* Improve touch targets */
    .button,
    .menu__toggle,
    .footer-section__social-link,
    .footer-section__button,
    .policy-update-card__button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better mobile table */
    .compliance-table {
        font-size: 12px;
    }

    /* Reserve consistent space so row animations don't shift content below */
    .compliance-table__row {
        height: 56px;
    }

    /* Mobile: hide Legislation + Documentation columns */
    .compliance-table th:nth-child(1),
    .compliance-table td:nth-child(1),
    .compliance-table th:nth-child(4),
    .compliance-table td:nth-child(4) {
        display: none;
    }

    /* Rebalance remaining column widths (Item, Applicability, Gap) */
    .compliance-table__header:nth-child(2),
    .compliance-table__cell:nth-child(2) {
        width: 24%;
        padding-left: 16px;
    }

    .compliance-table__header:nth-child(3),
    .compliance-table__cell:nth-child(3) {
        width: 54%;
        text-align: center;
    }

    /* Center the Applicability header label/button */
    .compliance-table__header:nth-child(3) .compliance-table__sort-btn {
        justify-content: center;
        width: 100%;
    }

    .compliance-table__header:nth-child(5),
    .compliance-table__cell:nth-child(5) {
        width: 24%;
    }

    /* Shorten long documentation titles on mobile */
    .compliance-table__documentation__text-full {
        display: none;
    }

    .compliance-table__documentation__text-short {
        display: inline;
    }

    .compliance-table__documentation {
        white-space: nowrap;
    }

    /* Show full item titles on mobile (Article 1, Article 2, ...) */
    .compliance-table__article-text-full {
        display: inline;
    }

    .compliance-table__article-text-short {
        display: none;
    }

    .compliance-table__header,
    .compliance-table__cell {
        padding: 10px 8px;
    }

    .compliance-table__framework-tag,
    .compliance-table__applicable-tag,
    .compliance-table__not-applicable-tag,
    .compliance-table__gap-tag,
    .compliance-table__no-gap-tag {
        font-size: 11px;
        padding: 3px 8px;
        white-space: nowrap;
    }

    /* Mobile compliance gap section */
    .compliance-gap,
    .compliance-gap-reversed {
        padding: 60px 20px;
    }

    .compliance-gap__heading {
        font-size: 32px;
    }

    .compliance-gap__description {
        font-size: 17px;
    }

    /* Mobile image section */
    .image {
        padding: 40px 0;
    }

    .image__container {
        width: 90%;
        height: 50vh;
        border-radius: 16px;
        background: #000;
    }

    /* Prevent 1px seams on mobile rendering */
    .image__photo {
        transform: scale(1.02);
        transform-origin: center;
    }

    .image__text {
        font-size: 28px;
        left: 24px;
        max-width: 360px;
    }

    .image__container .button {
        left: 50%;
        padding: 10px 20px;
        font-size: 13px;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .menu {
        top: 8px;
        left: 8px;
        right: 8px;
    }

    .menu__wrapper {
        padding: 10px 16px;
    }

    .menu__link {
        font-size: 18px;
    }

    .menu__logo {
        width: 32px;
        height: 32px;
    }

    .hero__wrapper {
        margin-top: calc(130px + env(safe-area-inset-top));
        padding: 0 16px;
    }

    .logos {
        padding: 40px 16px;
    }

    .logos__item {
        padding: 0 12px;
    }

    .logos__image {
        max-width: 120px;
        max-height: 40px;
    }

    .compliance-gap-consolidated__heading,
    .compliance-gap-reversed__heading {
        font-size: 24px;
    }

    .compliance-gap-consolidated__description,
    .compliance-gap-reversed__description {
        font-size: 15px;
    }

    .policy-update-card {
        padding: 20px;
    }

    .policy-update-card__title {
        font-size: 16px;
    }

    .policy-update-card__content {
        font-size: 14px;
    }

    .review-stats-card {
        padding: 20px;
        transform: translateX(0);
    }

    .image__container {
        width: 95%;
        height: 40vh;
        border-radius: 12px;
        background: #000;
    }

    /* Prevent 1px seams on small screens */
    .image__photo {
        transform: scale(1.02);
        transform-origin: center;
    }

    .image__text {
        font-size: 22px;
        left: 20px;
        max-width: 320px;
    }

    .image__container .button {
        left: 50%;
        padding: 8px 16px;
        font-size: 12px;
        transform: translate(-50%, -50%);
    }

    .footer-section {
        padding: 40px 16px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 968px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero__wrapper {
        margin-top: 80px;
    }

    .compliance-gap-consolidated__text-item {
        min-height: 40vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .button:hover {
        transform: none;
    }

    .button:active {
        transform: scale(0.98);
    }

    .menu__list__link:hover {
        color: #333;
    }

    /* Improve scrolling performance */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Better tap highlighting */
    a, button, .menu__toggle, .menu__list__link {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
        tap-highlight-color: rgba(0, 0, 0, 0.05);
    }
}

/* Prevent text selection on interactive elements for better mobile UX */
.menu__toggle,
.button,
.policy-update-card__button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Safe area insets for devices with notches */
@supports (padding: max(0px)) {
    .menu {
        top: max(20px, env(safe-area-inset-top));
        left: max(20px, env(safe-area-inset-left));
        right: max(20px, env(safe-area-inset-right));
    }

    .hero__wrapper {
        padding-left: max(40px, env(safe-area-inset-left));
        padding-right: max(40px, env(safe-area-inset-right));
    }

    .footer-section {
        padding-left: max(40px, env(safe-area-inset-left));
        padding-right: max(40px, env(safe-area-inset-right));
        padding-bottom: max(80px, env(safe-area-inset-bottom));
    }
}
