/* ========================================
   YaadHai Landing Page - Modern Interactive Design
   Mobile-First, WhatsApp Chat Demos, Database-Driven
   ======================================== */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary-color: #25D366; /* WhatsApp Green */
    --primary-dark: #128C55;
    --primary-light: #DCF8C6;
    --primary-gradient: linear-gradient(135deg, #25D366 0%, #128C55 100%);
    
    --secondary-color: #34B7F1;
    --accent-orange: #FF9800;
    --accent-purple: #8E24AA;
    --accent-teal: #00897B;
    
    --text-dark: #292F36;
    --text-medium: #5D6D7E;
    --text-light: #95A5A6;
    
    --bg-white: #FFFFFF;
    --bg-light: #F7F9FC;
    --bg-gray: #E8EDF2;
    --bg-gradient: linear-gradient(135deg, #DCF8C6 0%, #E8F5E9 100%);
    
    --border-color: #E5E8EB;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.15);
    
    /* Typography - Using Inter */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius - Modern, Rounded */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* prevent horizontal scroll on mobile */
    max-width: 100vw;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: transparent;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 100px;
    width: auto;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.main-header.scrolled .site-logo {
    height: 90px;
}

.site-logo:hover {
    transform: scale(1.05);
}

.header-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
}

.header-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

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

.main-header.scrolled .header-whatsapp-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.main-header.scrolled .header-whatsapp-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
    }
    
    .main-header.scrolled {
        padding: 0.625rem 0;
    }
    
    .site-logo {
        height: 44px;
    }
    
    .main-header.scrolled .site-logo {
        height: 30px;
    }
    
    .modern-hero {
        padding-top: 140px;
    }
    
    .header-whatsapp-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .header-whatsapp-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   LANGUAGE SWITCHER
   Top-right corner language selector
   ======================================== */
.language-switcher {
    position: fixed;
    top: 2.25rem;
    right: 1.5rem;
    z-index: 1200;
    display: flex;
    gap: 0.25rem;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-base);
    align-items: center;
}

.main-header.scrolled ~ * .language-switcher,
.main-header.scrolled + * .language-switcher {
    top: 1.25rem;
}

@media (max-width: 1024px) {
    .language-switcher {
        top: 2rem;
        right: 1rem;
    }
    
    .main-header.scrolled ~ * .language-switcher,
    .main-header.scrolled + * .language-switcher {
        top: 1rem;
    }
}

.lang-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-primary), 'Noto Sans Bengali', 'Noto Sans Devanagari', sans-serif;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2rem;
    text-align: center;
}

.lang-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.lang-link.active {
    background: var(--primary-color);
    color: white;
    cursor: default;
}

/* Mobile responsive - stack on smaller screens */
@media (max-width: 480px) {
    .language-switcher {
        top: 1rem;
        right: 0.75rem;
        gap: 0.1rem;
        padding: 0.2rem 0.4rem;
    }
    
    .main-header.scrolled ~ * .language-switcher,
    .main-header.scrolled + * .language-switcher {
        top: 0.5rem;
    }
    
    .lang-link {
        padding: 0.3rem 0.45rem;
        font-size: 0.72rem;
        min-width: 1.875rem;
        font-weight: 500;
        height: 1.625rem;
    }
    
    .modern-hero {
        padding-top: 120px;
    }
}

/* ========================================
   Layout Container
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Business example - concrete use case */
.business-example {
    text-align: center;
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin: var(--spacing-sm) auto var(--spacing-lg);
    max-width: 600px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(37, 211, 102, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

/* ========================================
   MODERN HERO SECTION
   ======================================== */
.modern-hero {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 250px; /* Account for increased fixed header with larger padding and logo */
    padding-bottom: var(--spacing-xl);
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 211, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 183, 241, 0.1) 0%, transparent 50%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    animation: fadeSlideDown 0.6s ease-out forwards;
    opacity: 1;
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    animation: fadeSlideUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
    animation: fadeSlideUp 0.6s ease-out 0.4s both;
}

/* Clarity line - explains onboarding flow */
.hero-clarity-line {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    animation: fadeSlideUp 0.6s ease-out 0.5s both;
    opacity: 0.9;
}

.hero-cta {
    animation: fadeSlideUp 0.6s ease-out 0.6s both;
}

.cta-note {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* ========================================
   BUTTONS
   ======================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
}

.cta-button.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:active {
    transform: translateY(-1px);
}

.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.cta-button.extra-large {
    padding: 1.5rem 3rem;
    font-size: 1.375rem;
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* ========================================
   WHATSAPP DEMO SECTION
   ======================================== */
.whatsapp-demo-section {
    background: var(--bg-white);
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-md); /* Add spacing between phone sections */
}

.whatsapp-demo-section.business-theme {
    background: var(--bg-light);
}

.demo-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.phone-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--spacing-md) 0;
}

/* ========================================
   PHONE MOCKUP
   ======================================== */
