/* Shared brand-frame primitives (walk remediation C, Section 2).
   The brand frame Scott's marketing home established, de-scoped from .marketing-shell onto the
   neutral .neo-frame wrapper so BOTH the customer app and the operator plane (AdminPortal) render
   it. Source of truth for colors: design-tokens.css (the three-tier green system: green accent /
   spruce chrome / pine surface). Marketing-page-specific styling (hero, hero visual, step cards,
   FAQ, exec pages, SVG illustrations, the dark-hero .btn variants) stays in css/marketing.css.

   The button set here is the .neo-button family, deliberately distinct from the operator .btn set
   in app.css and the dark-hero .btn variants in marketing.css: those two share the .btn names and
   are kept apart only by the .marketing-shell scope (see marketing.css P0-7), so the shared frame
   introduces its own namespace rather than re-scoping .btn and repainting operator buttons. */

/* Spruce chrome bands (header + footer). ---------------------------------- */

.neo-frame-header {
    background: var(--color-chrome);
    color: var(--neo-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.neo-frame-footer {
    background: var(--color-chrome);
    color: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.neo-frame-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.neo-frame-brand {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--neo-white);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* The dark emblem mounts left of the brand text at rail text height. */
.neo-frame-brand .brand-emblem {
    margin-right: var(--space-2);
}

/* Operator plane header bar (AdminPortal's OperatorLayout). The header carries
   .neo-frame-header for the spruce chrome and .neo-frame-band-inner for the row +
   space-between layout; the nav grows to fill the leftover width so its links sit flush
   after the brand instead of floating centered between the brand and the sign-out form. */
.operator-plane-bar .operator-plane-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Keeps "NEO Operator plane" from being compressed once the nav claims the middle space. */
.operator-plane-brand {
    flex-shrink: 0;
}

.operator-plane-nav-link {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
}

.operator-plane-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-accent-on-dark);
}

/* NavLink's ActiveClass: the current page reads full-strength white with a mint underline
   (an inset box-shadow, so it never shifts the row height) instead of the plain hover fill. */
.operator-plane-nav-link-active {
    color: var(--neo-white);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 -2px 0 var(--color-accent-on-dark);
}

/* Pins the sign-out form at the far right of the band and clears the browser's default
   form margin. */
.operator-plane-signout {
    flex-shrink: 0;
    margin: 0;
}

/* Button set (primary / secondary / ghost). ------------------------------- */

.neo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
    white-space: nowrap;
}

/* Filled primary on the AA-safe fill step (deep green #0F6E56, white text 6.20:1);
   hover one darker (#0B5742, 8.55:1). */
.neo-button-primary {
    background: var(--color-accent-fill);
    color: var(--neo-white);
    border-color: var(--color-accent-fill);
}

.neo-button-primary:hover {
    background: var(--color-accent-fill-hover);
    border-color: var(--color-accent-fill-hover);
}

/* Light-surface secondary (white fill, spruce text, grey hairline). */
.neo-button-secondary {
    background: var(--neo-white);
    color: var(--color-text);
    border-color: var(--neo-grey-200);
}

.neo-button-secondary:hover {
    background: var(--neo-grey-50);
}

/* Ghost reads on the spruce chrome band: transparent fill, light text, faint border. */
.neo-button-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.25);
}

.neo-button-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--neo-white);
}

/* Section rhythm (alternating light / grey / dark bands). ----------------- */

.neo-frame .section {
    width: 100%;
    padding: var(--space-20) var(--space-6);
    background: var(--neo-white);
    color: var(--neo-grey-700);
}

.neo-frame .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Prose-only sections cap at the prose measure so eyebrow + H2 + body center together
   instead of hugging the left edge of a 1200px container. */
.neo-frame .section-inner-narrow {
    max-width: 760px;
}

.neo-frame .section-light {
    background: var(--neo-white);
}

/* The alternating step of the section rhythm: a faint spruce tint so the rhythm reads as an
   intentional brand step rather than a neutral grey band. */
.neo-frame .section-grey {
    background: var(--color-surface-tint);
}

.neo-frame .section-dark {
    background: var(--color-surface-dark);
    color: rgba(255, 255, 255, 0.86);
}

/* Section kickers + headings. -------------------------------------------- */

.neo-frame .section-eyebrow {
    color: var(--color-accent-text);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-3);
}

.neo-frame .section-dark .section-eyebrow {
    color: var(--color-accent-on-dark);
}

.neo-frame .section-h2 {
    color: var(--color-chrome);
    font-size: var(--text-xl);
    line-height: var(--leading-xl);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-4);
    max-width: 720px;
}

.neo-frame .section-dark .section-h2 {
    color: var(--neo-white);
}

.neo-frame .section-lede {
    color: var(--neo-grey-700);
    font-size: var(--text-md);
    line-height: var(--leading-md);
    margin: 0 0 var(--space-10);
    max-width: 720px;
}

.neo-frame .section-dark .section-lede {
    color: rgba(255, 255, 255, 0.78);
}

/* Worked-example lede that follows a tier grid. */
.neo-frame .section-lede-after-grid {
    margin-top: var(--space-4);
}

/* Stat-tile cards (oversized display header + bold subtitle + faint hint line). */

.neo-frame .outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.neo-frame .outcome-card {
    background: var(--neo-white);
    border: 1px solid var(--neo-grey-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.neo-frame .outcome-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.neo-frame .outcome-card-stat {
    color: var(--color-accent-text);
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.neo-frame .outcome-card-h {
    color: var(--color-chrome);
    font-size: var(--text-md);
    font-weight: 600;
    margin: var(--space-2) 0 var(--space-2);
}

.neo-frame .outcome-card-body {
    color: var(--neo-grey-700);
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
    margin: 0;
}

.neo-frame .outcome-card-note {
    color: var(--neo-grey-500);
    font-size: var(--text-xs);
    margin-top: var(--space-3);
    display: block;
}

/* Final CTA band (centered section-dark call to action). ------------------ */

.neo-frame .cta-band {
    background: var(--color-surface-dark);
    color: var(--neo-white);
    padding: var(--space-20) var(--space-6);
    text-align: center;
}

.neo-frame .cta-band-inner {
    max-width: 800px;
    margin: 0 auto;
}

.neo-frame .cta-band-h {
    color: var(--neo-white);
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-3);
}

.neo-frame .cta-band-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--text-md);
    line-height: var(--leading-md);
    margin: 0 0 var(--space-8);
}

.neo-frame .cta-band-ctas {
    display: inline-flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

/* Mailto links inside the dark CTA band. */
.neo-frame .cta-band-sub a {
    color: var(--color-accent-on-dark);
    font-weight: 600;
}

/* Responsive breakpoints. ------------------------------------------------- */

@media (max-width: 1024px) {
    .neo-frame .outcomes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .neo-frame .section {
        padding: var(--space-16) var(--space-5);
    }
    .neo-frame .cta-band-h {
        font-size: var(--text-xl);
        line-height: var(--leading-xl);
    }
}
