/* ==========================================================================
   ESET Landing Page — consistent with auth.css M3 dark-green palette
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens (mirrors auth.css, light-surface variant for public page)
   -------------------------------------------------------------------------- */
:root {
    --lp-primary:          #52b788;
    --lp-primary-dark:     #40916c;
    --lp-primary-darker:   #2d6a4f;
    --lp-primary-darkest:  #1b4332;

    --lp-surface-dark:     #0d1f18;
    --lp-surface-mid:      #1a3327;
    --lp-on-dark:          #e8f0eb;
    --lp-on-dark-muted:    #a8c5b5;

    --lp-outline:          #52796f;

    /* Light-surface tones for cards / sections */
    --lp-green-50:  #f0fdf4;
    --lp-green-100: #dcfce7;
    --lp-green-200: #bbf7d0;
    --lp-green-700: #15803d;
    --lp-green-800: #166534;
    --lp-green-900: #14532d;

    --lp-shape-full: 9999px;
    --lp-shape-lg:   16px;
    --lp-shape-md:   12px;

    --lp-motion: cubic-bezier(0.2, 0, 0, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #111827;
}

/* --------------------------------------------------------------------------
   Shared language switcher
   Same pill shape + translate icon on every page.
   On light backgrounds (landing nav) colours invert vs auth dark panels.
   -------------------------------------------------------------------------- */
.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: var(--lp-shape-full);
    padding: 0.35rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition:
        border-color 200ms var(--lp-motion),
        background-color 200ms var(--lp-motion),
        color 200ms var(--lp-motion);
    font-family: inherit;
}

.lang-switcher-btn:hover {
    border-color: var(--lp-primary);
    color: var(--lp-primary-dark);
    background-color: var(--lp-green-50);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.landing-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.875rem 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--lp-primary-darkest);
    border-radius: var(--lp-shape-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

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

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

.btn-nav-login {
    background: var(--lp-primary-darkest);
    color: #fff;
    border: none;
    border-radius: var(--lp-shape-full);
    padding: 0.45rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 200ms var(--lp-motion);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-nav-login:hover {
    background: var(--lp-primary-darker);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Hero
   (gradient already matches — just tighten up typography)
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 30%, #1e3a2f 60%, #0d1f18 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-title span { color: var(--lp-primary); }

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Role Cards
   -------------------------------------------------------------------------- */
.cards-section {
    background: var(--lp-green-50);
    padding: 4rem 0;
}

.role-card {
    background: #fff;
    border-radius: var(--lp-shape-lg);
    border: 1px solid #e5e7eb;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 200ms var(--lp-motion), transform 200ms var(--lp-motion);
}

.role-card:hover {
    box-shadow: 0 8px 30px rgba(13, 31, 24, 0.12);
    transform: translateY(-3px);
}

.role-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* All roles unified to green tonal family */
.role-icon.worker     { background: var(--lp-green-100); color: var(--lp-green-800); }
.role-icon.employer   { background: var(--lp-green-200); color: var(--lp-green-900); }
.role-icon.supervisor { background: #a7f3d0;             color: var(--lp-primary-darkest); }

.role-card h4 { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; }
.role-card p  { color: #6b7280; font-size: 0.9rem; margin-bottom: 1rem; }

.feature-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.feature-list li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--lp-primary);
}

/* Role card buttons — all green, pill shaped */
.btn-role-primary {
    background: var(--lp-primary-darkest);
    color: #fff;
    border: none;
    border-radius: var(--lp-shape-full);
    width: 100%;
    padding: 0.625rem;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 200ms var(--lp-motion);
}

.btn-role-primary:hover { background: var(--lp-primary-darker); color: #fff; }

.btn-role-outline {
    background: transparent;
    color: var(--lp-primary-darkest);
    border: 1.5px solid var(--lp-primary-darkest);
    border-radius: var(--lp-shape-full);
    width: 100%;
    padding: 0.625rem;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 200ms var(--lp-motion),
        color 200ms var(--lp-motion);
}

.btn-role-outline:hover {
    background: var(--lp-green-50);
    color: var(--lp-primary-darker);
}

/* --------------------------------------------------------------------------
   Why Choose ESET
   -------------------------------------------------------------------------- */
.why-section { padding: 5rem 0; background: #fff; }

.why-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--lp-primary-darkest);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

/* Green tonal variants replacing red / blue / purple */
.feature-icon-wrap.green-1 { background: var(--lp-green-100); color: var(--lp-green-800); }
.feature-icon-wrap.green-2 { background: var(--lp-green-200); color: var(--lp-green-900); }
.feature-icon-wrap.green-3 { background: #a7f3d0;             color: var(--lp-primary-darkest); }
.feature-icon-wrap.green-4 { background: #6ee7b7;             color: var(--lp-primary-darkest); }

.feature-col { text-align: center; }
.feature-col h5 { font-weight: 700; margin-bottom: 0.5rem; }
.feature-col p  { color: #6b7280; font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.landing-footer {
    background: var(--lp-surface-dark);
    color: var(--lp-on-dark-muted);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    color: var(--lp-on-dark);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--lp-primary-darkest);
    border-radius: var(--lp-shape-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-brand-icon svg { width: 18px; height: 18px; fill: #fff; }

.footer-tagline { font-size: 0.82rem; color: var(--lp-on-dark-muted); }

.footer-heading {
    color: var(--lp-on-dark);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: var(--lp-on-dark-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 150ms var(--lp-motion);
}
.footer-links a:hover { color: var(--lp-primary); }

.footer-divider { border-color: var(--lp-surface-mid); margin: 2rem 0 1rem; }
.footer-copy { color: #6b7280; font-size: 0.8rem; }

.emergency-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: var(--lp-shape-full);
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 200ms var(--lp-motion);
    text-decoration: none;
}
.emergency-btn:hover { background: #b91c1c; color: #fff; }