.phone-mockup {
    width: 100%;
    max-width: 340px; /* Reduced from 380px for better text balance */
    margin: 0 auto;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.phone-frame {
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

/* ========================================
   WHATSAPP HEADER
   ======================================== */
.whatsapp-header {
    background: #075E54;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 28px 28px 0 0;
    position: relative;
    z-index: 5;
}

.back-button {
    width: 24px;
    height: 24px;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-details {
    flex: 1;
}

.chat-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.chat-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin: 0;
}

.chat-actions {
    width: 24px;
    height: 24px;
}

/* ========================================
   WHATSAPP CHAT
   ======================================== */
.whatsapp-chat {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23E5DDD5" width="100" height="100"/><path fill="%23D4C9BD" opacity="0.15" d="M0 0h50v50H0z"/><path fill="%23D4C9BD" opacity="0.15" d="M50 50h50v50H50z"/></svg>');
    background-size: 200px 200px;
    background-color: #E5DDD5;
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 0 0 28px 28px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ========================================
   CHAT BUBBLES
   ======================================== */
.chat-bubble {
    max-width: 85%;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: messageAppear 0.4s ease-out forwards;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
    background: #DCF8C6;
    border-radius: 8px 8px 0 8px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
}

.bot-message {
    align-self: flex-start;
    background: white;
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.message-sender {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.message-content {
    font-size: 0.9375rem;
    line-height: 1.3;
    color: #303030;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.message-time {
    font-size: 0.6875rem;
    color: #667781;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.checkmark {
    width: 16px;
    height: 16px;
    color: #53bdeb;
}

/* ========================================
   CHAT MESSAGE ANIMATIONS
   ======================================== */

/* Message reveal animation */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-bubble {
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.chat-bubble.revealed {
    animation: fadeSlideUp 0.4s ease forwards;
}

/* Typing indicator animation */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.typing-bubble {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.typing-bubble span {
    width: 8px;
    height: 8px;
    background: #90949c;
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-bubble span:nth-child(1) {
    animation-delay: 0s;
}

.typing-bubble span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-bubble span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Replay button */
.replay-controls {
    text-align: center;
    margin-top: var(--spacing-md);
}

.replay-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.replay-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.replay-button svg {
    transition: transform 0.3s ease;
}

.replay-button:hover svg {
    transform: rotate(360deg);
}

/* Ensure chat animations run only once (not on every scroll) */
.chat-bubble {
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .chat-bubble {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .typing-bubble span {
        animation: none !important;
    }
    
    .replay-button svg {
        transition: none !important;
    }
    
    .replay-button:hover svg {
        transform: none !important;
    }
}

/* ========================================
   WHATSAPP INPUT BAR
   ======================================== */
.whatsapp-input {
    background: #F0F0F0;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0 0 28px 28px;
    margin-top: -1px;
}

.input-field {
    flex: 1;
    background: white;
    padding: 0.625rem 1rem;
    border-radius: 20px;
    color: #667781;
    font-size: 0.9375rem;
}

.input-icon {
    font-size: 1.25rem;
    cursor: pointer;
}

/* ========================================
   DEMO ANNOTATIONS
   ======================================== */
.demo-annotations {
    display: none;
}

/* ========================================
   FEATURE GRID
   ======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color, var(--primary-color));
    opacity: 0;
    transition: opacity var(--transition-base);
}

/* Improved hover: subtle background + shadow */
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(to bottom, #ffffff, #f8fffe);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    height: 3rem; /* Fixed height for vertical alignment */
    line-height: 1;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

/* Make verb text visually stronger */
.feature-subtitle {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
    font-weight: 600; /* Increased from 500 */
}

/* Reduce paragraph width for readability */
.feature-body {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 90%; /* Constrain width */
}

/* ========================================
   SPLIT VIEW (PROBLEM/SOLUTION)
   ======================================== */
.split-view {
    background: var(--bg-light);
}

.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.split-side {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.split-side:hover {
    transform: translateY(-4px);
}

.problem-side {
    border-left: 4px solid #E74C3C;
}

.solution-side {
    border-left: 4px solid var(--primary-color);
}

.split-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.split-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.split-list {
    list-style: none;
    padding: 0;
}

.split-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
    font-size: 1rem;
    color: var(--text-medium);
}

.problem-list li::before {
    content: '❌';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.solution-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* ========================================
   AUDIENCE GRID
   ======================================== */
.audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.audience-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.audience-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.audience-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.audience-card p {
    font-size: 1rem;
    color: var(--text-medium);
}

/* ========================================
   MODERN PRIVACY SECTION
   ======================================== */
.modern-privacy {
    background: var(--bg-white);
}

.privacy-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.privacy-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.privacy-point {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
}

.privacy-point:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.privacy-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.privacy-point h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.privacy-point p {
    font-size: 0.9375rem;
    color: var(--text-medium);
}

/* ========================================
   PROBLEM-SOLUTION SECTIONS
   Two-column layout showing problems vs solutions
   for families and businesses
   ======================================== */
.problem-solution-section {
    padding: var(--spacing-xl) 0;
}

.problem-solution-section.family-section {
    background: var(--bg-light);
}

.problem-solution-section.business-section {
    background: white;
}

.problem-solution-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.empathy-line {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-style: italic;
    margin-top: var(--spacing-xs);
}

/* Two-column grid */
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Column headers */
.column-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.column-header.problem-header {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border-left: 4px solid #dc3545;
}

.column-header.solution-header {
    background: linear-gradient(135deg, #e8f8f0 0%, #d1f2e3 100%);
    border-left: 4px solid var(--primary-color);
}

.column-header .column-icon {
    font-size: 1.5rem;
}

.column-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* Solution subtitle */
.solution-subtitle {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(37, 211, 102, 0.1);
    border-radius: var(--radius-sm);
}

/* Problem/Solution lists */
.problem-solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-item,
.solution-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.problem-item {
    background: white;
    border-left: 3px solid #dc3545;
}

.problem-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.solution-item {
    background: white;
    border-left: 3px solid var(--primary-color);
}

.solution-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.item-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.item-body {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .problem-column {
        order: 1;
    }
    
    .solution-column {
        order: 2;
    }
    
    .empathy-line {
        font-size: 1rem;
    }
    
    .item-title {
        font-size: 0.95rem;
    }
    
    .item-body {
        font-size: 0.875rem;
    }
}

/* ========================================
   MODERN FINAL CTA
   ======================================== */
.modern-cta {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modern-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

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

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
}

.modern-cta .cta-button.primary {
    background: white;
    color: var(--primary-color);
}

.modern-cta .cta-button.primary:hover {
    background: var(--bg-light);
}

.cta-features {
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.cta-feature {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   MODERN FOOTER
   ======================================== */
.modern-footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.footer-logo {
    height: 100px;
    width: auto;
    margin: 0 auto var(--spacing-sm);
    display: block;
}

/* Bolder product name for better readability */
.footer-title {
    font-size: 1.75rem;
    color: white;
    font-weight: 700; /* Increased from default */
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8); /* Improved contrast */
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Lighter weight for secondary links */
.footer-links a {
    color: rgba(255, 255, 255, 0.7); /* Better contrast */
    transition: color var(--transition-fast);
    font-weight: 400; /* Reduced from 500 */
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Improved visibility */
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.65); /* Better contrast */
    font-size: 0.875rem;
}

/* ========================================
   FLOATING WHATSAPP BUTTON (DEPRECATED - Now in header)
   ======================================== */
.whatsapp-float {
    display: none; /* Moved to header */
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 767px) {
    /* Smaller phone mockup on mobile */
    .phone-mockup {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .phone-frame {
        border-radius: 32px;
        padding: 10px;
    }
    
    /* Reduce chat bubble max-width on mobile */
    .chat-bubble {
        max-width: 90%;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Smaller font sizes in chat */
    .message-content {
        font-size: 0.875rem;
        line-height: 1.35;
    }
    
    .message-sender {
        font-size: 0.75rem;
    }
    
    .message-time {
        font-size: 0.625rem;
    }
    
    /* Reduce chat window height on mobile */
    .whatsapp-chat {
        min-height: 400px;
        max-height: 500px;
        padding: 0.75rem;
    }
    
    /* Smaller WhatsApp header on mobile */
    .whatsapp-header {
        padding: 0.75rem;
    }
    
    .chat-avatar {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .chat-name {
        font-size: 0.9375rem;
    }
    
    .chat-status {
        font-size: 0.6875rem;
    }
    
    /* Better spacing for mobile */
    .chat-messages {
        gap: 0.625rem;
    }
    
    /* Ensure proper flexbox behavior on mobile */
    .user-message,
    .bot-message {
        width: auto;
        min-width: 0;
    }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .split-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .privacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .footer-links {
        justify-content: flex-end;
    }
    
    .demo-annotations {
        display: block;
        position: absolute;
        width: 100%;
    }
    
    .annotation {
        position: absolute;
        font-size: 0.875rem;
        color: var(--text-medium);
        background: white;
        padding: 0.5rem 1rem;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
    }
    
    .annotation.left {
        left: 0;
        top: 30%;
    }
    
    .annotation.right {
        right: 0;
        top: 60%;
    }
}

/* ========================================
   LOCAL MARKET PRICES DEMO SECTION
   ======================================== */
.local-prices-demo {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #F0F9FF 0%, #F7F9FC 100%);
}

.prices-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.prices-header .section-title {
    margin-bottom: var(--spacing-sm);
}

.prices-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Price Cards Grid */
.prices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

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

@media (min-width: 1024px) {
    .prices-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual Price Card */
.price-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.price-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Card Header */
.price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--bg-gray);
}

.price-item-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.price-item-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.price-item-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.price-item-unit {
    font-size: 0.875rem;
    color: var(--text-light);
}

.price-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #E8F5E9 100%);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
}

.price-badge .badge-icon {
    font-size: 0.875rem;
}

/* Price List */
.price-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.price-row:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.price-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.area-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.area-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.price-details {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.price-updated {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

/* Card Footer */
.price-card-footer {
    display: flex;
    justify-content: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--bg-gray);
}

.price-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.price-disclaimer .info-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* Bottom Info Section */
.prices-info {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.prices-info .info-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.prices-info .info-disclaimer {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .price-card {
        padding: var(--spacing-sm);
    }
    
    .price-item-emoji {
        font-size: 2rem;
    }
    
    .price-item-name {
        font-size: 1.1rem;
    }
    
    .price-value {
        font-size: 1.1rem;
    }
    
    .price-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */
@media (min-width: 1024px) {
    .audience-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .privacy-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .phone-mockup {
        max-width: 420px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    text-align: right;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity var(--transition-base);
}

.footer-logo-link:hover .footer-logo {
    opacity: 1;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left {
        justify-content: center;
        width: 100%;
    }
    
    .footer-right {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* ========================================
   PAGE CONTAINER (for policy pages)
   ======================================== */
.page-container {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: calc(100vh - 300px);
    background: var(--bg-light);
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.page-content h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.page-last-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.policy-text {
    line-height: 1.8;
    color: var(--text-medium);
}

.policy-text p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.policy-text ul {
    margin-left: 2rem;
    margin-bottom: 1.25rem;
}

.policy-text li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.policy-text ul li strong {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .page-container {
        padding-top: 6rem;
        padding-bottom: 2rem;
        min-height: calc(100vh - 250px);
    }
    
    .page-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: var(--radius-sm);
    }
    
    .page-content h1 {
        font-size: 1.75rem;
    }
    
    .page-content h2 {
        font-size: 1.25rem;
    }
    
    .policy-text p {
        text-align: left;
    }
}

/* ========================================
   COMING SOON PAGE
   ======================================== */
.coming-soon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #DCF8C6 0%, #E8F5E9 100%);
    padding: 2rem;
}

.coming-soon-content {
    text-align: center;
    background: white;
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    animation: slideUp var(--transition-slow);
}

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

.coming-soon-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.coming-soon-headline {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.coming-soon-subtext {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.coming-soon-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.coming-soon-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .coming-soon-container {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .coming-soon-content {
        padding: 3rem 2rem;
    }
    
    .coming-soon-logo {
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .coming-soon-headline {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .coming-soon-subtext {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .coming-soon-cta {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coming-soon-content {
        animation: none;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
/* Respect user's motion preferences - disable all animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        animation-play-state: paused !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    /* Disable chat bubble animations completely */
    .chat-bubble {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Ensure animations run only once (not on every scroll) */
.chat-bubble {
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* ========================================
   HEADER QR TRIGGER BUTTON
   Lives inside .language-switcher pill
   ======================================== */
.header-qr-sep {
    width: 1px;
    height: 1.25rem;
    background: rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.header-qr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    color: var(--primary-dark, #128C55);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
}

.header-qr-btn:hover {
    background: var(--primary-light, #dcf8c6);
    color: var(--primary-dark, #128C55);
    transform: scale(1.1);
}

.header-qr-btn:focus-visible {
    outline: 2px solid var(--primary-color, #25D366);
    outline-offset: 2px;
}

.header-qr-btn svg {
    display: block;
}

@media (max-width: 480px) {
    .header-qr-btn {
        width: 1.75rem;
        height: 1.75rem;
    }
    .header-qr-btn svg {
        width: 15px;
        height: 15px;
    }
}

/* ========================================
   WHATSAPP QR MODAL
   ======================================== */

/* Overlay */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    /* hidden by default — no display:none so transitions work */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.qr-modal-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0s linear 0s;
}

/* Box */
.qr-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 2.25rem 2rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
    opacity: 0;
}

.qr-modal-overlay.is-open .qr-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Prevent body scroll when modal open */
body.qr-modal-open {
    overflow: hidden;
}

/* Close button */
.qr-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--bg-light, #f5f5f5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium, #666);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.qr-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.qr-modal-close:focus-visible {
    outline: 2px solid var(--primary-color, #25D366);
    outline-offset: 2px;
}

/* Badge */
.qr-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light, #dcf8c6);
    color: var(--primary-dark, #128C55);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

/* Title & subtitle */
.qr-modal-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary, #111);
    margin: 0 0 0.4rem;
    line-height: 1.25;
}

.qr-modal-sub {
    font-size: 0.925rem;
    color: var(--text-secondary, #555);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* QR image wrapper */
.qr-modal-img-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.qr-modal-img {
    display: block;
    width: 195px;
    height: 195px;
    border-radius: 12px;
    border: 3px solid var(--primary-color, #25D366);
    padding: 5px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-modal-img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.25);
}

/* Steps */
.qr-modal-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.qr-modal-steps li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-medium, #555);
    background: var(--bg-light, #f9f9f9);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
}

.qr-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    min-width: 1.6rem;
    border-radius: 50%;
    background: var(--primary-gradient, #25D366);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

/* CTA button */
.qr-modal-cta {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .qr-modal-box {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 16px;
    }

    .qr-modal-title {
        font-size: 1.3rem;
    }

    .qr-modal-img {
        width: 160px;
        height: 160px;
    }
}

/* ========================================
   WHATSAPP QR CODE SECTION
   ======================================== */
.wa-qr-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.wa-qr-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px solid #dcf8c6;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.10);
}

/* --- Header --- */
.wa-qr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light, #dcf8c6);
    color: var(--primary-dark, #128C55);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.wa-qr-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.wa-qr-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #555);
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* --- Body --- */
.wa-qr-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* --- QR frame --- */
.wa-qr-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.wa-qr-image {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 3px solid var(--primary-color, #25D366);
    padding: 6px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-qr-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.25);
}

.wa-qr-hint {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    margin: 0;
}

/* --- Divider --- */
.wa-qr-divider {
    position: relative;
    width: 100%;
    max-width: 280px;
    display: flex;
    align-items: center;
}

.wa-qr-divider::before,
.wa-qr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.wa-qr-divider span {
    padding: 0 0.75rem;
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
}

/* --- Button --- */
.wa-qr-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .wa-qr-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .wa-qr-title {
        font-size: 1.4rem;
    }

    .wa-qr-image {
        width: 170px;
        height: 170px;
    }
}

/* --- Hide QR on print (user will click the link instead) --- */
@media print {
    .wa-qr-section {
        display: none !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .whatsapp-float,
    .cta-button,
    .hero-cta {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ========================================
   INFO FEATURE SECTIONS (Static — Family Sync,
   Community Market Price, Total & Analysis)
   ======================================== */

/* ── Shared section base ───────────────────────────────── */
.info-feature-section {
    padding: 5rem 0;
    overflow: hidden;
}

.info-family-sync   { background: var(--bg-light); }
.info-market-price  { background: #FFFDE7; }
.info-analytics     { background: var(--bg-white); }

/* ── Family Sync + Community Prices 6/6 side-by-side grid ── */
.info-features-pair-section {
    padding: 5rem 0;
    background: var(--bg-light);
    overflow: hidden;
}

.info-features-pair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* ── Redesigned info-split-card ─────────────────────────── */
.info-split-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.info-split-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,.13);
}

.info-split-card.info-family-sync {
    background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 60%);
}

.info-split-card.info-market-price {
    background: linear-gradient(160deg, #fff8f0 0%, #ffffff 60%);
}

/* ── Accent top bar ─────────────────────────────────────── */
.isc-accent {
    height: 5px;
    width: 100%;
    flex-shrink: 0;
}

.isc-accent--green  { background: linear-gradient(90deg, #25D366, #128C55); }
.isc-accent--orange { background: linear-gradient(90deg, #FF9800, #E65100); }

/* ── Visual (SVG) area ──────────────────────────────────── */
.isc-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.5rem 0.5rem;
}

.isc-visual .info-svg {
    max-width: 210px;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.08));
}

/* ── Floating stat badge ────────────────────────────────── */
.isc-stat-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.15rem;
    line-height: 1.2;
    backdrop-filter: blur(6px);
}

.isc-stat-badge--green  { background: rgba(37,211,102,.15); color: #065f46; border: 1px solid rgba(37,211,102,.3); }
.isc-stat-badge--orange { background: rgba(255,152,0,.15);  color: #92400e; border: 1px solid rgba(255,152,0,.3); }

.isc-stat-num   { font-size: 1.35rem; line-height: 1; }
.isc-stat-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Body (text) area ───────────────────────────────────── */
.isc-body {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
}

/* ── Title ──────────────────────────────────────────────── */
.isc-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0.5rem 0 1.25rem;
}

.isc-title-accent          { color: #15803d; }
.isc-title-accent--orange  { color: #c2410c; }

/* ── Feature list ───────────────────────────────────────── */
.isc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.isc-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-medium);
    background: rgba(37,211,102,.06);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    border-left: 3px solid #25D366;
    line-height: 1.45;
}

.isc-features--orange li {
    background: rgba(255,152,0,.07);
    border-left-color: #FF9800;
}

.isc-fi {
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ── Bottom pill row ────────────────────────────────────── */
.isc-cta-row {
    margin-top: auto;
}

.isc-pill {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(37,211,102,.1);
    color: #065f46;
    border: 1px solid rgba(37,211,102,.25);
}

.isc-pill--orange {
    background: rgba(255,152,0,.1);
    color: #92400e;
    border-color: rgba(255,152,0,.25);
}

/* ── Legacy selectors kept for fallback ──────────────────── */
.info-split-card .info-feature-visual { order: -1; width: 100%; justify-content: center; }
.info-split-card .info-svg            { max-width: 240px; }
.info-split-card .info-feature-text   { align-items: center; }
.info-split-card .info-feature-title  { text-align: center; }
.info-split-card .info-feature-body   { text-align: center; }

/* ── Tag / badge ──────────────────────────────────────── */
.info-feature-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    background: rgba(37, 211, 102, 0.12);
    color: var(--primary-dark);
}

.info-feature-tag--orange {
    background: rgba(255, 152, 0, 0.12);
    color: #E65100;
}

.info-feature-tag--purple {
    background: rgba(142, 36, 170, 0.1);
    color: #6A1B9A;
}

/* ── Two-column feature row ───────────────────────────── */
.info-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-feature-row--reverse {
    direction: rtl; /* flip column order */
}

.info-feature-row--reverse > * {
    direction: ltr; /* reset content direction */
}

/* ── SVG visual column ────────────────────────────────── */
.info-feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.07));
    transition: transform var(--transition-slow);
}

.info-svg:hover {
    transform: translateY(-4px);
}

/* ── Text column ──────────────────────────────────────── */
.info-feature-text {
    display: flex;
    flex-direction: column;
}

.info-feature-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.info-feature-title--center { text-align: center; }

.info-feature-body {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-medium);
    line-height: 1.75;
    white-space: pre-line;  /* preserve \n line breaks in content */
    margin-bottom: 0;
}

.info-feature-body--center { text-align: center; }

/* ── Analytics section (centered layout) ────────────── */
.info-analytics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.info-analytics-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.info-analytics-chart svg {
    width: 100%;
    height: auto;
    max-height: 220px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.06));
}

/* ── Stat cards ──────────────────────────────────────── */
.info-analytics-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-stat-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.info-stat-card--green  { border-left: 4px solid var(--primary-color); }
.info-stat-card--blue   { border-left: 4px solid var(--secondary-color); }
.info-stat-card--orange { border-left: 4px solid var(--accent-orange); }

.info-stat-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.1);
}

.info-stat-card--blue   .info-stat-icon { background: rgba(52, 183, 241, 0.12); color: var(--secondary-color); }
.info-stat-card--orange .info-stat-icon { background: rgba(255, 152, 0, 0.12);  color: var(--accent-orange); }
.info-stat-card--green  .info-stat-icon { color: var(--primary-dark); }

.info-stat-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.info-stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.info-stat-content strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.info-stat-content span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ── Responsive: tablet ──────────────────────────────── */
@media (max-width: 900px) {
    .info-feature-row,
    .info-analytics-body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .info-feature-row--reverse {
        direction: ltr;
    }

    .info-feature-visual {
        order: -1; /* SVG always on top on small screens */
    }

    .info-feature-row--reverse .info-feature-visual {
        order: -1;
    }

    .info-analytics-chart {
        max-width: 400px;
        margin: 0 auto;
    }

    .info-features-pair-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ── Responsive: mobile ──────────────────────────────── */
@media (max-width: 480px) {
    .isc-body        { padding: 1.25rem 1.25rem 1.5rem; }
    .isc-title       { font-size: 1.4rem; }
    .isc-features li { font-size: 0.88rem; padding: 0.45rem 0.7rem; }

    .info-feature-section {
        padding: 3.5rem 0;
    }

    .info-feature-title {
        font-size: 1.45rem;
    }

    .info-stat-card {
        padding: 0.9rem 1rem;
    }

    .info-features-pair-section {
        padding: 3rem 0;
    }

    .info-split-card {
        padding: 1.75rem 1.25rem;
    }
}

/* ════════════════════════════════════════════════════════
   COMMAND CHEAT SHEET  — 2-card slider with arrows
   ════════════════════════════════════════════════════════ */

.cmd-cheatsheet {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7f9fc 100%);
}

/* ── Slider shell ──────────────────────────────────── */
.cmd-slider-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cmd-slider-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

/* Track: flex row, smooth slide */
.cmd-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.42s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Each card: exactly half viewport minus half the gap (desktop 2-up) */
.cmd-slider-track .price-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 0;
    box-sizing: border-box;
}

/* ── Arrows ────────────────────────────────────────── */
.cmd-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #d1fae5;
    background: #fff;
    color: #15803d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.cmd-arrow svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.cmd-arrow:hover:not(:disabled) {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
    box-shadow: 0 4px 14px rgba(21,128,61,.3);
}

.cmd-arrow--disabled,
.cmd-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Dot indicators ────────────────────────────────── */
.cmd-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.cmd-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.cmd-dot--active {
    background: #15803d;
    transform: scale(1.3);
}

/* ── Phrase + lang label ───────────────────────────── */
.cmd-phrase {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.cmd-lang {
    font-size: 0.72rem;
    white-space: nowrap;
}

/* ── Badge colours per intent ──────────────────────── */
.cmd-badge-add    { background: linear-gradient(135deg, #dbeafe, #e0f2fe); color: #1d4ed8; }
.cmd-badge-bought { background: linear-gradient(135deg, #dcfce7, #d1fae5); color: #15803d; }
.cmd-badge-list   { background: linear-gradient(135deg, #f3e8ff, #ede9fe); color: #7e22ce; }
.cmd-badge-remove { background: linear-gradient(135deg, #fee2e2, #fef2f2); color: #b91c1c; }

/* Market command badges */
.cmd-badge-check  { background: linear-gradient(135deg, #fef9c3, #fef3c7); color: #92400e; }
.cmd-badge-submit { background: linear-gradient(135deg, #dbeafe, #e0f2fe); color: #1d4ed8; }
.cmd-badge-setmkt { background: linear-gradient(135deg, #dcfce7, #d1fae5); color: #15803d; }
.cmd-badge-mymkt  { background: linear-gradient(135deg, #f3e8ff, #ede9fe); color: #7e22ce; }

/* Market section — slightly different background tint */
.cmd-market-section {
    background: linear-gradient(135deg, #fffbeb 0%, #f7f9fc 100%);
}

/* ── Legend info ───────────────────────────────────── */
.cmd-legend-info .info-text       { font-size: 1rem; }
.cmd-legend-info .info-disclaimer { font-size: 0.85rem; letter-spacing: 0.02em; }

/* ── Mobile: 1 card per view ───────────────────────── */
@media (max-width: 619px) {
    .cmd-slider-track .price-card {
        flex: 0 0 100%;
    }
    .cmd-arrow {
        width: 36px;
        height: 36px;
    }
    .cmd-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   DEMO SLIDESHOW  (#demo-all)
   Wraps the 3 whatsapp-demo phone mockups in one slider
   ============================================================ */

.demo-slideshow-section {
    padding: 3rem 0 2rem;
    background: var(--bg-light, #f7f9fc);
    overflow: hidden;
}

/* Tab pills */
.demo-stabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.demo-stab {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 2px solid #d1fae5;
    background: #fff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.demo-stab:hover {
    border-color: #6ee7b7;
    color: #065f46;
}

.demo-stab--active {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
    transform: scale(1.05);
}

/* Outer row: arrow + viewport + arrow */
.demo-slide-outer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Override cmd-arrow colours for demo arrows to match the tab theme */
.demo-arrow {
    flex-shrink: 0;
}

/* Viewport — clips the sliding track */
.demo-slide-vp {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    min-width: 0;
}

/* Track — 3 slides side-by-side, full-width each */
.demo-slide-track {
    display: flex;
    transition: transform 0.42s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* Individual slide */
.demo-slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* Remove the whatsapp-demo-section outer margin/padding inside the slide
   so it doesn't break the slide sizing */
.demo-slide .whatsapp-demo-section {
    margin: 0;
    border-radius: 0;
    /* Let section keep its own bg colour, we just strip extra outer spacing */
}

/* Placeholder when data unavailable */
.demo-slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .demo-stab {
        font-size: 0.82rem;
        padding: 0.4rem 0.85rem;
    }

    .demo-slide-outer {
        gap: 0.4rem;
    }
}

/* ============================================================
   PROBLEM-SOLUTION PAIR SLIDERS (.ps-*)
   Powers the Family & Business problem/solution card-by-card sliders
   ============================================================ */

.ps-slider-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: var(--spacing-lg);
}

.ps-vp {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    border-radius: var(--radius-md, 12px);
}

.ps-track {
    display: flex;
    transition: transform 0.42s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.ps-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 2px;
}

.ps-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md, 1.25rem);
}

.ps-card {
    background: var(--bg-white, #fff);
    border-radius: var(--radius-md, 12px);
    padding: var(--spacing-md, 1.25rem);
    box-shadow: var(--shadow-sm, 0 1px 6px rgba(0,0,0,.06));
}

.ps-col-hdr {
    margin-bottom: var(--spacing-sm, 0.75rem);
}

.ps-item {
    margin-bottom: 0;
    transform: none !important;
}

.ps-dots {
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .ps-pair {
        grid-template-columns: 1fr;
    }
    .ps-slider-wrap {
        gap: 0.4rem;
    }
}

/* ════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   Covers all screen sizes: 767px, 480px, 380px, 320px
   ════════════════════════════════════════════════════════ */

/* ── 0. Universal mobile overflow guard ─────────────── */
@media (max-width: 767px) {
    *,
    *::before,
    *::after {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Block level overflow prevention */
    section,
    .container,
    .card,
    [class*="grid"],
    [class*="slider"],
    [class*="track"] {
        overflow-x: hidden;
    }
}

/* ── 1. Global section spacing ──────────────────────── */
@media (max-width: 767px) {
    section {
        padding: 2.75rem 0;
    }

    .info-feature-section,
    .info-features-pair-section,
    .local-prices-demo,
    .problem-solution-section,
    .whatsapp-demo-section,
    .wa-qr-section,
    .demo-slideshow-section {
        padding: 2.5rem 0;
    }

    .modern-cta {
        padding: 2.5rem 0;
    }

    /* Section heading spacing */
    .section-title {
        margin-bottom: 0.625rem;
    }

    .section-subtitle {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    /* Tighten container horizontal padding for narrow phones */
    .container {
        padding: 0 1rem;
    }
}

/* ── 2. Hero section ─────────────────────────────────── */
@media (max-width: 767px) {
    .modern-hero {
        min-height: auto;
        padding-bottom: 2.5rem;
        padding-top: 130px;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: clamp(1.65rem, 6.5vw, 2.4rem);
        margin-bottom: 0.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }

    .hero-clarity-line {
        font-size: 0.925rem;
        margin-bottom: 1.25rem;
    }

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

    .cta-note {
        font-size: 0.8rem;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .modern-hero {
        padding-top: 110px;
        padding-bottom: 2rem;
    }
}

@media (max-width: 380px) {
    .modern-hero {
        padding-top: 100px;
        padding-bottom: 1.75rem;
    }
}

/* ── 3. CTA Buttons ─────────────────────────────────── */
@media (max-width: 767px) {
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .cta-button.large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .cta-button.extra-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 380px;
    }

    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .cta-button.large,
    .cta-button.extra-large {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ── 4. Final CTA section ────────────────────────────── */
@media (max-width: 767px) {
    .cta-title {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-features {
        gap: 0.75rem;
        margin-top: 1.25rem;
        flex-direction: column;
        align-items: center;
    }

    .cta-feature {
        font-size: 0.875rem;
    }
}

/* ── 5. Problem/Solution sections ───────────────────── */
@media (max-width: 767px) {
    .split-list li {
        padding-left: 1.5rem;
        font-size: 0.925rem;
    }

    .split-title {
        font-size: 1.25rem;
    }

    .split-side {
        padding: 1.25rem;
    }

    .problem-solution-header {
        margin-bottom: 1.25rem;
    }

    .empathy-line {
        font-size: 0.9rem;
    }

    .column-header {
        padding: 0.625rem 0.875rem;
        margin-bottom: 0.75rem;
    }

    .column-header h3 {
        font-size: 1rem;
    }

    .problem-item,
    .solution-item {
        padding: 0.875rem;
        margin-bottom: 0.625rem;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .item-body {
        font-size: 0.825rem;
    }

    .ps-card {
        padding: 0.875rem 1rem;
    }
}

/* ── 6. Info feature sections ───────────────────────── */
@media (max-width: 767px) {
    .isc-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

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

    .isc-features li {
        font-size: 0.9rem;
        padding: 0.45rem 0.75rem;
    }

    .isc-pill {
        font-size: 0.75rem;
        padding: 0.35rem 0.875rem;
        word-break: break-word;
    }

    .isc-stat-badge {
        padding: 0.35rem 0.65rem;
    }

    .isc-stat-num {
        font-size: 1.1rem;
    }

    .info-feature-title {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .info-feature-body {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .info-analytics-cards {
        gap: 0.75rem;
    }

    .info-stat-card {
        padding: 0.875rem 1rem;
    }

    .info-stat-content strong {
        font-size: 0.9rem;
    }

    .info-stat-content span {
        font-size: 0.75rem;
    }
}

/* ── 7. Command / Price card rows ───────────────────── */
@media (max-width: 767px) {
    .price-card {
        padding: 1rem;
    }

    .price-card-header {
        margin-bottom: 0.875rem;
        padding-bottom: 0.625rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .price-item-emoji {
        font-size: 1.75rem;
    }

    .price-item-name {
        font-size: 1rem;
    }

    .price-item-unit {
        font-size: 0.8rem;
    }

    .price-row {
        padding: 0.5rem 0.625rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .area-name {
        font-size: 0.875rem;
    }

    /* Prevent monospace command text from overflowing */
    .cmd-phrase {
        font-size: 0.8rem;
        word-break: break-all;
        overflow-wrap: anywhere;
        max-width: 160px;
        white-space: normal;
    }

    .price-details {
        flex-shrink: 1;
        min-width: 0;
    }

    .price-updated.cmd-lang {
        font-size: 0.7rem;
        word-break: break-word;
    }

    .price-area {
        flex: 1;
        min-width: 0;
    }

    .cmd-slider-wrap {
        gap: 0.375rem;
    }

    .cmd-arrow {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .cmd-arrow svg {
        width: 14px;
        height: 14px;
    }

    .price-badge {
        padding: 0.2rem 0.45rem;
        font-size: 0.65rem;
    }

    .prices-info {
        padding: 0.875rem 1rem;
    }

    .prices-info .info-text {
        font-size: 0.95rem;
    }

    .prices-info .info-disclaimer {
        font-size: 0.8rem;
    }
}

/* ── 8. Demo slideshow tabs ─────────────────────────── */
@media (max-width: 767px) {
    .demo-stabs {
        gap: 0.375rem;
        margin-bottom: 1.25rem;
        justify-content: center;
    }

    .demo-stab {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .demo-slide-outer {
        gap: 0.375rem;
    }
}

@media (max-width: 400px) {
    .demo-stab {
        font-size: 0.72rem;
        padding: 0.35rem 0.5rem;
    }
}

/* ── 9. WhatsApp demo section ─────────────────────────*/
@media (max-width: 767px) {
    .whatsapp-demo-section {
        padding: 2rem 0;
    }

    .demo-header {
        margin-bottom: 1.25rem;
    }

    .demo-header .section-title {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .demo-header .section-subtitle {
        font-size: 0.9rem;
    }

    .phone-mockup-container {
        padding: 0.75rem 0;
    }

    .replay-controls {
        margin-top: 1.25rem;
    }

    .replay-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ── 10. Share FAB ──────────────────────────────────── */
@media (max-width: 480px) {
    .share-fab {
        bottom: 18px;
        right: 16px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .share-fab span {
        display: none;
    }

    .share-fab {
        padding: 12px;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
}

/* ── 11. Audience & Privacy grids ───────────────────── */
@media (max-width: 767px) {
    .audience-card {
        padding: 1.25rem;
    }

    .audience-icon {
        font-size: 2.75rem;
        margin-bottom: 0.625rem;
    }

    .audience-card h3 {
        font-size: 1.15rem;
    }

    .audience-card p {
        font-size: 0.9rem;
    }

    .privacy-point {
        padding: 1.25rem;
    }

    .privacy-icon {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }

    .privacy-point h3 {
        font-size: 1rem;
    }

    .privacy-point p {
        font-size: 0.875rem;
    }
}

/* ── 12. Feature cards ──────────────────────────────── */
@media (max-width: 767px) {
    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-body {
        font-size: 0.9rem;
        max-width: 100%;
    }
}

/* ── 13. Language switcher at very small screens ────── */
@media (max-width: 360px) {
    .language-switcher {
        top: 1rem;
        right: 0.5rem;
        padding: 0.2rem 0.35rem;
        gap: 0.1rem;
    }

    .lang-link {
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
        min-width: 1.75rem;
        height: 1.6rem;
    }

    .header-qr-btn {
        width: 1.6rem;
        height: 1.6rem;
    }

    .header-qr-btn svg {
        width: 13px;
        height: 13px;
    }

    .header-qr-sep {
        height: 1rem;
    }
}

/* ── 14. Business example callout ───────────────────── */
@media (max-width: 767px) {
    .business-example {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1.25rem;
    }
}

/* ── 15. WA QR card section ─────────────────────────── */
@media (max-width: 767px) {
    .wa-qr-card {
        padding: 1.5rem 1.25rem;
    }

    .wa-qr-title {
        font-size: 1.35rem;
    }

    .wa-qr-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .wa-qr-image {
        width: 180px;
        height: 180px;
    }
}

/* ── 16. Privacy badge ──────────────────────────────── */
@media (max-width: 767px) {
    .privacy-badge {
        font-size: 0.8rem;
        padding: 0.375rem 1rem;
    }
}

/* ── 17. "Why" split container ──────────────────────── */
@media (max-width: 767px) {
    .split-container {
        gap: 1.25rem;
    }
}

/* ── 18. Tiny screen (320px) global safety net ──────── */
@media (max-width: 360px) {
    .container {
        padding: 0 0.875rem;
    }

    h1, .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    h2, .section-title {
        font-size: clamp(1.25rem, 7vw, 1.75rem);
    }

    .cta-button.large,
    .cta-button.extra-large,
    .cta-button {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    .isc-title {
        font-size: 1.25rem;
    }

    .price-item-name {
        font-size: 0.9rem;
    }

    .cmd-phrase {
        max-width: 120px;
        font-size: 0.75rem;
    }
}
