/* ═══════════════════════════════════════════════════════════
   Home Applied — ACC Engine landing (ink / cyan holding brand)
   Paired with HomeView .hl-* + existing .lp-auth-* markup
═══════════════════════════════════════════════════════════ */


:root {
    --hl-ink: #0B1220;
    --hl-slate: #1E293B;
    --hl-muted: #64748B;
    --hl-line: #E2E8F0;
    --hl-paper: #F8FAFC;
    --hl-mist: #F1F5F9;
    --hl-card: #FFFFFF;
    --hl-cyan: #0E7490;
    --hl-cyan-bright: #22D3EE;
    --hl-cyan-soft: #ECFEFF;
    --hl-cyan-mid: #67E8F9;
    --hl-shadow: 0 18px 48px rgba(15, 23, 42, .1);
    --hl-font: 'Vazirmatn', 'DM Sans', system-ui, sans-serif;
    --hl-ui: 'DM Sans', 'Vazirmatn', system-ui, sans-serif;
}

/* ── Shell ── */
.hl-wrap *,
.hl-wrap *::before,
.hl-wrap *::after { box-sizing: border-box; }

.hl-wrap {
    min-height: 100%;
    direction: rtl;
    font-family: var(--hl-font);
    color: var(--hl-ink);
    background: var(--hl-paper);
    display: flex;
    flex-direction: column;
}

#acc-login-container:has(.hl-wrap) {
    background: var(--hl-paper);
    padding: 0;
}

/* ── Utility strip ── */
.hl-util {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px 14px;
    padding: 5px 36px;
    background: var(--hl-ink);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.hl-util a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .2s;
}

.hl-util a:hover { color: var(--hl-cyan-mid); }

.hl-util a:first-child {
    margin-inline-end: auto;
    color: var(--hl-cyan-mid);
    font-family: var(--hl-ui);
    font-weight: 800;
    letter-spacing: -.02em;
}

/* ── Header ── */
.hl-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 36px;
    background: rgba(248, 250, 252, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 80;
    transition: box-shadow .25s, border-color .25s, background .25s;
}

.hl-header--scrolled {
    background: rgba(255, 255, 255, .96);
    border-bottom-color: var(--hl-line);
    box-shadow: 0 6px 28px rgba(15, 23, 42, .07);
}

.hl-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.hl-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--hl-cyan-bright), var(--hl-cyan));
    display: grid;
    place-items: center;
    font-family: var(--hl-ui);
    font-weight: 800;
    font-size: .85rem;
    color: var(--hl-ink);
    box-shadow: 0 8px 22px rgba(34, 211, 238, .35);
}

.hl-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.hl-brand__name {
    font-family: var(--hl-ui);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -.03em;
    color: var(--hl-ink);
}

.hl-brand__name em {
    font-style: normal;
    color: var(--hl-cyan);
    font-weight: 700;
}

.hl-brand__sub {
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hl-muted);
    font-weight: 600;
}

.hl-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: auto;
}

.hl-nav a,
.hl-nav button {
    color: var(--hl-slate);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    font-family: inherit;
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.hl-nav a:hover,
.hl-nav button:hover {
    background: var(--hl-cyan-soft);
    color: var(--hl-cyan);
}

.hl-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(105deg, var(--hl-ink) 0%, #164E63 70%, var(--hl-cyan) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(14, 116, 144, .28);
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
}

.hl-header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(14, 116, 144, .36);
}

/* ── Main: hero + auth ── */
.hl-main {
    display: flex;
    align-items: stretch;
    min-height: min(32vh, 260px);
    max-height: min(36vh, 280px);
    position: relative;
}

.hl-hero {
    flex: 1;
    min-width: 0;
    min-height: min(32vh, 260px);
    max-height: min(36vh, 280px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--hl-ink);
}

.hl-hero__media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(11, 18, 32, .94) 0%, rgba(11, 18, 32, .72) 42%, rgba(22, 78, 99, .55) 100%),
        radial-gradient(ellipse 70% 60% at 15% 80%, rgba(14, 116, 144, .45), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(34, 211, 238, .2), transparent 50%),
        linear-gradient(160deg, #0B1220 0%, #164E63 48%, #0E7490 100%);
    background-size: cover;
}

