/* Center images in feature cards */
.feature-card img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Theme variables (light mode) - copied from user palette */
    --font-size: 16px;
    /* soft light-green background */
    --background: #f0fdf4; /* Tailwind emerald-50 */
    /* Brighter readable foreground */
    --foreground: #0f172a; /* deep navy instead of near-black */
    --card: #ffffff;
    --card-foreground: oklch(0.145 0 0);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.145 0 0);
    /* Light green theme */
    --primary: #10b981; /* emerald */
    --primary-foreground: #ffffff;
    --primary-dark: #059669;
    --secondary: #34d399; /* mint */
    --secondary-foreground: #083344;
    --muted: #f1f2f6;
    --muted-foreground: #6b7280;
    --accent: #e9ebef;
    --accent-foreground: #030213;
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --input: transparent;
    --input-background: #f3f3f5;
    --switch-background: #cbced4;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --ring: oklch(0.708 0 0);
    --chart-1: oklch(0.646 0.222 41.116);
    --chart-2: oklch(0.6 0.118 184.704);
    --chart-3: oklch(0.398 0.07 227.392);
    --chart-4: oklch(0.828 0.189 84.429);
    --chart-5: oklch(0.769 0.188 70.08);
    --radius: 0.625rem;
    --sidebar: oklch(0.985 0 0);
    --sidebar-foreground: oklch(0.145 0 0);
    --sidebar-primary: #030213;
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-accent: oklch(0.97 0 0);
    --sidebar-accent-foreground: oklch(0.205 0 0);
    --sidebar-border: oklch(0.922 0 0);
    --sidebar-ring: oklch(0.708 0 0);

    /* Map theme variables to site variables with sensible fallbacks */
    --primary-color: var(--primary, #10b981);
    --primary-dark: var(--primary-dark, #059669);
    --secondary-color: var(--secondary, #34d399);
    --accent-color: var(--accent, #ec4899);
    --text-dark: var(--foreground, #1f2937);
    --text-light: var(--muted-foreground, #6b7280);
    --bg-light: var(--background, #f9fafb);
    --bg-white: var(--card, #ffffff);
    --border-color: var(--border, #e5e7eb);
    --success-color: var(--chart-1, #10b981);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --input-background: var(--input-background, #f3f3f5);
    --switch-background: var(--switch-background, #cbced4);
}

/* Bright-theme only - dark theme removed per user preference */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--color-foreground, var(--foreground, var(--text-dark)));
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.brand {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-foreground, var(--foreground));
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--primary-foreground, #fff);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    background: radial-gradient(1200px 600px at 10% 20%, color-mix(in srgb, var(--primary-color) 12%, transparent) 0%, transparent 8%),
                radial-gradient(1000px 500px at 90% 80%, color-mix(in srgb, var(--secondary-color) 8%, transparent) 0%, transparent 10%),
                linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    color: var(--primary-foreground, #fff);
    padding: 7rem 0;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Alignment helpers */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero heading/subtitle sizing and color for contrast */
.hero-content h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    color: var(--color-foreground, var(--foreground));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground, var(--text-light));
    margin: 0.5rem 0 1.25rem 0;
}

/* Feature cards: left-align content on desktop */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-icon {
    margin-bottom: 0.75rem;
}

/* Steps: left-align on desktop, center on mobile (overridden below)
   Quick-stats items centered */
.step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.quick-stats { align-items: stretch; }
.stat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Blobs */
.blob {
    position: absolute;
    width: 420px;
    height: 420px;
    pointer-events: none;
    transform-origin: center;
}

.blob-1 { left: 22%; top: 8%; animation: float 9s ease-in-out infinite; }
.blob-2 { right: 8%; bottom: 8%; width: 360px; height: 360px; animation: float 11s ease-in-out infinite reverse; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-18px) rotate(6deg) scale(1.03); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* Phone Mockup */
.phone-mockup {
    background: rgba(255,255,255,0.06);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-width: 360px;
    margin: 0 auto;
    transform: translateZ(0);
}

.phone-screen {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 32px;
    padding: 2rem 1.5rem;
    min-height: 600px;
}

.balance-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.balance-label {
    font-size: 0.875rem;
        color: var(--muted-foreground, var(--text-light));
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-foreground, var(--foreground));
    margin-bottom: 0.5rem;
}

.balance-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

.balance-change.positive {
    background: #d1fae5;
    color: #065f46;
}

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

.stat-item {
    background: color-mix(in srgb, var(--card) 92%, transparent);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-foreground, var(--foreground));
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--background, var(--bg-light));
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--muted-foreground, var(--text-light));
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* New section: Cash stuffing & Bestie features spacing tweaks */
.cash-stuffing .steps, .bestie .features-grid {
    gap: 1.5rem;
    margin-top: 2rem;
}

.cash-stuffing .step, .bestie .feature-card {
    padding: 1.5rem;
}

.cash-stuffing .step-number, .how-it-works .step-number {
    width: 56px;
    height: 56px;
}

/* Micro-animations for feature cards */
.feature-card {
    transform: translateY(0);
}

.feature-card.animated {
    transition: transform 420ms cubic-bezier(.2,.9,.25,1), box-shadow 420ms, opacity 420ms;
}

.feature-card.animated:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(99,102,241,0.12);
}

/* Staggered reveal helper (adds slight scale and fade) */
.feature-card { opacity: 0; transform: translateY(12px) scale(0.998); }
.feature-card.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Steps small tweak */
.step { padding: 1rem 0.5rem; }
.step p { color: var(--muted-foreground, var(--text-light)); }

.feature-card {
    background: none;
    padding: 0 0 2.5rem 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-foreground, var(--foreground));
}

.feature-card p {
    color: var(--muted-foreground, var(--text-light));
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: color-mix(in srgb, var(--card) 96%, transparent);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(107,70,193,0.18);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--muted-foreground, var(--text-light));
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--background, var(--bg-light));
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--card, var(--bg-white));
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--primary-foreground, #fff);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        color: var(--color-foreground, var(--foreground, var(--text-dark)));
    }
    .feature-card p {
        color: var(--muted-foreground, var(--text-light));
        line-height: 1.6;
    }
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--color-foreground, var(--foreground));
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    text-align: center;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); /* lighter green gradient for more contrast */
    color: #083344; /* dark teal for strong contrast */
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #065f46; /* even darker for heading */
    text-shadow: 0 2px 8px #ffffff80;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #065f46;
    opacity: 1;
    text-shadow: 0 1px 6px #fff8;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.cta-form input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    border: 1.5px solid #059669;
    font-size: 1rem;
    background: #fff;
    color: #083344;
    box-shadow: 0 2px 12px #05966922;
}

.cta-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px #10b98155;
    border-color: #10b981;
}

.cta-note {
    font-size: 0.95rem;
    color: #065f46;
    background: #e0f7ef;
    border-radius: 6px;
    padding: 0.5em 1em;
    display: inline-block;
    margin-top: 1.5rem;
    opacity: 1;
    text-shadow: 0 1px 6px #fff8;
}

/* Footer */
footer {
    background: color-mix(in srgb, var(--background) 8%, var(--color-foreground, #111));
    color: var(--color-foreground, var(--foreground, #111));
    padding: 3rem 0 1rem;
}

/* Small micro-interactions */
.nav-links a, .btn-primary, .btn-secondary {
    transition: transform 160ms cubic-bezier(.2,.8,.2,1), box-shadow 160ms;
}

.btn-primary:active, .btn-secondary:active {
    transform: translateY(1px) scale(0.998);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .blob, .feature-card, .pricing-card, .step, .phone-mockup { animation: none !important; transition: none !important; }
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links { gap: 1rem; }

    .container { padding: 0 20px; }
    .hero { padding: 4rem 0; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}
