/**
 * FormAPI Landing Page Styles
 * 
 * This stylesheet contains custom styles that complement Tailwind CSS CDN.
 * These styles match the original React LandingPage.tsx component.
 */

/* Base Styles - Corresponds to @layer base in index.css */
* {
    box-sizing: border-box;
}

html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    background-color: #f9fafb; /* gray-50 */
    color: #111827; /* gray-900 */
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

/* Custom Button Styles - Matches .btn classes from React app */
.btn-custom {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Container - Matches Container component */
.container-custom {
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Smooth Scroll for Internal Links */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* Pricing Toggle Animation */
.pricing-toggle-active {
    background-color: #111827; /* gray-900 */
}

.pricing-toggle-inactive {
    background-color: #e5e7eb; /* gray-200 */
}

/* Navbar fixed positioning offset */
.pt-nav {
    padding-top: 4rem; /* 64px navbar height */
}

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
}

/* Pricing card scale effect */
.pricing-card-popular {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pricing-card-popular {
        transform: scale(1);
    }
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Focus visible for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Button Icon Transitions */
#menu-icon,
#close-icon {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* Footer Styles - Full width, no gaps */
footer {
    margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

footer *:last-child {
    margin-bottom: 0 !important;
}

footer p:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer > div > div:last-child {
    margin-bottom: 0 !important;
    
}

footer > div > div:last-child p {
    margin-bottom: 0 !important;
    
}

/* Remove bottom spacing from section before footer */
body > div:last-of-type:not(footer) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove bottom margin from the last section before footer */
.py-24:last-of-type,
.pt-24:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Custom utilities matching React app */
.text-muted {
    color: #6b7280; /* gray-600 */
}

.heading-1 {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    color: #111827;
}

@media (min-width: 768px) {
    .heading-1 {
        font-size: 3rem; /* 48px */
    }
}

/* Feature cards hover effect */
.feature-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Pricing card hover effect */
.pricing-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Loading state for Paddle */
.paddle-loading {
    opacity: 0.6;
    pointer-events: none;
}

