/* Landing, blog, article — dark theme & readable contrast */

.marketing-page {
    background-color: transparent;
    color: var(--text-color, #1f2937);
    isolation: isolate;
}

[data-theme="dark"] html:has(.marketing-page) {
    background: linear-gradient(165deg, #141e32 0%, #1a2740 45%, #152238 100%);
}

[data-theme="dark"] .marketing-page {
    background-color: transparent;
    color: var(--text-color, #f1f5f9);
}

/* Headers */
[data-theme="dark"] .marketing-page #main-header,
[data-theme="dark"] .marketing-page .marketing-header {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(16px);
    border-color: var(--border-color, #334155) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .marketing-page #main-header span,
[data-theme="dark"] .marketing-page #main-header a:not(.btn):not([class*="bg-brand"]),
[data-theme="dark"] .marketing-page .marketing-header h1,
[data-theme="dark"] .marketing-page .marketing-header p {
    color: var(--text-color) !important;
}

[data-theme="dark"] .marketing-page .bg-yellow-50 {
    background: rgba(250, 204, 21, 0.12) !important;
}

[data-theme="dark"] .marketing-page .border-yellow-100 {
    border-color: rgba(250, 204, 21, 0.25) !important;
}

[data-theme="dark"] .marketing-page .text-brand-yellow {
    color: #fde047 !important;
}

[data-theme="dark"] .marketing-page .nav-item,
[data-theme="dark"] .marketing-page #main-header .text-gray-500,
[data-theme="dark"] .marketing-page #main-header .text-gray-600 {
    color: var(--text-muted) !important;
}

.marketing-page .nav-item.nav-active {
    color: #1cb0f6 !important;
    background: rgba(28, 176, 246, 0.12);
    box-shadow: inset 0 0 0 1px rgba(28, 176, 246, 0.2);
}

[data-theme="dark"] .marketing-page .nav-item.nav-active {
    color: #7dd3fc !important;
    background: rgba(56, 189, 248, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.35) !important;
}

.marketing-page .mobile-link.mobile-nav-active {
    color: #1cb0f6 !important;
    background: rgba(28, 176, 246, 0.1);
}

[data-theme="dark"] .marketing-page .mobile-link.mobile-nav-active {
    color: #7dd3fc !important;
    background: rgba(56, 189, 248, 0.14);
}

[data-theme="dark"] .marketing-page .mobile-link.mobile-nav-active i {
    color: #7dd3fc !important;
}

[data-theme="dark"] .marketing-page #mobile-menu {
    background: var(--surface-color, #1e293b) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .marketing-page #mobile-menu-btn:hover,
[data-theme="dark"] .marketing-page .marketing-island__menu-btn:hover {
    background: rgba(51, 65, 85, 0.6);
}

[data-theme="dark"] .marketing-page #mobile-menu-btn[aria-expanded="true"],
[data-theme="dark"] .marketing-page .marketing-island__menu-btn[aria-expanded="true"] {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

.marketing-page #mobile-menu {
    -webkit-overflow-scrolling: touch;
}

.marketing-page #mobile-menu .mobile-link {
    min-height: 2.75rem;
}

[data-theme="dark"] .marketing-page #main-header.header-scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: var(--border-color) !important;
}

.marketing-page #main-header.header-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    border-color: #e5e7eb !important;
}

/* Background layers — keep photos visible in dark mode */
[data-theme="dark"] .marketing-page #dynamic-bg-container,
[data-theme="dark"] .marketing-page .marketing-bg {
    background: linear-gradient(165deg, #141e32 0%, #1a2740 50%, #152238 100%) !important;
}

[data-theme="dark"] .marketing-page #dynamic-bg-container img.bg-layer-visible,
[data-theme="dark"] .marketing-page .marketing-bg > img.bg-layer-visible {
    opacity: 0.55 !important;
    filter: saturate(1.05) brightness(0.72);
}

[data-theme="dark"] .marketing-page #dynamic-bg-container img.opacity-0,
[data-theme="dark"] .marketing-page .marketing-bg > img.opacity-0 {
    opacity: 0 !important;
}

[data-theme="dark"] .marketing-page #dynamic-bg-container[data-active-section="hero"] .marketing-bg-overlay,
[data-theme="dark"] .marketing-page #dynamic-bg-container[data-active-section="about"] .marketing-bg-overlay {
    background: rgba(20, 30, 50, 0.12) !important;
}

[data-theme="dark"] .marketing-page .marketing-bg-overlay {
    background: rgba(20, 30, 50, 0.22) !important;
    backdrop-filter: blur(1px);
}

.marketing-back-btn {
    background: #f3f4f6;
    color: #4b5563;
}

.marketing-back-btn:hover {
    background: #e5e7eb;
}

[data-theme="dark"] .marketing-back-btn {
    background: rgba(51, 65, 85, 0.55) !important;
    color: #e2e8f0 !important;
    border-color: rgba(71, 85, 105, 0.55) !important;
}

[data-theme="dark"] .marketing-back-btn:hover {
    background: rgba(71, 85, 105, 0.65) !important;
}

[data-theme="dark"] .marketing-page .nav-item:hover {
    color: #7dd3fc !important;
}

[data-theme="dark"] .marketing-page #mobile-menu a,
[data-theme="dark"] .marketing-page #mobile-menu .mobile-link {
    color: var(--text-color) !important;
}

[data-theme="dark"] .marketing-page #mobile-menu .text-gray-400 {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .marketing-page #mobile-menu hr {
    border-color: var(--border-color) !important;
}

