/**
 * Heyat Site (portal landing) UX refine — additive only.
 * References: Material Design 3 (type/contrast/CTA emphasis),
 * Microsoft Fluent 2 (a11y, touch targets, consistency),
 * Stripe landing practice (one clear primary action, hierarchy, scannability).
 * Does NOT remove features — only elevates readability and conversion clarity.
 */

.port-site--landing,
.port-site {
    --ux-ink: #07101f;
    --ux-muted: #334155;
    --ux-on-dark: #f8fafc;
    --ux-on-dark-muted: #e2e8f0;
    --ux-cta: #ffd200;
    --ux-cta-ink: #0a1224;
    --ux-focus: #38bdf8;
}

/* ---- Typography floor (MD3: body ≥ readable; avoid <10sp feel) ---- */
.port-site {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ux-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.port-site .xpl-hero__title {
    font-size: clamp(2.35rem, 6vw, 4.4rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 12px 40px rgba(0, 0, 0, 0.35) !important;
}

.port-site .xpl-hero__lead {
    font-size: clamp(1.08rem, 2.2vw, 1.3rem) !important;
    line-height: 1.8 !important;
    color: var(--ux-on-dark-muted) !important;
    font-weight: 550 !important;
    max-width: 38rem;
}

.port-site .xpl-hero__kicker,
.port-site .port-land-kicker {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    color: #fef9c3 !important;
}

/* ---- Primary CTA hierarchy (Stripe + MD3 filled emphasis) ---- */
.port-site .xpl-hero__actions {
    gap: 0.85rem !important;
    margin-bottom: 1.5rem !important;
}

.port-site .xpl-hero__btn {
    min-height: 3rem;
    padding: 0.95rem 1.65rem !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
}

.port-site .xpl-hero__btn--primary {
    background: linear-gradient(135deg, #ffe566 0%, #ffd200 45%, #f5c400 100%) !important;
    color: var(--ux-cta-ink) !important;
    box-shadow:
        0 0 0 3px rgba(255, 210, 0, 0.35),
        0 14px 40px rgba(255, 210, 0, 0.42) !important;
    transform: scale(1.02);
    z-index: 2;
    position: relative;
}

.port-site .xpl-hero__btn--primary:hover,
.port-site .xpl-hero__btn--primary:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 0 0 4px rgba(255, 210, 0, 0.45),
        0 18px 48px rgba(255, 210, 0, 0.5) !important;
}

.port-site .xpl-hero__btn--primary:focus-visible {
    outline: 3px solid var(--ux-focus);
    outline-offset: 3px;
}

.port-site .xpl-hero__btn--ghost {
    min-height: 3rem;
    background: rgba(15, 23, 42, 0.35) !important;
    border: 1.5px solid rgba(248, 250, 252, 0.55) !important;
    color: var(--ux-on-dark) !important;
    font-weight: 700 !important;
}

.port-site .xpl-hero__btn--ghost:hover,
.port-site .xpl-hero__btn--ghost:focus-visible {
    background: rgba(15, 23, 42, 0.5) !important;
    border-color: #fff !important;
}

/* Soften hero stats so CTA wins the blur-test (keep content — do not remove) */
.port-site .xpl-hero__stats {
    opacity: 0.88;
    max-width: 480px;
}

.port-site .xpl-hero__stat-k {
    font-size: 0.78rem !important;
    color: rgba(226, 232, 240, 0.92) !important;
}

.port-site .xpl-hero__stat-v {
    font-size: 1.35rem !important;
    color: #fff !important;
}

/* ---- Top nav: clearer labels + touch targets (Fluent) ---- */
.port-sms-btn {
    min-height: 2.75rem;
    padding: 0.55rem 1.15rem !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}

.port-sms-btn--primary {
    background: #fff !important;
    color: #0f4c81 !important;
    border-color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

.port-sms-btn--ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 650 !important;
}

.port-sms-navlink {
    min-height: 2.5rem;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.92rem !important;
    font-weight: 650 !important;
    color: #f8fafc !important;
}

.port-sms-navlink:hover,
.port-sms-navlink:focus-visible {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.port-sms-navlink:focus-visible,
.port-sms-btn:focus-visible,
.port-sms-menu-toggle:focus-visible {
    outline: 3px solid var(--ux-focus);
    outline-offset: 2px;
}

.port-sms-menu-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

/* ---- Section content contrast ---- */
.port-site .port-land-section,
.port-site .port-page {
    color: var(--ux-ink);
}

.port-site .port-land-section p,
.port-site .port-page p,
.port-site .port-site-footer__sub,
.port-site .port-site-footer__meta {
    color: var(--ux-muted) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

.port-site .port-site-footer__heading,
.port-site .port-land-section h2,
.port-site .port-land-section h3 {
    color: var(--ux-ink) !important;
    font-weight: 800 !important;
}

/* ---- Mobile / responsive (Fluent: 320px, touch) ---- */
@media (max-width: 960px) {
    .port-site .xpl-hero__btn {
        width: 100%;
        justify-content: center;
        min-height: 3.15rem;
    }

    .port-site .xpl-hero__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .port-site .xpl-hero__stats {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .port-sms-navlink,
    .port-sms-btn {
        min-height: 2.85rem;
        font-size: 0.95rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .port-site .xpl-hero__btn--primary,
    .port-site .xpl-hero__btn--ghost {
        transition: none !important;
        transform: none !important;
    }
}
