:root {

        /* Design Tokens */
        
            /* Spacing Scale (8px base) */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 24px;
            --space-6: 32px;
            --space-8: 48px;
            --space-10: 64px;
            
            /* Border Radius */
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            
            /* Shadows */
            --shadow-100: 0 1px 2px rgba(0,0,0,0.06);
            --shadow-200: 0 2px 8px rgba(0,0,0,0.08);
            --shadow-300: 0 4px 16px rgba(0,0,0,0.12);
            --shadow-400: 0 8px 24px rgba(0,0,0,0.16);
            
            /* Typography Scale */
            --text-xs: 0.75rem;
            --text-sm: 0.875rem;
            --text-base: 1rem;
            --text-lg: 1.125rem;
            --text-xl: 1.25rem;
            --text-2xl: 1.5rem;
            --text-3xl: 1.875rem;
            --text-4xl: 2.25rem;
        

            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --accent: #f59e0b;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --gray-50: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-500: #5b6b7d;
            --gray-700: #334155;
            --gray-900: #0f172a;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', YuGothic, Meiryo, 'Segoe UI', Roboto, 'Noto Sans JP', sans-serif; color: #0f172a; line-height: 1.8; letter-spacing: 0.03em; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
        .btn { display: inline-block; padding: 0.75rem 1.5rem; min-height: 48px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; font-size: 1rem; }
        .btn-primary { background: var(--primary); color: white; letter-spacing: var(--tracking-button, 1.5px); font-weight: 700; }
        .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
        .btn-accent { background: var(--accent); color: white; }
        .btn-accent:hover { background: #d97706; }
        .btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
        .btn-block { display: block; width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; text-align: center; }
        .btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

        /* Badges */
        .badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
        .badge-free { background: #ECFDF5; color: #059669; }
        .badge-pro { background: #EFF6FF; color: #2563EB; }
        .badge-business { background: #F5F3FF; color: #7C3AED; }

        /* Navigation */
        .nav { background: white; border-bottom: 1px solid var(--gray-200); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
        .nav-content { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); text-decoration: none; }
        .nav-links { display: flex; gap: 1.5rem; align-items: center; }
        .nav-links a { color: var(--gray-700); text-decoration: none; font-size: 0.9rem; }
        .nav-links a:hover { color: var(--primary); }
        .nav-links .btn-primary { color: white; background: var(--primary); }
        #nav-auth-guest, #nav-auth-user { display: flex; gap: 1rem; align-items: center; }
        #nav-auth-guest, #nav-auth-user { display: flex; gap: 1rem; align-items: center; }

        /* Hero */
        .hero { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); padding: 4rem 0; position: relative; }
        .hero::before { content: ''; position: absolute; width: 100%; height: 100%; background-image: radial-gradient(circle, rgba(37,99,235,0.05) 1px, transparent 1px); background-size: 24px 24px; }
        .hero-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
        .hero h1 { font-size: 2.5rem; color: var(--gray-900); margin-bottom: 1rem; line-height: 1.3; }
        .hero h1 span { color: var(--primary); }
        .hero p { font-size: 1.1rem; color: var(--gray-500); margin-bottom: 2rem; }
        .hero-form { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1); max-width: 600px; margin: 0 auto; }
        .hero-form input[type="url"] { width: 100%; padding: 1rem; border: 2px solid var(--gray-200); border-radius: 8px; font-size: 1rem; margin-bottom: 1rem; }
        #hero-url:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15), 0 2px 8px rgba(59,130,246,0.1); outline: none; }
        .hero-checkbox { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.9rem; }
        .hero-badges { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-500); }
        .hero-badges span { display: flex; align-items: center; gap: 0.25rem; }
        .hero-stat { margin-top: 1rem; font-size: 0.85rem; color: var(--gray-500); }

        /* Tool Categories */
        .tools-section { padding: 4rem 0; background: white; }
        .tools-header { text-align: center; margin-bottom: 2rem; }
        .tools-header h2 { font-size: 1.75rem; color: var(--gray-900); }
        .tools-header p { color: var(--gray-500); margin-top: 0.5rem; }
        .tool-category { margin-bottom: 2rem; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
        .category-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: var(--gray-50); cursor: pointer; transition: background 0.2s; }
        .category-header:hover { background: var(--gray-100); }
        .category-header h3 { font-size: 1.1rem; color: var(--gray-900); display: flex; align-items: center; gap: 0.5rem; }
        .category-header .count { font-size: 0.85rem; color: var(--gray-500); font-weight: normal; }
        .category-header .toggle { font-size: 1.2rem; color: var(--gray-500); transition: transform 0.3s; }
        .category-header.open .toggle { transform: rotate(180deg); }
        .category-tools { display: none; padding: 1.5rem; }
        .category-tools.open { display: block; }
        .tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--card-gap); }
        .tool-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
        .tool-card h3 { font-size: 1rem; color: var(--gray-900); display: flex; align-items: center; gap: 0.5rem; }
        .tool-card p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1rem; }
        .tool-card .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

        /* Tool Modal */
        .tool-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
        .tool-modal.open { display: flex; }
        .tool-modal-content { background: white; border-radius: 16px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; }
        .tool-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--gray-200); }
        .tool-modal-header h3 { font-size: 1.25rem; }
        .tool-modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-500); }
        .tool-modal-body { padding: 1.5rem; }
        .tool-modal-body input, .tool-modal-body textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--gray-200); border-radius: 8px; margin-bottom: 1rem; font-size: 1rem; }
        .tool-modal-body textarea { min-height: 80px; resize: vertical; }
        .tool-result { margin-top: 1rem; padding: 1rem; background: var(--gray-50); border-radius: 8px; display: none; }
        .tool-result.active { display: block; }

        /* Pricing */
        .pricing-section { padding: 4rem 0; background: var(--gray-50); }
        .pricing-header { text-align: center; margin-bottom: 2rem; }
        .pricing-header h2 { font-size: 1.75rem; color: var(--gray-900); }
        .pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
        .pricing-card { background: white; border-radius: 12px; padding: 2rem; border: 2px solid var(--gray-200); transition: all 0.3s; }
        .pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
        .pricing-card.featured { border-color: var(--primary); position: relative; }
        .pricing-card.featured::before { content: '人気No.1'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
        .pricing-card-header { text-align: center; margin-bottom: 1.5rem; }
        .pricing-plan-name { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
        .pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
        .pricing-price span { font-size: 1rem; color: var(--gray-500); }
        .pricing-features { list-style: none; margin-bottom: 1.5rem; }
        .pricing-features li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.5rem; }
        .pricing-features .check { color: var(--success); }
        .pricing-features .x { color: var(--gray-400); }

/* Featured pricing card */
.pricing-card-featured {
    border: 2px solid var(--primary, #2563EB) !important;
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    z-index: 1;
    position: relative;
}


        /* Footer */
        .footer { background: var(--gray-900); color: white; padding: 2rem 0; }
        .footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
        .footer-brand { font-size: 1.1rem; }
        .footer-links { display: flex; gap: 1.5rem; }
        .footer-links a { color: #CBD5E1; text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem; padding: 0.5rem 0; display: inline-flex; align-items: center; min-height: 44px; }
        .footer-links a:hover { color: white; }
        .footer-bottom { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-700); color: #94A3B8; font-size: 0.85rem; }

        /* Mobile & Tablet Responsive */
        @media (max-width: 1024px) {
            .container { padding: 0 1rem; }
            .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
            .quick-grid { grid-template-columns: 1fr; }
            .testimonials-grid { grid-template-columns: 1fr; }
        }
        
        @media (max-width: 768px) {
            /* Navigation */
            .nav { padding: 0.75rem 0; }
            .nav-content { flex-wrap: wrap; gap: 0.75rem; }
            .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
            .nav-links a { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
            .nav-links .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
            
            /* Hero */
            .hero { padding: 2rem 1rem; }
            .hero h1 { font-size: 1.5rem; line-height: 1.4; }
            .hero p { font-size: 0.95rem; }
            .hero-form { padding: 1.25rem; }
            .hero-form input[type="url"] { padding: 0.875rem; font-size: 0.95rem; }
            .btn-large { padding: 0.875rem 1.5rem; font-size: 1rem; }
            .hero-badges { flex-direction: column; gap: 0.5rem; align-items: center; }
            .hero-badges span { font-size: 0.85rem; }
            .hero-examples { margin-top: 1rem; }
            .hero-examples > div { flex-direction: column; gap: 0.5rem; }
            .hero-examples span { font-size: 0.8rem; text-align: center; }
            
            /* Quick Section */
            .quick-card-icon { font-size: 2rem; }
            .quick-card h3 { font-size: 1rem; }
            .quick-card p { font-size: 0.85rem; }
            
            /* Tools Section */
            .tools-header p { font-size: 0.9rem; }
            .tier-pills { gap: 0.5rem; }
            .tier-pill { font-size: 0.75rem; padding: 4px 10px; }
            .category-header { padding: 0.875rem 1rem; }
            .category-header h3 { font-size: 0.95rem; }
            .category-tools { padding: 1rem; }
            .tool-grid { grid-template-columns: 1fr; gap: var(--card-gap); }
            .tool-card h3 { font-size: 0.9rem; }
            .tool-card p { font-size: 0.8rem; margin-bottom: 0.75rem; }
            .badge-popular { font-size: 10px; padding: 3px 8px; top: -6px; right: -6px; }
            
            /* FAQ Section */
            .faq-question { padding: 1rem; font-size: 0.9rem; }
            .faq-answer { font-size: 0.85rem; }
            .faq-answer.open { padding: 1rem; }
            
            /* Testimonials */
            .testimonial-card { padding: 1.25rem; }
            .testimonial-text { font-size: 0.9rem; }
            .testimonial-avatar { width: 36px; height: 36px; font-size: 0.85rem; }
            .testimonial-name { font-size: 0.85rem; }
            .testimonial-role { font-size: 0.75rem; }
            .testimonial-score { font-size: 0.7rem; padding: 2px 6px; }
            
            /* Pricing */
            .pricing-card { padding: 1.5rem; }
            .pricing-card.featured::before { font-size: 0.7rem; padding: 3px 10px; }
            .pricing-plan-name { font-size: 1.1rem; }
            .pricing-price { font-size: 2rem; }
            .pricing-features li { font-size: 0.9rem; padding: 0.4rem 0; }
            
            /* Footer */
            .footer { padding: 1.5rem 0; }
            .footer > .container > div:first-child { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
            .footer h4 { font-size: 0.85rem; margin-bottom: 0.75rem; }
            .footer a, .footer p { font-size: 0.8rem !important; }
            .footer-bottom { margin-top: 1rem; padding-top: 1rem; }
            .footer-bottom p { font-size: 0.75rem; }
            
            /* Modal */
            .tool-modal-content { margin: 0.5rem; border-radius: 12px; max-height: 95vh; }
            .tool-modal-header { padding: 1rem; }
            .tool-modal-header h3 { font-size: 1.1rem; }
            .tool-modal-body { padding: 1rem; }
            .tool-modal-body input, .tool-modal-body textarea { padding: 0.75rem; font-size: 0.95rem; }
        }
        
        @media (max-width: 480px) {
            /* Extra small screens */
            .hero h1 { font-size: 1.3rem; }
            .hero h1 br { display: none; }
            .nav-links a:not(.btn) { display: none; }
            .nav-links { width: auto; }
            .logo { font-size: 1.1rem; }
            .footer > .container > div:first-child { grid-template-columns: 1fr; text-align: center; }
            .pricing-card.featured { margin-top: 1rem; }
            .pricing-grid { grid-template-columns: 1fr !important; max-width: 400px !important; margin: 0 auto; }
        }
        

        
        /* Smooth scrolling */
        html { scroll-behavior: smooth; }
        
        /* Better tap targets */
        .btn, .faq-question, .category-header { min-height: 44px; }
    
        /* Polish: Gradient badges */
        .badge-free { background: #ECFDF5; color: #059669; }
        .badge-pro { background: #EFF6FF; color: #2563EB; }
        .badge-business { background: #F5F3FF; color: #7C3AED; }
        
        /* Polish: Popular badge */
        .badge-popular { position: absolute; top: -8px; right: -8px; background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%); color: white; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        
        /* Polish: Enhanced hover */
        
        /* Polish: Quick Access Section */
        .quick-section { padding: 3rem 0; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
        .quick-header { text-align: center; margin-bottom: 2rem; }
        .quick-header h2 { font-size: 1.5rem; color: var(--gray-900); }
        .quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--card-gap); max-width: 1000px; margin: 0 auto; }
        .quick-card { cursor: pointer; position: relative; overflow: hidden; }
        .quick-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
        .quick-card h3 { font-size: 1.1rem; color: var(--gray-900); margin-bottom: 0.5rem; }
        .quick-card p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 1rem; }
        .quick-card .badge { position: absolute; top: 1rem; right: 1rem; }
        
        /* Polish: Tier summary pills */
        .tier-pills { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
        .tier-pill { padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
        .tier-pill-free { background: #ECFDF5; color: #059669; }
        .tier-pill-pro { background: #EFF6FF; color: #2563EB; }
        .tier-pill-business { background: #F5F3FF; color: #7C3AED; }
    
        /* Testimonials */
        .testimonials-section { padding: 3rem 0; background: white; border-top: 1px solid var(--gray-200); }
        .testimonials-header { text-align: center; margin-bottom: 2rem; }
        .testimonials-header h2 { font-size: 1.5rem; color: var(--gray-900); }
        .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
        .testimonial-card { background: var(--gray-50); border-radius: 12px; padding: 1.5rem; border: 1px solid var(--gray-200); }
        .testimonial-text { font-size: 0.95rem; color: var(--gray-700); margin-bottom: 1rem; line-height: 1.7; }
        .testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
        .testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; }
        .testimonial-info { font-size: 0.85rem; }
        .testimonial-name { font-weight: 600; color: var(--gray-900); }
        .testimonial-role { color: var(--gray-500); }
        .testimonial-score { display: inline-flex; align-items: center; gap: 0.25rem; background: linear-gradient(135deg, var(--success) 0%, #059669 100%); color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; margin-left: 0.5rem; }
    
        /* FAQ Section */
        .faq-section { padding: 3rem 0; background: white; }
        .faq-header { text-align: center; margin-bottom: 2rem; }
        .faq-header h2 { font-size: 1.5rem; color: var(--gray-900); }
        .faq-list { max-width: 800px; margin: 0 auto; }
        .faq-item { border: 1px solid var(--gray-200); border-radius: 10px; margin-bottom: 1rem; overflow: hidden; }
        .faq-question { padding: 1.25rem; background: var(--gray-50); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--gray-900); }
        .faq-question:hover { background: var(--gray-100); }
        .faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: all 0.3s; background: white; }
        .faq-answer.open { padding: 1.25rem; max-height: 500px; opacity: 1; }
        .faq-answer p { color: var(--gray-700); line-height: 1.7; margin: 0; }
        .faq-toggle { font-size: 1.2rem; color: var(--gray-500); transition: transform 0.3s; }
        .faq-item.open .faq-toggle { transform: rotate(180deg); }
    
        /* Loading spinner */
        .loading { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--gray-200); border-radius: 50%; border-top-color: var(--primary); animation: spin 1s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* Skeleton loading */
        .skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        /* SERP Preview Tabs */
        .serp-tab { transition: all 0.2s ease; }
        .serp-tab.active { color: var(--primary); border-bottom-color: var(--primary) !important; }
        .serp-tab:hover { background: var(--gray-50); }
        .serp-preview-view { transition: opacity 0.3s ease; }

        /* Hover & Focus States */
        .tool-card, .pricing-card, .card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .btn {
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37,99,235,0.3);
        }
        .btn:active {
            transform: translateY(0);
        }
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        .btn-primary:hover::before {
            left: 100%;
        }
        /* Focus States (Accessibility) */
        *:focus-visible {
            outline: 3px solid var(--primary);
            outline-offset: 3px;
            border-radius: 4px;
        }
        a:hover { opacity: 0.85; }
        input:hover { border-color: var(--gray-400); }
        input:focus { 
            border-color: var(--primary); 
            box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
            outline: none;
        }

        
        /* Modal Active State */
        .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
        .modal-overlay.active { display: flex; }
        .modal { background: white; border-radius: 16px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
        .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200); }
        .modal-header h3 { font-size: 1.25rem; font-weight: 600; }
        .modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-500); }
        .modal-close:hover { color: var(--gray-800); }
        .modal-body { padding: 1.5rem; }

        /* Loading States */
        .btn-loading { position: relative; pointer-events: none; }
        .btn-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid transparent; border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 8px; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 9999; display: none; }
        .loading-overlay.active { display: flex; }
        .loading-spinner { width: 48px; height: 48px; border: 4px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
        .loading-text { margin-top: 1rem; color: var(--gray-600); font-size: 0.95rem; }

    
        /* Trust Badges */
        .trust-badges { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
        .trust-badge { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: white; border-radius: 8px; font-size: 0.85rem; color: var(--gray-600); box-shadow: var(--shadow-sm); }
        .trust-badge svg { width: 20px; height: 20px; }

    
        
        
        
        /* Pricing Enhancement */
        .pricing-card.featured {
            transform: scale(1.03);
            border: 3px solid var(--primary);
            box-shadow: 0 16px 32px rgba(37,99,235,0.2);
            z-index: 1;
            position: relative;
        }
        .pricing-card.featured::before {
            background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
            padding: 6px 16px;
            font-size: var(--text-sm);
        }
        .pricing-price {
            font-size: var(--text-3xl);
            font-weight: 800;
            color: var(--gray-900);
        }
        .pricing-price span {
            font-size: var(--text-sm);
            font-weight: 500;
            color: var(--gray-500);
        }
        .pricing-features li {
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Form UX Enhancement */
        input[type="url"], input[type="text"], input[type="email"], input[type="password"] {
            width: 100%;
            padding: 14px 18px;
            font-size: var(--text-base);
            border: 2px solid var(--gray-200);
            border-radius: var(--radius-md);
            background: white;
            transition: all 0.2s ease;
        }
        input::placeholder { color: #6b7280; /* WCAG fix */ }
        input:hover { border-color: var(--gray-300); }
        input:focus { 
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
        }
        input.error { border-color: #EF4444; }
        input.error:focus { box-shadow: 0 0 0 4px rgba(239,68,68,0.1); }
        input.success { border-color: #10B981; }
        .form-error { color: #EF4444; font-size: var(--text-sm); margin-top: 6px; display: none; }
        .form-error.show { display: block; }
        .input-group { position: relative; }
        .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
        .input-group input { padding-left: 44px; }

        /* Typography System */
        h1 { font-size: var(--text-4xl); line-height: 1.2; font-weight: 700; letter-spacing: 0.05em; }
        h2 { font-size: var(--text-2xl); line-height: 1.3; font-weight: 700; letter-spacing: 0.04em; }
        h3 { font-size: var(--text-xl); line-height: 1.4; font-weight: 600; }
        h4 { font-size: var(--text-lg); line-height: 1.4; font-weight: 600; }
        p { font-size: var(--text-base); line-height: 1.7; }
        .text-lead { font-size: var(--text-lg); color: var(--gray-600); line-height: 1.8; letter-spacing: 0.03em; }
        .text-small { font-size: var(--text-sm); color: var(--gray-500); }
        .text-xs { font-size: var(--text-xs); }

        /* Icon System */
        .icon { width: 20px; height: 20px; stroke-width: 2; vertical-align: middle; }
        .icon-sm { width: 16px; height: 16px; }
        .icon-lg { width: 24px; height: 24px; }
        .icon-xl { width: 32px; height: 32px; }
        .icon-success { color: #10B981; }
        .icon-error { color: #EF4444; }
        .icon-warning { color: #F59E0B; }
        .icon-primary { color: var(--primary); }
        .badge-icon { display: inline-flex; align-items: center; gap: 6px; }

    
/* Notification Banner */
.notification-banner {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: top 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 90%;
    font-size: 16px;
}
.notification-banner.show { top: 20px; }
.notification-banner.error { background: #ef4444; }
.notification-banner.info { background: #2563eb; }
.notification-banner button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
}

/* Usage Indicator */
.usage-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.usage-indicator.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.usage-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    margin: 0 15px;
}

.usage-progress {
    background: white;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.usage-count {
    font-size: 1.2rem;
    font-weight: 700;
}

.upgrade-badge {
    background: white;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.upgrade-badge:hover {
    transform: scale(1.05);
}
.tool-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}


/* Tool filter buttons */
.tool-filter-btn {
    padding: 0.5rem 1.25rem;
    min-height: 44px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}
.tool-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.tool-filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ===== BETA MODE STYLES ===== */


/* --- Beta welcome modal --- */
.beta-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.beta-modal-backdrop.beta-visible {
    opacity: 1;
}
.beta-modal-backdrop.beta-hiding {
    opacity: 0;
}
.beta-modal-card {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    transform: translateY(16px);
    transition: transform 0.3s ease;
}
.beta-modal-backdrop.beta-visible .beta-modal-card {
    transform: translateY(0);
}
.beta-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.beta-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}
.beta-modal-body {
    font-size: 0.95rem;
    color: #475569;
    line-height: var(--leading-normal, 1.7);
    margin-bottom: 1.5rem;
    text-align: left;
}
.beta-modal-btn {
    display: inline-block;
    background: #2563EB;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 2.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    outline: none;
}
.beta-modal-btn:hover {
    background: #2563EB;
    transform: translateY(-1px);
}
.beta-modal-btn:focus {
    box-shadow: 0 0 0 3px rgba(59,130,246,0.4);
}
.beta-modal-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}
.beta-modal-footer a {
    color: #3B82F6;
    text-decoration: none;
}
.beta-modal-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .beta-modal-card {
        padding: 2rem 1.25rem 1.5rem;
    }
    .beta-modal-title {
        font-size: 1.25rem;
    }
    .beta-modal-body {
        font-size: 0.9rem;
    }
}


/* --- Beta modal: status items --- */
.beta-modal-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.beta-modal-content {
    text-align: left;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.beta-status-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1.5px solid transparent;
}
.beta-status-item strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.beta-status-item p { font-size: 0.8rem; color: #64748B; margin: 0; line-height: 1.6; }
.beta-available { background: #F0FDF4; border-color: #BBF7D0; }
.beta-available strong { color: #15803D; }
.beta-coming { background: #F8FAFC; border-color: #E2E8F0; }
.beta-coming strong { color: #334155; }
.beta-status-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* --- Persistent navbar BETA badge --- */
.beta-badge-nav {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    line-height: 1.4;
    flex-shrink: 0;
    vertical-align: middle;
}

/* --- Pricing section beta notice banner --- */
.pricing-beta-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 0.875rem 1.125rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #1E40AF;
    line-height: 1.6;
}
.pricing-beta-icon { flex-shrink: 0; font-size: 1rem; }

/* --- Coming soon pricing CTA --- */
.pricing-cta-coming {
    background-color: #F1F5F9 !important;
    color: #64748B !important;
    cursor: not-allowed !important;
    border: 1.5px dashed #CBD5E1 !important;
    opacity: 0.9;
    pointer-events: none;
    box-shadow: none !important;
}
.pricing-note-coming {
    text-align: center;
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 0.5rem;
}

/* ===== END BETA MODE STYLES ===== */

/* Tool modal loading spinner */
@keyframes toolSpin {
    to { transform: rotate(360deg); }
}

/* ── Utility classes extracted from homepage inline styles ── */


.stars {
  color: #F59E0B;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.badge-section {
  display: inline-block;
  background-color: #EFF6FF;
  color: #2563EB;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.badge-feature {
  display: inline-block;
  background-color: #EFF6FF;
  color: #2563EB;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}



/* ── Pricing card components (extracted from inline styles) ── */
.plan-header    { margin-bottom: 1.5rem; }
.plan-label     { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.plan-label-muted  { color: var(--text-secondary); }
.plan-label-pro    { color: #2563eb; }
.plan-label-biz    { color: #7c3aed; }
.plan-label-agency { color: #d97706; }
.plan-price-num  { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); margin: 0.5rem 0; }
.plan-price-unit { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-desc       { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.plan-features   { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan-feature    { padding: 0.4rem 0; font-size: 0.9rem; color: #334155; display: flex; align-items: center; gap: 0.5rem; }
.plan-feature-na { padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.plan-feature-hi { padding: 0.4rem 0; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.plan-check { color: #10b981; }
.plan-x     { color: #cbd5e1; }
.pricing-cta        { width: 100%; padding: 0.75rem; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.pricing-cta-free   { border: 2px solid #e2e8f0; background: white; color: var(--text-secondary); font-weight: 600; }
.pricing-cta-primary{ border: none; background: linear-gradient(135deg,#2563eb,#1d4ed8); color: white; box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.pricing-cta-biz    { border: 2px solid #7c3aed; background: white; color: #7c3aed; }
.pricing-cta-agency { border: none; background: linear-gradient(135deg,#f59e0b,#d97706); color: white; }

/* ── Social proof stats ── */
.stat-item   { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; }
.stat-text   { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.25rem; }
.grad-blue   { background: linear-gradient(135deg, #3B82F6, #1E40AF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-green  { background: linear-gradient(135deg, #10B981, #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-yellow { background: linear-gradient(135deg, #F59E0B, #D97706); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Pro tool card benefit line ── */
.tool-benefit { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; font-style: italic; }

/* ─────────────────────────────────────────────────────────
   Scroll-reveal entrance animations (Fix 2)
───────────────────────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scroll-reveal-stagger.revealed > * { opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; }

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

/* ─────────────────────────────────────────────────────────
   CTA button loading state + progress bar (Fix 3)
───────────────────────────────────────────────────────── */
.cta-button-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
.cta-button-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cta-spin 0.6s linear infinite;
}
@keyframes cta-spin { to { transform: rotate(360deg); } }

.diagnosis-progress { width: 100%; margin: 12px 0 0; display: none; }
.diagnosis-progress.active { display: block; }
.diagnosis-progress-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.diagnosis-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}
.diagnosis-progress-text {
  font-size: var(--font-xs, 12px);
  color: #64748b;
  text-align: center;
  margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────
   How it Works section (Fix 4)
───────────────────────────────────────────────────────── */
.how-it-works { background: white; }
.hiw-container { max-width: 900px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.hiw-title { font-size: var(--font-3xl, 28px); font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.hiw-subtitle { color: var(--text-secondary, #64748b); margin-bottom: 48px; }
.how-it-works-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.how-step { position: relative; }
.how-it-works-steps .how-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 28px;
  font-size: 1.4rem;
  color: #cbd5e1;
  font-weight: 300;
}
.how-step-icon {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: var(--font-2xl, 24px);
}
.how-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.how-step-title { font-size: var(--font-lg, 18px); font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.how-step-desc { font-size: var(--font-sm, 14px); color: var(--text-secondary, #64748b); line-height: var(--leading-normal, 1.7); }

@media (max-width: 640px) {
  .how-it-works-steps { grid-template-columns: 1fr; }
  .how-it-works-steps .how-step:not(:last-child)::after {
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -24px;
    transform: translateX(-50%);
  }
}

/* ── Fix 3: Scroll-to-top ─────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;
  z-index: 1000;
  text-decoration: none;
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59,130,246,0.4);
}

/* ── Fix 4: Toast notifications ───────────────────── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0;
  max-width: 360px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.toast-success { background: #059669; }
.toast.toast-error   { background: #dc2626; }
.toast.toast-info    { background: #2563eb; }
.toast.toast-warning { background: #d97706; }

/* ── Fix 5: Skeleton shimmer ──────────────────────── */
.skeleton-text      { height: 14px; margin-bottom: 10px; width: 80%; }
.skeleton-text-short{ height: 14px; margin-bottom: 10px; width: 50%; }
.skeleton-card      { height: 80px; margin-bottom: 12px; }
.skeleton-circle    { width: 40px; height: 40px; border-radius: 50%; }

/* ── Fix 6: Score rings ───────────────────────────── */
.score-ring-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.score-ring { text-align: center; width: 100px; }
.score-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.score-ring-bg   { fill: none; stroke: #e2e8f0; stroke-width: 6; }
.score-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-ring-value {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: -54px;
  position: relative;
}
.score-ring-label { font-size: 0.8rem; color: #64748b; margin-top: 8px; }
.score-ring-fill.score-good { stroke: #059669; }
.score-ring-fill.score-ok   { stroke: #d97706; }
.score-ring-fill.score-bad  { stroke: #dc2626; }

/* ── Fix 4: Hero CTA shimmer ──────────────────────── */
#hero-submit-btn {
    position: relative;
    overflow: hidden;
}
#hero-submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.2) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    animation: cta-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes cta-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Testimonial carousel dots ────────────────────── */
.testimonial-dots { text-align: center; margin-top: 1.5rem; }
.testimonial-dot  { width: 10px; height: 10px; border-radius: 50%; border: none; margin: 0 6px; padding: 0; cursor: pointer; background: #cbd5e1; transition: background 0.3s; }
.testimonial-dot.active { background: #2563eb; }

/* ── Hero Grid: Mobile responsive (Phase 3) ─── */
@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ============================================================
   === Phase 4: Sample Report Modal ===
   ============================================================ */
.sample-report-link {
  text-align: center;
  margin: 12px 0 8px;
}
.sample-report-link a {
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.sample-report-link a:hover {
  color: #2563eb;
  text-decoration: underline;
}
.sample-scores {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.sample-score-item {
  text-align: center;
  min-width: 72px;
}
.sample-score-value {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 6px;
  color: white;
}
.sample-score-great { background: #22c55e; }
.sample-score-good  { background: #3b82f6; }
.sample-score-warn  { background: #f59e0b; }
.sample-score-label {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}
.sample-report-features {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.sample-report-features p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #334155;
}
.sample-report-features p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   === Phase 4: Post-Diagnosis Challenge Nudge ===
   ============================================================ */
.post-diagnosis-nudge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-top: 24px;
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
}
.post-diagnosis-nudge-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.post-diagnosis-nudge-content {
  flex: 1;
}
.post-diagnosis-nudge-content strong {
  display: block;
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 2px;
}
.post-diagnosis-nudge-content p {
  font-size: 13px;
  color: #475569;
  margin: 0;
}
.post-diagnosis-nudge-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 20px !important;
  font-size: 14px !important;
}

@media (max-width: 767px) {
  .post-diagnosis-nudge {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .post-diagnosis-nudge-btn {
    width: 100%;
    text-align: center;
  }
}
/* === /Phase 4 === */

/* === Phase 6: First-Visit Tutorial Card === */
.first-visit-card {
  position: relative;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 20px 24px;
  margin-bottom: 24px;
  max-width: 600px;
}
.first-visit-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px 0;
  padding-right: 28px; /* space for close button */
}
.first-visit-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.first-visit-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.first-visit-step-num {
  font-size: 20px;
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
}
.first-visit-step strong {
  display: block;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 2px;
}
.first-visit-step p {
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}
.first-visit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.first-visit-close:hover {
  color: #475569;
  background: #f1f5f9;
}
.first-visit-hint {
  font-size: 13px;
  color: #64748b;
  margin: 16px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.first-visit-hint a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}
.first-visit-hint a:hover {
  text-decoration: underline;
}

/* Dismiss animation */
.first-visit-card.dismissing {
  opacity: 0;
  max-height: 0;
  padding: 0 24px;
  margin-bottom: 0;
  border-color: transparent;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease 0.1s, padding 0.4s ease 0.1s, margin 0.4s ease 0.1s, border-color 0.3s;
}

/* === Phase 6: Beta Modal Popular Uses === */
.beta-modal-popular-uses {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}
.beta-modal-popular-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 10px 0;
}
.beta-modal-popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.beta-modal-popular-list li {
  font-size: 14px;
  color: #334155;
  padding: 5px 0;
  line-height: 1.5;
}
