:root {
    /* Brand Core Light Tones */
    --bg-main: #f8fafc;
    /* Soft slate canvas background */
    --bg-surface: #ffffff;
    /* Crisp white cards and containers */
    --bg-surface-hover: #f1f5f9;
    /* Smooth interactive hover background */
    --border-color: #e2e8f0;
    /* Clean, subtle structural dividers */
    --border-solid: #cbd5e1;
    /* Defined borders for form inputs */

    /* Typography */
    --text-primary: #0f172a;
    /* Deep slate text for high legibility and contrast */
    --text-secondary: #475569;
    /* Balanced metadata and labels */
    --text-dim: #94a3b8;
    /* Muted helper text */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;

    /* Interactive Accents & SaaS Gradients */
    --accent-primary: #4f46e5;
    /* Polished professional Indigo */
    --accent-hover: #4338ca;
    /* Deep Indigo hover state */
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    /* Clean Indigo to Sky gradient */
    --accent-glow: rgba(79, 70, 229, 0.15);
    /* Soft, elegant focus ring glow */

    /* Status Indicators (Light Mode Optimized) */
    --status-pending: #d97706;
    /* Professional amber for pending reviews */
    --status-approved: #059669;
    /* Clean emerald for completed items */
    --status-revision: #e11d48;
    /* Clear rose for requested updates */

    /* Layout & Surface Attributes */
    --radius: 8px;
    --radius-card: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    /* Soft, layered SaaS card shadow */
    --transition: all 0.2s ease-in-out;
}

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

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

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* Secondary Link (Login) */
.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color, #2563eb);
}

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

.nav-logout-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.btn-nav-outline {
    background: transparent;
    border: 1px solid var(--border-solid, #cbd5e1);
    color: var(--text-primary, #0f172a);
    padding: 0.5rem 1rem;
    border-radius: var(--radius, 8px);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
}

.btn-nav-outline:hover {
    background-color: var(--bg-surface-hover, #f1f5f9);
    border-color: var(--text-secondary, #475569);
}



/* Primary Call to Action Button (Register) */
.btn-nav-primary {
    background-color: var(--accent-color, #2563eb);
    color: #ffffff;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-btn, 6px);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-nav-primary:hover {
    opacity: 0.9;
}

.brand-mark {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -40px 16px auto;
}

.logo {
    display: flex;
    align-items: center;
    /* Adjust this to pull the text closer to or further from the image */
    text-decoration: none;
}


.logo img {
    height:65px;
    /* Adjust height as needed (e.g., 50px - 70px) */
    width: auto;
    object-fit: contain;
    z-index: -1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: var(--mono);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #a855f7;
    /* Or your variable color */
    margin-left: -30px;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #a855f7;
    /* Matches the purple/blue neon vibe of your brand mark */
    margin-top: 2px;
}

.nav-cta {
    background-color: var(--accent-primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 2px 4px var(--accent-glow);
}

.nav-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background-color: var(--bg-surface);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-solid);
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--accent-primary);
}

/* Features Grid Section */
.features {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Alternating Feature Showcase Layout */
.features-alternating {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Reverse layout every second row for visual variety */
.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row:nth-child(even) .feature-text-content,
.feature-row:nth-child(even) .feature-preview-box {
    direction: ltr;
    /* Keeps text reading naturally */
}

.feature-text-content {
    max-width: 480px;
}

.feature-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    background-color: var(--bg-surface-hover);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.feature-text-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
}

.feature-text-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.feature-check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.feature-check-list li span {
    color: var(--status-approved);
    font-weight: bold;
}

/* UI Preview Mockup Boxes */
.feature-preview-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-preview-box:hover {
    border-color: var(--border-solid);
    box-shadow: 0 12px 28px -5px rgba(79, 70, 229, 0.12);
}

/* Mockup UI Component Styling */
.mockup-header-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background-color: #ef4444;
}

.dot-yellow {
    background-color: #f59e0b;
}

.dot-green {
    background-color: #10b981;
}

.mockup-card-item {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.mockup-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .feature-row,
    .feature-row:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
    }
}

/* ==========================================================================
   Portal Footer Component
   ========================================================================== */
.portal-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: 64px;
    padding: 48px 0 24px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

 .portal-footer2 {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    padding: 24px 5px 24px 5px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.portal-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

/* Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-accent {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--accent-gradient);
    display: inline-block;
}

.footer-tagline {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 360px;
}

/* Live Operational Status Indicator */
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    width: fit-content;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--status-approved);
    box-shadow: 0 0 8px var(--status-approved);
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--status-approved);
}

/* Navigation Link Columns */
.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px 0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Bottom Utility Row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
}

.footer-bottom2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
}

.footer-bottom a, .footer-bottom2 a{
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom a:hover .footer-bottom2 a:hover{
    color: var(--accent-primary);
    text-decoration: underline;
}

.copyright-text {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    background-color: var(--bg-main);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-solid);
}


/* Pricing Section */
.pricing {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px -8px rgba(79, 70, 229, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 50px;
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Ensure the dynamic number stays bold and large */
.price-val {
    font-size: 42px;
    font-weight: 700;
}

/* Specific styling for the period text (/ month) */
.pricing-price .period-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pricing-features li span {
    color: var(--status-approved);
    font-weight: bold;
}

.pricing-btn {
    display: block;
    text-align: center;
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-solid);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.pricing-card.featured .pricing-btn {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.pricing-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Pricing Toggle Container */
.billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.billing-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.billing-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background-color: var(--border-solid);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-switch.annual {
    background-color: var(--accent-primary);
}

.toggle-thumb {
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.annual .toggle-thumb {
    transform: translateX(24px);
}

.save-badge {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--status-approved);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 6px;
}

/* Contact */

.contact-section {
    padding: 5rem 1.5rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.contact-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   5. BUTTONS & INPUT CONTROLS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-solid);
    border-color: var(--text-secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-solid);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.form-control,
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    font-size: 0.925rem;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-control:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}


/* Legal */
/* Legal Pages Layout */
.legal-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.legal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.legal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.legal-body {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.975rem;
}

.legal-body p {
    margin-bottom: 1.25rem;
}

.legal-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.legal-list {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.legal-list li {
    margin-bottom: 0.5rem;
}

.legal-list strong {
    color: var(--text-primary);
}

/* Flash Messages */
.app-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: var(--radius, 6px);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.app-alert-succes {
    border-left: 4px solid var(--status-approved, #10b981);
    background: rgba(16, 185, 129, 0.1);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-right: 1px solid #10b98133;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

.app-alert-success .app-alert-icon {
    color: var(--status-approved, #10b981);
    font-weight: bold;
}

.app-alert-error {
    border-left: 4px solid var(--status-revision, #f43f5e);
    background: rgba(244, 63, 94, 0.1);
    border-top: 1px solid rgba(244, 63, 94, 0.2);
    border-right: 1px solid rgba(244, 63, 94, 0.2);
    border-bottom: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--text-primary);
}

.app-alert-error .app-alert-icon {
    color: var(--status-revision, #f43f5e);
    font-weight: bold;
}