.hl-hero__grain {
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hl-hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(12px, 1.8vw, 22px) clamp(16px, 2.5vw, 32px);
    max-width: 520px;
    animation: hl-rise .85s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes hl-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hl-hero__brand {
    margin: 0 0 4px;
    font-family: var(--hl-ui);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -.04em;
    color: #fff;
    line-height: 1.05;
}

.hl-hero__brand span { color: var(--hl-cyan-mid); }

.hl-hero h1 {
    margin: 0 0 6px;
    font-family: var(--hl-ui);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: #fff;
}

.hl-hero h1 em {
    font-style: normal;
    color: var(--hl-cyan-bright);
}

.hl-hero__lead {
    margin: 0 0 10px;
    max-width: 420px;
    font-size: .8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .72);
    font-weight: 400;
}

.hl-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Buttons ── */
.hl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    font-family: inherit;
    font-weight: 700;
    font-size: .78rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}

.hl-btn--cyan {
    background: var(--hl-cyan-bright);
    color: var(--hl-ink);
    box-shadow: 0 10px 28px rgba(34, 211, 238, .35);
}

.hl-btn--cyan:hover {
    background: #67E8F9;
    transform: translateY(-2px);
}

.hl-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .35);
}

.hl-btn--ghost:hover {
    border-color: var(--hl-cyan-mid);
    color: var(--hl-cyan-mid);
    background: rgba(34, 211, 238, .08);
    transform: translateY(-2px);
}

.hl-btn--dark {
    background: var(--hl-ink);
    color: #fff;
    box-shadow: 0 10px 28px rgba(11, 18, 32, .2);
}

.hl-btn--dark:hover {
    background: #164E63;
    transform: translateY(-2px);
}

/* ── Auth sidebar (cohesive with Applied) ── */
.hl-wrap .lp-auth-panel.hl-auth {
    width: min(300px, 34vw);
    flex-shrink: 0;
    min-height: 0;
    align-self: stretch;
    background: var(--hl-card);
    border-left: none;
    border-right: 1px solid var(--hl-line);
    padding: 10px 14px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: -12px 0 40px rgba(15, 23, 42, .06);
}

.hl-wrap .lp-auth-card {
    max-width: 270px;
    width: 100%;
    margin: auto 0;
}

.hl-wrap .lp-auth-tabs {
    background: var(--hl-mist);
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 2px;
}

.hl-wrap .lp-auth-tab {
    padding: 5px 8px;
    font-size: .78rem;
}

.hl-wrap .lp-auth-tab.active {
    color: var(--hl-cyan);
    box-shadow: 0 1px 4px rgba(14, 116, 144, .12);
}

.hl-wrap .lp-form {
    gap: 5px;
}

.hl-wrap .lp-form__title {
    font-family: var(--hl-ui);
    letter-spacing: -.02em;
    margin-bottom: 0;
    font-size: 13px;
}

.hl-wrap .lp-form__desc {
    font-size: 11px;
    line-height: 1.35;
    margin: 0 0 1px;
}

.hl-wrap .lp-field {
    gap: 2px;
}

.hl-wrap .lp-field label {
    font-size: 11px;
}

.hl-wrap .lp-field input {
    padding: 6px 9px;
    font-size: .82rem;
}

.hl-wrap .lp-field input:focus {
    border-color: var(--hl-cyan);
    background: #fff;
}

.hl-wrap .lp-link { color: var(--hl-cyan); font-size: 11px; }

.hl-wrap .lp-btn {
    background: linear-gradient(105deg, #0B1220 0%, #164E63 55%, #0E7490 100%);
    border-radius: 7px;
    margin-top: 1px;
    padding: 7px 12px;
    font-size: .82rem;
}

.hl-wrap .lp-btn:hover:not(:disabled) {
    background: linear-gradient(105deg, #164E63 0%, #0E7490 100%);
}

.hl-wrap .lp-msg--ok {
    background: #ECFDF5;
    color: #065F46;
}

/* ── Sections ── */
.hl-section {
    padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 48px);
}

.hl-section--mist {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(14, 116, 144, .06), transparent 70%),
        var(--hl-mist);
}

.hl-section__head {
    max-width: 640px;
    margin: 0 auto 36px;
    text-align: center;
}

.hl-section__head h2 {
    margin: 0 0 12px;
    font-family: var(--hl-ui);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.25;
    color: var(--hl-ink);
}

.hl-section__head p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--hl-muted);
}

.hl-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--hl-ui);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--hl-cyan);
}

/* ── Portal grid ── */
.hl-portals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
}

