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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Only horizontal padding */
    min-height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
}

header {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 72px;
    box-sizing: border-box;
}

/* Collapsed header styles */
header.collapsed .header-content {
    padding: 1.25rem 2rem;
    height: 72px;
}

header.collapsed .header-logo {
    opacity: 0;
    width: 0;
    margin: 0;
    transform: scale(0);
}


/* Pill container */
.header-pill {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated pill background */
.header-pill::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 900px; /* Start width for smooth shrinking animation */
    height: 48px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: max-width 0.25s ease-out, opacity 0.25s ease-out;
    z-index: -1;
    pointer-events: none;
}

header.collapsed .header-pill::after {
    max-width: 430px;
    opacity: 1;
}

.pill-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 0;
    /* No transition needed - elements are absolutely positioned */
}

.pill-separator {
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: all 0.25s ease-out;
}

header.collapsed .pill-separator {
    opacity: 1;
    width: 1px;
    height: 20px;
    left: calc(50% - 215px + 60px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: absolute;
    left: 2rem; /* Default position for narrow screens */
    transition: left 0.25s ease-out, gap 0.25s ease-out, opacity 0.25s ease-out;
}

/* Ensure consistent spacing when logos are wrapped in anchor */
.nav-brand > a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

/* Spacer to help with layout */
.spacer {
    /* No longer needed with absolute positioning */
    display: none;
}

/* Spacer removed - using absolute positioning instead */

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.25s ease-out;
}

/* In collapsed state, move elements into pill formation */
/* Content container doesn't change - only visual pill shrinks */

header.collapsed .nav-brand {
    /* Center icon between left edge and separator */
    left: calc(50% - 215px + 16.5px);
}

header.collapsed .nav-links {
    /* Position for equal spacing between all elements */
    left: calc(50% - 215px + 165px);
    transform: translateX(-50%);
    gap: 1.75rem;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    opacity: 0.7;
}

.header-app-icon {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    flex-shrink: 0;
}


.header-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
    object-position: center;
    margin: 0;
    transition: all 0.25s ease-out;
}

.get-app-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3125rem 1rem;
    height: 31px;
    box-sizing: border-box;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    position: absolute;
    right: 2rem; /* Default position for narrow screens */
    transition: right 0.25s ease-out, padding 0.25s ease-out, font-size 0.25s ease-out;
}

header.collapsed .get-app-button {
    /* Move to right edge of 430px pill */
    right: calc(50% - 215px + 12px);
}

.qr-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
}

