/* Shared marketing presentation. Homepage layout rules are explicitly scoped. */
body.landing-editorial {
    --paper: #f7f2e7;
    --surface: #fffcf5;
    --ink: #262118;
    --muted: #6f6754;
    --rule: #ded5c3;
    --accent: #8a2d1c;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

.landing-editorial .container {
    max-width: 72rem;
}

.landing-editorial h1,
.landing-editorial h2,
.landing-editorial h3,
.landing-editorial h4 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400 !important;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.landing-editorial h1 {
    max-width: 13em;
    margin-inline: auto;
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.12;
}

.landing-editorial h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.landing-editorial h3,
.landing-editorial h4 {
    font-size: 1.5rem;
}

.landing-editorial .text-muted,
.landing-editorial .text-gray-800 {
    color: var(--muted) !important;
}

.landing-editorial .lead {
    font-size: 1.1rem;
    line-height: 1.75;
}

.landing-editorial .border-bottom {
    border-color: var(--rule) !important;
}

.landing-editorial a {
    color: var(--accent);
}

.landing-editorial a:focus-visible,
.landing-editorial button:focus-visible {
    outline: none;
}

.landing-editorial .navbar {
    padding: 1rem clamp(1rem, 4vw, 4rem);
    background: var(--surface) !important;
    border-bottom: 0;
}

.landing-editorial .navbar > .container-fluid {
    max-width: 72rem;
}

.landing-editorial .navbar-brand {
    /* Give the image a local backdrop even inside an isolated stacking context. */
    background: var(--surface);
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.landing-editorial .navbar-brand-img {
    height: 2.75rem;
    max-height: 2.75rem;
    width: auto;
    mix-blend-mode: multiply;
}

.landing-editorial .navbar .nav-link {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 400;
    padding-inline: .85rem;
}

.landing-editorial .navbar-nav {
    margin-right: 1.5rem;
}

.landing-editorial .homepage-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.landing-editorial .homepage-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1.25rem;
    border: 1px solid var(--accent);
    border-radius: .375rem;
    color: var(--surface);
    background: var(--accent);
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
}

.landing-editorial .homepage-signin:hover,
.landing-editorial .homepage-signin:focus-visible {
    background: #702317;
    border-color: #702317;
    color: var(--surface);
    text-decoration: none;
}

.landing-editorial .homepage-signin.btn {
    min-height: 40px;
    padding: .5rem 1rem;
    font-size: .875rem;
}

.landing-editorial .dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--rule);
    box-shadow: 0 8px 24px #2621180d;
}

.landing-editorial .dropdown-item:hover,
.landing-editorial .dropdown-item:focus {
    color: var(--accent);
    background: var(--paper);
}

.landing-editorial .btn {
    min-height: 48px;
    padding: .85rem 1.5rem;
    border-radius: .375rem;
    font-size: .95rem;
    font-weight: 550;
}

.landing-editorial .btn-primary {
    color: var(--surface);
    background: var(--accent);
    border-color: var(--accent);
}

.landing-editorial .homepage-nav-cta {
    padding: 1rem 1.4rem;
    white-space: nowrap;
}

.landing-editorial .btn-primary:hover,
.landing-editorial .btn-primary:focus {
    color: var(--surface);
    background: #702317;
    border-color: #702317;
}

.landing-editorial .navbar-btn {
    color: var(--surface);
    background: var(--accent);
    border-color: var(--accent);
    min-height: 40px;
    padding: .5rem 1rem;
    font-size: .875rem;
}

.landing-editorial section {
    padding-block: clamp(3.5rem, 7vw, 6rem) !important;
}

.landing-editorial .navbar + section {
    padding-block: clamp(3.5rem, 6vw, 5.5rem) !important;
    background: var(--surface);
}

/* Keep the demo full-width so the platform remains legible. */
.landing-homepage .navbar + section > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: 3rem;
    align-items: center;
}

.landing-homepage .navbar + section > .container > .row {
    min-width: 0;
    margin: 0;
}

.landing-homepage .navbar + section > .container > .row > div {
    flex: 0 0 100%;
    max-width: 100%;
    padding-inline: 0;
    text-align: center !important;
}

