        :root {
            --paper-color: #f8f6f0;
            --paper-dark: #eaeaea;
            --ink-color: #2c2c2c;
            --ink-light: #555555;
            --typewriter-font: 'IBM Plex Mono', monospace;
            --handwritten-font: 'Playfair Display', serif;
            --highlight-color: #7CA9CE;
            --highlight-light: rgba(124, 169, 206, 0.15);
            --highlight-dark: #5a8cb5;
            --accent-color: #E55934;
            --accent-light: rgba(229, 89, 52, 0.2);
            --macos-window-bg: #f6f6f6;
            --macos-border: #e0e0e0;
            --macos-shadow: 0 10px 30px rgba(0,0,0,0.1);
            --window-radius: 12px;
            --grid-color: rgba(0, 0, 0, 0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: var(--typewriter-font);
            background: linear-gradient(135deg, var(--paper-color) 0%, #f0f0f0 100%);
            color: var(--ink-color);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Enhanced Grid Background with Depth */
        .grid-background {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(124, 169, 206, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(229, 89, 52, 0.05) 0%, transparent 50%),
                linear-gradient(var(--grid-color) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 800px 800px, 600px 600px, 24px 24px, 24px 24px;
            z-index: -2;
            opacity: 0.6;
        }

        /* Floating Elements */
        .floating-demo-preview-link {
            text-decoration: none;
            color: inherit;
            display: block;
            cursor: pointer;
        }

        .floating-demo-preview-link:hover .floating-demo-preview {
            transform: rotate(0deg) scale(1.02);
            box-shadow: 0 30px 80px rgba(0,0,0,0.2);
        }

        .floating-demo-preview-link:active .floating-demo-preview {
            transform: rotate(0deg) scale(0.98);
        }

        /* Add a subtle pointer cursor hint */
        .floating-demo-preview {
            cursor: pointer;
        }

        /* Optional: Add a subtle glow effect on hover */
        .floating-demo-preview-link:hover .floating-demo-preview {
            box-shadow: 
                0 30px 80px rgba(0,0,0,0.2),
                0 0 0 2px rgba(124, 169, 206, 0.2);
        }

        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: -1;
        }

        .floating-shape {
            position: absolute;
            opacity: 0.03;
            animation: float 15s ease-in-out infinite;
        }

        .floating-shape:nth-child(1) {
            top: 10%;
            left: 10%;
            width: 80px;
            height: 80px;
            background: var(--highlight-color);
            border-radius: 50%;
            animation-delay: 0s;
        }

        .floating-shape:nth-child(2) {
            top: 60%;
            right: 15%;
            width: 120px;
            height: 60px;
            background: var(--accent-color);
            border-radius: 30px;
            animation-delay: 5s;
        }

        .floating-shape:nth-child(3) {
            bottom: 20%;
            left: 20%;
            width: 100px;
            height: 100px;
            background: var(--highlight-color);
            clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
            animation-delay: 10s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            33% { transform: translateY(-20px) rotate(5deg); }
            66% { transform: translateY(10px) rotate(-3deg); }
        }

        /* Header - Enhanced with Hamburger */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
            z-index: 1000;
            box-shadow: 0 2px 20px rgba(0,0,0,0.05);
            transition: transform 0.3s ease;
        }

        .header-logo {
            height: 35px;
            z-index: 1001;
        }

        .nav-desktop {
            display: flex;
            gap: 2rem;
        }

        .nav-desktop a {
            text-decoration: none;
            color: var(--ink-color);
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

        .nav-desktop a:hover {
            color: var(--highlight-color);
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            z-index: 1001;
            position: relative;
            width: 25px;
            height: 20px;
            justify-content: space-between;
        }

        .hamburger span {
            width: 100%;
            height: 2px;
            background: var(--ink-color);
            transition: all 0.3s ease;
            transform-origin: center;
        }

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

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

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

        /* Mobile Navigation */
        .nav-mobile {
            position: fixed;
            top: 70px;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 2rem;
            transform: translateY(-100%);
            transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
            z-index: 999;
            border-bottom: 1px solid rgba(0,0,0,0.1);
            visibility: hidden;
            opacity: 0;
        }

        .nav-mobile.active {
            transform: translateY(0);
            visibility: visible;
            opacity: 1;
        }

        .nav-mobile a {
            display: block;
            padding: 1rem 0;
            text-decoration: none;
            color: var(--ink-color);
            font-size: 1.1rem;
            border-bottom: 1px solid rgba(0,0,0,0.1);
            transition: color 0.3s ease;
        }

        .nav-mobile a:hover {
            color: var(--highlight-color);
        }

        .nav-mobile a:last-child {
            border-bottom: none;
        }

        /* Hero Section */
        .hero-section {
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 4rem;
            align-items: center;
            padding: 0 4rem;
            position: relative;
            margin-top: 70px;
        }

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

        .hero-content h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            line-height: 1.1;
            margin-bottom: 1.5rem;
            font-weight: 300;
        }

        .hero-content h1 span {
            font-family: var(--handwritten-font);
            font-style: italic;
            color: var(--highlight-color);
            font-weight: 400;
        }

        .hero-content p {
            font-size: 1.2rem;
            color: var(--ink-light);
            margin-bottom: 2rem;
            max-width: 480px;
        }

        .hero-cta {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: flex-start;
        }

        .primary-cta {
            background: var(--highlight-color);
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 8px;
            font-family: var(--typewriter-font);
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .primary-cta:hover {
            background: var(--highlight-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(124, 169, 206, 0.3);
        }

        .secondary-cta {
            color: var(--ink-color);
            font-size: 0.9rem;
            text-decoration: none;
            border-bottom: 1px solid var(--ink-color);
            transition: all 0.3s ease;
        }

        .secondary-cta:hover {
            color: var(--highlight-color);
            border-color: var(--highlight-color);
        }

        /* Hero Preview */
        .hero-preview {
            position: relative;
            z-index: 5;
            width: 80%;
        }

        .floating-demo-preview {
            background: white;
            border-radius: var(--window-radius);
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            overflow: hidden;
            transform: rotate(-2deg);
            transition: all 0.5s ease;
            border: 1px solid var(--macos-border);
        }

        .floating-demo-preview:hover {
            transform: rotate(0deg) scale(1.02);
            box-shadow: 0 30px 80px rgba(0,0,0,0.2);
        }

        .demo-preview-header {
            background: var(--macos-window-bg);
            padding: 1rem;
            border-bottom: 1px solid var(--macos-border);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .demo-preview-dots {
            display: flex;
            gap: 0.5rem;
        }

        .demo-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .demo-dot.red { background: #ff5f57; }
        .demo-dot.yellow { background: #ffbd2e; }
        .demo-dot.green { background: #28c941; }

        .demo-preview-content {
            padding: 2rem;
            background: white;
        }

        .preview-question {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            color: var(--ink-color);
        }

        .preview-blank {
            display: inline-block;
            background: rgba(124, 169, 206, 0.2);
            padding: 0.3rem 0.8rem;
            border-radius: 4px;
            margin: 0 0.5rem;
            border-bottom: 2px solid var(--highlight-color);
            animation: pulse-glow 2s ease-in-out infinite;
        }

        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 0 0 rgba(124, 169, 206, 0.4); }
            50% { box-shadow: 0 0 0 8px rgba(124, 169, 206, 0); }
        }

        /* Main Demo Section */
        .demo-hero-section {
            padding: 8rem 0;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.9) 0%, 
                rgba(248, 246, 240, 0.95) 100%);
            position: relative;
            z-index: 10;
        }

        .demo-hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(124, 169, 206, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(229, 89, 52, 0.05) 0%, transparent 50%);
            z-index: -1;
        }

        .demo-hero-content {
            text-align: center;
            margin-bottom: 4rem;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 2rem;
        }

        .demo-hero-content h2 {
            font-size: clamp(2rem, 4vw, 3rem);
            margin-bottom: 1rem;
            font-weight: 300;
        }

        .demo-hero-content h2 span {
            font-family: var(--handwritten-font);
            font-style: italic;
            color: var(--highlight-color);
        }

        .demo-hero-content p {
            font-size: 1.1rem;
            color: var(--ink-light);
            margin-bottom: 3rem;
        }

        /* Demo Window Styles - Enhanced with margins */
        .demo-window {
            max-width: 1200px;
            margin: 0 auto 2rem auto;
            background: white;
            border-radius: var(--window-radius);
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
            overflow: hidden;
            border: 1px solid var(--macos-border);
        }

        .window-header {
            background: var(--macos-window-bg);
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--macos-border);
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .window-controls {
            display: flex;
            gap: 0.5rem;
        }

        .window-button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .window-close { background: #ff5f57; }
        .window-minimize { background: #ffbd2e; }
        .window-maximize { background: #28c941; }

        .window-title {
            font-size: 0.9rem;
            font-weight: 500;
            color: #555;

        }

        /* Demo Mode Toggle */
        .demo-mode-toggle {
            display: flex;
            justify-content: center;
            margin-bottom: 3rem;
            gap: 0;
            padding: 0 2rem;
        }

        .mode-button {
            padding: 1rem 2rem;
            border: 1px solid var(--ink-color);
            background: white;
            font-family: var(--typewriter-font);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .mode-button:first-child {
            border-radius: 8px 0 0 8px;
        }

        .mode-button:last-child {
            border-radius: 0 8px 8px 0;
            border-left: none;
        }

        .mode-button.active {
            background: var(--highlight-color);
            color: white;
            border-color: var(--highlight-color);
        }

        .mode-button:hover:not(.active) {
            background: var(--highlight-light);
        }

        /* Demo Content */
        .demo-content {
            display: none;
            background: white;
        }

        .demo-content.active {
            display: block;
        }

        /* Demo Controls - Centered */
        .demo-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 2rem 0;
            padding: 0 2rem;
        }

        .control-section {
            text-align: center;
        }

        .control-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            background: white;
            border: 1px solid var(--ink-color);
            font-family: var(--typewriter-font);
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 auto 0.75rem;
            border-radius: 6px;
        }

        .control-btn:hover {
            background: var(--highlight-light);
        }

        .control-icon {
            font-size: 1rem;
        }

        .demo-hint {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--ink-light);
            max-width: 400px;
            margin: 0 auto;
            text-align: center;
        }

        .hint-icon {
            font-size: 1rem;
            flex-shrink: 0;
        }

        /* V3 Demo Styles - Enhanced for Mobile */
        .assessment-container {
            padding: 2rem;
        }

        .assessment-progress {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .progress-bar {
            flex: 1;
            height: 6px;
            background: #eee;
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--highlight-color);
            transition: width 0.5s ease;
        }

        .progress-text {
            font-size: 0.85rem;
            color: var(--ink-light);
            font-weight: 500;
        }

        .assessment-step {
            display: none !important;
        }

        .assessment-step.active {
            display: block !important;
        }

        .logo-display {
            text-align: center;
            margin-bottom: 2rem;
        }

        .story-text {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 2rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
        }

        /* Interactive Elements - Enhanced for Mobile */
        .interactive-blank {
            position: relative;
            display: inline-flex;
            align-items: center;
            min-width: 180px;
            padding: 0.25rem 0.5rem;
            border-bottom: 2px solid var(--ink-color);
            background: rgba(124, 226, 254, 0.1);
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0.25rem 0;
        }

        .interactive-blank:hover {
            background: rgba(124, 226, 254, 0.2);
        }

        .interactive-blank.editable {
            cursor: text;
        }

        .blank-text {
            font-weight: 500;
            color: var(--ink-color);
        }

        .text-input {
            border: none;
            background: transparent;
            font-family: var(--typewriter-font);
            font-size: inherit;
            font-weight: 500;
            color: var(--ink-color);
            width: 100%;
            outline: none;
            padding: 0;
        }

        .options-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--ink-color);
            border-top: none;
            display: none;
            z-index: 10;
            max-height: 200px;
            overflow-y: auto;
        }

        .interactive-blank.open .options-dropdown {
            display: block;
        }

        .option {
            padding: 0.5rem;
            cursor: pointer;
            border-bottom: 1px solid #eee;
            transition: background-color 0.2s ease;
        }

        .option:hover {
            background: var(--highlight-light);
        }

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

        /* Welcome Message */
        .welcome-message {
            font-size: 1rem;
            color: var(--ink-light);
            margin-bottom: 2rem;
            text-align: center;
            line-height: 1.5;
        }

        /* Matrix Table - Mobile Enhanced */
        .matrix-table-container {
            overflow-x: auto;
            margin: 1rem 0;
            -webkit-overflow-scrolling: touch;
        }

        .matrix-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
            min-width: 600px;
        }

        .matrix-table th,
        .matrix-table td {
            padding: 0.75rem 0.5rem;
            text-align: center;
            border: 1px solid #ddd;
            vertical-align: middle;
        }

        .matrix-table th {
            background: #f8f9fa;
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--ink-color);
        }

        .treatment-col {
            text-align: left !important;
            min-width: 200px;
            max-width: 250px;
        }

        .response-col {
            min-width: 100px;
            font-size: 0.8rem;
        }

        .treatment-cell {
            text-align: left !important;
            padding: 1rem 0.75rem;
        }

        .response-cell {
            text-align: center !important;
        }

        .ingredient-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
            color: var(--ink-color);
        }

        .ingredient-description {
            font-size: 0.8rem;
            color: #666;
            line-height: 1.3;
        }

        .matrix-table input[type="radio"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--highlight-color);
        }

        /* Checkbox Group */
        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .checkbox-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .checkbox-option:hover {
            background-color: rgba(124, 226, 254, 0.1);
        }

        .checkbox-option input[type="checkbox"] {
            width: 18px;
            height: 18px;
            border: 2px solid var(--ink-color);
            background: white;
            appearance: none;
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
        }

        .checkbox-option input[type="checkbox"]:checked {
            background: var(--highlight-color);
            border-color: var(--highlight-color);
        }

        .checkbox-option input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--ink-color);
            font-size: 12px;
            font-weight: bold;
        }

        /* Product Selector - Mobile Enhanced */
        .product-selector {
            position: relative;
            display: inline-flex;
            align-items: center;
            min-width: 220px;
            padding: 0.5rem;
            border: 1px solid var(--ink-color);
            border-radius: 4px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0.25rem 0;
        }

        .product-selector:hover {
            border-color: var(--highlight-color);
            box-shadow: 0 0 0 2px var(--highlight-light);
        }

        .product-selector.search-type {
            cursor: text;
        }

        .selected-product {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            width: 100%;
        }

        .product-image-small {
            width: 30px;
            height: 30px;
            border-radius: 4px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .product-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .product-brand {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--ink-color);
            line-height: 1.2;
        }

        .product-name {
            font-size: 0.75rem;
            color: #666;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .product-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--ink-color);
            border-top: none;
            border-radius: 0 0 4px 4px;
            z-index: 10;
            max-height: 200px;
            overflow-y: auto;
        }

        .product-selector.open .product-dropdown {
            display: block !important;
        }

        .product-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem;
            cursor: pointer;
            border-bottom: 1px solid #eee;
            transition: background-color 0.2s ease;
        }

        .product-option:hover {
            background: var(--highlight-light);
        }

        .product-option:last-child {
            border-bottom: none;
        }

        .product-option img {
            width: 30px;
            height: 30px;
        }

        .product-search {
            border: none;
            background: transparent;
            font-family: var(--typewriter-font);
            font-size: 0.9rem;
            color: var(--ink-color);
            width: 100%;
            outline: none;
            padding: 0;
        }

        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--ink-color);
            border-top: none;
            border-radius: 0 0 4px 4px;
            z-index: 10;
        }

        .suggestion-item {
            padding: 0.75rem;
            cursor: pointer;
            border-bottom: 1px solid #eee;
            transition: background-color 0.2s ease;
            font-size: 0.9rem;
        }

        .suggestion-item:hover {
            background: var(--highlight-light);
        }

        .suggestion-item:last-child {
            border-bottom: none;
        }

        .typing-cursor {
            animation: blink 1s infinite;
            color: var(--highlight-color);
            font-weight: bold;
            margin-left: 2px;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        /* Other Input */
        .other-input-container {
            margin-top: 1rem;
            transition: all 0.3s ease;
        }

        .other-input-container.active {
            display: block !important;
        }

        .other-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--ink-color);
            border-radius: 4px;
            font-family: var(--typewriter-font);
            font-size: 0.9rem;
            resize: vertical;
            min-height: 60px;
        }

        .other-input:focus {
            outline: none;
            border-color: var(--highlight-color);
            box-shadow: 0 0 0 2px var(--highlight-light);
        }

        /* Assessment Navigation */
        .assessment-navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #eee;
        }

        .nav-btn {
            padding: 0.75rem 1.5rem;
            border: 1px solid var(--ink-color);
            background: white;
            font-family: var(--typewriter-font);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .nav-btn:hover:not(:disabled) {
            background: var(--highlight-color);
        }

        .nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .next-btn {
            background: var(--highlight-color);
        }

        /* Results Mode Styles - Enhanced for Mobile */
        .results-mode .mockup-content {
            display: flex;
            position: relative;
            min-height: 500px;
        }

        /* Tab Navigation - Desktop positioning */
        .tab-navigation {
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
            width: 60px;
            writing-mode: vertical-rl;
            transform: rotate(180deg);
            display: flex;
            gap: 1rem;
            padding: 0 1rem;
            background: white;
            border-right: 1px solid var(--ink-color);
            z-index: 5;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .tab-navigation.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .tab-item {
            cursor: pointer;
            padding: 1rem 0.5rem;
            position: relative;
            transition: all 0.3s ease;
            display: block;
            visibility: visible;
            font-size: 0.8rem;
        }

        .tab-item.active {
            font-weight: bold;
            font-size: 0.8rem;
        }

        .tab-item::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -10px;
            right: -10px;
            bottom: -2px;
            background: #fff740;
            border-radius: 2px;
            opacity: 0;
            transform: scaleX(0.95) skewX(-20deg);
            transform-origin: left;
            transition: all 0.3s ease;
            z-index: -1;
            background-image: 
                linear-gradient(
                    45deg,
                    rgba(255, 255, 255, 0) 40%,
                    rgba(255, 255, 255, 0.4) 50%,
                    rgba(255, 255, 255, 0) 60%
                ),
                repeating-linear-gradient(
                    45deg,
                    rgba(255, 247, 0, 0.3),
                    rgba(255, 247, 0, 0.3) 2px,
                    transparent 2px,
                    transparent 4px
                );
            filter: blur(0.3px);
        }

        .tab-item:hover::before {
            opacity: 0.7;
            transform: scaleX(1) skewX(-10deg);
        }

        .tab-item.active::before {
            opacity: 0.8;
            transform: scaleX(1) skewX(-10deg);
            animation: highlighterSwipe 0.3s ease forwards;
        }

        @keyframes highlighterSwipe {
            0% {
                transform: scaleX(0) skewX(-10deg);
                transform-origin: left;
            }
            100% {
                transform: scaleX(1) skewX(-10deg);
                transform-origin: left;
            }
        }

        /* Tab content layout */
        .tab-content {
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
            width: 100%;
            padding-right: 60px;
        }

        .tab-content.active {
            display: block;
            opacity: 1;
        }

        /* Product section - Enhanced for Mobile */
        .product-section {
            display: grid;
            grid-template-columns: 500px 2fr;
            gap: 1.5rem;
            height: 100%;
            position: relative;
            padding: 1rem;
        }

        .product-content {
            display: flex;
            flex-direction: column;
        }

        .product-nav {
            background: white;
            border: 1px solid var(--ink-color);
            box-shadow: 3px 3px 0 var(--ink-color);
            padding: 1.5rem 2rem;
            position: relative;
            margin-bottom: 1rem;
        }

        .product-nav h4 {
            margin: 0 0 0.75rem 0;
            font-size: 0.8rem;
            letter-spacing: 1px;
            color: var(--ink-color);
        }

        .product-nav-container {
            position: relative;
            overflow: hidden;
            margin: 0 auto;
        }

        .product-nav-items {
            display: flex;
            width: 100%;
            align-items: center;
        }

        .product-nav-item {
            padding: 0.75rem;
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            cursor: pointer;
        }

        .product-nav-brand,
        .product-nav-name {
            width: 100%;
            text-align: center;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .product-nav-brand {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 0.25rem;
        }

        .product-nav-name {
            font-size: 0.85rem;
            line-height: 1.3;
            max-width: 200px;
            margin: 0 auto;
        }

        .product-nav-item.active {
            position: relative;
            background-color: rgba(124, 226, 254, 0.1);
        }

        /* Navigation Arrows */
        .nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            background: white;
            border: 1px solid var(--ink-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            user-select: none;
            transition: transform 0.2s ease;
        }

        .nav-arrow:not(.disabled):hover {
            background-color: #f0f0f0;
        }

        .nav-arrow:not(.disabled):active {
            transform: translateY(-50%) scale(0.95);
        }

        .nav-arrow.prev {
            left: 10px;
        }

        .nav-arrow.next {
            right: 10px;
        }

        .nav-arrow.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Product Image Container - Enhanced for Mobile */
        .product-image-container {
            background: white;
            padding: 1.5rem;
            border: 1px solid var(--ink-color);
            box-shadow: 3px 3px 0 var(--ink-color);
            height: 100%;
            display: grid;
            grid-template-rows: auto 1fr auto;
            gap: 1rem;
            box-sizing: border-box;
            max-width: 100%;
        }

        .product-image-wrapper {
            grid-row: 2;
            height: 100%;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            box-sizing: border-box;
        }

        .product-title {
            grid-row: 1;
            width: 100%;
            box-sizing: border-box;
            text-align: left;
            position: relative;
            width: fit-content;
        }

        .product-title h2 {
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
            font-weight: normal;
            font-family: var(--typewriter-font);
        }

        .product-title h3 {
            font-size: 1.1rem;
            margin: 0;
            font-weight: bold;
            font-family: var(--typewriter-font);
        }

        .title-underline {
            position: relative;
            background: transparent;
            border-bottom: 2px solid var(--ink-color);
            padding-top: 1rem;
        }

        .product-image {
            max-width: 95%;
            max-height: 95%;
            object-fit: contain;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
        }

        .button-container {
            grid-row: 3;
            margin-top: 1rem;
            width: 100%;
            box-sizing: border-box;
            margin: 0;
        }

        .purchase-button {
            width: 100%;
            margin: 0;
            padding: 0.75rem;
            text-align: center;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid var(--ink-color);
            box-sizing: border-box;
            text-decoration: none;
            display: inline-block;
            white-space: normal;
            line-height: 1.2;
            background: var(--highlight-color);
            color: var(--ink-color);
            font-size: 0.9rem;
        }

        .purchase-button:hover {
            background: var(--ink-color);
            color: var(--paper-color);
        }

        /* Product Details */
        .product-details {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        .detail-section {
            background: white;
            padding: 0.9rem;
            border-radius: 2px;
            border: 1px solid var(--ink-color);
            box-shadow: 3px 3px 0 var(--ink-color);
            margin-bottom: 1.5rem;
            margin-top: 1rem;
            margin-left: 1rem;
            position: relative;
            width: calc(100% - 2rem);
            max-width: none;
        }

        .detail-section::before {
            content: attr(data-label);
            position: absolute;
            top: -10px;
            left: 10px;
            background: var(--paper-color);
            padding: 0 8px;
            font-size: 0.8rem;
            z-index: 1;
        }

        .full-ingredients {
            font-size: 0.75rem;
        }

        .ingredient-legend {
            padding-top: 0.5rem;
        }

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

        .benefits-list li {
            padding-left: 1.5rem;
            position: relative;
            margin-bottom: 0.8rem;
            color: var(--ink-color);
            font-size: 0.85rem;
        }

        .benefits-list li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: #7ce2fe;
        }

        /* Key Benefits Section */
        .benefits-section {
            padding: 4rem 0;
            background: white;
        }

        .benefits-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 2rem;
            text-align: center;
        }

        .benefits-title {
            font-size: 2rem;
            margin-bottom: 3rem;
            color: var(--ink-color);
            font-weight: 300;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .benefit-item {
            padding: 1.5rem;
            text-align: left;
        }

        .benefit-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            display: block;
        }

        .benefit-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--ink-color);
        }

        .benefit-text {
            color: var(--ink-light);
            line-height: 1.5;
        }

        /* Book Layout Styles (for Analysis tab) */
        .tips-analysis-section {
        background: white;
        border: 1px solid var(--ink-color);
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .book-spine {
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(0,0,0,0.1);
        z-index: 2;
        }

        .book-page-left,
        .book-page-right {
        padding: 1.5rem;
        position: relative;
        overflow-y: auto;
        max-height: 100%;
        background: linear-gradient(to right, #fff 95%, #f0f0f0 100%);
        }

        .book-page-right {
        background: linear-gradient(to left, #fff 95%, #f0f0f0 100%);
        border-left: 1px solid rgba(0,0,0,0.1);
        }

        /* Routine Toggle Button Styling */
        .routine-toggle {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
        position: sticky;
        top: 0;
        background: white;
        padding: 1rem 0;
        z-index: 2;
        }

        .routine-toggle-button {
        padding: 0.75rem 2rem;
        background: white;
        border: none;
        font-family: 'Courier New', monospace;
        cursor: pointer;
        position: relative;
        transform: rotate(-1deg);
        box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
        }

        .routine-toggle-button::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border: 1px solid #ddd;
        transform: rotate(1deg);
        z-index: -1;
        }

        .routine-toggle-button.active {
        background: var(--highlight-color);
        transform: rotate(1deg);
        }

        /* Routine Step Styling */
        .routine-step {
        background: white;
        padding: 0.75rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: rotate(-0.5deg);
        position: relative;
        }

        .routine-step:nth-child(even) {
        transform: rotate(0.5deg);
        }

        .step-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        align-items: center;
        padding: 1rem;
        background: white;
        position: relative;
        cursor: pointer;
        }

        .step-number {
        font-family: 'Courier New', monospace;
        font-size: 2rem;
        color: var(--highlight-color);
        transform: rotate(-3deg);
        margin-right: 1rem;
        }

        .step-product {
        font-family: var(--typewriter-font);
        }

        .step-product-name {
        font-weight: bold;
        margin-bottom: 0.25rem;
        }

        .step-product-brand {
        color: #666;
        font-size: 0.9rem;
        }

        .step-toggle {
        font-size: 1.2rem;
        font-weight: bold;
        }

        .step-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: none;
        }

        .step-content.active {
        max-height: 1000px;
        padding: 1.5rem;
        margin-top: 1rem;
        border-top: 1px dashed #ddd;
        display: block;
        }

        .step-details-grid {
        display: grid;
        grid-template-columns: minmax(200px, auto) 1fr;
        gap: 2rem;
        padding: 1.5rem;
        background-color: #f8f9fa;
        border-radius: 0 0 8px 8px;
        }

        .step-image {
        width: 200px;
        height: 200px;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .step-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background-color: #fff;
        }

        .step-instructions {
        padding: 1rem;
        }

        .instruction-list {
        list-style: none;
        padding: 0;
        margin: 0;
        font-family: 'Courier New', monospace;
        }

        .instruction-list li {
        padding-left: 2rem;
        margin-bottom: 1rem;
        position: relative;
        line-height: 20px;
        }

        .instruction-list li::before {
        content: '→';
        position: absolute;
        left: 0;
        color: var(--highlight-color);
        transform: rotate(-5deg);
        }

        /* Routine View Styles */
        .routine-view {
        max-width: none;
        padding: 1rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        }

        .routine-steps {
        display: none;
        overflow-y: auto;
        flex: 1;
        padding-right: 1rem;
        }

        .routine-steps.active {
        display: block;
        }

        /* pH Analysis Styling */
        .ph-analysis {
        background: white;
        padding: 1rem;
        border: 1px solid var(--ink-color);
        border-radius: 4px;
        margin-bottom: 1.5rem;
        }

        .ph-analysis h4 {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        }

        .ph-meter {
        width: 100%;
        height: 3px;
        background: #eee;
        margin: 1rem 0;
        position: relative;
        }

        .ph-indicator {
        position: absolute;
        top: -2px;
        left: calc(5.5 / 14 * 100%);
        width: 8px;
        height: 8px;
        background: var(--highlight-color);
        border-radius: 50%;
        transform: translateX(-50%);
        }

        .ph-scale {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        margin-top: 0.5rem;
        position: relative;
        width: 100%;
        color: #666;
        }

        .ph-description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
        }

        .ph-notes {
        font-size: 0.8rem;
        margin-top: 0.75rem;
        }

        .ph-notes p {
        margin: 0.25rem 0;
        }

        .ph-scale span {
        position: absolute;
        transform: translateX(-50%);
        margin-top: 0.4rem;
        }

        .ph-scale span:first-child { left: 0; transform: translateX(0); }
        .ph-scale span:nth-child(2) { left: 50%; }
        .ph-scale span:last-child { left: 100%; transform: translateX(-100%); }

        /* Timeline Styling */
        .timeline-container {
        margin-top: 1rem;
        position: relative;
        padding: 1rem 0;
        }

        .timeline-line {
        position: absolute;
        top: 50%;
        left: 10px;
        right: 10px;
        height: 2px;
        background: var(--ink-color);
        }

        .timeline-points {
        display: flex;
        justify-content: space-between;
        position: relative;
        padding: 0 10px;
        gap: 0.75rem;
        }

        .time-card {
        background: white;
        padding: 0.75rem;
        border: 1px solid var(--ink-color);
        box-shadow: 2px 2px 0 var(--ink-color);
        width: 160px;
        transform: rotate(-1deg);
        font-size: 0.75rem;
        }

        .time-card h4 {
        font-size: 0.8rem;
        margin: 0 0 0.5rem 0;
        }

        .time-card ul {
        margin: 0;
        padding-left: 1rem;
        }

        .time-card li {
        margin-bottom: 0.25rem;
        line-height: 1.2;
        }

        .time-marker {
        background: var(--highlight-color);
        padding: 0.25rem 0.5rem;
        border-radius: 2px;
        font-size: 0.7rem;
        margin-top: 0.75rem;
        text-align: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        }

        /* Analysis Notes Styling */
        .analysis-notes {
        margin-top: 1rem;
        font-size: 0.85rem;
        }

        .note-card {
        background: white;
        padding: 1rem;
        border: 1px solid var(--ink-color);
        margin-top: 1rem;
        border-radius: 4px;
        }

        .note-card h4 {
        font-size: 0.85rem;
        margin: 0 0 0.25rem 0;
        }

        .note-card p {
        font-size: 0.8rem;
        margin: 0;
        }

        .note-card ul {
        padding-left: 1.5rem;
        margin: 0.5rem 0;
        }

        .note-card li {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        }

        /* Sticky Notes Styling */
        .sticky-notes-container {
        display: grid;
        grid-template-columns: repeat(2, 2fr);
        grid-template-rows: repeat(3, auto);
        gap: 2rem;
        position: relative;
        height: auto;
        min-height: 500px;
        overflow: visible;
        }

        .sticky-note {
        width: 180px;
        height: 160px;
        padding: 1rem;
        position: relative;
        box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        z-index: 1;
        border-radius: 2px;
        justify-self: center;
        align-self: start;
        }

        /* Position sticky notes with varied rotations and positions */
        .sticky-notes-container .sticky-note:nth-child(1) {
        transform: rotate(-3deg);
        grid-column: 1;
        grid-row: 1;
        margin-top: 0;
        }

        .sticky-notes-container .sticky-note:nth-child(2) {
        transform: rotate(2deg);
        grid-column: 2;
        grid-row: 1;
        margin-top: 1rem;
        }

        .sticky-notes-container .sticky-note:nth-child(3) {
        transform: rotate(-1deg);
        grid-column: 1;
        grid-row: 2;
        margin-top: 0.5rem;
        }

        .sticky-notes-container .sticky-note:nth-child(4) {
        transform: rotate(3deg);
        grid-column: 2;
        grid-row: 2;
        margin-top: -0.5rem;
        }

        .sticky-notes-container .sticky-note:nth-child(5) {
        transform: rotate(-2deg);
        grid-column: 2;
        grid-row: 3;
        margin-top: 0;
        }

        .sticky-notes-container .sticky-note:nth-child(6) {
        transform: rotate(1deg);
        grid-column: 1;
        grid-row: 3;
        margin-top: 0.75rem;
        }

        .sticky-note .note-header {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.15);
        font-weight: bold;
        line-height: 1.2;
        }

        .sticky-note .note-content {
        font-size: 0.75rem;
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        }

        .sticky-note:hover {
        transform: scale(1.05) rotate(0deg) !important;
        z-index: 10;
        box-shadow: 5px 5px 15px rgba(0,0,0,0.25);
        }

        /* Color variations */
        .sticky-note.yellow { 
        background: linear-gradient(135deg, #fff9c4 0%, #fffad1 100%);
        }

        .sticky-note.blue { 
        background: linear-gradient(135deg, #bbdefb 0%, #e3f2fd 100%);
        }

        .sticky-note.pink { 
        background: linear-gradient(135deg, #f8bbd0 0%, #fce4ec 100%);
        }

        /* Tape styling */
        .tape {
        position: absolute;
        top: -8px;
        left: 50%;
        width: 60px;
        height: 20px;
        background: rgba(255, 255, 255, 0.7);
        transform: translateX(-50%) rotate(-2deg);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border-radius: 1px;
        }

        .sticky-note:nth-child(even) .tape {
        transform: translateX(-50%) rotate(2deg);
        }

        /* Report Page Styles (for Archive Routine tab) */
        .analysis-book {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: relative;
        height: calc(100vh - 200px - 2rem);
        width: 100%;
        overflow: hidden;
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .report-page {
        background: white;
        border: none;
        position: relative;
        margin: 1rem;
        height: calc(100vh - 200px - 2rem - 2rem);
        overflow-y: auto;
        overflow-x: hidden;
        }

        .report-header {
        background: #2c2c2c;
        color: #fff;
        padding: 1.2rem;
        border-bottom: 2px solid #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        margin: 0;
        }

        .report-header h2 {
        font-size: 0.9rem;
        }

        .report-meta {
        font-size: 0.8rem;
        }

        .finding-section h3{
        font-size: 0.8rem;
        }

        .finding-item {
        font-size: 0.75rem;
        }

        .product-assessment {
        font-size: 0.75rem;
        }

        .findings-container,
        .products-container {
        overflow-y: auto;
        max-height: calc(100vh - 24rem);
        padding: 1rem;
        }

        .finding-section {
        background: rgba(255, 255, 255, 0.7);
        padding: 1.2rem;
        margin-bottom: 1.5rem;
        border: 1px solid #2c2c2c;
        position: relative;
        }

        .polaroid-card {
        background: white;
        padding: 1rem 1rem 2rem 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: rotate(-2deg);
        transform-style: preserve-3d;
        position: relative;
        z-index: 0;
        margin-bottom: 1.5rem;
        }

        .polaroid-card:nth-child(even) {
        transform: rotate(2deg);
        }

        .polaroid-card:hover {
        transform: rotate(0) scale(1.02);
        z-index: 2;
        }

        /* Demo Controls */
        .demo-controls {
        display: flex;
        justify-content: center;
        margin: 2rem 0;
        }

        .control-section {
        text-align: center;
        }

        .control-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: white;
        border: 1px solid var(--ink-color);
        font-family: var(--typewriter-font);
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 0.75rem;
        }

        .control-btn:hover {
        background: var(--highlight-light);
        }

        .control-icon {
        font-size: 1rem;
        }

        .demo-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: var(--ink-light);
        }

        .hint-icon {
        font-size: 1rem;
        }


        /* Testimonials Section */
        .testimonials-section {
            padding: 4rem 0;
            background: var(--paper-color);
            position: relative;
        }

        .testimonials-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 2rem;
            text-align: center;
        }

        .testimonials-container h3 {
            font-size: 2rem;
            margin-bottom: 3rem;
            color: var(--ink-color);
            font-weight: 300;
        }

        .testimonials-slider {
            position: relative;
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .testimonials-track {
            display: flex;
            transition: transform 0.5s ease;
        }

        .testimonial-slide {
            min-width: 100%;
            padding: 0 2rem;
        }

        .testimonial-content {
            font-size: 1.2rem;
            font-style: italic;
            color: var(--ink-light);
            margin-bottom: 1.5rem;
            line-height: 1.6;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .testimonial-author {
            font-size: 0.95rem;
            color: var(--ink-color);
            font-weight: 500;
        }

        .testimonials-nav {
            display: flex;
            justify-content: center;
            gap: 1rem;
        }

        .testimonial-nav-btn {
            width: 40px;
            height: 40px;
            border: 1px solid var(--ink-color);
            background: white;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .testimonial-nav-btn:hover {
            background: var(--highlight-color);
            border-color: var(--highlight-color);
            color: white;
        }

        .testimonial-indicators {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .testimonial-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .testimonial-indicator.active {
            background: var(--highlight-color);
        }

        /* Polaroid Features */
        .polaroid-features {
            padding: 6rem 0;
            background: var(--highlight-color);
            color: white;
        }

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

        .polaroid-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .polaroid-header h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 300;
        }

        .polaroid-header p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        .polaroid-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            justify-items: center;
        }

        .polaroid-card {
            background: white;
            color: var(--ink-color);
            padding: 1.5rem 1.5rem 3rem 1.5rem;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            transform: rotate(-2deg);
            transition: all 0.3s ease;
            cursor: pointer;
            max-width: 320px;
            width: 100%;
            border-radius: 4px;
        }

        .polaroid-card:nth-child(2) {
            transform: rotate(1deg);
        }

        .polaroid-card:nth-child(3) {
            transform: rotate(-1deg);
        }

        .polaroid-card:hover {
            transform: rotate(0deg) translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        }

        .polaroid-image {
            width: 100%;
            height: 200px;
            background: #f5f5f5;
            border-radius: 4px;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            object-fit: contain;
            color: #999;
            font-size: 0.9rem;
        }

        .polaroid-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .polaroid-subtitle {
            font-size: 0.9rem;
            color: var(--ink-light);
            text-align: center;
            line-height: 1.4;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 2rem;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: var(--window-radius);
            max-width: 600px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-header {
            background: var(--macos-window-bg);
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--macos-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: #f0f0f0;
        }

        .modal-body {
            padding: 2rem;
        }

        .modal-body h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--ink-color);
        }

        .modal-body p {
            margin-bottom: 1rem;
            line-height: 1.6;
            color: var(--ink-light);
        }

        .modal-body ul {
            margin-bottom: 1.5rem;
            padding-left: 2rem;
        }

        .modal-body li {
            margin-bottom: 0.5rem;
            color: var(--ink-light);
        }

        /* Vault Showcase */
        .vault-showcase {
            background: var(--paper-color);
            background-image: 
                linear-gradient(var(--grid-color) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 24px 24px;
            padding: 6rem 0;
            position: relative;
            overflow: hidden;
        }

        .vault-content {
            position: relative;
            z-index: 10;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 4rem;
        }

        .vault-text h3 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            font-weight: 300;
            color: var(--ink-color);
        }

        .vault-text h3 span {
            font-family: var(--handwritten-font);
            font-style: italic;
            color: var(--accent-color);
        }

        .vault-text p {
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 2rem;
            color: var(--ink-light);
        }

        .vault-stats {
            display: flex;
            gap: 2rem;
            margin: 2rem 0;
        }

        .vault-stat {
            text-align: center;
        }

        .vault-stat-number {
            font-size: 2rem;
            font-weight: 600;
            display: block;
            color: var(--accent-color);
        }

        .vault-stat-label {
            font-size: 0.9rem;
            color: var(--ink-light);
        }

        .vault-cta {
            background: var(--accent-color);
            color: white;
            padding: 1rem 2rem;
            border-radius: 8px;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .vault-cta:hover {
            background: #c44024;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(229, 89, 52, 0.3);
        }

        .vault-preview {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .knowledge-card {
            background: white;
            border: 1px solid var(--macos-border);
            border-radius: 12px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }

        .knowledge-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .knowledge-card h4 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            color: var(--ink-color);
            font-weight: 600;
        }

        .knowledge-card p {
            font-size: 0.9rem;
            color: var(--ink-light);
            line-height: 1.5;
        }

        /* Final CTA */
        .final-cta {
            background: var(--highlight-color);
            color: white;
            padding: 6rem 0;
            text-align: center;
        }

        .final-cta h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 300;
        }

        .final-cta p {
            font-size: 1.2rem;
            margin-bottom: 3rem;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .final-cta-button {
            background: white;
            color: var(--highlight-color);
            padding: 1.5rem 3rem;
            border: none;
            border-radius: 8px;
            font-family: var(--typewriter-font);
            font-size: 1.2rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .final-cta-button:hover {
            background: #f8f8f8;
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        }

        /* Footer */
        footer {
            background: white;
            border-top: 1px solid var(--grid-color);
            padding: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .footer-logo {
            height: 30px;
        }

        .footer-links {
            display: flex;
            gap: 2rem;
            font-size: 0.9rem;
        }

        .footer-links a {
            color: var(--ink-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: var(--highlight-color);
        }

        .copyright {
            font-size: 0.8rem;
            color: var(--ink-light);
        }

        /* Mobile Responsive Styles */
        @media (max-width: 768px) {
            body {
                font-size: 14px;
            }
            
            /* Hero section */
            .hero-content h1 {
                font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
            }
            
            .hero-content p {
                font-size: 1rem !important;
            }
            
            /* Demo content */
            .demo-hero-content h2 {
                font-size: clamp(1.5rem, 3vw, 2rem) !important;
            }
            
            .demo-hero-content p {
                font-size: 0.95rem !important;
            }
            
            /* Assessment text */
            .story-text {
                font-size: 0.9rem !important;
                line-height: 1.5 !important;
            }

            .preview-question {
                font-size: 0.85rem;
            }
            
            /* Interactive elements */
            .interactive-blank {
                font-size: 0.85rem !important;
                min-width: 140px !important;
            }
            
            .product-selector {
                font-size: 0.8rem !important;
                min-width: 160px !important;
            }
            
            .product-brand {
                font-size: 0.7rem !important;
            }
            
            .product-name {
                font-size: 0.65rem !important;
            }
            
            /* Button text */
            .primary-cta {
                font-size: 0.9rem !important;
            }
            
            .mode-button {
                font-size: 0.85rem !important;
            }
            
            .nav-btn {
                font-size: 0.8rem !important;
            }
            
            /* Window title */
            .window-title {
                font-size: 0.8rem !important;
            }
            
            /* Progress text */
            .progress-text {
                font-size: 0.75rem !important;
            }
            
            /* Matrix table */
            .matrix-table {
                font-size: 0.75rem !important;
            }
            
            .matrix-table th,
            .matrix-table td {
                font-size: 0.7rem !important;
                padding: 0.4rem 0.2rem !important;
            }
            
            .ingredient-name {
                font-size: 0.75rem !important;
            }
            
            .ingredient-description {
                font-size: 0.65rem !important;
            }
            
            /* Results mode - product details */
            .detail-section {
                font-size: 0.8rem !important;
            }
            
            .detail-section::before {
                font-size: 0.7rem !important;
            }
            
            .benefits-list li {
                font-size: 0.75rem !important;
            }
            
            /* Product navigation */
            .product-nav h4 {
                font-size: 0.7rem !important;
            }
            
            .product-nav-brand {
                font-size: 0.7rem !important;
            }
            
            .product-nav-name {
                font-size: 0.75rem !important;
            }
            
            /* Product title */
            .product-title h2 {
                font-size: 0.8rem !important;
            }
            
            .product-title h3 {
                font-size: 0.95rem !important;
            }
            
            /* Purchase button */
            .purchase-button {
                font-size: 0.8rem !important;
            }

            .tips-analysis-section {
                grid-template-columns: 1fr;
                max-width: none;
                margin: 0;
            }
            
            .book-page-right {
                border-left: none;
                border-top: 1px solid rgba(0,0,0,0.1);
            }
            
            .book-spine {
                display: none;
            }
            
            .analysis-book {
                grid-template-columns: 1fr;
                height: auto;
            }
            
            .routine-toggle {
                gap: 0;
            }
            
            .routine-toggle-button {
                padding: 0.5rem 1rem;
                font-size: 0.8rem;
            }
            
            .sticky-notes-container {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .sticky-note {
                width: 100%;
                max-width: 280px;
                height: auto;
                min-height: 140px;
                margin: 0 auto !important;
                transform: none !important;
            }
            
            .sticky-notes-container .sticky-note:nth-child(n) {
                grid-column: 1;
                transform: rotate(0deg) !important;
                margin-top: 0 !important;
            }
            
            .sticky-note:hover {
                transform: scale(1.02) !important;
            }
            
            .timeline-points {
                flex-direction: column;
                gap: 1rem;
            }
            
            .time-card {
                width: 100%;
                transform: none;
            }
            
            .timeline-line {
                display: none;
            }
            
            /* Tab navigation */
            .results-mode .tab-item {
                font-size: 0.65rem !important;
            }
            
            /* Routine steps */
            .step-product-name {
                font-size: 0.8rem !important;
            }
            
            .step-product-brand {
                font-size: 0.7rem !important;
            }
            
            .instruction-title {
                font-size: 0.8rem !important;
            }
            
            .instruction-list li {
                font-size: 0.75rem !important;
            }
            
            /* Analysis content */
            .sticky-note .note-header {
                font-size: 0.65rem !important;
            }
            
            .sticky-note .note-content {
                font-size: 0.6rem !important;
            }
            
            /* Benefits section */
            .benefit-title {
                font-size: 0.95rem !important;
            }
            
            .benefit-text {
                font-size: 0.8rem !important;
            }
            
            /* Testimonials */
            .testimonial-content {
                font-size: 0.9rem !important;
            }
            
            .testimonial-author {
                font-size: 0.8rem !important;
            }
            
            /* Footer */
            .footer-links {
                font-size: 0.8rem !important;
            }
            
            .copyright {
                font-size: 0.7rem !important;
            }
            /* Header Mobile */
            .header {
                padding: 0 1rem;
            }

            .nav-desktop {
                display: none;
            }

            .hamburger {
                display: flex;
            }

            /* Hero Mobile */
            .hero-section {
                grid-template-columns: 1fr;
                gap: 3rem;
                padding: 0 2rem;
                padding-top: 4rem;
                text-align: center;
                min-height: 90vh;
            }

            .hero-content {
                order: 1;
            }

            .hero-preview {
                order: 2;
                width: 100%;
                max-width: 400px;
                margin: 0 auto;
            }

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

            /* Demo Window Mobile */
            .demo-window {
                margin: 0 1rem 2rem;
            }

            .demo-content {
                padding: 1.5rem;
            }

            /* Demo Mode Toggle Mobile */
            .demo-mode-toggle {
                flex-direction: column;
                align-items: center;
                padding: 0 1rem;
            }

            .mode-button {
                width: 200px;
                border-right: 1px solid var(--ink-color);
            }

            .mode-button:first-child {
                border-right: 1px solid var(--ink-color);
                border-radius: 8px 8px 0 0;
            }

            .mode-button:last-child {
                border-radius: 0 0 8px 8px;
                border-left: 1px solid var(--ink-color);
                border-top: none;
            }

            /* Assessment Mobile */
            .story-text {
                font-size: 1rem;
                line-height: 1.6;
                align-items: flex-start;
            }

            .interactive-blank {
                min-width: 160px;
                margin: 0.5rem 0;
            }

            .product-selector {
                min-width: 200px;
                margin: 0.5rem 0;
            }

            /* Matrix Table Mobile */
            .matrix-table-container {
                font-size: 0.85rem;
            }

            .matrix-table {
                min-width: 500px;
            }

            .treatment-col {
                min-width: 150px;
            }

            .response-col {
                min-width: 80px;
                font-size: 0.75rem;
            }

            .matrix-table th,
            .matrix-table td {
                padding: 0.5rem 0.25rem;
            }

            /* Results Mode Mobile */
            .results-mode .tab-navigation {
                position: fixed;
                writing-mode: unset;
                transform: none;
                top: unset;
                right: unset;
                height: 60px;
                width: 100%;
                bottom: 0;
                left: 0;
                background: white;
                display: flex;
                flex-direction: row;
                justify-content: space-around;
                align-items: center;
                padding: 0;
                border-top: 1px solid var(--ink-color);
                box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
                z-index: 1000;
            }

            .results-mode .tab-item {
                writing-mode: unset;
                transform: none;
                padding: 8px 0;
                font-size: 0.7rem;
                text-align: center;
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                min-height: 44px;
                white-space: normal;
                line-height: 1.1;
                max-width: 25%;
            }

            .results-mode .tab-item::before {
                display: none;
            }

            .results-mode .tab-item.active {
                background: var(--highlight-color);
                font-weight: bold;
            }

            .results-mode .tab-content {
                padding-right: 0;
                padding-bottom: 80px;
            }

            .product-section {
                grid-template-columns: 1fr;
                gap: 1rem;
                padding: 0.5rem;
            }

            .product-image-container {
                padding: 1rem;
                margin-bottom: 1rem;
            }

            .product-nav {
                padding: 1rem;
                margin-bottom: 0.5rem;
            }

            .product-details {
                margin-left: 0;
            }

            .detail-section {
                margin-left: 0;
                width: 100%;
            }
            /* Ensure product images display properly on mobile */
            .product-image-container .product-image {
                display: block !important;
                width: auto !important;
                height: auto !important;
                max-width: 90% !important;
                max-height: 200px !important;
                object-fit: contain !important;
            }
            
            .product-image-wrapper {
                min-height: 200px !important;
                align-items: center !important;
                justify-content: center !important;
                display: block !important;
            }

            .product-image {
                position: relative;
            }
            
            /* Step images in routine */
            .step-image img {
                width: 80px !important;
                height: 80px !important;
                object-fit: contain !important;
                display: block !important;
            }
            
            /* Product nav images */
            .product-image-small {
                width: 25px !important;
                height: 25px !important;
                display: block !important;
            }

            /* Benefits Mobile */
            .benefits-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .benefit-item {
                text-align: center;
            }

            /* Testimonials Mobile */
            .testimonials-nav {
                display: none;
            }

            .testimonials-slider {
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
            }

            .testimonials-track {
                transition: none;
            }

            .testimonial-slide {
                scroll-snap-align: start;
                padding: 0 1rem;
            }

            .testimonial-content {
                font-size: 1rem;
            }

            /* Polaroid Mobile */
            .polaroid-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .polaroid-card {
                transform: none !important;
                max-width: none;
            }

            .polaroid-card:hover {
                transform: translateY(-5px) !important;
            }

            /* Vault Mobile */
            .vault-content {
                grid-template-columns: 1fr;
                gap: 3rem;
                padding: 0 2rem;
                text-align: center;
            }

            .vault-preview {
                grid-template-columns: 1fr;
            }

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

            /* Footer Mobile */
            .footer-links {
                flex-direction: column;
                gap: 0.5rem;
                text-align: center;
            }

            footer {
                flex-direction: column;
                text-align: center;
            }

            /* Assessment Navigation Mobile */
            .assessment-navigation {
                flex-direction: column;
                gap: 1rem;
            }

            .nav-btn {
                width: 100%;
                padding: 1rem;
            }
        }

        @media (max-width: 480px) {
            body {
                font-size: 13px;
            }
            
            .hero-content h1 {
                font-size: clamp(1.5rem, 4vw, 2rem) !important;
            }
            
            .story-text {
                font-size: 0.85rem !important;
            }
            
            .interactive-blank {
                font-size: 0.8rem !important;
                min-width: 120px !important;
            }
            
            .matrix-table th,
            .matrix-table td {
                font-size: 0.65rem !important;
            }
            
            .results-mode .tab-item {
                font-size: 0.6rem !important;
            }
            /* Extra small screens */
            .demo-hero-section {
                padding: 4rem 0;
            }

            .demo-hero-content {
                padding: 0 1rem;
            }

            .demo-window {
                margin: 0 0.5rem 2rem;
            }

            .demo-content {
                padding: 1rem;
            }

            .story-text {
                font-size: 0.95rem;
            }

            .interactive-blank {
                min-width: 140px;
            }

            .product-selector {
                min-width: 180px;
            }

            .matrix-table {
                min-width: 450px;
            }

            .treatment-col {
                min-width: 120px;
            }

            .response-col {
                min-width: 70px;
                font-size: 0.7rem;
            }

            .testimonial-content {
                font-size: 0.9rem;
            }

            .vault-content {
                padding: 0 1rem;
            }
        }

        /* Sticky Notes and Analysis Styles - Mobile Enhanced */
        .sticky-notes-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            position: relative;
            height: auto;
            min-height: 400px;
            overflow: visible;
        }

        .sticky-note {
            width: 160px;
            height: 140px;
            padding: 0.8rem;
            position: relative;
            box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            z-index: 1;
            border-radius: 2px;
            justify-self: center;
            align-self: start;
        }

        .sticky-note:hover {
            transform: scale(1.05) rotate(0deg) !important;
            z-index: 10;
            box-shadow: 5px 5px 15px rgba(0,0,0,0.25);
        }

        .sticky-note.yellow { 
            background: linear-gradient(135deg, #fff9c4 0%, #fffad1 100%);
        }

        .sticky-note.blue { 
            background: linear-gradient(135deg, #bbdefb 0%, #e3f2fd 100%);
        }

        .sticky-note.pink { 
            background: linear-gradient(135deg, #f8bbd0 0%, #fce4ec 100%);
        }

        .sticky-note .note-header {
            font-size: 0.75rem;
            margin-bottom: 0.5rem;
            padding-bottom: 0.4rem;
            border-bottom: 1px solid rgba(0,0,0,0.15);
            font-weight: bold;
            line-height: 1.2;
        }

        .sticky-note .note-content {
            font-size: 0.7rem;
            line-height: 1.3;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
        }

        .tape {
            position: absolute;
            top: -6px;
            left: 50%;
            width: 50px;
            height: 16px;
            background: rgba(255, 255, 255, 0.7);
            transform: translateX(-50%) rotate(-2deg);
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            border-radius: 1px;
        }

        @media (max-width: 768px) {
            .sticky-notes-container {
                grid-template-columns: 1fr;
                gap: 1rem;
                min-height: 300px;
            }

            .sticky-note {
                width: 100%;
                max-width: 250px;
                height: auto;
                min-height: 120px;
                margin: 0 auto !important;
                transform: none !important;
            }

            .sticky-note:hover {
                transform: scale(1.02) !important;
            }
        }

        /* Collapsible and Similar Products - Mobile Enhanced */
        .collapsible-section {
            margin-bottom: 1rem;
            border: 1px solid var(--ink-color);
            border-radius: 4px;
            overflow: hidden;
            background-color: white;
        }

        .collapsible-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            cursor: pointer;
            background: white;
            transition: background-color 0.3s ease;
        }

        .collapsible-header h3 {
            font-size: 0.75rem;
        }

        .collapsible-header:hover {
            background-color: rgba(124, 226, 254, 0.1);
        }

        .collapsible-indicator {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--ink-color);
            transition: transform 0.3s ease;
        }

        .collapsible-header.active .collapsible-indicator {
            transform: rotate(45deg);
        }

        .collapsible-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            background-color: #f9f9f9;
            border-top: 1px solid var(--grid-color);
        }

        .collapsible-content.active {
            max-height: 1000px;
            padding: 1rem;
        }

        .similar-products-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .similar-product-item {
            background-color: white;
            border: 1px solid var(--grid-color);
            border-radius: 4px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            overflow: hidden;
        }

        .similar-product-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .similar-product-link {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            color: inherit;
            text-decoration: none;
        }

        .similar-product-image {
            width: 60px;
            height: 60px;
            flex-shrink: 0;
            margin-right: 1rem;
            background-color: #f5f5f5;
            border-radius: 4px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .similar-product-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .similar-product-info {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .similar-product-brand {
            font-family: var(--typewriter-font);
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 0.25rem;
        }

        .similar-product-name {
            font-family: var(--typewriter-font);
            font-size: 0.75rem;
            color: #555;
            line-height: 1.3;
        }

        /* Highlights */
        .highlight {
            padding: 2px 4px;
            border-radius: 2px;
        }

        .highlight.blue {
            background-color: rgba(124, 226, 254, 0.3);
        }

        .highlight.green {
            background-color: rgba(165, 214, 167, 0.3);
        }

        .highlight.purple {
            background-color: rgba(208, 188, 255, 0.3);
        }

        .highlight.yellow {
            background-color: rgba(255, 236, 179, 0.3);
        }

/* EXACT V3 DEMO STYLES - END */


/* Demo Tooltips - Desktop Only */
.demo-tooltip {
    position: absolute;
    background: white;
    border: 2px solid var(--ink-color);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    box-shadow: 4px 4px 0 var(--ink-color);
    z-index: 1001;
    max-width: 280px;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
    display: none;
}

.demo-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
}

.demo-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.demo-tooltip.top::before {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-color: var(--ink-color) transparent transparent transparent;
}

.demo-tooltip.bottom::before {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent var(--ink-color) transparent;
}

.demo-tooltip.left::before {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent var(--ink-color);
}

.demo-tooltip.right::before {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-color: transparent var(--ink-color) transparent transparent;
}

.demo-tooltip-title {
    font-weight: 600;
    color: var(--ink-color);
    margin-bottom: 0.5rem;
}

.demo-tooltip-content {
    color: var(--ink-light);
}

.demo-tooltip-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ink-light);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.demo-tooltip-close:hover {
    background: var(--highlight-light);
    color: var(--ink-color);
}

/* Tooltip trigger indicators */
.tooltip-trigger {
    position: relative;
    cursor: help;
}

.tooltip-trigger::after {
    content: '💡';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
    background: var(--highlight-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: tooltipPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tooltipPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

.tooltip-trigger:hover::after {
    animation: none;
    opacity: 1;
    transform: scale(1.1);
}

/* Product recommendation tooltips */
.product-nav-item.tooltip-trigger::after {
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
}

/* Tab tooltips */
.tab-item.tooltip-trigger::after {
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    width: 14px;
    height: 14px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide all tooltips on mobile */
    .demo-tooltip {
        display: none !important;
    }
    
    .tooltip-trigger::after {
        display: none !important;
    }
}