/* Glass / card surfaces — translucent so page bg shows through */
[data-theme="dark"] .marketing-page [class*="bg-white/"]:not(.marketing-bg-overlay):not([class*="bg-gradient"]),
[data-theme="dark"] .marketing-page .bg-white:not([class*="bg-gradient"]):not(.lead-form-card) {
    background-color: rgba(26, 39, 64, 0.82) !important;
    backdrop-filter: blur(12px);
    border-color: rgba(71, 85, 105, 0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Form card inside blue CTA — always light/readable in dark mode */
[data-theme="dark"] .marketing-page .lead-form-card,
[data-theme="dark"] .marketing-page .bg-gradient-to-br .bg-white {
    background-color: #f8fafc !important;
    color: #1f2937 !important;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

[data-theme="dark"] .marketing-page .lead-form-card .text-gray-900,
[data-theme="dark"] .marketing-page .lead-form-card .text-gray-800,
[data-theme="dark"] .marketing-page .lead-form-card h3,
[data-theme="dark"] .marketing-page .bg-gradient-to-br .bg-white .text-gray-900,
[data-theme="dark"] .marketing-page .bg-gradient-to-br .bg-white .text-gray-800,
[data-theme="dark"] .marketing-page .bg-gradient-to-br .bg-white h3 {
    color: #111827 !important;
}

[data-theme="dark"] .marketing-page .lead-form-card .text-gray-400,
[data-theme="dark"] .marketing-page .bg-gradient-to-br .bg-white .text-gray-400 {
    color: #6b7280 !important;
}

[data-theme="dark"] .marketing-page .lead-form-card .lead-form-input,
[data-theme="dark"] .marketing-page .lead-form-card input {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

[data-theme="dark"] .marketing-page .lead-form-card .lead-form-input::placeholder,
[data-theme="dark"] .marketing-page .lead-form-card input::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

[data-theme="dark"] .marketing-page .lead-form-card .lead-form-input:focus,
[data-theme="dark"] .marketing-page .lead-form-card input:focus {
    border-color: #1cb0f6 !important;
    box-shadow: 0 0 0 4px rgba(28, 176, 246, 0.15) !important;
}

[data-theme="dark"] .marketing-page .text-gray-900,
[data-theme="dark"] .marketing-page .text-gray-800,
[data-theme="dark"] .marketing-page .text-gray-700,
[data-theme="dark"] .marketing-page h1,
[data-theme="dark"] .marketing-page h2,
[data-theme="dark"] .marketing-page h3,
[data-theme="dark"] .marketing-page h4 {
    color: var(--text-color) !important;
}

[data-theme="dark"] .marketing-page .text-gray-600,
[data-theme="dark"] .marketing-page .text-gray-500,
[data-theme="dark"] .marketing-page .text-gray-400 {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .marketing-page .bg-gray-50,
[data-theme="dark"] .marketing-page .bg-gray-100 {
    background-color: rgba(51, 65, 85, 0.5) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .marketing-page .border-gray-100,
[data-theme="dark"] .marketing-page .border-gray-200,
[data-theme="dark"] .marketing-page .border-white {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .marketing-page .quiz-btn {
    background: var(--surface-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .marketing-page .quiz-btn span.rounded-full {
    background: rgba(51, 65, 85, 0.8) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] .marketing-page .bg-green-50 {
    background: rgba(88, 204, 2, 0.12) !important;
}

[data-theme="dark"] .marketing-page .bg-red-50 {
    background: rgba(248, 113, 113, 0.12) !important;
}

[data-theme="dark"] .marketing-page .border-red-100 {
    border-color: rgba(248, 113, 113, 0.25) !important;
}

[data-theme="dark"] .marketing-page .border-blue-100 {
    border-color: rgba(56, 189, 248, 0.25) !important;
}

[data-theme="dark"] .marketing-page .bg-blue-50 {
    background: rgba(28, 176, 246, 0.12) !important;
}

[data-theme="dark"] .marketing-page .article-card .bg-white,
[data-theme="dark"] .marketing-page article.bg-white {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .marketing-page .prose,
[data-theme="dark"] .marketing-page .prose p,
[data-theme="dark"] .marketing-page .prose li,
[data-theme="dark"] .marketing-page .prose h1,
[data-theme="dark"] .marketing-page .prose h2,
[data-theme="dark"] .marketing-page .prose h3 {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .marketing-page .prose strong,
[data-theme="dark"] .marketing-page .prose h1,
[data-theme="dark"] .marketing-page .prose h2,
[data-theme="dark"] .marketing-page .prose h3 {
    color: var(--text-color) !important;
}

[data-theme="dark"] .marketing-page .prose a {
    color: #7dd3fc !important;
}

[data-theme="dark"] .marketing-page .prose blockquote,
[data-theme="dark"] .marketing-page .marketing-prose blockquote {
    background-color: rgba(28, 176, 246, 0.12) !important;
    border-left-color: #1cb0f6 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .marketing-page .prose blockquote,
[data-theme="dark"] .marketing-page .prose blockquote p,
[data-theme="dark"] .marketing-page .marketing-prose blockquote,
[data-theme="dark"] .marketing-page .marketing-prose blockquote p {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .marketing-page footer.bg-white {
    background: var(--surface-color, #1e293b) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .marketing-page footer .text-gray-900 {
    color: var(--text-color) !important;
}

[data-theme="dark"] .marketing-page footer .text-gray-500,
[data-theme="dark"] .marketing-page footer .text-gray-400 {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .marketing-page .progress-container {
    background: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .marketing-page #error-modal-box {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .marketing-page input.bg-gray-50:not(.lead-form-input) {
    background: #0f172a !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

/* Section bands — translucent tints so scroll bg stays visible */
[data-theme="dark"] .marketing-page section[class*="bg-white/30"],
[data-theme="dark"] .marketing-page section[class*="bg-white/40"] {
    background-color: rgba(30, 41, 59, 0.28) !important;
    backdrop-filter: blur(10px);
    border-color: rgba(100, 116, 139, 0.25) !important;
}

[data-theme="dark"] .marketing-page section[class*="bg-gray-900/30"] {
    background-color: rgba(10, 16, 28, 0.36) !important;
    backdrop-filter: blur(10px);
    border-color: rgba(71, 85, 105, 0.3) !important;
}

[data-theme="dark"] .marketing-page section[class*="bg-gray-900/40"] {
    background-color: rgba(10, 16, 28, 0.42) !important;
    backdrop-filter: blur(10px);
    border-color: rgba(71, 85, 105, 0.3) !important;
}

[data-theme="dark"] .marketing-page section[class*="bg-gray-900/70"] {
    background-color: rgba(10, 16, 28, 0.55) !important;
    backdrop-filter: blur(10px);
    border-color: rgba(71, 85, 105, 0.35) !important;
}

[data-theme="dark"] .marketing-page section.bg-brand-blue\/20 {
    background-color: rgba(28, 176, 246, 0.2) !important;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .marketing-page .bg-brand-blue\/90 {
    background-color: rgba(28, 176, 246, 0.88) !important;
}

[data-theme="dark"] .marketing-page .bg-gradient-to-br.from-brand-blue.to-blue-600 {
    background: linear-gradient(to bottom right, #1cb0f6, #2563eb) !important;
}

/* Lesson cards — readable in dark mode */
[data-theme="dark"] .marketing-page #lessons .landing-card > div:first-child {
    background: #111827;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .marketing-page #lessons img.grayscale {
    opacity: 0.72 !important;
    filter: grayscale(0.35) brightness(0.72) contrast(1.08);
}

[data-theme="dark"] .marketing-page #lessons .mix-blend-multiply {
    mix-blend-mode: soft-light !important;
    opacity: 0.55 !important;
}

[data-theme="dark"] .marketing-page #lessons .landing-card > div:first-child::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(8, 12, 24, 0.05), rgba(8, 12, 24, 0.35));
    pointer-events: none;
    z-index: 2;
}

[data-theme="dark"] .marketing-page #lessons .inline-block.bg-white\/90,
[data-theme="dark"] .marketing-page #lessons .inline-block[class*="bg-white/90"] {
    background-color: rgba(30, 41, 59, 0.94) !important;
    border-color: rgba(100, 116, 139, 0.45) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .marketing-page #lessons .inline-block h2 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .marketing-page #lessons .inline-block p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .marketing-page #lessons .landing-card > div:last-child {
    background-color: rgba(30, 41, 59, 0.96) !important;
    border-color: rgba(100, 116, 139, 0.55) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .marketing-page #lessons .landing-card > div:last-child .text-gray-800 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .marketing-page #lessons .landing-card > div:last-child .text-gray-400 {
    color: #94a3b8 !important;
}

[data-theme="dark"] .marketing-page #hero .bg-white\/90 {
    background-color: rgba(30, 41, 59, 0.94) !important;
    border-color: rgba(100, 116, 139, 0.45) !important;
}

[data-theme="dark"] .marketing-page #hero h1,
[data-theme="dark"] .marketing-page #hero .text-gray-900 {
    color: #f8fafc !important;
}

[data-theme="dark"] .marketing-page #hero .text-gray-600,
[data-theme="dark"] .marketing-page #hero .text-gray-500 {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .marketing-page .inline-block[class*="bg-white/90"] h2,
[data-theme="dark"] .marketing-page .inline-block[class*="bg-white/90"] h3,
[data-theme="dark"] .marketing-page .inline-block[class*="bg-white/90"] h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .marketing-page .inline-block[class*="bg-white/90"] p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .marketing-page .bg-pink-200 {
    background-color: rgba(251, 207, 232, 0.25) !important;
    color: #fbcfe8 !important;
}

[data-theme="dark"] .marketing-page .bg-blue-200 {
    background-color: rgba(191, 219, 254, 0.25) !important;
    color: #bfdbfe !important;
}

[data-theme="dark"] .marketing-page .bg-green-200 {
    background-color: rgba(187, 247, 208, 0.25) !important;
    color: #bbf7d0 !important;
}

[data-theme="dark"] .marketing-page .text-pink-700,
[data-theme="dark"] .marketing-page .text-blue-700,
[data-theme="dark"] .marketing-page .text-green-700 {
    color: inherit !important;
}

[data-theme="dark"] .marketing-page .bg-blue-800 {
    background-color: #1e3a5f !important;
}

[data-theme="dark"] .marketing-page .inline-block.bg-gray-900\/90 {
    background: rgba(15, 23, 42, 0.82) !important;
    border-color: rgba(71, 85, 105, 0.45) !important;
}

[data-theme="dark"] .marketing-page .inline-block.bg-gray-900\/90 h2,
[data-theme="dark"] .marketing-page .inline-block.bg-gray-900\/90 .text-white {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .marketing-page .inline-block.bg-gray-900\/90 .text-gray-300 {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .marketing-page .text-brand-blue {
    color: #7dd3fc !important;
}

[data-theme="dark"] .marketing-page .text-brand-red {
    color: #fca5a5 !important;
}

[data-theme="dark"] .marketing-page .text-blue-100 {
    color: #bae6fd !important;
}

[data-theme="dark"] .marketing-page .border-4.border-white,
[data-theme="dark"] .marketing-page .border-8.border-white {
    border-color: rgba(71, 85, 105, 0.7) !important;
}

[data-theme="dark"] .marketing-page .floating.bg-white {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .marketing-page .bg-brand-blue\/10 {
    background: rgba(56, 189, 248, 0.15) !important;
}

[data-theme="dark"] .marketing-page .bg-brand-red\/10 {
    background: rgba(248, 113, 113, 0.15) !important;
}

[data-theme="dark"] .marketing-page .border-brand-red\/20 {
    border-color: rgba(248, 113, 113, 0.35) !important;
}

[data-theme="dark"] .marketing-page .shadow-green-200,
[data-theme="dark"] .marketing-page .shadow-yellow-200,
[data-theme="dark"] .marketing-page .shadow-blue-200,
[data-theme="dark"] .marketing-page .shadow-purple-200 {
    --tw-shadow-color: rgba(0, 0, 0, 0.35);
}

/* Tariff / CTA blocks keep accent colors */

[data-theme="dark"] .marketing-page .text-brand-green {
    color: #86efac !important;
}

[data-theme="dark"] .marketing-page #tariffs .text-gray-300 {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .marketing-page #tariffs .inline-block.bg-gray-900\/90 {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .marketing-page #tariffs .inline-block.bg-gray-900\/90 h2 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .marketing-page .ring-blue-50 {
    --tw-ring-color: rgba(56, 189, 248, 0.2) !important;
}

.marketing-theme-toggle {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color, #e5e7eb);
    background: var(--surface-muted, #f3f4f6);
    color: var(--text-muted, #6b7280);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.marketing-theme-toggle:hover {
    border-color: #1cb0f6;
    color: #1cb0f6;
}

[data-theme="dark"] .marketing-theme-toggle {
    background: rgba(51, 65, 85, 0.6);
    border-color: var(--border-color);
    color: #94a3b8;
}

@media (max-width: 767px) {
    .marketing-theme-toggle-sm {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 44px;
        min-height: 44px;
        border-radius: 0.75rem;
    }

    #mobile-menu-btn[aria-expanded="true"],
    .marketing-island__menu-btn[aria-expanded="true"] {
        background: rgba(28, 176, 246, 0.12);
        color: #1cb0f6;
    }
}

/* Auth page */
.auth-page .auth-bg-image {
    opacity: 0.94;
    filter: saturate(0.97) brightness(0.96);
}

.auth-page .auth-bg-overlay {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(2px);
}

[data-theme="dark"] .auth-page .auth-bg-image {
    opacity: 0.74 !important;
    filter: saturate(0.9) brightness(0.86);
}

[data-theme="dark"] .auth-page .auth-bg-overlay {
    background: rgba(10, 16, 28, 0.34) !important;
    backdrop-filter: blur(1px);
}

.auth-page .auth-info-card,
.auth-page .auth-form-card {
    border-color: var(--border-color, #e5e7eb);
}

[data-theme="dark"] .auth-page .auth-info-card,
[data-theme="dark"] .auth-page .auth-form-card {
    background: rgba(30, 41, 59, 0.92) !important;
    border-color: rgba(71, 85, 105, 0.55) !important;
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .auth-page .auth-info-card .text-gray-900,
[data-theme="dark"] .auth-page .auth-form-card .text-gray-900,
[data-theme="dark"] .auth-page .auth-info-card h1,
[data-theme="dark"] .auth-page .auth-info-card h2,
[data-theme="dark"] .auth-page .auth-info-card h3,
[data-theme="dark"] .auth-page .auth-form-card h1 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .auth-page .auth-info-card .text-gray-600,
[data-theme="dark"] .auth-page .auth-info-card .text-gray-500,
[data-theme="dark"] .auth-page .auth-info-card .text-gray-700,
[data-theme="dark"] .auth-page .auth-form-card .text-gray-500 {
    color: #94a3b8 !important;
}

[data-theme="dark"] .auth-page .auth-info-card .bg-gray-50,
[data-theme="dark"] .auth-page .auth-form-card .bg-gray-50 {
    background: rgba(51, 65, 85, 0.45) !important;
    border-color: rgba(71, 85, 105, 0.45) !important;
}

[data-theme="dark"] .auth-page .auth-info-card .bg-green-50 {
    background: rgba(88, 204, 2, 0.12) !important;
    border-color: rgba(88, 204, 2, 0.25) !important;
}

[data-theme="dark"] .auth-page .auth-info-card .bg-blue-50 {
    background: rgba(28, 176, 246, 0.12) !important;
}

[data-theme="dark"] .auth-page .auth-info-card .bg-yellow-50 {
    background: rgba(255, 200, 0, 0.12) !important;
}

[data-theme="dark"] .auth-page .auth-input,
[data-theme="dark"] .auth-page .auth-form-card input.auth-input {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .auth-page .auth-form-card input.bg-white {
    background: #0f172a !important;
}

[data-theme="dark"] .auth-page .auth-input::placeholder {
    color: #64748b !important;
    opacity: 1;
}

[data-theme="dark"] .auth-page #auth-header a.auth-home-link {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .auth-page #auth-header a.auth-home-link:hover {
    color: #7dd3fc !important;
}

[data-theme="dark"] .auth-page #auth-header .auth-logo-link,
[data-theme="dark"] .auth-page #auth-header .auth-logo-link span {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .auth-page .thick-input:focus,
[data-theme="dark"] .auth-page .auth-input:focus {
    background-color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] .auth-page .btn-tab.inactive {
    color: #94a3b8 !important;
}

[data-theme="dark"] .auth-page .btn-tab.inactive:hover,
[data-theme="dark"] .auth-page .btn-tab:hover:not(.active) {
    background-color: rgba(51, 65, 85, 0.45) !important;
    border-color: rgba(71, 85, 105, 0.55) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .auth-page .shake-error .bg-white,
[data-theme="dark"] .auth-page .bg-blue-50 .bg-white {
    background: rgba(51, 65, 85, 0.6) !important;
    border-color: rgba(71, 85, 105, 0.55) !important;
}

[data-theme="dark"] .auth-page .auth-info-card .border-green-100 {
    border-color: rgba(88, 204, 2, 0.25) !important;
}

[data-theme="dark"] .auth-page .auth-secondary-btn {
    background: transparent !important;
    border-color: rgba(71, 85, 105, 0.55) !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .auth-page .auth-secondary-btn:hover {
    background: rgba(51, 65, 85, 0.45) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .auth-page .border-gray-100 {
    border-color: rgba(71, 85, 105, 0.45) !important;
}

@media (max-width: 1023px) {
    .auth-page .auth-info-panel {
        max-width: 32rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .auth-page .auth-info-panel {
        position: sticky;
        top: 5.5rem;
    }
}

/* Landing page — hero bg, scroll reveal, card grids */
@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.animate-slow-zoom {
    animation: slowZoom 25s ease-in-out infinite alternate;
}

.fade-in-section,
.marketing-page .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible,
.marketing-page .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.marketing-page .reveal.reveal--left { transform: translateX(-46px); }
.marketing-page .reveal.reveal--right { transform: translateX(46px); }
.marketing-page .reveal.reveal--left.is-visible,
.marketing-page .reveal.reveal--right.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .fade-in-section,
    .marketing-page .reveal { opacity: 1; transform: none; transition: none; }
}

.landing-cards-grid {
    display: grid;
    gap: 1.25rem;
}

@media (max-width: 767px) {
    .landing-cards-scroll {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.75rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .landing-cards-scroll > .landing-card {
        flex: 0 0 82%;
        max-width: 320px;
        scroll-snap-align: start;
    }

    #lessons-carousel.landing-cards-scroll > .landing-card {
        flex: 0 0 46%;
        max-width: 180px;
    }
}

@media (min-width: 768px) {
    .landing-cards-scroll {
        display: grid;
        overflow: visible;
        scroll-snap-type: none;
    }

    #pains-carousel { grid-template-columns: repeat(2, 1fr); }
    #features-carousel { grid-template-columns: repeat(2, 1fr); }
    #lessons-carousel { grid-template-columns: repeat(3, 1fr); }
    #reviews-carousel { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    #pains-carousel { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    #features-carousel { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    #lessons-carousel { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

@media (min-width: 1280px) {
    #lessons-carousel { grid-template-columns: repeat(7, 1fr); }
}

.landing-card {
    height: 100%;
}

/* ── Landing redesign: sections, quiz, program ── */

.landing-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1cb0f6;
    background: rgba(28, 176, 246, 0.12);
    border: 1px solid rgba(28, 176, 246, 0.25);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.landing-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.landing-section-head--center {
    margin-bottom: 2rem;
}

.landing-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin-top: 0.75rem;
}

.landing-section-sub {
    font-size: 1.05rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Bento pains grid */
.landing-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .landing-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-bento__cell--wide,
    .landing-bento__cell--accent,
    .landing-bento__cell--cta,
    .landing-bento__cell {
        grid-column: auto;
    }
}

.landing-bento__cell {
    position: relative;
    padding: 1.5rem 1.35rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.landing-bento__cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 176, 246, 0.06), transparent 55%);
    pointer-events: none;
}

.landing-bento__cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(28, 176, 246, 0.12);
}

.landing-bento__cell--accent {
    background: linear-gradient(145deg, rgba(28, 176, 246, 0.12), rgba(255, 255, 255, 0.92));
    border-color: rgba(28, 176, 246, 0.2);
}

.landing-bento__cell--cta {
    background: linear-gradient(145deg, rgba(88, 204, 2, 0.1), rgba(255, 255, 255, 0.92));
    border-color: rgba(88, 204, 2, 0.25);
}

.landing-bento__emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.65rem;
}

.landing-bento__cell h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.landing-bento__cell p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.45;
}

.landing-bento__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1cb0f6;
}

.landing-bento__link:hover {
    text-decoration: underline;
}

.landing-section {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    padding-block: 6rem;
}

.landing-section--compact {
    padding-block: 4rem;
}

.landing-section--tall {
    padding-block: 5rem;
}

@media (min-width: 768px) {
    .landing-section--tall {
        padding-block: 7rem;
    }
}

.landing-section--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(240, 247, 251, 0.75) 100%);
    backdrop-filter: blur(12px);
}

.landing-section--quiz {
    background: linear-gradient(135deg, rgba(28, 176, 246, 0.08) 0%, rgba(88, 204, 2, 0.06) 100%);
    backdrop-filter: blur(8px);
}

.landing-section--program {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(28, 176, 246, 0.06) 100%);
    backdrop-filter: blur(10px);
}

.landing-hero-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 64px rgba(28, 176, 246, 0.12), 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Quiz stage */
.landing-quiz-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90vw, 640px);
    height: 420px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(28, 176, 246, 0.18) 0%, rgba(88, 204, 2, 0.08) 45%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.landing-quiz-stage {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 2px solid rgba(28, 176, 246, 0.18);
    box-shadow:
        0 24px 64px rgba(28, 176, 246, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(16px);
}

/* Tailwind .hidden loses to component display rules — force hide in quiz */
#landing-quiz [hidden],
#landing-quiz .hidden {
    display: none !important;
}

.landing-quiz-stage__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.landing-quiz-dots {
    display: flex;
    gap: 0.4rem;
}

.landing-quiz-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

.landing-quiz-dot.is-active {
    width: 1.75rem;
    background: linear-gradient(90deg, #1cb0f6, #58cc02);
}

.landing-quiz-dot.is-done {
    background: #58cc02;
}

.landing-quiz-body--enter {
    animation: quizSlideIn 0.35s ease;
}

@keyframes quizSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

.landing-quiz-options--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .landing-quiz-options--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.landing-quiz-option__text {
    line-height: 1.35;
}

.landing-quiz-step {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.landing-quiz-progress {
    height: 0.4rem;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.landing-quiz-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #1cb0f6, #58cc02);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.landing-quiz-question {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.landing-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.landing-quiz-options.landing-quiz-options--grid {
    display: grid;
}

.landing-quiz-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.landing-quiz-option:hover:not(:disabled) {
    border-color: #1cb0f6;
    background: #eff6ff;
    transform: translateY(-1px);
}

.landing-quiz-option__letter {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 900;
}

.landing-quiz-option--correct {
    border-color: #58cc02 !important;
    background: rgba(88, 204, 2, 0.12) !important;
    color: #166534 !important;
}

.landing-quiz-option--correct .landing-quiz-option__letter {
    background: #58cc02;
    color: #fff;
}

.landing-quiz-option--wrong {
    border-color: #ff4b4b !important;
    background: rgba(255, 75, 75, 0.1) !important;
    color: #991b1b !important;
}

.landing-quiz-option--wrong .landing-quiz-option__letter {
    background: #ff4b4b;
    color: #fff;
}

.landing-quiz-option--disabled {
    cursor: default;
    opacity: 0.85;
}

.landing-quiz-feedback {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    font-weight: 600;
    line-height: 1.45;
    animation: quizFadeIn 0.35s ease;
}

@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.landing-quiz-feedback--ok {
    background: rgba(88, 204, 2, 0.12);
    border: 1px solid rgba(88, 204, 2, 0.3);
    color: #166534;
}

.landing-quiz-feedback--bad {
    background: rgba(255, 200, 0, 0.15);
    border: 1px solid rgba(255, 200, 0, 0.35);
    color: #854d0e;
}

.landing-quiz-feedback__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.landing-quiz-summary {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
    animation: quizFadeIn 0.4s ease;
}

.landing-quiz-summary__label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1rem;
}

.landing-quiz-summary__ring {
    --score-pct: 60;
    width: 8.5rem;
    height: 8.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#58cc02 calc(var(--score-pct) * 1%), #e2e8f0 0);
    position: relative;
}

.landing-quiz-summary__ring::before {
    content: '';
    position: absolute;
    inset: 0.45rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
}

.landing-quiz-summary__score {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.25;
    text-align: center;
}

.landing-quiz-summary__text {
    font-weight: 700;
    color: #64748b;
    line-height: 1.5;
}

.landing-quiz-retry {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.landing-quiz-retry:hover {
    text-decoration: underline;
}

/* Program timeline footnote */
.era-timeline-note {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 0.5rem;
    padding: 0 1.5rem;
}

/* Dark theme — landing components */
[data-theme="dark"] .marketing-page .landing-kicker {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(125, 211, 252, 0.3);
}

[data-theme="dark"] .marketing-page .landing-section--soft {
    background: linear-gradient(180deg, rgba(30, 45, 70, 0.65) 0%, rgba(22, 34, 55, 0.8) 100%);
    border-color: rgba(71, 85, 105, 0.35);
}

[data-theme="dark"] .marketing-page .landing-section--quiz {
    background: linear-gradient(135deg, rgba(28, 176, 246, 0.12) 0%, rgba(88, 204, 2, 0.08) 100%);
    border-color: rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .marketing-page .landing-section--program {
    background: linear-gradient(180deg, rgba(26, 39, 64, 0.7) 0%, rgba(20, 30, 50, 0.85) 100%);
    border-color: rgba(71, 85, 105, 0.35);
}

[data-theme="dark"] .marketing-page .landing-hero-card {
    background: rgba(26, 39, 64, 0.88);
    border-color: rgba(71, 85, 105, 0.5);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .marketing-page .landing-section-title {
    color: #f1f5f9;
}

[data-theme="dark"] .marketing-page .landing-section-sub {
    color: #94a3b8;
}

[data-theme="dark"] .marketing-page .landing-bento__cell {
    background: rgba(26, 39, 64, 0.85);
    border-color: rgba(71, 85, 105, 0.45);
}

[data-theme="dark"] .marketing-page .landing-bento__cell h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .marketing-page .landing-bento__cell p {
    color: #94a3b8;
}

[data-theme="dark"] .marketing-page .landing-bento__cell--accent {
    background: linear-gradient(145deg, rgba(28, 176, 246, 0.15), rgba(26, 39, 64, 0.9));
}

[data-theme="dark"] .marketing-page .landing-bento__cell--cta {
    background: linear-gradient(145deg, rgba(88, 204, 2, 0.12), rgba(26, 39, 64, 0.9));
}

[data-theme="dark"] .marketing-page .landing-quiz-stage {
    background: rgba(26, 39, 64, 0.96);
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .marketing-page .landing-quiz-dot {
    background: #cbd5e1;
}

[data-theme="dark"] .marketing-page .landing-quiz-dot.is-active {
    width: 1.75rem;
    background: linear-gradient(90deg, #1cb0f6, #58cc02);
}

[data-theme="dark"] .marketing-page .landing-quiz-dot.is-done {
    background: #58cc02;
}

[data-theme="dark"] .marketing-page .landing-quiz-summary__ring::before {
    background: rgba(26, 39, 64, 0.98);
}

[data-theme="dark"] .marketing-page .landing-quiz-summary__score {
    color: #f1f5f9;
}

[data-theme="dark"] .marketing-page .program-column__frame {
    background: linear-gradient(180deg, #3d3528 0%, #2a2418 50%, #1f1a12 100%);
    border-left-color: #6b5a3a;
    border-right-color: #6b5a3a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .marketing-page .program-column__pediment {
    background: linear-gradient(180deg, #a8894a, #7a6530);
}

[data-theme="dark"] .marketing-page .program-column__base {
    background: linear-gradient(180deg, #5c4d32, #3d3422);
}

[data-theme="dark"] .marketing-page .program-column__cap strong {
    color: #f1f5f9;
}

[data-theme="dark"] .marketing-page .era-timeline-note {
    color: #94a3b8;
}

[data-theme="dark"] .marketing-page .landing-quiz-step {
    color: #94a3b8;
}

[data-theme="dark"] .marketing-page .landing-quiz-progress {
    background: rgba(51, 65, 85, 0.6);
}

[data-theme="dark"] .marketing-page .landing-quiz-question {
    color: #f1f5f9;
}

[data-theme="dark"] .marketing-page .landing-quiz-option {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(71, 85, 105, 0.55);
    color: #e2e8f0;
}

[data-theme="dark"] .marketing-page .landing-quiz-option:hover:not(:disabled) {
    background: rgba(28, 176, 246, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
}

[data-theme="dark"] .marketing-page .landing-quiz-option__letter {
    background: rgba(51, 65, 85, 0.8);
    color: #94a3b8;
}

[data-theme="dark"] .marketing-page .landing-quiz-option--correct {
    background: rgba(88, 204, 2, 0.15) !important;
    color: #86efac !important;
}

[data-theme="dark"] .marketing-page .landing-quiz-option--wrong {
    background: rgba(255, 75, 75, 0.15) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .marketing-page .landing-quiz-feedback--ok {
    background: rgba(88, 204, 2, 0.15);
    border-color: rgba(88, 204, 2, 0.35);
    color: #86efac;
}

[data-theme="dark"] .marketing-page .landing-quiz-feedback--bad {
    background: rgba(255, 200, 0, 0.12);
    border-color: rgba(255, 200, 0, 0.3);
    color: #fde047;
}

[data-theme="dark"] .marketing-page .landing-quiz-summary__score {
    color: #f1f5f9;
}

[data-theme="dark"] .marketing-page .landing-quiz-summary__label {
    color: #94a3b8;
}

[data-theme="dark"] .marketing-page .landing-quiz-summary__text {
    color: #94a3b8;
}

/* Dark: lift flat section backgrounds */
[data-theme="dark"] .marketing-page section.bg-gray-900\/40,
[data-theme="dark"] .marketing-page section.bg-gray-900\/30,
[data-theme="dark"] .marketing-page section.bg-gray-900\/70 {
    background: linear-gradient(180deg, rgba(26, 39, 64, 0.55) 0%, rgba(20, 30, 50, 0.75) 100%) !important;
    backdrop-filter: blur(10px);
    border-color: rgba(71, 85, 105, 0.35) !important;
}

[data-theme="dark"] .marketing-page section.bg-white\/30,
[data-theme="dark"] .marketing-page section.bg-white\/40 {
    background: linear-gradient(180deg, rgba(30, 45, 70, 0.5) 0%, rgba(22, 34, 55, 0.65) 100%) !important;
    backdrop-filter: blur(10px);
}

/* FAQ accordion */
.marketing-page .accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.marketing-page .accordion-item.active .accordion-content {
    max-height: 24rem;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.marketing-page .accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.marketing-page .accordion-icon {
    transition: transform 0.25s ease;
}

/* =====================================================================
   LANDING V2 — reveal, glass, bento, tabs, stats, glow
   Appended last so component rules win specificity ties in dark mode.
   ===================================================================== */

/* ---- Scroll reveal animations (canonical — see also .fade-in-section alias above) ---- */
/* reveal rules consolidated with .fade-in-section at ~line 760 */

/* ---- CTA glow + theme toggle rotation ---- */
.landing-v2 .cta-glow {
    position: relative;
    animation: ctaPulse 2.6s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 0 var(--btn-success-shadow, #46a302), 0 0 0 0 rgba(88, 204, 2, 0.45); }
    50% { box-shadow: 0 4px 0 var(--btn-success-shadow, #46a302), 0 0 0 12px rgba(88, 204, 2, 0); }
}
.landing-v2 .btn-blue.cta-glow {
    animation: ctaPulseBlue 2.6s ease-in-out infinite;
}
@keyframes ctaPulseBlue {
    0%, 100% { box-shadow: 0 4px 0 var(--btn-primary-shadow, #1899d6), 0 0 0 0 rgba(28, 176, 246, 0.45); }
    50% { box-shadow: 0 4px 0 var(--btn-primary-shadow, #1899d6), 0 0 0 12px rgba(28, 176, 246, 0); }
}
.marketing-theme-toggle i { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.marketing-theme-toggle:hover i { transform: rotate(45deg) scale(1.1); }

/* ---- Hero glow orb + glass mock-up ---- */
.landing-v2 .hero-orb {
    background: radial-gradient(circle at 50% 50%, rgba(28, 176, 246, 0.55), rgba(88, 204, 2, 0.25) 55%, transparent 72%);
    animation: orbDrift 8s ease-in-out infinite;
}
@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(0, -18px) scale(1.06); }
}
.landing-v2 .glass-strong {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 70px rgba(15, 42, 78, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ---- Glass cards (audience / reviews / faq / blog cta) ---- */
.marketing-page .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 36px rgba(15, 42, 78, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.marketing-page .glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(28, 176, 246, 0.16);
    border-color: rgba(28, 176, 246, 0.4);
}

/* ---- Stats counters ---- */
.landing-v2 .stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(15, 42, 78, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.landing-v2 .stat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28, 176, 246, 0.16); }
.landing-v2 .stat-num {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1cb0f6, #58cc02);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing-v2 .stat-label {
    margin-top: 0.5rem;
    font-weight: 800;
    font-size: 0.85rem;
    color: #475569;
}

/* ---- Bento grid (platform features) ---- */
.landing-v2 .bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .landing-v2 .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 2rem; }
    .landing-v2 .bento-span-2 { grid-column: span 2; }
    .landing-v2 .bento-row-2 { grid-row: span 2; }
}
.landing-v2 .bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 30px rgba(15, 42, 78, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.landing-v2 .bento-card--feature:hover {
    transform: translateY(-6px);
    border-color: rgba(28, 176, 246, 0.55);
    box-shadow: 0 24px 50px rgba(28, 176, 246, 0.2);
}
.landing-v2 .bento-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.landing-v2 .bento-card__title { font-size: 1.25rem; font-weight: 900; color: #0f172a; margin-bottom: 0.4rem; }
.landing-v2 .bento-card__text { font-weight: 600; color: #475569; line-height: 1.55; }
.landing-v2 .bento-streak { display: flex; gap: 0.4rem; margin-top: auto; padding-top: 1.25rem; flex-wrap: wrap; }
.landing-v2 .bento-streak__day {
    width: 2.1rem; height: 2.1rem; border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800;
    background: #f1f5f9; color: #94a3b8;
}
.landing-v2 .bento-streak__day.is-on {
    background: linear-gradient(135deg, #58cc02, #46a302);
    color: #fff;
    box-shadow: 0 4px 10px rgba(88, 204, 2, 0.4);
}
.landing-v2 .bento-card--cta {
    background: linear-gradient(135deg, #1cb0f6, #1899d6);
    border: none;
    justify-content: center;
    color: #fff;
}
.landing-v2 .bento-card--cta .bento-card__title,
.landing-v2 .bento-card--cta .bento-card__text {
    color: #fff !important;
}
.landing-v2 .bento-card--cta .bento-card__text {
    opacity: 0.92;
}
.landing-v2 .bento-card--cta:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(28, 176, 246, 0.35); }

/* ---- How it works: tabs ---- */
.landing-v2 .feature-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 2.5rem 0;
}
.landing-v2 .feature-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    cursor: pointer;
    transition: all 0.25s ease;
}
.landing-v2 .feature-tab:hover { color: #1cb0f6; border-color: rgba(28, 176, 246, 0.5); transform: translateY(-2px); }
.landing-v2 .feature-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #1cb0f6, #1899d6);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(28, 176, 246, 0.35);
}
.landing-v2 .feature-stage {
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(15, 42, 78, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}
.landing-v2 .feature-panel { display: none; }
.landing-v2 .feature-panel.active {
    display: grid;
    grid-template-columns: 1fr;
    animation: fadeIn 0.4s ease;
}
@media (min-width: 768px) {
    .landing-v2 .feature-panel.active { grid-template-columns: 1.1fr 1fr; }
}
.landing-v2 .feature-panel__text { padding: 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.landing-v2 .feature-panel__step {
    align-self: flex-start;
    font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em;
    color: #1cb0f6; background: rgba(28, 176, 246, 0.12);
    padding: 0.35rem 0.85rem; border-radius: 9999px; margin-bottom: 1rem;
}
.landing-v2 .feature-panel__text h3 { font-size: 1.6rem; font-weight: 900; color: #0f172a; margin-bottom: 0.75rem; }
.landing-v2 .feature-panel__text p { font-weight: 600; color: #475569; line-height: 1.6; margin-bottom: 1.25rem; }
.landing-v2 .feature-panel__list { display: flex; flex-direction: column; gap: 0.6rem; }
.landing-v2 .feature-panel__list li { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; color: #334155; }
.landing-v2 .feature-panel__list i { color: #58cc02; }
.landing-v2 .feature-panel__media { position: relative; min-height: 240px; }
.landing-v2 .feature-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.landing-v2 .feature-panel__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(28, 176, 246, 0.12), transparent 60%);
}

/* ---- Teacher card ---- */
.landing-v2 .teacher-card {
    background: linear-gradient(135deg, #1cb0f6, #1565c0);
    box-shadow: 0 30px 70px rgba(21, 101, 192, 0.3);
}

/* =====================================================================
   LANDING V2 — DARK THEME
   ===================================================================== */
[data-theme="dark"] .landing-v2 .glass-strong {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(28, 176, 246, 0.12);
}
[data-theme="dark"] .marketing-page .glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .marketing-page .glass-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 22px 50px rgba(56, 189, 248, 0.18);
}
[data-theme="dark"] .landing-v2 .stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .landing-v2 .stat-card:hover { box-shadow: 0 18px 44px rgba(56, 189, 248, 0.18); }
[data-theme="dark"] .landing-v2 .stat-label { color: #94a3b8; }
[data-theme="dark"] .landing-v2 .stat-num {
    background: linear-gradient(135deg, #38bdf8, #65d006);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .landing-v2 .bento-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .landing-v2 .bento-card--feature:hover {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 24px 54px rgba(56, 189, 248, 0.22);
}
[data-theme="dark"] .landing-v2 .bento-card__title { color: #f1f5f9; }
[data-theme="dark"] .landing-v2 .bento-card__text { color: #94a3b8; }
[data-theme="dark"] .landing-v2 .bento-streak__day { background: rgba(255, 255, 255, 0.08); color: #64748b; }
[data-theme="dark"] .landing-v2 .bento-streak__day.is-on {
    background: linear-gradient(135deg, #58cc02, #46a302);
    color: #fff;
    box-shadow: 0 4px 10px rgba(88, 204, 2, 0.45);
}
[data-theme="dark"] .landing-v2 .bento-card--cta { background: linear-gradient(135deg, #0ea5e9, #1565c0); }
[data-theme="dark"] .landing-v2 .bento-card--cta .bento-card__title,
[data-theme="dark"] .landing-v2 .bento-card--cta .bento-card__text {
    color: #fff !important;
    opacity: 1;
}
[data-theme="dark"] .landing-v2 .bento-card--cta .bento-card__text {
    opacity: 0.92;
}
[data-theme="dark"] .landing-v2 .feature-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}
[data-theme="dark"] .landing-v2 .feature-tab:hover { color: #38bdf8; border-color: rgba(56, 189, 248, 0.5); }
[data-theme="dark"] .landing-v2 .feature-tab.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.4);
}
[data-theme="dark"] .landing-v2 .feature-stage {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .landing-v2 .feature-panel__text h3 { color: #f1f5f9; }
[data-theme="dark"] .landing-v2 .feature-panel__text p { color: #94a3b8; }
[data-theme="dark"] .landing-v2 .feature-panel__list li { color: #cbd5e1; }
[data-theme="dark"] .landing-v2 .feature-panel__step { color: #38bdf8; background: rgba(56, 189, 248, 0.16); }
[data-theme="dark"] .landing-v2 .teacher-card {
    background: linear-gradient(135deg, rgba(28, 176, 246, 0.18), rgba(21, 101, 192, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .landing-v2 .hero-orb {
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.5), rgba(101, 208, 6, 0.2) 55%, transparent 72%);
}

/* =====================================================================
   PUBLIC PAGES V3 — Dynamic Island nav, mobile dock, horizontal timeline,
   premium accents & bug-fix utilities.
   ===================================================================== */

/* ---- Cookie banner (Safari-safe dismiss) ---- */
.cookie-banner[hidden],
.cookie-banner--hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

/* ---- Global guards: kill horizontal scroll, make room for mobile dock ---- */
.marketing-page { overflow-x: hidden; }
.marketing-page > main,
.marketing-page main.relative { overflow-x: hidden; min-width: 0; }
@media (max-width: 767px) {
    /* Dock clearance lives on the footer only — body padding caused empty scroll past footer */
    .marketing-page main,
    .marketing-page > main {
        padding-bottom: 0.5rem;
    }
    .marketing-footer {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Z-index stack: progress(61) < dock(50) < island menu(60) */
.reading-progress-track { z-index: 61; }
.mk-dock { z-index: 50; }

/* ---- Reading progress (fixed thin line on top) ---- */
.reading-progress-track {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    background: transparent; z-index: 61; pointer-events: none;
}
.reading-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #1cb0f6, #6366f1);
    transition: width 0.1s linear;
}

/* ---- Dynamic Island floating nav ---- */
.marketing-page .marketing-island,
.marketing-page .marketing-footer {
    font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.marketing-island-wrap {
    position: sticky;
    top: 1rem;
    z-index: 50;
    width: 100%;
    padding: 0 1rem;
    margin-top: 1rem;
}

.marketing-island {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0.65rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 42, 78, 0.1);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.marketing-island--landing {
    max-width: 72rem;
    border-radius: 1.75rem;
    position: relative;
}

.marketing-island__nav { padding: 0.1rem 0; width: 100%; min-width: 0; }

/* Three-zone bar (standard: brand left, actions right) */
.marketing-island__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.marketing-island__slot {
    display: flex;
    align-items: center;
    min-width: 0;
}

.marketing-island__slot--start {
    justify-self: start;
    gap: 0.25rem;
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.marketing-island__slot--end {
    justify-self: end;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* ---- Landing header: brand | centered nav | actions ---- */
.marketing-island__bar--landing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
}

.marketing-island__col {
    display: flex;
    align-items: center;
    min-width: 0;
}

.marketing-island__col--left {
    grid-column: 1;
    justify-self: start;
}

.marketing-island__col--center {
    grid-column: 2;
    justify-self: center;
}

.marketing-island__col--right {
    grid-column: 3;
    justify-self: end;
    gap: 0.375rem;
    flex-shrink: 0;
}

.marketing-island__desktop-nav {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
}

.marketing-island__cta--landing {
    display: none;
}

/* Планшет і десктоп: навігація по центру, без гамбургера */
@media (min-width: 768px) {
    .marketing-island__desktop-nav {
        display: flex;
    }

    .marketing-island__menu-btn {
        display: none !important;
    }

    .marketing-island__cta--landing {
        display: inline-flex;
    }

    .marketing-island__menu {
        display: none !important;
    }
}

/* Телефон: бренд зліва, тема + меню справа */
@media (max-width: 767px) {
    .marketing-island__bar--landing {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .marketing-island__col--center {
        display: none;
    }

    .marketing-island__col--right {
        grid-column: 2;
    }

    .marketing-island__cta--landing {
        display: none !important;
    }

    .marketing-island__menu-btn {
        display: inline-flex !important;
    }

    .marketing-island__menu.is-open:not(.hidden) {
        display: block;
    }

    body.landing-menu-open {
        overflow: hidden;
    }
}

.marketing-island__menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.75rem;
    color: #475569;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}

.marketing-island__menu-btn:hover {
    color: #1cb0f6;
    background: rgba(28, 176, 246, 0.08);
}
[data-theme="dark"] .marketing-island__menu-btn { color: #cbd5e1; }
[data-theme="dark"] .marketing-island__menu-btn:hover { background: rgba(255, 255, 255, 0.08); }

.marketing-island__menu { z-index: 60; }
.marketing-island.is-scrolled,
.marketing-island--landing.is-scrolled,
.marketing-island--landing.header-scrolled {
    box-shadow: 0 16px 44px rgba(15, 42, 78, 0.16);
    background: rgba(255, 255, 255, 0.85);
}

.marketing-island__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 44px;
    min-height: 44px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.marketing-island__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    text-decoration: none;
    flex-shrink: 1;
}

.marketing-island__logo {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.85rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    background: linear-gradient(135deg, #1cb0f6, #4f46e5);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.marketing-island__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
    gap: 0.1rem;
}

.marketing-island__brand-text strong {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.marketing-island__brand-text small {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    max-width: 9.5rem;
}

.marketing-island__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    min-height: 44px;
    padding: 0.55rem 1.05rem;
    border-radius: 9999px;
    color: #fff;
    background: linear-gradient(135deg, #1cb0f6, #4f46e5);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.marketing-island__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.42);
}

[data-theme="dark"] .marketing-page .marketing-island,
[data-theme="dark"] .marketing-page .marketing-island--landing {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

[data-theme="dark"] .marketing-page .marketing-island.is-scrolled,
[data-theme="dark"] .marketing-page .marketing-island--landing.is-scrolled,
[data-theme="dark"] .marketing-page .marketing-island--landing.header-scrolled {
    background: rgba(15, 23, 42, 0.85) !important;
}

[data-theme="dark"] .marketing-island__brand-text strong { color: #f1f5f9; }
[data-theme="dark"] .marketing-island__brand-text small { color: #a5b4fc; }

@media (max-width: 639px) {
    .marketing-island { padding: 0.5rem 0.6rem; }
    .marketing-island__back { padding: 0.45rem 0.55rem; }
    .marketing-island__brand { gap: 0.4rem; }
}

/* ---- Mobile dock (macOS style) ---- */
.mk-dock { display: none; }
@media (max-width: 767px) {
    .mk-dock {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        z-index: 50;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.35rem;
        padding: 0.45rem 0.5rem;
        border-radius: 1.5rem;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(226, 232, 240, 0.85);
        box-shadow: 0 14px 40px rgba(15, 42, 78, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
    }
    .mk-dock__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-height: 44px;
        min-width: 44px;
        padding: 0.45rem 0.35rem;
        border: none;
        background: none;
        cursor: pointer;
        font-size: 0.68rem;
        font-weight: 700;
        color: #64748b;
        text-decoration: none;
        border-radius: 1rem;
        transition: color 0.2s, background 0.2s, transform 0.15s;
        -webkit-tap-highlight-color: transparent;
    }
    .mk-dock__item:active { transform: scale(0.96); }
    .mk-dock__item i { font-size: 1.2rem; }
    .mk-dock__item.is-active { color: #4f46e5; background: rgba(99, 102, 241, 0.08); }
    [data-theme="dark"] .mk-dock {
        background: rgba(15, 23, 42, 0.88);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    }
    [data-theme="dark"] .mk-dock__item { color: #94a3b8; }
    [data-theme="dark"] .mk-dock__item.is-active { color: #a5b4fc; background: rgba(129, 140, 248, 0.12); }
}

/* ---- Horizontal timeline (eras) ---- */
.era-section { position: relative; }
.era-timeline {
    display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1.5rem; cursor: grab;
    scrollbar-width: none;
}
.era-timeline::-webkit-scrollbar { display: none; }
.era-timeline.is-grabbing { cursor: grabbing; }
.era-card {
    scroll-snap-align: center; flex: 0 0 auto;
    width: 17rem; border-radius: 1.75rem; overflow: hidden;
    background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 30px rgba(15, 42, 78, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.era-card:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 22px 48px rgba(79, 70, 229, 0.18); }
.era-card__img { height: 9.5rem; overflow: hidden; position: relative; }
.era-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.era-card:hover .era-card__img img { transform: scale(1.06); }
.era-card__year {
    position: absolute; bottom: 0.75rem; left: 0.75rem;
    font-weight: 900; font-size: 0.72rem; color: #fff; letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem; border-radius: 9999px; background: rgba(79, 70, 229, 0.85);
}
.era-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.era-card__body h3 { font-size: 1.1rem; font-weight: 900; color: #0f172a; margin-bottom: 0.35rem; }
.era-card__body p { font-weight: 600; color: #475569; font-size: 0.88rem; line-height: 1.5; }
.era-arrows { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.5rem; }
.era-arrow {
    width: 3rem; height: 3rem; border-radius: 9999px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(226, 232, 240, 0.9);
    color: #4f46e5; font-size: 1rem; box-shadow: 0 8px 20px rgba(15, 42, 78, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}
.era-arrow:hover { transform: translateY(-2px); background: #4f46e5; color: #fff; }
[data-theme="dark"] .era-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .era-card__body h3 { color: #f1f5f9; }
[data-theme="dark"] .era-card__body p { color: #94a3b8; }
[data-theme="dark"] .era-arrow { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: #818cf8; }
[data-theme="dark"] .era-arrow:hover { background: #4f46e5; color: #fff; }

/* ---- Premium blog bento cards ---- */
.blog-bento {
    display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 640px) { .blog-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-bento { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
    .blog-bento .blog-card.is-feature { grid-column: span 2; grid-row: span 2; }
}
.blog-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 30px rgba(15, 42, 78, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 22px 50px rgba(79, 70, 229, 0.18); }
[data-theme="dark"] .blog-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }

/* ---- Typography bug-fixes: balance headings, wrap long words ---- */
.landing-v2 .landing-section-title,
.landing-v2 .landing-section-sub,
.landing-v2 h1,
.landing-v2 .bento-card__title { text-wrap: balance; }
.landing-v2 .bento-card__text,
.landing-v2 .glass-card p,
.landing-v2 .feature-panel__text p,
.marketing-island__brand-text strong { overflow-wrap: anywhere; word-break: break-word; }

/* ---- Landing nav links ---- */
.marketing-nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: #475569;
    transition: color 0.2s, background 0.2s;
}
.marketing-nav-link:hover { color: #1cb0f6; background: rgba(28, 176, 246, 0.08); }
.marketing-nav-link.nav-active { color: #1cb0f6; background: rgba(28, 176, 246, 0.1); font-weight: 700; }
.marketing-nav-link--blog {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.marketing-nav-mobile-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    min-height: 44px;
    color: #475569;
    transition: color 0.2s, background 0.2s;
}
.marketing-nav-mobile-link:hover,
.marketing-nav-mobile-link.mobile-nav-active {
    color: #1cb0f6;
    background: rgba(28, 176, 246, 0.08);
    font-weight: 700;
}
[data-theme="dark"] .marketing-nav-link { color: #cbd5e1; }
[data-theme="dark"] .marketing-nav-link:hover,
[data-theme="dark"] .marketing-nav-link.nav-active { color: #38bdf8; }
[data-theme="dark"] .marketing-nav-mobile-link { color: #cbd5e1; }
[data-theme="dark"] .marketing-nav-mobile-link:hover,
[data-theme="dark"] .marketing-nav-mobile-link.mobile-nav-active { color: #38bdf8; }

/* ---- Premium footer typography ---- */
.marketing-footer__logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1cb0f6, #4f46e5);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}
.marketing-footer__brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
}
.marketing-footer__tagline {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: #6b7280;
    max-width: 22rem;
    margin-bottom: 2rem;
    text-wrap: balance;
}
.marketing-footer__heading {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0f172a;
    margin-bottom: 1.25rem;
}
.marketing-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.marketing-footer__link {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #6b7280;
    transition: color 0.2s ease;
}
.marketing-footer__link:hover {
    color: #6366f1;
}
.marketing-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: #9ca3af;
}
@media (min-width: 640px) {
    .marketing-footer__bottom {
        flex-direction: row;
    }
}
.marketing-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 9999px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid transparent;
    font-size: 1.125rem;
    transition: color 0.2s, background 0.2s, transform 0.2s, border-color 0.2s;
}
.marketing-footer__social:hover {
    color: #fff;
    background: #6366f1;
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}
[data-theme="dark"] .marketing-footer__brand { color: #f1f5f9; }
[data-theme="dark"] .marketing-footer__tagline { color: #9ca3af; }
[data-theme="dark"] .marketing-footer__heading { color: #e2e8f0; }
[data-theme="dark"] .marketing-footer__link { color: #9ca3af; }
[data-theme="dark"] .marketing-footer__link:hover { color: #a5b4fc; }
[data-theme="dark"] .marketing-footer__bottom { border-color: rgba(255, 255, 255, 0.1); color: #6b7280; }
[data-theme="dark"] .marketing-footer__social {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .marketing-footer__social:hover {
    color: #fff;
    background: #6366f1;
}

/* ---- Audience + pains asymmetrical bento ---- */
.audience-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}
@media (min-width: 768px) {
    .audience-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .audience-bento__hero {
        grid-column: span 2;
        grid-row: span 2;
    }
}
.audience-bento__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 40px rgba(15, 42, 78, 0.08);
    overflow: hidden;
}
@media (min-width: 768px) {
    .audience-bento__hero { grid-template-columns: 1.2fr 1fr; padding: 2.5rem; }
}
.audience-bento__hero-content .landing-section-title { margin: 0.5rem 0 1.25rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.audience-bento__list {
    display: flex; flex-direction: column; gap: 0.85rem;
    list-style: none; padding: 0; margin: 0;
}
.audience-bento__list li {
    display: flex; gap: 0.75rem; align-items: flex-start;
    font-weight: 700; font-size: 0.95rem; line-height: 1.5;
    color: #334155;
}
.audience-bento__list i { color: #58cc02; margin-top: 0.2rem; flex-shrink: 0; }
.audience-bento__hero-visual {
    border-radius: 1.5rem; overflow: hidden;
    min-height: 12rem; aspect-ratio: 4/3;
}
.audience-bento__hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.audience-bento__pain {
    padding: 2rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 30px rgba(15, 42, 78, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.audience-bento__pain:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 22px 48px rgba(79, 70, 229, 0.16);
}
.audience-bento__pain--accent {
    background: linear-gradient(135deg, rgba(28, 176, 246, 0.08), rgba(99, 102, 241, 0.06));
    border-color: rgba(28, 176, 246, 0.25);
}
.audience-bento__emoji { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.audience-bento__pain h3 { font-size: 1.2rem; font-weight: 900; color: #0f172a; margin-bottom: 0.5rem; }
.audience-bento__pain p { font-weight: 600; color: #475569; line-height: 1.55; }

[data-theme="dark"] .audience-bento__hero,
[data-theme="dark"] .audience-bento__pain {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .audience-bento__pain--accent {
    background: linear-gradient(135deg, rgba(28, 176, 246, 0.12), rgba(99, 102, 241, 0.08));
}
[data-theme="dark"] .audience-bento__list li { color: #cbd5e1; }
[data-theme="dark"] .audience-bento__pain h3 { color: #f1f5f9; }
[data-theme="dark"] .audience-bento__pain p { color: #94a3b8; }
[data-theme="dark"] .audience-bento__pain:hover { border-color: rgba(129, 140, 248, 0.5); }

/* ---- Legal pages: always-visible readable prose ---- */
.legal-doc,
.legal-prose {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
.legal-prose h3,
.legal-prose h4 {
    color: #0f172a;
    font-weight: 900;
}
.legal-prose p,
.legal-prose li {
    color: #374151;
}
.legal-prose a {
    color: #1cb0f6;
    font-weight: 800;
}
.legal-prose a:hover { text-decoration: underline; }
[data-theme="dark"] .legal-prose h3,
[data-theme="dark"] .legal-prose h4 { color: #f1f5f9 !important; }
[data-theme="dark"] .legal-prose p,
[data-theme="dark"] .legal-prose li { color: #cbd5e1 !important; }
[data-theme="dark"] .legal-prose strong { color: #e2e8f0 !important; }
[data-theme="dark"] .legal-prose a { color: #38bdf8 !important; }