.get-app-button:hover .qr-popover {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.qr-code {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.qr-code img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.qr-popover p {
    font-size: 0.75rem;
    color: #666666;
    text-align: center;
    margin: 0;
    white-space: nowrap;
}

.phone-icon, .apple-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.apple-icon {
    transform: translateY(-1px);
}

main {
    flex: 1; /* Take up remaining space */
    padding-top: 116px; /* Account for fixed header with top margin */
    min-height: calc(100vh - 116px); /* Full viewport height minus header */
    display: flex;
    align-items: center; /* Center hero content vertically */
    justify-content: center;
}

.hero {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    padding-bottom: calc(2rem + 8.33vh); /* Add extra bottom padding to compensate for container overlap */
}

.main-headline {
    font-size: 4.25rem; /* Larger for clear primary focus */
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
    color: #000000;
    line-height: 1.05;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subheadline {
    font-size: 1.0625rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto 1rem;
}

/* Responsive headline sizing */
/* Mobile state - when viewport is 750px or less */
@media (max-width: 750px) {
    .main-headline {
        font-size: 3rem;
    }
    
    /* Hero showcase - full width on mobile */
    .hero-showcase {
        padding: 4rem 0 !important; /* Vertical padding for black space, no horizontal */
        background: #000000; /* Pure black background */
    }
    
    .showcase-container {
        padding: 2.5rem 0 !important;
        border-radius: 0 !important; /* No rounded corners on mobile */
        max-width: 100vw !important; /* Full viewport width */
        margin: 0 !important;
        background: transparent !important; /* Remove dark gray, show black background */
    }
    
    .showcase-eyebrow {
        font-size: 0.875rem !important; /* Smaller on mobile */
        padding: 0 1.5rem; /* Internal padding for text */
        color: #86868b !important; /* Gray text on black background */
    }
    
    .showcase-headline {
        font-size: 2.25rem !important; /* Larger for better readability on mobile */
        line-height: 1.2;
        margin-bottom: 1.5rem;
        padding: 0 1.5rem; /* Internal padding for text */
        color: #ffffff !important; /* White text on black background */
    }
    
    .showcase-description {
        padding: 0 1.5rem; /* Internal padding for text */
    }
    
    .showcase-description p {
        font-size: 1.0625rem;
        color: #a1a1a6 !important; /* Light gray text on black background */
    }
    
    .showcase-description .highlight {
        color: #ffffff !important; /* White highlights on black background */
    }
}

/* Smaller mobile adjustments if needed */
@media (max-width: 480px) {
    .main-headline {
        font-size: 2.5rem;
    }
    
    .showcase-eyebrow {
        font-size: 0.8125rem !important; /* Even smaller on very small screens */
    }
    
    .showcase-headline {
        font-size: 2rem !important; /* Slightly smaller on very small screens */
    }
    
    .subheadline {
        font-size: 1rem;
    }
}

.awards-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.award {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #f8f8f8;
    border-radius: 12px;
}

.award-icon {
    font-size: 1.5rem;
}

.award-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.award-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
}

.award-subtitle {
    font-size: 0.75rem;
    color: #666666;
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.iphone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    min-height: 400px;
}

.app-preview {
    width: 200px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.feature-card:hover,
.feature-card.active {
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: #666666;
    margin: 0;
}

.cta-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.primary-cta:hover {
    transform: translateY(-2px);
}

.secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #ffffff;
    color: #000000;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-cta:hover {
    border-color: #000000;
}

.apple-logo,
.play-icon {
    width: 20px;
    height: 20px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.features-section {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.feature {
    margin-bottom: 3.5rem;
    text-align: left;
}

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

.feature h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1.25rem;
}

.feature ul {
    list-style: none;
    padding: 0;
}

.feature li {
    font-size: 1.0625rem;
    color: #444444;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666666;
}

.perfect-for-section {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 4rem auto;
    max-width: 900px;
}

.perfect-for-section h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #000000;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.audience-item {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    color: #333333;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.how-it-works-section {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
}

.how-it-works-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000000;
}

.how-it-works-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444444;
}

.compatibility-section {
    max-width: 700px;
    margin: 4rem auto;
    text-align: center;
}

.compatibility-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #000000;
}

.brands-list p {
    font-size: 1.125rem;
    color: #333333;
    margin-bottom: 1rem;
}

.cta-final {
    text-align: center;
    padding: 4rem 2rem;
    margin: 4rem auto 2rem;
    max-width: 800px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-radius: 16px;
}

.cta-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #222222;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Hero Showcase Section - Full width black background */
.hero-showcase {
    width: 100%;
    padding: 6rem 2rem; /* More vertical padding for black space */
    background: #000000; /* Black background for full section */
    position: relative;
    margin-top: 0; /* No overlap with section above */
    display: flex;
    justify-content: center;
    overflow-x: hidden; /* Hide horizontal overflow */
}

.showcase-container {
    width: 750px; /* Fixed width */
    flex-shrink: 0; /* Don't shrink in flex container */
    padding: 4rem 0; /* Remove horizontal padding for full-bleed image */
    text-align: center;
    background: #1a1a1a; /* Dark gray background for container */
    border-radius: 48px; /* Very rounded corners */
    overflow: hidden; /* Ensure content respects rounded corners */
}

.showcase-eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    color: #a1a1a6; /* Light gray for dark background */
    margin: 0 0 0.75rem 0;
    padding: 0 3rem; /* Add padding to text elements */
    letter-spacing: -0.01em;
    text-transform: capitalize;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.showcase-eyebrow.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.showcase-headline {
    font-size: 2.75rem; /* Smaller than main headline for hierarchy */
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff; /* White for dark background */
    margin: 0 auto 3rem;
    padding: 0 3rem; /* Add padding to text elements */
    max-width: 100%; /* Full width within padding */
    letter-spacing: -0.015em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.1s; /* Stagger after eyebrow */
}

.showcase-headline.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.showcase-description {
    max-width: 100%;
    margin: 2rem auto 0;
    padding: 0 3rem; /* Add padding to text elements */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s; /* Stagger after headline */
}

