/* =========================================================
   Public home — Zoho.com-style marketing suite layout
   Hero = product story + visual; Sign-in is a separate band
   ========================================================= */

.hp.hp--zoho {
    --zh-ink: #0b1220;
    --zh-muted: #5b6b7c;
    --zh-line: #e8eef5;
    --zh-surface: #ffffff;
    --zh-soft: #f6f8fb;
    --zh-cta: #e42527;
    --zh-cta-hover: #c81e20;
    --zh-blue: #0b5fff;
    --zh-blue-soft: #eaf1ff;
}

/* Background modes — Master Appearance → Background */
.hp.hp--zoho .hp-bg {
    background-color: var(--hp-home-bg-color, #ffffff) !important;
    background-image: none !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.hp.hp--zoho.hp--bg-soft .hp-bg {
    background-color: var(--hp-home-bg-color, #f6f8fb) !important;
}
.hp.hp--zoho.hp--bg-color .hp-bg {
    background-color: var(--hp-home-bg-color, #f6f8fb) !important;
    background-image: none !important;
}
.hp.hp--zoho.hp--bg-image .hp-bg {
    background-color: #0f172a !important;
    background-image: var(--hp-home-bg-image, var(--portal-wallpaper)) !important;
    background-size: cover !important;
    background-position: center center !important;
}

.hp.hp--zoho.hp--bg-soft .hp-bg-overlay {
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(11, 95, 255, 0.08), transparent 60%),
        radial-gradient(700px 380px at 92% 8%, rgba(228, 37, 39, 0.06), transparent 55%),
        linear-gradient(180deg, color-mix(in srgb, var(--hp-home-bg-color, #ffffff) 88%, #fff) 0%, #f7f9fc 55%, #ffffff 100%) !important;
}
.hp.hp--zoho.hp--bg-color .hp-bg-overlay {
    background: transparent !important;
}
.hp.hp--zoho.hp--bg-image .hp-bg-overlay {
    background: rgba(255, 255, 255, calc(var(--hp-home-bg-overlay, 55) / 100)) !important;
}

/* Soften decorative hero orbs when a custom image is active */
.hp.hp--zoho.hp--bg-image .zh-orb,
.hp.hp--zoho.hp--bg-color .zh-orb {
    opacity: 0.18;
}

/* Fixed header — stays visible while scrolling the homepage */
.hp.hp--zoho .hp-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100%;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--zh-line) !important;
    box-shadow: none !important;
}
.hp.hp--zoho .hp-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}
/* Offset page content so it does not sit under the fixed header */
.hp.hp--zoho {
    padding-top: 4.5rem;
}
.hp.hp--zoho .hp-nav-btn {
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}
.hp.hp--zoho .hp-nav-signin {
    background: var(--zh-cta) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 0.45rem 1rem !important;
}
.hp.hp--zoho .hp-nav-signin:hover {
    background: var(--zh-cta-hover) !important;
}
.hp.hp--zoho .hp-nav-signup {
    background: transparent !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.16) !important;
    border-radius: 8px !important;
    padding: 0.45rem 1rem !important;
}
.hp.hp--zoho .hp-nav-signup:hover {
    background: rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
}
.hp-auth-switch {
    border: 0;
    background: none;
    padding: 0;
    color: var(--zh-cta, #e42527);
    font-weight: 650;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hp-auth-switch:hover { color: var(--zh-cta-hover, #c41e20); }

/* Hide legacy hh split styles when suite layout is active */
.hp.hp--zoho .hh { display: none !important; }

/* ── Marketing hero ── */
.zh-hero {
    position: relative;
    isolation: isolate;
    padding: 1.5rem 0 1.15rem;
    overflow: hidden;
}
.zh-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.zh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
}
.zh-orb-a {
    width: 360px; height: 360px;
    left: -100px; top: -80px;
    background: #bfd0ff;
}
.zh-orb-b {
    width: 280px; height: 280px;
    right: -60px; top: 40px;
    background: #ffc9c9;
}

.zh-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 2.5rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

.zh-kicker {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--zh-blue);
}
.zh-title {
    margin: 0 0 1.1rem;
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--zh-ink);
}
.zh-title span {
    display: block;
    color: #1f2937;
    font-weight: 700;
}
.zh-lead {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--zh-muted);
}

.zh-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}
.zh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.zh-btn-primary {
    background: var(--zh-cta);
    color: #fff;
    box-shadow: 0 10px 24px rgba(228, 37, 39, 0.22);
}
.zh-btn-primary:hover {
    background: var(--zh-cta-hover);
    color: #fff;
    transform: translateY(-1px);
}
.zh-btn-ghost {
    background: #fff;
    color: var(--zh-ink);
    border-color: #d7e0ea;
}
.zh-btn-ghost:hover {
    background: var(--zh-soft);
    border-color: #c5d2e0;
}

.zh-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.zh-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--zh-line);
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}
.zh-pills i { color: var(--zh-blue); }

