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

html {
    scroll-behavior: smooth;
}

/* Skip Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #388E3C;
    outline: none;
}

a:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Focus styles for all interactive elements */
button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Remove default outline for mouse users */
*:focus:not(.focus-visible) {
    outline: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.btn-primary:hover {
    background-color: #388E3C;
    border-color: #388E3C;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #4CAF50;
    border-color: #4CAF50;
}

.btn-secondary:hover {
    background-color: #4CAF50;
    color: white;
}

/* App Store Badge */
.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    /* border-radius: 8px; */
    overflow: hidden;
    margin: 0 8px;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}


.app-store-badge img {
    display: block;
    height: 40px;
    width: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .app-store-badge {
        margin: 0;
    }
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

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

.logo-img {
    /* width: 32px; */
    height: 32px;
    border-radius: 6px;
}

.logo h1 {
    color: #4CAF50;
    margin: 0;
    font-size: 1.5rem;
}

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

.nav-links a {
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: #4CAF50;
}

.nav-links .social-link {
    padding: 8px;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.nav-links .instagram-link {
    margin-left: 2rem;
}

.nav-links .social-link:hover {
    transform: translateY(-1px);
}

.nav-links .instagram-link:hover {
    background-color: #E4405F;
    color: white;
}

.nav-links .x-link:hover {
    background-color: #000000;
    color: white;
}

.nav-links .social-link svg {
    width: 20px;
    height: 20px;
}

/* Mobile Actions Container */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-actions .mobile-menu-toggle {
    display: flex;
}

.mobile-instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #374151;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
}

.mobile-instagram-link:hover {
    color: #E4405F;
    background-color: rgba(228, 64, 95, 0.1);
    transform: translateY(-2px);
}

.mobile-instagram-link:focus {
    outline: 2px solid #E4405F;
    outline-offset: 2px;
}

.mobile-x-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #374151;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
}

.mobile-x-link:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-x-link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.mobile-x-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #374151;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
}

.mobile-x-link:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-x-link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(74, 175, 80, 0.1);
}

.mobile-menu-toggle:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
    background-color: rgba(74, 175, 80, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e7eb;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background-color: #f9fafb;
    color: #4CAF50;
}

.mobile-nav .social-link {
    background-color: #f8f9fa;
    margin: 0.5rem 1rem;
    border-radius: 8px;
    border-bottom: none;
}

.mobile-nav .social-link:hover {
    background-color: #4CAF50;
    color: white;
}