.showcase-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.showcase-description p {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #8e8e93; /* Darker gray for more contrast with highlights */
    font-weight: 400;
    letter-spacing: -0.01em;
    text-align: left; /* Left-align the paragraph text */
}

.showcase-description .highlight {
    color: #ffffff; /* Pure white for emphasis */
    font-weight: 500; /* Slightly bolder for subtle emphasis */
}

/* Hero media wrapper to control overflow */
.hero-media-wrapper {
    position: relative;
    width: 100%;
    overflow: visible; /* Allow full-bleed within container */
    margin: 2rem 0; /* Add spacing around the media */
}

/* Hero media section with video background and image overlay */
.hero-media-container {
    position: relative;
    width: 750px; /* Fixed width - stays constant */
    margin: 0 auto;
}

/* When viewport is narrower than 750px, center and allow clipping */
@media (max-width: 750px) {
    .hero-media-container {
        /* Center the 750px container and let sides clip */
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

.hero-video {
    position: absolute;
    /* Video at (511,95) with dimensions 420x912 in 1440x1565 coordinate space */
    /* Width: 420/1440 = 29.17% of container */
    /* Position: 511/1440 = 35.49% from left, 95/1565 = 6.07% from top */
    width: 29.17%;
    height: auto;
    left: 35.49%;
    top: 6.07%;
    z-index: 1;
    object-fit: cover;
    /* Fixed border radius for constant 750px container */
    border-radius: 35px;
    overflow: hidden;
}

.hero-image-overlay {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
}

/* AI Insights Section */
.insights-section {
    width: 100%;
    padding: 6rem 2rem;
    margin-top: 0; /* Remove extra whitespace */
    background: #f5f5f7;
    position: relative;
    z-index: 1;
}

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

.insights-eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    color: #86868b; /* Slightly darker gray for light background */
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
    text-transform: capitalize;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.insights-eyebrow.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.insights-headline {
    font-size: 2.75rem; /* Match showcase headline size */
    font-weight: 600;
    line-height: 1.15;
    color: #000000;
    margin: 0 auto 3rem;
    max-width: 100%;
    letter-spacing: -0.015em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.1s;
}

.insights-headline.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.insights-hero-image {
    margin: 3rem auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.15s;
}

.insights-hero-image.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.insights-media-container {
    position: relative;
    display: inline-block;
    max-width: 256px; /* 320px * 0.8 = 256px (reduced by 20%) */
    width: 100%;
}

.insights-video {
    position: absolute;
    /* Video at (51,43) with dimensions 1322x2871 in 1424x2956 coordinate space */
    /* Width: 1322/1424 = 92.84% of container */
    /* Position: 51/1424 = 3.58% from left, 43/2956 = 1.45% from top */
    width: 92.84%;
    height: auto;
    left: 3.58%;
    top: 1.45%;
    z-index: 1;
    object-fit: cover;
    border-radius: 34px; /* 188px scaled to 256px container (188 * 256/1424) */
}

.insights-phone {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.insights-description {
    max-width: 750px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}

.insights-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.insights-description p {
    font-size: 1.1875rem; /* Match showcase description size */
    line-height: 1.6;
    color: #666666;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-align: left; /* Left-align like showcase */
}

.insights-description .highlight {
    color: #000000; /* Black for emphasis on light background */
    font-weight: 500; /* Slightly bolder for subtle emphasis */
}

/* Responsive adjustments for insights section */
@media (max-width: 750px) {
    .insights-section {
        padding: 4rem 1.5rem;
        margin-top: 0; /* Remove whitespace between sections on mobile */
    }
    
    .insights-eyebrow {
        font-size: 0.875rem !important; /* Match showcase mobile size */
    }
    
    .insights-headline {
        font-size: 2.25rem !important; /* Match showcase mobile size */
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .insights-description p {
        font-size: 1.0625rem;
    }
}

@media (max-width: 480px) {
    .insights-section {
        padding: 3rem 1.25rem;
    }
    
    .insights-eyebrow {
        font-size: 0.8125rem !important; /* Match showcase small mobile */
    }
    
    .insights-headline {
        font-size: 2rem !important; /* Match showcase small mobile */
    }
    
    .insights-description p {
        font-size: 1.0625rem;
    }
}

/* AI Watch Recognition Section - White background */
.recognition-section {
    width: 100%;
    padding: 6rem 2rem 3rem; /* More padding at top, less at bottom */
    margin-top: 0; /* Remove extra whitespace */
    background: #ffffff;
    position: relative;
    z-index: 1;
}

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

.recognition-eyebrow,
.recognition-headline,
.recognition-hero-image,
.recognition-description {
    /* Same animations as insights section */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.recognition-eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    color: #86868b;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
    text-transform: capitalize;
}

.recognition-headline {
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.15;
    color: #000000;
    margin: 0 auto 4rem; /* More space before hero images */
    max-width: 100%;
    letter-spacing: -0.015em;
    transition-delay: 0.1s;
}

.recognition-hero-image {
    margin: 4rem auto 4rem; /* More vertical space around hero images */
    text-align: center;
    transition-delay: 0.15s;
    overflow: visible; /* Allow overflow for accordion effect */
}

.recognition-accordion {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align items to bottom */
    gap: 0;
    position: relative;
    height: 420px;
    max-width: 700px;
    margin: 0 auto;
    perspective: 1000px;
}

.recognition-media-container {
    position: relative;
    max-width: 200px;
    width: 200px;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: bottom center;
}

/* Fan out phones like \|/ with heavy overlap */
.recognition-media-container:nth-child(1) {
    transform: rotate(-18deg) translateX(40px) scale(0.95); /* Increased rotation and scale adjustment */
    z-index: 1 !important;
    transform-origin: bottom center; /* Rotate from bottom */
    filter: brightness(0.7); /* Even darker for maximum depth */
}

.recognition-media-container:nth-child(2) {
    transform: rotate(0deg) translateZ(20px); /* Bring forward in 3D space */
    z-index: 10 !important; /* Higher z-index to be in front */
    margin: 0 -90px; /* Much more negative margin for heavy overlap */
    position: relative; /* Ensure z-index works */
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3)); /* Add depth shadow */
}

.recognition-media-container:nth-child(3) {
    transform: rotate(18deg) translateX(-40px) scale(0.95); /* Increased rotation and scale adjustment */
    z-index: 2 !important;
    transform-origin: bottom center; /* Rotate from bottom */
    filter: brightness(0.7); /* Even darker for maximum depth */
}

.recognition-video {
    position: absolute;
    width: 93.84%; /* Increased by ~1% for better fit */
    height: auto;
    left: 3.08%; /* Adjusted to center the larger video */
    top: 1.45%;
    z-index: 1;
    object-fit: cover;
    border-radius: 26px; /* Scale down for smaller container */
}

.recognition-phone {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.recognition-description {
    max-width: 750px;
    margin: 0 auto;
    transition-delay: 0.2s;
}

.recognition-description p {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #666666;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-align: left;
}

.recognition-description .highlight {
    color: #000000;
    font-weight: 500;
}

/* Collection Management Section - Gray background */
.collection-section {
    width: 100%;
    padding: 6rem 2rem;
    margin-top: calc(2rem + 8.33vh);
    background: #f5f5f7;
    position: relative;
    z-index: 1;
}

.collection-container {
    max-width: 1100px; /* Wider for side-by-side */
    margin: 0 auto;
    text-align: center; /* Default center for all sizes */
    display: flex;
    flex-direction: column;
}

/* Side-by-side layout on larger screens */
@media (min-width: 900px) {
    .collection-container {
        display: flex;
        flex-direction: row !important; /* Force horizontal layout */
        gap: 4rem;
        align-items: center; /* Vertically center all content */
        justify-content: space-between;
        text-align: left; /* Left align text on desktop */
    }
    
    /* Create a wrapper for text content */
    .collection-text-wrapper {
        flex: 1;
        max-width: 600px;
        text-align: left; /* Ensure text wrapper is also left aligned */
    }
    
    .collection-eyebrow {
        margin-bottom: 0.75rem !important; /* Force tighter spacing */
    }
    
    .collection-headline {
        margin-top: 0 !important; /* Remove any top margin */
        margin-bottom: 2rem;
    }
    
    .collection-hero-image {
        flex-shrink: 0;
        width: 300px;
        margin: 0;
    }
}

.collection-eyebrow,
.collection-headline,
.collection-hero-image,
.collection-description {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.collection-eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    color: #86868b;
    margin: 0 0 0.75rem 0; /* Very tight spacing to headline */
    letter-spacing: -0.01em;
    text-transform: capitalize;
}

.collection-headline {
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.15;
    color: #000000;
    margin: 0 0 2rem 0; /* No top margin, bottom margin for content */
    max-width: 100%;
    letter-spacing: -0.015em;
    transition-delay: 0.1s;
}

.collection-hero-image {
    margin: 3rem auto;
    text-align: center;
    transition-delay: 0.15s;
}

.collection-media-container {
    position: relative;
    display: inline-block;
    max-width: 256px;
    width: 100%;
}

.collection-video {
    position: absolute;
    width: 92.84%;
    height: auto;
    left: 3.58%;
    top: 1.45%;
    z-index: 1;
    object-fit: cover;
    border-radius: 34px;
}

.collection-phone {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.collection-description {
    max-width: 750px;
    margin: 0 auto;
    transition-delay: 0.2s;
}

.collection-description p {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #666666;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-align: left;
}

.collection-description .highlight {
    color: #000000;
    font-weight: 500;
}

/* Community Section */
.community-section {
    width: 100%;
    padding: 6rem 2rem;
    margin-top: calc(2rem + 8.33vh);
    background: #ffffff;
    position: relative;
    z-index: 1;
}

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

.community-eyebrow,
.community-headline,
.community-hero-image,
.community-description {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.community-eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    color: #86868b;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
    text-transform: capitalize;
}

.community-headline {
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.15;
    color: #000000;
    margin: 0 auto 3rem;
    max-width: 100%;
    letter-spacing: -0.015em;
    transition-delay: 0.1s;
}

.community-hero-image {
    margin: 3rem auto;
    text-align: center;
    transition-delay: 0.15s;
}

.community-media-container {
    position: relative;
    display: inline-block;
    max-width: 320px; /* Larger for emphasis */
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15)); /* Add subtle shadow */
}

.community-video {
    position: absolute;
    width: 92.84%;
    height: auto;
    left: 3.58%;
    top: 1.45%;
    z-index: 1;
    object-fit: cover;
    border-radius: 42px; /* Scale up for larger container */
}

.community-phone {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.community-description {
    max-width: 750px;
    margin: 0 auto;
    transition-delay: 0.2s;
}

.community-description p {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #666666;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-align: left;
}

.community-description .highlight {
    color: #000000;
    font-weight: 500;
}

/* Add animate-in classes for animations */
.recognition-eyebrow.animate-in,
.recognition-headline.animate-in,
.recognition-hero-image.animate-in,
.recognition-description.animate-in,
.collection-eyebrow.animate-in,
.collection-headline.animate-in,
.collection-hero-image.animate-in,
.collection-description.animate-in,
.community-eyebrow.animate-in,
.community-headline.animate-in,
.community-hero-image.animate-in,
.community-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for new sections */
@media (max-width: 750px) {
    .recognition-section {
        padding: 4rem 1.5rem 2rem; /* Match top padding, less at bottom on mobile */
        margin-top: 0;
    }
    
    .collection-section,
    .community-section {
        padding: 4rem 1.5rem;
        margin-top: 0;
    }
    
    /* Reset collection layout on mobile to match other sections */
    .collection-container {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        max-width: 800px;
    }
    
    .collection-text-wrapper {
        width: 100%;
        max-width: none;
    }
    
    .collection-eyebrow {
        margin-bottom: 0.5rem !important; /* Standard mobile spacing */
    }
    
    .collection-headline {
        margin: 0 auto 3rem !important; /* Center on mobile */
    }
    
    .collection-hero-image {
        width: 100%;
        margin: 3rem auto !important;
    }
    
    .recognition-eyebrow,
    .collection-eyebrow,
    .community-eyebrow {
        font-size: 0.875rem !important;
    }
    
    .recognition-headline {
        font-size: 2.25rem !important;
        line-height: 1.2;
        margin-bottom: 2rem !important; /* Reduced from 4rem */
    }
    
    .collection-headline,
    .community-headline {
        font-size: 2.25rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .recognition-description p,
    .collection-description p,
    .community-description p {
        font-size: 1.0625rem;
    }
    
    /* Adjust fan accordion for mobile */
    .recognition-accordion {
        height: 320px;
        max-width: 100%;
    }
    
    .recognition-hero-image {
        margin: 2rem auto 4rem !important; /* Reduced top margin on mobile */
    }
    
    .recognition-media-container {
        max-width: 140px;
        width: 140px;
    }
    
    /* Overlapping fan on mobile */
    .recognition-media-container:nth-child(1) {
        transform: rotate(-15deg) translateX(25px) scale(0.96);
        z-index: 1 !important;
    }
    
    .recognition-media-container:nth-child(2) {
        transform: rotate(0deg);
        margin: 0 -65px; /* Heavy overlap on mobile too */
        z-index: 10 !important;
    }
    
    .recognition-media-container:nth-child(3) {
        transform: rotate(15deg) translateX(-25px) scale(0.96);
        z-index: 2 !important;
    }
    
    .recognition-video {
        border-radius: 18px; /* Smaller radius for smaller phones */
        width: 94.84%; /* Slightly larger for mobile too */
        left: 2.58%; /* Adjusted centering */
    }
}

@media (max-width: 480px) {
    .recognition-section,
    .collection-section,
    .community-section {
        padding: 3rem 1.25rem;
    }
    
    .recognition-eyebrow,
    .collection-eyebrow,
    .community-eyebrow {
        font-size: 0.8125rem !important;
    }
    
    .recognition-headline,
    .collection-headline,
    .community-headline {
        font-size: 2rem !important;
    }
    
    .recognition-description p,
    .collection-description p,
    .community-description p {
        font-size: 1.0625rem;
    }
}

/* Disable save-to-camera-roll on all phone images */
.hero-image-overlay,
.insights-phone,
.recognition-phone,
.collection-phone,
.community-phone {
    -webkit-touch-callout: none; /* Disable iOS save image callout */
    -webkit-user-select: none; /* Disable selection */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Also disable on container elements to be thorough */
.hero-media-container,
.insights-media-container,
.recognition-media-container,
.collection-media-container,
.community-media-container {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Main content section */
.content-section {
    width: 100%;
    min-height: 100px; /* Much shorter height */
    padding: 2rem 2rem;
    background: #ffffff;
    position: relative;
    z-index: 1; /* Ensure it's above the showcase section */
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Temporary - remove when content is added */
    min-height: 75px;
}

/* Responsive content spacing */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem 1.5rem;
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem 1rem;
        min-height: 80px;
    }
}

footer {
    width: 100%;
    background: #f8f8f8;
    margin-top: auto; /* Push footer to bottom */
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer-sections {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 0.5rem 0;
}

.footer-section a {
    font-size: 0.875rem;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-tagline {
    text-align: center;
}

.footer-tagline p {
    font-size: 0.8125rem;
    color: #999999;
    margin: 0;
}

.legal-links a {
    color: #666666;
    margin: 0 0.5rem;
}

.legal-links a:hover {
    color: #000000;
    border-bottom-color: #666666;
}


/* Apply inset margins only on wider screens */
@media (min-width: 1024px) {
    .nav-brand {
        left: 7rem; /* Inset from edges on wide screens */
    }
    
    .get-app-button {
        right: 7rem; /* Inset from edges on wide screens */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem; /* Only horizontal padding */
    }
    
    /* Keep header elements consistent across viewports */
    
    /* Get-app-button sizing removed to keep collapsed state consistent */
    
    .nav-links {
        gap: 1rem;
    }
    
    /* Keep nav-link font size consistent across all viewports */
    
    /* Removed collapsed state responsive styles to keep it constant */
    
    main {
        padding-top: 86px; /* Account for fixed header with top margin on mobile */
        min-height: calc(100vh - 86px); /* Adjust for mobile header height */
    }
    
    /* Keep font sizes consistent across viewports */
    
    .awards-section {
        gap: 1rem;
    }
    
    .award {
        padding: 0.5rem 1rem;
    }
    
    .app-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .iphone-mockup {
        padding: 2rem;
        min-height: 300px;
    }
    
    .app-preview {
        width: 150px;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-cta,
    .secondary-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-sections {
        gap: 3rem;
    }
    
    /* Keep feature font sizes consistent */
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .perfect-for-section {
        padding: 2rem 1.5rem;
    }
    
    /* Keep CTA font size consistent */
    
    .app-store-button img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    /* Keep headline font sizes consistent */
    
    .footer-main {
        gap: 2rem;
    }
    
    /* Keep footer font sizes consistent */
}

/* Contact Page Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: #666666;
}

.contact-content-simple {
    margin: 0 auto;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-option-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.contact-option-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.contact-option-card p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.75rem;
    position: absolute;
    right: 1rem;
    transition: opacity 0.3s ease;
}

.hamburger-menu:hover {
    opacity: 0.7;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 16px;
    height: auto;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #000000;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    z-index: 1000;
}

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

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Mobile State - Switch earlier to prevent overlap */
@media (max-width: 580px) {
    /* Remove top margin on mobile */
    header {
        top: 0 !important;
    }
    
    .header-content {
        padding: 1.25rem 1.25rem !important;
    }
    
    /* Adjust main padding for no header margin */
    main {
        padding-top: 72px !important;
    }
    
    /* Hide nav links, spacer, and QR popover */
    .nav-links,
    .spacer,
    .qr-popover {
        display: none !important;
    }
    
    /* Always show hamburger menu */
    .hamburger-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        width: auto !important;
        padding: 4px !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
    }
    
    /* Mobile expanded state (default) */
    /* Pill starts at full width but transparent */
    .header-pill::after {
        width: 100vw !important;
        max-width: 100vw !important;
        opacity: 0 !important;
        transition: width 0.25s ease-out, max-width 0.25s ease-out, opacity 0.25s ease-out !important;
    }
    
    .pill-content {
        max-width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        transition: max-width 0.25s ease-out !important;
    }
    
    /* Show logo in expanded state */
    .header-logo {
        display: block !important;
        opacity: 1 !important;
        width: 78px !important;
        transition: all 0.25s ease-out !important;
    }
    
    /* Hide separator in expanded state */
    .pill-separator {
        opacity: 0 !important;
        width: 0 !important;
        transition: all 0.25s ease-out !important;
    }
    
    /* Position elements in expanded state */
    .nav-brand {
        position: absolute !important;
        left: 0 !important;
        gap: 0.375rem !important;
        transition: left 0.25s ease-out !important;
    }
    
    /* Ensure anchor inside nav-brand inherits the gap */
    .nav-brand > a {
        gap: 0.375rem !important;
    }
    
    .get-app-button {
        position: absolute !important;
        right: 2.5rem !important;  /* 40px spacing for hamburger */
        padding: 0.25rem 0.625rem !important;
        transition: right 0.25s ease-out !important;
    }
    
    .hamburger-menu {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        transition: right 0.25s ease-out !important;
    }
    
    /* Mobile collapsed state */
    header.collapsed .header-pill::after {
        width: calc(100vw - 2rem) !important;
        max-width: 430px !important;
        opacity: 1 !important;
    }
    
    header.collapsed .pill-content {
        width: calc(100vw - 2rem) !important;
        max-width: 430px !important;
        margin: 0 auto !important;
    }
    
    /* Hide logo in collapsed state */
    header.collapsed .header-logo {
        opacity: 0 !important;
        width: 0 !important;
        margin: 0 !important;
    }
    
    /* Show separator in collapsed state */
    header.collapsed .pill-separator {
        position: absolute !important;
        opacity: 1 !important;
        width: 1px !important;
        height: 20px !important;
        left: 60px !important;
    }
    
    /* Position elements in collapsed state */
    header.collapsed .nav-brand {
        left: 16.5px !important;
    }
    
    header.collapsed .get-app-button {
        right: 52px !important;  /* 40px spacing for hamburger + 12px margin */
    }
    
    header.collapsed .hamburger-menu {
        right: 12px !important;
    }
}

@media (max-width: 768px) {
    /* Keep contact header font size consistent */
    
    .contact-option-card {
        padding: 1.5rem;
    }
    
    .contact-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Feature Pills Section - REMOVED FOR NOW
.feature-pills-container {
    position: absolute;
    bottom: 90px; /* Positioned 70px higher than original */
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none; /* Allow clicks through container */
}

.feature-pills {
    display: flex;
    gap: 0.75rem;
    padding: 0.375rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                0 1px 3px rgba(0, 0, 0, 0.06),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: auto; /* Re-enable clicks on pills */
    position: relative;
}

/* Sliding indicator for active pill */
.pill-indicator {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 
                0 1px 4px rgba(0, 0, 0, 0.1),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.feature-pill {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 100px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.feature-pill:focus {
    outline: none;
}

/* Hide numbers on desktop, show text */
.pill-number {
    display: none;
}

.pill-text {
    display: inline;
}

.feature-pill:hover {
    color: #333333;
}

.feature-pill.active {
    color: #ffffff;
    transition-delay: 0.1s; /* Slight delay for text color to sync with indicator */
}

/* Mobile design with accordion-style pills */
@media (max-width: 640px) {
    .feature-pills-container {
        bottom: 20px; /* Adjusted for mobile */
        padding: 0 1rem;
    }
    
    .feature-pills {
        display: flex;
        gap: 0.5rem;
        padding: 0.375rem;
        width: auto;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }
    
    /* Mobile uses sliding indicator */
    .pill-indicator {
        display: block;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .feature-pill {
        padding: 0;
        height: 2.5rem;
        font-size: 0.75rem;
        text-align: center;
        border-radius: 100px;
        background: transparent;
        border: none;
        transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        width: 2.5rem; /* Fixed width for inactive pills */
        -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
        -webkit-touch-callout: none; /* Disable callout */
        -webkit-user-select: none; /* Disable selection */
        user-select: none;
        outline: none; /* Remove focus outline */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Active pill gets auto width */
    .feature-pill.active {
        width: auto;
        min-width: 180px; /* Much wider for comfortable text display */
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    color 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; /* Delay color change */
    }
    
    /* Remove all focus and active states that cause flash */
    .feature-pill:focus {
        outline: none;
    }
    
    .feature-pill:active {
        background: transparent;
    }
    
    /* Accordion animation for text/number */
    .pill-text {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%) translateX(20px); /* Start offset to the right */
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
        padding: 0 1.5rem; /* More generous padding */
    }
    
    .pill-number {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 600;
        font-size: 0.8rem;
    }
    
    /* Active state shows text, hides number */
    .feature-pill.active .pill-text {
        opacity: 1;
        transform: translateY(-50%) translateX(0); /* Slide in from right */
        transition-delay: 0s; /* Start immediately */
    }
    
    .feature-pill.active .pill-number {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-20px) scale(0.8); /* Slide left and shrink */
        transition-delay: 0s; /* Start immediately */
    }
    
    /* Inactive pills */
    .feature-pill:not(.active) .pill-number {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    
    .feature-pill:not(.active) .pill-text {
        opacity: 0;
        transform: translateY(-50%) translateX(20px); /* Reset to right */
    }
    
    .feature-pill.active {
        color: #ffffff;
    }
    
    /* Hover state for number pills */
    .feature-pill:not(.active):hover .pill-number {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .feature-pills-container {
        bottom: 10px; /* Adjusted for small mobile */
        padding: 0 0.75rem;
    }
    
    .feature-pills {
        gap: 0.375rem;
        padding: 0.3rem;
    }
    
    .feature-pill {
        font-size: 0.7rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .feature-pill.active {
        width: auto;
        min-width: 160px; /* Wider for 480px screens */
    }
    
    .pill-number {
        font-size: 0.75rem;
    }
    
    .feature-pill.active .pill-text {
        padding: 0 1.25rem; /* Good padding at this size */
        font-size: 0.7rem;
    }
}

/* Ultra narrow screens */
@media (max-width: 350px) {
    .feature-pills {
        gap: 0.25rem;
        padding: 0.25rem;
    }
    
    .feature-pill {
        font-size: 0.65rem;
        width: 2rem;
    }
    
    .feature-pill.active {
        width: auto;
    }
    
    .pill-number {
        font-size: 0.7rem;
    }
    
    .feature-pill.active .pill-text {
        padding: 0 0.875rem; /* Slightly less on tiny screens */
        font-size: 0.65rem;
    }
}
END OF FEATURE PILLS CSS */

/* Ultra narrow screens */
@media (max-width: 350px) {
    /* Fix headline overflow on ultra-narrow screens */
    .main-headline {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .subheadline {
        font-size: 0.875rem;
    }
}