/**
 * Traq Money - Main Stylesheet
 * Modern, clean landing page design
 */

/* =============================================================================
   Navigation
   ============================================================================= */
/* Main navigation bar - exclude .toc (Table of Contents on legal pages) */
nav:not(.toc) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 15, 28, 0.08);
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adaptive behavior DISABLED on mobile - fixed sizes prevent jumping */
/* All scrolled state changes now ONLY apply on desktop (min-width: 769px) */
@media (min-width: 769px) {
    /* Adaptive navigation on scroll - DESKTOP ONLY */
    nav:not(.toc).nav-scrolled {
        padding: 0.75rem 0;
    }

    nav:not(.toc).nav-scrolled .logo-img {
        height: 36px;  /* Scales down proportionally with button (desktop only) */
    }

    nav:not(.toc).nav-scrolled .nav-container {
        padding: 0.75rem 1.5rem;  /* Reduced padding on scroll (desktop only) */
    }

    nav:not(.toc).nav-scrolled .btn-primary {
        padding: 0.5rem 1.125rem;  /* Slightly reduced padding (desktop only) */
        font-size: 0.875rem;  /* 14px - maintains readability (desktop only) */
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Smooth transition for desktop scroll */
    transition: padding var(--nav-transition-duration) var(--nav-transition-easing);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--transition-base);
}

.logo:hover {
    opacity: 0.8;
}

/* Make logo obviously clickable on legal pages (desktop & mobile) */
.legal-page .logo {
    cursor: pointer;
}

.legal-page .logo:hover {
    opacity: 0.7;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    /* Ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Smooth transition for desktop scroll */
    transition: height var(--nav-transition-duration) var(--nav-transition-easing);
}

/* Larger on desktop */
@media (min-width: 1024px) {
    .logo-img {
        height: 52px;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 28, 0.6);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Button Styles */
.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition-base),
                border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base),
                padding var(--nav-transition-duration) var(--nav-transition-easing),
                font-size var(--nav-transition-duration) var(--nav-transition-easing);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--dark);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* =============================================================================
   Hero Section
   ============================================================================= */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden; /* Already correct - contains background gradient */
    max-width: 100vw; /* Prevent section from exceeding viewport width */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 40, 82, 0.03) 0%, transparent 100%);
    z-index: -1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-style: italic;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 600px;
}

/* Email Capture Form */
.email-capture {
    margin-bottom: 2.5rem;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 550px;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(10, 15, 28, 0.15);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-base);
    background: var(--white);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 40, 82, 0.1);
}

.email-input::placeholder {
    color: var(--gray-400);
}

.btn-submit {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--accent);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    font-family: var(--font-body);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-submit:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.email-subtext {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.success-message {
    display: none;
    padding: 1rem 1.5rem;
    background: rgba(26, 40, 82, 0.1);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

.success-message.show {
    display: block;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(10, 15, 28, 0.08);
    opacity: 0.7;
}

.stat {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

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

.dashboard-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-border), var(--shadow-md);
    position: relative;
    /* Prevent preview from exceeding container on mobile */
    max-width: 100%;
    box-sizing: border-box;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(10, 15, 28, 0.08);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-400);
}

.preview-dot:first-child {
    background: #EF4444;
}

.preview-dot:nth-child(2) {
    background: #F59E0B;
}

.preview-dot:nth-child(3) {
    background: #10B981;
}

.preview-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-left: 0.5rem;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* NEW: Realistic Preview Elements */
.preview-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.preview-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-stat .stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.preview-stat .stat-value.spent {
    color: #EF4444;
}

.preview-stat .stat-value.positive {
    color: #10B981;
}

.preview-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 999px;
    transition: width 1s ease-out;
}

.preview-recent-expenses {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.expense-item.pending {
    background: rgba(59, 130, 246, 0.1);
}

.expense-name {
    color: var(--dark);
    font-weight: 500;
}

.expense-amount {
    color: var(--gray-600);
    font-weight: 600;
}

.pending-badge {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
}

/* =============================================================================
   Trust Signals Section
   ============================================================================= */
.trust-signals {
    padding: 3rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

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

.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

.trust-badge:hover {
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 2rem;
    line-height: 1;
    opacity: 0.8;
}

.badge-content {
    flex: 1;
}

.badge-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.badge-subtitle {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.3;
}

/* =============================================================================
   Problem Section
   ============================================================================= */
.problem {
    padding: 8rem 2rem;
    background: var(--gray-100);
    position: relative;
}

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

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.problem h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.problem-text {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.problem-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.problem-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 40, 82, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.problem-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.problem-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* =============================================================================
   Solution Section
   ============================================================================= */
.solution {
    padding: 8rem 2rem;
    background: var(--gray-100);
}

.solution-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.solution-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.solution-text {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.solution-points {
    list-style: none;
    padding: 0;
}

.solution-points li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--gray-600);
}

.solution-points li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* =============================================================================
   Angel Investors Section
   ============================================================================= */
.investors-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, rgba(26, 40, 82, 0.03) 0%, rgba(59, 130, 246, 0.05) 100%);
}

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

