/* ==========================================================================
   DeskDialog Service Hub — Public marketing styles
   Layered on top of Bootstrap 5 + app.css. Uses --bs-primary from the tenant
   colour scheme so marketing pages stay on-brand.
   ========================================================================== */

.public-body {
    font-family: var(--app-font-sans, 'Inter', system-ui, sans-serif);
    background: #ffffff;
    color: #1f2937;
}

.public-navbar {
    box-shadow: 0 2px 14px rgba(16, 24, 40, 0.12);
}
.public-navbar .navbar-brand {
    font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.public-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 0.4rem 0.85rem !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.public-main { min-height: 60vh; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1100px 460px at 85% -10%, color-mix(in srgb, var(--bs-primary) 55%, transparent), transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--bs-primary) 96%, black) 0%, color-mix(in srgb, var(--bs-primary) 78%, black) 55%, #0b1220 130%);
    padding: 5.5rem 0 6rem;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 800;
    font-size: clamp(2.1rem, 4.5vw, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
}
/* Headings on dark backgrounds must stay white — app.css sets a dark default. */
.hero h1, .hero h2, .hero h3, .hero h4, .hero .section-title,
.cta-band h1, .cta-band h2, .cta-band h3,
.card.bg-primary h5, .card.bg-primary h6 {
    color: #fff;
}

/* Full-width hero background photo (admin-configurable). Overlay keeps text legible. */
.hero.has-photo {
    background: none;
    background-color: color-mix(in srgb, var(--bs-primary) 80%, black);
}
.hero.has-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(160deg, color-mix(in srgb, var(--bs-primary) 82%, black) 0%, rgba(11, 18, 32, 0.72) 100%),
        var(--hero-photo);
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero.has-photo::after { opacity: 0.25; }
.hero .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: rgba(255, 255, 255, 0.86);
    max-width: 620px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.hero-stats { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.hero-stats .stat-num {
    font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1;
}
.hero-stats .stat-label { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 4.5rem 0; }
.section-tint { background: #f5f7fb; }
.section-title {
    font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}
.section-lead { color: #64748b; font-size: 1.05rem; max-width: 640px; }

/* ---- Feature / value cards ---------------------------------------------- */
.feature-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    padding: 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.10);
    border-color: color-mix(in srgb, var(--bs-primary) 35%, #e6eaf0);
}
.feature-ic {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 12%, #fff);
    margin-bottom: 1rem;
}
.feature-card h5 {
    font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 700;
}

/* ---- Step (how it works) ------------------------------------------------ */
.step-num {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 800;
    font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--bs-primary) 40%, transparent);
}

/* ---- Pricing ------------------------------------------------------------- */
.price-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    padding: 1.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16, 24, 40, 0.12); }
.price-card.featured {
    border-color: var(--bs-primary);
    box-shadow: 0 18px 44px color-mix(in srgb, var(--bs-primary) 22%, transparent);
}
.price-card .price-amount {
    font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
}
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.price-card ul li { padding: 0.4rem 0; display: flex; align-items: flex-start; gap: 0.6rem; }
.price-card ul li i { color: var(--bs-success); margin-top: 0.15rem; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
    background: linear-gradient(135deg, color-mix(in srgb, var(--bs-primary) 92%, black), color-mix(in srgb, var(--bs-primary) 70%, black));
    color: #fff;
    border-radius: 22px;
    padding: 3rem;
}
.cta-band h2 { font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif); font-weight: 800; }

/* ---- Footer -------------------------------------------------------------- */
.public-footer {
    background: #0f1729;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2rem;
}
.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.footer-muted { color: rgba(255, 255, 255, 0.55); }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---- Long-form content pages -------------------------------------------- */
.content-paper {
    max-width: 820px;
    margin: 0 auto;
}
.content-paper h2 {
    font-family: var(--app-font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2.25rem;
}
.content-paper h2:first-child { margin-top: 0; }