.hl-portal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    transition: transform .22s, box-shadow .22s, border-color .22s;
    position: relative;
    overflow: hidden;
}

.hl-portal::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--hl-portal-accent, var(--hl-cyan));
    opacity: .85;
}

.hl-portal:hover {
    transform: translateY(-4px);
    border-color: var(--hl-portal-accent, var(--hl-cyan));
    box-shadow: 0 18px 40px rgba(14, 116, 144, .12);
}

.hl-portal__tag {
    font-family: var(--hl-ui);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hl-portal-accent, var(--hl-cyan));
}

.hl-portal strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hl-ink);
    letter-spacing: -.02em;
}

.hl-portal small {
    font-size: .86rem;
    line-height: 1.55;
    color: var(--hl-muted);
}

.hl-portal__go {
    margin-top: auto;
    padding-top: 10px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--hl-cyan);
    opacity: .75;
    transition: opacity .2s;
}

.hl-portal:hover .hl-portal__go { opacity: 1; }

.hl-portal--melk { --hl-portal-accent: #0E7490; }
.hl-portal--ws   { --hl-portal-accent: #B45309; }
.hl-portal--svc  { --hl-portal-accent: #0284C7; }
.hl-portal--edu  { --hl-portal-accent: #0F766E; }
.hl-portal--growth { --hl-portal-accent: #0D7377; }
.hl-portal--el   { --hl-portal-accent: #1D4ED8; }
.hl-portal--shop { --hl-portal-accent: #475569; }
.hl-portal--dev  { --hl-portal-accent: #64748B; }

/* ── Footer ── */
.hl-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 36px;
    background: var(--hl-ink);
    color: rgba(255, 255, 255, .45);
    font-size: .82rem;
    margin-top: auto;
}

.hl-footer a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .2s;
}

.hl-footer a:hover { color: var(--hl-cyan-mid); }

/* ── Reveal ── */
.hl-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.hl-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hl-portals { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hl-util { padding: 5px 18px; gap: 8px 12px; }
    .hl-header { padding: 8px 18px; gap: 10px; }
    .hl-nav { display: none; }
    .hl-brand__sub { display: none; }

    .hl-main {
        flex-direction: column;
        min-height: auto;
        max-height: none;
    }

    .hl-hero {
        min-height: min(26vh, 200px);
        max-height: min(28vh, 220px);
    }

    .hl-hero__content {
        padding: clamp(10px, 3vw, 16px) clamp(14px, 3.5vw, 20px);
    }

    .hl-hero__brand {
        font-size: clamp(.95rem, 3.5vw, 1.15rem);
    }

    .hl-hero h1 {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 4px;
    }

    .hl-hero__lead {
        font-size: .74rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .hl-wrap .lp-auth-panel.hl-auth {
        width: 100%;
        max-height: min(42vh, 320px);
        overflow: auto;
        border-right: none;
        border-top: 1px solid var(--hl-line);
        box-shadow: none;
        padding: 12px 14px 16px;
        display: none;
    }

    .hl-wrap .lp-auth-panel.hl-auth.lp-auth-panel--open {
        display: flex;
    }
}

@media (max-width: 560px) {
    .hl-util a:not(:first-child) { display: none; }
    .hl-header__cta { padding: 9px 14px; font-size: .8rem; }
    .hl-portals { grid-template-columns: 1fr; }
    .hl-footer {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
    }
    .hl-hero__actions { flex-direction: column; align-items: stretch; }
    .hl-btn { width: 100%; }
}

@media (min-width: 901px) {
    /* Desktop: auth always visible beside hero */
    .hl-wrap .lp-auth-panel.hl-auth {
        display: flex !important;
    }
}

/* ── Neutralize legacy shop/hero clutter if residual markup flashes ── */
body.erp-applied-body .lp-hero__badge,
body.erp-applied-body .lp-hero__visual,
body.erp-applied-body .lp-hero__features,
body.erp-applied-body .lp-hero__card,
body.erp-applied-body .lp-hero-btn--primary,
body.erp-applied-body .lp-hero-btn--melk,
body.erp-applied-body .lp-hero-btn--service,
body.erp-applied-body .lp-hero-btn--wholesale,
body.erp-applied-body .lp-hero-btn--election,
body.erp-applied-body .lp-hero-btn--education {
    display: none !important;
}

body.erp-applied-body:has(.hl-wrap) .lp-hero {
    display: none !important;
}