.zh-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.15rem;
}
.zh-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}
.zh-trust i { color: #16a34a; }

.zh-hero-visual {
    min-width: 0;
}
.zh-media .hp-home-media-frame {
    min-height: min(280px, 34vh);
    max-height: 340px;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--zh-line);
}
.zh-sim {
    width: 100%;
    margin: 0;
    max-width: none;
}

.zh-visual-card {
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: 20px;
    padding: 1.1rem;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}
.zh-visual-bar {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.zh-visual-bar span {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #e2e8f0;
}
.zh-visual-bar span:first-child { background: #f87171; }
.zh-visual-bar span:nth-child(2) { background: #fbbf24; }
.zh-visual-bar span:nth-child(3) { background: #34d399; }
.zh-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.zh-visual-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 0.9rem;
    border-radius: 14px;
    background: var(--zh-soft);
    border: 1px solid #eef2f7;
}
.zh-visual-tile i {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--zh-blue-soft);
    color: var(--zh-blue);
    margin-bottom: 0.35rem;
}
.zh-visual-tile b {
    font-size: 0.92rem;
    color: var(--zh-ink);
}
.zh-visual-tile small {
    color: var(--zh-muted);
    font-size: 0.78rem;
}

/* ── Sign-in / Sign-up modals (must sit above homepage stacking contexts) ── */
.zh-signin-modal {
    --zh-cta: #e42527;
    --zh-cta-hover: #c81e20;
}
.zh-signin-modal.modal {
    z-index: 1085 !important;
    pointer-events: none; /* let clicks pass except on dialog */
}
.zh-signin-modal.modal.show {
    pointer-events: none;
}
.zh-signin-modal .modal-dialog {
    max-width: 440px;
    margin: 1.25rem auto;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}
.zh-signin-modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    background: #fff;
    position: relative;
    pointer-events: auto;
}
.zh-signin-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 2.75rem;
    padding: 0.55rem 0.65rem 0;
    background: #fff;
    position: relative;
    z-index: 2;
}
.zh-signin-close {
    position: static;
    box-sizing: border-box;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0.55rem;
    margin: 0;
    opacity: 1;
    background-color: #f1f5f9;
    border-radius: 999px;
    box-shadow: none;
    background-size: 0.7em;
    background-position: center;
    flex: 0 0 auto;
}
.zh-signin-close:hover {
    opacity: 1;
    background-color: #e2e8f0;
}
.zh-signin-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(228, 37, 39, 0.25);
}
.zh-auth-card {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0.35rem 1.45rem 1.25rem !important;
    pointer-events: auto;
}
.zh-signin-modal .hp-auth-partner-logo {
    display: block;
    margin: 0 auto 0.35rem;
    max-width: 100% !important;
    max-height: 140px;
    height: auto !important;
    object-fit: contain;
    object-position: center;
}
.zh-signin-modal .hp-auth-partner-video {
    border: 0;
    border-radius: 10px;
    background: transparent;
    pointer-events: none;
}
.zh-auth-card input,
.zh-auth-card button,
.zh-auth-card label,
.zh-auth-card .hp-input-wrap {
    pointer-events: auto;
}
/* Hardcode colors — modal is mounted on <body>, outside .hp CSS variables */
.zh-signin-modal .hp-submit,
.zh-signin-modal .zh-auth-card .hp-submit {
    background: #e42527 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 8px 20px rgba(228, 37, 39, 0.28) !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}
.zh-signin-modal .hp-submit:hover,
.zh-signin-modal .zh-auth-card .hp-submit:hover {
    background: #c81e20 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.zh-signin-modal .hp-submit i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.zh-signin-modal .hp-input-wrap--password .password-toggle-btn .eye-show,
.zh-signin-modal .hp-input-wrap--password .password-toggle-btn .eye-hide {
    display: inline-block;
}
.zh-signin-modal .hp-input-wrap--password .password-toggle-btn .eye-show.d-none,
.zh-signin-modal .hp-input-wrap--password .password-toggle-btn .eye-hide.d-none {
    display: none !important;
}
body > .modal-backdrop {
    z-index: 1080 !important;
}

/* ── Featured apps section ── */
.zh-apps {
    padding-top: 1.75rem !important;
}
.zh-apps-head {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.zh-apps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
}
.zh-app-card {
    border: 1px solid var(--zh-line) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 1.35rem 1.25rem !important;
}
.zh-app-card:hover {
    border-color: #c9d7ea !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-3px);
}
.zh-app-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.4rem !important;
}

/* Layout variants */
.hp--layout-classic .zh-hero-inner {
    border-radius: 8px;
}
.hp--layout-compact .zh-hero { padding: 2rem 0 1.5rem; }
.hp--layout-compact .zh-title { font-size: clamp(2rem, 3.8vw, 2.8rem); }

@media (max-width: 980px) {
    .zh-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .zh-hero { padding-top: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .zh-btn, .zh-app-card { transition: none !important; transform: none !important; }
}
