/* HRPay — public SaaS marketing pages */

.saas-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

.saas-site-header {
    background: linear-gradient(135deg, #0b1220 0%, #0f2744 45%, #1e3a8a 100%);
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.2);
}

.saas-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.saas-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
}

.saas-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.saas-brand-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.saas-brand-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.saas-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.saas-nav a {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.saas-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.saas-nav-cta {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.saas-nav-marketplace {
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.saas-main {
    flex: 1;
}

.saas-hero {
    padding: 64px 16px 72px;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    text-align: center;
}

.saas-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.saas-hero h1 {
    margin: 0 auto 16px;
    max-width: 720px;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.saas-hero-sub {
    margin: 0 auto 32px;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
}

.saas-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.saas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, background 0.2s ease;
}

.saas-btn:hover {
    transform: translateY(-1px);
}

.saas-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.saas-btn-secondary {
    background: #fff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.saas-btn-ghost {
    background: transparent;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.saas-section {
    padding: 56px 16px;
}

.saas-section-alt {
    background: #fff;
}

.saas-section-title {
    text-align: center;
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
}

.saas-section-lead {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 560px;
    color: #64748b;
    line-height: 1.7;
}

.saas-features {
    display: grid;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .saas-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .saas-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.saas-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.saas-feature-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.saas-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #ecfdf5);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.saas-feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
}

.saas-feature-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

.saas-dashboard-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.saas-dashboard-mock {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.saas-dashboard-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0f172a;
}

.saas-dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.saas-dashboard-body {
    display: grid;
    gap: 0;
    min-height: 320px;
}

@media (min-width: 768px) {
    .saas-dashboard-body {
        grid-template-columns: 200px 1fr;
    }
}

.saas-dashboard-sidebar {
    background: #f1f5f9;
    padding: 16px;
    border-right: 1px solid #e2e8f0;
}

.saas-dashboard-sidebar span {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.saas-dashboard-sidebar span.active {
    background: #4f46e5;
    color: #fff;
}

.saas-dashboard-main {
    padding: 20px;
    background: linear-gradient(180deg, #fafafa, #fff);
}

.saas-kpi-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 16px;
}

.saas-kpi {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.saas-kpi label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.saas-kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 1.25rem;
    color: #0f172a;
}

.saas-chart-placeholder {
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff 0%, #ecfdf5 100%);
    border: 1px dashed #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 600;
}

.saas-pricing-grid {
    display: grid;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .saas-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

.saas-price-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.saas-price-card.featured {
    border-color: #4f46e5;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.15);
    position: relative;
}

.saas-price-card.featured::before {
    content: 'Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4f46e5, #22c55e);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
}

.saas-price-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.saas-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.saas-price-amount small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.saas-price-features {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    flex: 1;
}

.saas-price-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.saas-price-features li i {
    color: #22c55e;
    margin-top: 3px;
}

.saas-faq {
    max-width: 720px;
    margin: 0 auto;
}

.saas-faq details {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
}

.saas-faq summary {
    padding: 16px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.saas-faq summary::-webkit-details-marker {
    display: none;
}

.saas-faq details[open] summary {
    border-bottom: 1px solid #e2e8f0;
    color: #4f46e5;
}

.saas-faq p {
    margin: 0;
    padding: 16px 20px;
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

.saas-site-footer {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 50%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 48px 0 28px;
}

.saas-footer-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .saas-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

.saas-footer-brand h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #fff;
}

.saas-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 320px;
}

.saas-footer-col h4 {
    margin: 0 0 14px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}

.saas-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.saas-footer-col li {
    margin-bottom: 10px;
}

.saas-footer-col a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    text-decoration: none;
}

.saas-footer-col a:hover {
    color: #fff;
}

.saas-footer-contact {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.saas-footer-contact a {
    color: #a5b4fc;
}

.saas-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.saas-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.saas-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.saas-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .saas-menu-toggle {
        display: inline-flex;
    }

    .saas-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 12px;
    }

    .saas-nav.is-open {
        display: flex;
    }
}