.investors-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.investors-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

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

.investor-benefit {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(10, 15, 28, 0.08);
    transition: all var(--transition-base);
}

.investor-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(10, 15, 28, 0.12);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.investor-benefit h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.investor-benefit p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
}

.investor-cta-box {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.investor-cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.investor-cta-box p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-button-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.cta-button-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 40, 82, 0.2);
}

/* Responsive adjustments for investors section */
@media (max-width: 768px) {
    .investors-section h2 {
        font-size: 2rem;
    }

    .investors-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .investors-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .investor-benefit {
        padding: 2rem;
    }

    .investor-cta-box {
        padding: 2rem;
    }

    .investor-cta-box h3 {
        font-size: 1.5rem;
    }

    .investor-cta-box p {
        font-size: 1rem;
    }
}

/* =============================================================================
   Comparison Section
   ============================================================================= */
.comparison {
    padding: 8rem 2rem;
    background: var(--white);
    /* Prevent section from causing horizontal scroll */
    overflow-x: hidden;
}

.comparison-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.comparison h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.comparison-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 4rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    /* Prevent wrapper from expanding parent on mobile */
    max-width: 100%;
    /* Enable smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-border), var(--shadow-sm);
    /* Prevent table from shrinking below minimum readable size */
    min-width: 600px;
}

.comparison-table thead {
    background: var(--gray-100);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    text-align: center;
}

.comparison-table th.feature-column {
    text-align: left;
    color: var(--dark);
    font-size: 1rem;
}

.comparison-table th.highlight {
    background: var(--primary);
    color: var(--white);
    position: relative;
}

.comparison-table th.highlight::before {
    content: '⭐ BEST VALUE';
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: var(--accent);
}

.comparison-table tbody tr {
    border-bottom: 1px solid rgba(10, 15, 28, 0.06);
    transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.02);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    color: var(--gray-600);
    vertical-align: middle;
}

.comparison-table td.feature-name {
    font-weight: 600;
    color: var(--dark);
    text-align: left;
}

.comparison-table td.highlight {
    background: rgba(26, 40, 82, 0.03);
    font-weight: 600;
    color: var(--dark);
}

.comparison-table td small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.comparison-table .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.1rem;
}

.comparison-table .badge.positive {
    color: #10B981;
}

.comparison-table .badge.negative {
    color: #EF4444;
}

/* Responsive table */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
    }

    .comparison h2 {
        font-size: 2rem;
    }
}

/* =============================================================================
   Features Section
   ============================================================================= */
.features {
    padding: 8rem 2rem;
    background: var(--dark);
    color: var(--white);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 6rem;
}