.mobile-nav .social-link svg {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero {
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/background.webp') center/cover no-repeat;
    opacity: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Video Showcase Section */
.video-showcase {
    padding: 80px 0;
    background-color: #ffffff;
}

.video-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.demo-video {
    width: auto;
    max-width: 95%;
    height: 90vh;
    max-height: none;
    min-height: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.demo-video:hover {
    transform: translateY(-5px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f9fafb;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
    gap: 3rem;
    align-items: start;
}

.about-content h3 {
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content h3:first-child {
    margin-top: 0;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.info-card h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8fafc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background-color: #f9fafb;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.screenshot-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 90vh;
    min-height: 500px;
}

.screenshot-info {
    padding: 1.5rem;
    text-align: center;
}

.screenshot-info h4 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.screenshot-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.screenshot-note {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.screenshot-note p {
    margin: 0;
    color: #6b7280;
    font-style: italic;
}

/* Technical Section */
.technical {
    padding: 80px 0;
    background-color: white;
}

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

.tech-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.tech-card h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.tech-card ul {
    list-style: none;
}

.tech-card li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.tech-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-card h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.contact-card a {
    font-weight: 600;
}

.legal-notice {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #fbbf24;
    background-color: #fffbeb;
}

.legal-notice p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4CAF50;
}

.brand-section {
    padding-right: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.footer-logo h3 {
    color: #4CAF50;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.footer-social {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
}

.footer-social p {
    margin-bottom: 0.5rem;
}

.footer-social p:first-child {
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #374151;
    color: #9ca3af;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-2px);
}

.social-icons a[href*="instagram"]:hover {
    background-color: #E4405F;
    color: white;
}

.social-icons a[href*="x.com"]:hover {
    background-color: #000000;
    color: white;
}

.social-icons a[href*="facebook"]:hover {
    background-color: #1877F2;
    color: white;
}

.social-icons a[href*="mailto"]:hover {
    background-color: #34495E;
    color: white;
}

.social-icons a[href*="instagram"]:hover {
    background-color: #E4405F;
    color: white;
}

.social-icons a[href*="x.com"]:hover {
    background-color: #000000;
    color: white;
}

.social-icons a[href*="facebook"]:hover {
    background-color: #1877F2;
    color: white;
}

.social-icons a[href*="mailto"]:hover {
    background-color: #34495E;
    color: white;
}

.social-icons a:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
    background-color: #4CAF50;
    color: white;
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* Footer Download Section */
.footer-download {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
}

.footer-download p {
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row !important;
    justify-content: center;
}

.download-buttons .app-store-badge {
    transition: transform 0.3s ease;
    display: inline-block;
}

.download-buttons .app-store-badge:hover {
    transform: scale(1.05);
}

.download-buttons .app-store-badge img {
    display: block;
    border-radius: 0px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive Design */
/* Tablet: 2 columns for footer */
@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 805px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .video-container {
        padding: 0 1rem;
    }
    
    .demo-video {
        border-radius: 8px;
        height: 85vh;
        max-height: none;
        min-height: 400px;
        max-width: 98%;
    }
    
    .screenshot-img {
        max-height: 85vh;
        min-height: 400px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .features-grid,
    .tech-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .brand-section {
        padding-right: 0;
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .download-buttons .app-store-badge img {
        max-width: 140px !important;
        height: 36px !important;
        width: auto;
    }

    .footer-logo {
        justify-content: center;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Animation for smooth loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.tech-card,
.contact-card,
.info-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Legal Pages Styles (Privacy, Terms, Refunds)
   ============================================ */

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    line-height: 1.7;
}

.policy-content h1 {
    color: #4CAF50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
}

.policy-content h2 {
    color: #2E7D32;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #E8F5E8;
    padding-bottom: 0.5rem;
    font-size: 1.75rem;
}

.policy-content h3 {
    color: #388E3C;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.policy-content p {
    margin: 1rem 0;
    color: #333;
}

.policy-content ul,
.policy-content ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

.policy-content li {
    margin: 0.5rem 0;
    color: #333;
}

.policy-content strong {
    color: #2E7D32;
    font-weight: 600;
}

.highlight-box {
    background: #E8F5E8;
    padding: 1.5rem;
    border-left: 4px solid #4CAF50;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0.5rem 0;
}

.highlight-box ul {
    margin-top: 1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #388E3C;
}

/* Mobile responsiveness for legal pages */
@media (max-width: 768px) {
    .policy-content {
        padding: 100px 15px 60px;
    }
    
    .policy-content h1 {
        font-size: 2rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
    }
    
    .policy-content h3 {
        font-size: 1.125rem;
    }
    
    .highlight-box {
        padding: 1rem;
    }
}


/* ============================================================
   Front page redesign: showcase hero + pinned scroll tour
   (GSAP ScrollTrigger; body.no-anim is the reduced-motion /
   no-JS fallback set by js/frontpage-tour.js)
   ============================================================ */

/* --- hero: phones fanned under the copy --- */
.hero--showcase {
    padding: 120px 0 0;
    min-height: auto;
    display: block;
    overflow: hidden;
}

.hero--showcase::before {
    background: url('assets/background.webp') center/cover no-repeat;
}

.hero--showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.35));
}

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

.hero--showcase .hero-buttons {
    margin-bottom: 2.4rem;
}

.hero-fan {
    position: relative;
    height: 400px;
    /* .hero-content is a flex column, and a box with only absolutely
       positioned children shrink-fits to width 0 there - be explicit */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    will-change: transform;
}

/* Side phones are anchored a fixed distance from the center phone so all
   three stay fully visible at any viewport width (percentage offsets made
   the sides slide behind the center on narrower screens). Offsets keep the
   tallest (center) phone below the store badges. */
.hero-fan img {
    position: absolute;
    bottom: -210px;
    width: 235px;
    height: auto;
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.4));
}

.hero-fan .ph-l {
    left: calc(50% - 400px);
    transform: rotate(-8deg);
}

.hero-fan .ph-c {
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    bottom: -170px;
    z-index: 2;
}

.hero-fan .ph-r {
    right: calc(50% - 400px);
    transform: rotate(8deg);
}

/* --- pinned scroll tour --- */
.tour {
    position: relative;
    background: #ffffff;
}

.tour-inner {
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* the site header is fixed (~76px) and overlays the pinned section */
    padding-top: 80px;
}

.tour-head {
    text-align: center;
    padding: 20px 24px 0;
    flex: 0 0 auto;
}

.tour-head h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #1f2937;
    margin-bottom: 0;
    text-wrap: balance;
}

.tour-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 32px 16px;
}

.tour-titles {
    position: relative;
    height: 100%;
    min-height: 0;
}

.tour .cap {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    text-align: right;
    max-width: 30ch;
    margin-left: auto;
}

.tour .cap h3 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.14;
    color: #1f2937;
    margin-bottom: 0;
    text-wrap: balance;
}

.tour .cap p {
    font-size: 0.95rem;
    color: #666;
    margin: 0.7rem 0 0;
    line-height: 1.55;
}

.tour-shots-slot {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-glow {
    position: absolute;
    width: 58vh;
    height: 58vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.16), transparent 65%);
}

