

        /* Theme Variables */
        :root {
            --bg-gradient-start: #e9ecef;
            --bg-gradient-mid: #f1f3f5;
            --bg-gradient-end: #e9ecef;
            --text-color: #333;
            --card-bg: #ffffff;
            --card-shadow: rgba(0, 0, 0, 0.1);
            --hero-bg: rgba(255, 255, 255, 0.95);
            --input-bg: #ffffff;
            --input-border: #ddd;
            --topic-card-bg: #ffffff;
            --footer-bg: #e8f1ed;
            --footer-text: #2e3a3a;
            --footer-link: #007b6e;

            /* Brand ramps. Two audiences, one structure: each hue has a
               dark TEXT stop (AA at any size) and a light FILL stop that is
               never placed behind white text.
               Adult = purple, Youth = green (swapped). */
            --adult-text:   #6A5490;  /* 6.4:1 on light surfaces */
            --adult-cta-a:  #6A5490;  /* 6.4:1 with white label */
            --adult-cta-b:  #54407A;  /* 8.8:1 with white label */
            --adult-fill:   #B298DC;  /* backgrounds, borders, icons only */
            --adult-shadow: rgba(84, 64, 122, 0.3);

            --youth-text:   #2C5F4F;  /* 7.4:1 on light surfaces */
            --youth-cta-a:  #2C7A5C;  /* 5.2:1 with white label */
            --youth-cta-b:  #23604A;  /* 7.4:1 with white label */
            --youth-fill:   #6BB896;  /* backgrounds, borders, icons only */
            --youth-shadow: rgba(35, 96, 74, 0.3);

            --text-muted-aa: #5A6474; /* 5.2:1 — replaces #999 / #9ca3af */
        }

        [data-theme="dark"] {
            --bg-gradient-start: #1a1a1a;
            --bg-gradient-mid: #2d2d2d;
            --bg-gradient-end: #1a1a1a;
            --text-color: #e0e0e0;
            --card-bg: #2d2d2d;
            --card-shadow: rgba(0, 0, 0, 0.5);
            --hero-bg: rgba(45, 45, 45, 0.95);
            --input-bg: #3d3d3d;
            --input-border: #555;
            --topic-card-bg: #2d2d2d;
            --footer-bg: #e8f1ed;
            --footer-text: #2e3a3a;
            --footer-link: #007b6e;
        }

        /* Dark mode for Psychology and Youth pages */
        [data-theme="dark"] .psychology-page-section,
        [data-theme="dark"] .youth-page-section,
        [data-theme="dark"] .our-story-page-section {
            background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
        }

        [data-theme="dark"] .psychology-page-section h1,
        [data-theme="dark"] .youth-page-section h1,
        [data-theme="dark"] .our-story-page-section h1 {
            color: var(--text-color) !important;
        }

        [data-theme="dark"] .psychology-page-section .youth-subtitle,
        [data-theme="dark"] .youth-page-section .youth-subtitle {
            color: #aaa !important;
        }

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

        /* Enhanced touch responsiveness for all interactive elements */
        button, a, [role="button"], [onclick] {
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            -webkit-touch-callout: none;
            touch-action: manipulation;
        }

        /* Ensure minimum touch target size (44x44px) for mobile */
        @media (max-width: 1024px) {
            button:not(.cta-button):not(.plan-subscribe-btn) {
                min-width: 44px;
                min-height: 44px;
            }
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            margin: 0;
            padding: 0;
            height: 100%;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
            color: var(--text-color);
            overflow-x: hidden;
            margin: 0;
            padding: 0;
            transition: background 0.3s ease, color 0.3s ease, margin-right 0.4s ease;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            max-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        /* Prevent zoom on input focus for mobile */
        @media (max-width: 768px) {
            input, select, textarea {
                font-size: 16px !important;
            }
        }


        .navbar {
            background: transparent !important;
            padding: 1.2rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 9999;
            border-bottom: none;
            box-shadow: none;
            height: 80px;
        }

        /* Default white text for home page (transparent navbar) */
        .navbar .logo {
            color: #ffffff;
        }

        .navbar .nav-links a {
            color: #ffffff;
        }

        .navbar .hamburger span {
            background: #ffffff;
        }

        .navbar .mobile-chevron {
            color: #ffffff;
        }

        /* Black text on ALL subpages (navbar stays transparent) */
        body.on-subpage .navbar .logo {
            color: #000000 !important;
        }

        body.on-subpage .navbar .nav-links a {
            color: #000000 !important;
        }

        body.on-subpage .navbar .hamburger span {
            background: #000000 !important;
        }

        body.on-subpage .navbar .mobile-chevron {
            color: #000000 !important;
        }

        /* Share button color on subpages */
        body.on-subpage .share-button {
            color: #000000 !important;
        }


        .share-button {
            background: none;
            color: white;
            border: none;
            padding: 8px;
            border-radius: 0;
            cursor: pointer;
            box-shadow: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            min-height: 44px;
            width: auto;
            height: auto;
            position: relative;
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
            touch-action: manipulation;
        }

        /* Hide share button on desktop only */
        @media (min-width: 1025px) {
            .share-button {
                display: none !important;
            }
            .share-button-mobile {
                display: none !important;
            }
        }

        /* Mobile/Tablet Share Button - Fixed Position */
        .share-button-mobile {
            background: none;
            color: white;
            border: none;
            padding: 8px;
            border-radius: 0;
            cursor: pointer;
            box-shadow: none;
            transition: all 0.3s ease;
            display: none;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            min-height: 44px;
            width: 44px;
            height: 44px;
            position: fixed;
            right: 60px;
            top: 14px;
            z-index: 10000;
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
            touch-action: manipulation;
        }

        .share-button-mobile svg {
            width: 20px;
            height: 20px;
        }

        .share-button-mobile:active {
            transform: scale(0.9);
        }

        .share-button-mobile:hover {
            transform: scale(1.1);
        }

        /* Show mobile share button on mobile and tablet only */
        @media (max-width: 1024px) {
            .share-button {
                display: none !important;
            }

            .share-button-mobile {
                display: flex !important;
            }
        }

        /* Color variations for subpages - mobile share button */
        body.on-psychology-page .share-button-mobile {
            color: #4CAF50;
        }

        body.on-psychology-page .share-button-mobile:hover {
            color: #45a049;
        }

        body.on-youth-page .share-button-mobile {
            color: #2C5F4F;
        }

        body.on-youth-page .share-button-mobile:hover {
            color: #4A9B7F;
        }

        body.on-subpage .share-button-mobile {
            color: #000000;
        }

        .share-button:active {
            transform: scale(0.9);
        }

        .share-button:hover {
            transform: scale(1.1);
        }

        /* Green icon on Psychology page */
        body.on-psychology-page .share-button {
            color: #4CAF50;
        }

        body.on-psychology-page .share-button:hover {
            color: #45a049;
        }

        /* Purple icon on Youth page */
        body.on-youth-page .share-button {
            color: #2C5F4F;
        }

        body.on-youth-page .share-button:hover {
            color: #4A9B7F;
        }

        .share-button svg {
            width: 20px;
            height: 20px;
        }

        /* Share button and hamburger both on right - share left of hamburger */
        @media (max-width: 768px) {
            .share-button {
                right: 55px;
                top: 22px;
            }
        }

        /* Theme Toggle Button */
        .theme-toggle {
            background: transparent;
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            font-size: 14px;
            padding: 8px 16px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Poppins', sans-serif;
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .theme-toggle svg {
            width: 18px;
            height: 18px;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
            touch-action: manipulation;
            padding: 12px;
            z-index: 10001;
            position: relative;
            min-width: 44px;
            min-height: 44px;
            align-items: center;
            justify-content: center;
        }

        /* Ensure hamburger is hidden on desktop */
        @media (min-width: 1025px) {
            .hamburger {
                display: none !important;
            }
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: white;
            transition: all 0.3s;
            pointer-events: none;
            display: block;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        /* Chevron button for mobile/tablet ONLY - hidden on desktop */
        .mobile-chevron {
            display: none !important;
            background: transparent;
            border: none;
            color: white;
            cursor: pointer;
            padding: 12px;
            margin-left: 12px;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
            min-height: 44px;
            min-width: 44px;
            height: 44px;
            width: 44px;
            border-radius: 8px;
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
            touch-action: manipulation;
            z-index: 10001;
            position: relative;
        }

        .mobile-chevron:active {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(0.95);
        }

        .mobile-chevron:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .mobile-chevron svg {
            width: 24px;
            height: 24px;
            transition: transform 0.3s ease;
            display: block;
            pointer-events: none;
        }

        .mobile-chevron.active svg {
            transform: rotate(180deg);
        }

        .logo-container {
            display: flex;
            align-items: center;
            height: 100%;
        }

        .logo {
            order: 1;  /* Logo first */
        }

        .mobile-chevron {
            order: 2;  /* Chevron second (after logo) */
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: white !important;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
            transition: opacity 0.3s;
        }

        .logo:hover {
            opacity: 0.85;
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
            font-family: 'Poppins', sans-serif;
            z-index: 10000;
            margin-left: auto;
        }

        .nav-links a {
            color: #ffffff !important;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            font-family: 'Poppins', sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 1.3;
        }

        .nav-links a .subtitle {
            font-size: 0.5625rem;
            font-weight: 400;
            opacity: 0.85;
        }

        .nav-links a:hover {
            color: #ffffff !important;
            transform: translateY(-2px);
        }

        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 100px 5% 0;
            position: relative;
            background: #1B1330 url('https://www.psychologyai.co.uk/assets/random/Background.jpg') 75% center / cover no-repeat;
            width: 100%;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 0;
        }

        .hero > * {
            position: relative;
            z-index: 1;
        }

        .topic-sidebar {
            position: absolute;
            left: 0;
            top: 20px;
            width: 300px;
            height: calc(100% - 20px);
            overflow: hidden;
            padding: 0;
            background: linear-gradient(145deg, var(--card-bg) 0%, var(--bg-gradient-mid) 100%);
            border-radius: 0;
            border-right: 2px solid var(--input-border);
            box-shadow: 4px 0 20px var(--card-shadow);
            transition: all 0.3s ease;
            display: none; /* Hidden from main page */
            z-index: 1;
        }

        /* Mobile/Tablet topic sidebar - slide from left with three columns */
        .mobile-topic-sidebar {
            position: fixed;
            left: -100%;
            top: 80px;
            width: 100vw;
            height: calc(100vh - 80px - 40px);
            overflow: hidden;
            padding: 0;
            /* Glassmorphism Style with fallback */
            background: rgba(255, 255, 255, 0.8);
            /* Backdrop blur for glassmorphism effect */
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-radius: 0 0 20px 20px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-top: none;
            border-right: none;
            /* Enhanced shadow for depth */
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                        inset 0 1px 0 rgba(255, 255, 255, 0.5),
                        0 1px 2px rgba(0, 0, 0, 0.05);
            transition: left 0.4s ease, background 0.3s ease;
            z-index: 9000;
            display: none;
        }

        /* Dark mode glassmorphism */
        [data-theme="dark"] .mobile-topic-sidebar {
            background: rgba(30, 30, 30, 0.8);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-top: none;
            border-right: none;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1),
                        0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .mobile-topic-sidebar.active {
            left: 0;
        }

        /* Desktop behavior for subpages: Make mobile sidebar permanently visible */
        @media (min-width: 1024px) {
            /* Show mobile sidebar permanently when on Psychology, Youth, or topic subpages */
            body.on-psychology-page .mobile-topic-sidebar,
            body.on-youth-page .mobile-topic-sidebar,
            body.on-topic-page .mobile-topic-sidebar {
                display: block !important;
                position: fixed;
                left: 0 !important;
                top: 80px;
                width: 320px;
                height: calc(100vh - 80px);
                transition: none;
                z-index: 900;
            }

            /* Hide chevron button on desktop for subpages */
            body.on-psychology-page .mobile-chevron,
            body.on-youth-page .mobile-chevron,
            body.on-topic-page .mobile-chevron {
                display: none !important;
            }

            /* Adjust content to shift right when sidebar is visible on desktop */
            body.on-psychology-page .psychology-page-section > div,
            body.on-youth-page .youth-page-section > div,
            body.on-topic-page .about-section > div {
                margin-left: 320px;
                transition: margin-left 0.3s ease;
            }

            /* Optimize sidebar layout for desktop */
            body.on-psychology-page .sidebar-three-col-container,
            body.on-youth-page .sidebar-three-col-container,
            body.on-topic-page .sidebar-three-col-container {
                padding: 20px 16px;
                gap: 12px;
            }

            body.on-psychology-page .sidebar-canvas-col,
            body.on-youth-page .sidebar-canvas-col,
            body.on-topic-page .sidebar-canvas-col {
                display: none; /* Hide the Pixi canvas on desktop to save space */
            }

            body.on-psychology-page .sidebar-bar-col,
            body.on-youth-page .sidebar-bar-col,
            body.on-topic-page .sidebar-bar-col {
                display: none; /* Hide the white bar on desktop */
            }

            body.on-psychology-page .sidebar-topics-col,
            body.on-youth-page .sidebar-topics-col,
            body.on-topic-page .sidebar-topics-col {
                max-width: 100%;
                min-width: auto;
                width: 100%;
                padding: 0 8px;
            }

            /* Adjust topic items for desktop */
            body.on-psychology-page .sidebar-topic-item,
            body.on-youth-page .sidebar-topic-item,
            body.on-topic-page .sidebar-topic-item {
                padding: 10px 12px;
                margin-bottom: 8px;
                border-radius: 10px;
            }

            body.on-psychology-page .sidebar-topic-avatar,
            body.on-youth-page .sidebar-topic-avatar,
            body.on-topic-page .sidebar-topic-avatar {
                width: 48px;
                height: 48px;
                flex: 0 0 48px;
            }

            body.on-psychology-page .sidebar-topic-title,
            body.on-youth-page .sidebar-topic-title,
            body.on-topic-page .sidebar-topic-title {
                font-size: 14px;
            }

            body.on-psychology-page .sidebar-topic-subtitle,
            body.on-youth-page .sidebar-topic-subtitle,
            body.on-topic-page .sidebar-topic-subtitle {
                font-size: 12px;
            }

            /* Align footer and resources section when sidebar is visible */
            body.on-psychology-page .resources-section,
            body.on-youth-page .resources-section,
            body.on-topic-page .resources-section,
            body.on-psychology-page .footer,
            body.on-youth-page .footer,
            body.on-topic-page .footer {
                margin-left: 320px;
                transition: margin-left 0.3s ease;
            }

            /* Align bottom input bar when sidebar is visible */
            body.on-psychology-page .bottom-input-container,
            body.on-youth-page .bottom-input-container,
            body.on-topic-page .bottom-input-container {
                left: 320px;
                transition: left 0.3s ease;
            }
        }

        /* Three-column container */
        .sidebar-three-col-container {
            display: flex;
            gap: 20px;
            align-items: flex-start;
            width: 100%;
            height: 100%;
            padding: 24px;
            box-sizing: border-box;
            overflow: hidden;
            background: transparent;
        }

        /* Left column: Pixi canvas */
        .sidebar-canvas-col {
            width: 220px;
            min-width: 220px;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            height: 100%;
        }

        #sidebar-pixi-root {
            width: 100%;
            border-radius: 10px;
            overflow: visible;
            box-shadow: 0 8px 26px rgba(10,10,10,0.09);
        }

        .sidebar-canvas {
            width: 100%;
            border-radius: 10px;
            display: block;
        }

        /* Middle column: White bar */
        .sidebar-bar-col {
            width: 160px;
            min-width: 160px;
            display: flex;
            justify-content: center;
            height: 100%;
        }

        .sidebar-white-bar {
            width: 100%;
            border-radius: 12px;
            background: var(--card-bg);
            box-shadow: 0 8px 20px var(--card-shadow);
            height: 100%;
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        /* Right column: Topics list */
        .sidebar-topics-col {
            flex: 1;
            min-width: 300px;
            max-width: 720px;
            height: 100%;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 10px;
        }

        .sidebar-topics-col::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar-topics-col::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.02);
        }

        .sidebar-topics-col::-webkit-scrollbar-thumb {
            background: rgba(90, 168, 138, 0.3);
            border-radius: 10px;
        }

        .sidebar-topics-col::-webkit-scrollbar-thumb:hover {
            background: rgba(90, 168, 138, 0.5);
        }

        /* Green scrollbar for Psychology AI page */
        body.on-psychology-page .sidebar-topics-col::-webkit-scrollbar-thumb {
            background: rgba(178, 152, 220, 0.4);
        }

        body.on-psychology-page .sidebar-topics-col::-webkit-scrollbar-thumb:hover {
            background: rgba(178, 152, 220, 0.6);
        }

        /* Purple scrollbar for Youth AI page (keep existing purple) */
        body.on-youth-page .sidebar-topics-col::-webkit-scrollbar-thumb {
            background: rgba(90, 168, 138, 0.4);
        }

        body.on-youth-page .sidebar-topics-col::-webkit-scrollbar-thumb:hover {
            background: rgba(90, 168, 138, 0.6);
        }

        /* Topic item styling */
        .sidebar-topic-item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            margin-bottom: 18px;
            padding: 6px;
            cursor: pointer;
            transition: all 0.3s;
            border-radius: 12px;
        }

        /* Ensure anchor tags work properly */
        a.sidebar-topic-item {
            text-decoration: none !important;
            color: inherit !important;
        }

        .sidebar-topic-item:hover {
            background: rgba(90, 168, 138, 0.12);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transform: translateX(4px);
        }

        .sidebar-topic-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            overflow: hidden;
            flex: 0 0 64px;
            background: var(--card-bg);
            box-shadow: 0 4px 12px var(--card-shadow);
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        .sidebar-topic-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .sidebar-topic-text {
            line-height: 1.25;
            flex: 1;
        }

        .sidebar-topic-title {
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 6px;
            color: #111;
        }

        .sidebar-topic-subtitle {
            color: #444;
            font-size: 13px;
            white-space: pre-wrap;
            line-height: 1.5;
        }

        /* Responsive for smaller screens */
        @media (max-width: 900px) {
            .sidebar-three-col-container {
                flex-direction: column;
                gap: 16px;
                padding: 20px;
                overflow-y: auto;
            }

            .sidebar-canvas-col,
            .sidebar-bar-col,
            .sidebar-topics-col {
                width: 100%;
                min-width: unset;
                height: auto;
            }

            .sidebar-topics-col {
                overflow-y: visible;
            }

            .sidebar-white-bar {
                display: none; /* Hide white bar on mobile */
            }

            .sidebar-bar-col {
                display: none; /* Hide entire bar column on mobile */
            }

            .sidebar-canvas-col {
                display: none; /* Hide canvas on mobile for cleaner look */
            }
        }

        .sidebar-header {
            padding: 18px 20px;
            background: linear-gradient(135deg, #5AA88A 0%, #6BB896 100%);
            color: white;
            font-weight: 700;
            font-size: 1.1rem;
            text-align: center;
        }

        .topics-container {
            height: calc(100% - 60px);
            overflow-y: auto;
            padding: 15px;
            padding-bottom: 30px;
        }

        .topics-container::-webkit-scrollbar {
            width: 6px;
        }

        .topics-container::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.02);
            border-radius: 10px;
        }

        .topics-container::-webkit-scrollbar-thumb {
            background: rgba(90, 168, 138, 0.3);
            border-radius: 10px;
        }

        .topics-container::-webkit-scrollbar-thumb:hover {
            background: rgba(90, 168, 138, 0.5);
        }

        .topic-category {
            margin-bottom: 20px;
        }

        .topic-btn-side {
            background: white;
            color: #000000;
            padding: 12px 16px;
            font-size: 0.95rem;
            border: 2px solid transparent;
            border-radius: 14px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            text-align: left;
            margin-bottom: 8px;
            position: relative;
            overflow: hidden;
        }

        /* Ensure anchor tags styled as topic buttons work properly */
        a.topic-btn-side {
            text-decoration: none !important;
            display: flex !important;
            color: inherit !important;
            position: relative !important;
            z-index: 2 !important;
        }

        a.topic-btn-side * {
            position: relative;
            z-index: 2;
        }

        .topic-btn-side::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(135deg, #5AA88A 0%, #6BB896 100%);
            transition: width 0.3s ease;
            z-index: 0;
        }

        .topic-btn-side:hover::before {
            width: 100%;
        }

        .topic-btn-side:hover {
            color: white;
            border-color: #5AA88A;
            transform: translateX(5px);
            box-shadow: 0 4px 15px rgba(90, 168, 138, 0.25);
        }

        .topic-icon {
            font-size: 1.2rem;
            z-index: 1;
            position: relative;
            min-width: 32px;
            height: 32px;
            display: flex !important;
            align-items: center;
            justify-content: center;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .topic-icon svg {
            width: 32px;
            height: 32px;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        /* Ensure testimonial images display */
        .testimonial-card-horizontal img {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        /* Force all SVG elements to display */
        svg {
            display: inline-block !important;
        }

        .topic-text {
            z-index: 1;
            position: relative;
        }

        .hero-content {
            max-width: 1100px;
            animation: fadeInUp 1s ease-out;
            margin: 0 auto;
            text-align: center;
            padding: 0 3rem;
            width: 100%;
            position: relative;
            z-index: 1;
        }

        .hero-brand {
            color: rgba(255, 255, 255, 0.92);
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            margin-bottom: 0.75rem;
            text-transform: uppercase;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero h1 {
            font-size: clamp(0.77rem, 1.96vw, 1.82rem);
            color: #ffffff;
            margin-bottom: 2rem;
            line-height: 1.25;
            font-weight: 700;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .hero p {
            font-size: clamp(0.85rem, 1.5vw, 1.15rem);
            color: #ffffff;
            margin-bottom: 3rem;
            line-height: 1.7;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
        }

        .cta-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }

        .cta-button {
            background: #e0e0e0;
            color: #333;
            padding: 0.85rem 2.1rem;
            font-size: 0.9rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            background: #d0d0d0;
        }

        .gradient-banner {
            background: linear-gradient(90deg, #C71585 0%, #8B3A9C 35%, #6B4FB8 70%, #5B5FCC 100%);
            padding: 8rem 3%;
            text-align: center;
        }

        .banner-title {
            font-size: 2rem;
            color: white;
            font-weight: bold;
            margin: 0;
            line-height: 1.2;
        }

        .chat-demo {
            background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 50%, #e9ecef 100%);
            padding: 3rem 5%;
            color: #333;
        }

        .youth-chat-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            max-width: 1000px;
            margin: 0 auto;
            align-items: center;
            width: 100%;
        }

        /* Full width chat when intro is hidden */
        .youth-chat-layout:has(.youth-intro[style*="display: none"]) {
            grid-template-columns: 1fr;
            max-width: 900px;
        }

        .youth-intro {
            text-align: center;
            padding: 2rem;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .youth-logo {
            margin: 0 auto 2rem;
            width: 100px;
            display: flex;
            justify-content: center;
        }

        .youth-title {
            font-size: 4rem;
            font-weight: bold;
            color: #235246;
            margin-bottom: 1rem;
            line-height: 1;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .youth-subtitle {
            color: #666;
            font-size: 1.1rem;
            margin-bottom: 2rem;
            line-height: 1.6;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .youth-start-btn {
            background: linear-gradient(135deg, #2C5F4F 0%, #23604A 100%) !important;
            color: white !important;
            padding: 1rem 3rem;
            font-size: 1.2rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            margin-bottom: 2rem;
            box-shadow: 0 4px 15px rgba(35, 96, 74, 0.4);
        }

        .youth-start-btn:hover {
            background: linear-gradient(135deg, #23604A 0%, #43325F 100%) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(35, 96, 74, 0.5);
        }

        /* Psychology AI Card Button Override */
        .psychology-chat-card .youth-start-btn {
            background: linear-gradient(135deg, #6A5490 0%, #54407A 100%) !important;
            box-shadow: 0 4px 15px rgba(106, 84, 144, 0.4) !important;
        }

        .psychology-chat-card .youth-start-btn:hover {
            background: linear-gradient(135deg, #54407A 0%, #1B4E3C 100%) !important;
            box-shadow: 0 6px 20px rgba(106, 84, 144, 0.5) !important;
        }

        .youth-footer {
            color: #5A6474;
            font-size: 0.9rem;
        }

        /* Chat Carousel Styles */
        .chat-carousel-container {
            position: relative;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .chat-carousel-wrapper {
            width: 100%;
            overflow: hidden;
            border-radius: 10px;
        }

        .chat-carousel {
            display: flex;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            overflow-x: auto;
            gap: 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .chat-carousel::-webkit-scrollbar {
            display: none;
        }

        .chat-card-wrapper {
            min-width: 100%;
            width: 100%;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            flex-shrink: 0;
        }

        /* Navigation Indicators */
        .chat-carousel-indicators {
            display: flex;
            gap: 6px;
            justify-content: center;
            margin-top: 2rem;
            z-index: 10;
        }

        .indicator {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(90, 168, 138, 0.3);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 0;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            box-sizing: border-box;
        }

        /* Mobile: much smaller dots */
        @media (max-width: 768px) {
            .indicator {
                width: 5px !important;
                height: 5px !important;
                min-width: 5px !important;
                min-height: 5px !important;
                max-width: 5px !important;
                max-height: 5px !important;
            }

            .chat-carousel-indicators {
                gap: 4px;
                margin-top: 1.5rem;
            }
        }

        /* Green dot for Psychology AI Chat (first indicator) */
        .indicator:nth-child(1) {
            background: rgba(178, 152, 220, 0.4);
        }

        .indicator:nth-child(1).active {
            background: #B298DC;
            box-shadow: 0 0 6px rgba(178, 152, 220, 0.3);
            transform: scale(1.3);
        }

        .indicator:nth-child(1):hover {
            background: rgba(178, 152, 220, 0.7);
            transform: scale(1.1);
        }

        /* Purple dot for Youth AI Chat (second indicator) */
        .indicator:nth-child(2) {
            background: rgba(90, 168, 138, 0.4);
        }

        .indicator:nth-child(2).active {
            background: #5AA88A;
            box-shadow: 0 0 6px rgba(90, 168, 138, 0.3);
            transform: scale(1.3);
        }

        .indicator:nth-child(2):hover {
            background: rgba(90, 168, 138, 0.7);
            transform: scale(1.1);
        }

        .indicator.active {
            transform: scale(1.3);
        }

        /* Much smaller scale on mobile to keep dots tiny */
        @media (max-width: 768px) {
            .indicator.active {
                transform: scale(1.2) !important;
            }

            .indicator:nth-child(1).active,
            .indicator:nth-child(2).active {
                transform: scale(1.2) !important;
                box-shadow: 0 0 4px rgba(178, 152, 220, 0.3) !important;
            }

            .indicator:hover {
                transform: scale(1.1) !important;
            }
        }

        .indicator:hover {
            transform: scale(1.1);
        }

        /* Testimonials scroll indicators - small green dots for mobile */
        #testimonialsIndicators {
            display: flex;
            gap: 6px;
            justify-content: center;
            align-items: center;
        }

        @media (max-width: 768px) {
            #testimonialsIndicators {
                gap: 4px;
            }
        }

        .testimonial-indicator {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(178, 152, 220, 0.3);
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            box-sizing: border-box;
        }

        .testimonial-indicator.active {
            background: #B298DC;
            transform: scale(1.3);
            box-shadow: 0 0 6px rgba(178, 152, 220, 0.3);
        }

        .testimonial-indicator:hover {
            background: rgba(178, 152, 220, 0.6);
            transform: scale(1.1);
        }

        @media (max-width: 768px) {
            .testimonial-indicator {
                width: 5px !important;
                height: 5px !important;
                min-width: 5px !important;
                min-height: 5px !important;
                max-width: 5px !important;
                max-height: 5px !important;
            }

            .testimonial-indicator.active {
                transform: scale(1.2) !important;
                box-shadow: 0 0 4px rgba(178, 152, 220, 0.3) !important;
            }

            .testimonial-indicator:hover {
                transform: scale(1.1) !important;
            }
        }

        /* Testimonials indicators visible on all devices */
        #testimonialsIndicatorsContainer {
            display: block !important;
        }

        #testimonialsIndicators {
            display: flex !important;
        }

        /* Carousel Navigation Buttons */
        .carousel-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(90, 168, 138, 0.8);
            border: none;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            z-index: 20;
            transition: all 0.3s ease;
        }

        .carousel-nav-btn:hover {
            background: rgba(90, 168, 138, 1);
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-nav-prev {
            left: 20px;
        }

        .carousel-nav-next {
            right: 20px;
        }

        @media (max-width: 768px) {
            .chat-carousel-indicators {
                margin-top: 1.5rem;
            }

            .carousel-nav-btn {
                display: none !important;
            }
        }

        .chat-container {
            background: var(--hero-bg);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px var(--card-shadow);
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        .chat-header {
            background: var(--card-bg);
            padding: 1.5rem;
            color: var(--text-color);
            font-weight: bold;
            font-size: 1.3rem;
            border-bottom: 1px solid var(--input-border);
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        .youth-header-logo {
            width: 40px;
            height: 40px;
        }

        .chat-messages {
            padding: 1.5rem;
            height: 400px;
            overflow-y: auto;
            background: var(--card-bg);
            transition: background 0.3s ease;
        }

        .message {
            margin-bottom: 0.8rem;
            padding: 0.9rem 1.2rem;
            border-radius: 18px;
            max-width: 80%;
            animation: slideIn 0.3s ease-out;
            font-size: 0.95rem;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .message.user {
            background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
            color: #235246;
            margin-left: auto;
            border: 1px solid #C4B5FD;
        }

        .message.ai {
            background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
            color: #235246;
            margin-right: auto;
        }

        .chat-input {
            display: flex;
            padding: 1.5rem;
            background: var(--card-bg);
            border-top: 1px solid var(--input-border);
            gap: 1rem;
            flex-wrap: wrap;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .chat-input input {
            flex: 1;
            min-width: 200px;
            padding: 1rem 1.5rem;
            border: 1px solid var(--input-border);
            border-radius: 25px;
            font-size: 1rem;
            outline: none;
            transition: border 0.3s, background 0.3s ease, color 0.3s ease;
            background: var(--input-bg);
            color: var(--text-color);
        }

        .chat-input input:focus {
            border-color: #5AA88A;
            box-shadow: none;
        }

        .chat-input button {
            padding: 1rem 2.5rem;
            background: linear-gradient(135deg, #5AA88A 0%, #6BB896 100%);
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(90, 168, 138, 0.25);
            font-family: 'Poppins', sans-serif;
            min-width: 120px;
            white-space: nowrap;
        }

        .chat-input button:hover {
            background: linear-gradient(135deg, #4A9B7F 0%, #5AA88A 100%);
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(90, 168, 138, 0.35);
        }

        .chat-powered {
            text-align: center;
            padding: 1rem;
            color: #999;
            font-size: 0.9rem;
            background: var(--card-bg);
            transition: background 0.3s ease;
        }

        /* Bottom Write Bar - Positioned Above Footer */
        .mobile-write-bar {
            display: none !important;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(8px);
            padding: 12px 16px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 8999;
            transition: all 0.3s ease;
            border-top: 1px solid #e0e0e0;
            pointer-events: auto;
        }

        [data-theme="dark"] .mobile-write-bar {
            background: rgba(45, 45, 45, 0.98);
            border-top: 1px solid #444;
        }

        .mobile-write-bar.active {
            display: none !important;
        }

        .mobile-write-input-container {
            display: flex;
            gap: 10px;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Icon Buttons (Attachment & Microphone) */
        .input-icon-btn {
            width: 44px;
            height: 44px;
            border: none;
            background: transparent;
            color: #666;
            cursor: pointer;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
            pointer-events: auto;
        }

        .input-icon-btn:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #2C5F4F;
        }

        .input-icon-btn:active {
            transform: scale(0.95);
        }

        [data-theme="dark"] .input-icon-btn {
            color: #aaa;
        }

        [data-theme="dark"] .input-icon-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #6BB896;
        }

        .mobile-write-input {
            flex: 1;
            padding: 12px 18px;
            border: 1px solid #ddd;
            border-radius: 24px;
            font-size: 15px;
            outline: none;
            transition: all 0.2s ease;
            background: #f5f5f5;
            color: #333;
            font-family: 'Poppins', sans-serif;
        }

        [data-theme="dark"] .mobile-write-input {
            background: #3d3d3d;
            color: #e0e0e0;
            border-color: #555;
        }

        .mobile-write-input:focus {
            border-color: #5AA88A;
            box-shadow: 0 0 0 3px rgba(90, 168, 138, 0.1);
            background: white;
        }

        [data-theme="dark"] .mobile-write-input:focus {
            background: #4a4a4a;
        }

        .mobile-write-input::placeholder {
            color: #999;
        }

        /* Send button - shown dynamically when typing */
        .mobile-write-send-btn {
            padding: 12px 24px;
            background: linear-gradient(135deg, #5AA88A 0%, #6BB896 100%);
            color: white;
            border: none;
            border-radius: 24px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s ease;
            font-family: 'Poppins', sans-serif;
            white-space: nowrap;
            min-width: 70px;
            display: none;
            flex-shrink: 0;
        }

        .mobile-write-send-btn.show {
            display: block;
        }

        .mobile-write-send-btn:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        .mobile-write-send-btn:active {
            transform: scale(0.97);
        }

        .mobile-write-hint {
            display: none;
        }

        /* Push footer down to accommodate bottom bar */
        .footer {
            margin-bottom: 0;
        }

        /* Add padding to body when bottom bar is active */
        body.has-bottom-bar {
            padding-bottom: 70px;
        }

        /* Show bottom bar on all pages with chat interfaces */
        .main-content.active .mobile-write-bar,
        .psychology-page-section.active .mobile-write-bar,
        .youth-page-section.active .mobile-write-bar,
        section.active .mobile-write-bar {
            display: block;
        }

        /* Add padding to content sections when bar is active */
        .main-content.active,
        .psychology-page-section.active,
        .youth-page-section.active,
        section.active {
            padding-bottom: 80px;
        }

        /* Smooth transition for chat */
        .chat-demo {
            transition: margin-bottom 0.3s ease;
        }

        /* Desktop responsive styling */
        @media (min-width: 1025px) {
            .navbar {
                padding-right: 2%;
            }

            .mobile-write-input-container {
                max-width: 900px;
            }

            .mobile-write-input {
                font-size: 16px;
                padding: 14px 20px;
            }

            .mobile-write-send-btn {
                padding: 14px 28px;
                font-size: 15px;
            }

            .mobile-write-bar {
                padding: 14px 20px;
            }

            .footer {
                margin-bottom: 0;
            }

            .input-icon-btn {
                width: 48px;
                height: 48px;
            }

            /* Add extra padding on desktop for cleaner spacing */
            .main-content.active,
            .psychology-page-section.active,
            .youth-page-section.active,
            section.active {
                padding-bottom: 90px;
            }
        }

        /* Tablet responsive styling */
        @media (max-width: 1024px) and (min-width: 769px) {
            .mobile-write-input {
                font-size: 15px;
            }

            .mobile-write-send-btn {
                padding: 12px 24px;
            }

            .footer {
                margin-bottom: 0;
            }

            .main-content.active,
            .psychology-page-section.active,
            .youth-page-section.active,
            section.active {
                padding-bottom: 75px;
            }
        }

        /* Mobile responsive styling */
        @media (max-width: 768px) {
            .mobile-write-bar {
                padding: 10px 12px;
            }

            .mobile-write-input-container {
                gap: 8px;
            }

            .mobile-write-input {
                padding: 11px 16px;
                font-size: 15px;
            }

            .mobile-write-send-btn {
                padding: 11px 20px;
                font-size: 14px;
                min-width: 65px;
            }

            .footer {
                margin-bottom: 0;
            }

            .input-icon-btn {
                width: 40px;
                height: 40px;
            }

            .main-content.active,
            .psychology-page-section.active,
            .youth-page-section.active,
            section.active {
                padding-bottom: 70px;
            }
        }

        .about-section {
            background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 50%, #e9ecef 100%);
            padding: 8rem 5% 6rem;
            min-height: 100vh;
            display: none;
        }

        .about-section.active {
            display: block;
        }

        .careers-section {
            background: #f9f9f9;
            padding: 8rem 5% 6rem;
            min-height: 100vh;
            display: none;
        }

        .careers-section.active {
            display: block;
        }

        .investors-section {
            background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 50%, #e9ecef 100%);
            padding: 8rem 5% 6rem;
            min-height: 100vh;
            display: none;
        }

        .investors-section.active {
            display: block;
        }

        .subscriptions-section {
            background: linear-gradient(135deg, #3D8B6D 0%, #5AA88A 100%);
            padding: 6rem 5%;
            min-height: 100vh;
            display: none;
        }

        .subscriptions-section.active {
            display: block;
        }

        .youth-page-section {
            background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 50%, #e9ecef 100%);
            padding: 8rem 5% 6rem;
            min-height: 100vh;
            display: none;
            transition: padding-left 0.3s ease;
        }

        .youth-page-section.active {
            display: block;
        }

        .psychology-page-section {
            background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 50%, #e9ecef 100%);
            padding: 8rem 5% 6rem;
            min-height: 100vh;
            display: none;
            transition: padding-left 0.3s ease;
        }

        .psychology-page-section.active {
            display: block;
        }

        .our-story-page-section {
            background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 50%, #e9ecef 100%);
            padding: 8rem 5% 6rem;
            min-height: 100vh;
            display: none;
            transition: padding-left 0.3s ease;
        }

        .our-story-page-section.active {
            display: block;
        }

        /* Desktop text styling for Psychology and Youth sections */
        .psychology-page-section p,
        .youth-page-section p,
        .our-story-page-section p,
        .psychology-adult-section p,
        .psychology-youth-section p {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.8;
            text-align: justify;
        }

        .psychology-page-section li,
        .youth-page-section li,
        .our-story-page-section li,
        .psychology-adult-section li,
        .psychology-youth-section li {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.8;
        }

        .psychology-adult-section {
            background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 50%, #e9ecef 100%);
            padding: 8rem 5% 6rem;
            min-height: 100vh;
            display: none;
            transition: padding-left 0.3s ease;
        }

        .psychology-adult-section.active {
            display: block;
        }

        .psychology-youth-section {
            background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 50%, #e9ecef 100%);
            padding: 8rem 5% 6rem;
            min-height: 100vh;
            display: none;
            transition: padding-left 0.3s ease;
        }

        .psychology-youth-section.active {
            display: block;
        }

        .main-content.hidden {
            display: none !important;
        }

        /* Ensure proper z-index on mobile */
        @media (max-width: 768px) {
            .about-section,
            .careers-section,
            .investors-section,
            .subscriptions-section,
            .youth-page-section,
            .psychology-page-section,
            .our-story-page-section,
            .psychology-adult-section,
            .psychology-youth-section {
                position: relative;
                z-index: 1;
            }

            .main-content {
                position: relative;
                z-index: 1;
            }
        }

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

        /* Digital Store subpage: image sits slightly wider than the text column */
        .store-image-wrap {
            margin: 2.5rem 0;
        }

        @media (min-width: 1024px) {
            .store-image-wrap {
                margin: 2.5rem -2.5rem;
            }
        }

        .about-title {
            font-size: 2.1rem;
            color: #2d3748;
            margin-bottom: 1.5rem;
            text-align: center;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
        }

        .about-logo {
            text-align: center;
            margin-bottom: 2.5rem;
        }

        .about-logo img {
            height: 80px;
            width: auto;
            object-fit: contain;
        }

        .about-section-title {
            font-size: 1.8rem;
            color: #6A5490;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
        }

        .about-text {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            text-align: justify;
        }

        .about-list {
            margin-left: 2rem;
            margin-bottom: 1.5rem;
        }

        .about-list li {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.8;
            margin-bottom: 1rem;
        }

        .about-list li strong {
            color: #2d3748;
        }

        /* Heading-to-body gap, kept in sync with .biz-header h1. */
        #about .about-title {
            margin-bottom: 1.5rem;
        }

        /* Our Story heading — mobile only.
           The two spans are inline above 768px, so the desktop heading still
           renders as a single line of unchanged text. Below 768px they become
           blocks, giving exactly two balanced lines, and nowrap keeps
           "PSYCHOLOGY AI" from splitting "AI" onto a third line. */
        @media (max-width: 768px) {
            .our-story-page-section .story-title {
                max-width: 22rem;
                margin-left: auto;
                margin-right: auto;
                margin-bottom: 0.75rem;
                line-height: 1.25;
                text-align: center;
            }

            .our-story-page-section .story-title .story-title-line {
                display: block;
                white-space: nowrap;
            }
        }

        .careers-container {
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
            padding: 4rem 2rem;
        }

        .careers-title {
            font-size: 2.5rem;
            color: #2d3748;
            margin-bottom: 2rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
        }

        .careers-text {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.8;
            margin-bottom: 2rem;
            text-align: center;
        }

        .careers-cta {
            background: linear-gradient(135deg, #5AA88A 0%, #6BB896 100%);
            color: white;
            padding: 1.2rem 3rem;
            font-size: 1.1rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            margin-top: 2rem;
            font-family: 'Poppins', sans-serif;
            box-shadow: 0 4px 15px rgba(90, 168, 138, 0.3);
        }

        .careers-cta:hover {
            background: linear-gradient(135deg, #4A9B7F 0%, #5AA88A 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(90, 168, 138, 0.4);
        }

        /* Careers "Get in Touch" and Contact "Email our support team" only.
           Scoped by id so the Investors CTA, which shares .careers-cta,
           keeps its original size. Only the padding and height change —
           colour, pill radius, shadow, hover and centring are inherited. */
        #careers-email-btn,
        #contact-email-btn {
            padding: 0.8rem 2.25rem;
            min-height: 46px;
        }

        @media (max-width: 968px) {
            #careers-email-btn,
            #contact-email-btn {
                padding: 0.7rem 1.6rem;
                min-height: 44px; /* minimum comfortable tap target */
            }
        }

        @media (max-width: 480px) {
            #careers-email-btn,
            #contact-email-btn {
                padding: 0.7rem 1.4rem;
                min-height: 44px; /* minimum comfortable tap target */
            }
        }

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

        .investors-title {
            font-size: 2.5rem;
            color: #2d3748;
            margin-bottom: 2rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            text-align: center;
        }

        .investors-subtitle {
            font-size: 1.8rem;
            color: #2C5F4F;
            margin-top: 2rem;
            margin-bottom: 1.5rem;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
        }

        .investors-text {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            text-align: justify;
        }

        .investors-contact {
            text-align: center;
            margin-top: 3rem;
        }

        .investors-contact-label {
            font-size: 1.3rem;
            color: #2d3748;
            font-weight: 600;
            margin-bottom: 1rem;
            font-family: 'Poppins', sans-serif;
        }

        .investors-email {
            font-size: 1.2rem;
            color: #2C5F4F;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
        }

        .investors-email:hover {
            color: #4A9B7F;
            text-decoration: underline;
        }

        .subscriptions-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .subscriptions-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .subscriptions-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .subscriptions-logo svg {
            width: 60px;
            height: 60px;
        }

        .subscriptions-logo-text {
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            font-family: 'Poppins', sans-serif;
        }

        .subscriptions-title {
            font-size: 3rem;
            color: white;
            font-weight: 700;
            margin-bottom: 1rem;
            font-family: 'Poppins', sans-serif;
        }

        .plans-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .plan-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 2.5rem 2rem;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            min-height: 550px;
        }

        .plan-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .plan-header {
            font-size: 1.5rem;
            color: #3D8B6D;
            font-weight: 600;
            margin-bottom: 1rem;
            font-family: 'Poppins', sans-serif;
        }

        .plan-name {
            font-size: 2rem;
            color: #235246;
            font-weight: 700;
            margin-bottom: 1.5rem;
            font-family: 'Poppins', sans-serif;
        }

        .plan-price {
            font-size: 2.5rem;
            color: #235246;
            font-weight: 700;
            margin-bottom: 0.5rem;
            font-family: 'Poppins', sans-serif;
        }

        .plan-period {
            color: #666;
            font-size: 1rem;
            margin-bottom: 2rem;
        }

        .plan-legacy-plan {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 2rem;
        }

        .plan-features {
            text-align: left;
            margin-bottom: 2rem;
            list-style: none;
            padding: 0;
            flex-grow: 1;
        }

        .plan-features li {
            margin-bottom: 1rem;
            padding-left: 1.5rem;
            position: relative;
            color: #444;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .plan-features li::before {
            content: "•";
            color: #2C5F4F;
            font-weight: bold;
            position: absolute;
            left: 0;
            font-size: 1.2rem;
        }

        .plan-subscribe-btn {
            background: linear-gradient(135deg, #5AA88A 0%, #6BB896 100%);
            color: white;
            padding: 1rem 2.5rem;
            font-size: 1.1rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            width: 100%;
            font-family: 'Poppins', sans-serif;
            box-shadow: 0 4px 15px rgba(90, 168, 138, 0.3);
            margin-top: auto;
        }

        .plan-subscribe-btn:hover {
            background: linear-gradient(135deg, #4A9B7F 0%, #5AA88A 100%);
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(90, 168, 138, 0.4);
        }

        .plan-personalised {
            font-size: 0.9rem;
            color: #666;
            font-style: italic;
            margin-bottom: 1rem;
        }

        .resources-section {
            background: #e8f1ed;
            padding: 5rem 5% 3rem 5%;
            border-bottom: 1px solid rgba(46, 58, 58, 0.1);
        }

        /* Full-width image section between reviews and resources */
        .full-width-image-section {
            width: 100%;
            margin: 0;
            padding: 0;
            position: relative;
            overflow: hidden;
            min-height: 400px;
        }

        .full-width-image-section img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            min-height: 400px;
        }

        /* Text overlay on image */
        .image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem;
            background: rgba(0, 0, 0, 0.3);
        }

        .image-overlay h2 {
            font-size: 3rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 1.5rem;
            font-family: 'Poppins', sans-serif;
            line-height: 1.2;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
        }

        .image-overlay p {
            font-size: 1.0625rem;
            color: #ffffff;
            margin-bottom: 2rem;
            max-width: 700px;
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
        }

        .image-overlay-btn {
            background: #ffffff;
            color: #1a1a1a;
            padding: 0.85rem 2.125rem;
            border-radius: 6.8px;
            font-size: 0.935rem;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.425rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .image-overlay-btn:hover {
            background: #f0f0f0;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

        .image-overlay-btn svg {
            width: 17px;
            height: 17px;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .full-width-image-section {
                min-height: 300px;
            }

            .full-width-image-section img {
                min-height: 300px;
            }

            .image-overlay h2 {
                font-size: 1.7rem;
                margin-bottom: 1rem;
            }

            .image-overlay p {
                font-size: 0.85rem;
                margin-bottom: 1.5rem;
                padding: 0 1rem;
            }

            .image-overlay-btn {
                padding: 0.7225rem 1.7rem;
                font-size: 0.85rem;
            }
        }

        @media (max-width: 480px) {
            .image-overlay h2 {
                font-size: 1.5rem;
            }

            .image-overlay p {
                font-size: 0.765rem;
            }

            .image-overlay-btn {
                padding: 0.6375rem 1.4875rem;
                font-size: 0.8075rem;
            }
        }

        .resources-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        .resources-tagline {
            text-align: left;
            padding-right: 3rem;
            display: flex;
            flex-direction: column;
        }

        .resources-tagline h2 {
            font-size: 33.6px;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #1a1a1a;
            font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.1;
            letter-spacing: -0.5px;
        }

        .resources-tagline p {
            font-size: 14.4px;
            line-height: 1.7;
            color: #6b7280;
            margin-top: 0;
            padding-top: 0;
            font-weight: 400;
            font-family: 'Poppins', sans-serif;
        }

        .resources-column {
            text-align: left;
            min-width: 0;
        }

        .resources-title {
            font-size: 11px !important;
            color: #9ca3af;
            margin-bottom: 1.25rem;
            font-weight: 600;
            text-decoration: none !important;
            font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .resource-info {
            font-size: 15px !important;
            color: #374151 !important;
            margin-top: 0;
            margin-bottom: 0.85rem;
            display: block !important;
            visibility: visible !important;
            line-height: 1.5;
            font-family: 'Poppins', sans-serif;
        }

        .social-link {
            color: #374151 !important;
            text-decoration: none !important;
            transition: color 0.2s ease;
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
        }

        .social-link:hover {
            color: #1a1a1a !important;
            text-decoration: none !important;
        }

        .footer {
            background-color: #e8f1ed !important;
            background: var(--footer-bg) !important;
            color: #9ca3af !important;
            text-align: center;
            padding: 2.5rem 5% 3rem 5%;
            font-size: 14px;
            line-height: 1.6;
            margin-top: auto;
            margin-bottom: 0;
            flex-shrink: 0;
            font-family: 'Poppins', sans-serif;
            border-top: 1px solid rgba(46, 58, 58, 0.1);
        }

        .footer p {
            margin: 0.5rem 0;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
            color: #9ca3af;
            font-size: 13px;
            font-family: 'Poppins', sans-serif;
            font-weight: 400;
        }

        .footer a {
            color: #6b7280 !important;
            text-decoration: none;
        }

        .footer a:hover {
            color: #374151 !important;
            text-decoration: none;
        }

        /* Ensure main content containers fill available space */
        .main-content,
        .psychology-page-section,
        .youth-page-section,
        section {
            flex: 1 0 auto;
        }

        @media (max-width: 1200px) {
            .topic-sidebar {
                width: 260px;
            }

            .resources-container {
                grid-template-columns: 1fr 1fr 1fr;
                gap: 3rem;
            }

            .resources-tagline {
                grid-column: 1 / -1;
                padding-right: 0;
                margin-bottom: 3rem;
                text-align: left;
                max-width: 600px;
            }

            .resources-tagline h2 {
                font-size: 28.8px;
            }

            .resources-tagline p {
                font-size: 13.5px;
            }
        }

        @media (max-width: 900px) {
            .resources-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 3rem;
            }

            .resources-tagline {
                grid-column: 1 / -1;
                text-align: left;
                padding: 0;
                margin-bottom: 3rem;
            }

            .resources-tagline h2 {
                font-size: 25.6px;
                margin-bottom: 0.75rem;
            }

            .resources-tagline p {
                font-size: 13.5px;
                line-height: 1.6;
            }

            .resources-section {
                padding: 4rem 5% 2.5rem 5%;
            }
        }

        @media (max-width: 600px) {
            .resources-section {
                padding: 3rem 5% 2.5rem 5%;
            }

            .resources-container {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
                max-width: 600px;
                margin: 0 auto;
            }

            .resources-tagline {
                grid-column: 1 / -1;
                text-align: center;
                margin-bottom: 2.5rem;
                padding: 0;
                background: transparent;
                border: none;
            }

            .resources-tagline h2 {
                font-size: 22.4px;
                margin-bottom: 0.75rem;
                line-height: 1.2;
            }

            .resources-tagline p {
                font-size: 13.5px;
                line-height: 1.6;
                margin-top: 0;
            }

            .resources-column {
                text-align: left;
                padding: 0;
                background: transparent;
                border-radius: 0;
                margin-bottom: 1.5rem;
            }

            .resources-column:active {
                background: transparent;
                transform: none;
            }

            .resources-title {
                font-size: 10px !important;
                letter-spacing: 0.8px;
                margin-bottom: 0.65rem !important;
            }

            .resource-info {
                font-size: 14px !important;
                margin-bottom: 0.35rem !important;
                padding: 0;
            }

            .social-link {
                display: block;
                padding: 0.2rem 0;
                min-height: 36px;
                display: flex;
                align-items: center;
            }

            .footer {
                padding: 2.5rem 5% calc(2.5rem + env(safe-area-inset-bottom, 0px));
                font-size: 13px;
            }

            .footer p {
                margin-bottom: 0.5rem;
                line-height: 1.7;
            }
        }

        @media (max-width: 400px) {
            .resources-tagline h2 {
                font-size: 19.2px;
            }

            .resources-tagline p {
                font-size: 12.6px;
            }

            .resource-info {
                font-size: 13px !important;
            }

            .resources-title {
                font-size: 9px !important;
                letter-spacing: 0.5px;
            }

            .resources-container {
                gap: 1.5rem;
            }

            .footer p {
                font-size: 12px !important;
            }
        }

        @media (max-width: 360px) {
            .resources-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .resources-title {
                font-size: 10px !important;
                letter-spacing: 0.8px;
            }

            .resource-info {
                font-size: 14px !important;
            }
        }

        @media (max-width: 968px) {
            .youth-chat-layout {
                grid-template-columns: 1fr;
            }

            .banner-title {
                font-size: 1.5rem;
            }

            .topic-sidebar {
                position: relative;
                left: 0;
                top: 0;
                width: 100%;
                max-width: 100%;
                height: 500px;
                border-radius: 0;
                border-right: none;
                border-bottom: 2px solid #e8e8e8;
                margin-bottom: 2rem;
            }

            .hero {
                flex-direction: column;
                padding: 100px 2rem 0;
            }

            .gradient-banner {
                padding: 8rem 3%;
            }

            .topics-container {
                height: calc(100% - 60px);
            }

            .about-title {
                font-size: 2rem;
            }

            .about-section-title {
                font-size: 1.4rem;
            }

            .about-text {
                font-size: 1rem;
            }

            .about-list li {
                font-size: 1rem;
            }

            .careers-title {
                font-size: 2rem;
            }

            .careers-text {
                font-size: 1rem;
            }

            .careers-cta {
                padding: 1rem 2rem;
                font-size: 1rem;
            }

            .investors-title {
                font-size: 2rem;
            }

            .investors-subtitle {
                font-size: 1.4rem;
            }

            .investors-text {
                font-size: 1rem;
            }

            .investors-contact-label {
                font-size: 1.1rem;
            }

            .investors-email {
                font-size: 1rem;
            }

            .subscriptions-title {
                font-size: 2rem;
            }

            .plans-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .plan-card {
                padding: 2rem 1.5rem;
            }

            .youth-page-section {
                padding: 6rem 5% 4rem;
            }

            .psychology-page-section {
                padding: 6rem 5% 4rem;
            }
        }

        /* Tablet Styles (768px - 1024px) */
        @media (max-width: 1024px) {
            /* Show chevron on tablets */
            .mobile-chevron {
                display: flex !important;
            }

            /* Show mobile topic sidebar on tablets */
            .mobile-topic-sidebar {
                display: block;
            }

            /* Show hamburger on tablets */
            .hamburger {
                display: flex;
                order: 3;
            }

            .hero h1 {
                /* fluid: handled by clamp() */
            }

            .hero p {
                /* fluid: clamp() */
            }

            .topic-sidebar {
                width: 250px;
            }

            .nav-links {
                gap: 1.5rem;
            }

            /* Ensure all nav items are visible on tablets in hamburger menu */
            .nav-links li {
                display: block !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            .nav-links a {
                display: block !important;
            }

            .resources-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
            }

            .youth-chat-layout {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            /* Smaller text for tablet */
            body {
                font-size: 15px;
            }

            p {
                font-size: 0.95rem;
            }

            .youth-page-section p,
            .psychology-page-section p,
            .about-text,
            .careers-text,
            .investors-text,
            .psychology-adult-section p,
            .psychology-youth-section p {
                font-size: 0.95rem !important;
            }

            .about-title,
            .careers-title,
            .investors-title {
                font-size: 2.5rem !important;
            }

            .about-list li {
                font-size: 0.95rem !important;
            }

            .youth-page-section li,
            .psychology-page-section li,
            .psychology-adult-section li,
            .psychology-youth-section li {
                font-size: 0.95rem !important;
            }

            .message {
                font-size: 0.9rem;
            }


        .footer p:last-child {
            margin-bottom: 0;
        }

            .chat-demo {
                max-width: 100%;
                padding: 2rem 0;
            }

            .youth-page-section,
            .psychology-page-section {
                padding: 3rem 5%;
            }

            .about-section .chat-container,
            .youth-page-section .chat-container,
            .psychology-page-section .chat-container {
                border-radius: 0;
                box-shadow: none;
                margin-left: -5%;
                margin-right: -5%;
                width: 100vw;
                position: relative;
                left: 0;
            }

            .youth-page-section h1,
            .psychology-page-section h1 {
                font-size: 2.5rem !important;
            }

            .youth-title {
                font-size: 2.5rem !important;
            }

            /* Better spacing for intro sections on tablet */
            .youth-page-section > div,
            .psychology-page-section > div,
            .about-container,
            .careers-container,
            .investors-container,
            .psychology-adult-section > div,
            .psychology-youth-section > div {
                padding: 0 3% !important;
            }

            .youth-page-section .youth-logo,
            .psychology-page-section .youth-logo {
                margin-bottom: 1rem;
            }

            .youth-page-section .youth-subtitle,
            .psychology-page-section .youth-subtitle {
                font-size: 1rem;
                padding: 0 2rem;
            }

            .youth-start-btn {
                font-size: 1rem;
                padding: 12px 35px;
            }

            .chat-messages {
                height: 400px;
            }

            .chat-container {
                max-width: 100%;
                border-radius: 0;
                box-shadow: none;
            }

            .message {
                max-width: 75%;
            }
        }

        /* Mobile Styles (max-width: 768px) */
        @media (max-width: 768px) {
            .navbar {
                padding: 1rem 3%;
                height: auto;
                flex-wrap: wrap;
            }

            .hamburger {
                display: flex;
                order: 3;
            }

            /* Show chevron on mobile/tablet */
            .mobile-chevron {
                display: flex !important;
            }

            /* Show mobile topic sidebar on mobile */
            .mobile-topic-sidebar {
                display: block;
                width: 100vw;
            }

            .logo {
                font-size: 1.3rem;
                order: 1;
            }

            .mobile-chevron {
                order: 2;
            }

            .logo-container {
                order: 1;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                gap: 0.5rem;
                width: 100%;
                text-align: center;
                order: 4;
                margin-top: 1rem;
                /* Glassmorphism Style */
                background: rgba(255, 255, 255, 0.8);
                backdrop-filter: saturate(180%) blur(20px);
                -webkit-backdrop-filter: saturate(180%) blur(20px);
                border: 1px solid rgba(255, 255, 255, 0.4);
                border-radius: 12px;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                           inset 0 1px 0 rgba(255, 255, 255, 0.5);
                padding: 1rem 0;
            }

            /* Dark mode glassmorphism for hamburger menu */
            [data-theme="dark"] .nav-links {
                background: rgba(30, 30, 30, 0.85);
                backdrop-filter: saturate(180%) blur(20px);
                -webkit-backdrop-filter: saturate(180%) blur(20px);
                border: 1px solid rgba(255, 255, 255, 0.15);
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                           inset 0 1px 0 rgba(255, 255, 255, 0.1);
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links li {
                width: 100%;
                display: block !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            .nav-links a {
                padding: 0.8rem;
                font-size: 0.9rem;
                display: block !important;
                color: #000000 !important;
            }

            .nav-links a .subtitle {
                font-size: 0.525rem;
                color: #666666 !important;
            }

            .hero {
                padding: 150px 1rem 2rem;
                min-height: auto;
            }

            .hero h1 {
                line-height: 1.2; /* font-size: fluid via clamp() */
            }

            .hero p {
                padding: 0 1rem;
                /* fluid: clamp() */
            }

            .cta-button {
                font-size: 0.78rem;
                padding: 0.65rem 1.25rem;
            }

            .topic-sidebar {
                position: static;
                width: 100%;
                height: auto;
                border-right: none;
                border-bottom: 2px solid #e8e8e8;
                margin-top: 2rem;
                padding: 1rem;
            }

            .topics-scroll-container {
                max-height: 400px;
            }

            .topic-btn-side {
                padding: 1rem;
                font-size: 0.85rem;
            }

            .chat-demo {
                margin-left: 0;
                padding: 2rem 0;
            }

            .youth-chat-layout {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .youth-intro h1,
            .youth-title {
                font-size: 2rem;
            }

            .youth-subtitle {
                font-size: 0.9rem;
            }

            .chat-container {
                max-width: 100%;
                border-radius: 0;
                box-shadow: none;
            }

            .chat-messages {
                height: 300px;
            }

            .message {
                font-size: 0.9rem;
                padding: 0.8rem;
            }

            .about-section,
            .careers-section,
            .investors-section,
            .youth-page-section,
            .psychology-page-section {
                padding: 100px 5% 3rem !important;
            }

            .about-section .chat-container,
            .youth-page-section .chat-container,
            .psychology-page-section .chat-container {
                border-radius: 0;
                box-shadow: none;
                margin-left: -5%;
                margin-right: -5%;
                width: 100vw;
                position: relative;
                left: 0;
            }

            .subscriptions-section {
                padding: 100px 5% 3rem !important;
            }

            /* Ensure active sections display properly */
            .about-section.active,
            .careers-section.active,
            .investors-section.active,
            .subscriptions-section.active,
            .youth-page-section.active,
            .psychology-page-section.active {
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            /* Ensure hidden main content stays hidden */
            .main-content.hidden {
                display: none !important;
                visibility: hidden !important;
            }

            .main-content:not(.hidden) {
                display: block !important;
                visibility: visible !important;
            }

            .youth-page-section > div,
            .psychology-page-section > div,
            .about-container,
            .careers-container,
            .investors-container,
            .psychology-adult-section > div,
            .psychology-youth-section > div {
                max-width: 100%;
                padding: 0 !important;
            }

            .youth-page-section h1,
            .psychology-page-section h1,
            .about-title,
            .careers-title,
            .investors-title,
            .psychology-adult-section h1,
            .psychology-youth-section h1 {
                font-size: 2rem !important;
                padding: 0 1rem;
            }

            .youth-page-section p,
            .psychology-page-section p,
            .about-text,
            .careers-text,
            .investors-text,
            .psychology-adult-section p,
            .psychology-youth-section p {
                font-size: 0.9rem !important;
                padding: 0 1rem;
                line-height: 1.5;
            }

            .youth-page-section h2,
            .psychology-page-section h2,
            .about-section-title,
            .investors-subtitle,
            .psychology-adult-section h2,
            .psychology-youth-section h2 {
                font-size: 1.5rem !important;
                padding: 0 1rem;
            }

            .about-list {
                margin-left: 1rem;
                padding: 0 1rem;
            }

            .about-list li {
                font-size: 0.9rem !important;
            }

            .youth-page-section ul,
            .psychology-page-section ul,
            .psychology-adult-section ul,
            .psychology-youth-section ul {
                margin-left: 1rem;
                padding: 0 1rem;
            }

            .youth-page-section li,
            .psychology-page-section li,
            .psychology-adult-section li,
            .psychology-youth-section li {
                font-size: 0.85rem !important;
            }

            .youth-page-section button,
            .psychology-page-section button,
            .psychology-adult-section button,
            .psychology-youth-section button {
                font-size: 1rem !important;
                padding: 12px 30px !important;
            }

            .youth-page-section > div > div,
            .psychology-page-section > div > div,
            .psychology-adult-section > div > div,
            .psychology-youth-section > div > div {
                margin-bottom: 1rem;
            }

            /* Better spacing for intro content above chat */
            .youth-page-section > div > div:first-child,
            .psychology-page-section > div > div:first-child {
                padding: 1rem 1rem 2rem;
                margin-bottom: 1rem;
            }

            .youth-logo {
                margin-bottom: 1rem !important;
            }

            .youth-subtitle {
                padding: 0 1rem !important;
                margin-bottom: 1.5rem !important;
            }

            .youth-chat-layout {
                grid-template-columns: 1fr !important;
                gap: 2rem;
                padding: 0;
            }

            .youth-intro,
            .psychology-page-section .youth-intro {
                padding: 2rem 1rem;
                text-align: center;
            }

            .youth-logo svg {
                width: 80px !important;
                height: 80px !important;
            }

            .youth-title {
                font-size: 2rem !important;
                margin: 1rem 0;
            }

            .youth-subtitle {
                font-size: 1rem !important;
                margin-bottom: 1.5rem;
            }

            .youth-start-btn {
                font-size: 1rem !important;
                padding: 0.8rem 2rem !important;
            }

            .youth-footer,
            .chat-powered {
                font-size: 0.85rem !important;
            }

            .chat-container {
                max-width: 100% !important;
                margin: 0 !important;
            }

            .chat-header {
                padding: 1rem;
                font-size: 1rem;
            }

            .youth-header-logo svg {
                width: 35px !important;
                height: 35px !important;
            }

            .chat-messages {
                height: 350px !important;
                padding: 1rem;
            }

            .message {
                max-width: 85%;
                font-size: 0.85rem;
                padding: 0.8rem 1rem;
                line-height: 1.4;
            }

            .chat-input {
                padding: 1rem;
                gap: 0.8rem;
                flex-wrap: nowrap;
            }

            .chat-input input {
                font-size: 0.9rem;
                padding: 0.9rem;
                min-width: 0;
                flex: 1;
            }

            .chat-input button {
                font-size: 0.9rem;
                padding: 0.9rem 1.6rem;
                flex-shrink: 0;
                min-height: 48px;
            }

            .about-title,
            .careers-title,
            .investors-title {
                font-size: 2rem;
            }

            .about-section-title {
                font-size: 1.5rem;
            }

            .about-text,
            .careers-text,
            .investors-text {
                font-size: 0.9rem;
            }

            .about-container,
            .careers-container,
            .investors-container {
                padding: 0 1rem;
            }

            /* Make general body text smaller on mobile */
            body {
                font-size: 14px;
            }

            p {
                font-size: 0.9rem;
            }

            .topic-content p,
            .topic-content li {
                font-size: 0.9rem;
                line-height: 1.5;
            }

            .subscriptions-container {
                padding: 2rem 5%;
            }

            .subscriptions-title {
                font-size: 2rem;
                padding: 0 1rem;
            }

            .pricing-plans {
                flex-direction: column;
                gap: 2rem;
                padding: 0 1rem;
            }

            .pricing-plan {
                max-width: 100%;
            }

        }

        /* Small Mobile Styles (max-width: 480px) */
        @media (max-width: 480px) {
            .navbar {
                padding: 0.8rem 2%;
            }

            .logo {
                font-size: 1.2rem;
            }

            .hero h1 {
                /* fluid: handled by clamp() */
            }

            .hero p {
                /* fluid: clamp() */
            }

            .cta-button {
                font-size: 0.74rem;
                padding: 0.58rem 1rem;
            }

            .youth-intro h1,
            .youth-page-section h1,
            .psychology-page-section h1,
            .about-title,
            .careers-title,
            .investors-title,
            .psychology-adult-section h1,
            .psychology-youth-section h1 {
                font-size: 1.5rem !important;
            }

            .youth-page-section p,
            .psychology-page-section p,
            .about-text,
            .careers-text,
            .investors-text,
            .psychology-adult-section p,
            .psychology-youth-section p {
                font-size: 0.9rem !important;
            }

            .youth-page-section h2,
            .psychology-page-section h2,
            .about-section-title,
            .investors-subtitle,
            .psychology-adult-section h2,
            .psychology-youth-section h2 {
                font-size: 1.3rem !important;
            }

            .about-list li {
                font-size: 0.85rem !important;
            }

            .youth-page-section li,
            .psychology-page-section li,
            .psychology-adult-section li,
            .psychology-youth-section li {
                font-size: 0.8rem !important;
            }

            .youth-page-section button,
            .psychology-page-section button,
            .psychology-adult-section button,
            .psychology-youth-section button {
                font-size: 0.9rem !important;
                padding: 10px 25px !important;
            }

            .youth-logo svg {
                width: 60px !important;
                height: 60px !important;
            }

            .youth-title {
                font-size: 1.5rem !important;
            }

            .youth-subtitle {
                font-size: 0.85rem !important;
            }

            .youth-start-btn {
                font-size: 0.9rem !important;
                padding: 0.7rem 1.5rem !important;
            }

            .youth-header-logo svg {
                width: 30px !important;
                height: 30px !important;
            }

            .chat-header {
                padding: 0.8rem;
                font-size: 0.9rem;
            }

            .chat-messages {
                height: 300px !important;
                padding: 0.8rem;
            }

            .message {
                max-width: 90%;
                font-size: 0.85rem;
                padding: 0.7rem 0.9rem;
            }

            .chat-input {
                padding: 0.8rem;
                gap: 0.8rem;
                flex-direction: column;
            }

            .chat-input input {
                font-size: 1rem;
                padding: 1rem;
                width: 100%;
                min-height: 48px;
            }

            .chat-input button {
                font-size: 1rem;
                padding: 1rem;
                width: 100%;
                min-height: 48px;
            }

            .youth-footer,
            .chat-powered {
                font-size: 0.75rem !important;
            }

            .youth-intro,
            .psychology-page-section .youth-intro {
                padding: 1.5rem 0.8rem;
            }

            .chat-demo {
                padding: 1rem 0;
            }

            .about-title,
            .careers-title,
            .investors-title {
                font-size: 1.5rem;
            }

            .about-section-title {
                font-size: 1.2rem;
            }

            .subscriptions-title {
                font-size: 1.5rem;
            }

            .about-container,
            .careers-container,
            .investors-container,
            .subscriptions-container {
                padding: 0 0.8rem;
            }

            .pricing-plans {
                padding: 0 0.5rem;
            }

            .plan-name {
                font-size: 1.3rem;
            }

            .plan-price {
                font-size: 2rem;
            }

            .careers-cta,
            .plan-subscribe-btn {
                font-size: 1rem;
                padding: 1rem 1.8rem;
                min-height: 48px;
            }

            .footer {
                font-size: 0.8rem;
                padding: 1.5rem 5% calc(1.5rem + env(safe-area-inset-bottom, 0px));
            }
        }

        .psychology-nav-link {
            /* Background and border removed */
        }

        .psychology-nav-link:hover {
            /* Background, border and shadow removed */
        }

        .psychology-nav-link .subtitle {
            /* Color will be controlled by JavaScript */
        }

        /* Green styling for Psychology AI Chat page */
        .psychology-page-section .youth-start-btn {
            background: linear-gradient(135deg, #6A5490 0%, #54407A 100%) !important;
            box-shadow: 0 4px 15px rgba(106, 84, 144, 0.25) !important;
        }

        .psychology-page-section .youth-start-btn:hover {
            background: linear-gradient(135deg, #54407A 0%, #1B4E3C 100%) !important;
            box-shadow: 0 6px 20px rgba(106, 84, 144, 0.3) !important;
        }

        .psychology-page-section .chat-input button {
            background: linear-gradient(135deg, #6A5490 0%, #54407A 100%) !important;
            box-shadow: 0 4px 15px rgba(106, 84, 144, 0.25) !important;
        }

        .psychology-page-section .chat-input button:hover {
            background: linear-gradient(135deg, #54407A 0%, #1B4E3C 100%) !important;
            box-shadow: 0 6px 20px rgba(106, 84, 144, 0.35) !important;
        }

        .psychology-page-section .youth-footer {
            color: #6A5490;
        }

        .psychology-page-section .chat-powered {
            color: #6A5490;
        }



        .psychology-page-section .chat-header {
            background: linear-gradient(135deg, #6B4FB8 0%, #8B6DAF 100%) !important;
            color: white !important;
        }

        .psychology-page-section .message.ai {
            background: linear-gradient(135deg, #f0f5f3 0%, #e6efe9 100%) !important;
            border-left: 4px solid #6B4FB8 !important;
        }


        /* Additional green overrides for Psychology AI Chat page */
        .psychology-page-section .youth-subtitle {
            color: #6A5490 !important;
        }

        /* Desktop Sidebar for Subpages Only */
        @media (min-width: 1024px) {
            /* Show sidebar permanently on desktop for subpages */
            .psychology-page-section .mobile-topic-sidebar,
            .youth-page-section .mobile-topic-sidebar {
                display: block !important;
                position: fixed;
                left: 0;
                top: 80px;
                width: 280px;
                height: calc(100vh - 80px);
                /* Glassmorphism for desktop too */
                background: rgba(255, 255, 255, 0.8);
                backdrop-filter: saturate(180%) blur(20px);
                -webkit-backdrop-filter: saturate(180%) blur(20px);
                border-right: 1px solid rgba(255, 255, 255, 0.4);
                box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08),
                           inset 0 1px 0 rgba(255, 255, 255, 0.5);
                transition: none;
                z-index: 1000;
                overflow-y: auto;
            }

            /* Adjust main content to make room for sidebar */
            .psychology-page-section,
            .youth-page-section {
                padding-left: 280px;
            }

            /* Simplified layout for desktop sidebar */
            .psychology-page-section .sidebar-three-col-container,
            .youth-page-section .sidebar-three-col-container {
                flex-direction: column;
                padding: 20px 16px;
                gap: 0;
            }

            /* Hide canvas and white bar on desktop sidebar */
            .psychology-page-section .sidebar-canvas-col,
            .youth-page-section .sidebar-canvas-col,
            .psychology-page-section .sidebar-bar-col,
            .youth-page-section .sidebar-bar-col {
                display: none;
            }

            /* Full width for topics list */
            .psychology-page-section .sidebar-topics-col,
            .youth-page-section .sidebar-topics-col {
                width: 100%;
                min-width: unset;
                max-width: unset;
                height: auto;
                overflow-y: visible;
                padding-right: 0;
            }

            /* Topic items styling for desktop sidebar */
            .psychology-page-section .sidebar-topic-item,
            .youth-page-section .sidebar-topic-item {
                display: flex;
                gap: 12px;
                align-items: center;
                padding: 12px;
                margin-bottom: 8px;
                border-radius: 10px;
                cursor: pointer;
                transition: all 0.2s ease;
                background: white;
            }

            .psychology-page-section .sidebar-topic-item:hover,
            .youth-page-section .sidebar-topic-item:hover {
                background: linear-gradient(135deg, #f0f0ff 0%, #f5f0ff 100%);
                transform: translateX(4px);
            }

            .psychology-page-section .sidebar-topic-item:hover {
                background: linear-gradient(135deg, #e8f5f1 0%, #f0f9f5 100%);
            }

            /* Avatar styling */
            .psychology-page-section .sidebar-topic-avatar,
            .youth-page-section .sidebar-topic-avatar {
                width: 48px;
                height: 48px;
                flex-shrink: 0;
            }

            /* Text styling */
            .psychology-page-section .sidebar-topic-text,
            .youth-page-section .sidebar-topic-text {
                flex: 1;
            }

            .psychology-page-section .sidebar-topic-title,
            .youth-page-section .sidebar-topic-title {
                font-size: 14px;
                font-weight: 600;
                margin-bottom: 4px;
                color: #2c2c2c;
            }

            .psychology-page-section .sidebar-topic-subtitle,
            .youth-page-section .sidebar-topic-subtitle {
                font-size: 12px;
                color: #666;
                line-height: 1.4;
                white-space: normal;
            }

            /* Hide chevron button on desktop for subpages */
            .psychology-page-section .chevron-btn,
            .youth-page-section .chevron-btn {
                display: none !important;
            }

            /* Adjust content wrapper max-width */
            .psychology-page-section > div,
            .youth-page-section > div {
                max-width: 1400px;
                margin: 0 auto;
            }
        }


        .psychology-page-section strong {
            color: #6A5490 !important;
        }


        /* User message styling for Psychology AI Chat page */
        .psychology-page-section .message.user {
            background: linear-gradient(135deg, #e6efe9 0%, #d4e5dd 100%) !important;
            color: #2C5240 !important;
            border: 1px solid #b3d4c3 !important;
        }


        /* AI message specific overrides for Psychology page */
        .psychology-page-section .message.ai strong {
            color: #6A5490 !important;
        }

        .psychology-page-section .message {
            color: #2C5240 !important;
        }

        /* Psychology page chat input and button green styling */
        .psychology-page-section .chat-input input:focus,
        #anxiety .chat-input input:focus,
        #depression .chat-input input:focus,
        #stress .chat-input input:focus {
            border-color: #8B6DAF !important;
            box-shadow: 0 0 0 3px rgba(139, 109, 175, 0.1) !important;
        }

        .psychology-page-section .chat-input button,
        #anxiety .chat-input button,
        #depression .chat-input button,
        #stress .chat-input button {
            background: linear-gradient(135deg, #6A5490 0%, #9B7EBD 100%) !important;
            box-shadow: 0 4px 15px rgba(106, 84, 144, 0.3) !important;
        }

        .psychology-page-section .chat-input button:hover,
        #anxiety .chat-input button:hover,
        #depression .chat-input button:hover,
        #stress .chat-input button:hover {
            background: linear-gradient(135deg, #2D2142 0%, #8B6DAF 100%) !important;
            box-shadow: 0 6px 20px rgba(106, 84, 144, 0.4) !important;
        }

        /* Green message bubbles for topic pages */
        #anxiety .message.user,
        #depression .message.user,
        #stress .message.user {
            background: linear-gradient(135deg, #e6efe9 0%, #d4e5dd 100%) !important;
            color: #2C5240 !important;
            border: 1px solid #b3d4c3 !important;
        }

        #anxiety .message.ai,
        #depression .message.ai,
        #stress .message.ai {
            background: linear-gradient(135deg, #f0f7f4 0%, #e6efe9 100%) !important;
            color: #2C5240 !important;
        }

        #anxiety .message.ai strong,
        #depression .message.ai strong,
        #stress .message.ai strong {
            color: #6A5490 !important;
        }

        /* ==================== BOTTOM INPUT BAR ==================== */
        .bottom-input-container {
            display: none !important;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-top: 1px solid var(--input-border);
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
            padding: 16px 20px;
            padding-bottom: max(16px, env(safe-area-inset-bottom));
            z-index: 8500;
            transition: all 0.3s ease;
        }

        /* Add colored accent border at top for visual connection */
        .bottom-input-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent 0%, rgba(90, 168, 138, 0.3) 50%, transparent 100%);
            transition: all 0.3s ease;
        }

        body.on-psychology-page .bottom-input-container::before {
            background: linear-gradient(90deg, transparent 0%, rgba(178, 152, 220, 0.4) 50%, transparent 100%);
        }

        body.on-youth-page .bottom-input-container::before {
            background: linear-gradient(90deg, transparent 0%, rgba(90, 168, 138, 0.4) 50%, transparent 100%);
        }

        .bottom-input-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .input-field-container {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 25px;
            padding: 10px 18px;
            transition: all 0.3s ease;
            box-shadow: none;
        }

        .input-field-container:focus-within {
            border-color: #5AA88A;
            box-shadow: 0 0 0 3px rgba(90, 168, 138, 0.1);
        }

        /* Green focus for Psychology AI page */
        body.on-psychology-page .input-field-container:focus-within {
            border-color: #B298DC;
            box-shadow: 0 0 0 3px rgba(178, 152, 220, 0.1);
        }

        /* Purple focus for Youth AI page */
        body.on-youth-page .input-field-container:focus-within {
            border-color: #5AA88A;
            box-shadow: 0 0 0 3px rgba(90, 168, 138, 0.1);
        }

        .bottom-input-field {
            flex: 1;
            border: none;
            outline: none;
            font-size: 1rem;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: transparent;
            padding: 6px 8px;
            color: var(--text-color);
            min-height: 24px;
            max-height: 120px;
            resize: none;
            overflow-y: auto;
        }

        .bottom-input-field::placeholder {
            color: #999;
        }

        .input-icon-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
            color: #666;
            flex-shrink: 0;
        }

        .input-icon-btn:hover {
            background: rgba(90, 168, 138, 0.1);
            color: #2C5F4F;
        }

        /* Green hover for Psychology AI page */
        body.on-psychology-page .input-icon-btn:hover {
            background: rgba(178, 152, 220, 0.1);
            color: #6A5490;
        }

        /* Purple hover for Youth AI page */
        body.on-youth-page .input-icon-btn:hover {
            background: rgba(90, 168, 138, 0.1);
            color: #2C5F4F;
        }

        .input-icon-btn:active {
            transform: scale(0.95);
        }

        .input-icon-btn svg {
            width: 20px;
            height: 20px;
        }

        .send-btn {
            background: linear-gradient(135deg, #5AA88A 0%, #6BB896 100%);
            border: none;
            cursor: pointer;
            padding: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
            color: white;
            box-shadow: 0 4px 15px rgba(90, 168, 138, 0.25);
            width: 44px;
            height: 44px;
            flex-shrink: 0;
        }

        .send-btn:hover {
            background: linear-gradient(135deg, #4A9B7F 0%, #5AA88A 100%);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 6px 20px rgba(90, 168, 138, 0.35);
        }

        /* Green send button for Psychology AI page */
        body.on-psychology-page .send-btn {
            background: linear-gradient(135deg, #B298DC 0%, #7BC9A4 100%);
            box-shadow: 0 4px 15px rgba(178, 152, 220, 0.25);
        }

        body.on-psychology-page .send-btn:hover {
            background: linear-gradient(135deg, #5AA785 0%, #B298DC 100%);
            box-shadow: 0 6px 20px rgba(178, 152, 220, 0.35);
        }

        /* Purple send button for Youth AI page */
        body.on-youth-page .send-btn {
            background: linear-gradient(135deg, #5AA88A 0%, #6BB896 100%);
            box-shadow: 0 4px 15px rgba(90, 168, 138, 0.25);
        }

        body.on-youth-page .send-btn:hover {
            background: linear-gradient(135deg, #4A9B7F 0%, #5AA88A 100%);
            box-shadow: 0 6px 20px rgba(90, 168, 138, 0.35);
        }

        .send-btn:active {
            transform: translateY(0);
        }

        .send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .send-btn svg {
            width: 20px;
            height: 20px;
        }

        /* Hide file input */
        #fileInput {
            display: none;
        }

        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .bottom-input-container {
                padding: 10px 12px;
                padding-bottom: max(10px, env(safe-area-inset-bottom));
            }

            .bottom-input-wrapper {
                gap: 8px;
            }

            .input-field-container {
                padding: 6px 12px;
                border-radius: 20px;
            }

            .bottom-input-field {
                font-size: 16px; /* Prevents zoom on iOS */
            }

            .send-btn {
                width: 40px;
                height: 40px;
                padding: 10px;
            }

            .input-icon-btn {
                padding: 6px;
            }

            .input-icon-btn svg {
                width: 18px;
                height: 18px;
            }
        }

        /* Adjust content padding to prevent overlap with bottom bar */
        body {
            padding-bottom: 80px;
        }

        @media (max-width: 768px) {
            body {
                /* Avoid exposing the body's grey background after the footer. */
                padding-bottom: 0;
            }

            .footer {
                padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
            }
        }

        /* Animation for bottom bar */
        @keyframes slideUpFadeIn {
            from {
                opacity: 0;
                transform: translateY(100%);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .bottom-input-container {
            animation: slideUpFadeIn 0.4s ease-out;
        }

        /* Testimonials hover effect */
        .testimonial-card-horizontal:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
        }

        /* Hide scrollbar but keep functionality */
        .hide-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .hide-scrollbar::-webkit-scrollbar {
            display: none;
        }

        /* Tailwind-like utility classes */
        .bg-white { background-color: white; }
        .py-16 { padding-top: 4rem; padding-bottom: 4rem; }
        .max-w-7xl { max-width: 80rem; }
        .mx-auto { margin-left: auto; margin-right: auto; }
        .px-4 { padding-left: 1rem; padding-right: 1rem; }
        .text-center { text-align: center; }
        .text-gray-600 { color: #4b5563; }
        .text-gray-700 { color: #374151; }
        .text-gray-800 { color: #1f2937; }
        .text-gray-400 { color: #9ca3af; }
        .text-indigo-600 { color: #6366f1; }
        .text-yellow-400 { color: #fbbf24; }
        .mb-10 { margin-bottom: 2.5rem; }
        .mb-4 { margin-bottom: 1rem; }
        .mt-2 { margin-top: 0.5rem; }
        .mt-4 { margin-top: 1rem; }
        .mt-6 { margin-top: 1.5rem; }
        .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
        .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
        .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
        .text-xs { font-size: 0.75rem; line-height: 1rem; }
        .text-2xl { font-size: 1.5rem; line-height: 2rem; }
        .font-semibold { font-weight: 600; }
        .leading-relaxed { line-height: 1.625; }
        .rounded-full { border-radius: 9999px; }
        .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-100 { border-color: #f3f4f6; }
        .p-3 { padding: 0.75rem; }
        .p-6 { padding: 1.5rem; }
        .w-6 { width: 1.5rem; }
        .h-6 { height: 1.5rem; }
        .w-12 { width: 3rem; }
        .h-12 { height: 3rem; }
        .mr-4 { margin-right: 1rem; }
        .flex { display: flex; }
        .flex-shrink-0 { flex-shrink: 0; }
        .items-center { align-items: center; }
        .justify-center { justify-content: center; }
        .gap-6 { gap: 1.5rem; }
        .overflow-x-auto { overflow-x: auto; }
        .scroll-smooth {
            scroll-behavior: smooth;
        }

        /* Enhanced smooth scrolling for testimonials */
        #testimonialsContainer {
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }

        /* Smooth scroll with custom timing */
        @media (prefers-reduced-motion: no-preference) {
            #testimonialsContainer {
                scroll-behavior: smooth;
            }
        }
        .relative { position: relative; }
        .absolute { position: absolute; }
        .z-10 { z-index: 10; }
        .transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
        .duration-300 { transition-duration: 300ms; }
        .w-full { width: 100%; }
        .left-0 { left: 0; }
        .right-0 { right: 0; }
        .top-1\/2 { top: 50%; }
        .-translate-y-1\/2 { transform: translateY(-50%); }
        .hover\:bg-gray-50:hover { background-color: #f9fafb; }
        .hidden { display: none; }

        @media (min-width: 640px) {
            .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
            .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
            .sm\:w-\[calc\(50\%-12px\)\] { width: calc(50% - 12px); }
        }

        @media (min-width: 768px) {
            .md\:block { display: block; }
        }

        @media (min-width: 1024px) {
            .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
            .lg\:w-\[calc\(20\%-19\.2px\)\] { width: calc(20% - 19.2px); }
            .lg\:hidden { display: none; }
        }

        /* Chat Preview Section Styles */
        .chat-preview-section {
            padding: 3rem 5%;
            max-width: 800px;
            margin: 0 auto;
        }

        .chat-preview {
            height: 400px;
            overflow-y: auto;
            padding: 1.5rem;
            background: linear-gradient(to bottom, #f8faf8, #ffffff);
            display: flex;
            flex-direction: column;
        }

        .chat-preview::-webkit-scrollbar {
            width: 8px;
        }

        .chat-preview::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .chat-preview::-webkit-scrollbar-thumb {
            background: #9B7EBD;
            border-radius: 10px;
        }

        .chat-preview::-webkit-scrollbar-thumb:hover {
            background: #8B6DAF;
        }

        /* Scrollbar for Youth chat */
        .youth-preview::-webkit-scrollbar {
            width: 8px;
        }

        .youth-preview::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .youth-preview::-webkit-scrollbar-thumb {
            background: #5AA88A;
            border-radius: 10px;
        }

        .youth-preview::-webkit-scrollbar-thumb:hover {
            background: #7B68AD;
        }

        /* Dark mode for chat preview */
        [data-theme="dark"] .chat-preview {
            background: linear-gradient(to bottom, #2d2d2d, #1a1a1a);
        }

        [data-theme="dark"] .youth-preview {
            background: linear-gradient(to bottom, #2d2d2d, #1a1a1a);
        }

        /* Mobile responsive layout for carousel cards */
        @media (max-width: 1024px) {
            .psychology-chat-card,
            .youth-chat-card {
                flex-direction: column !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            .psychology-chat-card .youth-intro,
            .youth-chat-card .youth-intro {
                order: 1;
                padding: 2rem 1.5rem !important;
                flex: none !important;
                width: 100% !important;
            }

            .psychology-chat-card > div:nth-child(2),
            .youth-chat-card > div:nth-child(2) {
                order: 2;
                flex: none !important;
                width: 100% !important;
            }

            .chat-preview,
            .youth-preview {
                min-height: 350px !important;
            }
        }

        @media (max-width: 768px) {
            .chat-preview-section {
                padding: 2rem 1rem;
            }

            .chat-preview,
            .youth-preview {
                height: 300px;
                padding: 1rem;
                min-height: 300px !important;
            }

            .chat-preview-section h2 {
                font-size: 1.5rem;
            }

            .psychology-chat-card .youth-intro,
            .youth-chat-card .youth-intro {
                padding: 1.5rem 1rem !important;
            }

            .psychology-chat-card .youth-logo svg,
            .youth-chat-card .youth-logo svg {
                width: 80px !important;
                height: 80px !important;
            }

            .psychology-chat-card .youth-title,
            .youth-chat-card .youth-title {
                font-size: 1.8rem !important;
            }

            .psychology-chat-card .youth-subtitle,
            .youth-chat-card .youth-subtitle {
                font-size: 0.95rem !important;
            }
        }





/* ── Language Dropdown ──────────────────────────────────────────── */
#langSwitcherWrap {
  position: relative;
}

#langDropdownBtn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
  min-width: unset;
  min-height: unset;
  line-height: 1;
}
#langDropdownBtn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
}
#langDropdownBtn #langDropdownFlag {
  font-size: 16px;
  line-height: 1;
}
#langDropdownBtn #langDropdownCode {
  font-size: 13px;
  font-weight: 700;
}
#langDropdownArrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.85;
}
#langSwitcherWrap.open #langDropdownArrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
#langDropdownMenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  list-style: none;
  margin: 0;
  padding: 5px 0;
  min-width: 90px;
  z-index: 9999;
  overflow: hidden;
}
#langSwitcherWrap.open #langDropdownMenu {
  display: block;
  animation: ddFadeIn 0.15s ease;
}
@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
#langDropdownMenu li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2e3a3a;
  letter-spacing: 0.03em;
  transition: background 0.12s;
  white-space: nowrap;
}
#langDropdownMenu li:hover {
  background: #f0f7f4;
}
#langDropdownMenu li.selected {
  color: #6A5490;
  background: #e8f5ef;
}
#langDropdownMenu li img, #langDropdownBtn img {
  width: 20px;
  height: auto;
  border-radius: 2px;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

/* On sub-pages (light navbar) */
body.on-subpage #langDropdownBtn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.2);
  color: #333;
}
body.on-subpage #langDropdownBtn:hover {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.4);
}

/* Mobile: full width in menu */
@media (max-width: 768px) {
  #langSwitcherWrap {
    width: 100%;
  }
  #langDropdownBtn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
    background: rgba(178, 152, 220,0.15);
    border-color: rgba(178, 152, 220,0.5);
    color: #6A5490;
    border-radius: 8px;
  }
  #langDropdownMenu {
    left: 0;
    right: 0;
    min-width: 100%;
  }
}




/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM VISUAL REFRESH
   Visual layer only — no markup, structure, content, image, navigation or
   breakpoint changes. Loaded last so it wins the cascade on equal specificity.
   ══════════════════════════════════════════════════════════════════════════ */

:root{
  --px-a:#E100FF;
  --px-b:#7B4DFF;
  --px-c:#5B6CFF;
  --px-grad:linear-gradient(135deg,#E100FF 0%,#7B4DFF 52%,#5B6CFF 100%);
  --px-ease:cubic-bezier(.16,.84,.44,1);
}

/* ── 1. Typography ──────────────────────────────────────────────────────── */
body{
  font-family:'Inter','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
.navbar .nav-links,
.navbar .nav-links a,
.hero .hero-content h1,
.hero .hero-content p,
.hero .cta-container .cta-button,
.gradient-banner .banner-title{
  font-family:'Inter','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

/* ── 2. Navigation ──────────────────────────────────────────────────────── */
.navbar .logo{
  font-family:'Poppins',sans-serif;
  font-weight:700;
  letter-spacing:normal;
  text-shadow:0 1px 12px rgba(0,0,0,.28);
  transition:opacity .3s var(--px-ease), transform .3s var(--px-ease);
}
.navbar .logo:hover{ opacity:.92; transform:translateY(-1px); }

/* Logo mark — lives outside .logo (which is a data-i18n innerHTML target),
   so a language switch can never strip it. */
.navbar .logo-container{ position:relative; }
.navbar .logo-mark{
  order:0;                                  /* before .logo (order:1) */
  flex:0 0 auto;
  width:34px;
  height:34px;
  margin-right:.55rem;
  border-radius:8px;
  cursor:pointer;
  transition:opacity .3s var(--px-ease), transform .3s var(--px-ease);
}
.navbar .logo-mark:hover{ opacity:.92; transform:translateY(-1px); }

/* ≥1025px there is at least 51px of navbar left padding (5%), so the mark is
   lifted out of flow into it — this keeps the "Psychology AI" wordmark at
   exactly the x-position it had before. Below that the padding is too narrow
   (3% / 2%) and the mark would clip off-screen, so it returns to normal flow. */
@media (min-width:1025px){
  .navbar .logo-mark{
    position:absolute;
    right:100%;                             /* right edge meets the wordmark's left edge */
    top:50%;
    transform:translateY(-50%);
    margin-right:10px;
  }
  .navbar .logo-mark:hover{
    opacity:.92;
    transform:translateY(-50%) scale(1.06);
  }
}

.navbar .nav-links{ gap:2.9rem; }
.navbar .nav-links a{
  letter-spacing:-0.01em;
  transition:color .3s var(--px-ease), transform .3s var(--px-ease), opacity .3s var(--px-ease);
}
.navbar .nav-links a:hover{ transform:translateY(-2px); opacity:.92; }
.navbar .nav-links a .subtitle{ letter-spacing:.02em; }

/* Share icon — thinner strokes, slightly larger, more breathing room */
.navbar .share-button{
  margin-left:.35rem;
  transition:transform .3s var(--px-ease), opacity .3s var(--px-ease);
}
.navbar .share-button:hover{ transform:translateY(-1px) scale(1.05); opacity:.92; }
.navbar .share-button svg{
  width:22px;
  height:22px;
  stroke-width:1.4;
}

/* Menu icon — larger and softer */
.navbar .hamburger{ gap:6px; }
.navbar .hamburger span{
  width:28px;
  height:3px;
  border-radius:2px;
  transition:transform .3s var(--px-ease), opacity .3s var(--px-ease), background .3s var(--px-ease);
}
.navbar .mobile-chevron{ transition:transform .3s var(--px-ease), opacity .3s var(--px-ease); }

#langDropdownBtn{
  font-family:'Inter','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
  transition:background .3s var(--px-ease), border-color .3s var(--px-ease), transform .3s var(--px-ease);
}
#langDropdownBtn:hover{ transform:translateY(-1px); }

/* ── 3. Hero ────────────────────────────────────────────────────────────── */
.hero{
  padding:115px 5% 0;                       /* +15% top breathing room */
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.hero::before{
  background:linear-gradient(180deg,
              rgba(0,0,0,.495) 0%,
              rgba(0,0,0,.414) 42%,
              rgba(0,0,0,.522) 100%);
}
.hero .hero-content{
  padding:0 3.45rem;                        /* +15% */
  animation:none;                           /* replaced by staggered children */
}

.hero .hero-content h1{
  font-weight:800;
  letter-spacing:-0.04em;
  line-height:1.2;
  color:#fff;
  /* Keep the homepage headline compact while preserving fluid scaling. */
  font-size:clamp(1.5rem,3.2vw,2.35rem);
  margin-bottom:2.3rem;                     /* +15% */
  text-shadow:0 2px 18px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
  animation:pxFadeIn .8s var(--px-ease) both;
}
/* Gradient accent rule beneath the headline */
.hero .hero-content h1::after{
  content:'';
  display:block;
  width:104px;
  height:3px;
  margin:1.45rem auto 0;
  border-radius:999px;
  background:linear-gradient(90deg,var(--px-a) 0%,var(--px-b) 50%,var(--px-c) 100%);
  box-shadow:0 0 18px rgba(123,77,255,.55);
}

.hero .hero-content p{
  font-size:16px;
  line-height:1.7;
  letter-spacing:-0.005em;
  color:rgba(255,255,255,.92);
  margin-bottom:3.45rem;                    /* +15% */
  text-shadow:0 1px 12px rgba(0,0,0,.42), 0 1px 2px rgba(0,0,0,.3);
  animation:pxFadeIn .8s var(--px-ease) .1s both;
}

.hero .hero-content .hero-brand{
  letter-spacing:.1em;
  text-shadow:0 1px 10px rgba(0,0,0,.4);
  animation:pxFadeIn .8s var(--px-ease) both;
}

.hero .cta-container{ gap:1.72rem; }        /* +15% */

/* ── 4. Primary CTA ─────────────────────────────────────────────────────── */
.hero .cta-container .cta-button{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:52px;
  padding:0 30px;
  border:2px solid transparent;
  border-radius:999px;
  font-size:.95rem;
  font-weight:700;
  letter-spacing:-0.01em;
  color:#1B1330;
  background:linear-gradient(#fff,#fff) padding-box,
             linear-gradient(135deg,#E100FF 0%,#7B4DFF 52%,#5B6CFF 100%) border-box;
  box-shadow:0 12px 35px rgba(111,80,255,.30), 0 2px 8px rgba(0,0,0,.16);
  transition:transform .3s var(--px-ease), box-shadow .3s var(--px-ease);
  animation:pxFadeUp .8s var(--px-ease) .22s both;
}
/* Chat icon (CSS-only so the i18n innerHTML swap can never strip it) */
.hero .cta-container .cta-button::before{
  content:'';
  flex:0 0 18px;
  width:18px;
  height:18px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1330' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Soft coloured glow behind the pill */
.hero .cta-container .cta-button::after{
  content:'';
  position:absolute;
  inset:-7px;
  z-index:-1;
  border-radius:999px;
  background:linear-gradient(135deg,var(--px-a) 0%,var(--px-c) 100%);
  filter:blur(20px);
  opacity:.34;
  animation:pxGlow 4.5s ease-in-out infinite;
}
.hero .cta-container .cta-button:hover{
  transform:translateY(-2px) scale(1.03);
  background:linear-gradient(#fff,#fff) padding-box,
             linear-gradient(135deg,#E100FF 0%,#7B4DFF 52%,#5B6CFF 100%) border-box;
  box-shadow:0 18px 48px rgba(111,80,255,.45), 0 4px 14px rgba(0,0,0,.22);
}
.hero .cta-container .cta-button:hover::after{ opacity:.5; }
.hero .cta-container .cta-button:active{ transform:translateY(0) scale(.99); }
.hero .cta-container .cta-button:focus-visible{
  outline:3px solid rgba(255,255,255,.85);
  outline-offset:3px;
}

/* ── 4b. Trust reassurance line under the CTA ───────────────────────────── */
/* Sibling of .cta-container (not a child) so the container's flex `gap`
   doesn't dictate the spacing — margin-top is set explicitly instead. */
.hero .hero-content .hero-trust{
  display:flex;
  flex-wrap:wrap;                           /* wraps gracefully on narrow screens */
  align-items:center;
  justify-content:center;
  gap:.5em;
  /* `auto` sides + max-width:none are required: the base sheet's `.hero p`
     rule sets max-width:800px with auto margins, and a `margin` shorthand
     here would reset those sides to 0 — pinning this line left of centre. */
  margin:20px auto 0;
  max-width:none;
  font-size:15px;
  font-weight:500;
  line-height:1.5;
  letter-spacing:-0.005em;
  color:rgba(255,255,255,.82);
  text-shadow:0 1px 10px rgba(0,0,0,.42), 0 1px 2px rgba(0,0,0,.3);
  animation:pxFadeIn .8s var(--px-ease) .32s both;
}
/* Shield mark — CSS-only, so the i18n innerHTML swap can never strip it */
.hero .hero-content .hero-trust::before{
  content:'';
  flex:0 0 16px;
  width:16px;
  height:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity:.85;
}

/* ── 5. Companion section introduction ─────────────────────────────────── */
.gradient-banner{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  box-sizing:border-box;
  width:90%;
  max-width:1200px;
  margin:clamp(48px,6vw,76px) auto 0;
  padding:clamp(30px,4vw,46px) clamp(24px,4.5vw,56px);
  text-align:left;
  border:1px solid rgba(106,84,144,.14);
  border-radius:18px;
  background:linear-gradient(120deg,
              rgba(225,0,255,.075) 0%,
              rgba(123,77,255,.07) 52%,
              rgba(91,108,255,.095) 100%);
  box-shadow:0 8px 24px rgba(52,41,77,.07);
}
/* A restrained texture keeps the brand treatment without competing with the cards. */
.gradient-banner::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(106,84,144,.13) .8px, transparent .9px);
  background-size:18px 18px;
  opacity:.35;
}
/* Soft brand glow, contained to the edge of the introduction. */
.gradient-banner::after{
  content:'';
  position:absolute;
  inset:-70px -40px auto auto;
  width:240px;
  height:180px;
  border-radius:50%;
  z-index:0;
  pointer-events:none;
  background:rgba(123,77,255,.09);
  filter:blur(32px);
}
.gradient-banner .banner-title{
  position:relative;
  z-index:1;
  max-width:820px;
  margin:0;
  color:#3f3454;
  font-size:clamp(1.75rem,3vw,2.4rem);
  font-weight:700;
  letter-spacing:-0.035em;
  line-height:1.2;
  text-shadow:none;
}
.gradient-banner .banner-subtitle{
  position:relative;
  z-index:1;
  max-width:680px;
  margin:12px 0 0;
  color:#655d72;
  font-size:clamp(.98rem,1.5vw,1.08rem);
  line-height:1.65;
}

@media (min-width:969px){
  .gradient-banner .banner-title{
    max-width:none;
    white-space:nowrap;
  }
}

/* ── 6. Motion ──────────────────────────────────────────────────────────── */
@keyframes pxFadeIn{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes pxFadeUp{
  from{ opacity:0; transform:translateY(24px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes pxGlow{
  0%,100%{ opacity:.30; transform:scale(1); }
  50%{ opacity:.52; transform:scale(1.045); }
}

/* ── 7. Responsive parity (same breakpoints as the existing sheet) ──────── */
@media (max-width:968px){
  .hero{ padding:115px 2rem 0; }            /* was 100px 2rem 0  (+15%) */
  .gradient-banner{
    width:calc(100% - 4rem);
    border-radius:16px;
  }
}
@media (max-width:768px){
  .hero{ padding:172px 1rem 2.3rem; }       /* was 150px 1rem 2rem (+15%) */
  /* Keep the subject within the right third, with breathing room at the edge. */
  .hero{ background-position:75% center; }
  .hero .hero-content h1{ margin-bottom:1.9rem; }
  .hero .hero-content h1::after{ width:88px; margin-top:1.25rem; }
  .hero .hero-content p{
    font-size:17px;
    padding:0;                              /* offsets the wider hero inset */
    margin-bottom:2.9rem;
  }
  .hero .cta-container .cta-button{
    height:49px;
    padding:0 25px;
    font-size:.9rem;
    gap:9px;
  }
  .hero .hero-content .hero-trust{
    margin-top:18px;
    font-size:14.5px;
  }
  .navbar .logo-mark{                       /* tracks .logo dropping to 1.5rem */
    width:30px;
    height:30px;
    margin-right:.5rem;
    border-radius:7px;
  }
  .gradient-banner{
    width:calc(100% - 2rem);
    margin-top:44px;
    border-radius:16px;
  }
  .navbar .share-button{ right:62px; }      /* more space beside the menu icon */
}
@media (max-width:480px){
  .hero .hero-content p{ font-size:16.5px; }
  .hero .cta-container .cta-button{
    height:47px;
    padding:0 21px;
    font-size:.87rem;
  }
  .hero .hero-content .hero-trust{
    margin-top:18px;
    font-size:14px;
    gap:.45em;
    padding:0 .5rem;                        /* keeps wrapped lines off the edge */
  }
  .hero .hero-content .hero-trust::before{
    flex-basis:15px;
    width:15px;
    height:15px;
  }
  .navbar .logo-mark{                       /* tracks .logo dropping to 1.2rem */
    width:26px;
    height:26px;
    margin-right:.45rem;
    border-radius:6px;
  }
  .gradient-banner{
    width:calc(100% - 24px);
    margin-top:36px;
    padding:28px 22px;
    border-radius:14px;
  }
}

/* Upcoming mobile apps: informational only until the store listings launch. */
.hero .hero-app-badges{
  position:absolute;
  left:clamp(24px, 3vw, 48px);
  bottom:clamp(24px, 3vw, 40px);
  z-index:1;
  display:flex;
  width:clamp(140px, 13vw, 180px);
  flex-direction:column;
  align-items:center;
  gap:8px;
  pointer-events:none;
}
.hero .hero-app-badges img{
  display:block;
  width:100%;
  height:auto;
}
.hero .hero-app-badges p{
  align-self:stretch;
  box-sizing:border-box;
  margin:-28px 0 0;
  max-width:none;
  color:#4f5362;
  background:transparent;
  font-family:inherit;
  font-size:12px;
  font-weight:400;
  line-height:1.3;
  text-align:center;
  text-shadow:none;
}
@media (max-width:968px){
  .hero .hero-app-badges{
    position:absolute;
    left:max(20px, env(safe-area-inset-left, 0px));
    bottom:max(20px, env(safe-area-inset-bottom, 0px));
    width:150px;
    margin:0;
    flex:0 0 auto;
  }
  .hero .hero-app-badges p{ margin-top:-23px; }
}
@media (max-width:480px){
  .hero .hero-app-badges{
    width:132px;
    gap:6px;
  }
  .hero .hero-app-badges p{
    margin-top:-20px;
    font-size:11px;
  }
}

/* ── 8. Accessibility ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .hero .hero-content h1,
  .hero .hero-content p,
  .hero .hero-content .hero-brand,
  .hero .hero-content .hero-trust,
  .hero .cta-container .cta-button,
  .hero .cta-container .cta-button::after{
    animation:none !important;
  }
  .hero .cta-container .cta-button:hover{ transform:none; }
}

/* ── 9. Mobile top-bar icon normalisation ───────────────────────────────────
   Sizes the share and hamburger icons to match .mobile-chevron (the reference:
   44x44 tap target, 24px glyph, 2px stroke). All three keep 44x44 hit areas.
   Self-contained and additive — delete this whole block to revert.
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width:1024px){

  /* Hamburger: was 52x44 (28x3 bars, 12px padding) -> now 44x44 (24x2 bars) */
  .navbar .hamburger{
    width:44px;
    height:44px;
    padding:10px;
    gap:5px;
  }
  .navbar .hamburger span{
    width:24px;
    height:2px;
    border-radius:2px;
  }
  /* X-close retuned: old offsets were tuned for 3px bars / 6px gap */
  .navbar .hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(5px,5px);
  }
  .navbar .hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(5px,-5px);
  }

  /* Share: 44x44 tap target, matching the chevron and hamburger. */
  .share-button-mobile{
    width:44px;
    height:44px;
    padding:10px;
  }
  /* Share: the share mark fills nearly all of its viewBox where the chevron
     fills about a quarter, so at an equal 24px it reads visibly bigger.
     20px + a lighter stroke lands it at optical parity with the other two. */
  .share-button-mobile svg{
    width:20px;
    height:20px;
    stroke-width:1.7;
  }

  /* Was right:60px, which overlapped the 52px-wide hamburger's tap target.
     Track the navbar's percentage padding instead: padding + 44px + 8px gap.
     top centres the 44px box in the 80px navbar at this breakpoint. */
  .share-button-mobile{
    top:18px;
    right:calc(5% + 52px);
  }
}

@media (max-width:768px){
  .share-button-mobile{
    top:16px;                    /* navbar padding-top: 1rem */
    right:calc(3% + 52px);       /* navbar padding-inline: 3% */
  }
}

@media (max-width:480px){
  .share-button-mobile{
    top:13px;                    /* navbar padding-top: 0.8rem */
    right:calc(2% + 52px);       /* navbar padding-inline: 2% */
  }
}

/* ── 10. Mobile navigation panel ────────────────────────────────────────────
   Redesign of the hamburger dropdown: grouped sections, icon-led rows,
   two-line labels, right chevrons, current-companion state.

   Scoped entirely to max-width:768px, which is exactly where .nav-links
   becomes the column panel. Desktop (>=769px) is untouched except for the
   three neutralising rules directly below, which keep the new wrapper
   elements out of the desktop row.
   Self-contained and additive - delete this block to revert.
   ───────────────────────────────────────────────────────────────────────── */

/* Desktop / tablet row: hide the new affordances, and make the wrappers
   reproduce the previous stacked title+subtitle layout exactly. */
@media (min-width:769px){
  .navbar .nav-links .pnav-group,
  .navbar .nav-links .pnav-ico,
  .navbar .nav-links .pnav-desc,
  .navbar .nav-links .pnav-cue{ display:none; }
  .navbar .nav-links .pnav-text,
  .navbar .nav-links .pnav-head{
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .navbar .nav-links #langDropdownName{ display:none; }
}

@media (max-width:768px){

  /* ── Panel surface ─────────────────────────────────────────────────────
     Cleaner than the previous glass: near-opaque so the hero image can't
     bleed through behind body text. Scrolls internally rather than
     clipping, and clears the iOS home indicator / Safari toolbar. */
  .navbar .nav-links{
    gap:2px;                         /* was inheriting 2.9rem from the
                                        desktop rule - the empty-looking
                                        panel in the current build */
    /* The <ul> has an inline style="margin:0; padding:0" attribute, which
       outranks normal author rules. !important is required here or the panel
       loses its padding and its safe-area inset entirely. */
    padding:10px 10px
            calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    margin-top:.75rem !important;
    border-radius:18px;
    text-align:left;
    background:rgba(252,251,254,.97);
    border:1px solid rgba(17,12,34,.07);
    box-shadow:0 18px 48px rgba(20,12,40,.22),
               0 2px 8px rgba(20,12,40,.08);
    backdrop-filter:saturate(150%) blur(14px);
    -webkit-backdrop-filter:saturate(150%) blur(14px);
    max-height:calc(100dvh - 150px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  [data-theme="dark"] .navbar .nav-links{
    background:rgba(24,21,33,.97);
    border-color:rgba(255,255,255,.09);
    box-shadow:0 18px 48px rgba(0,0,0,.55),
               0 2px 8px rgba(0,0,0,.3);
  }
  /* Older Safari without dvh support */
  @supports not (height:100dvh){
    .navbar .nav-links{ max-height:calc(100vh - 190px); }
  }

  /* The in-panel share row is empty here (the share control lives in the
     top bar on mobile), so it was rendering as dead vertical space. */
  .navbar .nav-links .pnav-share-li{ display:none !important; }

  .navbar .nav-links li{ width:100%; }

  /* ── Section headings ──────────────────────────────────────────────── */
  .navbar .nav-links .pnav-group{
    padding:14px 12px 6px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.09em;
    text-transform:uppercase;
    color:#6E5B93;
    line-height:1.2;
  }
  .navbar .nav-links .pnav-group:first-child{ padding-top:6px; }
  [data-theme="dark"] .navbar .nav-links .pnav-group{ color:#A995C9; }

  /* ── Rows ──────────────────────────────────────────────────────────── */
  .navbar .nav-links a.pnav-item{
    display:flex !important;         /* beats the older
                                        `.nav-links a{display:block!important}` */
    flex-direction:row !important;   /* the base sheet's `.nav-links a` sets
                                        column for the desktop stacked label;
                                        without this the row renders vertically */
    justify-content:flex-start;
    align-items:center;
    gap:12px;
    width:100%;
    min-height:60px;                 /* >= 44px touch target */
    padding:10px 10px;
    border-radius:14px;
    text-align:left;
    background:transparent;
    transition:background .18s var(--px-ease), transform .18s var(--px-ease);
  }
  .navbar .nav-links a.pnav-item:hover{ transform:none; }
  .navbar .nav-links a.pnav-item:active{ background:rgba(106,84,144,.10); }
  [data-theme="dark"] .navbar .nav-links a.pnav-item:active{
    background:rgba(178,152,220,.16);
  }

  /* Visible keyboard focus */
  .navbar .nav-links a.pnav-item:focus-visible,
  .navbar .nav-links #langDropdownBtn:focus-visible{
    outline:2px solid #6A5490;
    outline-offset:2px;
  }
  [data-theme="dark"] .navbar .nav-links a.pnav-item:focus-visible,
  [data-theme="dark"] .navbar .nav-links #langDropdownBtn:focus-visible{
    outline-color:#C0A8E6;
  }

  /* ── Icon tile ─────────────────────────────────────────────────────── */
  .navbar .nav-links .pnav-ico{
    flex:0 0 auto;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:rgba(106,84,144,.10);
    color:#6A5490;
  }
  .navbar .nav-links .pnav-ico svg{ width:22px; height:22px; }
  .navbar .nav-links .pnav-youth .pnav-ico{
    background:rgba(44,95,79,.10);
    color:#2C5F4F;
  }
  .navbar .nav-links .pnav-business .pnav-ico{
    background:rgba(91,108,255,.11);
    color:#4756C9;
  }
  [data-theme="dark"] .navbar .nav-links .pnav-ico{
    background:rgba(178,152,220,.16); color:#C0A8E6;
  }
  [data-theme="dark"] .navbar .nav-links .pnav-youth .pnav-ico{
    background:rgba(107,184,150,.16); color:#6BB896;
  }
  [data-theme="dark"] .navbar .nav-links .pnav-business .pnav-ico{
    background:rgba(139,152,255,.16); color:#9AA6FF;
  }

  /* ── Two-line label ────────────────────────────────────────────────── */
  .navbar .nav-links .pnav-text{
    flex:1 1 auto;                   /* takes the space left by icon and cue */
    min-width:0;                     /* lets long labels wrap instead of
                                        forcing horizontal overflow */
    display:block;                   /* the title row and the description are
                                        just two stacked blocks - normal flow
                                        handles that, and one less nested flex
                                        context is one less thing for engines
                                        to disagree about */
    text-align:left;
  }
  /* Plain inline flow, not flex. The title and the small Adult/Youth label are
     two runs of text on one line - inline flow gives baseline alignment for
     free, wraps only at word boundaries, and avoids the flex-shrink and
     percentage-resolution differences between rendering engines that made the
     title break mid-phrase. */
  .navbar .nav-links .pnav-head{
    display:block;
    line-height:1.25;                /* own strut, so a row without the small
                                        Adult/Youth label is the same height
                                        as one with it */
  }
  .navbar .nav-links .pnav-head .pnav-title{ display:inline; }
  .navbar .nav-links a.pnav-item .subtitle{
    display:inline;
    margin-left:6px;
    white-space:nowrap;              /* "Adult" / "Youth" never break */
  }
  /* Explicit colour, not `inherit`: showPage() sets an inline !important
     colour on #psychologyNavLink / #youthPsychologyNavLink for the desktop row, and
     those brand fills sit at roughly 2:1 on this light panel. Desktop keeps
     that behaviour; here the current state is carried by the tint and the
     checkmark instead, at AA contrast. */
  .navbar .nav-links .pnav-title{
    font-size:15px;
    font-weight:700;
    line-height:1.25;
    /* no negative letter-spacing here: at this size it is ~0.15px per
       character, and sub-pixel tracking makes text measurement (and therefore
       where a title wraps) differ between engines for no visible gain */
    color:#1A1526;
  }
  .navbar .nav-links a.pnav-item .subtitle{
    font-size:11px !important;
    font-weight:600;
    line-height:1.2;
    letter-spacing:.02em;
    color:#5A6474 !important;
    opacity:1;
  }
  .navbar .nav-links .pnav-desc{
    display:block;                   /* these are <span>s - state the box type
                                        rather than relying on blockification */
    margin-top:2px;                  /* replaces the former flex `gap` */
    font-size:12.5px;
    font-weight:400;
    line-height:1.35;
    color:#5A6474;
  }
  [data-theme="dark"] .navbar .nav-links .pnav-title{ color:#F2EFF7; }
  [data-theme="dark"] .navbar .nav-links .pnav-desc,
  [data-theme="dark"] .navbar .nav-links a.pnav-item .subtitle{
    color:#B6B2C4 !important;
  }

  /* ── Chevron / checkmark ───────────────────────────────────────────── */
  .navbar .nav-links .pnav-cue{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    color:#847A93;                   /* 3.9:1 on the panel - clears the 3:1
                                        non-text contrast floor (1.4.11) */
  }
  .navbar .nav-links .pnav-cue svg{ width:18px; height:18px; }
  /* A global `svg{display:inline-block!important}` rule exists in this
     stylesheet, so hiding an inline SVG needs !important to win. Without it
     the check and the chevron render side by side on every row. */
  .navbar .nav-links .pnav-check{ display:none !important; }
  [data-theme="dark"] .navbar .nav-links .pnav-cue{ color:#8A8399; }

  /* ── No selected-state styling ─────────────────────────────────────────
     Every row reads the same: panel background, right-facing chevron. The
     current companion is still exposed to assistive tech via aria-current,
     which syncNavCurrent() keeps in step with the body page class - that is
     deliberately not mirrored visually.

     The .pnav-check SVGs remain in the markup (aria-hidden, and held at
     display:none by the .pnav-check rule above, which has to stay because of
     the global `svg{display:inline-block!important}`). Restoring a selected
     state is therefore a CSS-only change. */

  /* ── Language row ──────────────────────────────────────────────────── */
  .navbar .nav-links #langSwitcherWrap{
    margin-top:8px;
    padding-top:10px;
    border-top:1px solid rgba(17,12,34,.09);
  }
  [data-theme="dark"] .navbar .nav-links #langSwitcherWrap{
    border-top-color:rgba(255,255,255,.10);
  }
  .navbar .nav-links #langDropdownBtn{
    justify-content:flex-start;
    gap:10px;
    min-height:48px;
    padding:10px 12px;
    border:none;
    border-radius:14px;
    background:transparent;
    color:#1A1526;
    font-size:14px;
    font-weight:600;
    letter-spacing:0;
  }
  .navbar .nav-links #langDropdownBtn:hover{ background:rgba(106,84,144,.08); }
  [data-theme="dark"] .navbar .nav-links #langDropdownBtn{ color:#F2EFF7; }
  [data-theme="dark"] .navbar .nav-links #langDropdownBtn:hover{
    background:rgba(178,152,220,.14);
  }
  /* Flag gets the same rounded-tile treatment as the row icons */
  .navbar .nav-links #langDropdownBtn img{
    width:28px;
    height:20px;
    border-radius:4px;
    border:1px solid rgba(17,12,34,.10);
  }
  .navbar .nav-links #langDropdownCode{ display:none; }   /* name replaces it */
  .navbar .nav-links #langDropdownName{
    flex:1 1 auto;
    text-align:left;
    min-width:0;
  }
  .navbar .nav-links #langDropdownArrow{ width:16px; height:16px; opacity:.55; }
  /* Opens upward: it is the last row inside a scrolling panel */
  .navbar .nav-links #langDropdownMenu{
    top:auto;
    bottom:calc(100% + 6px);
    border-radius:14px;
  }
  .navbar .nav-links #langDropdownMenu li{
    min-height:44px;
    font-size:14px;
    padding:10px 14px;
  }

  /* ── Narrow phones (320-360px) ─────────────────────────────────────── */
  @media (max-width:360px){
    .navbar .nav-links a.pnav-item{ gap:10px; padding:10px 8px; }
    .navbar .nav-links .pnav-ico{ width:38px; height:38px; border-radius:11px; }
    .navbar .nav-links .pnav-ico svg{ width:20px; height:20px; }
    .navbar .nav-links .pnav-title{ font-size:14.5px; }
    .navbar .nav-links .pnav-desc{ font-size:12px; }
  }
}

@media (prefers-reduced-motion:reduce){
  .navbar .nav-links a.pnav-item{ transition:none !important; }
  .navbar .nav-links #langDropdownBtn{ transition:none !important; }
  #langSwitcherWrap.open #langDropdownMenu{ animation:none !important; }
}

/* Keep the linked wordmark visually identical to the original brand label. */
.navbar a.logo,
.navbar a.logo:link,
.navbar a.logo:visited,
.navbar a.logo:hover,
.navbar a.logo:focus,
.navbar a.logo:active {
  text-decoration: none !important;
}

.navbar a.logo:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Match every resources link to the established Connect-column treatment. */
.resources-section .resource-info > a,
.resources-section .resource-info > a:link,
.resources-section .resource-info > a:visited {
  color: #374151 !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none !important;
}

.resources-section .resource-info > a:hover,
.resources-section .resource-info > a:active {
  color: #1a1a1a !important;
  text-decoration: none !important;
}

.resources-section .resource-info > a:focus {
  text-decoration: none !important;
}

.resources-section .resource-info > a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}



            .biz-header {
                text-align: center;
                margin-bottom: 3rem;
            }
            .biz-header h1 {
                font-family: 'Poppins', sans-serif;
                font-size: 2.1rem;
                font-weight: 700;
                color: #2e3a3a;
                margin-bottom: 1.5rem;
            }
            [data-theme="dark"] .biz-header h1 {
                color: #e0e0e0;
            }
            .biz-header .biz-tagline {
                font-family: 'Poppins', sans-serif;
                font-size: 1.15rem;
                color: #5a6b6b;
                font-weight: 400;
                max-width: 640px;
                margin: 0 auto 1rem;
                line-height: 1.6;
            }
            [data-theme="dark"] .biz-header .biz-tagline {
                color: #aaa;
            }
            .biz-header .biz-intro {
                font-family: 'Poppins', sans-serif;
                font-size: 1rem;
                color: #6a7a7a;
                max-width: 720px;
                margin: 0 auto;
                line-height: 1.7;
            }
            [data-theme="dark"] .biz-header .biz-intro {
                color: #999;
            }

            .biz-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1.8rem;
                max-width: 1000px;
                margin: 0 auto 3rem;
            }

            .biz-card {
                background: #ffffff;
                border-radius: 16px;
                padding: 2rem 1.8rem;
                box-shadow: 0 2px 12px rgba(0,0,0,0.06);
                border: 1px solid rgba(0,0,0,0.05);
                transition: transform 0.25s ease, box-shadow 0.25s ease;
                position: relative;
                overflow: hidden;
            }
            .biz-card-bg {
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                color: #fff;
            }
            .biz-card-bg::before {
                content: '';
                position: absolute;
                top: 0; left: 0; right: 0; bottom: 0;
                background: linear-gradient(180deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.61) 100%);
                border-radius: 16px;
                z-index: 0;
            }
            .biz-card-bg > * {
                position: relative;
                z-index: 1;
            }
            .biz-card-bg .biz-card-title,
            .biz-card-bg .biz-card-desc,
            .biz-card-bg .biz-card-col-title,
            .biz-card-bg .biz-card-columns ul li {
                color: #fff !important;
            }
            .biz-card-bg .biz-card-desc {
                color: rgba(255,255,255,0.85) !important;
            }
            .biz-card-bg .biz-card-columns ul li {
                color: rgba(255,255,255,0.9) !important;
            }
            [data-theme="dark"] .biz-card-bg .biz-card-title,
            [data-theme="dark"] .biz-card-bg .biz-card-desc,
            [data-theme="dark"] .biz-card-bg .biz-card-col-title,
            [data-theme="dark"] .biz-card-bg .biz-card-columns ul li {
                color: #fff !important;
            }
            [data-theme="dark"] .biz-card-bg .biz-card-desc,
            [data-theme="dark"] .biz-card-bg .biz-card-columns ul li {
                color: rgba(255,255,255,0.9) !important;
            }
            .biz-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 28px rgba(0,0,0,0.1);
            }
            [data-theme="dark"] .biz-card {
                background: #2d2d2d;
                border-color: rgba(255,255,255,0.06);
                box-shadow: 0 2px 12px rgba(0,0,0,0.3);
            }
            [data-theme="dark"] .biz-card:hover {
                box-shadow: 0 8px 28px rgba(0,0,0,0.4);
            }

            .biz-card-icon {
                font-size: 2rem;
                margin-bottom: 0.6rem;
                display: block;
            }
            .biz-card-title {
                font-family: 'Poppins', sans-serif;
                font-size: 1.2rem;
                font-weight: 700;
                color: #2e3a3a;
                margin-bottom: 0.5rem;
            }
            [data-theme="dark"] .biz-card-title {
                color: #e0e0e0;
            }
            .biz-card-desc {
                font-family: 'Poppins', sans-serif;
                font-size: 0.92rem;
                color: #5a6b6b;
                line-height: 1.6;
                margin-bottom: 1.1rem;
            }
            [data-theme="dark"] .biz-card-desc {
                color: #aaa;
            }

            .biz-card-columns {
                display: flex;
                gap: 1.5rem;
            }
            .biz-card-col {
                flex: 1;
            }
            .biz-card-col-title {
                font-family: 'Poppins', sans-serif;
                font-size: 0.78rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.6px;
                color: #6A5490;
                margin-bottom: 0.45rem;
            }
            .biz-card-col ul {
                list-style: none;
                padding: 0;
                margin: 0;
            }
            .biz-card-col ul li {
                font-family: 'Poppins', sans-serif;
                font-size: 0.85rem;
                color: #5a6b6b;
                padding: 0.2rem 0;
                padding-left: 1rem;
                position: relative;
                line-height: 1.5;
            }
            [data-theme="dark"] .biz-card-col ul li {
                color: #aaa;
            }
            .biz-card-col ul li::before {
                content: '·';
                position: absolute;
                left: 0;
                color: #6A5490;
                font-weight: 700;
                font-size: 1.1rem;
            }

            .biz-cta-area {
                text-align: center;
                margin-top: 1rem;
                padding-bottom: 1rem;
            }
            .biz-cta-btn {
                display: inline-block;
                padding: 10px 26px;
                background: linear-gradient(135deg, #6A5490 0%, #9B7EBD 100%);
                color: white;
                text-decoration: none;
                border-radius: 24px;
                font-weight: 600;
                font-family: 'Poppins', sans-serif;
                font-size: 0.875rem;
                transition: all 0.3s ease;
                box-shadow: 0 3px 10px rgba(106, 84, 144, 0.28);
            }
            .biz-cta-btn:hover {
                transform: translateY(-2px);
                box-shadow: 0 5px 16px rgba(106, 84, 144, 0.38);
            }
            .biz-footer-tag {
                font-family: 'Poppins', sans-serif;
                text-align: center;
                font-weight: 600;
                font-size: 0.9rem;
                color: #6a7a7a;
                margin-top: 2rem;
            }
            [data-theme="dark"] .biz-footer-tag {
                color: #888;
            }

            @media (max-width: 968px) {
                .biz-header h1 {
                    font-size: 2rem;
                }
            }

            @media (max-width: 768px) {
                .biz-grid {
                    grid-template-columns: 1fr;
                    gap: 1.4rem;
                }
                .biz-header h1 {
                    font-size: 2rem;
                }
                .biz-card {
                    padding: 1.5rem 1.3rem;
                }
                .biz-card-columns {
                    flex-direction: column;
                    gap: 0.8rem;
                }
            }

            @media (max-width: 480px) {
                .biz-header h1 {
                    font-size: 1.5rem;
                }
            }

/* Footer translations can be longer than their English labels. */
.resources-section .resource-info,
.resources-section .resource-info > a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Mobile hero sizing. The former nested 3.45rem content padding left only
   218px for copy at 360px, forcing extra wrapping and inflating hero height. */
@media (max-width: 768px) {
    body { max-height: none; }
    .hero {
        box-sizing: border-box;
        min-height: 100vh;
        min-height: 100svh;
        padding: calc(82px + env(safe-area-inset-top, 0px))
                 max(16px, env(safe-area-inset-right, 0px))
                 max(18px, env(safe-area-inset-bottom, 0px))
                 max(16px, env(safe-area-inset-left, 0px));
    }
    .hero .hero-content {
        max-width: 600px;
        padding: 0;
    }
    .hero .hero-content h1 {
        font-size: clamp(1.35rem, 5.75vw, 1.7rem);
        margin-bottom: clamp(1.25rem, 5vw, 1.9rem);
    }
    .hero .hero-content h1::after {
        margin-top: clamp(.85rem, 3.5vw, 1.25rem);
    }
    .hero .hero-content p {
        margin-bottom: clamp(1.55rem, 7vw, 2.5rem);
        line-height: clamp(1.55, 1.2 + 1.3vw, 1.7);
    }
    .hero .hero-content .hero-trust {
        margin-top: clamp(14px, 4vw, 18px);
    }
}

/* Keep phone typography compact without changing the hero layout. */
@media (max-width: 480px) {
    .navbar .logo { font-size: clamp(1.05rem, 4.6vw, 1.125rem); }
    .hero .hero-content h1 {
        font-size: clamp(1.25rem, 5.3vw, 1.375rem);
    }
    .hero .hero-content p { font-size: 15px; }
    .hero .hero-content .hero-trust { font-size: 13.5px; }
    .hero-cta { font-size: .84rem; }
}

/* Only Android-sized narrow screens need optical tightening. Controls retain
   their 44px hit areas. */
@media (max-width: 374px) {
    .navbar { padding-inline: max(8px, env(safe-area-inset-left, 0px)); }
    .navbar .logo-mark {
        width: 24px;
        height: 24px;
        margin-right: .35rem;
    }
    .navbar .mobile-chevron svg { width: 21px; height: 21px; }
    .share-button-mobile svg { width: 18px; height: 18px; }
    .navbar .hamburger span { width: 22px; }
    .share-button-mobile { right: 52px; }
    .hero-cta { height: 45px; padding-inline: 19px; }
}

/* Homepage typography scale
   Reduce homepage copy without changing spacing, control dimensions, or any
   navigation typography. These selectors intentionally exclude `.navbar`. */
body:not(.on-subpage) .hero .hero-content h1 {
    font-size: clamp(1.5rem, 3.1vw, 2.35rem);
}
body:not(.on-subpage) .hero .hero-content p { font-size: 14.5px; }
body:not(.on-subpage) .hero-cta {
    height: 48px;
    padding-inline: 25px;
    gap: 9px;
    font-size: .8075rem;
}
body:not(.on-subpage) .hero-cta::before {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
}
body:not(.on-subpage) .hero .hero-content .hero-trust { font-size: 12.75px; }
body:not(.on-subpage) .hero .hero-app-badges p { font-size: 10.2px; }

body:not(.on-subpage) .gradient-banner .banner-title {
    font-size: clamp(1.4875rem, 2.55vw, 2.04rem);
}
body:not(.on-subpage) .gradient-banner .banner-subtitle {
    font-size: clamp(.833rem, 1.275vw, .918rem);
}

body:not(.on-subpage) .psychology-chat-card .youth-title,
body:not(.on-subpage) .youth-chat-card .youth-title { font-size: 1.53rem !important; }
body:not(.on-subpage) .psychology-chat-card .youth-subtitle,
body:not(.on-subpage) .youth-chat-card .youth-subtitle { font-size: .8925rem !important; }
body:not(.on-subpage) .psychology-chat-card .youth-start-btn,
body:not(.on-subpage) .youth-chat-card .youth-start-btn { font-size: .8075rem !important; }
body:not(.on-subpage) .psychology-chat-card .youth-footer,
body:not(.on-subpage) .youth-chat-card .youth-footer { font-size: .765rem !important; }

body:not(.on-subpage) section.bg-white > div > h2 { font-size: 1.4875rem !important; }
body:not(.on-subpage) section.bg-white > div > h2 span[style*="font-size"] { font-size: .7225rem !important; }
body:not(.on-subpage) #testimonialsContainer .text-lg { font-size: .95625rem; }
body:not(.on-subpage) #testimonialsContainer .text-gray-700 { font-size: .85rem; }
body:not(.on-subpage) #testimonialsIndicatorsContainer .text-xs { font-size: .6375rem !important; }

body:not(.on-subpage) .footer { font-size: 11.9px; }
body:not(.on-subpage) .footer p { font-size: 11.05px; }
body:not(.on-subpage) .footer span[style*="font-size: 12px"] { font-size: 10.2px !important; }
body:not(.on-subpage) .footer p[style*="font-size: 13px"] { font-size: 11.05px !important; }
body:not(.on-subpage) .footer p[style*="font-size: 12px"] { font-size: 10.2px !important; }

@media (max-width: 768px) {
    body:not(.on-subpage) .hero .hero-content p { font-size: 14.5px; }
    body:not(.on-subpage) .hero-cta {
        height: 46px;
        padding-inline: 22px;
        font-size: .765rem;
    }
    body:not(.on-subpage) .hero .hero-content .hero-trust { font-size: 12.325px; }
}

@media (max-width: 480px) {
    body:not(.on-subpage) .hero .hero-content h1 {
        font-size: clamp(1.25rem, 5.2vw, 1.375rem);
    }
    body:not(.on-subpage) .hero .hero-content p { font-size: 13.5px; }
    body:not(.on-subpage) .hero .hero-content .hero-trust { font-size: 11.475px; }
    body:not(.on-subpage) .hero .hero-app-badges p { font-size: 9.35px; }
    body:not(.on-subpage) .hero-cta { height: 44px; padding-inline: 19px; font-size: .714rem; }
}