.landing-editorial .navbar + section h1 {
    max-width: 14em;
    margin-inline: auto;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.landing-homepage .navbar + section .mb-md-7 {
    margin-bottom: 0 !important;
}

.landing-editorial .hero-social-proof {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    text-align: center;
    margin-top: 1.25rem;
}

.landing-editorial .hero-social-proof a {
    flex-shrink: 0;
    line-height: 0;
}

.landing-editorial .navbar + section .lead {
    max-width: 39rem;
    margin-inline: auto;
}

.landing-editorial .navbar + section .small {
    margin-right: 0 !important;
    font-size: .8rem;
}

/* Replace the decorative diagonal overlap with a quiet, ruled steps section. */
.landing-editorial .position-relative.mt-n12 {
    display: none;
}

.landing-editorial .section.bg-black {
    padding-block: clamp(2.5rem, 5vw, 4rem) !important;
    background: #eee7d9 !important;
    border-bottom: 1px solid var(--rule);
}

.landing-editorial .section.bg-black .text-white {
    color: var(--ink) !important;
}

.landing-editorial .section.bg-black .text-muted-80 {
    color: var(--muted) !important;
}

.landing-editorial .section.bg-black .btn {
    width: 2.6rem;
    min-height: 2.6rem;
    padding: .25rem;
    border: 1px solid #c7b99e;
    border-radius: 50%;
    background: transparent;
    color: var(--accent);
    font: 1.3rem/1.5 Georgia, serif;
}

.landing-editorial .section.bg-black hr {
    border-color: var(--rule) !important;
}

.landing-editorial #features,
.landing-editorial #testimonials,
.landing-editorial #faqs,
.landing-editorial footer {
    background: var(--paper) !important;
}

.landing-editorial .card {
    border: 1px solid var(--rule);
    border-radius: 5px;
    background: var(--surface);
    box-shadow: none !important;
}

.landing-editorial .card-body {
    padding: 1.8rem;
}

.landing-editorial .icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #efe5d5 !important;
    color: var(--accent) !important;
    font-size: 1.2rem;
}

.landing-editorial .badge-primary-soft,
.landing-editorial .badge-primary-desat-soft {
    background: #efe5d5;
    color: var(--accent);
}

.landing-editorial .badge-rounded-circle {
    flex-shrink: 0;
}

.landing-editorial #testimonials > .row {
    margin-inline: 0;
}

.landing-editorial #faqs > .container {
    max-width: 65rem;
}

.landing-editorial #faqs h3 {
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-size: 1.3rem;
}

.landing-editorial #faqs p a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.landing-editorial section.bg-primary {
    background: #352f25 !important;
}

.landing-editorial section.bg-primary h2 {
    color: var(--surface) !important;
}

.landing-editorial section.bg-primary .text-white-80 {
    color: #e3d8c4 !important;
}

.landing-editorial .btn-white {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--surface);
}

.landing-editorial footer {
    padding-block: 2rem !important;
    font-size: .85rem;
}

/* Keep copy visible even if the existing animation script fails to load. */
.landing-editorial [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

@media (max-width: 991.98px) {
    .landing-editorial .navbar-nav {
        margin-right: 0;
    }

    .landing-editorial .homepage-nav-actions {
        padding: 0;
        border-top: 1px solid var(--rule);
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .landing-editorial .homepage-nav-actions .homepage-signin {
        width: 100%;
        min-height: 48px;
        padding: .8125rem 1.25rem;
        border-radius: 0 0 4px 4px;
    }

    .landing-editorial .navbar-btn {
        min-height: 48px;
    }

    .landing-homepage .navbar + section > .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .landing-editorial .navbar + section h1 {
        max-width: 14em;
    }

    .landing-editorial .navbar + section .lead {
        margin-inline: auto;
    }

    .landing-editorial .navbar-collapse {
        background: var(--surface);
        border: 1px solid var(--rule);
        border-radius: 5px;
    }

    .landing-editorial .navbar-toggler,
    .landing-editorial .nav-link,
    .landing-editorial .dropdown-item {
        min-height: 44px;
    }

    .landing-editorial .navbar-toggler {
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
        color: var(--muted);
    }

    .landing-editorial .navbar-toggler-icon {
        width: 1.5rem;
        height: 1.125rem;
        min-height: 0;
        background-image: linear-gradient(var(--muted), var(--muted)),
            linear-gradient(var(--muted), var(--muted)),
            linear-gradient(var(--muted), var(--muted));
        background-size: 100% 2px;
        background-position: top, center, bottom;
        background-repeat: no-repeat;
    }
}

@media (max-width: 768px) {
    .landing-editorial .hero-social-proof {
        flex-direction: column;
        gap: 1rem;
    }

    .landing-editorial .container {
        padding-inline: 1.5rem;
    }

    .landing-editorial .navbar {
        padding: .75rem 1rem;
    }

    .landing-editorial .navbar-brand-img {
        height: 2.375rem;
        max-height: 2.375rem;
    }

    .landing-editorial .navbar + section h1 {
        font-size: clamp(2.2rem, 7.5vw, 3rem);
    }

    .landing-editorial .lead {
        font-size: 1rem;
    }

    .landing-editorial .section.bg-black > .container > .row {
        row-gap: 2rem;
    }

    .landing-editorial .card-body {
        padding: 1.5rem;
    }

    .landing-editorial footer a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-editorial .lift {
        transform: none !important;
        transition: none !important;
    }
}