/* the screenshots carry their own device frame - show them as-is.
   Height comes from the flexed stage so it can never overflow the
   pinned viewport, whatever the header/heading take up. */
.tour-shots {
    position: relative;
    height: 100%;
    max-height: 720px;
    aspect-ratio: 825 / 1788;
}

.tour-shots img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 44px rgba(31, 41, 55, 0.30));
    will-change: transform, opacity;
}

.tour-dots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-self: start;
}

.tour-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.25s, transform 0.25s;
}

.tour-dots span.on {
    background: #4CAF50;
    transform: scale(1.4);
}

.tour-bar {
    flex: 0 0 auto;
    height: 3px;
    margin: 0 auto 16px;
    width: min(420px, 60%);
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.tour-bar i {
    display: block;
    height: 100%;
    width: 100%;
    background: #4CAF50;
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: left center;
}

/* --- download CTA after the tour --- */
.get-app {
    background: #ffffff;
    padding: 56px 0 60px;
    text-align: center;
}

.get-app h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

/* --- secondary features --- */
.alsoin {
    background: #f4f8f4;
    padding: 64px 0;
}

.alsoin-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.alsoin h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.alsoin-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.pill-card {
    background: #fff;
    border: 1px solid #e3e9e3;
    border-radius: 14px;
    padding: 1rem 1.4rem;
    max-width: 250px;
    text-align: left;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #666;
}

.pill-card .ic {
    font-size: 1.3rem;
    line-height: 1.3;
}

.pill-card b {
    display: block;
    color: #1f2937;
    font-size: 0.92rem;
}

/* --- mobile --- */
@media (max-width: 820px) {
    /* single hero phone on mobile: the latte snack card */
    .hero-fan {
        height: 340px;
    }

    .hero-fan .ph-l,
    .hero-fan .ph-r {
        display: none;
    }

    .hero-fan .ph-c {
        bottom: -180px;
        width: min(62vw, 240px);
    }

    /* tour: title above, screenshot as big as the viewport allows */
    .tour-stage {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 4px 16px 10px;
    }

    .tour-titles {
        flex: 0 0 auto;
        height: auto;
        min-height: 3rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tour .cap {
        position: absolute;
        top: auto;
        right: auto;
        transform: none;
        text-align: center;
        max-width: 24ch;
    }

    .tour .cap h3 {
        font-size: 1.2rem;
    }

    .tour .cap p {
        display: none;
    }

    .tour-shots-slot {
        flex: 1;
        min-height: 0;
        width: 100%;
    }

    .tour-glow {
        width: 300px;
        height: 300px;
    }

    .tour-shots {
        height: 100%;
        max-height: none;
        max-width: 88vw;
    }

    .tour-dots {
        display: none;
    }

    .tour-head {
        padding-top: 12px;
    }

    .tour-head h2 {
        font-size: 1.1rem;
    }

    .tour-bar {
        margin-bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fan {
        transform: none !important;
    }
}

/* fallback when the tour animation is off */
body.no-anim .tour-shots img {
    display: none;
}

body.no-anim .tour-shots img:first-child {
    display: block;
}

body.no-anim .tour-inner {
    height: auto;
}

body.no-anim .tour-titles {
    height: auto;
}

body.no-anim .tour .cap {
    position: static;
    transform: none;
    text-align: center;
    max-width: none;
    margin: 0 auto 1.6rem;
}
