/* Public marketing site — aligns with user portal tokens */
:root {
    --ec-primary: #2563eb;
    --ec-primary-dark: #1d4ed8;
    --ec-accent: #0ea5e9;
    --ec-teal: #14b8a6;
    --ec-dark: #0f172a;
    --ec-muted: #64748b;
    --ec-border: #e2e8f0;
    --ec-surface: #f8fafc;
    --ec-nav-height: 72px;
}

body.ec-public-site {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--ec-dark);
    background: #fff;
}

.ec-site-nav {
    height: var(--ec-nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ec-border);
    transition: box-shadow 0.2s;
}

.ec-site-nav.scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.ec-site-nav .navbar-brand .ec-logo-mark,
.ec-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ec-primary), var(--ec-accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-site-nav .navbar-brand .ec-logo-mark {
    /* inherits from .ec-logo-mark */
}

.ec-site-nav .nav-link {
    font-weight: 500;
    font-size: 0.925rem;
    color: #334155;
    padding: 0.5rem 0.85rem !important;
}

.ec-site-nav .nav-link:hover {
    color: var(--ec-primary);
}

.btn-ec-gradient {
    background: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-accent) 100%);
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-ec-gradient:hover {
    filter: brightness(1.05);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-ec-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
}

.btn-ec-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* Hero */
.ec-hero {
    position: relative;
    min-height: calc(100vh - var(--ec-nav-height));
    min-height: min(720px, calc(100vh - var(--ec-nav-height)));
    padding: 4rem 0 5rem;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 45%, #0c4a6e 100%);
    color: #fff;
    overflow: hidden;
}

.ec-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(14, 165, 233, 0.35), transparent),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(20, 184, 166, 0.2), transparent);
    pointer-events: none;
}

.ec-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(#fff 1px, transparent 1px),
        linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.ec-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.ec-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ec-hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 32rem;
    line-height: 1.65;
}

.ec-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ec-hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.ec-hero-stat span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ec-hero-visual {
    position: relative;
}

.ec-hero-card-stack {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.ec-hero-mini {
    background: #fff;
    color: var(--ec-dark);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.ec-risk-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ec-risk-pill.low { background: #d1fae5; color: #047857; }
.ec-risk-pill.medium { background: #fef3c7; color: #b45309; }
.ec-risk-pill.high { background: #fee2e2; color: #b91c1c; }

/* Sections */
.ec-section {
    padding: 5rem 0;
}

.ec-section-alt {
    background: var(--ec-surface);
}

.ec-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ec-primary);
    margin-bottom: 0.5rem;
}

.ec-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ec-feature-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--ec-border);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ec-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.ec-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.ec-feature-icon.blue { background: #dbeafe; color: var(--ec-primary); }
.ec-feature-icon.teal { background: #ccfbf1; color: #0d9488; }
.ec-feature-icon.amber { background: #fef3c7; color: #d97706; }
.ec-feature-icon.violet { background: #ede9fe; color: #7c3aed; }
.ec-feature-icon.rose { background: #ffe4e6; color: #e11d48; }
.ec-feature-icon.slate { background: #e2e8f0; color: #475569; }

.ec-steps {
    counter-reset: step;
}

.ec-step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.ec-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ec-primary), var(--ec-accent));
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.ec-cta-band {
    background: linear-gradient(135deg, var(--ec-primary) 0%, #1d4ed8 50%, var(--ec-accent) 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
}

.ec-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    opacity: 0.85;
    font-size: 0.9rem;
    color: var(--ec-muted);
}

.ec-trust-row i {
    color: var(--ec-teal);
    margin-right: 0.35rem;
}

/* Footer */
.ec-site-footer {
    background: var(--ec-dark);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.ec-site-footer h6 {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.ec-site-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.ec-site-footer a:hover {
    color: #fff;
}

.ec-site-footer .ec-footer-brand {
    color: #fff;
    font-weight: 700;
}

/* Inner public pages (shop) */
.ec-page-hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 100%);
    border-bottom: 1px solid var(--ec-border);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.ec-page-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.ec-page-hero p {
    color: var(--ec-muted);
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

.ec-brand-tile {
    height: 100%;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--ec-border);
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ec-brand-tile:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.ec-brand-tile img {
    height: 56px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Auth polish */
.ec-auth-shell {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(37, 99, 235, 0.15), transparent),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.ec-auth-card .form-control:focus,
.ec-auth-card .form-select:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ec-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ec-muted);
    font-size: 0.75rem;
    margin: 1.5rem 0;
}

.ec-auth-divider::before,
.ec-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ec-border);
}

@media (max-width: 991.98px) {
    .ec-hero {
        min-height: auto;
        padding-top: 2rem;
    }
    .ec-hero-stats {
        gap: 1.25rem;
    }
}
