/* 
   INVOCAST DESIGN SYSTEM 2025 
   Modern, Clean, SaaS-Focused 
*/

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors - Slate Palette for a premium tech feel */
    --bg-body: #F8FAFC; /* Very light cool gray */
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F1F5F9;
    
    --text-main: #0F172A; /* Deep blue-black */
    --text-muted: #64748B; /* Slate gray */
    --text-light: #94A3B8;

    /* Primary Brand Color */
    --brand-primary: #7C3AED; /* Vivid Purple */
    --brand-hover: #6D28D9;
    --brand-light: #DDD6FE;
    --brand-subtle: #F5F3FF;

    /* Dashboard Status Colors (Specific Request) */
    --accent-green: #10B981;
    --accent-green-bg: #DCFCE7; /* Soft Green Background */
    --accent-green-text: #166534; /* Dark Green Text */

    --accent-red: #EF4444;
    --accent-red-bg: #FEE2E2; /* Soft Red Background */
    --accent-red-text: #991B1B; /* Dark Red Text */

    --accent-orange: #F59E0B;
    --accent-orange-bg: #FEF3C7; /* Soft Orange Background */
    --accent-orange-text: #92400E; /* Dark Orange Text */

    --border-light: #E2E8F0;
    --border-hover: #CBD5E1;

    /* Shadows (Layered for depth) */
    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.1), 0 2px 4px -2px rgb(15 23 42 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* System font stack as fallback */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 700; /* Bold titles */
    letter-spacing: -0.025em; /* Tighter tracking for modern look */
    color: var(--text-main);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-hover);
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- COMPONENTS: BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px; /* Slightly rounded */
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--brand-primary); /* Changed to Brand Purple */
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--brand-hover); /* Darker Purple on hover */
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--brand-light); /* Subtle purple hint on hover */
    background-color: var(--bg-surface-alt);
    color: var(--brand-primary);
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 140px; /* Account for fixed header */
    padding-bottom: 6rem;
    background: radial-gradient(circle at 50% 0%, var(--brand-subtle) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3.5rem; /* Massive headline */
    font-weight: 800;
    line-height: 1.1;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .tagline {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-cta-subtext {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- HERO VISUAL (FAKE UI) --- */
.dashboard-preview {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* FORCE Inter for UI */
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-light); /* Crisp border + shadow */
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateX(2deg); /* Subtle 3D tilt */
    transition: transform 0.5s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.ui-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAFAFA;
}

.ui-dots {
    display: flex;
    gap: 6px;
}
.ui-dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.ui-dot.red { background: var(--accent-red); opacity: 1; }
.ui-dot.yellow { background: var(--accent-orange); opacity: 1; }
.ui-dot.green { background: var(--accent-green); opacity: 1; }

.ui-body {
    padding: 1.5rem;
}

.ui-grid-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.ui-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    align-items: center;
    padding: 0.875rem 0; /* Slightly more breathing room */
    border-bottom: 1px solid var(--bg-surface-alt);
}

.ui-row:last-child { border-bottom: none; }

.prod-name { font-weight: 600; font-size: 0.9rem; color: var(--text-main); margin-bottom: 2px; }
.prod-sku { font-size: 0.8rem; color: var(--text-light); font-family: 'Inter', monospace; }

/* Status Badges / Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px; /* Soft pill shape, perfectly modern */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.status-pill.urgent { 
    background: var(--accent-red-bg); 
    color: var(--accent-red-text); 
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.status-pill.warning { 
    background: var(--accent-orange-bg); 
    color: var(--accent-orange-text); 
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.status-pill.healthy { 
    background: var(--accent-green-bg); 
    color: var(--accent-green-text); 
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* Progress Bar in UI */
.stock-level {
    width: 100%;
    height: 8px; /* Slightly thicker for better visibility */
    background: var(--bg-surface-alt);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.stock-fill { height: 100%; border-radius: 4px; transition: width 1s ease-out; }
.stock-fill.low { width: 15%; background: var(--accent-red); }
.stock-fill.med { width: 45%; background: var(--accent-orange); }
.stock-fill.good { width: 80%; background: var(--accent-green); }

.days-left {
    font-size: 0.75rem;
    margin-top: 6px;
    font-weight: 600;
}


/* --- GRID & CARDS --- */
.grid {
    display: grid;
    gap: 2rem;
}

.two-col { grid-template-columns: 1fr; }
.three-col { grid-template-columns: 1fr; }

@media(min-width: 768px) {
    .two-col { grid-template-columns: 1fr 1fr; }
    .three-col { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-light);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-subtle);
    color: var(--brand-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-surface-alt); /* Subtle back number */
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 0;
}
.feature-card h3 { position: relative; z-index: 1; margin-bottom: 0.5rem; }

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
@media(min-width: 768px) {
    /* Updated to 2 columns with Early Bird slightly larger */
    .pricing-grid { 
        grid-template-columns: 1.15fr 1fr; 
        align-items: center; 
        max-width: 900px;
    }
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.pricing-card.highlighted {
    border: 2px solid var(--brand-primary);
    box-shadow: var(--shadow-xl);
    z-index: 10;
    background: white;
    transform: scale(1.02);
}

.badge-special {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.limited-spots {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-red-text);
    background: var(--accent-red-bg);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Pricing Timer Styles */
.timer-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
    font-family: monospace; /* Monospace for numbers */
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 32px;
}

.t-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}

.t-label {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.sep {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--border-hover);
    margin-top: -2px;
}


.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}
.period { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.features-list {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}
.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}
.features-list li:last-child { border-bottom: none; }

.vat-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    font-style: italic;
}

/* --- FAQ & FOOTER --- */
details {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
details summary {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
}
details[open] summary::after { content: '-'; }
details p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-links a {
    margin-left: 1.5rem;
    color: var(--text-muted);
}
.footer-links a:hover { color: var(--brand-primary); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.highlighted { transform: scale(1); }
    .header .btn { display: none; } /* Hide header CTA on mobile to save space */
    .nav { justify-content: center; }
}

/* --- UTILITY ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- LEGAL PAGE LAYOUT (Focused Readability) --- */
.legal-section {
    padding-top: 150px;
    padding-bottom: 6rem;
    background-color: var(--bg-body);
}

.legal-container {
    max-width: 720px; /* Optimal reading width */
    margin: 0 auto;
    background: white;
    padding: 3rem 4rem;
    border-radius: 4px; /* More formal look */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .legal-container {
        padding: 2rem;
        margin: 0 1rem;
        width: auto;
    }
}

.legal-content h1 { 
    font-size: 2rem; 
    margin-bottom: 2rem; 
    border-bottom: 1px solid var(--border-light); 
    padding-bottom: 1rem; 
    color: var(--text-main);
}

.legal-content h2 { 
    font-size: 1.5rem; 
    margin-top: 3rem; 
    margin-bottom: 1rem; 
    color: var(--text-main); 
}

.legal-content h3 { 
    font-size: 1.125rem; 
    margin-top: 2rem; 
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.legal-content p, 
.legal-content li { 
    color: var(--text-main); /* Darker text for readability */
    font-size: 1rem; 
    line-height: 1.7; 
    margin-bottom: 1rem; 
}

.legal-content ul, 
.legal-content ol { 
    padding-left: 1.5rem; 
    margin-bottom: 1.5rem; 
}

.legal-content strong { 
    color: var(--text-main); 
    font-weight: 600; 
}

.legal-content em {
    font-style: italic;
    color: var(--text-muted);
}