.features h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.features-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.feature-card {
    background: var(--gray-900);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-card p {
    color: var(--gray-400);
    line-height: 1.8;
}

/* =============================================================================
   CTA Section
   ============================================================================= */
.cta {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-style: italic;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* CTA Email Capture */
.email-capture-cta {
    max-width: 600px;
    margin: 0 auto;
}

.email-capture-cta .success-message {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.email-form-cta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.email-input-cta {
    flex: 1;
    padding: 1.25rem 1.75rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-family: var(--font-body);
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: var(--white);
}

.email-input-cta::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.email-input-cta:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn-submit-cta {
    background: var(--white);
    color: var(--primary);
    padding: 1.25rem 3rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    font-family: var(--font-body);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-submit-cta:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.email-subtext-cta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-base);
    border: 2px solid var(--white);
    font-size: 1.05rem;
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* =============================================================================
   Footer
   ============================================================================= */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-style: italic;
}

.footer-tagline {
    color: var(--gray-400);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--gray-400);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* =============================================================================
   Responsive Design
   ============================================================================= */
@media (max-width: 1024px) {
    .hero-container,
    .solution-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .problem-list {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px !important;  /* Fixed size - no scaling on scroll */
        transition: none !important;  /* Remove transition to prevent any jumping */
    }

    /* Hide mobile menu toggle - no burger menu needed */
    .mobile-menu-toggle {
        display: none;
    }

    /* Simplified mobile navigation - no burger menu */
    .nav-container {
        padding: 1rem 1.25rem !important;  /* Fixed padding - no changes on scroll */
        gap: 1rem;  /* 16px gap between logo and button for breathing room */
    }

    .nav-links {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
        padding: 0;
        gap: 0;
        transition: none;
        z-index: auto;
    }

    /* Hide Features and About links on mobile */
    .nav-links a:not(.btn-primary) {
        display: none;
    }

    /* CTA button FIXED size on mobile - prevents jumping */
    .nav-links .btn-primary {
        /* Fixed padding - no changes on scroll */
        padding: 0.5rem 1rem !important;  /* 8px top/bottom, 16px left/right */

        /* Fixed font size - no scaling */
        font-size: 0.8125rem !important;  /* 13px */
        font-weight: 500;  /* Medium instead of 600 for less visual weight */
        line-height: 1.2;
        letter-spacing: -0.01em;  /* Slightly tighter tracking */

        /* Fixed tap target */
        min-height: 36px !important;

        /* NO transitions on mobile - instant state changes only */
        transition: none !important;

        /* Reset margin */
        margin: 0;

        /* Subtle shadow for depth */
        box-shadow: 0 1px 3px rgba(26, 40, 82, 0.1),
                    0 1px 2px rgba(26, 40, 82, 0.06);
    }

    /* Active state for tactile feedback */
    .nav-links .btn-primary:active {
        transform: translateY(1px);
        box-shadow: 0 1px 2px rgba(26, 40, 82, 0.06);
    }

    /* Hide close button and overlay - not needed */
    .mobile-menu-close,
    .mobile-menu-overlay {
        display: none !important;
    }

    /* =======================
       LEGAL PAGES NAVIGATION
       Full navigation with burger menu on mobile
       ======================= */

    /* Restore burger menu on legal pages for mobile */
    .legal-page .mobile-menu-toggle {
        display: flex !important; /* Override the display: none */
    }

    /* Restore slide-in menu behavior on legal pages */
    .legal-page .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        max-width: 85vw; /* Prevent menu from being wider than 85% of viewport */
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 80px 32px 32px;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
    }

    /* Show menu when active */
    .legal-page .nav-links.active {
        right: 0;
    }

    /* Show ALL navigation links on legal pages (not just CTA) */
    .legal-page .nav-links a:not(.btn-primary) {
        display: block !important; /* Override display: none */
        width: 100%;
    }

    /* Make logo obviously clickable on legal pages */
    .legal-page .logo {
        cursor: pointer;
    }

    .legal-page .logo:hover {
        opacity: 0.7;
    }

    /* Ensure mobile menu close button is visible */
    .legal-page .nav-links .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        font-size: 32px;
        color: var(--text-muted);
        cursor: pointer;
        padding: 0;
        line-height: 1;
        width: auto;
    }

    /* Ensure overlay works on legal pages */
    .legal-page .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .legal-page .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero h1 {
        font-size: 2.75rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .email-form,
    .email-form-cta {
        flex-direction: column;
    }

    .btn-submit,
    .btn-submit-cta {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .problem h2,
    .features h2,
    .cta h2 {
        font-size: 2.5rem;
    }

    .solution-content h2 {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    /* Trust Signals - Mobile */
    .trust-signals {
        padding: 2rem 1rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trust-badge {
        padding: 0.75rem;
    }

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

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

    .badge-subtitle {
        font-size: 0.75rem;
    }

    /* Dashboard preview on mobile */
    .dashboard-preview {
        padding: 1.25rem;
    }

    .preview-stats-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax prevents column overflow */
        gap: 0.5rem;
    }

    .preview-stat .stat-value {
        font-size: 1rem; /* Smaller on mobile */
    }

    .expense-item {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* =============================================================================
   iPhone SE and Narrow Screens (375px and below)
   ============================================================================= */
@media (max-width: 375px) {
    /* Extra protection for narrow screens */
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Reduce horizontal padding on very narrow screens */
    .hero,
    .problem,
    .solution,
    .comparison,
    .features,
    .cta {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Ensure comparison table wrapper doesn't overflow */
    .comparison-table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Reduce nav container padding for more space */
    .nav-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Smaller typography to prevent text overflow */
    .hero h1 {
        font-size: 2.25rem;
    }
}

/* =============================================================================
   Accessibility: Reduced Motion Support
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    .logo-img,
    .nav-container,
    .btn-primary {
        transition-duration: 0.01ms !important;
    }
}
