/* ──────────────────────────────────────────────────────────────
   Public content pages (About Us · Services · Help)

   Net-new widget CSS only — the shell, header, background photo and card treatment come from
   auth.css. Everything here sits over the dark aerial photo, so text is white-on-scrim like the
   auth hero rather than the app's light surfaces. Entrance motion reuses auth.css keyframes
   (auth-slideLeft / auth-fadeUp) so nothing new is invented for these pages.
   ────────────────────────────────────────────────────────────── */

/* The auth screens centre a single card vertically; long-form pages must start at the top
   and scroll normally inside the fixed-height wrapper. */
.auth-content.dm-pub-content {
    align-items: flex-start;
}

.dm-pub {
    padding: 3rem 0 4rem;
    color: #fff;
}

/* ── Page hero ──────────────────────────────────────────── */
.dm-pub-hero {
    max-width: 780px;
    margin-bottom: 3rem;
    animation: auth-slideLeft 0.5s ease-out 0.1s both;
}

.dm-pub-eyebrow {
    color: var(--bs-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.dm-pub-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.dm-pub-hero h1 .highlight {
    color: var(--bs-primary);
}

.dm-pub-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

/* ── Sections ───────────────────────────────────────────── */
.dm-pub-section {
    margin-bottom: 3rem;
    animation: auth-fadeUp 0.5s ease-out 0.15s both;
}

.dm-pub-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dm-pub-section-sub {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* ── Content card (glass, matches .auth-card) ───────────── */
.dm-pub-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--dm-ease-base, 200ms cubic-bezier(.4, 0, .2, 1)),
                background var(--dm-ease-base, 200ms cubic-bezier(.4, 0, .2, 1));
}

.dm-pub-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.dm-pub-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: #fff;
    background: rgba(var(--bs-primary-rgb), 0.85);
    margin-bottom: 1rem;
}

.dm-pub-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dm-pub-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

/* ── Numbered steps ─────────────────────────────────────── */
.dm-pub-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.dm-pub-step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    color: #fff;
    background: rgba(var(--bs-primary-rgb), 0.9);
}

.dm-pub-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dm-pub-step p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

/* ── Feature list ───────────────────────────────────────── */
.dm-pub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dm-pub-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.dm-pub-list li::before {
    content: "\eb7b"; /* remixicon ri-check-line — codepoint verified in remixicon.css */
    font-family: "remixicon";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bs-primary);
}

/* ── FAQ (Bootstrap accordion re-skin for the dark backdrop) ── */
.dm-pub-faq .accordion-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.dm-pub-faq .accordion-button {
    background: transparent;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: none;
}

.dm-pub-faq .accordion-button:not(.collapsed) {
    background: rgba(var(--bs-primary-rgb), 0.18);
    color: #fff;
}

.dm-pub-faq .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.3);
}

/* Bootstrap's chevron is a dark SVG — invert it so it reads on the photo. */
.dm-pub-faq .accordion-button::after {
    filter: invert(1) grayscale(1) brightness(2);
}

.dm-pub-faq .accordion-body {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Closing call to action ─────────────────────────────── */
.dm-pub-cta {
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}

.dm-pub-cta h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dm-pub-cta p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.25rem;
}

.dm-pub-cta .btn {
    padding: 0.625rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    .dm-pub-hero h1 {
        font-size: 1.875rem;
    }

    .dm-pub-card {
        padding: 1.375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dm-pub-hero,
    .dm-pub-section {
        animation: none;
    }

    .dm-pub-card:hover {
        transform: none;
    }
}
